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 […]
In: Ruby on Rails · Tagged with: attachments, email, multipart
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.
In: Ubuntu Tricks · Tagged with: shared folder, VirtualBox
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
In: Ruby on Rails · Tagged with: git
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. […]
In: Ruby on Rails · Tagged with: git
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!
In: Ruby on Rails · Tagged with: Rails, sqlite3, sqlite3-ruby
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
In: Server Config · Tagged with: data center, Goolge
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 […]
In: Artifical Intelligence · Tagged with: Hard AI, Raymond Kurzweil
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 […]
In: SEO, Web Development · Tagged with: 404's, crawl rate, featured, page index count, SEO

