Automatic iTunes track rating based on listening patterns Automatic iTunes track rating based on listening patterns
  • Home
  • Posts
  • Home
  • Posts

Archives

Automatic iTunes track rating based on listening patterns

Autorate

I have written an application that analyses listening patterns in iTunes and generates track ratings automatically. This is particularly useful when using Party Shuffle. The application awards a high score to tracks that are listened to frequently, and penalises tracks that are skipped frequently.

It uses the formula:

rating = (100 * ( (play frequency – lower) / (upper – lower) ) – skips per month * 5



Where upper is the main play frequency + 2 standard deviations, and lower is the mean play frequency – 2 standard deviations

<

p style=”text-indent:20pt”>
Download AutoRate 1.0 here

Read More

Run-down on Mac OS X media center software

Update: Matt Hansson has written a more up-to-date overview of the offerings. His findings: He still prefers Mediaportal on Windows to the currently available Mac solutions. Damn.

200704041635We’ve recently set up a home entertainment centre, consisting of a 40″ Samsung LCD TV, a Yamaha 6.1 audio setup and a Mac Mini.

In order to drive it all, I was after a full-screen media center suite (movies, music, DVD, etc), to hide the fact that it’s a computer – we don’t wanna see that muck!

It had to have a high usability, and a high WAF (Wife Acceptance Factor…Actually, partner, but you know), which means no hardcore key combinations, or dropping to terminal to kill -9 anything. I’m looking at you, Xhub.

It had to be relatively fast – no waiting around for five minutes for the music library to appear.

…And it had to offer some moderately easy way to share screen-time with EyeTV, the digital TV viewer/recorder.

Read More

OS X performance tweak?

200701041058While looking around for information on some fairly irritating memory leaks I’ve been encountering in OS X (some common library seems to be chewing up memory, so that after a few days of running, all my apps take up enormous amounts of memory), I found this old tip regarding setting the maxvnodes parameter.

A comment attached to the tip above quotes one of Apple’s kernel developers: “Increasing the value of maxvnodes will increase the number of files that get cached in RAM. This will make subsequent access to those files much faster. But the downside is that more of your RAM will be used up for this disk caching and thus you will have less RAM available for normal application use.”

Thus, by default, Apple specify a value that is apparently a compromise for best overall performance.

That said, I increased the value to 84672, despite not having large amounts of free RAM:

sudo sysctl -w kern.maxvnodes=84672

My machine, after running for a few days without a reboot, often runs quite sluggishly, with lots of swap activity. For example, bringing up the Dashboard after not using it for a while can take a good 5-15 seconds, depending on what else is running.

After tweaking the maxvnodes value, all the widgets in Dashboard refreshed within 2 seconds (it had been a fair while since I last brought it up) – just coincidence, or did it actually make a difference?

The system does feel snappier; I can do things like start apps, bring up menus, load webpages, switch desktops and use Quicksilver without the irritating delay that I usually get. Maybe it’s all in my head, but maybe not. Worth a go!

If it does work, the command can be put into /etc/rc to be run on boot (as settings are forgotten after reboot). Instructions are outlined in the comments accompanying the tip.

[Edit]: This command might aid in establishing an optimal value:

sysctl -w kern.maxvnodes=$(echo $(sysctl -n hw.physmem) 
   '33554432 / 512 * 1024 +p'|dc)
Read More

DVD-R media guide

 Images Blank-DvdsI’ve been using some ‘mag media’ blank DVDs I bought at JB HIFI, and they’ve given me a bit of grief. I’ve had a number of failed burns, and in one instance, my DivX player wouldn’t read a disc that had been burned a couple of weeks earlier.

I’m almost out of blanks, so I thought I’d dig a little deeper to see if I could find a brand that would be more reliable. I came across this blank DVD media quality guide, which gives a rundown on the different blank DVD media out there.

Pioneer, Verbatim, Hitachi Maxell, Sony and TDK, among others, are apparently very good. Some discs produced by Ricoh and Ritek and others are decent. Discs by Samsung, Princo, InfoMedia (which is where the disks I currently have came from) are questionable in quality, and media from…a whole lot of other manufacturers I’ve never heard of, are apparently ‘pathetic garbage’ (this is the ‘no name’ stuff you’ll find on eBay and in the crappier stores).

Read More

Mail’s ‘Entire Message’ search gives ‘0 found’

Mail just stopped returning search results when I did a full text email search. I did a bit of googling and found some discussion on the problem with 10.4.7 that was fixed with 10.4.8. So, not that. Someone in that thread mentioned that they forced a re-index of their entire drive in Spotlight.

Scott, another individual who mentioned the problem on his blog said he attempted to just re-index the local Mail repository, but to no avail (he noted that there was a problem with the Spotlight filter for Mail). He also forced a rescan of the drive.

I didn’t feel like doing an entire rescan, so I checked for the Spotlight filter with mdimport -L. Lucky for me, the Mail importer seemed to show up. I quit Mail, re-indexed its data with mdimport -f ~/Library/Mail, waited a few minutes and re-opened Mail to find search working again.

So, just forcing a re-index of the Mail directory seems to work under 10.4.8 Intel.

Read More

Suck those clicking earplugs

200610041932I’ve been having trouble with my left iPod earplug, which has been clicking and distorting beyond a (relatively low) volume – making listening very annoying. I was making plans today to go and visit the Apple store where I bought the iPod, when I remembered reading something about sucking on the troublesome earplug. I gave it a go, and it fixed the problem! Just apply some suction to the earplug, and it seems to unstick something inside.

I couldn’t find the article I read that suggested this, but credit goes to someone out there for this quick fix.

Read More

One-way blogs are irritating; E-paper disposability

I’m annoyed by blogs that don’t allow people to post comments! One of the exciting elements of the blogosphere is the two-way nature of it, and the ability to create global discussions anywhere, on any topic, where anyone at all can comment. It’s exciting because it’s democratic and egalitarian, the way the Internet should be!

So, sites like Gizmodo that require an ‘invitation’ to get an account to post comments are quite annoying. Disallowing any rebuttal or discussion, except to those one deems worthy, seems very un-democratic!

Anyway, what put me on to this rant was this article on flexible LCD screens, which demands a comment, after their statement regarding being one step closer to the “Holy Grail of electronic displays: crumpling them up throwing them in the trash like basketballs”:

Who on earth wants to do that? How is the ability to throw away flexible screens, thereby creating more e-waste, a Holy Grail? Unless it’s just me, that seems to entirely defeat the purpose of reusable ‘E-paper’, apart from the obvious environmental issues of yet more non-biodegradable waste.

We live in such an irresponsible culture!

Read More

Incremental rsync backups

I’ve written a shell script to do incremental backups with rsync (inspired by this macosxhints article).

The script takes one or more sources, and a local destination path, and creates an incremental rsync mirror at the destination. It will first create an initial archive, then will subsequently create a new archive, hard-link the last archive in, and perform an rsync over it. Each archive will appear to be a full mirror, but will actually only use the disk space of the files that have changed, due to the use of hard links.

Here’s the script:

incremental_rsync.sh

And some uses of it:

incremental_rsync.sh [email protected]:www /Volumes/BackupDrive/Web

incremental_rsync.sh Documents Pictures Library /Volumes/BackupDrive/Home

Note that old backups can be safely deleted without disturbing more recent backups; as hard links are used, the data won’t be deleted until all links that reference it are removed.

Read More

Hi! I'm Michael Tyson, and I run A Tasty Pixel from our home in the hills of Melbourne, Australia. I occasionally write on a variety of technology and software development topics. I've also spent 3.5-years travelling around Europe in a motorhome.

I make Loopy, the live-looper for iOS, Audiobus, the app-to-app audio platform, and Samplebot, a sampler and sequencer app for iOS.

Follow me on Twitter.

Posts pagination

« 1 … 32 33 34 »
© 2021 A Tasty Pixel.