We ran into trouble when adding additional compute units to our railscomplete Hosting environment lately. VM-instances on the new...

highscalability.com

Awesome battle report from Pinterest trying to scale their setup using different approaches. When you push something to the limit...

Rails gives you migrations to change your database schema with simple commands like add_column or update. Unfortunately these commands...

In specs, the session never persists but is always a new object for each request. Data put into the session...

Note: This technique is confusing and slows down your test suite. Copy the attached code to features/support. This gets you...

Say you want to allow users to emphasize some string, but the whole markdown thing would be far too much...

stackoverflow.com

When you use ab to do some performance benchmarking, you might run into output like this: Complete requests: 200

Find out in this short guide, how to horizontally center a absolute positioned container with CSS. Note: We have a...

nt.ntnu.no

yaml4r is a juxtaposition of yaml documents and their Ruby couterpart. Thus, it does a great job as YAML-doc...

conversionxl.com

We all struggle with pricing. Here is some interesting information that helps you with your pricing decisions.

view_context.helper_method('args') Rails 2 ApplicationController.helpers.helper_method('args') Also see How to use helper methods inside a model...

The User-Agent HTTP header identifies the client and is sent by "regular" browsers, search engine crawlers, or other web...

The way Rational#to_s works on Ruby has changed from Ruby 1.9 on. Here is how to get the...

When a controller action redirects to an external URL (like http://somehost.com/some/path) you will find that this is hard...

To set a cookie in your test browser for cucumber tests, you need to know which driver you are using...

singlepageappbook.com

Great look at the tradeoffs between progressive enhancement with jQuery or similiar, vs. client-side views.

coding.smashingmagazine.com

Smashing Magazine lists some handy tricks for print style sheets, all with CSS: Expand External Links For Print

Since there are more and more touch-capable devices out there, as a web-developer it becomes more and more...

ariejan.net

Rails understands a :limit options when you create columns in a migration. Its meaning depends on the column type, and...

robots.thoughtbot.com

Guide how to make fixes in other people's GitHub repositories. It's basically "Open Source Development 101".

Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting...

mysqlperformanceblog.com

When MySQL refuses to use your index, there's a number of things that you may be doing wrong. One...

This error can happen in Ruby 1.9. To fix it, add the following line to the top of your .js.erb...

gist.github.com

Rails 2.3.16+ on Ruby 1.9 causes warnings like this: .../gems/activesupport-2.3.17/lib/active_support/core_ext/string/output_safety.rb:22: warning: regexp match /.../n against to UTF-8 string...