Reading Apple Mail Attachments

October 24th, 2007

Okay, so Jess is finishing up her Masters of Project Management with many of the assignments having gone to and from people for review via email.

One problem however: Enter Apple Mail, exit attachments.

Instead of the nicely revised document, you get a nice, anonymous, useless attachment. It’s frustrating to know that this “noname” attachment contains all of the precious work, just out of reach.

So, on opening this attachment (in vim, of course) I found that it was basically a base-64 encoded version of the document and some other stuff, with normalish MIME headers. Sort of like an attachment in an attachment. So by grabbing the most important (biggest) bit of encoded text, stripping out the new lines and un-encoding it, I could successfully get the document back and everyone was happy.

Having needed to use this script on a few occasions, I decided that it might be useful for some others, so here you go:

Of course I can’t be held responsible for the script not working, destroying priceless documents, killing your cat or anything else.

I have also put the script up on the server for quick reference: http://www.rjohnson.id.au/attachment_decoder/
Hope this is useful to someone out there…

New ABC News

August 19th, 2007

I just noticed this the other day, the ABC (Australian Broadcasting Corporation to those people from the states) have re-worked the News section of their site.

The first and most important thing I noticed was that the News was actually there! For example, I heard on the radio this morning that there was an incident involving our opposition leader and a strip club in New York while he was a little shin dig for the UN (wont someone think of the children??). Apparently a statement had been released but there wasn’t any explanation about what the substance of that statement was, jump on to the website and there is the article, posted a whole 24min ago.

I also wanted to know what happened to that passenger jet from Turkey that was hijacked. A quick click on World and then the fantastic tagging system at the top of the page and I found the article. Once in the article I could see all of the related stories so I could back-track through each of the updates.

There are also a bunch of Web2.0 (if I can use that term) features that include a personal list of tags for new stories that are applicable to you, and a personal stash of Articles (like internal bookmarks). Combine that with a lack of advertising, a smattering of new media and the tagging system for navigation and we have a winning site. Of course this is all government funded so check it out and subscribe to the RSS feed, public interest will help ensure the future of this great service and the ABC in general.

News Home: http://abc.net.au/news/

Safari For Windows

June 13th, 2007

Yay!! I didn’t believe it when I first heard it, but apple has released a public beta of the soon-to-be Windows version of Safari.

First impressions are really quite good, here are a few of the highlights:

Quartz font rendering.

    It just looks sweet, using the same font rendering as available on OS X. I love my fonts, and I love seeing them displayed without the hinting (that modifies the shape of the letters to better fit the pixels) combined with the secret sauce that manages to make things not too blury.

    Aqua widgets

      Rather than go through the rather lengthy process of porting the application to an alternate toolkit, Apple ported their toolkit to Windows, which is good “˜cause it means us Microsoft ppl can get a bit of a taste of the Mac world.

      Thin Borders

        I know it sounds lame, but one of the things I love about Macs is the way that everything is presented on the screen. The application just sits there with no borders; you just use the resize option at the bottom-left of the window to do the needful. Vista on the other hand looks terrible, with great chunky borders that attempt to show off how well the glass theme works. As a result, the shadows don’t seem to make the windows float like they should, it’s a small thing I know, but it’s the small things that make a big difference.

        We can test!

          Being a fan of accessibility and cross-browser compatibility, I am really really happy that this is happening. I can actually see how the site will look on a Mac! That is complete with the same font rendering, DPI settings, etc. It’s really handy.

          The frustrating things:

          I can’t get it to work on my machine at work.

            I think I must have had some dodgy version of the “Lucida Grande” font that has caused Safari to start off without any text being displayed. Kind of a downer. I have attempted to replace these problematic fonts with the correct ones, but I have still had no success. I hope Apple will be able to do something about this “˜cause I am keen to use it.

            My laptop touchpad scroll doesn’t work

              Which is rather annoying. I assume it has something to do with the lack of integration with the underlying OS, both a good and a bad thing I guess.

              We will potentially have another browser that we need to support.

                Yeah, I know that I said it’s great to able to test on a new browser, but it will be a pain when we can no longer say “well, it’s not perfect on Safari, but that’s only 1.5% of the market so that’s acceptable”. I do think that the browser share will increase considerably with this move to be something more significant, and that will mean another Javascript DOM to accommodate for and another set of CSS curiosities to consider.

                Download the beta here: http://www.apple.com/safari/