Because your examples should not change global state, you should not need to care about the order in which RSpec...
In order to request a SSL certificate from any dealer, you usually need a CSR certificate. As both the CSR...
This snippet makes links that refer to an anchor (like "...
...") scroll softly to it.\ In this example we only do...
Deprecated ways to execute shell code in Ruby This is just a reference for legacy code. For new code, always...
Today I needed to execute a ruby gem executable with sudo. But, surprisingly, bash would tell me command not found...
We recently decided to put static content for HouseTrip.com to Amazon Cloudfront for a faster user experience. This happens fully...
When deploying an application with "cap deploy" by default [1] you only deploy your code but do not run migrations...
You set a flash message and it shows up as it should. However, it is displayed again the next time...
Reading a URL via GET: curl http://example.com/ Defining any HTTP method (like POST or PUT): curl http://example.com/users/1...
The Basic Authentication header encodes username and password. Effectively, it's just Base64 plus a "Basic" prefix.
When installing RMagick you may get an error messages like this: Version 2.13.1: checking for Ruby version >= 1.8.5... yes
By default, Opera 11 hides any passed params and the URL's protocol until you focus the address bar.
Artifice allows you to replace the Net::HTTP subsystem of Ruby with an equivalent that routes all requests to a...
Within an event handler, there are multiple methods to cancel event propagation, each with different semantics. event.preventDefault() Only prevents the...
The information in this card is only relevant for Rails 2.3-era apps. This note gives a quick introduction into...
Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2
Now allows to list transition paths from and to arbitrary states.
Add deprecation warnings and their solution or link to available solutions. Global access to Rake DSL methods is deprecated. Please...
If in your application your users pass along params that result in filenames, like invoices/generated?number=123. This could be...
Pie sometimes does not properly redraw elements upon changes. This often happens when the change comes from somewhere further up...
When working with large Sass files you will notice that the first request after a change to a Sass file...
When you click a link or a press a button on a Selenium-controlled browser, the call will return control...
Note: For PostgreSQL you should use advisory locks. For MySQL we still recommend the solution in this card.
Have a backup. Stop MySQL: sudo service mysql stop Move (or copy) your mysql directory. If you want /mnt/mysql to...