Archive for the ‘Technology’ Category

I am a published photographer

Saturday, July 21st, 2007

Well, sort of. The Schmap web travel guide used a photo I took for their San Diego Art & Entertainment page. Which, you know: cool.

This is one of the neater uses of Flickr I’ve seen. Seems like if you’re just putting low-res pictures up on the web you can get away with a snapshots taken by some guy two beers in to a football game. Schmap emailed a bunch of people they found on Flickr and asked if they were cool with being included in the guide. I was, so there I am.

In which I nitpick like nobody’s business

Tuesday, June 26th, 2007

Brad mentioned that Google Gears doesn’t work in Safari for Windows. I wondered, naturally, if this wasn’t just a Windows Thing. To find out, I fired up Safari on a mac to try to install Gears. Imagine my surprise when I see the following:

What’s up, Google? I know that there are differences between the browsers and all, but this is just weak. My favorite part is the install button. Here it is on Safari:

And the same thing on Firefox:

Now, I know that this is nitpicking. I know that bugs happen. But seriously, guys. You’re freakin’ Google. You’re the kings of the web. This is a Microsoft move.

You can do better.

An open letter to JPL

Wednesday, June 20th, 2007

Sirs and Madams,

Thank you for releasing your CLARAty software to the public. That is a wonderful move that we can all appreciate. However, I have one comment regarding your installation procedures: Csh? Really?

Good Day.

VegOil vs. The Taxman

Wednesday, June 13th, 2007

Pat pointed out a fascinating article about some of the possible pitfalls of using alternative fuels.

So last fall the Charlotte musician and guitar instructor spent $1,200 to convert his 1981 diesel Mercedes to run on vegetable oil. He bought soybean oil in 5-gallon jugs at Costco, spending about 30 percent more than diesel would cost.

His reward, from a state that heavily promotes alternative fuels: a $1,000 fine last month for not paying motor fuel taxes.

He’s been told to expect another $1,000 fine from the federal government.

And to legally use veggie oil, state officials told him, he would have to first post a $2,500 bond.

This strikes me as an absolutely fascinating legal/public policy problem. On one hand, I think it’s without question good for people to experiment and innovate with alternative fuels, and a large tax burden would do much do discourage this. On the other hand, it’s pretty obvious that it’s important for the rule of law to stand and for appropriate taxes to be collected such that roads can be maintained.

At current, there’s no obvious and straightforward way to make this happen. Sure, one-off waivers can be granted to individuals, but does that scale? (That said, does it need to? Is the “we really should have good rules in place to regulate them appropriately” threshold one that you don’t reach until a technology is pretty well mainstream?) I’ll be interested to see what sort of legislation pops up around alternative fuel cars.

On a personal note, I think VegOil cars smell like ass. But that’s just me.

Isn’t Spyware a bad thing?

Tuesday, June 12th, 2007

The House seems to think that stopping the states from fighting Spyware is worth their time. I wonder if the Senate will….

The federal preemption provisions (Section 6), meanwhile, trump most of the stricter state laws that might have been used to go after badware vendors. This is particularly disappointing, as state laws have opened a new front in the war on badware. A few categories of state laws are preserved, including trespass, contract, tort, and fraud laws. And, in an interesting twist, H.R. 964 preserves state consumer protection statutes, but only if the state’s Attorney General is bringing the enforcement action.

Reading between the lines in Section 6, one thing becomes clear: this section is intended primarily to block the ability of private citizens to sue badware vendors under state laws. By consolidating all the enforcement authority against badware in the hands of the FTC and state Attorneys Generals, software and adware vendors are trying to quietly block consumer class actions that could target their misbehavior. For example, H.R. 964 would have made it impossible for EFF to use California’s Business and Professions Code 17200 (which allows private citizens to sue for unfair and unlawful business practices) against Sony-BMG for its spyware-laden copy-protection software.

A personal apology to Julie Amero

Wednesday, June 6th, 2007

There was great news today on the insanity that is the Julie Amero conviction:

A judge has granted a new trial to Julie Amero, a former substitute teacher in Norwich, Connecticut who was convicted in January on four felony counts of risking injury to minors after she was unable to prevent pornographic pop-ups from showing up on a computer in a classroom in 2004.

The city’s prosecutors did not oppose the motion for a new trial, raising the possibility that Amero will not be tried again.

It’s about time. Her original conviction was one of the most insane things I had ever heard about. However, further down in the article, the computer forensics firm that analyzed the computer in question came up with something that really makes me cringe:

Sites analyzed a copy of the hard drive provided to him by Amero’s first expert witness, and found that computer was infected.

“There was definitely adware called new.net,” Sites said. “It was downloaded by a screensaver installed for Halloween by the teacher Amero was subbing for.”

Argh! If this is the same New.net that schleps domains in bogus TLD’s, then I worked for them back in the day. It’s the only job I ever walked off of, (I honestly hated every hour that I put towards their efforts) but still: I feel bad for having any part in them existing if their software in fact played a part in causing this to happen. So if this is the case: I’m sorry for not letting new.net die on my watch.

(Note: I have no idea if that particular New.net actually deals in Spyware. I sure hope that they don’t.)

A clever workaround to Apple’s userdata-laden media files.

Thursday, May 31st, 2007

Apparently Apple is putting your account information in the DRM-free media files it sells. I’ve come up with a clever solution to this problem: don’t put the files on file-sharing sites. That way, your personal data can never get out. Easy! I’m relatively certain that your off-brand media player or TiVo or whatever you end up feeding these files in to (hooray for being able to feed the files in to whatever you want) won’t sell your email address to spammers. (And if you’re really paranoid, convert the m4a/aac files to mp3 and be done with it.)

High Definition

Tuesday, May 1st, 2007

09 f9 11 02 9d 74 e3 5b d8 41 56 c5 63

I personally would have gone with f8 rather than f9.  F9 is so last year.

Removing duplicate tracks from iTunes with Ruby and RBOSA

Saturday, March 24th, 2007

When I put a new hard drive in my computer, I decided to reinstall the operating system and install applications and data from scratch. Unfortunately, I had a small mishap and accidentally imported two copies of my iTunes library. Removing duplicates by hand would have been possible, but it would have been tedious as well. Mercifully, I stumbled on to RBOSA, so I was able to let the computer do it.

RBOSA is basically Applescript for people who never got around to learning Applescript. The interface to things like iTunes is very simple, so it didn’t really take a lot of work to get something to find duplicates up and running.

The strategy I used was to look at songs in the main library (the method I used for finding the “main library” looks kind of suspect, but it worked. Use caution if you try this at home) and put all duplicates in to a new playlist. Once they were there, I was able to check them over to make sure that they were dups and delete them.

Now, if you’re playing the home game and you know the secret trick for finding and deleting large groups of duplicates (around 8,500 tracks in this case) without busting out the programming: please tell me. I’m pretty sure that I’ll need to do this again at some point, and I’m all about doing things the easy way.

Follows is the script. I used Ruby 1.8.6 and RubyOSA 0.3.0.1 (installed via gem.)

require 'rubygems'
require 'rbosa'

itunes = OSA.app 'iTunes'

dups = itunes.make OSA::ITunes::Playlist
dups.name = 'Duplicate Tracks'

class OSA::ITunes::Track
  def eql?(o)
    artist == o.artist &&
      album == o.album &&
      track_number == o.track_number &&
      name == o.name &&
      time == o.time
  end
  def hash
    to_s.hash
  end
  def to_s
    "#{artist}/#{album}/#{track_number}/#{name}/#{time}"
  end
end

seen = Hash.new
itunes.sources[0].playlists[0].tracks.each do |track|
  seen[track] ||= Array.new
  seen[track] << track
end

seen.values.each do |tracks|
  if 1 < tracks.length
    # Keep the file with the largest bitrate.
    tracks = tracks.sort { |a,b| b.bit_rate <=> a.bit_rate }
    keep, rest = tracks[0], tracks[1..-1]
    rest.each { |t| t.duplicate dups }
  end
end

Set Mac OS X’s terminal to “rxvt” to play nice with Linux

Friday, March 9th, 2007

Mac OS X’s terminal doesn’t seem to play nice with Linux hosts in its default configuration. The character it sends for “erase” confuses the shell over on the Linux side, and no amount of stty magic has been able to fix it for me.

The simple solution, as it turns out, is to set your terminal type in the preferences for Terminal.app to “rxvt.” Magically, everything works.

Who knew? (Many people, apparently.)


This is a free Wordpress template provided by Mathew Browne | Web Design | SEO