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 […]
In: Web Development · Tagged with: Rails
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 […]
In: Web Development · Tagged with: Firefox, Ubuntu 9.04
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.
In: Ubuntu Tricks, Web Development · Tagged with: Ubuntu 8.10
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.
In: Web Development · Tagged with: git
Git – GitHub – Using Git
So we have finally made the move to Git. Albeit slowly. git add . Add files to git
In: Web Development · Tagged with: git, Github
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 […]
In: Web Development · Tagged with: svn branch, svn merge, svn trunk
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.
In: Web Development · Tagged with: Mac OSX
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 […]
In: Web Development · Tagged with: Mac OSX