I prefer using Opera's "User mode" to toggle an outlining of HTML elements quickly. This helps greatly when you...

...silenced.join('|')) ActiveSupport::Deprecation.behavior = lambda do |msg, stack| unless msg =~ silenced_expr ActiveSupport::Deprecation::DEFAULT_BEHAVIORS[:stderr].call(msg, stack) end end This will only work with warnings that go through...

If you type a command in your bash that doesn't exist you get this: bash: foo: command not found...

makandra dev

AWstats is build to regularly run on webservers. If you want it to build a report once, here is the...

Make your custom web font available Add to ckeditor/config.js CKEDITOR.editorConfig = function(config) { config.contentsCss = [ '/assets/myCkeditorStyles.css', // any other file to encapsulate custom...

I pushed a new version of the Cucumber Factory gem. This new release lets you refer to a previously created...

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 are using git rebase and are currently editing a commit (due to a conflict, for example), you may...

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...