If you worked with a system Ruby before switching to RVM, this system Ruby will be in your way when...
Apache HTTP server benchmarking tool (ab) is a nice tool to test performance on sites delivered by HTTP. If the...
If you say git stash, your stashed changes will be identified with an automatically generated message: $ git stash
Use Socket.gethostname. So for a machine whose hostname is "happycat", it will look like this: >> Socket.gethostname => "happycat" That should work...
The way MySQL's FULLTEXT tokenizer splits text into word tokens might not always be what you need. E.g. it...
You will get this when you are using the latest version of Rails with a recent version of Rack:
I needed a way to make my apps full screen from bash scripts. There is no super-easy way, but...
With the impending release of Ruby on Rails 4, it looks like a lot of developers will be updating their...
When doing a git blame, git will blame the person who added or removed white space in a line (e.g...
Microsoft Office pre-fetches hyperlinks using an internal DLL (which doesn't know about your cookies), follows all redirects and...
Axlsx is an incredible gem to generate "Office Open XML" spreadsheet files (XLSX). Does not break on large spreadsheets and...
Previous versions of Consul exhibited strange behavior when querying a power that returns nil. Consul 0.4.2+ behaves as expected:
You can define methods in any example group using Ruby's def keyword or define_method method: describe "example" do...
TLDR: In tests you need to clean out the database before each example. Use :transaction where possible. Use :deletion for...
When you have a Pull Request on GitHub that includes commits from another Pull Request, you will still see them...
If you ever wondered why a constant wasn't defined or wasn't available where you expected it to be...
jquery-timing is a very useful jquery plugin that helps to remove lots of nested anonymous functions. It's API...
As attachments to this card you will find a Cucumber feature and supplementing step definition that you can use to...
I was unsatisfied with the existing memory status applets for the Xfce panel, so I wrote a little shell script...
The bash offers control over the behavior of autocompletion. The most primitive example is this (just run it in your...
The basic idea is pretty simple: an element's height is accessible via the offsetHeight property, its drawn height via...
This works in all relevant browsers: document.activeElement You can use this in your Selenium steps, for example, to assert that...
When searching for text in a MySQL table, you have two choices: The LIKE operator FULLTEXT indexes (which currently only...
Static error pages To add a few basic styles to the default error pages in Rails, just edit the default...