todotxt.com

Solution to share a todo.txt file over Dropbox and make it editable on Android und iOS devices. Also comes with...

validates_acceptance_of :terms only works if terms is set to a value. The validation is skipped silently when terms...

When you create a new branch and push it to origin, you won't be tracking it. This means a...

This card needs to be updated for Rails 3+. Since there is no --debugger flag you need to run:

You won't usually have to do this. It's OK to route all formats to a controller, and let...

When talking to your MySQL server via a mysql shell, you can terminate queries by ; or \G -- the latter gives...

teddevito.com

This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...

stackoverflow.com

This will give you the string that appears most often in an array: names = %w[ foo foo bar bar bar...

makandra dev
robertwhurst.github.com

KeyboardJS is a library for binding to keys or key combos

stackoverflow.com

Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...

Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.

stackoverflow.com

In some older Capybara versions (e.g. 0.3.9), we're getting lots of deprecations warnings: Selenium::WebDriver::Element#select is deprecated...

When you regularly make use of Cucumber's "show me the page" step (or let pages pop up as errors...

After you configured your ODBC describe in Fix [RubyODBC]Cannot allocate SQLHENV when connecting to MSSQL 2005 with Ruby 1.8.7...

I followed this nice guide Connecting to MSSQL with Ruby on Ubuntu - lambie.org until I ran in the following errors...

This is one possibility to do this. There are other and maybe even better ways to do this.

makandra dev

When you do a script/dbconsole -p, your MySQL shell will already be using UTF-8. When you call it yourself...

icelab.com.au

We love Markdown. We use it wherever we can for text formatting. In a web app, the obvious place for...

slate.com

Nice article to educate your non-geek girlfriend/boyfriend about the joys of programming.

This is surprisingly difficult when there is a with the same text on the page, but you really want to...

github.com

Pour color on your Rails console with awesome_print. Turn confusing long strings into formatted output. Have objects and classes...

Install libreadline: sudo apt-get install libreadline-dev Reinstall the ruby and tell rvm where to find readline

Bundler 1.1 has been released. With this version you no longer need to wait for this: Fetching source index…

If you get this: Installing typhoeus (0.3.3) with native extensions /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem...