Posts Tagged ‘ruby’

Sorry Mephisto.. Moving to WordPress

Dear Mephisto, you’ve been great. We’ve been dating for a while, and I didnt have any complaints. but I’m sorta sick of writing blog posts in your web UI. I heard there are plugins for 0.8 for metaweblog api support, but after putzing around with rails 2.0 vs 2.2, etc… I decided to break up [...]

Pretty SVN commit emails

So i know it may be old school, but I like getting svn commit messages, especially when working on a small team. I found ElliotH’s post about A better subversion post-commit hook than commit-email.pl, but it wasnt entirely working.
Most of the credit goes to him, I just fixed the colorization.
[UPDATED]: for [...]

JRuby trunk == better/faster Rails performance

So I remember a couple months ago playing with JRuby, and while fibonacci was super fast, Rails was way off.. ActiveRecord performance 6x-10x slower than MRI…
Looks like its getting better. Disclaimer: These are really really simple non-scientific tests.
Local mysql database, MYISAM, table people, with 2 columns, (id, name). 100k rows

> jruby -J-server -O [...]

Super fast IP to lat/lng in Rails – Part 2

In Super fast IP to lat/lng in Rails, I showed a solution for fast IP to lat/lng resolution in rails. I called it “Super fast” because it performed orders of magnitude faster the the RESTful interface, but it was also “Super fast” to implement. That being said, Kyle made a comment to [...]

Killing sneaky mongrels

We found that sometimes monit fails to restart all mongrel instances after deployment and some of them end up running with the pid file gone. Since there is no pid, monit believes the instance is not running so it tries to start a new one on the same port and, of course, fails. Which leads [...]

Using a ruby-based AIM notifier in nagios

If you use nagios for monitoring of your rails instances, you might want to get notification not only via email or SMS-messages but to your AIM when you are online. The script (libexec/aim_notifier.rb) utilizes the Net::TOC gem for sending out notifications:

#!/usr/bin/env ruby

require ‘rubygems’
require ‘net/toc’

user = ‘your_bot_name’
password = ‘bot_password’

msg = ARGV[0].to_s.gsub(‘\n’, [...]