Wobsite

– write about it on your Blag: Read more ›




Git Bash script to ensure LF before committing

I’m using Git for a big folder of my notes, which I prefer to keep in unix file-format.  Occasionally I’m adding in files that have CRLF, which I could let Git deal with, but I prefer to tidy them before committing, so I wrote a Git Bash one-liner to find them, and wrapped a script around it. Read more ›




Git merge in a smaller repository

I’m using local-only (ie no remotes) Git repositories for quite a few directories – mostly my notes, but some code, and some LaTeX documents. I make heavy use of .gitignore to screen out non-texty files. I decided to make my IT notes directory into a super-repository, and I wanted it to seamlessly pick up the history of a sub-directory that had been a Git repository on its own. Read more ›




reset Dropbox conflicted copies with Windows PowerShell

My Dropbox account was unattached from my Dropbox directory on my netbook for a while, but I updated many text files on my netbook, so that when I re-installed Dropbox, it renamed my changes like this: Read more ›




Pandoc md to pdf with better headings

I keep my notes mostly in one Git’d folder of markdown files, which is vastly quicker and easier than my old WYSIWYG word-processed noting system.  I write and navigate my md’d notes in gVim.  For wide convertablility across markdown engines, I only use markdown headings down to the 4th level.  This was working fine until I put some lyrics directly under a 4th level heading and converted the md file to pdf. Read more ›




A huge Powershell one-liner for Pandoc pdf-ing

So I have a directory containing markdown files, and also subdirectories, and sub-subdirectories, and so on, all containing my markdown files that I keep personal notes in. I find this an incredibly effective system as I can swiftly move around, search and edit these files in gVim. This directory is easily copyable to my smartphones, which can easily open text files in various ways, but sometimes pdf is simpler to open and search on a smartphone. So I would like all of these markdown files to be converted (by Pandoc) to pdf, and I would like to do this from time to time, efficiently. This would be helpful for use on my smartphones but have the added benefit that if I want someone else to access my personal notes, they’d be in both markdown and pdf format, which would be much easier for everyone. Read more ›




Color-highlight selected letters in LaTeX

I intentionally produced my latex leaflet to promote myself as an actor with reduced coloration, but I had an idea to have some letters throughout the text coloured, just to amuse.   My first attempt was to replace all occurances of “et” (French for “and”…) in the text with \textcolor{Red}{et}.  This was fairly quick to do with the power of gVim, and I quite liked the pdf output result, but not the visual mess in the tex file.  I looked for a way to semi-automate it in LaTeX, and found Sh3ljohn’s helpful StackExchange question, which got me thinking that I could colour-highlight these letters throughout my leaflet: J H T j h t. Read more ›




labelling with ImageMagick

I’ve been batch processing hundreds of images, homing in on the most useful ones for my bricoleur ludique website.  My Perl script jpgMagick.pl has proved an exceedingly useful tool. Here, I describe how to create a simple transparent label to add to images. Read more ›




a LaTeX leaflet

It took a while, but I’ve got the hang of LaTeX, such that it’s now my choice for documents that need more than a little formatting.  I also, somewhat to my surprise, use it occasionally to make up a pdf from a sequence of jpegs – no text, just page numbering. Read more ›




Concrete5 themes

I consider Concrete5 an excellent CMS for a less blog-oriented website, and it’s the one I chose for my first ever website, and I’m very happy with its quick functionality. There are some creases that I’ve not yet ironed out, like better control of spacing, but they’re not serious.  With Concrete5, everything’s in blocks of content that you can easily adjust to your liking just by logging into the page your on and making some changes in a visual way, a bit like in DTP. Read more ›