web.archive.org

xargs is a powerful bash tool that can take input from $STDIN and pass it to a given command. I.e...

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

Same requests are recorded only once in vcr. Replaying a test fails, if you trigger the same request multiple times...

api.rubyonrails.org

ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information...

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

When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...

jakearchibald.com

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

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

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.

makandra dev

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

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

E-mails are usually encoded using Quoted Printable. Here is how to decode or encode such strings. You probably know...

makandra dev
serverfault.com

Logging tcpdump output all the time can create a huge amount of data. This can be both: too much data...

After restarting an OpenStack host you may encouter problems with missing iptables rules (we're on an quite old release...

As the web is being used for more and more tasks, expectations rise. Not only should web pages offer rich...

You may encounter problems with passenger starting an application with an updated rails. If you find an error like this...

makandra dev

Each time thin boots, it prints a boot message : Thin web server (v1.6.3 codename Protein Powder) Maximum connections set to...

In Capistrano 2, directories in shared_children used to be symlinked to the shared directory during the finalize_update task...

Running projects parallel makes some trouble with PDF generation. Use geordi rspec spec to force sequential tests for the whole...

You might wonder about this request in your test.log: Started GET "/__identify__" for 127.0.0.1 at 2015-04-29 18:00...

edgeapi.rubyonrails.org

Starting from Rails 4.0, you can use a special form options helper called #collection_check_boxes. It behaves similar to...