Archive for the ‘Web Development’ Category

Rails Engines

I run a main website with a couple of others which share some of it’s logic. Coming up very soon is another website project requiring the use of nearly all the the main site’s models and logic.  I am considering modularizing the main site into a Rails Engine to simplify the process of upgrading all […]

Posted on May 27, 2009 at 11:21 pm by Jordan Carter · Permalink · Leave a comment
In: Web Development · Tagged with: 

Firefox Memory Leak

I have 6gb of ram on my Ubuntu machine.  I thought that I would not need anything more than 4gb but pushed it to 6gb cause I could..  Well I saw Firefox push up to 1.3GB. I realise that linux machines will cache until it runs out of Ram but this wasn’t cache.  This was […]

Posted on May 26, 2009 at 8:22 pm by Jordan Carter · Permalink · 3 Comments
In: Web Development · Tagged with: ,

Finally Developing on Ubuntu

It has been a long day coming but it is here!! After convincing my boss not to spend upwards of $4000 on a MacBook Pro and instead hand over $2000 of his credit card (wasn’t a hard sell), I have now built my second PC.

Posted on May 25, 2009 at 11:05 pm by Jordan Carter · Permalink · 2 Comments
In: Ubuntu Tricks, Web Development · Tagged with: 

Add Github to your Gem Sources

If you tried installing a gem from github and got ERROR: could not find gem <gemname> locally or in a repository Then you need to do the following gem sources -a http://gems.github.com That should set you up for all GitHubs glory.

Posted on May 19, 2009 at 9:47 am by Jordan Carter · Permalink · Leave a comment
In: Web Development · Tagged with: 

Git – GitHub – Using Git

So we have finally made the move to Git.  Albeit slowly. git add . Add files to git

Posted on May 18, 2009 at 10:34 pm by Jordan Carter · Permalink · Leave a comment
In: Web Development · 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: , ,

Make your terminal prompt look pretty, or recover it if its blank..

PS1=”\[\$(date +%H:%M) \033[1;30m\][\[\033[1;34m\]\u\[\033[1;30m\]@\[\033[0;35m\]\h\[\033[1;30m\]] \[\033[0;37m\]\W \[\033[0m\] “ Put that into your terminal and smoke it. I have modified it from here.

Posted on March 3, 2009 at 12:59 pm by Jordan Carter · Permalink · One Comment
In: Web Development · Tagged with: 

Alias commands in Mac OSX Terminal

To add an alias (shortcut) to a command in Terminal do the following alias myServer=’echo ssh myServer.wetware.co.nz;ssh myServer.wetware.co.nz’ Notice that I echo the command before executing it, this is to reduce confusion when you call an alias which does something you forgot it did.. [Update] Well that worked, but not for long.  If you exit […]

Posted on March 3, 2009 at 12:51 pm by Jordan Carter · Permalink · One Comment
In: Web Development · Tagged with: