Archive for 2010

Sending Emails with Rails, multipart html plain with Attachments

When trying to send attachments along with type versons of an email (html and plain text) you might notice that there is no content in your email message.  While I found this out too.  Simple if not over the top solution. The trick is that you have to put the html and plain part inside […]

Posted on June 3, 2010 at 5:36 am by Jordan Carter · Permalink · 3 Comments
In: Ruby on Rails · Tagged with: , ,

VirtualBox shared folder guest access command

Enable shared folders Add shared folder via “Devices” > “Shared Folder…” Windows from virtualbox.org net use x: \\vboxsvr\sharename Linux from virtualbox.org mount -t vboxsf [-o OPTIONS] sharename mountpoint Sharename is for example (by default) if you shared your Hosts Desktop, it would be Desktop.  Easy.

Posted on May 18, 2010 at 10:36 am by Jordan Carter · Permalink · Leave a comment
In: Ubuntu Tricks · 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: 

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

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 […]

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 […]

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