How To – Installing Ruby on Rails on Ubuntu Lucid Lynx 10.04 Server

Install required packages sudo apt-get install build-essential git-core zlib1g-dev libssl-dev libreadline5-dev The required packages for installing Ruby Enterprise, and Git thrown in for good measure. Install Ruby Enterprise Download ruby-enterprise-1.8.7-2010.02.tar.gz & Install wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz sudo ./ruby-enterprise-1.8.7-2010.02/installer May take a long time to get past the “Generating RI…” bit Also, ignore the  “The following […]

Posted on September 13, 2010 at 5:55 pm by Jordan Carter · Permalink · One Comment
In: How To · Tagged with: , , , , , ,

what changes did I just pull from git?

Ever wanted to see what changes you just pulled from github? This little command will show you the changes for the last commit, if the pull resulted in more commits being pulled then add a couple more ‘^’s to HEAD^ git diff HEAD^ HEAD

Posted on May 14, 2010 at 4:12 pm by Jordan Carter · Permalink · Leave a comment
In: Ruby on Rails · Tagged with: 

Git cherry-pick

cherry-pick is a useful Git command, especially if you are working in an Agile team. We used it for the first time today on our project. Team member A lets call him “James” made a feature and put it onto master. Team member B lets call him “Jordan” later refactered some code from “James”‘s feature.  […]

Posted on May 14, 2010 at 1:15 pm by Jordan Carter · Permalink · 3 Comments
In: Ruby on Rails · Tagged with: 

Git /usr/local/lib/liblber & /usr/local/lib/libldap_r no version information available error

I just updated my system today and rebooted (I like to reboot once a couple weeks…) and git started freeking out on me. I tried to git add ap [tab tab] but “git: /usr/local/lib/liblber-2.4.so.2: no version information available (required by /usr/lib/libcurl-gnutls.so.4)” would pop up before the auto-complete and mess everything up. I could continue without […]

Posted on April 1, 2010 at 10:28 am by Jordan Carter · Permalink · One Comment
In: Server Config, Ubuntu Tricks · Tagged with: 

Can’t Access Github behind proxy or Firewall

Use corkscrew to get through the firewall. You will have to install it from source. website: http://www.agroman.net/corkscrew/ Now edit your ~/.ssh/config file, create it if you haven’t got one. > cat ~/.ssh/config Host gitproxy User git Hostname ssh.github.com Port 443 ProxyCommand /usr/local/bin/corkscrew proxy.example.com 3128 %h %p IdentityFile /home/jordan/.ssh/id_rsa Now use this proxy when cloning git

Posted on March 17, 2010 at 9:45 pm by Jordan Carter · Permalink · 5 Comments
In: Server Config, Ubuntu Tricks, Web Development · Tagged with: , , , ,

Ubuntu for the Win again – Meld Git Diff GUI

If you want to look at git diff ‘s through a gui on a linux machine then Meld fits the requirements nicely. I have only just found out about it but from first impressions it is rather good. Ubuntu 9.04 can just sudo apt-get install meld Will keep you posted.

Posted on August 5, 2009 at 3:57 pm by Jordan Carter · Permalink · Leave a comment
In: Ubuntu Tricks · Tagged with: ,

Rails Setup – Jaunty 9.04 – Postgres – RMagick – Xapian – Hpricot – Git

Just installed Ubuntu Jaunty 9.04 onto my laptop and wanted to note down all the installed packages I ended up using. I haven’t tested this on a clean install, but should all flow nicely. Hopefully will help me next time I fresh install. Will get you setup with rails and some useful libs and plugins. […]

Posted on July 27, 2009 at 11:21 am by Jordan Carter · Permalink · Leave a comment
In: Server Config · Tagged with: , , , , , ,

Pull A Git Branch from Remote

Up until lately I have been improperly pulling my remote branches to local.  What I mean is I create a new branch locally, push it to remote (GitHub) then pull it onto a designers computer with the following command (this is not how to do it) #DON’T DO THIS git checkout -b < new_branch > […]

Posted on July 22, 2009 at 1:56 pm by Jordan Carter · Permalink · 16 Comments
In: Uncategorized · Tagged with: , , ,