Writing
Notes on building software — the decisions that age well, the ones that don't, and what I learn in between.
-
PHP Paypal IPN Script
Simple script for posting a valid response back to Paypal service after a sale is completed using the Paypal Instant Checkout payment method. I grabbed this script from Paypal Docs... I never can...
-
Listing Files and Directories with PHP
Listing all files and directories using PHP 5.
-
Highlight String in PHP
Function for highlighting text/strings in PHP. Will output something like this [caption id="" align="alignnone" width="345" caption="Highlighted PHP.Net"] [/caption] \\\Notice all the styles are...
-
Absolutize Relative Links Using PHP and Preg_Replace_Callback
I was in the market for a simple php script to replace hrefs with their absolute paths from scraped web pages. I wrote one myself. I used the preg\replace\callback function so that I could pass the...
-
Hello Rack
What is Rack? Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and...
-
The survey for people who make websites
I took the survey! Click here to take it →
-
Placing an Authenticity Token in a Rails Form
-
Managing Timestamps in MySQL with a Trigger
MySQL doesn't support having two columns with time stamping on both initialization and/or on updating at the same time. It would be nice to be able to do \this\ where the created\at column gets the...
-
Grab a Twitter Status without the Twitter API
Quick and dirty way to grab the users status messages without having to go through the twitter api (not having to authenticate that is). You can grab the RSS feed and indicate the number of...
-
Mod_Python and Web.py on Ubuntu
Download First install mod\python for Apache and then restart/reload the server. Next grab the web.py framework from webpy.org. You can grab the tar or use easy\install depending on your setup....
-
Updating Your Twitter Status with cURL and a Bash Function
I'm usually at the command line so I wrote a little a bash function so that i can type and it will update my twitter status! some characters trip it up but in general it's useful for most of my...
-
Me in 3D
My friend Andy made this 3D rendering of me using LIDAR (Laser Detection and Ranging). In the first image you can see me holding up my hand along with a number of file cabinets. The cube in the...
-
Ruby on Rails, jQuery and YUI API Docs Available as Mac OS X Dictionary Binaries
I came across an awesome tool this morning. Priit Haamer has chunked Ruby on Rails, jQuery, and some of YUI documentation into native Mac OS X dictionary binaries. This lets you search those API...
-
My First Data Visualization McCain V. Obama Election Results
Here is my first data visualization. I used the Processing programming language and an SVG map of the United States.
-
Reading, Writing, Removing Files and Directories in Ruby
These aren't all of them, but I think they are some of the most useful.