blog · sazwqa.com

Purchased new home

Well I purchased a new home for myself @ sazwqa.com & the garage belongs to blog now, access here - sazwqa.com/blog   Consider this as the last post from here... See you there 🙂

Advertisements
activerecord · multiple-models · Rails · rails-environments · rubyonrails

How to find different environment configurations in rails

While working with a multiple-database application I came across the point where I had to juggle between different environment configurations. I had to pass connection hash to ActiveRecord::Base.establish_connection, something like this: ActiveRecord::Base.establish_connection ( :adapter=>"mysql", :host=>"localhost", :username=>"myuser", :password=>"mypass", :database => "somedatabase" ) This connection can be easily retrieved from ActiveRecord::Base.configurations, this is currently undocumented. Using ActiveRecord::Base.configurations,… Continue reading How to find different environment configurations in rails

appz · browser · firefox · windows

Running Multiple Versions of Firefox on Windows

I hope this is a trivial problem and googling it around gave me no trivial solution 😦 Faced by many web-developers around the world, this context switching issue is definitely a time-sucker ! You lose the session, the cookies, the password, the settings, the plugins and a lot more than that, the time. Coming to… Continue reading Running Multiple Versions of Firefox on Windows

appz · microsoft · windows

Adding new programs to Default Programs

For a week I was facing problem while associating files to open with some application. Though I was able to locate the application, yet it didn't showed up on the open with dialog, like this: (Here, I browsed for the application. yet it is not appearing here.) I stumbled across this solution: http://windowsxp.mvps.org/openwithadd.htm This nifty… Continue reading Adding new programs to Default Programs

appz · linux · ubuntu · virtualization

Installing Ubuntu 8.04 server on VirtualBox

If you are getting the following error on installing Ubuntu 8.04 server on VirtualBox: The kernel requires the following features not present on the CPU 0:6 Unable to boot - please use a kernel appropriate for your CPU Then, you need to enable the PAE support for the virtual machine. Follow the screens: 1. Open… Continue reading Installing Ubuntu 8.04 server on VirtualBox

appz · microsoft · windows

The computer did not resync because the required time change was too big

Microsoft Windows Vista has a built-in feature to synchronize your machine's time automatically with global time servers around the world. The service can be scheduled to run automatically and works like charm keeping your system time up-to date, but there's a tiny catch in here. If your computer's clock is async for more than 15… Continue reading The computer did not resync because the required time change was too big