• Some of the world's hottest startups - Bezurk on Business 2.0

    Business 2.0 recently published an article on the world's hottest startups outside the US and Bezurk was picked. Nice to know that ;)

    Bezurk on Business 2.0


  • YSlow - Firefox extension that helps to optimize your web pages

    YSlow is a Firefox extension that works with Firebug to grade your web pages' performance and gives you advice on how to fix any problems. Awesome. It has JSLint built into it too. And yes I got a big freaking F. Via Arun (IRL).

  • MySQL command line "secret"

    Tom Preston-Werner (of Gravatar and Chronic fame) wrote about this neat MySQL command line "trick" where instead of ending your SELECT statements with the usual semi-colon, using a "\G" gives you a very readable output.

    mysql> select * from locations where location_code = 'SIN'  limit 1\G
    *************************** 1. row ***************************
              location_code: SIN
              location_name: Singapore Changi Apt 
    multi_airport_city_code: SIN
              location_type: A
          location_sub_type: A
               country_code: SG
                 state_code: 
                     active: 1
                   latitude: 01.22.00N
                  longitude: 103.59.00E
    1 row in set (0.10 sec)

    Very useful, especially when SELECTing multiple fields where the output becomes unfit for visual consumption (you know what I mean, just go SELECT some stuff in your MySQL command line and you'll see if you don't).

  • God and your web server

    God is a new process monitoring Ruby framework with a rather apt name (no, it's not that God). The config files looks something like that:

    God.meddle do |god|
      god.watch do |w|
        ...
      end
    end

    Interesting code to write. And feels safe too to have God watching over your mongrels. Oh and you can use it to clean up stale mongrel PID files without patching mongrel_rails. Right now I use monit a lot and it's really rather unDRY to have repeated configs for each mongrel on the server (is there a better way of doing this in monit?). God would be able to DRY it up.

  • logrotate and mongrel (mongrel_cluster)

    I've never actually explored log rotation tools in Linux and merely knew of the existence of logrotate and left it at that until log sizes really became a problem. Turns out logrotate is amazingly easy to configure, and thanks to this Logrotate and Mongrel blog post by Corey Donohoe I have it setup for my Rails applications that are running on Mongrel. Here's what my /etc/logrotate.d/mongrel_cluster looks like:

    /var/railsapps/APP_NAME/shared/log/production.log {
      daily
      rotate 28
      missingok
      compress
      sharedscripts
      postrotate
        for i in `ls /var/railsapps/APP_NAME/shared/log/*.pid`; do
          kill -USR2 `cat $i`
        done
      endscript
    }

subscribe via RSS