Tuesday, June 30, 2009

Setting timeouts for the ruby SOAP library

This post helped me with setting the connect_timeout, receive_timeout, and send_timeout attributes for the ruby SOAP client. Make sure to read the first comment!

The timeout is specified in seconds. You can use a decimal number to set sub-second timeouts.

Thursday, June 11, 2009

Kill annoying Postgresql NOTICE messages when running Rake

If you use Postgresql for your Rails development, and if you reset your local database a lot, then you may appreciate this tip.

  1. Edit your postgresql.conf file

  2. Un-comment the client_min_messages setting

  3. Lower it from notice to warning

  4. Restart postgresql

No more annoying NOTICE messages.