JavaScript has no built-in functions to compare two objects or arrays for equality of their contained values.

Watch out when saying something like 1.year in Rails. The result is not a Fixnum and can cause unexpected errors...

makandra dev

You might get the following error: Unable to initialize. Make sure the daemon is running. Error: Process /usr/lib/sflphone/sflphoned exited with...

webmonkey.com

Mozilla has announced that, starting with Firefox 22, the popular open source web browser will begin blocking third-party cookies...

In Ruby 1.9, instance_eval calls the block the with receiver as the first argument: In Ruby 1.8, receiver.instance_eval...

github.com

MongoMapper is a MongoDB adapter for Ruby. We've forked it so it works for Rails 2.3.x applications running...

apidock.com

Ruby 1.9 changed the default behavior of Module.const_defined? from what it was in Ruby 1.8 -- this can be especially...

If you open a pop-up window [1] in your Selenium tests and you want to close it, you can...

makandracards.com

See attached link for a way to extract the conditions of a named scope in Rails 2.3.

gist.github.com

Rails 2.3.16+ on Ruby 1.9 causes warnings like this: .../gems/activesupport-2.3.17/lib/active_support/core_ext/string/output_safety.rb:22: warning: regexp match /.../n against to UTF-8 string...

perl.plover.com

So you have a method returning a regular expression but one case that should not yield a matching Regexp object...

If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...

If others on a call (Skype, SIP, ...) can not hear you loud enough, your volume levels are probably too low...

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...

makandra dev
rails-sqli.org

This page lists many query methods and options in ActiveRecord which do not sanitize raw SQL arguments and are not...

developer.mozilla.org

Counters are an awesome CSS feature you didn't know about. It is supported in all browsers and IE8+.

makandra dev
github.com

Stringex is a gem that offers some extensions to Ruby's String class. Ruby 1.9 compatible, and knows its way...

makandra dev
github.com

UnicodeUtils implements Unicode algorithms for case conversion, normalization, text segmentation and more in pure Ruby code.

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...

There is a bug in ActiveRecord 2.3.x that leads to changes in nested forms getting lost. class Project < ActiveRecord...