The Lair

Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup

parsing URLs

December 19th, 2007

There are lots of things that you’d want computers to simplify for you - but the obvious methods for simplification don’t actually work. For example, finding out if a user entered email is actually valid. The description and code involved (see here and the monstrous chunk of code here) belies the apparent simplicity of the task.

So it was for my own little task. What I wanted to do was write a general purpose method (in PHP, actually - but the language itself is unimportant) to infer the blog address, given a permalink. So, given any post URL - I wanted to find the address of the blog itself. You’d think that this was a relatively straightforward task. But, if the preamble didn’t alert you already, it wasn’t quite as simple as I first envisaged.

Read the rest of this entry »

for the greater good?

May 21st, 2007

Well, that was a spectacularly unamusing week, right there. So much so that a fairly crappy Monday (as per usual) is looking positively rosy in comparison. Some of the Ach stuff has been brewing for a while, so I thought I’d externalize the accumulated angst once and for all by writing about it. Elliptically, of course.

Read the rest of this entry »

kochchi

April 1st, 2007

I think the botanical name is Capsicum frutescens but I could be mistaken on this. Google isn’t being very helpful.

Feel the burn, people.

Oh and if you don’t know what I’m talking about, then you’re well out of it.