Fri 1st Jul 2005
Posted late at night, filed under
AppleScript Studio ,
iTunesRater.
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!
Fri 1st Jul 2005
Posted in the evening, filed under
Blogging ,
Python ,
ecto.
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:
- Does not apply
<acronym> tags to instances that have been acronymmed already.
- Does not apply tags to instances that are inside
href or title strings.
- 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…)
Fri 1st Jul 2005
Posted early evening, filed under
Languages ,
iTunes.
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.
Fri 1st Jul 2005
Posted early evening, filed under
General.
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]
Fri 1st Jul 2005
Posted early afternoon, filed under
Touch Football.
Project Officer - Communication & Game Development
(more…)