MuPDF is a PDF reader that renders very quickly, yet still correctly. It supports PDF 1.7 and all the fancy...
When your Rails controller action responds with only a simple text, render text: 'Hello' may not be what you want...
Since version 34, Chromium/Chrome ignores the autocomplete="off" attribute on forms or input fields. Recent versions of other browser do...
If you parse this Yaml ... yes: 'Totally' no: 'Nope' ... you get this Ruby hash: { true: 'Totally', false: 'Nope' }
There are 3 built-in file descriptors: stdin, stdout and stderr (std=standard). (You can define your own, see the...
When using @media CSS queries, Internet Explorer 8 and below will fail to respect them. Though there are several options...
Edge Rider gives your relations a method #origin_class that returns the class the relation is based on.
React.js is a relatively new Javascript templating engine that has two-way-bindings like AngularJS or Batman. The interesting idea...
MenuetOS is an Operating System in development for the PC written entirely in 32/64 bit assembly language. Menuet64 is released...
Programatically invoke Rails generators Require the generator, instantiate it and invoke it (because generators are Thor::Groups, you need...
docopt helps you define interface for your command-line app, and automatically generate parser for it. docopt is based on...
If you regularly get ActionView::MissingTemplate exceptions, maybe some bot visits your site requesting silly formats like: http://www.rails-app.com/makandra.html-username-2000...
If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...
If you come across an (older) application that is using Prototype instead of jQuery, you may often see events bound...
The Heartbleed Bug is a serious vulnerability in the popular OpenSSL cryptographic software library. This weakness allows stealing the information...
I recently had a need to demonstrate a data-heavy application to potential customers. Demonstrating the application with bogus numbers...
We now have a gem that supports our form model approach.
Check out the jsFiddle Demo. CSS .absoluteCenterWrapper { position: relative; /* Declare this element as the anchor point for centering */ } /* Positioning */ .absoluteCenter...
How to remove/disable the automatic XSS protection helper html escaping for Rails 3. This is probably a horrible idea.
Alternatives to drop-down menus to consider in form design.
If you are trying to inspect timings in JavaScript, you can use console.time and console.timeEnd which will write to your...
When you call a method on an object, Ruby looks for the implementation of that method. It looks in the...
Development environment setup Rails Composer Basically a comprehensive Rails Template. Prepares your development environment and lets you select web server...
To print a colored full-width bar on the bash, use this bash script expression: echo -e '\033[37;44m...