My Year Of Linux

Toward the end of last year, I think that I reached the point that many developers have reached having worked on Windows machines for so long. The ability that Windows has to infuriate the user(read: me) has finally outweighed its usefulness. That led to the question of which OS…

Building Atom for 64-bit Arch Linux

As most people have heard, Github open-sourced their new text editor Atom a few days ago. What you may not know, or care if you have OS X, is that since Atom is now open-source you can build it for other platforms. Github has some base instructions posted here, but…

Fog Creek Hashing Puzzle

A few days ago, Fog Creek Software posted a really cool puzzle on their software developer jobs page. The problem is as follows: Find a 9 letter string of characters that contains only letters from acdegilmnoprstuw such that the hash(the_string) is 910897038977002 if hash() is defined by the…

Unwrapping a matrix in a spiral pattern

This is my solution to a Programming Praxis exercise that was posted a while back. Given a potentially non-square matrix, write a function that returns its elements in a spiral pattern. For example, given the matrix: [ [ 1, 2, 3, 4], [ 5, 6, 7, 8], [ 9, 10, 11, 12], [13, 14…

Identify the movie from a Perl snippet

Inspired by this gist from a little while ago, I decided to make a listing that was mostly Perl (there are a couple in HTML and sh for our web and sys guys). How many did you get correct? # 1 sub save { .. } my $r = Ryan->new; save($r); # 2…

How many chops does it take Hercules to kill an N-headed Hydra?

I came across a pretty interesting little puzzle yesterday posted on Hacker News, written by Tejas Dinkar. The problem was stated as follows: You are Hercules, about to fight the dreaded Hydra. The Hydra has 9 heads. When a head is chopped off, it spawns 8 more heads. When one…