10.30.06

Making Analog More Mac-Friendly

Posted in Programming, Web at 2:06 pm by Mark Lilback

As a Macintosh software developer, knowing statistics about what platform my users are using is very important. Do I need to support Panther? How important is an Universal binary?

Unfortunately, the stock analog doesn’t really help much in this regard. So here is a patch that should help things out. Instead of a giant Mac grouping, you can now get the Mac traffic broken down by PPC, Intel, and CFNetwork.

The following patch is applied to analog-6.0/src/tree.c.

902a903,912
902a903,912
>     else if ((c = strstr(whole, "PPC Mac OS X")) != NULL)
>       *name = "Macintosh:Mac OS X (PPC)";
>     else if ((c = strstr(whole, "Intel Mac OS X")) != NULL)
>       *name = "Macintosh:Mac OS X (Intel)";
>     else if ((c = strstr(whole, "CFNetwork")) != NULL)
>       *name = "Macintosh:CFNetwork";
>     else if ((c = strstr(whole, "XMLRPCCocoa")) != NULL)
>       *name = "Macintosh:Other Macintosh";
>     else if ((c = strstr(whole, "MarsEdit")) != NULL)
>       *name = "Macintosh:Other Macintosh";
904c914
<       *name = "Macintosh";

The one thing that could make this even more useful would be if every Mac application made sure its User-Agent included “PPC Mac OS X” OR “Intel Mac OS X”. For my logs, the top three are all from Ranchero: NetNewsWire, MarsEdit, and XMLRPCCocoa.

10.13.06

Hello world!

Posted in Miscellaneous, Personal at 8:35 pm by Mark Lilback

Ok, I’ve tried blogging a few times before on third-party sites (livejournal, myspace) and I even set up Moveable Type once but never really used it. I’ve wanted to blog for a long time, but I just never made myself do it. My degree is in friggin Journalism but aside from user manuals, I don’t think I’ve written anything, aside from the user manuals for software I’ve written, in at least 5 years.

But now that reading blogs has become a daily routine for me, and I’m blogging for my business, I figure I’ll give a personal blog another shot.