In general, you should not put a block element inside an inline element. So don't do this: text

Chrome gives you the currently selected element in the inspector with $0. If you select a button in the DOM...

So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...

You can use three different versions of the regular expression syntax in grep: basic: -G extended: -E(POSIX)

This method will remove automatically installed packages that no other packages depend on any more. This, of course...

If your external displays not switching on or showing a weird behavior (for e.g. all displays getting the same configuration...

When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...

In order to have monitoring for Sidekiq (like queue sizes, last run of Sidekiq) your application should have a monitoring...

If you want to find the commits that touched a specific text in a file, use git log -S 'text...

makandra dev

AWstats is build to regularly run on webservers. If you want it to build a report once, here is the...

To simulate Rails' to_sentence in your JavaScript application, you can use these few lines of CoffeeScript code: joinSentence = (array...

When you're nesting setTimeout(f, 0) calls, your browser will silently increase the delay to 5 milliseconds after the...

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

makandra dev
css-tricks.com

All new browsers support the new object-fit CSS property. It allows to specify how an element behaves within its...

jakearchibald.com

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

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

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

developer.mozilla.org

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

gist.github.com

The NestedHash class allows you to read and write hashes of any depth. Examples: hash = {} NestedHash.write hash, 'a', 'b', 'c...