Posted on 12/09/2008, 1:56 pm, by aaron, under
All.
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 [...]
Posted on 11/05/2007, 6:51 pm, by aaron, under
All.
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 [...]
Posted on 11/03/2007, 9:56 pm, by aaron, under
All.
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 [...]
Posted on 10/31/2007, 3:04 am, by aaron, under
All.
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 [...]
Posted on 08/16/2007, 6:16 pm, by val, under
All,
Ops.
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 [...]
Posted on 08/14/2007, 10:36 pm, by val, under
All,
Ops.
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’, [...]