Django vs. Rails

I just finished going through a Django tutorial.

My first impression is that Django is perhaps a little trickier to get going than Ruby on Rails (though this probably becomes immaterial once you get accustomed to it). The thing that I really like about Django is that the basic paradigm for setting up models makes more sense to me – that is, in Django, you write Python code to represent your model and Django generates the SQL for your database. This is the opposite of the approach of Rails where you start with database tables and RoR does introspection and generates the code for the model. Personally, I am more comfortable with code than with SQL so this feels better to me. Also, SQL can vary between database implementations (i.e.: sqlite vs. MySQL vs. Postgres) so code seems like the more “stable” representation.

Released Export2Excel 1.0.1 for Yahoo! Music Jukebox

I released a new version of my Export2Excel plugin for the Yahoo! Music Jukebox.

Here are the changes:

Screenshots

YMEExcelPlugin_UI  

YMEExcelPlugin_Worksheet

Release notes

1.0.1

SMART (Smart Monitoring And Rebooting Tool)

I just read about SMART (Smart Monitoring And Rebooting Tool) in a Linux magazine recently so I tinkered with it a bit.

It’s a system monitoring tool, kind of like Nagios, but much, much simpler (no Web UI, no flap detection, etc.). I think if I cared about something enough to monitor it, it’s probably worth it to set up Nagios, as Nagios is more sophisticated and has been thoroughly battle-tested. But for some reason if you wanted something much more lightweight and simpler than Nagios, than SMART could be of interest. If you hate Nagios because it’s written in Perl, I’m not what sure what you’ll think of SMART, since it’s written as a bunch of bash scripts – worse, if you ask me, but different strokes for different folks.

You can download SMART from here (Universitat Internacional de Catalunya).

Here’s some sample output (after a bit of hacking on the configuration files):

~/sw/smart$ ./smart

SERVICE         PID     PROCS   STATUS          PROBLEM
-------         -----   -----   ------          -------
APACHE2         6188    4       [OK]
ATD             4926    1       [OK]
BACKUPPC        4335    1       [OK]
CRON            4939    1       [OK]
CUPS            6279    1       [OK]
DISK            ?       0       [OK]             No start command.
KLOG            4079    1       [OK]
NFS             ?       8       [OK]
NMB             4698    1       [OK]
NTP             4861    1       [OK]
PORTMAP         ?       1       [OK]
POSTFIX         4668    1       [OK]
RPC.MOUNTD      ?       1       [OK]             No start command.
RPC.STATD       4834    1       [OK]             No start command.
SMB             4700    2       [OK]
SSH             4719    3       [OK]
SYSLOG          7430    1       [OK]

1 out of 2 CableCARDs working

Comcast came out on Tuesday and they seemed to be fairly puzzled by CableCARDs. After 3 or 4 calls to the office, the technician got one of our CableCARDs activated. The other one is still not working, even after a call to Comcast. I’m going to need to keep calling them until I get a rep who is actually familiar with CableCARDs.