1. mismatch_cnt, RAID1, and a clever fix

    This past weekend my computer showed an ominous error:

    Jan 1 04:06:16 lister mdadm[8317]: RebuildFinished event detected on md device /dev/md/0, component device mismatches found: 9856 (on raid level 1)

    Huh, that doesn't look particularly good. Mismatches between drives tend to lead to bad things …

    read more

    comments

  2. Stupid JavaScript Tricks

    > bar = ['width', 'height']
    [ 'width', 'height' ]
    > bar
    [ 'width', 'height' ]  // Nothing up my sleeve
    > bar.indexOf['length']
    1  // Presto!
    

    In case you haven't guessed what's up here: JavaScript automatically surfaces a value called 'length' in all arrays. So you can get the length of bar by typing bar.length and bar['length' …

    read more

    comments

  3. Habit tracking: Shaving

    I've been quietly implementing a new habit for myself. As part of the Habit Guide from Zen Habits I've decided to start with a ridiculously small habit in order to get myself back into the habit of making good habits. (Play along at home with the "Craig says 'habit"" game …

    read more

    comments

« Page 2 / 255 »

blogroll

social