Thursday, September 24, 2009

mysql.rb driver has been removed from Rails 2.2

Get the latest ruby-mysql tar.
Run "sudo ruby ./install.rb"

Starting and stopping MySQL on Mac OS X Leopard

sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop

Reference: Simplistic Complexity

Long running processes

In our application, we've got number of long running processes. These processes are meant to run in background without affecting the application response time. We are using the combination of starling and workling.

For installing starling-starling:
gem sources -a http://gems.github.com/
gem install starling-starling


Rails requires RubyGems >= 1.3.1

Upgrading to Rails 2.3.2 gives us this error.

All we need to do is:
gem install rubygems-update
update_rubygems

Doing so, I tumbled across another error:
Could not find RubyGem builder (>= 0) (Gem::LoadError)

I had rubygems-update 1.3.5. It is a know problem with this version. All I had to do then, was to uninstall version 1.3.5 and install rubygems-update version 1.3.4.

gem uninstall rubygems-update -v=1.3.5
gem install rubygems-update -v=1.3.4
update_rubygems

Now, everything works great.

Wednesday, September 23, 2009

I am a DJ....YAY!!!


Recently, my brother gifted me a DJ controller(Numark Omni Control). It's absolute beauty. I am totally in love with it. It comes bundled with Native Instruments TRAKTOR LE. Since, I've always used ATOMIX Virtual DJ, it was really hard to spin with TRAKTOR. Hence, I tried spinning with Virtual DJ. Surprise....surprise.....Omni Control is not supported by Virtual DJ 5.2. Now the only way is to write a midi-mapper(a XML file to map the controls) for our controller.

If you've got the licensed version of Virtual DJ, you'll be able to access the controller on VIRTUAL DJ website. If you haven't got access to that file, it is really easy to configure one from the CONFIG menu.

1. Connect Omni Control to your computer
2. Start Virtual DJ
3. Click config
4. Select Remote
5. General MIDI(ctrl + click)
6. Select Config
7. Click Add
8. Select a key, knob or deck on your controller(You'll see something appearing on KEY text box)
9. Select an effect from available options
10. Click OK
11. Repeat for all the required keys, knobs, decks and other controls

Restart your Virtual DJ. Now go under Config -> Remote -> General MIDI. Select General MIDI and activate it. That's it. All done!!! Now we can spin with Virtual DJ 5.2 and Omni Control.

P.S. LEDs doesn't work!!!! :(