Posts Tagged Ubuntu

My Ruby on Rails photo site hosted on Heroku

In a previous post that I wrote on the topic of deploying web applications on to Azure cloud I compared that to my experience of deploying Ruby on Rails web apps onto Heroku.

I realised that I’ve not mentioned my experiences with coding in Ruby. My motivation to learn Ruby On Rails was triggered by the fact that I was developing a rather large Asp.Net MVC web app in my day job, and according to one of the books on my reading list it was the inspiration for the Microsoft’s framework.

I’d returned from a holiday in Russia and I wanted to share the photos with my friends in a novel fashion. Why not create my own website to share them and learn Ruby On Rails in process? As a result, I created a few sites using RoR, this one being the public clone of my photos website The rest of this post covers how I launched these sites.

After a little googling, I decided I would do my Ruby development on a Linux based OS as opposed to Windows, since I would be able to keep up my Linux knowledge. Vim was to be my text editor of choice.

To get a grasp on the Ruby language I started working on the Ruby Koans exercises and once I felt sufficiently competent I moved onto understanding how it weaves into Rails to result in the accomplished and popular web framework. Michael Hartl’s Tutorial is the perfect place to start

I dabbled with deploying a Ruby On Rail web app on Phusion Passenger without much luck, so I then decided to take the simplest route to hosting and go with Heroku. I’d already decided that I would learn Git quite some time ago; now would be the time to take the plunge!

Along my path of deploying the web site I went for the option of using a mature open source photo site called Balder. Doing this meant I could get my web site launched in a reasonable time frame, and to also avoid reinventing the wheel

Overall I felt it was a positive learning experience. I started to learn a new language and framework, which allowed me to appreciate MVC.Net and see where Ruby isn’t so great in comparison. For example, Ruby’s concept of Active Record may be useful for rapid development, but it lacks the strengths of Fluent NHibernate. Some have argued that Active Record is itself an anti-pattern.

I became much more familiar with the Linux Terminal and I’m happy to see that Windows Power Shell has Windows analogues to Linux commands I’ve committed to muscle memory. I’m also a big Git fan and I’m comfortable using it at the command line.

With my understanding of git I’ve come to use Github too, and all the great ideas that flow from it.

It was a worthwhile endeavour, even just for the insight gained. You can visit the fruits of my labours and see for yourself: http://publicpics.herokuapp.com/

, , ,

No Comments

How To Fix Grub2 Error 17 after a FakeRaid Ubuntu Reinstall

I had a problem some ago after installing Ubuntu on a RAID array, my computer would not boot and displayed a Grub Error 17.

Here are some of the links that helped me to fix the problem:

http://ubuntuforums.org/showthread.php?t=1574765

https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

http://ubuntuforums.org/showthread.php?t=1559762

had an error 17

had to rebuild the boot partition & then reinstalling grub2

http://grub.enbug.org/Grub2LiveCdInstallGuide

put in livecd 10.4

mnt drives with \dev\mapper\nvide3gegj0 <-- number at end chroot grub install pc might fail if so, then apt-get -update to update repository listings. then install dp installer

No Comments