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

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

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

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

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