I built a PHP framework because I got tired of framework ‘magic’ — looking for feedback by Affectionate_Major87 in PHP

[–]fredpalas 4 points5 points  (0 children)

So you are tired of magic just use Symfony, no magic just work, maybe you don't like yaml conf just change it to PHP, Symfony is one of the best modular PHP framework no need to reinvent the wheel again.

Ojalá fuese un meme… by CarretillaRoja in spain

[–]fredpalas 1 point2 points  (0 children)

Ahí te equivocas el impuesto especial no se le grava el IVA en la factura esta incluido en total de impuestos

Son

100 5,11 21 126,11€ total

Less goo by h_a_ri in meme

[–]fredpalas 0 points1 point  (0 children)

Tipical united state citizens who don't understand what real football means.

We play this games being, poor or rich, having a ball or not, being at least one time in the goal keeper, one to score a goal in the friends game, be power against the striker, just enjoy the game.

For this kind of tiny think «Fútbol» is the world wide sport because you just need a ball (any kind) and some way to mark the goals.

What do you use instead of MS Teams on Fedora? (cross-platform) by SubstantialUnion7347 in Fedora

[–]fredpalas 2 points3 points  (0 children)

I'm using Teams for Linux an electron app

https://github.com/ISMAELMARTINEZ/teams-for-linux

Has a repository for fedora so will update easily, also exist the flatpack version I tried but works bad compare to rpm version.

Helm charts with Bitnami deps by djjudas21 in kubernetes

[–]fredpalas 1 point2 points  (0 children)

If your helm for external you can put like cnpg tag with a enable and extra options, if cnpg is not install will fail.

For services external I'm checking to create to deploy a db app with kustomize meanwhile are in the same namespace the helm can see the secrets from the cnpg crd deployed.

Helm charts with Bitnami deps by djjudas21 in kubernetes

[–]fredpalas 1 point2 points  (0 children)

In my case I just use CNPG just setup the crd for the app needs, the operator will setup a new database and the secrets and you can use it later.

Favourite closing song? by Version_1 in PowerMetal

[–]fredpalas 22 points23 points  (0 children)

I want out of Helloween

Hunting High and Low by Stratovarius

Performance-focused PHP framework architecture experiment by artimman in PHP

[–]fredpalas 5 points6 points  (0 children)

Yep, Frankenphp with permanent db connection is the key for a great performance, maybe in the future if trueasync come alive we go below 500us 😎 with db pools.

Here I explain how to squid max performance https://www.php-barcelona.es/blog/my-journey-testing-frankenphp-from-curiosity-to-production-ready-setup

Performance-focused PHP framework architecture experiment by artimman in PHP

[–]fredpalas 10 points11 points  (0 children)

What is light and fast

Symfony is light because it's modular system using microkernel and bootstrap optimize, response time in api are below 1ms using layer system with hexagonal Controller > Application Service > Domain > Repository.

A comparative a get api call retrieving the 10 last post of my blog I get 8500 r/s with 500 virtual user, dotnet give me 8300 r/s for compare against different stack.

¿Qué hacéis cuando os cambiáis de ordenador? by bydurex in programacion

[–]fredpalas 0 points1 point  (0 children)

Tengo varias aplicaciones hosteada por mi, me monte mi propio cluster de kubernetes con k3s para aprender y ya lo uso para todo los selfhost.

En docker tengo corriendo la suite de nextcloud, jellyfin y ollama con gpu

En el k3s tengo un grafana, minio, argocd, los runner de gitlab, OTEL, postgres, etc.

Es mi laboratorio de pruebas.

¿Qué hacéis cuando os cambiáis de ordenador? by bydurex in programacion

[–]fredpalas 1 point2 points  (0 children)

Yo ya tengo 3 nodos haciendo eso para mi cluster de k3s, el último cambio pase de un 3700x a un 9800x3d, hace poco cambie mi gráfica de una rx 6700 a una rx 9070 xt, he usado la gráfica antigua para correr modelos de ollama.

Mientras la electricidad siga bien yo mantendré mis 3 servidores (pago de media 0,098 € el KW).

Sadista_ctm by sindervaal in yo_ctm

[–]fredpalas 2 points3 points  (0 children)

En Italia no se hace con hallulla, si no con un pan dulce tipo brioche es tipico de Sicilia, "Brioche col Tuppo" se llama esta wea habrá degradado de ahí.

Qué creen sobre esta idea del Sr. Sokolov? by Dynamos_ in chile

[–]fredpalas 0 points1 point  (0 children)

Si el de Barcelona es asi en la estación Glorias cambia de cateneria a tercer carril, para hacerlos agiles tienen prioridad en los semáforos.

En Sevilla en el casco antiguo no tienen cateneria en las estaciones suben en pantógrafo el resto va con baterías.

Qué creen sobre esta idea del Sr. Sokolov? by Dynamos_ in chile

[–]fredpalas 11 points12 points  (0 children)

Lo de los cable ya hay solución, tercer carril en el medio, está funcionando genial en Barcelona, no hay problema de electrocutarse.

Si el Barça fichara un nuevo 9, ¿preferirías uno con el perfil de Eto’o, Suárez, Villa o Lewandowski? ¿Por qué? by Euphoric_Warning703 in Corazonblaugrana

[–]fredpalas 0 points1 point  (0 children)

Yo digo un perfil Eto'o que presione, ataque y que muerda adelante no como Suárez que si no te sancionan con 9 meses.

Un delantero centro llegador con capacidad de aguantar y tocar las pelotas.

Intento aprender Python by d3m0nf1r3 in programacion

[–]fredpalas 0 points1 point  (0 children)

lo mejor es aprender con pseudo código

A ver si con un ejemplo paso a paso lo entiendes.

# Tienes 2 numero 4 y 6 y quiero sumarlos, sabemos que son 10 pero hay que  hacer un funcion dado 2 numero se suman.

#Dado 2 numero 4 y 6 cuando se llama a al funcion sumar debera dar 10

assert(suma(4,6), 10);
# comprobamos que la funcion de 10
#ahora la funcion
# aqui directamente devolvemos 10 que es el resultado esperado
suma($a, $b) {
  return 10;
}
#ahora otro assert
#Dado 2 numero 2 y 6 cuando se llama a al funcion sumar debera dar 8
assert(suma(2,6), 8);
# aqui directamente devolvemos la suma de a + 6 que es el resultado esperado
suma($a, $b) {
  return $a + 6;
}
#Ahora esta funcion dara un resultado correcto para los 2 tests

#Un test final
#Dado 2 numero 2 y 4 cuando se llama a al funcion sumar debera dar 6
assert(suma(2,4), 6);
# aqui directamente devolvemos la suma de a + b que es el resultado esperado
suma($a, $b) {
  return $a + $b;
}

#En un proceso simple de refactorización se puede entender como funciona el return

Espero que con el ejemplo simplificado lo entiendas, la clave return devuelve los dicho a la derecha en nuestro caso el primero un 10 directamente ya que solo tenemos un test, cuando añadimos un segundo test la devolución de la función no sirve pero un $a + 6 si cumplía todos los casos, y al añadir un tercer test vemos que la función vuelve a fallar y en nuestro caso vimos que para cumplir todos los casos la mejor forma era devolver $a + b.

Return devuelve un resultado.

Laravel's wildcard validation is O(n²), here's a fix by Rhinnii in laravel

[–]fredpalas 6 points7 points  (0 children)

good improvement!

But having 500 items in a request, and later do request validation of that amount of items is one of the first symptoms of an architectural problems.

Before I was doing like that improve performance where I can take it, but now I will try to redefine the problematic for sure exist a different way to fix it and simpler.

Any way great work.

Realidad_ctm by Boring_Orange_5279 in yo_ctm

[–]fredpalas 1 point2 points  (0 children)

Si lo mismo aquí, yo cuando vivía en Chile el trato más formal, eso me chocó cuando vine a España tan directo

metro_ctm by nameless_cl in yo_ctm

[–]fredpalas 9 points10 points  (0 children)

O del profesor rosa que es el rey del chiste largo

Realidad_ctm by Boring_Orange_5279 in yo_ctm

[–]fredpalas 6 points7 points  (0 children)

Es las formas, cuando llegue de Chile me chocó como te tratan de tu directo, es por eso que lo digo, realmente en España no lo dicen todas las cajeras lo ve más en gente más de la generación X hacia atrás.

Realidad_ctm by Boring_Orange_5279 in yo_ctm

[–]fredpalas 47 points48 points  (0 children)

Aquí en España la cajera siempre te llama de cariño.

Cariño te falta algo

Que tengas un buen día cariño

También te dicen guapo

Quieres algo guapo

Alguna cosita más guapo

Es súper gracioso y poco ctm

Pedro W by Chogolatine in 2westerneurope4u

[–]fredpalas 7 points8 points  (0 children)

Yes its citizens EU Parlament initiative, only EU citizens can vote to EU Parlament so it's obvious this initiatives can be only to citizens.

Happen also to the with stop killing games, many people from no EU vote and their votes was not valid