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.  Later that day, James also wanted to refactor that code, but “Jordan” had not finished his story and so “James” had to wait until Jordan had finished before starting his refactor otherwise face horrible conflicts.

Instead of waiting, “Jordan” created a commit for the refactor, push it in his feature branch to remote.  James pulled down the commit, cherry-picked it from “Jordan”‘s feature branch and continued on with his own refactoring.

Another great example of Git being more than just version control.

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

uninitialized constant Encoding

Problem with Rails sqlite3?
uninitialized constant Encoding
Couldn’t create database for {“timeout”=>5000, “adapter”=>”sqlite3”, “database”=>”db/test.sqlite3”, “pool”=>5}

If you installed the gem ‘sqlite3’ then

sudo gem uninstall sqlite3
sudo gem install sqlite3-ruby
Fixed!
Posted on May 7, 2010 at 4:43 pm by Jordan Carter · Permalink · Leave a comment
In: Ruby on Rails · Tagged with: , ,

What is inside a Google Data Center?

Here is a video Google published which details how they setup their data centres.  It contains interesting information about the ideas the are using in managing cooling and efficiency.

video below Read the rest of this post »

Posted on April 27, 2010 at 1:32 pm by Jordan Carter · Permalink · Leave a comment
In: Server Config · Tagged with: ,

Future of Information Technology

Raymond Kurzweil gives a speech about the future of information technology. Predicts Strong AI, our brains online all the time and nanobot blood cells that perform 100 x better than our own blood cells.

One prediction that stands out for me is that we will have the hardware power to exceed the brain’s computation ability by 2029.

video below Read the rest of this post »

Posted on April 26, 2010 at 5:16 pm by Jordan Carter · Permalink · Leave a comment
In: Artifical Intelligence · Tagged with: ,

SEO for Large Dynamic sites – II

In my last post SEO for Large Dynamic sites I discussed the first things to do when trying to get your SEO flowing.

Why did my traffic go up? – Keywords

The method Google uses (from what I have seen in my experience) to penalize you for a bad quality website is to reduce the number of pages it stores of your site.  Google saves my pages? Well, yes and no.  It does save a cached version so that users can see the page if your site crashes but thats not important.  What is important is that Google saves a version of your site that is searchable.  It finds all the keywords on your page and then compresses them and indexes them.  This allows for the blindly fast speed we have come to know and love about Google Search. Read the rest of this post »

Posted on April 25, 2010 at 7:57 pm by Jordan Carter · Permalink · Leave a comment
In: SEO, Web Development · Tagged with: , , , ,

Organic Robotic Motion created thru Evolution

This is very organic. I am really impressed, not what I was expecting to see.

Posted on April 25, 2010 at 4:18 pm by Jordan Carter · Permalink · Leave a comment
In: Artifical Intelligence · Tagged with: ,

Jesse Schell on the future of gaming

This is some interesting ideas.  It a different perspective on the generally accepted privacy is good, publicity is bad.

Posted on April 2, 2010 at 2:25 pm by Jordan Carter · Permalink · Leave a comment
In: Gaming · Tagged with: