Writing
Notes on building software — the decisions that age well, the ones that don't, and what I learn in between.
-
Adding RSS Graffiti to my Facebook Page
I added the RSS Graffiti application to my Facebook account. It's a nifty app that lets you add any valid Rss/Atom feed to your profile (includes publishing to your wall) and to your pages.
-
Accessing Links in Nested TD Cells with Prototype
There must be a better way to do the following with PrototypeJS. I want to loop over nested links inside of table td cells and apply a class to the row that the link is in when the link is clicked....
-
How to Install a Ruby Package without Ri or RDoc
-
Descending Sort By in Model For Active Record Hash on Created_at attribute
If you have a couple collections from the database and you want to sort it without the help of Active Record, take a look at the sort\by method on Array type. I've used this before when I have a...
-
Output Logger and SQL to the Rails Console in Development Mode
If you want to take a look at the SQL being generated by active record while your using the console, you can either type this into the console when it loads Or you can add it to your environment so...
-
TinyMCE Rich Text Editor: HELLO EDITOR Plugin Tutorial and Example
I wanted to create a button for the TinyMCE Rich Text Editor for Wordpress. It was tough to find good docs on the subject. There are a couple of useful posts out there but in general I found them...
-
Disk Usage Information on Mac OS X
Get disk usage information about the Desktop Information about how much free space is available on computer You can read more about the flags with the man pages This is my 100th post!!!
-
Working with Branches in Git
Show all the branches Create a new branch Use that branch Pushing the new branch to a remote server Pulling that branch down on another machine Listing all branches on other machine Updating other...
-
A Through Z
How to print the alphabet in Rails very easily.
-
Fun with Apache2 - httpd not running, trying to start (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down
Have you ever gotten this error message when trying to (re)start Apache If you are running with an SSL certificate on your box, Apache cannot start up without the correct passphrase. I've run into...
-
Rails Paperclip Plugin Options for Attaching Files
I usually change some of the default settings when I use the Paperclip plugin. For most of my projects I don't like having separate directories for each image that is uploaded. I prefer, in this...
-
link_to_function Rails Ajax Reference
Link\to\function syntax for Haml template. Notice the "|" pipe which will allow for new lines in your code.
-
SHA1 or MD5 Hashing in Python
-
Dynamic Attributes in Python Model Class
-
Python Zlib Compress DeCompress