macOS Tales


Quick tip – How to quickly read just the last lines of a huge text file

Quick tip – How to quickly read just the last lines of a huge text file

If you’re a developer or a systems administrator, sooner or later you will meet that HUUUGE, GIANT, ENORMOUS file. A file that weights several gigabytes of more or less cryptic system or application logging messages, with no rotation scheme in place. Since log files are usually built by appending the most recent information to the end, probably you just need to check out the last 100 or 1000 lines, in order to find out why an application has crashed or failed to operate properly some seconds or a minute ago. Turns out that reading such huge files may not be as simple as editing them in Notepad. Probably, an application like that won’t even be able to the file. So, what else can you do?
Reading time: 1 minute
Get started with Vim!

Get started with Vim!

This is the tutorial I wish I had around some years ago, when I first tried to learn how to use Vim. If you’re just beginning to know this amazing text editor, please keep reading, I am writing this tutorial right for you!
Reading time: 7 minutes
Graphical User Interfaces on Python with tkinter

Graphical User Interfaces on Python with tkinter

This Wednesday, 1 August, I did a brief presentation on GUI programming on Python with Tkinter, at Blip.PT, during a Summer Talks event promoted together by DevOps Porto and Python Porto. This article puts together the main topics from my presentation, and adds a few details that I couldn’t fit in the short time of that session.
Reading time: 13 minutes
Python to the rescue!

Python to the rescue!

One day you find yourself in a situation you need to set up an automatic backup system and you realise that your old server does not support Dropbox anymore. The sollution: getting your hands to work and write a program for that task.
Reading time: 2 minutes