The technique described in this card has an important caveat: The result of GROUP_CONCAT is truncated to the maximum...
Selenium does not speak SSL because it uses WEBrick that doesn't. When you use Selenium for Cucumber scenarios that...
While it might seem trivial to implement an invoice that sums up items and shows net, gross and vat totals...
Rails doesn't know which host it is running on. For generating links, it strips the hostname off the request...
To offer files for download, use send_file. def download(file) send_file file.path, :disposition => 'attachment' end
If you're writing a spec for an application using Resque, you may need to work off queues manually without...
VirtualBox does not offer anything for this task -- you need to do it yourself. It's not that hard:
Every time you open a directory containing images, Windows creates those pesky Thumbs.db files for a minor speed-up and...
If you need to parse a large XML file (> 20 MB or so), you should parse it in chunks, otherwise...
After managing a few agile projects from India and learning the tricks of the trade, I have been wondering why...
A common question in IT departments is whether to provide a capability by building custom software or by buying a...
When CoffeeScript was added to Rails 3.1 they forgot one very important part, the ability to use it when responding...
My front audio output would not work even though the front mic input did fine. The Pulse Audio mixer (= Ubuntu...
Put the attached file into config/initializers/ to be able to say created_within on any ActiveRecord or its scope chain...
If you want to play music or sounds from a browser, your choice is to use either Flash or the...
User Stories should describe what a user wants the system to do. Purely technical tasks should usually be implemented as...
You most likely have a form element inside another form element. Don't do that. Ever. Firefox and Chrome will...
It is common in Rails 3.0 applications that you want to provide default views for a group of controllers. Let...
Sometimes you can make your life easier by not allowing a record attribute to be changed after the record was...
jQuery offers many different methods to move a selection through the DOM tree. These are the most important: $element.find(selector...
If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...
Although you can access many symbols using the AltGr key you may be missing some, like the en-dash (–) or...
Note: For PostgreSQL you should use advisory locks. For MySQL we still recommend the solution in this card.
Some people, when confronted with a problem, think "I know, I'll use a queue." Now they have an unbounded...