Recent tales


Converting Base64 strings to files without writing code

Converting Base64 strings to files without writing code

I recently stumbled upon a situation where I needed to quickly convert a Base64 string coming from a web api and save it into a file in disk in order to inspect its contents. Sure, I could have spun up a small program in C# or Python. But honestly, that felt like an overkill for what was essentially a one-off task. In the past I had used an online Base64 converter for a similar task, so it crossed my mind, but sharing potentially sensitive data with unknown third-party services didn’t feel right. So, I searched for an alternative. Surely, there had to be an simpler, more direct solution.
Reading time: 3 minutes
Book review — Python Distilled, by David M. Beazley

Book review — Python Distilled, by David M. Beazley

This is a pragmatic book that presents some of the most important topics about the Python programming language in a concise form, designed to make it easier to find out the most relevant information bits in a context where resources abound and frequently are just too overwhelming.
Reading time: 5 minutes
Just updated - both Optimize Images and Optimize Images X

Just updated - both Optimize Images and Optimize Images X

This time, we are releasing both Optimize Images and Optimize Images X at the same time. The original CLI version now uses temporary files with in-memory buffers, which prevents unnecessary I/O, and also displays more detailed and more useful version information. Optimize Images X, the GUI version, is now compatible with Python3.7+ and has the ability to open or preview a selected image.
Reading time: 1 minute
Just updated - Optimize Images X v0.9.1 (Beta 2)

Just updated - Optimize Images X v0.9.1 (Beta 2)

So, just 3 days after the first public beta, here we got the second beta for Optimize Images X. It includes an important hot fix for Windows and Linux, and two new usability features.
Reading time: 1 minute
New project: Optimize Images X

New project: Optimize Images X

Just for fun, this month I set myself to start a new Python project. It’s the same as Optimize Images, but with a big X and a nice graphical user interface. It wants to help you reduce the file size of images, and hopefully make your websites load faster.
Reading time: 2 minutes
Searching and replacing text on long files with Vim

Searching and replacing text on long files with Vim

You may wonder how I came up with this topic. I usually code in a graphical IDE like PyCharm or Visual Studio, or even a text editor like VS Code or BBEdit. But sometimes you need some lightweight application that is capable of opening and efficiently edit a file. I often return to VIM for quick edits in small files. Sometimes, just for the convenience of not leaving the shell. Other times, because it’s a powerful editor that runs perfectly under a SSH connection. And a few days ago, it was the only application I had installed on Windows which would let me open, navigate and read a several GB heavy text file without complaining.
Reading time: 6 minutes