Deleting the Impossible

It finally happened – a customer managed to give a pair of files some impossible names:


\*\*somefile_&name.mov
\*another_file.mov

(how they accomplished this is anyone’s guess) and then complained that they couldn’t delete or rename them. Which is true — the mv, rm, stat, and file commands all complained that they couldn’t stat the files, no matter how I quoted their names. Remembered reading once that you could nuke such files via inode, but had never had cause to try it. Sure enough: “ls -il” gives you the inode number in the filesystem. You can then use:

find . -inum [inode_number] -exec rm -i {} \;

There’s always a side door.

Music: Otis Redding :: Security

CMS – Build vs. Buy

A few months ago, I posted about the newsinitiative site I had spent most of the summer working on*, and mentioned that we had decided to build our own content management system for it from scratch. Promised to say more about the CMS “build vs. buy**” decision process we went through, but never got around to it. After installing Search Meter for WordPress a month ago, discovered that people have actually been searching this site for more info on that decision.

CMSs are a funny category of software. When you go to choose a word processor, you’ve got three or four serious options to consider (but it generally comes down to Word). Image editor? Maybe a dozen (but it generally comes down to Photoshop). There are usually more options for server-side web application software. Survey package? Maybe a dozen. Blogging platform? Again, maybe a dozen (but it generally comes down to Movable Type and WordPress). But the game changes immensely when you start looking at content management systems.

Continue reading “CMS – Build vs. Buy”

iTox

Greenpeace has built a site based on the look and feel of apple.com, but chock-full of information on the environmental impact of Apple’s products and flimsy reclamation program. I’m not sure it’s fair to single out one computer manufacturer, since the entire industry is toxic. But targeting Apple does help to make the point more tangible. Apple is renowned for their elegant but excessive packaging, and its left-leaning userbase probably assumes that just because Apple is “alternative” it must ipso facto be doing good stuff environmentally. Thought this was a very good point:

You can’t recycle toxic waste If Apple doesn’t drop the toxics from its products, it doesn’t matter how good a recycling program they have. Because toxics make recycling more hazardous.

I like this idea too:

We’re not asking for just “good enough.” We want Apple to do that “amaze us” thing that Steve does at MacWorld: go beyond the minimum and make Apple a green leader.

Apple has responded to environmental criticism in the past, and has even been named one of the Top 10 Environmentally Progressive Companies. Not sure how that squares with Greenpeace ranking Apple the fourth worst

Anyway, the site is really nicely done, and drives the message home to Mac owners. It’s too easy to push uncomfortable truths under the rug when you’re involved in a love affair.

Music: Seeds :: Up In Her Room

Why HTML in E-Mail Is a Bad Idea

I receive email frequently on a piece I wrote many years ago, Why HTML in E-Mail is a Bad Idea. It was written before the days of weblogs, so that page doesn’t allow comments. I no longer have a whole lot of interest in the topic and don’t feel like keeping the page updated, so thought it might make sense to create a page here so the public could leave comments on the topic — agreement / disagreement, tips and tricks, etc. Feel free to leave your comments on the above-linked piece here.

Heatmaps

Crazyegg-Heatmap Just-launched crazyegg has an interesting twist on site traffic analysis – the emphasis is on where users are clicking on your site, with an eye toward enhancing design to match visitor behavior. The heat map shown here shows area of highest clicks in warmer colors. Other views display similar perspectives, but numerically.

Contrast what crazyegg is doing with heatmaps to what the Poynter Institute does with them — both let you see where visitors are focused on a given page, but Poynter does it by watching your eyeball with a laser as it moves across the page, while crazyegg focuses on actual clicks. Which is a better metric of actual attention? Probably a pointless question, since not all attention points need to be clickable.

Music: Cat Power :: Shaking Paper

Technorati Tags: ,

Notes on iTunes 7

Cover art: When downloading new albums, I usually hunt down the album cover as well. Previously, artwork only showed up optionally in the lower left, in the iTunes screensaver, and on recent iPods. With iTunes 7, Apple has made cover art central. iTunes will now try and retrieve cover art automatically when adding new music, and you can force it to look for artwork of existing tracks with a Ctrl-click. But success is spotty, and you get no feedback if the search was unsuccesful. My guess is that the artwork comes from the iTMS database. But I’ve got albums I know are in iTMS but for which iTunes 7 still fails to retrieve artwork. Looks like this will continue to be a largely manual thing. Meanwhile, two new views in iTunes 7 feature artwork prominently. An album list view shows large versions of artwork along with track listings, and a fancy new “flip” (Coverflow) view uses Quartz to simulate a stack of LPs to sort through:

iTunes Flipview

I like that they’re doing what they can to keep some trace of the album cover experience, but not sure how often I’ll use the feature. Especially since gathering artwork for 95% of my stuff looks like it’s going to remain labor intensive.

Cover art update: Just figured something out. iTunes isn’t doing the normal thing and putting cover art into the ID3v2 data area of music files – it’s storing it in subdirs of ~/Music/iTunes/Album Artwork . I had wondered why it used to take 20 seconds or so to write album cover data into every track of an album, but that it suddenly seems to happen really fast. Apparently the speedup is because iTunes doesn’t have to alter every file – it just stores the art files as external .itc files (i tunes cover?) and associates the images in the library. This is nice for speed and nice for not swelling library sizes, but sucks for portability between machines/platforms. Why isn’t this a preference? Or an optional mechanism to “permanently store art inside music files?” I’ve posted about this in my O’Reilly Mac blog, which has sparked a thread.

Genre view: Is gone. The new widget for accessing the Coverflow view replaces the old Browse icon, which used to let you sift and sort your collection by artist, year, album, or genre. In other words, Apple has replaced a whole lot of functionality with eye candy, which is annoying. You can still do era and genre tricks with Smart Playlists or via search (which is generally very effective), but hate to see the Browse view … hang on, I’m an idiot. They’ve just moved the Browse icon from the top right to a subtle gray replacement icon at the lower right; it’s been demoted, not removed.

New scrollbars: Mixed feelings. The “solid” look is kind of refreshing in comparison to the usual Aqua gel-cap look, but what is it with Apple ignoring the HIG and experimenting with new interface looks all the time? Does this portend a global change to Aqua, or are they just monkeying around to gauge reactions? To change the look of scrollbars in one app and leave the rest of the OS with glow-y scrollbars feels weird. Maybe they’re just treating the early adopters user base as a guinea pig farm; releasing the UI change into a single app, then watching blogs and mailing lists to see how the world reacts.

Multiple libraries: Long overdue – You can now divide your library into multiple libraries and manage them separately, which is useful for people sharing a single login, or if you want to move just part of a collection to another machine, or if your library is so large it causes performance problems. I really expected to see this in iPhoto before iTunes (it’s been possible with 3rd party utils forever).

Update: Check out Dan Sandler’s dissection of the  new UI, in high-res PDF or low-res JPG.

Democracy TV

No, it’s not Al Gore’s newest cable channel. Democracy is a free, cross-platform internet TV player built on top of the VLC client, which ignores DRM and plays “anything it can get its paws on.” The development model and site is clearly based on the success of Firefox (getfirefox.com/getdemocracy.com, similar design). BitTorrent is built right in, so anyone can host an internet TV channel of their own without going broke over bandwidth.

Boing-Boing: The 0.9 release can tune in over 600 free channels being published by creative people all over the world. 0.9 adds support for Flash video, and comes (partially) translated into 30+ languages. It also supports drag-and-drop for individual video files, making it the only video player you need on your desktop.

The project comes out of the Participatory Culture Foundation, which aims to snatch TV itself from the hands of the man. Haven’t tried it yet, but Democracy appears to be well-polished even before 1.0, and is purportedly super easy to use, which is critical for those who don’t want to geek around with shadowy sites and BitTorrent clients.

Ironically / coincidentally, for hours now the front of the iTunes Music Store has displayed nothing but a black screen splashed with white words: “It’s Showtime,” which suggests a major change coming sometime today. Internet TV is starting to matter.

Music: Jonathan Richman :: True Love is Not Nice

Solano Stroll, EXIF

Miles Clown The Solano Avenue Stroll is a massive (and I do mean massive) annual street fair in these parts. You know the drill – a zillion booths, overpriced food, mediocre music (with a few gems in the straw), kook cars, inflatable rides for the kiddos. So dense with humans you can barely move. Miles’ preschool took part in the parade, which meant he and I became clowns for a day. Had the presence of mind to snap a shot when the makeup was fresh.

Having a lot of fun extracting EXIF data from JPEGs with PHP for a special project I’ve been working on lately. A few lines of code gets you something like this:
Continue reading “Solano Stroll, EXIF”

Greenphone

Hack your phone, void the warranty? Trolltech’s upcoming Linux-based Greenphone, due this month, is meant to be hacked. “The company says it expects to be “surprised” by what users come up with.”

CTO Benoit Schillings added, “I’ll tell you a secret. Getting the phone into open source developers’ hands is exactly what I want to happen.”

Benoit Schillings? Hold the phone (no pun intended). Benoit was a key software engineer at Be. One of the first to join the company, in fact. Goes around, comes around. Great to see he’s up to cool stuff. Not sure I’d be cool with a chartreuse phone though.

Thanks mneptok

Music: Gary Numan :: Are Friends Electric