Technical
Laravel, APIs, packages, and maintainable backend systems.
- Parsing the HTTP Link header
Writing a HTTP Link header parser package to replace the suddenly removed package.
- MySQL/MariaDB driver vs laravel-backup
MariaDB 11 removed the mysqldump binary, which can break backups for projects still using the MySQL driver. Switching drivers isn’t always straightforward due to differences like UUID storage. This post shows a simple workaround to fix backups without changing your database schema.
- Redirects in HydePHP
Using a HydePHP extension that generates static redirect pages from configuration without relying on server-side routing or hosting-specific features.
- Native UUID support in Laravel has arrived
UUID support works as easily as possible, by just adding the HasUuids trait to your models. Be aware that it requires the model events to be fired so saving the model quietly do...
- Retrieving invoices from the Exact Online API
The Exact Online API has a lot of endpoints and options, which sometimes makes it a challenge to work with...
- Fix scrolling issue on Mac with Logitech mouse
The fight of my MX Master 3 scroll wheel with my M1 Macbook Air.
- Secure your WYSIWYG editor in Laravel
Freedom meets security with your WYSIWYG editor in Laravel. Learn how to properly handle the WYSIWYG editor output in laravel.
- Using the HTTP Client of Laravel in packages
Laravel is shipped with an easy to use HTTP Client. This HTTP Client is based on the popular Guzzle HTTP Client but is a bit easier to use due of the expressive syntax.
- Install Windows 11 with local account
In the Windows 11 installation, Microsoft almost forces you to install Windows 11 with a Microsoft account. Luckily there are still options to install Windows 11 with a local account.
- Unique validation in Laravel for update request
The validation rules on the store and update requests might have a lot in common but one of the major differences is how to handle the unique validation.
- The power of Form Requests in Laravel
Laravel has a very handy feature called Form requests. Form requests are custom request classes that take care of validation and authorization.
- Mcrypt for PHP 7.2+ on cPanel server
Mcrypt is deprecated since PHP 7.1 and completely removed from PHP since version 7.2. You should use OpenSSL or Sodium. But sometimes you're stuck on using mcrypt because of an older server or application.
- Deploying your project with Envoyer on cPanel hosting
Deploying your PHP projects on cPanel hosting without any downtime with Envoyer.
- Composer: use private repositories from GitHub
Unfortunately not all your packages can be open source. Some companies don't join the "open source train" while other packages must remain private for other reasons...
- Howto: Fix Microsoft Sculpt keyboard sticky keys
Fixing the annoying sticky keys problem with the Microsoft Sculpt keyboard.
- Quick tip: Empty trash from command line (Windows and Linux)
Emptying the trash or recycle bin can be done by right clicking on the icon and hitting the empty option, but what if you want to empty the trash from the command line?
- DirectAdmin: apt libz error
Getting the `/usr/local/lib/libz.so.1: no version information available` error? Let's fix that!
- Quick tip: Finding subfolders
When organizing folders you might want to find out if (and which) folder has subfolders. Let's figure out how to find those.
- XPath select parent by child attribute
Using the XML parser for a crawler works great. Most of the sources are well formatted and easy to parse. Unfortunately not all sources are that easy and that's where some advanced XPath comes in handy.
- View XPath results in Google Chrome
Using XPath in your browser is really useful for testing your XPath expressions.
- Grep recursive search
For searching through files I always end up using grep with a number of options. Let's make that a bit easier!
- Quick tip: Determining the folder size from the command line
A quick tip about determining the size of a folder by using the command line.
- Minecraft commands from cronjob
For a minecraft mini-game I wanted to give all the players a special item at predefined times. This calls for a bash script!
- Adding a cronjob from a bash script
A quick tip this time about adding a cronjob from a bash script.
- Check register for specific key or value from a batch file
Batch files are well known for managing and configuring client computers. Most of the system administrators are creating batch files on a regular basis. Let's create a batch file to check if all the client computers are running a specific program on startup.
- Clear DirectAdmin Message system
DirectAdmin contains a message system which contains information about thing like brute force attacks, overusage, etc. The message system get really full pretty fast and could contain thousands of messages.
- Exclude files from incremental backup script
When using the incremental backup script, I noticed some files were backupped which should be backuped. In this case some logs files which I don't have to backup every day. So I...
- Symlink cheatsheet
A Symbolic Links (also called symlink or softlink), is a special file which references another file or directory. These symlinks are very useful. For example a lot of deployment...
- Configuring virtualhost(s) in Apache
Virtualhosts allow you to host multiple websites on a single webserver. Shared hosting is based on this idea as this allows multiple customers to use a single server. It does require some configuration.
- Incremental backup script in bash
The previous backup script is a bit limited as it always creates a full backup. Let' adjust that to create incremental backups.
- Numerical Permissions
Numerical permissions describe the permissions of the file or folders and is most likely known with FTP or the unix filesystem. This post explains the meaning of those numbers.
- Easy backup script in bash
This easy backup script creates a .tar.gz for a certain folder. The script can be used to backup a full folder once or scheduled.