Repeatable read and deadlocks in SQL Server

This week we had a bug report of one of our products regarding some strange deadlocks in our database access. For those of you who don’t know what a deadlock is, I’ll try to summarize here what a transaction is in a relational database environment and why those transactions might lead to those nasty errors, and try to explain what was causing this deadlock in our SQL Server 2005 engine.

Continue reading “Repeatable read and deadlocks in SQL Server” »

Share

Killing all rails logs with one Ctrl+C?

Well, this is my first post after holidays and it won’t be very long.

Imagine you are developing a rails application. Usually you have:

  • a terminal with the server to see what petitions are received.
  • a terminal with a tail of development.log to see what happens with the database.
  • a terminal with a tail of test.log if you are testing something.

This are a lot of windows… And the other day one friends was very happy and after asking for a while I discovered that the reason was the simple line showed above… With only one Ctrl+C you can kill all this processes :-)

script/server & tail -f log/development.log & tail -f log/test.log & tail -f ; jobs -p | awk '{print "kill -2 " $0}' | sh
Share

Avoid firefox message: Install missing plugins

My laptop is an ibook G4 and maybe because of madness or because I’m so geek, I use linux on my ibook. One of the most annoying problems is that there is no good support for flash in linux PPC. This causes that all webpages viewed with firefox that requires the flash player plugins makes firefox requesting to install it.

Install Missing Plugins

Install Missing Plugins

After being annoyed for months I search for this configuration in about:config page and I finally found it. The only action to avoid this message is to set plugin.default_plugin_disabled to false and that’s all!. Now I can surf the web without any Install missing plugins message.

Share