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.
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:
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
Which is much more reasonable, and I would be much happier to link.
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)
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 :)