[quickie] Regex for tags missing attribute

So to find images missing alt attributes:

There are groups in there so you can do a find/replace and insert the missing tag:

Now it is trivial to find the missing alt=”” tags, add them, and then fill them in by then searching for the empty attribute…

Set Diffmerge as Diff/Merge tool for Git

From the command line run each of these. You don’t need to be in particular directory.

Thus will work for *nix flavours including OSX. May not work on Window boxes or flower beds.

Now, whenever you want it to launch diffs just use difftool where you’d normally use diff:

N.B. These commands need to be run from the relevant directory for the project

To resolve merge conflicts, just run git mergetool:



Literary Javascript

A most amusing post comparing the theoretical code authoring styles of famous authors.


Free SSL Certificate? Oh all right then…

Owning a web server that has its own SSL certificate from a registered Certificate Authority (so it won’t trigger any browser warnings) does have its advantages. However, the price of a certificate issued by Verisign or a similar vendor usually tends to put a quick end to such fanciful ideas. Israeli vendor StartSSL offers free SSL server certificates that are valid for a year.


*nix: “Multi-terminal” Screen config

I’ve been using screen a lot lately for it’s ability to have multiple terminal ‘windows’ open in one ssh session.

I came across this .screenrc file – at http://pastebin.com/853JXscd – and I’ve found it quite useful – the handiest thing is having the screen status bar by default.

Just save it as .screenrc in your home directory

Prism – JS/CSS Syntax Highlighting

Looks great.

Well, the dark theme is a bit, shall we say, chocolate-y, and the funky theme is a horrific 80’s headfuck (if slightly amusing), but hey, CSS is CSS so you can change that. The default theme is perfectly tasteful. More importantly it’s lightweight, fast and extensible. I should add it to this blog sometime.


[edit 2016-07] I use Crayon for wordpress these days, but Prism is still a great highlighter for adding to your own build  [/edit]