Sometimes you might want to know if an attribute is an associated object or a simple string, integer etc. You...

makandra dev
innig.net

If you want to get a deep understanding of how closures, blocks, procs & lambdas in Ruby work, check out the...

MySQL's MIN and MAX functions are for aggregations only. This will not work and produce an error:

My T410 has a NVIDIA graphics card (NVS 3100M). My BIOS configuration looks like this: NVIDIA Optimus is disabled in...

makandra dev

If you use a form (or form fields) multiple times inside one view, Rails will generate the same id attributes...

adobe.com

Flash movies (.swf files) can talk with Javascript code embedded in the same HTML page. There are two ways to...

en.wikipedia.org

Although you can access many symbols using the AltGr key you may be missing some, like the en-dash (–) or...

blog.plataformatec.com.br

A while ago we were working on an application that had an entire version specially created for mobiles, such as...

Note: For PostgreSQL you should use advisory locks. For MySQL we still recommend the solution in this card.

makandra dev

There is no good equivalent for the Unix sudo command in Windows. Below are a few workarounds that are all...

makandra dev
wiki.debian.org

This note is a reminder that there is something called AppArmor that could cause weird errors ("File not found", "Can...

To open a terminal quickly navigate to System → Preferences → Keyboard Shortcuts. There, click the "Run a terminal" row (It should...

On 32bit systems, the maximum representable Time is 2038-01-19 03:14:07 in UTC or 2038-01-19...

blogs.msdn.com

What are Google’s plans for turning WebM into a genuinely open standard, one that is based on consensus like...

makandra dev

Using OpenSSL it's very easy to seriously encrypt files. Use the script below. Input / Output are self explanatory. Put...

makandra dev

When you delete a file with rm it's still possible to recover the file or parts of it. Use...

See our new comprehensive guide for upgrading every Rails 2 version ever.

makandra dev

This tool is used on our application servers (and called when deploying) but it also works locally. Just call dumple...

To test whether two arrays have the same elements regardless of order, you can use the =~ matcher in RSpec < 2.11...

makandra dev

Sometimes you want to run a command forever, e.g. to compile a haml to html file on the console. Use...

To improve your chances to get proper error messages, you can try ^ to start cucumber with the -b option, so...

When you need to bulk rename files you can not call "mv *.foo *.bar" to change the extension of all...

Note that this sounds good but is not good at all when hooking tasks on cap deploy (see this article...

If you find yourself working in the Adobe Flash IDE you're already doing it wrong, but maybe the hour...