The default Google Analytics might not work as expected with your Unpoly app. This is because your app only has...
Processes in Linux might be put into Swap ("virtual memory") occasionally. Even parts of a single process might be removed...
All new browsers support the new object-fit CSS property. It allows to specify how an element behaves within its...
The way that Javascript schedules timeouts and promise callbacks is more complicated than you think. This can be the reason...
Converting string characters to or from their integer value (7-bit ASCII value or UTF-8 codepoint) can be done...
When you are working with jQuery selectors and collections, many times you want to know if the collection actually contains...
to create a Gallery that has a name and has_many :images, which in turn have a...
When you have a localized website, you may want to redirect users to their preferred language when they visit the...
When building a form with a file select field, you may want to offer your users a live preview before...
This card existed before, but was outdated due to browser implementation changes. The information below is validated for the current...
Current webkit browsers like Chrome and Safari have a special variable in their consoles that refers to the selected DOM...
The NestedHash class allows you to read and write hashes of any depth. Examples: hash = {} NestedHash.write hash, 'a', 'b', 'c...
To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.
The following sums up all connections (ESTABLISHED, TIME_WAIT, FIN_WAIT, etc.) and sorts it: netstat -n | awk ' $5 ~ /^[0...
Our preferred way of testing ActiveRecord is to simply create/update/destroy the record and then check if the expected behavior has...
Cause logstaglia is so cool you may want to record a video. We're lucky: Logstalgia has a parameter for...
Note Maintenance mode is enabled on application server as soon as the file /public/system/maintenance.html is present. Note that the servers...
There are cases when you need to select DOM elements without jQuery, such as: when jQuery is not available
E-mails are usually encoded using Quoted Printable. Here is how to decode or encode such strings. You probably know...
Regular expressions in Javascript are represented by a RegExp object. There also is a regex literal as in many other...
Activate VI mode by running set -o vi Now use your Bash as if it were VI! Hit Esc to...
While you usually do not need a Content-Type on GET request (which have a blank body), an external API...
Sometimes you want to know exactly how many objects exist within your running Ruby process. Here is how: stats = {} ObjectSpace.each...
Starting with Ruby 1.9, most #each methods can be called without a block, and will return an enumerator. This is...