If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...

linux.die.net

Sometimes you may want to print files from the command line, especially when you have lots of them.

github.com

All the hidden and not hidden features of Git and GitHub.

If you come across an (older) application that is using Prototype instead of jQuery, you may often see events bound...

Use the following command to test if a server (in this example: makandra.com on port 443) uses Perfect Forward Secrecy...

makandra dev
filippo.io

Enter the hostname of a server to test it for CVE-2014-0160.

makandra dev
heartbleed.com

The Heartbleed Bug is a serious vulnerability in the popular OpenSSL cryptographic software library. This weakness allows stealing the information...

wiki.macromates.com

When using TextMate2 with the cucumber bundle, it does not recognize step definitions (e.g. custom_steps.rb) as such but believes they...

robots.thoughtbot.com

Declare an enum attribute where the values map to integers in the database, but can be queried by name.

blog.mariadb.org

MariaDB 10 includes numerous innovations developed with and for web-scale players like Google, Fusion-IO and Taobao such as...

blog.codeclimate.com

Splitting a long method into sub methods is easier in instances since it is in classes. Since...

everydayrails.com

I recently had a need to demonstrate a data-heavy application to potential customers. Demonstrating the application with bogus numbers...

Internet Explorer on Windows 8 and 8.1 is available in a "Desktop version" and the metro version which is designed...

lucaguidi.com

Ruby’s model for concurrency is based on threads. It was typical approach for object oriented languages, designed in the...

stackoverflow.com

Check out the jsFiddle Demo. CSS .absoluteCenterWrapper { position: relative; /* Declare this element as the anchor point for centering */ } /* Positioning */ .absoluteCenter...

medium.com

When you, as a developer, look at the choices used to build a particular application, you’re blown away at...

browserstack.com

Local testing allows you to test your private and internal servers using the BrowserStack cloud, which has support for firewalls...

gist.github.com

How to remove/disable the automatic XSS protection helper html escaping for Rails 3. This is probably a horrible idea.

On Ubuntu, you can scroll horizontally with your mouse wheel when holding the Shift key while scrolling.

Your development machine is usually on a very good network connection. To test how your application behaves on a slow...

By default, Rails' validates_uniqueness_of does not consider "username" and "USERNAME" to be a collision. If you use MySQL...

Put the attached file to config/initalizers to ignore some fields for rejecting nested records (e.g. hidden input fields).

If you need to quickly find out the number of weekdays (Monday to Friday) between to given dates, try this...

requiremind.com

Batman is an alternative Javascript MVC with a similar flavor as AngularJS, but a lot less features and geared towards...