
Tag: Php - Página 2
38 entradas encontradas (4 páginas)

Recursos 11 de marzo 2022
Options Pattern in Golang
Option pattern is a functional programming pattern that is used to provide optional arguments to a function that can be used to modify its behavior.
How to create a simple event streaming in Laravel?
Event streams provide you with a way to send events to the client without having to reload the page. This is useful for things like updating the user interface in real-time changes are made to the database.

Resources March 11, 2022
Options Pattern in Golang
Option pattern is a functional programming pattern that is used to provide optional arguments to a function that can be used to modify its behavior.
How to create a simple event streaming in Laravel?
Event streams provide you with a way to send events to the client without having to reload the page. This is useful for things like updating the user interface in real-time changes are made to the database.

One day I'll discover what the comfort zone is, or not
Moments of change, moments of evolution, a constant in my life, with the 25th anniversary of the creation of the web I’ve entered “review” mode and I’m highly perplexed.
I’ve been doing things for the same time (25 years), enjoying, always with the same concept and particularity: Enjoyment and result, but it hasn’t been relevant for a long time (which is also not very relevant).
I’ve realized that the usual thing is to do things within your comfort zone, and I’ve never had one or knew one could exist, hence I’ve touched and done unusual things or perhaps “untimely”, when a certain technology could be in fashion “Buzz” I hadn’t been using it for a long time because it didn’t give me what something else gave me,…

Un día descubriré lo que es la zona de confort, o no
Momentos de cambios, momentos de evolución, una constante en mi vida, con el 25 aniversario de la creación de la web he entrado en modo “revisión” y estoy altamente desconcertado.
Llevo el mismo tiempo (25 años) haciendo cosas, disfrutando, siempre con el mismo concepto y particularidad: Disfrute y resultado, pero ya hace mucho que no es relevante (cosa que tambien es poco relevante).
Me he dado cuenta que lo habitual es hacer cosas dentro de tu zona de confort, y yo nunca he tenido una ni he sabido que podía existir, de ahí que haya tocado y hecho cosas poco usuales o quizás a “destiempo”, cuando cierta tecnología se podía de moda “Buzz” hacía tiempo que no lo utilizaba porque no me aportaba lo que me aportaba otra cosa, …

Laravel Collections: Arrays on stereoids
Laravel además de utilizar múltiples paquetes de terceros tambien es posible utilizar partes como componentes. Todos los componentes están bajo el namespace “Illuminate”.
Si hay una clase realmente interesante y útil es Collection, que nos permite trabajar con arrays de datos de una forma sencilla y “programática”.
Para tener esta clase en nuestro proyecto solo necesitaremos el paquete illuminate/support que podremos instalar con:
composer require illuminate/support:5.2.x-devPara mostrar algunos ejemplos utilizaremos un pequeño array con estos datos:

Laravel Collections: Arrays on steroids
Laravel, in addition to using multiple third-party packages, is also possible to use parts as components. All components are under the “Illuminate” namespace.
If there’s a really interesting and useful class, it’s Collection, which allows us to work with data arrays in a simple and “programmatic” way.
To have this class in our project, we only need the illuminate/support package which we can install with:
composer require illuminate/support:5.2.x-devTo show some examples, we’ll use a small array with this data:

News of the week 2016-03-27
In these last few days, we’ve had many news items, articles, information in the development and technology world, these are the most relevant for me:
Google announces a new Machine Learning service in the cloud
NPM & left-pad: Have We Forgotten How To Program?: The Kik case - left-pad from NPM and the critical fall to “I’ll do this with a third-party module/plugin/package/class”
The Kik case - left-pad from NPM and the fall in (official) or how the most insignificant dependencies can really leave us stranded.

Novedades de la semana 2016-03-27
Estos últimos días hemos tenido muchas novedades, artículos, informaciones, en el mundo del desarrollo y tecnología, estas son las más relevantes para mi:
Google anuncia un nuevo servicio de Machine Learning en la nube
NPM & left-pad: Have We Forgotten How To Program?: El caso Kik - left-pad de NPM y la caida crítica al “esto lo hago con un modulo/plugin/paquete/clase” de terceros
El caso Kik - left-pad de NPM y la caida en (oficial) o de como las dependencias más insignificantes nos pueden dejar realmente tirados.

Custom Theme My Login templates
Theme My Login is a plugin that allows us to adapt all elements related to: Registration, Login, … of a WordPress site to our needs.
Inside the plugin folder, we find the templates in the “templates” folder. As is standard practice, we should not modify these templates directly. We can copy them to the root of our theme and modify them there. From that point on, those templates will be used by our site, without a plugin update affecting the changes made.

Plantillas de Theme my Login personalizadas
Theme My Login, es un plugin que nos permite adaptar a nuestras necesidades todos los elementos relativos al: Registro, Entrada, … de un WordPress.
Dentro de la carpeta del plugin encontramos las plantillas en la carpeta “templates”, como es de rigor, no debemos modificar esas plantillas, podemos copiarlas a el raiz de nuestra plantilla y ahí modificarlas, momento a partir del cual esas plantillas serán las utilizadas por nuestra web, sin que una actualización del plugin afecte a los cambios realizados.

Creación de un nuevo proyecto Laravel
En la carpeta donde queremos iniciar el proyecto:
cd /var/www/my-new-project
composer create-project laravel/laravel ./ --prefer-dist
Creating a new Laravel project
In the folder where we want to start the project:
cd /var/www/my-new-project
composer create-project laravel/laravel ./ --prefer-dist



