Defining a custom to_json method for your classes can be useful. Do it properly or you will "randomly" get...
Thunderbird 5 brings a custom chrome on Windows Vista/7 that uses translucent Aero decorations on toolbars and menubars. Here is...
This is for you if you get this error: cucumber.yml was found, but could not be parsed. Please refer to...
From time to time we're convinced that an error must be very close to the network card, OS IP...
This is about converting Haml to ERB and not the other way round which you probably want! This process can...
Trying to open a vnc window with geordi geordi vnc ended up with this error: > VNC viewer could not be...
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...
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...
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
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...
Assuming you're wanting to undo the effects of git rm or rm followed by git add -A or something...