FizzBuzz in One MySQL Statement

mysql

I was thinking recently that it would funny to implement FizzBuzz using only a single MySQL statement.  FizzBuzz is a simple test that a programmer might run into at a job interview.  They may be asked to implement FizzBuzz in a specific language or with pseudo-code, depending on the interview.  For whatever reason FizzBuzz tends to […]

Leave a comment Continue Reading →

Compile PHP Extensions for MAMP

mamp

Compiling a PHP extension (shared object / module) from source for MAMP requires a bit of special configuration.  If you follow the standard instructions to phpize, configure and make the .so file then you’ll most likely end up with a module that’s incompatible with MAMP due to the fact that it is compiled for whichever […]

Leave a comment Continue Reading →

Not Knowing What Else To Do, I Baked A Cake

screenshot-1

In the wake of the 9/11 tragedy the Onion posted an article entitled Not Knowing What Else To Do, Woman Bakes American Flag Cake.  With all of the recent press about the NSA’s programs to gather information on American citizens without warrants, I found myself thinking about that article.  I’m not a very particularly political […]

3 Comments Continue Reading →

SVN Command Reference

images

This is a random collection of SVN functions, in no particular order.  They’re here for my own selfish reference purposes: View all files not in version control: svn status | grep “^\?” | awk “{print \$2}” Manually add files to SVN Ignore List: export SVN_EDITOR=vim svn propedit svn:ignore /path/to/directory  

Leave a comment Continue Reading →

Install Ngnix on OSX 10.8 Mountain Lion

nginx

Ngnix is (among other things) a web server that uses an asynchronous event-driven approach to handling requests, instead of the Apache HTTP Server model that defaults to a threaded or process-oriented approach. Nginx’s event-driven approach can provide more predictable performance under high loads. This how-to explains installing Ngnix on OSX Mountain Lion using Homebrew. Ngnix […]

Leave a comment Continue Reading →