I make computers do interesting things for me, but I always forget how I did it

  • I’m a mechanical engineer, passionate about optimization, science, and technology. I have a deep appreciation for free software (free as in freedom!), and this blog is both an attempt to give back a little of what I’ve received over the years and a space to keep reminders of how I’ve made computers solve problems for me.
  • I often find myself revisiting answers on Stack Overflow—answers I’ve already upvoted. I sometimes wonder how many times I’ve wished I could upvote the same solutions again. With this blog, I aim to create a personal space to write (and consult!) my own answers, whether they’re original or partially borrowed from Stack Overflow 🙈. My hope is that some of these posts will also be helpful to others.

Swirly: a CLI-based tool to learn python

This is a very short article to share Swirly, a Command Line Interface-based tool to learn python (or any python package) interactively. ...

April 8, 2025 · 1 min · Pavodive

Bash Script for Edition and Exporting of an Org-mode Template

I have a template of a document written as an org file. I have to edit some fields in that file to be able to generate different versions of that document for different people. I export it as a text file to give the feel of a document written with an old-school software and printed with a dot matrix printer. Finally I convert the produced document to PDF. ...

March 30, 2025 · 5 min · Pavodive

Adding Page Numbers to a PDF Document

I recently faced the following problem: I had a PDF document created by merging several other documents, many of them containing multiple pages. I needed to display the page numbers in the document. Latex and pdftk to the rescue! ...

March 10, 2025 · 3 min · Pavodive

Configure mu4e for gmail accounts in emacs

In this blog post, I want to show how I configured mu4e to read my Gmail accounts in Emacs. ...

February 24, 2025 · 8 min · Pavodive

Automating RMarkdown Rendering and PDF Merging with Bash

I work with many RMarkdown files structured within a hierarchy of directories. I needed to render these files to PDF and then use Ghostscript to merge them. This article explains the two small shell scripts I used for the task. ...

February 6, 2025 · 4 min · Pavodive

RSS with elfeed in emacs

It was very easy to configure Elfeed in Emacs to have all the blogs and news from the sites I like, together in Emacs. In this short article, I share how I configured the Elfeed package with the RSS feeds of some of the blogs I enjoy reading. This is important for me because I often spend time filtering through a lot of content that I am not interested in on forums like lemmy.ml or reddit.com. Using this method is also a way to avoid ads and go directly to the content I want to see. ...

January 29, 2025 · 3 min · Pavodive

Basic Merge Pandas Operations

Merging tables is one of the most common tasks when analyzing data. And yet, I always seem to forget how joins (merges) are done in pandas 🐼. So here’s a reminder for future me (and apparently for you, if you happened to land here 😉). ...

January 18, 2025 · 5 min · Pavodive

Basic Pandas Operations

There are some operations with pandas that I often forget. This site exists exactly for that: to remind me how to perform these tasks. In this post, I’ll cover some very basic pandas operations that I often forget, including dropping columns, reordering columns, and changing the names of columns. ...

January 18, 2025 · 2 min · Pavodive

Basic Time Pandas Operations

Dates and date-time objects are some of the most challenging data types to work with. They can come in a variety of formats (long live ISO 8601!), may have different time zones, and introduce considerable complexity as a result. ...

January 18, 2025 · 4 min · Pavodive

Paquete spanish2 para R

In legal documents in Spanish language it is often necessary to include the “value in words” of a number—for example, $2400 (dos mil cuatrocientos pesos). I created the package spanish2 to automate this task. If you are curious to learn more about this package, please keep reading. If you’d like to install it or view its code, you can access its GitHub repository. Writing this package inspired this article about how to write an R package using Emacs and ESS (Emacs Speaks Statistics). You might want to check it out! ...

January 11, 2025 · 5 min · Pavodive