Restart Emacs on System Startup

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. So I whipped up this tiny bash script 1 2 3 4 5 6 #!...

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....

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....

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 …...

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....

September 17, 2022 · Mario Jason Braganza