I use Arch Linux with KDE Plasma (6.2.4) on a 2015 MacBook with a UK Mac keyboard. I wanted to type Portuguese accents (like á, ç, õ) while keeping my system language in English. On macOS, the “Brazilian Pro” layout, changed to “Brazilian” in newer versions, made this easy. But in Linux, it took some Continue reading Typing Portuguese Accents on a UK Mac Keyboard in Arch Linux
The generics draft for Go 1.18 changed and my previous post about generics in Go became outdated. Here s the updated version of it, which you can run in playground. Given a function that applies a transformation to a single input, a Map function is a known programming pattern to apply that function to an entire Continue reading Using generics in Go to create a map function (updated)
WARNING: this post is now outdated and its code won t work! I wrote an updated version of it. 2020 has been full of surprises. It s been some years since the first implementation of generics in Go, and I can t believe I wrote this title and it s not an April Fools prank. Yesterday an article named Continue reading Playing with Generics in Go
A few days ago I wanted to do some batch image processing. It could be done in Photoshop, I know, but I wanted to have some fun as well and learn some algorithms. I started studying Go in January and it sounded like an opportunity to practice a little, so I began to write my Continue reading Image processing with Go
Sometimes it happens: I m programming but I must stop and go to sleep. Some new feature is working, but needs some better code or error handling. So I put that ugly TODO there. This kind of comment generates technical debt, and it s good to track them. Because of that I wrote my first sbt plugin: sbt-findtags. Until Continue reading sbt-findtags
I m studying Behaviour-Driven Development and evaluating some BDD frameworks for Java. The first one was JBehave. Behave, baby! I first made a small project, a simple calculator to multiply and divide numbers. The project uses Maven to download the dependencies and run my tests. I got it running and then I ported the same project to run Continue reading BDD: Using JBehave with Maven and Gradle
Last weekend I made my first Qt/Symbian mobile application. It was a very simple project, and its only purpose was to learn how to program for Symbian platform. I made a small application to search information about movies in TheMovieDb, and its source code is available at my github profile. A Qt/Symbian app is something very Continue reading The first tips you ll need before start programming for…
I have two computers: a Macbook with Snow Leopard, that sometimes I carry with me, and a computer at home with an Atom processor and running Linux that is my media server and downloader. If I need to download something that will take too much time, I put this second computer to download: it has Continue reading Using Automator to make your life with Transmission easier
A few months ago, I submitted my personal audio player project Audactile to the Nokia s Qt Ambassador program. They seem to have liked it and I was accepted into the program. The good surprise is that they sent me a Qt Ambassador kit: a t-shirt, some stickers and a Nokia C7 mobile phone. The pictures Continue reading The Qt Ambassador Kit and my first impressions of Nokia C7
You can use dpkg to list all the packages that are selected on your Debian or Ubuntu system: [sourcecode language= plain ]# dpkg get-selections[/sourcecode] But today I needed a way to list only the installed packages in just one line, so I could copy their names and use apt-get to install the same packages on another system. Continue reading Listing the packages on Debian/Ubuntu in one line