calc() lets you mix CSS units. Ever wanted to give an element "the container's width minus 20px on each...

tl;dr: Do not use merge! for session hashes. Use update instead. Outline Let's assume you're modifying the...

Safari & Chrome Use $x() in your console: $x('//span') # selects all span elements Firefox There's an add-on.

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

So you want to know if you are on natty, precise, quantal, or something else? Check /etc/lsb-release. $ cat /etc/lsb-release

webmonkey.com

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

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

makandracards.com

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

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

makandra dev

JavaScripts and CSS should be minified for production use. In Rails 3.1+ the asset pipeline will take care of this...

makandra dev
blog.mozilla.org

Prepare to explain customers what changed if your application renders PDF documents to users.

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.

RVM needs to be updated regularly to know of Ruby versions released since installation (or last update).

If bundle install shows the following message for you ... Error Bundler::HTTPError during request to dependency API ... upgrade to Bundler...

In our continued quest to extract proven code snippets from makandropedia into tested and upgradable gems, we have released Edge...