Writing
Notes on building software — the decisions that age well, the ones that don't, and what I learn in between.
-
Manage Sinatra Server in Development Mode with Shotgun
Sinatra won't reload your files. So if you're developing your app and want to see any changes made in the browser, install the shotgun gem. You can then use shotgun to run your server Presto, your...
-
Deploy Sintra App on Ubuntu Using Apache2 and Phusion Passenger Module
Check it out http://sinatra.seanbehan.com/ This assumes Apache2 and the Phusion Passenger module have already been installed. If not you can get up to speed w/ this resource...
-
Double Click Event Using Prototype Javascript Framework
Super simple to get double click "desktop" like functionality out of Prototype! For some reason, googling it doesn't yield many useful results....
-
Change default ssh port number on Ubuntu
Login as the root user or as a user that can execute sudo commands. Find the line that reads Change this to an different and an available port number... Next reload ssh You won't be kicked out of...
-
Using sendmail to send mail on ubuntu box
I normally install postfix for my MTA. However, I've never really used sendmail so I'd decide to give it a whirl for a new application I'm working on. I don't use it for anything but handling the...
-
Problem slash Bug in Rails with attr_accessor and Datetime Select Fields
Looks like there is a problem with using the attr\accessor method with datetime form fields http://dev.rubyonrails.org/ticket/8983 In Rails 2.3.2, for me at least, the problem seems to be popping...
-
Trouble Using Attr_Accessor in Rails Models and Forms
You might use the attr\accessible method to create getters and setters for a class that has attributes which don't map directly to corresponding fields in a database. For example let's take the...
-
Gem Information with Gem List
If you want to get version information about a gem the easiest way to do it is with this command For example will output the activemerchant versions I have installed. You can pass only part of the...
-
OpenSSL Certificate Generation Information for Certificate Authority to Serve Traffic Over Https
You'll be prompted to enter a password (don't forget it!) as well as fill in company identity information. The most important part is the common name, which is actually the domain you are...
-
Install Sphinx on Ubuntu
It's a pretty straightforward process. Download the source and compile it. There isn't a package for it so here are the commands. When it's done nothing fancy happens. You'll need to test it out w/...
-
Chunk an FLV File into Multiple Parts
The format is as follows http://www.surfthedream.com.au/blog/Archives/november-2008/how-to-split-a-movie-file-into-multiple-parts
-
David Heinemeier Hansson - Ruby on Rails, Startups, Culture
[youtube]http://www.youtube.com/watch?v=sb2xzeWf-PM[/youtube]
-
Ruby on Rails vs. PHP in a Nutshell
[youtube]http://www.youtube.com/watch?v=p5EIrSM8dCA[/youtube]
-
Nested Has_one Relationship with Fields_for and Attr_accessible in Model Class
To make child attributes accessible to your model through a nested forms (Rails 2.3) you'll need to add the "{child\class}\attributes" to the attr\accessible method in your parent class. If you...
-
Joining Technorati
yuw3dqxzp2