When MySQL refuses to use your index, there's a number of things that you may be doing wrong. One...
Good collection of crash-course articles about founding a start up, getting funded, validating ideas, etc.
tl;dr: Do not use merge! for session hashes. Use update instead. Outline Let's assume you're modifying the...
JavaScript has no built-in functions to compare two objects or arrays for equality of their contained values.
In Ruby 1.9, instance_eval calls the block the with receiver as the first argument: In Ruby 1.8, receiver.instance_eval...
MongoMapper is a MongoDB adapter for Ruby. We've forked it so it works for Rails 2.3.x applications running...
Ruby 1.9 changed the default behavior of Module.const_defined? from what it was in Ruby 1.8 -- this can be especially...
See attached link for a way to extract the conditions of a named scope in Rails 2.3.
This error can happen in Ruby 1.9. To fix it, add the following line to the top of your .js.erb...
JavaScripts and CSS should be minified for production use. In Rails 3.1+ the asset pipeline will take care of this...
So you're using multiple remotes that offer the same branch? $ git branch -a | grep my-branch remotes/something/my-branch remotes/origin/my-branch
You either have an old version of Mocha and an edge version of Rails 3.2, or you have a new...
This page lists many query methods and options in ActiveRecord which do not sanitize raw SQL arguments and are not...
Counters are an awesome CSS feature you didn't know about. It is supported in all browsers and IE8+.
Stringex is a gem that offers some extensions to Ruby's String class. Ruby 1.9 compatible, and knows its way...
UnicodeUtils implements Unicode algorithms for case conversion, normalization, text segmentation and more in pure Ruby code.
RVM needs to be updated regularly to know of Ruby versions released since installation (or last update).
In our continued quest to extract proven code snippets from makandropedia into tested and upgradable gems, we have released Edge...
The Edge Rider gem gives your relations a method #traverse_association which returns a new relation by "pivoting" around a...
TLDR: Ruby class variables (@@foo) are dangerous in many ways. You should avoid them at all cost. See bottom of...
When creating an ActiveRecord with .new, .create or create!, you cannot set the ID attribute (note: When using Machinist's...
You probably know that you can use CSS selectors to match against elements and their attributes, such as:
You can use the content CSS attribute to set an element's content -- which is especially useful for the :before...
Since I'm a software architect and a web developer, I get often approached by people with their new ideas...