Friday, July 1st, 2005


iTunesRater seems to be leaking memory, and I think I know where.

I discovered this by just watching the amount of memory it used, and each time a new track plays, the memory usage goes up. I think it’s to do with the artwork display: I thought I deleted the image being displayed, but maybe I don’t.

Before I update the image with a new one, I use the code:

        delete image of image view "Artwork"

(both times: when I replace the artwork in the main window, and the previous track drawer).

However, unless I’m missing something else, this is where the leak is!

View Comments (0)   RSS Feed for Comments on this Post

Taking into account the comments on PhotoMatt’s acronymit page (where I shamelessly stole some ideas, including the list of words!), I’ve modified acronymmer.py so that it:

  1. Does not apply <acronym> tags to instances that have been acronymmed already.
  2. Does not apply tags to instances that are inside href or title strings.
  3. Does not save the file if no changes have been made.

Here it is, including my current acronym list. (I know some of these are Abbreviations, but ecto, and some browsers do not handle this tag).

Also, this code needs to be re-pasted - I was trying to make it (XHTML) valid, and it’s broken now.
(more…)

View Comment (1)   RSS Feed for Comments on this Post

Apparently, Apple has a new tool for adding Chapter information to AAC files, but it is CLI only. I’ll write a wrapper GUI for it tonight, since Jaq is away, and I don’t need to go to bed tonight.

But first, Chicken & Chips.

View Comments (0)   RSS Feed for Comments on this Post

Man, this is cool. After reading about it on Fraser Speirs’ blog, I tried SubEthaEdit’s Copy As XHTML. (⇧⌘C)

It is extremely good.

See:

#! /usr/bin/env python

"""A script for ecto that adds abbr and acronym tags to the text"""

TODO = """
Lookup on the internet for a list of acronyms/abbreviations?
"""

The only thing missing for me is the ability to paste this into ecto, and have ecto be able to edit it in Rich Text mode, rather than just HTML.

(Oh, and I think my stylesheet is stopping the comment/string/keywords appearing in colour).
[Edit: No, it was an issue with double-quotes being escaped by a slash! I'm not sure what caused it, but it was annoying]

[composed and posted with ecto]

View Comment (1)   RSS Feed for Comments on this Post

Project Officer - Communication & Game Development
(more…)

View Comments (0)   RSS Feed for Comments on this Post