Outside of an academic and professional context, where I give my best effort to complete tasks given to me, I finish surprisingly few projects.

There are a few of reasons for this.

Read more


In practically every language I actively use, there are two functions named 'min' and 'max' that for the moment are the bane of my existence.

Both functions choose the min or the max of their parameters respectively.

However, often you'll find yourself using these functions to define a minimum or maximum. At this point the naming becomes horribly ambiguous, as you use the min function to define a maximum value (upper bound, in this case 10)

$foo = min($bar, 10);

or the max function to define a minimum value

$foo = max(0, $bar);

Some less ambiguous names could have been 'lowest' and 'highest', though given how widespread this crummy min/max naming convention is, I doubt we'll ever see the two of these find popular usage.


I've been doing Udacity's "Introduction to Parallel Programming" for the last couple of weeks.

I've now finished Unit 2 (though I still have some optimizing to do)

While writing my submission for Problem Set #2, I grew tired of the Udacity's IDE. Until now I had been writing my solutions in my text editor of choice, then copy/pasting to the IDE to submit.

I finally decided to remove Udacity's IDE from the equation altogether, and I've now placed the hacky script I made to do so on github for anybody who's interested.


Does anybody else find themselves sanitizing the URLs from websites to remove extraneous data when they link them to others?

Take, for example, Amazon's URLs. Clicking the 'Glittering Gifts' link on their homepage gives you this amazing URL:

http://www.amazon.com/l/5725046011/ref=amb_link_370432982_2/175-9357859-8262830?_encoding=UTF8&nav_sdd=aps&pf_rd_m=ATVPDKIKX0DER&pf_rd_s=center-B1&pf_rd_r=0625JRT67YC63P36CFS7&pf_rd_t=101&pf_rd_p=1480628862&pf_rd_i=507846

This URL puts me off from linking to Amazon.com because it means I'm going to have to sanitize the URL because I don't know if it contains any personally identify information.

In the above example, the URL can be truncated to just

http://www.amazon.com/l/5725046011/

Which is much more reasonable, and I would be much happier to link.

Read more


I've just finished writing this blog! (software, not post)

The blog uses Symfony2 and Doctrine2 as a foundation

Blog posts are rendered using Sundown and Pygments (Thanks to Kwattro's MarkdownBundle)

The layout is based on Twitter's Bootstrap, with Bootswatch's Cosmo theme on top of it. The design is responsive.

Git is used for source control (as though I had to say it?) and deployment is almost completely automated using Capifony

Fingers crossed this blog will lead to me contributing more to the community this year :)