To simulate Rails' to_sentence in your JavaScript application, you can use these few lines of CoffeeScript code: joinSentence = (array...
There is no built in possibility to convert a float to an integer. You have to use an inline_template...
Ruby's __FILE__ keyword returns the path to the current file. On popular for this are Ruby binaries: #!/usr/bin/env ruby...
To check the currently running PG version from your Rails application (e.g. Rails console on your production server), simply do...
When you're nesting setTimeout(f, 0) calls, your browser will silently increase the delay to 5 milliseconds after the...
We're using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not...
Piwik is the leading open-source analytics platform. As such, it is an alternative to Google Analytics. Since it is...
When your controller action raises an unhandled exception, Rails will look at the exception's class and choose an appropriate...
The linked article shows what current browsers do when you click a link like this: 1-562-867-5309
PostgreSQL, unlike MySQL, treats strings as case sensitive in all circumstances. This includes comparison with = and LIKE collision detection in...
Is your application doing something expensive every few seconds? Maybe an animated slider that rotates images? Maybe you are updating...
Here is a symbol of an eight note: ♪ Its two-byte hex representation is 0x266A. This card describes how to...
By convention, common protocols use a defined port, like 80 for HTTP or 443 for HTTPS. You can use nmap...
For some years Google Chrome has allowed you to add desktop icon for any web page by going to Tools...
When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...
Chrome's developer tools automagically choose vertical or horizontal panel layout, based on their width. You can disable that magic...
So you downloaded a theme for Chrome a while ago and don't remember which one it is?
This service gives you a kind-of standard color name for any hex code. This is useful if you want...
...The and tags both come with some non-default behavior that you know from other tags.
To add a new panel in MATE: Right-click on an existing panel and choose New Panel
The default Google Analytics might not work as expected with your Unpoly app. This is because your app only has...
You can define methods using def or define_method. In the real world, there is no performance difference.
So you want to use object-fit, but you also need to support Internet Explorer. One option is to use...
Apparently you can pash a second scope to a hash-condition and the whole thing will be evaluated as a...