## Multiline Regex Search in VS Code

This is a picture of my notes, when I import them in from the Kindle. And every time I have to corral them into some sort of structure or write a blog post, I needed to laboriously get rid of all the Kindle metadata with multiple searches (and replaces.) I mean these lines ========== Draft No. 4 (John McPhee) - Your Highlight on page 27 | location 406-407 | Added on Sunday, 15 August 2021 12:43:15 But having learnt Regex about a year ago, I have been using it on and off and have come to appreciate the power it offers....

August 16, 2021 · Mario Jason Braganza

## Joining Two Images Using ImageMagick

Sometimes, I want to share snippets of what I am reading with my friends. Kindles make it easy, with screenshots. The only issue being I want to share the full length of two pages, like I’d do if I was reading a book. And I need it often enough, that I felt I needed to go figure out some way to do it. It was an easy-ish hack on the mac with printing with Preview....

August 6, 2021 · Mario Jason Braganza

## Reset Confirmations in Calibre

I have been deleting too many books by mistake, now a days. Past Jason might have been pretty sure about what he wanted, but I sure as heck am not. So I had to do a bit of spelunking to figure out how to get the delete book option to confirm first. All I needed to do was Preferences -> Behaviour -> Reset all disabled confirmation dialogs Et voilà, Calibre now asks me if I am sure about deleting my books :)

August 2, 2021 · Mario Jason Braganza

## A Transcript of Seth Godin’s Akimbo Episode on Blogging

If you haven’t subscribed to Seth Godin’s podcast already, well then what on earth are you doing? I’d written about it here on the home blog and you can go subscribe here. This episode (Season 2, Episode 1) on blogging is very important to me. I think it’s a distillation of all of Seth’s thoughts about writing and blogging in a crisp, crackling 20 minute episode. I wanted this for permanant reference, so I thought, I’d transcribe it for myself, and then I thought, well, if it helps me, it’ll surely help others....

June 17, 2018 · Mario Jason Braganza

## Programming, Day 3, Setting up VS Code to launch from the Command Line in OS X

Problem: I wanted to launch Microsoft’s Visual Studio Code from the command line at will. What I did: Launch VS Code Hit cmd-shift-p (⌘-⇧-P) Begin to type Shell … and choose and execute “Shell Command: Install ‘code’ command in PATH” Launch Terminal and check to see if VS Code launches by typing the code command. Edit the .bash_profile file in the home folder and change the $EDITOR variable like so … # Setting Visual Studio Code as$EDITOR...

June 5, 2018 · Mario Jason Braganza

## MathJax on a Ghost Blog

*** Everything below is broken. Kept just for posterity *** Install this script into the footer in the Code Injection section <script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/latest.js?config=TeX-MML-AM_CHTML"> </script> (that should autoupdate MathJax versions or if it all breaks and goes to hell, get the latest install instructions here) If I’ve done this right, this little piece of LaTeX should give me the quadratic equation $$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$$ $$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$$ Et voila!

April 20, 2018 · Mario Jason Braganza

## Booting CentOS into Graphical or Command Line Mode by default

Ok, now that I’ve installed CentOS, I decided to install X Windows. And like Rip Van Winkle, I learnt that a lot has changed in 20 years :) A windowing environment was easy to install … sudo yum groupinstall "Gnome Desktop" and the trusty old startx & gave me a Windowing Environment (which I have yet to explore) However, switching permanantly to graphics mode (or vice versa) wasn’t so easy....

March 13, 2018 · Mario Jason Braganza

## Creating a bootable Linux USB installer disk from an ISO on the Mac

I got myself a new pc to learn Linux and do all my crazy experimenting on. What’d I use as my primary OS? Why CentOS, ofcourse. Two reasons … These are long term, slow stable releases, just the way I like my software to be. My last exposure to Linux was Red Hat Linux v5 & 6 way back when1. CentOS looks familiar enough to ease my apprehensions. First step on the way, was getting the OS installed on the machine....

March 11, 2018 · Mario Jason Braganza

## User specific Inbound and Outbound Routing of Email for Google Apps

Writing this up, for future dumb me. I wanted to be able to archive my Google Apps account (just me on my domain) to somewhere else on a sorta-kinda automatic basis. I also did not want to make domain wide changes, because I don’t want to affect any future users I might add to my Google Apps account. What I want: Archive all my incoming and outgoing mail (on Google Apps) to another cloud account...

January 9, 2018 · Mario Jason Braganza