-
Install Nginx+PHP+Mariadb on Debian 11
1. Introduction I’m installing Debian 11 on a Hetzner server, a very reliable hosting (and they also have really good prices!). This server can be a good base for a laravel installation for example. Previously I’ve been using OVH for many years, but last year when I needed to cancel one of my servers that…
-
How to install Laravel + Livewire + Filament on production
I will setup a domain on a Linux Debian production server using Nginx and PHP 8.1 First the nginx config after generated the certbot https certificates: Install Laravel As I also have sites using PHP 7 in the same server, I use “composer8” and “artisan8” as aliases of “php8.1 composer” and “php8.1 artisan”. Now add…
-
Laravel testing: models without database connection
I like to have unit tests that work without database connection so they can run on any situation and they can be run for example from local git hooks with no problem. I use factories for this tests and the way to do it have changed a little for last Laravel versions (8, 9…) and…
-
Laravel Books
Laravel is by far the most popular PHP framework and is already more than 10 years old. Because of this there are already many good books available to help us learn how to use this framework or to deepen our knowledge. Here I will try to show you the best possible list of all the…
-
Google Webmaster Tools Bulk Methods
Working with Google Webmaster Tools and many data Last week I was in need for a fast method to add a couple hundred urls to Webmaster Tools removal section and I found this Lih Chen’s chrome extension that does exactly that, it adds a form to the page that allows you to upload a file with one…
-
Back to Mac, I replaced my ol’ Macbook battery and got double battery life
Why I threw in the towel If you read my blog, you will know that last year I moved to Windows 10 after 8 years happily using a Mac Mini and a Macbook. I did it mostly because of the low battery life of my Macbook (around 2 hours) and because of that news saying Windows now…
-
Web Developer: From Mac to Windows
It’s been more than a year since the first time this idea came to my head, moving to Windows after so many happy years on Mac. It was really a mixture of at least three things: a need of more battery life, Windows 10 apparently being a decent OS (and with Ubuntu shell!) and Apple going crazy removing…
-
Prestashop 1.6 Theme Sass Compiling
From version 1.6 the Prestashop default theme is developed using Sass, this means that the CSS of the theme is not written directly, is obtained after compiling the Sass files. Sass files in Prestashop are written using “scss” syntax that is very similar to regular CSS but with a lot more features, this is an…
-
Learning a functional language: Erlang
Last years I’ve had some contact with Ruby, Python or Objective C, but it never has been something more than a first contact, it’s now since assisting to the WeLovePHP talks at Softonic (Barcelona) when my interest for a more serious approach to functional languages has come. After some days reading about functional languages Erlang was the…
-
Connecting to Gmail with IMAP and Python
Solving a problem: “auto emails” to remind URLs I’ve found myself lots of times sending emails to myself to remind interesting URLs, forgetting to save many of them, and not being able to recover them when I need them. The solution to this problem that came to my mind was automating the saving URL part,…