Restart Emacs on System Startup

This post was originaly published on 2022-09-27. Updated 2022-09-28, to include the improved script. It’s been a year, since I figured out the hack that finally let me use my Compose key in Emacs.1 Without it, I am unable to type any kind of quotation marks or umlauts in emacs. A year in, and I’m tired of restarting the service everytime the machine comes on. The computer can do that for me. ...

September 28, 2022 · Mario Jason Braganza

11

As is our wont, we spent the day gallivanting in a jungle and having an accident. And then crying for a while and then laughing about what a story it would be for the rest of our lives. Much like our marriage. We make the best stories, don’t we? And I am who I am, because of you. Eleven years, and it still feels like only yesterday. 1 I love you. ...

September 27, 2022 · Mario Jason Braganza

Blocks in Org Mode

I remember, when I first learned it, the Org Manual mentioning I could have code, quotes, poetry and sundry self structured blocks of text, where the text in that block would flow like I wanted it to. I could have indentation or line breaks as I pleased. And then I promptly forgot about it. The only thing I did remember were code blocks. And that I needed to do a #+begin_src and then a #+end_src and put my code in the middle. And all this while, I would keep typing it in, by hand. ...

September 27, 2022 · Mario Jason Braganza

Links to Writing of Interest

Been meaning to write up a short note to some of my writing to point folks to. So here goes. This serves as a mélange of the things I write and interest me. I’ve coauthored a book on linux, Linux for You and Me Related HN discussion My blog at Janusworx Learning about Cross Site Request Forgery (CSRF) Protection in Django Models in Django (and heuristics for creating optimal models) Python Advanced Objects Iterators and Generators in Python Python Comprehensions Miniflux Fails to Start at Boot I have written long form articles, to serve as teaching material for Linux Users’ Group of Durgapur Blogging IRC on the Web P.S. Subscribe to my mailing list! Forward these posts and letters to your friends and get them to subscribe! P.P.S. Feed my insatiable reading habit. ...

September 25, 2022 · Mario Jason Braganza

Exclude Files and Folders From an Rsync Copy

I’ve been sticking to plain old rsync -az to sling files around using Rsync. Until I ran into a hiccough today, where I filled up my teensy remote storage on the Pi, because a couple of subdirectories that were part of the run, were hundreds of megabytes large.1 So I did the usual, did hunt around the web thing, and learnt about --exclude So now the new Rsync command is … rsync -az src dest --exclude={'excluded_dir_1','excluded_dir_2'} ...

September 18, 2022 · Mario Jason Braganza

Line Numbers in Hugo Codeblocks

I want my code blocks on the blog to sometimes have line numbers. Looking at the Hugo docs here and here led me to the linenos argument. While we’d start our code blocks like (```python)1, all I need more is to add the line number argument like so. Vanilla code block … print(f""" “It’s silly to try to escape other people’s faults. They are inescapable. Just try to escape your own.” — Marcus Aurelius """) print(f""" “Just that you do the right thing. The rest doesn’t matter.” – Marcus Aurelius """) Now, using the linenos option, I can be all fancy to show … ...

September 17, 2022 · Mario Jason Braganza