...ES5. This means that examples for transpiled results or the "Try CoffeeScript" web console behave differently, and lookup up stuff when working on older projects may be somewhat hard.
When such a virtual attribute should contain integer values you might get unexpected behavior with forms, because every param is a string and you don't get the magic...
When using git diff, you might encounter weird characters where umlauts (or any other UTF-8) characters should be. It...
You know that you can use jQuery's text() to get an element's contents without any tags.
All browsers + IE9 know the CSS :empty selector. It lets you hide an element when it has no content, i.e...
This should be fixed in the latest LTS-branches of our mysql2 fork, 0.2.x-lts and 0.3.x-lts...
...on table rows (use case would be clicking the 1st link inside it for better UI). Consider this setup: hello ^ $(document).on('click', 'tr', function () { alert('row clicked') });
When building a form with a file select field, you may want to offer your users a live preview before...
Starting with Ruby 2.0 you can define methods with keyword arguments. In 2.1+ required keyword arguments can be defined by...
When you get an error like this: Invalid gemspec in [/opt/www/foo-project.makandra.de/shared/bundle/ruby/1.8/specifications/carrierwave-0.6.2.gemspec]: Illformed requirement ["# 1.1.4"] ... the machine's Rubygems needs to...
Consider this HTML: Even though the surrounding container defines a line-height, which vertically centers its inline elements, the check...
If you have issues with PDFs, fix them like this: pdftk .pdf output .pdf Background I had an issue where...
You probably already manage servers you often connect to inside the ~/.ssh/config file. What is nice: you may define alias...
...link_tag 'screen', :media => 'screen' %> These would be your two screen Sasses: # screen_with_pie.sass =pie behavior: url(/stylesheets/lib/PIE.htc) position: relative @import base.sass # screen.sass =pie // No pie for you @import base.sass
Ruby 2.3.0 has been around since end of 2015. It brings some pretty nice new features! Make sure to read...
Copy and paste at will, they're free! German quotation marks: „ “ (Ubuntu-Hotkey: AltGr+v and AltGr+b) English quotation...
After performing a live migration of a VM you may encounter issues with the clock of the migrated VM. The...
...Add development to existing environments in the Raven.configure block: config.environments = ['development', 'staging', 'production']. Remove better_errors from Gemfile if existing and bundle. With Raven.capture_message('Test from development') you can...
When using the json gem, you might run into this error when using JSON.parse: >> json = 'foo'.to_json >> JSON.parse(json...
TLDR: When you put CSS rules into a partial and import that partial multiple times, the CSS rules will be...
With defaults, RCov doesn't work the way you how you would like it to. To create a nice test...
Some modern Javascript APIs return iterators instead of arrays. In plain Javascript you can loop through an iterator using
...that you can use to travel through time and trigger setTimeout and setInterval callbacks: beforeEach(function() { timerCallback = jasmine.createSpy("timerCallback"); jasmine.clock().install(); }); afterEach(function() { jasmine.clock().uninstall(); }); it("causes a timeout to...
On application servers, gems are usually bundled into the project directory, at a location shared across deployments. This is usually...