TIL: The Difference Between a CLI Tool and a Freeze Tool

I keep writing these tiny utilities for myself in Python and while I love writing in Python, I definitely don’t enjoy the little war dance I have to do everytime I want to run it on a new machine. Keeping track of virtual environments, and then installing packages in them, quickly gets tiresome. I want to just run the program once I’m done with it. Like a C program. Or Rust. Or Go. ...

March 1, 2023 · Mario Jason Braganza

What I Learned Today (14th of February, 2023)

Happy Valentine’s all you lovely people! :) Hugo Upgraded to the latest Papermod theme on the website Devops Installed Fedora in a VM on my machine in order to do Devopsy work Python Learnt about the object() function. If I want an native something to use later, I can always cast to an basic object (x = object()) and use it. Best to use it, when using None would cause ambiguities. Read more here Urdu Did the “fe” group today. Physical Fitness Had a good workout. Worked my core. Feedback on this post? Mail me at feedback@janusworx.com 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. ...

February 14, 2023 · Mario Jason Braganza

What I Learned Today (13th of February, 2023)

Nothing. Nothing. Absolutely nothing! I didn’t feel well today. So I went to bed. Did log my usual weekly, books and fitness entries though.1 Urdu Did the “ain” / “gain” group. Had fun, trying to pronounce the fricative gh (/ɣ/) sound. Emacs Just a little note of gratitude to the community over at Emacslife Me, thinking out aloud in the last part of this section, led to several folks emailing me with kind and encouraging words. ...

February 13, 2023 · Mario Jason Braganza

What I Learned Today (11th of February, 2023)

Rest day! Not doing much! Emacs It works! Yesterday’s little hack, to clock in and out when I change state works well! It doesn’t seem to have broken anything. Also I added a WORKING state, and tagged my function to that. The clock in and out happen when I switch in an out of the WORKING state. Because I want my parent task to show IN_PROGRESS and the current subtask to be what I am working on. Like so … ...

February 11, 2023 · Mario Jason Braganza

What I Learned Today (10th of February, 2023)

Decided to play hooky today, because I got up reallly late and then I got stuff at home to do. Emacs Since I was playing hooky with my time and attention anyway, I decided to see, if I could tackle this little thing, I wanted to happen with my Org Mode. Everytime I move my TODO status for a task to IN_PROGRESS, I want Org to automatically clock in for me. And everytime I move out of the IN_PROGRESS state, I wanted it to clock out. This is because I want a one step process. I don’t want to change state and then clock in too. And I want it this way, because changing states and telling my program, that I’m going to work on this, here, task now is more natural to me, than clocking in and out. A whole day of reading and searching later, I stumbled across this gem on the Emacs StackExchange site which did exactly what I was looking to do. I stole it, twiddled a bit with the variable and function names and added it to the file that handles my Org config. This is it, in its entirety (add-hook 'org-after-todo-state-change-hook 'mjb/org-clock-todo-change) (defun mjb/org-clock-todo-change () (if (string= org-state "IN_PROGRESS") (org-clock-in) (org-clock-out-if-current))) And this works! For now. If something comes up, I’ll figure it out. Which brings me to the figuring out part. Doing this today has left me conflicted. In the old life, this is exactly how I’d do it. But ever since I’ve been learning to write code, I feel like this is something I should be able to do. But there’s only so much life and so much I want. I want the results today, and learning and writing Lisp is not going to happen in a jiffy. Right now my priorities are Devops related tasks. So I’ve just taken the pragmatic way out for now, and used code I found. Urdu Learnt about the “suaad” group. And also learnt that Urdu is just as crazy as English. There are three, count ’em, three ways of making the S sound and no particular rhyme or reason to them, save history :) ...

February 10, 2023 · Mario Jason Braganza

What I Learned Today (9th of February, 2023)

Regex Started doing regex exercises, so i don’t get bored doing only python. will alternate them for now Using Practice Makes Regexp. I have only the book though. It’s now expanded to include video solutions too. Highly recommend any of Reuven’s courses Set up environment and did one exercise which was to look up the user’s input in a dictionary (a word dictionary. not a programming dictionary) Linux Mint Yesterday’s work was for naught Devops Kubernetes, began doing some exercises Set up the environment today Spoke with a friend about practicing Ansible / Devops stuff Learnt about putting in environment variables into a docker compose file and then using them in a Django container Hugo Diddled with the code element font size on the blog, to make it look a little larger Urdu Learnt about the “tashdiid” symbol that helps add emphasis to a consonant Physical Fitness Nearing the end of my month long journey. Have gotten over the pain hump, but the personal trainer isn’t quite sympatico with my needs. He’s a good egg, but we seem to be talking past each other. Wonder what to do when my time is up mid week next. Did legs today. Went well. Jogged 10m after. Walked 30m after that. Feedback on this post? Mail me at feedback@janusworx.com 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. ...

February 9, 2023 · Mario Jason Braganza