Putting Emacs Backup Files in a Separate Location

Whenever Emacs saves a file, it makes a backup of the original. So if I had a file.txt and I make changes and save it, Emacs firsts backs up the original to file.txt~. While I love this functionality, and it has saved me from a pickle more than once, I don’t love the way my folders get polluted with ~ files all over the place. My blog’s drafts folder had hundreds of these. ...

November 17, 2020 · Mario Jason Braganza

A Day of Updates

Could not focus much on programming today. So decided on doing things with Python programs. Nikola Upgrade I use Nikola to generate both my websites. It is an extremely easy to use, no fuss static site generator, which is easy on my server’s resources. Version 8.1.2 was released a few hours ago and I hopped on and installed it. I follow a slightly unconventional upgrade path, because I was terrified of breaking my server in the early days, when I was still learning about how to go about installing things on servers. ...

November 16, 2020 · Mario Jason Braganza

What I Learnt from Antifragile (III)

This post was sent to my newsletter on October 25th, 2020. You really ought to subscribe :) What I Learnt from Antifragile (III) What Does Not Kill Me … Antifragility for the Collective What does not kill me makes me stronger. — Friedrich Nietzsche, Maxims and Arrows The world breaks everyone and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry. — Ernest Hemingway, A Farewell to Arms ...

November 15, 2020 · Mario Jason Braganza

Git the Branch

I started playing with a way to control Git via Python. Kushal had asked me to write a program, that would show me the local git branches. So here it is! I call it Git the Branch. (painfully, punny, I know :)) And now I realise why he asked me to do this. The program itself is trivial. Here’s the code on my code repo, Gitlab, and Github. It just consists of me using GitPython to access the current folder via a GitPython Repo object. And then querying it for its branches. ...

November 13, 2020 · Mario Jason Braganza

Poem Feed

Update, 2020/11/13: This has been working beautifully! I love the poems as they show up in my feed. This is a tiny little niche thing, I built all for my ownsome. It all started, when I got hooked on reading the daily poem, on the Poetry Foundation page. Learning Python as I am, I wondered if there was a way to have it come to my RSS reader. And so Poemfeed is a tiny little utility that does just that for me. ...

November 13, 2020 · Mario Jason Braganza

Starting Work on Git-the-Branch

The Itch Aiming to write a tool using this which will show all the git branches in the current directory and the last commit date on those branches (and only the local branches :)) What I did today I had to carry my phone in to the service centre, so I did not quite have as much focussed time as yesterday, with all the coordinating and carrying, but I learned a few new things ...

November 12, 2020 · Mario Jason Braganza