makandra dev

If you need to export data from MySQL to a CSV, you can profit from really fast built-in methods...

makandra dev

To clear the query cache in your MySQL database manually, e.g. for database profiling, execute the following command in your...

github.com

Ruby's net/http is setup to never verify SSL certificates by default. Most ruby libraries do the same. That means...

If you want to find out whether a Class object is directly inheriting from another class, use superclass: ActiveRecord::RecordNotFound.super...

To change the commit message of the latest (unpushed, unmerged) commit, you can use git commit --amend

When a has_many association basically serves to store a list of associated strings (tags, categories, ...), it can be convenient...

This card explains how to install RubyMine for the first time. If you want to upgrade an existing RubyMine installation...

nokogiri.org

Because Nokogiri needs to be compiled and dynamically linked against both libxml2 and libxslt, it has gained a reputation for...

When you just went through a long debug-fest and infested your code with dozens of debug messages, it can...

Have you guys ever done the math on that? You asked or allowed for 24000 interruptions from literally every human...

robots.thoughtbot.com

Selenium has been the siren song that continually calls out to us. Unfortunately, in practice we’ve been unable to...

This collection of Sass mixins enables cross-browser styling (including IE with CSS3PIE) with less lines of code.

When using an odd value for line-height in CSS the result will vary across all major browsers.\

makandra dev
pidgin.im

If your pidgin IM fails to connect to ICQ, you may need to update it. The ubuntu default sources are...

code.google.com

This document describes an agreement between web servers and search engine crawlers that allows for dynamically created content to be...

This is a bash script for those of you who need to install all gems for all projects (e.g. to...

Use this scope: class Stick named_scope :shuffled, lambda { last_record = last { :conditions => [ 'id >= ?', rand(last_record.id) ] } if last_record }

skorks.com

Ctrl + R Search commands you entered previously. Press Ctrl + R again to search further back, Ctrl + Shift + R searches forward...

This note describes how to setup a box running Ubuntu to share its Internet connection with another PC.

Use this MySQL command to show further info about a table: SHOW CREATE TABLE tags; This will output a table...

After switching to Rails 3 you may get a LoadError with the following message when trying to use your application...

I prefer the application that I'm currently working on to be reachable at http://localhost/. So when I switch...

This can be helpful when you need the latest file inside a directory for processing in a shell script:

You need to install the following packages before you can build the Nokogiri gem: sudo apt-get install libxml2-dev...