If you previously used version 2.x of Thunderbird and upgraded to 3.x (for example through an Ubuntu release...
Lately, we’ve been exploring ways to offer web apps that perform like native apps on mobile devices. For this...
Sometimes the order in which strings appear on a page matters to you. Spreewald gives you steps like these:
Note: We are talking about Machinist 1 here, Machinist 2 may have solved this or might require a different approach...
This post will describe how I stumbled upon a code path in the Linux kernel which allows external programs to...
[ ] [ ]= ** ! ~ + - * / % + - >> << & ^ | <= < > >= <=> == === != =~ !~ && || .. ... ? : = %= { /= -= += |= &= >>= <<= *= &&= ||= **= defined? not or and if unless while until begin/end For more information see Table 18.4 in The Pragmatic Programmer's...
If you have several submit elements (inputs or buttons with type="submit") that each cause different things to happen (e.g...
Note that you should disable the Java plug-in in your browsers after installation. Ubuntu >= 12.04 Java 11
Cucumber step argument transforms can be a powerful way to make your steps more flexible. Note however that if your...
RSpec's context (which is basically an alias for describe) takes over your whole application. No object may have its...
In /etc/crontab In /etc/cron.d/* In /etc/cron.hourly/* In /etc/cron.daily/* In /etc/cron.weekly/* In /etc/cron.monthly/* In the personal crontab of any user. This...
You don't need a Rails application to use Sass. Even when you're working on a static site you...
With its you can switch the subject of an example to a method value of the current subject: describe Array...
For some reason you want to define a find condition in array form. And in that condition both column name...
Find conditions for scopes can be given either as an array (:conditions => ['state = ?', 'draft']) or a hash (:conditions => { 'state' => 'draft...
When using virtual attributes, the attached trait can be useful to automatically copy errors from one attribute to another.
power-rake db:migrate VERSION=20100913132321 By default the environments development, test, cucumber and performance are considered...
When Paperclip attachments should only be downloadable for selected users, there are three ways to go. The same applies to...
This will show you how to create a RSS feed that the Feed Validator considers valid. Note that RSS is...
In modern Rails versions you can also use ActiveRecord's pluck method. User.active.pluck(:id) => [1, 5, 23, 42]
You should test the callback methods and its correct invocation in two separate tests. Understand the ActiveRecord note before you...
In july Google announced a new version of their image serach tool Google Images. But you won't find it...
Be careful! The following solution will delete files on a volume. If you don't know exactly what you're...
In a great post about named routes in Rails, path vs. url, Viget Labs ponders which variant is best used...