Archive for December, 2008

Using the zebra widget with jquery Tablesorter (styling alternate table rows)

I ran into this problem trying to figure out how to make sure that styling alternate rows in a table did not become messed up when tablesorter actually sorted the table.

In googling around I figured out that you had to use the zebra widget call in your initial tablesorter contructor. But no one said exactly how to get the zebra widget to apply the alternate row styling.

The simple answer is to create an “.odd” class for the alternate rows.
As an example

div.data table td { padding: 3px; }
div.data table tr.odd td { background: #e6f2ff;}

and the jquery call is …

 $("table.data").tablesorter({widgets: ['zebra']});

Add comment December 10th, 2008

Why Google is the best in the business … and you could be too

I was trying to find out how the NY Giants did last night, so I could incorporate it into a nice little jibe I was going to hurl at a friend of mine, so I went in and typed “NY Giants” … into the search box, to start the ever familiar process of clicking on links and backing up until I found what I wanted.

Guess what came up?

Its like they read my mind! :D

Funny, but it illustrates *exactly* why Google is kicking everybody’s ass at search. 

They write software that anticipates the needs of its users. 

You should be asking yourself if your software, business, employees or personal service does the same.

Add comment December 8th, 2008

New version (2.0.4) of Phusion passenger/mod rails out

New release announced

Global queuing

We recently announced that we’ve developed a feature called global queuing. This feature was requested by 37signals. When global queuing is on, Phusion Passenger will load balance all incoming requests into the first available backend process. This is especially useful if you have long-running requests, e.g. requests that perform heavy calculations and can take several seconds to finish. 

Fixed compatibility with the latest Rake version and RubyGems version

When compiling Phusion Passenger using the latest Rake, compilation commands are not shown while various warnings are being shown. This has been fixed. Various RubyGems deprecation warnings have also been fixed.

Running background programs from within the Rails app won’t freeze the request

In previous versions of Phusion Passenger, if one executes

system(”sleep 10 &”)

from within the Rails app, then Phusion Passenger won’t finish the request until 10 seconds have gone by. In other words, Phusion Passenger would wait until the background program has finished. This issue is caused by file descriptor leaks, and has been fixed.

Fixed Mac OS X crash

A Mac OS X related crash has been fixed.

Various bug fixes

The title says it all. If you experienced any kind of problems with previous releases, please try this release as the bug may have been fixed.

Add comment December 2nd, 2008


I recommend

Linode VPS's for Rails hosting
Heroku for mindless Rails hosting
Site 5 for shared Rails hosting and all round great service

Posts by Category

Calendar

December 2008
S M T W T F S
« Nov   Feb »
 123456
78910111213
14151617181920
21222324252627
28293031  

Posts by Month