jakearchibald.com

The way that Javascript schedules timeouts and promise callbacks is more complicated than you think. This can be the reason...

stackoverflow.com

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...

makandra dev

Connect to your IMAP server. If you have SSL enabled: openssl s_client -connect your-server:993 if your server...

Edit /etc/default/bind9 and change OPTIONS="-u bind" to OPTIONS="-u bind -d 50 -g" Restart BIND and you'll see...

Many of our developers love to use the "awesome" window manager on Linux. However, RubyMine dialogs occasionally defocus while typing...

When you have a localized website, you may want to redirect users to their preferred language when they visit the...

github.com

fake_stripe spins up a local server that acts like Stripe’s and also serves a fake version of Stripe.js...

When dealing with time zones in Rails, there is one key fact to keep in mind: Rails has configurable time...

developer.mozilla.org

When building a form with a file select field, you may want to offer your users a live preview before...

Instead of using this hack you might want to use MariaDB 10.x which can work with both old and...

jQuery's deferred objects behave somewhat like standard promises, but not really. One of many subtle differences is that there...

Current webkit browsers like Chrome and Safari have a special variable in their consoles that refers to the selected DOM...

Some modern Javascript APIs return iterators instead of arrays. In plain Javascript you can loop through an iterator using

To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.

reddit.com

Chrome has discontinued support for 32-Bit Linux builds and this might break your apt-get update.

If you are on a Linux shell and want to open a file with whatever default application is configured for...

nginx.org

If you want to configure your nginx to drop connections to a specific location, you can do so by responding...

The following sums up all connections (ESTABLISHED, TIME_WAIT, FIN_WAIT, etc.) and sorts it: netstat -n | awk ' $5 ~ /^[0...

makandra dev
chrome.google.com

When you're facing a somewhat complex Google Analytics setup and want to find out what's happening, you can...

A HTTP 302 Found redirect to PATCH and DELETE requests will be followed with PATCH or DELETE. Redirect responses to...

To install gems Bundler needs to be able to talk to https://api.rubygems.org. If you are behind a proxy you...

During debugging you might pepper your code with lines like these: console.log('foo = ' + foo + ', bar = ' + bar) I recommend to use...