1. MobileMe From Beyond the Grave & OMG Beards!

    Cautionary:

    If you’re using MobileMe to sync your iCal calendars and decide you’re going to let your subscription lapse, make sure you turn off the MobileMe sync settings on the iPhone first. I failed to do that and ended up with a situation where:

    • iTunes said I could change my calendar sync settings on the iPhone

    but

    • the iPhone wouldn’t expose sync settings for a MobileMe account I didn’t have anymore

    and

    • MobileMe’s sync preferences were grayed out because my account wasn’t active.

    Solution: Factory reset of the iPhone

    It didn’t hurt me, but it made me crabbier about this bit of thumb-sucking laziness in today’s NYT:

    They’re either hapless pests or the very people capable of overthrowing Windows. Take your pick.

    ‘It feels pretty clear to me that the open process produces better stuff,’ says Mark Shuttleworth, whose team at Canonical is leading the Ubuntu project.

    In December, hundreds of these controversial software developers gathered for one week at the Google headquarters in Mountain View, Calif. They came from all over the world, sporting many of the usual signs of software mercenaries: jeans, ponytails, unruly facial hair and bloodshot eyes.

    But rather than preparing to code for the highest bidder, the developers were coordinating their largely volunteer effort to try to undermine Microsoft’s Windows operating system for PCs, which generated close to $17 billion in sales last year.

    1. Ponytails! Beards!

    2. “Controversial software developers”

    3. “overthrowing Windows”

    wtf is “controversial” about open source developers? Do they bite the heads off of live chickens or something?

    I think the “hapless pests” are journalists who’ve realized they can get away with rewriting an article that’s been in circulation since 1998. It’s the Christmas fruitcake of tech journalism.

    Then you get to the part about it being noteworthy that kernel updates sometimes cause things to go wrong with drivers. Because that problem is, apparently, solved with Windows and OS X.

    #ical #iphone #mobileme #sync

    Keep reading →
  2. Dumping Your Safari History With Ruby (Apple's Curious Epoch)

    This is sort of weird, but it turned out o.k. in the end:

    Safari stores its history in ~/Library/Safari/History.plist. It keeps the lastVisitedDate of each entry in Apple’s CFAbsoluteTime format, which is a float, and which represents, according to a message on carbon-dev, a count of seconds since midnight on January 1, 2001.

    I don’t know what the significance is of that date, and I don’t know near enough about the traditional Unix epoch to know why it might or might not serve (insert tentative mumbling about the y2k38 problem from the guy who barely made it out of Algebra I in high school … Ed? You always have something to say about this stuff) but at least it was easy to deal with once I knew what CFAbsoluteTime started counting at:

    [sourcecode language=‘ruby’]

    !/usr/bin/ruby

    require “rubygems”

    require “osx/plist”

    MacEpoch = Time.utc(2001,“jan”,1,0,0,0)

    plist = “/Users/mph/Library/Safari/History.plist”

    history = OSX::PropertyList.load(File.read(plist), format=“false”)

    history[0][“WebHistoryDates”].each do |h|

     date =  MacEpoch + h["lastVisitedDate"].to_f 
    
     puts "{h["title"]} --  {date}"
    

    end

    [/sourcecode]

    Another weird thing: Using titles is o.k., but I’d rather parse URLs so I can track the attention a domain is getting. When osx/plist coughs up the hash with all the history stuff in it, the first key–the one with the url–is a null value. I can get at it with h[""], but it seems kind of off, and it seems to render osx/plist unable to dump the history back out to XML for less clunky parsing. A quick peek at the plist with plisteditor, though, and the key is, indeed, null.

    So all that’s the nub of a further exploration of what’s getting my attentional resources.

    Attentional Followup

    Yesterday I dropped a bunch of stuff from NetNewsWire, and it was a pleasure to wake up to an immensely less cluttered morning scan. One thing all my poking around in the attentional numbers revealed was that I tend to read a lot of the stuff I’d prefer to read the least. Dumping a few dozen feeds put the highest attentional score for any single feed to 81, where it had been 150 for the top feed prior to all the culling. Most of the remaining feeds score well below 50.

    It seemed a little counterintuitive to get rid of the things I read the most – they’re surely what I’m most interested in, right? – but after a little reflection I realized they’re the things I’m most eager to distract myself with, and there’s a difference between those categories.

    By way of further exploration, I think I’m going to tweak my script a little so it can take advantage of another NetNewsWire library feature, which is the “scripted attention score”:

    To affect the calculated attention score, you can change the scripted attention score. The scripted attention score is a component of the calculated attention score (it’s added).

    I can organize feeds into categorized folders, add a scripted attention score value to each of the folders based on my “real” interest in a given category, and start using that to refine cull recommendations from time to time.

    #attention #ruby #safari #solved

    Keep reading →