thecssninja.com

Sometimes you want to preload images that you will be using later. E.g. if hovering over a an area changes...

makandra dev
browsercookielimits.squawky.net

TL;DR If you want to support most browsers, then don't exceed 50 cookies per domain, and don't...

Spreewald gives you the within meta step that will constrain page inspection to a given scope. Unfortunately, this does not...

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

guides.rubyonrails.org

ActiveRecord offers an explain method similar to using EXPLAIN SQL statements on the database. However, this approach will explain all...

developer.mozilla.org

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

ombulabs.com

Tool to show you which gems are slow to load: ➜ git:(master) ✗ bundle exec bumbler [################################################# ] (49/65) travis-lint...

Awesome is a very good tiling window manager that provides neat features like automatic layouting of windows, good multi-display...

You can use JavaScript to get or set cookie values on the client. Using the vanilla JavaScript API

kyusuf.com

Flexbox is great, but you don't get reliable support in Internet Explorer. The attached article shows how to accomplish...

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 attached Coffeescript helper will let you create mouse events: $element = $('div') Trigger.mouseover($element) Trigger.mouseenter($element) Trigger.mousedown($element) Trigger.mouseup($element...

explainshell.com

Enter any command into explainshell and it will explain it to you: split into separate commands (if present), with each...

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

Angular's location provider stalls links to the current URL, i.e. window.location. As soon as the $location service is activated...

RSpec provides a nice diff when certain matchers fail. Here is an example where this diff is helpful while comparing...

mathiasbynens.github.io

This will give the target site full access to your Javascript environment through window.opener, if the target is on the...

reddit.com

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

Let's say you want to find the element with the text hello in the following DOM tree: hello

Imagine you have a list you want to render inline on large screens, but stacked on small screens. high

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

There are a million ways to center s or text in CSS, horizontally or vertically. All the ways are unsatisfying...