The User-Agent HTTP header identifies the client and is sent by "regular" browsers, search engine crawlers, or other web...

stackoverflow.com

Access the Method object Dead simple: Get the method object and ask for its owner: "foo".method(:upcase) # => #

For example if you use rvm and get this message: ERROR: Loading command: install (LoadError) no such file to load...

jeff.dallien.net

When you use heredoc, string interpolation is enabled by default: x = "Universe" <<-MESSAGE Hello #{x} MESSAGE # => "Hello Universe"

Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting...

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

This error can happen in Ruby 1.9. To fix it, add the following line to the top of your .js.erb...

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

makandra dev
clicktorelease.com

This is awesome. Only ran smoothly in Chrome. Is a slideshow in Firefox.

Ruby has two different ways to match the start and the end of a text: ^ (Start of line) and $ (End...

If git gives you an error message such as "fatal: bad config file line 123 in .git/config" after you tried...

Do not investigate in the 2342 tools that exist for migrating IMAP accounts from one server to another. They all...

makandra dev
aws.amazon.com

Amazon Elastic Transcoder is video transcoding in the cloud. It is designed to be a highly scalable, easy to use...

We recently had a problem on a Memcache cluster, where one of the servers showed a significantly worse cache hit...

makandra dev
jakiestfu.github.com

Behave.js is a lightweight library for adding IDE style behaviors to plain text areas, making it much more enjoyable to...

validates_uniqueness_of is not sufficient to ensure the uniqueness of a value. The reason for this is that in...

developers.google.com

The attached article outlines considerations when choosing client-side vs. server-side implementations of the Google Geocoding APIs (geocoder, directions...

Calling bundle update GEMNAME will update a lot more gems than you think. E.g. when you do this...

Apache HTTP server benchmarking tool (ab) is a nice tool to test performance on sites delivered by HTTP. If the...

Use Socket.gethostname. So for a machine whose hostname is "happycat", it will look like this: >> Socket.gethostname => "happycat" That should work...

When doing a git blame, git will blame the person who added or removed white space in a line (e.g...

As attachments to this card you will find a Cucumber feature and supplementing step definition that you can use to...

I was unsatisfied with the existing memory status applets for the Xfce panel, so I wrote a little shell script...