You can use heredoc to avoid endlessly long lines of code that nobody can read. Heredoc strings preserve linebreaks and...

awsdocs.s3.amazonaws.com

There is a new card about how to do this with the new AWS Command Line Interface

agileweboperations.com

features are pre-sold without any option to negotiate what’s important and what may be left out, you inevitably...

makandra dev

When you run rake db:create and get this error message Couldn't create database for {"encoding"=>"utf8", "username"=>"root...

stackoverflow.com

Most likely you run rake and your code is causing an exception which is not the one shown in your...

whatsmydns.net

whatsmydns.net is an online service that allows you to instantly perform a DNS lookup to check a hostnames current IP...

Consider you have a website vhost listening to www.example.com, redirecting all incoming requests that do not talk about the configured...

github.com

ExecJS lets you run JavaScript code from Ruby. It automatically picks the best runtime available to evaluate your JavaScript program...

makandra dev

Here is a way to create a duplicate of one database, with all its tables and their data, under a...

If your application raises an error like ... Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock...

There is a bug in Rails 3's dbconsole script, which makes the following command open a database console for...

Remember how Rails 2 came with an awesome feature that broke all code using Time.now or Time.parse? This behavior is...

Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...

Do you have page caching enabled for the development environment and there are cached pages lying around in public/?

weblog.rubyonrails.org

jQuery as new default Javascript library, streaming response support, attr_accessible with roles, prepared statements, easier migrations.

When writing a piece of reusable code, you sometimes need to have separate code for Rails 2 and Rails 3...

While it might seem trivial to implement an invoice that sums up items and shows net, gross and vat totals...

Calling Time#utc, Time#gmt or Time#localtime will not create a converted copy. Instead these methods modify the receiving...

After updating Rubygems you see a wall of deprecation warnings like this: NOTE: Gem::SourceIndex#add_spec is deprecated, use...

papercut.com

Retaliation is a Jenkins CI build monitor that automatically coordinates a foam missile counter-attack against the developer who breaks...

I recently browsed through the ActiveSupport code and found some nice stuff I did not know about: ActiveSupport::Callbacks

makandra dev
forums.mysql.com

Do you wonder which databases are actually taking up how much space but only have one huge ibdata1 in your...

makandra dev

If you want to use the (badly implemented!) solarized color scheme in your Rubymine IDE: Clone the IntelliJ IDEA port...

Open up your "Base File.sublime-settings" (Preferences Menu → File Settings – User) in Sublime Text 2. Add entries for font_face...