Tomorrow is Another Date

Org mode is slowly spreading its tentacles increasingly becoming something, I cannot live without, to manage my day. And I’m getting pretty consistent with it too! Like you see above, I use dates as my headlines, below which I list the various tasks for the day.1 And that’s where I run into my current itch to scratch. ...

July 31, 2022 · Mario Jason Braganza

Emacsclient Does Not Recognise Compose Key Sequences

Originally published 2021/10/27. Updated to include the .xssessionsrc point I run pretty often into this issue, so this is a checklist for me. Issue being, that I cannot use Compose key sequences to type out the characters I need. Case in point being, the apostrophe ’ and the quote marks “” , ‘’ that I use, all the live long day. Make sure that emacs is running as a service. It runs in your user, so check status with systemctl --user status emacs.service Do the normal computer user thing. Restart the service.systemctl --user restart emacs.service.1 Make sure the system is UTF-8 everywhere. (en_IN.UTF-8 does not work for me. Make sure it’s en_US.UTF-8) One place that Emacs looks is the .xsessionrc file in the home folder. These are the contents of mine. My Emacs refuses to let the compose key sequences work, unless it’s present LC_NUMERIC=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 LC_TIME=en_US.UTF-8 PAPERSIZE=a4 LANGUAGE=en_US LANG=en_US.UTF-8 if [ $DISPLAY != ":0" ] then export XAUTHORITY=${HOME}/.Xauthority fi This should do the trick 99% of the time. ...

July 31, 2022 · Mario Jason Braganza

Installing PyCLD3 on an Apple M1 Mac

While building my work product on the fancy-schmancy M1 work Mac, I kept running into clang errors, when I did a pip install Turns out, PyCLD3 would not build. So I did it manually. This tip on Github did the trick We need brew installed. And then we run the following commands in a terminal … brew install protobuf #install protobuf # set various compiler flags export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 export CFLAGS='-I /opt/homebrew/opt/protobuf/include' export LDFLAGS=-L/opt/homebrew/opt/protobuf/lib # install pycld3 python3 -m pip install pycld3 And we’re set! ...

March 30, 2022 · Mario Jason Braganza

Raspberry Pi 4 Not Accessible After a Reboot

Update: 28/12/2021 The solution? Move off the 64 bit Raspberry Pi OS and install Ubuntu. Everything below is now just for history and context :) Every time I update my Pi, whether it be an kernel update or due to something goofy I do, it refuses to be accessible via ssh after it boots back up. And everytime I bring it back to my desk, it just works. And when I put it back into its niche, by the door, it continues to work. But inevitably, sooner or later, comes a reboot, and we’re back to being inaccessible. No ssh, no plex, no network. ...

December 28, 2021 · Mario Jason Braganza

Basic Docker Image Management Pointers

Stuff for future Jason to take note, when he tries to redo his Huginn instance … I wanted a quick and easy way to install it, without messing up my base system much, so I chose the Docker route. Now, I don’t know the A or D of Docker, so these quick notes for me to remember in the future. I need to install Docker rootless, and bring it up as a systemd service. If I want persistent data, I should create a Docker volume. Create an env file to hold all the secrets that I want to pass to the container I need to run and create my huggins instance first, give it a name, pass the env file and also remembering to mount the volume at the place I need I can then start and stop the image with the name I assigned it. I need to then tag the image with a policy to restart automatically So everytime Docker comes up, it will start the container automatically. 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. ...

November 28, 2021 · Mario Jason Braganza

Using Regex to Prepend to Titles in Calibre

So I do this peculiar thing, where I prepend the author’s initials to the title of every book I add to Calibre.1 2 And all these years, I’ve just been manually editing the metadata, everytime I added a book, and changing the titles to what I want. It’s not a problem if it’s just one book, but I normally tend to go hogwild with authors, normally buying out / downloading all their work. And now that I’ve learnt the basics of the hammer called regex, I wanted to see, you guessed it, if there was a way to quickly do this using regular expressions in Caliber, which has inbuilt support for regexes. ...

November 20, 2021 · Mario Jason Braganza