makandra dev
stackoverflow.com

When there's a Gemfile.lock in your working directory that you cannot remove by either checkout, reset [--hard], stash, probably...

Simply add this to your .rspec instead: --require spec_helper If you are on rspec >= 3 and use a rails_helper.rb...

I had a very frequent cronjob that in rare cases could be relatively slow. To avoid multiple instances of this...

docs.google.com

A very informative and interesting presentation about browsing performance, looking at efforts Google Chrome takes to increase it.

makandra dev
ne.di.unimi.it

Command line text editor with syntax highlighting, menus (F1), etc. This might be a worthy replacement for nano if you...

From time to time, RubyMine suddenly did not accept any keyboard input and felt crashed, while mouse interaction was still...

cssfontstack.com

Web safe fonts are fonts that are pre-installed by many operating systems. While not all systems have the same...

keycdn.com

Table of contents of the linked article: What are Web Fonts? Advantages of Web Fonts Disadvantages of Web Fonts

mail-tester.com

You can use mail-tester.com to check your application's e-mails for issues that might cause e-mails to be...

You can configure a stat socket for haproxy in the global section of the configuration file: global daemon

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

With "attaching an event handler once" you possibly mean one of these two things: Register a function for an event...

makandra dev
github.com

Note This card does not reflect the current state of lazy loading technologies. The native lazy attribute could be used...

github.com

Ag (aka "the silver searcher") is a very fast replacement for grep. It will parse your .gitignore for additional speedup...

Sometimes you just want to have a small web server that serves files to test something. Serve the current directory...

When you're developing a gem, never list the same dependency as both runtime and development dependency in your .gemspec...

While you can use Apache as a reverse proxy, it tries to be too smart. Try nginx instead, it's...

stackoverflow.com

There are many solutions, but a very concise one is this: hash.merge!(hash) do |key, old_value, new_value|

makandra dev
stackoverflow.com

git rebase -i -> mark your commit with edit git reset HEAD~ (remove the marked commit, but keep its...

phili.pe

One useful postgres command I stumbled upon recently was \x. It gives you an expanded display which allows you to...

While you usually do not need a Content-Type on GET request (which have a blank body), an external API...

Nobody needs HTML e-mails. However, you occasionally might have to write an HTML message for some weird reason. Here...

blog.activecollab.com

A great walkthrough through several design iteration of the same landing page.

relishapp.com

You can configure RSpec 3.3+ to raise an error when attempting to stub or mock a non-existing method. We...