Categories
Tutorials

How to install ImageMagick on Ubuntu

ImageMagick is a free and open source software used to edit images. You can use it on its own through the command line interface using the convert command. If you’re using WordPress and needs the ImageMagick library, you have to install the imagick PHP extension. To check if it is already installed, you can use […]

Categories
Docker

Reset admin account in Seafile Docker

Last week I have set up Seafile on my local network (using Docker) and installed the SeafilePro mobile app on my phone. I was happy that I could make it work on the first try and I backed up a bunch of stuff on the server. Today I realised that since I was “just testing” […]

Categories
WordPress

Cleaning up the post revisions with WP-CLI

Over the months, or years, that you use WordPress, the database starts to bloat with stuff that you don’t necessarily need. Post revisions are generated regularly and are not deleted unless you do it manually or you have added code to handle that automatically. The WordPress database does grow big if you let revisions accumulate. […]

Categories
Tutorials

How to run Tampermonkey on specific domains

Tampermonkey is a browser add-on that lets you run arbitrary JavaScript code on a webpage. As a web developer, it’s fun to make scripts to alter how a webpage (that you don’t control) feels and works. However, with great power comes great responsibility to not mess up. Tampermonkey allows you to configure an allowlist (a.k.a […]

Categories
Tutorials

Setting environment variables in Node and React

An environment variable is a variable that is set from outside an application, usually from the operating system. If you’re using Linux, MacOS or Windows, your operating system already has some default environment variables which you can access from your terminal or from inside an application that you are writing. Some most popular examples of […]

Categories
Terminal Troubleshooting

Fixing sed error “undefined label” and “invalid command code” on MacOS

The life of a programmer is hard. There are moments that we encounter bugs and have absolutely no idea why it’s happening. These occasions challenge our troubleshooting skills. Let’s look at a scenario with sed where the same line of code which works on MacOS won’t work on Linux and vice-versa (I’m testing on Ubuntu) […]

Categories
WordPress

Fixing the ‘Another update is currently in progress.’ Error in WordPress

If you ever see the error Another update is currently in progress, it means that WordPress has been updating one of its components (maybe a theme, a plugin or even the WordPress core) and something got messed up and the update process didn’t finish successfully. You’ll even get that error if you’re updating via WP-CLI: […]

Categories
Terminal Troubleshooting

Fixing “Warning: Failed to set locale category…”

You often get this rather annoying warning in your terminal on a freshly installed operating system (or each time until you decide it’s annoying enough to be fixed). For example when you are using wget, your terminal will serve you these warnings. You have a configuration issue with your computer’s or server’s locale. We’ll tackle […]

Categories
Web Performance

The target=”_blank” vulnerability

When someone is writing articles for a website or a blog, they often want to link the article to an external website. It’s common practice to make the link open in a new tab so that the website visitor can easily get back to your tab and continue browsing around – consequently increase your Google […]

Categories
Random

Hello again, world!

Multiple years of taking down my old blog, and after receiving thousands of requests to start the blog again (that’s the way influencers say two persons asked for something, right?), I’m thinking I’m back to having a blog. via GIPHY I’m not sure how long I’ll hold the blog, I have set up a simple […]