me techie…

ramblings on technology ….

config for capistrano

Posted by sraghav on March 28, 2008

Preparing a deployment of an app

  1. Changes for fcgi configuration in public/.htaccess
    1. Comment the fcgi handler (found in initial few lines of the file)
    2. Change the dispatch.cgi reference to dispatch.fcgi (last few lines of file)
  2. In public/dispatch.fcgi change the shebang line to say something like this
    1. #!/usr/bin/env ruby
  3. Make sure everything is committed. (svn ci)
  4. capify the environment (capify)
  5. run rake configure_for_svn (assuming that the svn.rake task has been created already)
  6. edit config/deploy.rb to adjust values appropriately
  7. run cap deploy:setup
  8. On the remote server, copy $HOME/railsapps/config/database.yml.production to $HOME/${appdir}/shared/config (create target dir if not present). The $HOME/{appdir} should have been created by deploy:setup
  9. Since its the first time deployment, run cap deploy:cold
  10. Next time onwards, when you have to deploy, launch cap deploy:migrate

Posted in Rails, capistrano | Leave a Comment »

The Printable CEO™ Series

Posted by sraghav on March 27, 2008

I have used this time tracking tool in past also, and always find it handy to keep notes in this format. Helps keep focus.

David Seah – The Printable CEO™ Series

Posted in Uncategorized | Leave a Comment »

Mac4Lin ver.0.2 – Mac OS X Leopard Transformation pack

Posted by sraghav on March 26, 2008

Surprised to see that people are running independent project to make linux look/act like mac.

I am curious and would sure experiment with this.

Mac4Lin ver.0.2 – Mac OS X Leopard Transformation pack – Ubuntu Forums

Blogged with the Flock Browser

Posted in Mac, Ubuntu | Leave a Comment »

DVD Playback on Gutsy

Posted by sraghav on March 26, 2008

Configuring DVD playback on Gutsy

For DVD playback, install VLC (accepted by most as the best DVD player, supports menus too);

sudo apt-get install vlc

And if you also want Totem to play DVDs well, you have to use the Xine backend instead of Gstreamer (this is optional, VLC will do just fine);

sudo apt-get install totem-xine libxine1-ffmpeg

To get encrypted DVDs playing properly (check out no. 9 in the “Troubleshooting” section if you are having problems with new DVDs), paste these commands into the Terminal;

sudo apt-get install libdvdcss2 libdvdread3 libdvdnav4 build-essential debhelper fakeroot

then;

sudo /usr/share/doc/libdvdread3/install-css.sh

or if you get an error with that command;

sudo /usr/share/doc/libdvdread3/examples/install-css.sh

To set VLC as your default DVD player (I strongly advise you do) type the following command into the Terminal;

gksudo gconf-editor

Now expand “desktop” and then “gnome”, scroll down to “volume manager” but don’t expand it, just click on it and look over at the right pane. Scroll down and look for “autoplay_dvd_command” and change the command to “/usr/bin/vlc dvd://” (without quotes of course) by right clicking on it and selecting “Edit”, then click on “Set as Default”. Do the same for the “autoplay_vcd_command” as well.


From :  Complete Streaming, Multimedia & Video How-to – Ubuntu Forums

Blogged with the Flock Browser

Posted in Ubuntu | Leave a Comment »

Ekiga – PC to Phone on Ubuntu

Posted by sraghav on March 24, 2008

It works, finally… it works.

I managed to configure my voipcheap account to work with Ekiga.
Though the phone numbers that u have to call look a bit awkward (sip:<phoneNumber>@sip.voipcheap.com), but it works.

I basically love the fact that I reduced another reason to boot into windows.  Loving Ubuntu every minute…

Here’s some documentation on How to Use Ekiga
Ekiga – Community Ubuntu Documentation

Blogged with the Flock Browser

Posted in Ubuntu | Leave a Comment »

Better Cross-Site Request Forging Prevention

Posted by sraghav on March 22, 2008

Very useful piece of information about the changes from rails 1.x to 2.x.  Since I was following the Agile … with rails book (which is on rails 1.2.3), I got trapped with this problem.

Few new things for me, the concept of Cross-site request forgery and that rails 2 already handles it in the framework.  I got to this article through www.railsforum.com  and I have to say I am impressed.

What’s New in Edge Rails: Better Cross-Site Request Forging Prevention

Providing such useful features built inside the app framework is really intuitive.

Way to go rails… :)  

Posted in ExternaLinks, Rails | Leave a Comment »

Scrollkeeper flaky – Ubuntu Forums

Posted by sraghav on March 21, 2008

Posted in Ubuntu | Leave a Comment »

RubyOnRails – Community Ubuntu Documentation

Posted by sraghav on March 21, 2008

Very useful information for beginners… Or for troubleshooting the installation steps..

RubyOnRails – Community Ubuntu Documentation

Blogged with the Flock Browser

Posted in Rails | Leave a Comment »

Linux desktop imitating OSX

Posted by sraghav on March 20, 2008

Wonderful article .. full of info…

Linux desktop imitating OSX | Lauri Taimila

will report the exeperience..

Posted in ExternaLinks, Mac, Ubuntu | Leave a Comment »

Free 1 year subscription of McAfree Virus Scan Plus

Posted by sraghav on March 19, 2008

I dont quite believe this, but havent tried this either.

Free 1 year subscription of McAfree Virus Scan Plus

I have heard about free trial licenses from such companies for a month or two or three, but never for 12 months.

I just tried to register following the link, and it does seem to work. I didnt actually download the software yet, but I would sure do that. Sometime over the weekend.

It sounds really really amazing to me. A 12 month free subscription.. great… :)

Posted in Blogging, ExternaLinks, JusTalk | Leave a Comment »