Have a backup. Stop MySQL: sudo service mysql stop Move (or copy) your mysql directory. If you want /mnt/mysql to...

We regularly need to connect to the server in order to e.g. access the production console. Guessing the Capistrano deploy...

makandra dev

Consider the following HTML & CSS: ^ img { background-color: red; } div { border: 1px solid black; } This will leave a margin of...

...you want one distinct version of RubyGems to be installed to replicate the same behavior across multiple servers. Usually would do this to update your RubyGems, but this always takes...

deadlock 0x7f8a4160a360: sleep:- (main) - /home/me/.rbenv/versions/1.8.7-p375/lib/ruby/gems/1.8/gems/bundler-1.14.3/lib/bundler/worker.rb:43 deadlock 0x7f8a38c03b08: sleep:- - /home/me/.rbenv/versions/1.8.7-p375/lib/ruby/gems/1.8/gems/bundler-1.14.3/lib/bundler/worker.rb:56 *** longjmp causes uninitialized stack frame ***: /home/me/.rbenv/versions/1.8.7-p375/bin/ruby terminated

github.com

MongoMapper is a MongoDB adapter for Ruby. We've forked it so it works for Rails 2.3.x applications running...

After my update from MacOS X 10.6 Snow Leopard to 10.7 Lion the search function in Apple Mail stopped working...

If you are using VNC to run Selenium tests, it may be hard to see what's going on since...

This is non-trivial because you need to fake event objects and require different code for different browsers. Luckily, there...

...When /^I click on "([^\"]+)"$/ do |text| matcher = ['*', { :text => text }] element = page.find(:css, *matcher) while better_match = element.first(:css, *matcher) element = better_match end element.click

You can detect city and country from an IP address by using the GeoLite database. This is a flat file...

makandra dev
stackoverflow.com

Assuming you're wanting to undo the effects of git rm or rm followed by git add -A or something...

When you do a git add . and have deleted files, git won’t stage them to be commited (as deleted...

progfu.com

...you need to do is prefix every command with zeus. That means rails server becomes zeus server, rails console becomes zeus console, and so on. From the Github page:

You have multiple options: Just don't have a type column. All STI magic will be disabled automatically.

Copy the attached Ruby code to config/initializers, or paste it into your IRB console. You can now dump any two...

I prefer the application that I'm currently working on to be reachable at http://localhost/. So when I switch...

docs.angularjs.org

...to move the track by instructions to the very end of your statement, i.e. behind any filters. Broken Consider the following: ng-repeat="child in category.children track by child.name | orderBy...

...you were working last or you need to check all traits for mistakes. This behavior is likely to be caused by Rails' autoloading...

If you need to find all files inside a directory that were modified in the last 24 hours you can...

If you get this: Installing typhoeus (0.3.3) with native extensions /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem...

makandra dev

When you delete a file with rm it's still possible to recover the file or parts of it. Use...

If you have several submit elements (inputs or buttons with type="submit") that each cause different things to happen (e.g...

When testing Ruby code that prints something to the terminal, you can test that output. Since RSpec 3.0 there is...