Tagged "safari"

← All tags

  1. Chrome Beating Safari: Apple Begs "Please Don't Throw Me in the Briar Patch"

    Google Chrome Market Share Surges, Apple’s Safari Dead In Water, Microsoft’s IE Drowning:

    The more important story here is potentially that Google's Chrome is gaining share much faster than Apple's Safari. This highlights the power of Google's 'open source' software model, as compared to Apple's integrated hardware-software combo. The software versus hardware/software model, of course, is what doomed Apple in its first battle to the near-death (against Microsoft). So it's worth watching this one closely.

    I’m going to return to my point from a couple of days ago instead of savaging the excerpt.

    Chrome’s rendering engine is WebKit. That’s an Apple project. Apple took KHTML, spruced it up (such that I know of one Linux site where Konqueror breaks but Konqueror-using-Webkit works), and made it open source. Google liked what it saw and borrowed it for Chrome.

    If the author of that excerpt were to be confronted with this fact, he or she might backpedal by pointing out that Apple is a tiny bit open but Google is super-open, and the uptake numbers reflect that. Such backpedaling would require additional politeness on our part, because that’s entirely not the point. The point is this:

    It isn’t a bad thing for Apple that Chrome is doing well using WebKit. In fact, it’s a really, really good thing: Apple can continue to serve its customers as it sees fit, Google can continue to serve its customers as it sees fit, and neither has to pay a price for the other’s popularity in terms of the way its customers experience the Web. Both get an outstanding, standards-compliant rendering engine that runs on every major desktop platform, is amenable to being wrapped in a wide variety of toolkits, user agents and form-factors, and helps ensure that we won’t ever have to worry about a single vendor trying to lock the Web up with a bunch of proprietary, non-standard extensions and quirks. Chrome’s gain is every Safari user’s gain and vice versa.

    If we want to talk about what in this story is worth watching closely, it’ll be in the ways Apple and Google interact around the WebKit project, and how two companies that are on a collision course in a couple of different spheres (besides the heavily commoditized browser market) manage to relate to each other in a case where they share a mutual interest. Might as well include Adobe in the companies to watch despite bitter disagreements: It uses WebKit to render HTML in Air.

    #apple #chrome #google #safari #web standards

    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 →