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

makandra Operations
redis.io

Hint You're not able to control which redis replica will chosen for the failover. Connect to your sentinel instance...

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

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

makandra Operations

If you want to perform a failover on another haproxy backend server this is the way you should do it...

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

makandra dev

Cause logstaglia is so cool you may want to record a video. We're lucky: Logstalgia has a parameter for...

github.com

Note The maintenance mode is enabled on all application server as soon as the file /public/system/maintenance.html is present. Installation

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