Archive for April, 2009

Rails Migration Data Types – MySql – Postgresql – SQLite

Rails mysql postgresql sqlite :binary blob bytea blob :boolean tinyint(1) boolean boolean :date date date date :datetime datetime timestamp datetime :decimal decimal decimal decimal :float float float float :integer int(11) integer integer :string varchar(255) * varchar(255) :text text text text :time time time datetime :timestamp datetime timestamp datetime

Posted on April 19, 2009 at 2:39 pm by Jordan Carter · Permalink · One Comment
In: Uncategorized · Tagged with: , , ,

SVN Use Cases – Command Line usage – Merge / Branch / Trunk

Create a branch from trunk svn copy svn://wetware.co.nz/svn/projectname/trunk \ svn://wetware.co.nz/svn/projectname/branch/new_feature -m “initial branch” Checkout that branch svn co svn://wetware.co.nz/svn/projectname/branch/new_feature Add to that branch svn st | grep ^? | grep -v \.log | cut -b7- | xargs svn add Commit changes svn commit . -m “A message about my changes. The bug #123 is now […]

Posted on April 18, 2009 at 2:31 pm by Jordan Carter · Permalink · Leave a comment
In: Web Development · Tagged with: , ,

Great movie review’s

24-Frames is a great place to get useful info on movies worth seeing.  Also talked about is upcoming movies with expected enjoyment and performance.  If you want to find a movie to watch this weekend, or a dvd for tonight go check out Tim’s reviews

Posted on April 14, 2009 at 12:48 pm by Jordan Carter · Permalink · Leave a comment
In: Uncategorized · Tagged with: 

Facebook Connect Checklist – What to not overlook

What do you need to consider before adding Facebook Connect to your website? Here I go over some things I encountered.

Posted on April 5, 2009 at 4:24 pm by Jordan Carter · Permalink · 2 Comments
In: Uncategorized · Tagged with: ,

Unix tar gzip a folder then unzip it (ssh/telnet/terminal)!

tar -cvzf <filename>.tar.gz <folder-name> CREATE A GZIP ARCHIVE tar -xvzf <filename>.tar.gz (which will create a folder named <folder-name> in the current directory) EXTRACT A GZIP ARCHIVE If you need to then send that via scp (secure copy) scp <filename>.tar.gz <username>@<domain>:/<path_to_file>/<filename>.tar.gz SEND A FILE TO REMOTE SERVER or scp images.tar.gz [email protected]:/home/john/images.tar.gz

Posted on April 3, 2009 at 1:18 pm by Jordan Carter · Permalink · Leave a comment
In: Ubuntu Tricks · Tagged with: , , ,

Run Single / One Functional Ruby on Rails Test

From the root rails directory you can run the following to run ONLY the page_controller functional test ruby -I lib:test test/functional/page_controller_test.rb

Posted on April 2, 2009 at 9:45 am by Jordan Carter · Permalink · Leave a comment
In: Uncategorized · Tagged with: , , ,

Map and to_proc to easier capitalize array of strings

["auckland", "christchurch", "wellington", "hamilton", "tauranga", "dunedin", "palmerston north", "hastings", "nelson", "napier", "rotorua", "new plymouth", "whangarei", "invercargill", "wanganui", "gisborne"].map(&amp;:capitalize)

Posted on April 1, 2009 at 10:17 am by Jordan Carter · Permalink · 2 Comments
In: Uncategorized · Tagged with: , , , ,