durdn.com

This article contains: Making ‘git diff’ wrap long lines Set a global proxy Clone only a specific branch

makandra dev

The bash offers control over the behavior of autocompletion. The most primitive example is this (just run it in your...

When searching for text in a MySQL table, you have two choices: The LIKE operator FULLTEXT indexes (which currently only...

If - for whatever reason - you have to render stylesheets dynamically, the following snippet might be of help. It emulates what...

Git commits should be very deliberate, and only contain changes that you really want to be in there. In order...

Our old solution for cronjobs, the "craken" plugin, is no longer maintained and does not work on Rails 3.2+.

blog.pivotal.io

So you are debugging like a boss and lost track of where you actually are in your code? No problem...

progfu.com

I am talking about development speed. When your application starts growing and you start adding gems, it starts to take...

Capybara gives you two different methods for executing Javascript: page.evaluate_script("$('input').focus()") page.execute_script("$('input').focus()")

Rarely, you might want to rebuild all gems with native extensions, because they might be compiled against outdated system libraries...

thegleebox.com

gleeBox is an experimental project that takes a keyboard-centric approach to navigating the web. It provides alternatives to actions...

Generally, Selenium tests use the browser to interact with the page. If it's unavailable, a timeout error is...

blog.codeclimate.com

“Fat models” cause maintenance issues in large apps. Only incrementally better than cluttering controllers with domain logic, they usually represent...

makandra dev
github.com

Turbolinks makes following links in your web application faster. Instead of letting the browser recompile the JavaScript and CSS between...

If you get this warning on your local machine one of these steps might help: Rebuilt the gem with the...

If some of your JavaScripts fail on Internet Explorer, but only in staging or production environments, chances are that JavaScript...

makandra dev

Browsing the git stash is a bit tricky. Here is how to see the changes without applying them:

There is no reason to leave trailing whitespace characters in your project's files, so don't add any.

The ActionMailer in Rails 2 depends on a buggy version of TMail, which sometimes inserts a blank line into the...

Given you store files on Amazon S3 and you need to stream those files out to people while you don...

Ever wanted autocompletion for paths from paths.rb in Cucumber? This card lets you write your steps like this:

If you type a command in your bash that doesn't exist you get this: bash: foo: command not found...

Note: Modern Rails has two build pipelines, the asset pipeline (or "Sprockets") and Webpacker. The principles below apply for both...

When you get an error like this: Invalid gemspec in [/opt/www/foo-project.makandra.de/shared/bundle/ruby/1.8/specifications/carrierwave-0.6.2.gemspec]: Illformed requirement ["# 1.1.4"] ... the machine's Rubygems needs to...