Zach Brock's blog



Zach BrockZach Brock
Standup - 03/20/2009
edit Posted by Zach Brock on Friday March 20, 2009 at 05:17PM

Help

SMTP monitoring - Is there a simple way to set up a rails app to receive email and act on it? Suggested solution was to set up something with action mailer and script/runner to do an action whenever an email is detected.

Git ambiguous SHA1 - A CI box was blowing up and complaining of an ambiguous SHA1 tag when trying to build a project. The 6 character shortened tag was apparently not recognize as unique enough even though nothing else in the git log had the same string. The team got around it by giving it a 7th character for that build but has no idea what could have caused it.

Complex RJS example - Does anyone have suggestions for where to look for good, easy to test complex uses of RJS? What is a good structure for your code and tests?

Replacing Fixture Scenarios - Fixture scenarios are blowing up on a project when trying to use Polonium. Anyone know of a good replacement? Suggestions:

Interesting

Xray - You can use the Xray Gem to get a java style thread dump when you kill -3 a ruby process. It can be really helpful for figuring out what's causing your thin/mongrel processes to thrash. update: See Steve's Post for more info.

Zach BrockZach Brock
Standup - 3/19/2009
edit Posted by Zach Brock on Friday March 20, 2009 at 05:20AM

Help

One of our teams ran into an issue with javascript in their staging environment so they turned on asset package caching in development to try and hunt it down. It was a hassle to remove the all.js and all.css files over and over when developing in order to get Rails to regenerate them. Is there a better way? The suggested solution was to just shell out before each request in development mode with rm public/stylesheets/all.js

Interesting

Desert, Rails 2.3 and some pivotal plugins aren't playing together very nicely at the moment, but it's being worked on and should be resolved fairly soon. For now if you're using Desert you probably shouldn't upgrade.

Zach BrockZach Brock
Standup - 03/18/2009
edit Posted by Zach Brock on Wednesday March 18, 2009 at 04:12PM

Help

None today

Interesting

Windows Service Tip - If you're using Win32Utils and your process keeps dying, make sure you've put any code that takes more than 2 seconds into Daemon#service_init. See the Daemon documentation for more info.

Tech Talk on Compass - Chris Eppstein is giving a talk on Compass today at 12:30pm. If you can't make it today, you can catch it in a few weeks on the Talks page.

Zach BrockZach Brock
Standup - 03/17/2009
edit Posted by Zach Brock on Tuesday March 17, 2009 at 11:44PM

Help

Windows Service - A project was trying to make a daemon for windows using the Ruby Win32Utils. It didn't work. The solution they came up with was to just run the thing they need in a command window and reboot the EC2 instance its on if it dies. Some suggestions for how to run a real service should it prove necessary included:

Ajax chat feature - Implemented as a first pass with a polling system, does anyone know a better way? Suggestions included:

  • Comet with Rack
  • Juggernaut

Interesting

Rails 2.3 is out! Excitement abounds!