While IE9 does support HTML5 tags, it fails to work until you force HTML5 mode. Here are two ways to...

You can find out about disk space usage of all tables within your database by running this: SELECT table_name...

The attached Coffeescript helper will let you create mouse events: $element = $('div') Trigger.mouseover($element) Trigger.mouseenter($element) Trigger.mousedown($element) Trigger.mouseup($element...

RSpec provides a nice diff when certain matchers fail. Here is an example where this diff is helpful while comparing...

github.com

Stackprof is a sampling call-stack profile for Ruby 2.1+. Instead of tracking all method calls, it will simply collect...

Don't use be_true to check if a value is true. It actually checks if it anything other than...

I got this error when running Rails 2.3 tests for Rails LTS. More stacktrace: NoMethodError: undefined method `cache' for Gem...

makandra dev

Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...

github.com

A comprehensive script to convert test suites from RSpec 2 to RSpec 3. This converts more than should/expect syntax.

makandra dev
cyberciti.biz

Wondering which processes are placed in your swap you can use this bash oneliner: for file in /proc/*/status ; do...

I recommend to go straight to 2.1.5+ without intermediate steps. Otherwhise you burden yourself with unnecessary work of encoding problems...

makandra dev
serverfault.com

Logging tcpdump output all the time can create a huge amount of data. This can be both: too much data...

Sometimes you just want to have a small web server that serves files to test something. Serve the current directory...

While you usually do not need a Content-Type on GET request (which have a blank body), an external API...

stackoverflow.com

Ruby has a set of methods to convert an object to another representation. Most of them come in explicit and...

When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when...

If you get an error like: subprocess installed post-removal script returned error exit status 78 when installing/removing/updating a package...

Ruby allows multiple assignment: a, b, c = o In order to prove multiple values from a single object, Ruby calls...

makandra dev

Starting with Ruby 1.9, most #each methods can be called without a block, and will return an enumerator. This is...

As the web is being used for more and more tasks, expectations rise. Not only should web pages offer rich...

If you have problems installing a gem and get a error collect2: error: ld returned 1 exit status it's...

If the project team consists of at least 2 members, do a daily standup. It should not take much longer...

We organize our daily work with issues in our Linear workspace. Issue format A good issue needs to be precise...

Spreewald comes with a selector_for helper that matches an English term like the user's profile into a CSS...