1. Sleep's Good, Too.

    Ed pointed me at an

    item about sleep deprivation on 20/20’s site. It’s got the earmarks of the sort of science reporting that aims for the breathless a little too readily, but the study it sources is interesting anyhow, claiming that there may be a link between obesity and sleep deprivation (which the scientists cited say occurs if you get less than eight hours a night). Some findings:

    • 20-year-old men allowed only four hours of sleep a night had a drop in insulin response, their capacity to process blood sugar dropped 30%, and they showed elevated levels of a stress-related hormone that impairs memory.
    • "sleep debt" can be paid off, but it's better to do so in advance by taking a short nap in anticipation of missed sleep
    • it takes a while to make the "debt" back up. After four nights of eight hours of sleep, the subjects were still making more mistakes during tests than before they were deprived of sleep

    Crazy. I get about five to six hours a night, and I’m beginning to wonder if my Charlie Rose habit is worth it.

    Keep reading →
  2. Standards Are Good, M'Kay?

    Yesterday Sam noticed an entry by Jason Kottke about header abuse, namely RSS readers reporting themselves as referers when they access Web sites. This isn’t the right thing to do according to the standard, which mandates that referers must have a URI of their own. Good to note that with the latest release of NetNewsWire, that’s been fixed, which means I get to feel less antisocial when I use it since my visit won’t represent a borderline case of spamming an admin’s logs.

    Nothing wrong with a little advertising, but it’s good to stick to the specification… it’s what makes the Internet go ‘round.

    Keep reading →
  3. Yay Shell Posting!

    New tools are always fun. mtsend.py is a Python script for command-line posting to Movable Type ‘blogs. You just edit a plain text file then feed it to the script. It also does basic ‘blog info retrieval. I’m working on some scripts to use with the Mac script menu and BBEdit.

    For starters, I guess, here’s an AppleScript that dumps the contents of BBEdit into a tmp file then pipes that through the script (which requires, unfortunately, piped text and a specified operation via a switch):

    
    tell application "BBEdit"
    
    save front window to "Macintosh HD:Users:mph:.blog.tmp"
    
    do shell script
    
    ("cat /Users/mph/.blog.tmp | /Users/mph/bin/mtsend.py -N")
    
    end tell
    
    display dialog "Entry Uploaded"
    
    buttons("OK")
    
    

    mtsend.py also offers the ability to retrieve a list of categories, recent entry numbers, and a few other things, all of which are pretty good candidates for a little editor-centered automation.

    Keep reading →