Customise your Internet


It's quite hard to have your own piece of internet these days. Blogging isn't easy, even if you don't have many readers. Sites ran by companies don't let you have your own piece, and they're made less usable by attempts to track the movement of your eyeballs and the like. My reader, I know you are yearning for something different. This post will teach you how to make bits of the modern Internet into what you may want them to be.

Continue reading Customise your Internet...

Upgrade from object-oriented to functional programming with this weird trick


Picasso was a great man, but fond of exaggeration, so I always take it with a pinch of salt when people say it took him a lifetime to learn to draw like a child. As you might have guessed already, this post will be about me, and how I write Perl, and tracing the influence of my early periods of being sold on Haskell at university, training myself to appear worthy at interviews, and subsequently becomming a maintenance Java programmer.

Continue reading Upgrade from object-oriented to functional programming with this weird trick...

Between bash and text editor


When you have a long command you need to type correctly, and you only have left, right and backspace to navigate, it can soon feel tiresome. I wouldn't want you to tell all your friends you gave command line a go but it was like some caveman alternative to Microsoft Office products. When typing a command you can move it to a text editor with "hold-ctrl-press-x-then-e", and that's what the post is about.

Continue reading Between bash and text editor...

Extra functionality through pipes


Sometimes the programs you are running aren't as fully featured as you need them to be. If it's your program, extend it to do work like you want it, the ad-hoc extensions will make it soon feel like a warm worn-in shoe. If it's not your program, and the missing feature is correctness, just fix your copy, and submit the fix to the author. Otherwise add the extra functionality outside, with an appropriate contraption. Here's a couple from me, based around pipes.

Continue reading Extra functionality through pipes...

How to parse XML with regular expressions


There is a belief, especially popular under university graduates with heads full of Noam Chomsky, in the inherent hierarchy of grammars, and there are people out there who think it's something that has to be followed. Obey the hierarchy, they tell you. I suggest you hear them out, learn what is there to be learned, and then reply, I didn't know there were any rules about this. Dear reader, you are my fellow human and I want you to be strong and empowered. I'm gonna show you how to parse XML with regular expressions, and then you can make your own choices.

Continue reading How to parse XML with regular expressions...