Archive for the 'Technology' Category

fix quicklookd and transmission when downloading video

Posted in Technology on April 29th, 2008 by Jeff

I say we take off and nuke the entire site from orbit…
it’s the only way to be sure.

Is your Mac’s CPU pegged when Transmission (or any other Mac BitTorrent client) downloads video? That’s because quicklookd — the QuickLook daemon that sneaks around and builds thumbnails of your movie files, is trying to build a thumbnail of a chunk of video that doesn’t exist yet. Because BitTorrent clients allot the disk space non-contiguously and then fill in the data, your Mac is confused. End the confusion with two Terminal commands so long that there is no center content well that can contain them:

sudo cp -r /System/Library/Frameworks/QuickLook.framework/Resources/Generators/Movie.qlgenerator ~/Documents/Movie.qlgenerator
sudo rm -r /System/Library/Frameworks/QuickLook.framework/Resources/Generators/Movie.qlgenerator

NOTE: So what did that do? The first command made a backup copy of the problematic Movie.qlgenerator in your Documents folder. The second command removed it. On the downside, you will lose the ability to “QuickLook” video files, and no thumbnails will be created or maintained for video files. On the upside, you will instantly gain ~75% of your CPU back as your Mac stops struggling in vain to create a thumbnail for a video frame that hasn’t actually been downloaded yet.

~Jeff

the olpc is a pile of crap

Posted in Technology on April 27th, 2008 by Jeff


So I’ve been meaning to write about this for a while, and since I’m currently ProCrastinating making breakfast (the Crastinating that Pros use™!), let me waste your time for a second:

I bought an OLPC laptop off a local 9-year-old kid about three months ago. I found it for sale on CraigsList, God help me, and I picked it up after work at his house. He met me at the door — my suspicion was his dad had bought him the laptop via the G1G1 promotion, and he was flipping it to raise some quick cash. After I checked it out, I asked him “So why are you getting rid of this?” and he replied that the house “already had a laptop” and he “had to start saving up for a car.” The whole transaction was mighty fishy, but what the hell.

I took the little green laptop home, opened it up, and it became immediately apparent that the thing was full of porn — but a 9-year-old’s idea of porn. Browser window after browser window of Pamela Anderson, Carmen Electra, and JPEGs from “Maxim.” Recent search terms included the phrase “AOL Chat” and “bust.” Apparently, the kid was in a fevered titty frenzy and couldn’t figure out how to erase the details of his porny excursion from the OLPC’s journalled history.

In fairness to the kid, I couldn’t figure it out either. And here lies the problem.

The OLPC’s hardware is great — the screen is gorgeous, and once you figure out the somewhat stupid ear antennae that lock the thing shut, it’s easy to open it up and get it situated. The keyboard is mushy and SD slot is in a moronic location, but hey, these are forgivable issues. What is not forgivable is the dismal state of the “Sugar” system software that the OLPC ships with. It’s a shambles.

It doesn’t sleep so the battery just drains and dies. Wifi is spotty to begin with and connecting to any password protected wireless networks is iffy. The “neighborhood view” shows some networks as “close” and some as “far” but it’s completely random by design(!) and doesn’t actually mean anything.

It gets much worse: the web browser crashes out again and again. Flash videos won’t play without arcane terminal commands. The concept of “cut and paste” doesn’t exist. The much-vaunted “Learn Python” button that would expose the source code doesn’t even pretend to work. You can’t program an “Activity” without signing up for a “developer key” via a strange and convoluted method. Just check out the wiki — the OLPC developers themselves can’t figure it out.

These are all showstoppers, but what’s worse is the Sugar interface.

The Sugar user interface running on top of Fedora is beyond opaque. Anyone who makes excuses for the OLPC software is a crazed zealot — it’s just awful by any metric. It’s easy to see what they were going for — a unique, non-Windows, non-linguistic discoverable interface — but it’s a complete swing and a miss. I expect most kids will be scratching their heads and eventually giving up in frustration.

And here’s the frustrating thing: All the OLPC really needed to be is a piece of hardware wrapped around Firefox. If the OLPC developers just concentrated on getting together a top notch browsing experience, the rest could take care of itself. All the “Activities” bundles written in Python could just be webapps living locally. And Ubuntu provides a top-notch browsing experience today, not in the future, but today, with great performance and nice fonts and Flash and everything Just Working. Clearly the future of educational software is on the web, or via webby technologies, but because the OLPC guys were so in bed with Fedora and so in love with Python, that option is off the table.

It’s a shame. The OLPC laptop itself is lovely hardware, but the project has been capsized by open source fundamentalists who were too in love with their own half-baked ideas. It pains me greatly to say it, but I’m looking forward to getting Windows XP running on it so it has at least some use — and that’s about as serious a condemnation of the OLPC project as I can imagine.

~Jeff

building a hackintosh

Posted in Technology on April 27th, 2008 by Jeff

Steve Jobs’ Waking Nightmare of Complete and Total Inelegance

So I hit up Newegg.com and got my ~$200 worth of parts together — the nifty Shuttle KPC case, 2 GB RAM, and a 1.8 GHz Intel Core Duo chip (I already had a 250 GB IDE hard drive and Netgear WPN311 Wifi PCI card lying around) and I was going to write this big long honking thing about building a Frankenmac/Hackintosh but then Rob Griffiths from Macworld already beat me to it.

Bottom line: Building a Hackintosh is probably not worth your time. It’s amazing how much stuff “just works,” but here are the major problems:

  1. Updates. Point software updates (10.5.2 to 10.5.3 etc.) won’t happen unless you get updates via Bittorrent from Some Dude Who Has Already Fucked Around With Them. No offense to Some Dude, but this strikes me as a really bad idea.
  2. Wifi. This was the big fat stopping point for me — after four hours of what I will charitably describe as “dicking around” with .plists and .kexts I never got my Netgear PCI card to stop freezing after choosing a wireless network. Apple is in the enviable position of having to support only a couple wifi cards, and while the Netgear is super “out of the box” compatible with Windows and Linux, Mac OS X doesn’t need to know about it. So it doesn’t.
  3. Sleep and boot. Neither worked great, requiring kernel fiddling and partition twiddling and boot DVDs left in the the drive.
  4. Install. Installing from an IDE DVD-ROM drive was a pain in the ass thanks to not being able to install a hacked Mac OS X via USB DVD-R drive, so I had to have cables and junk strewed all around. Also, Some Dude has tricked out the Mac OS X 10.5 install, “helpfully” adding apps to /Applications and modifying the background colors, icons and dock. This is analogous to getting your car back from the shop and having “Grape Job!” scratch-n-sniff stickers “helpfully” added all over your leather dashboard.
  5. The Mac Mini. Frankly, if you figure it out by the hour, unless your time is worth absolutely nothing, the amount of time you’d spend on hardware and then dicking around with a hacked mac during its lifespan would total up to way more than just picking up a new $600 Mac Mini. And then everything would work out of the box and keep working.

Stats: I Xbench’d the Hackintosh, and performance was pretty good for a $200 machine:

Results 115.24
System Info
Xbench Version 1.3
System Version 10.5.1 (9B18)
Physical RAM 2048 MB
Model Mac Pro
Drive Type Maxtor 6Y060L0 Maxtor 6Y060L0
CPU Test 104.29
GCD Loop 212.34 11.19 Mops/sec
Floating Point Basic 102.59 2.44 Gflop/sec
vecLib FFT 83.55 2.76 Gflop/sec
Floating Point Library 83.83 14.60 Mops/sec
Thread Test 132.61
Computation 136.39 2.76 Mops/sec, 4 threads
Lock Contention 129.03 5.55 Mlocks/sec, 4 threads
Memory Test 124.75
System 121.03
Allocate 170.66 626.74 Kalloc/sec
Fill 125.49 6101.37 MB/sec
Copy 91.25 1884.64 MB/sec
Stream 128.71
Copy 120.45 2487.77 MB/sec
Scale 120.40 2487.40 MB/sec
Add 138.49 2950.23 MB/sec
Triad 137.93 2950.75 MB/sec
Quartz Graphics Test 157.95
Line 125.77 8.37 Klines/sec [50% alpha]
Rectangle 166.61 49.74 Krects/sec [50% alpha]
Circle 135.69 11.06 Kcircles/sec [50% alpha]
Bezier 129.68 3.27 Kbeziers/sec [50% alpha]
Text 381.51 23.87 Kchars/sec
OpenGL Graphics Test 278.54
Spinning Squares 278.54 353.35 frames/sec
User Interface Test 171.48
Elements 171.48 787.00 refresh/sec
Disk Test 42.54
Sequential 54.36
Uncached Write 49.55 30.43 MB/sec [4K blocks]
Uncached Write 51.27 29.01 MB/sec [256K blocks]
Uncached Read 58.41 17.09 MB/sec [4K blocks]
Uncached Read 59.62 29.97 MB/sec [256K blocks]
Random 34.94
Uncached Write 12.89 1.36 MB/sec [4K blocks]
Uncached Write 76.65 24.54 MB/sec [256K blocks]
Uncached Read 78.06 0.55 MB/sec [4K blocks]
Uncached Read 90.38 16.77 MB/sec [256K blocks]

Anyway. As a computer, the Hackintosh is a shambling failure, but as a fun learning experience it was a success — I now know way more about the inner workings of .kexts and /System than I ever thought I’d have to know, and the Shuttle KPC will be a lovely PC or Ubuntu box, just not a Mac. Speaking of, Ubuntu 8.04? Literally everything worked out of the box.

~Jeff

Top 5 ploys to get people to your website

Posted in Technology on April 14th, 2008 by Jon


#5: Top 5 lists

#4: Top 50 lists

#3: Top 3 lists

#2: Top 20 lists

#1: Top 10 lists

google’s main nav bar is messed up

Posted in Technology on March 23rd, 2008 by Jeff

Can someone explain this to me? When you’re on the main page of Google, at the top, there’s this navigational menu:


…but when you go into Gmail or any of the other “Google Apps,” it’s:


And don’t even get me started about the “More” dropdown — from the main page, it looks like this:


…but in Gmail, it looks like this:


…this is messed up, right? My feeling has always been that the First Rule of Navigational User Interface Elements Club is that navigational user interface elements should not move around — they should be kept completely consistent throughout a site. The only thing I can fathom is that Google is trying to group “like with like,” i.e. if you like Gmail you’ll love Reader, etc., and once you’re in the pantheon of Google products you’ll use the (also inconsistently implemented) “Search the Web” button available there instead popping back out to the main page. Also: the nav bars seem to be sorted alphabetically, for what that’s worth, which is not much.

One of the nice things the Mac OS X Dock has is a degree of predictability: the user can place their favorite apps in the Dock in order from left to right and be fairly sure the next time they look, the apps will be there, in order, where they put them — sometimes a little larger, sometimes a little smaller, but there. Contrast this with the Windows Start Menu, which I swear to God sometimes changes content and position while I’m in the middle of clicking around in it. Consistency is important, especially as Google moves to position their product line as a full suite of apps, and a consistent user interface is way more useful and important than a tangential marketing opportunity.

~Jeff

fix the podcast update schedule in iTunes

Posted in Technology on March 22nd, 2008 by Jeff


Does this sound familiar to you? You connect your iPod or iPhone to iTunes in Mac OS X to sync, but because iTunes’ built-in podcast update schedule is so oddly sparse, you find you have to hit “Refresh” on the podcast tab to actually check for new podcasts, then after it checks for, finds, and downloads the new podcasts, you have to sync again!? There’s got to be a better way!!:
  1. Download Cronnix.
  2. Create a new cron item that looks like this:



    That command, by the way, is this:

    osascript -e "tell application \"iTunes\" to updateAllPodcasts"

  3. Save. What you just did was create a little one-line reoccurring cron script that fires off every hour on the 30 minute mark that will (launch iTunes if it’s not running and then) tell iTunes to check for and download new episodes of your favorite podcasts.

~Jeff

EXTRA CREDIT: There’s probably a better way to do this via launchd. In Mac OS X 10.5 and above, Launchd = teh new hotness!, whereas cron = teh old and busted — but honestly, I just couldn’t quite get the syntax right. My guess is that the osascript command that passes to iTunes would have to be escaped as normal, and then escaped again for the launchd XML file. So if you can figure it out, let me know.

ADDITIONAL EXTRA CREDIT: If anyone knows of a way to disable iTunes’ “You haven’t listened to this podcast in a while” download deactivation setting, again, speak up. I can see why it’s there, and it’s polite and all, but it drives me berserk.

seven easy steps

Posted in Technology on March 9th, 2008 by Jeff


Thanks to Greg Saulmon, Andrew Shellfo and Caleb Lyons for making last week’s presentation at UMass Amherst go smoothly. The discussion afterwards was genuinely a lot of fun.

If anyone’s interested, a PDF of my part of the presentation is available here, and a t-shirt replete with Internetologist John Gabriel’s most famous (and popular) theorem is available here.

~Jeff

the three-item sticky note

Posted in General, Technology on February 27th, 2008 by Jeff


So recently, in a catastrophic meta-failure of Not Getting Things Done, I resigned myself to accept the fact I may never ever actually read through the copy of “Getting Things Done” that have had sitting on my nightstand for almost a year, and instead (at my girlfriend’s wise suggestion), just skim through the Wikipedia entry on it instead. Which, actually, turns out, is a fine alternative. I get the gist of it: Do it, Delegate it, Defer it, or Drop it. Don’t let things sit around. I totally get that.

However, what’s really helped me in the past month has been my adoption of a new, very easy to remember mini-GTD method, which I call the “Three-item sticky note.” What it is: a sticky note with three things I hope to accomplish during the day. That’s it. For a working person, I think three items is just about right — too many more, and you’ll be running around like a fool, and any less than three is, let’s face it, underachieving. For longer term planning, I put stuff on an online ta-da list that I can add or subtract to from anywhere.

But ironically, the low-tech nature of the Three-item sticky note is its biggest asset; after I write the three items on the sticky, I stash it in my pocket and it sits there bugging the hell out of me and I can’t wait to throw it out — but I can’t throw it out until I do the items! — so you best believe those things get done.

So this trick has been working for me for a couple months now, but there are other ways to be effective and Get Things Done; what’s yours?

~Jeff

short BioShock review

Posted in Gaming, Technology on February 3rd, 2008 by Jeff


Bioshock for the XBox 360 is probably the best game I played through in 2007, and this was a year with other truly great games like “Portal” and “Super Mario Galaxy.” What makes Bioshock good is a combination of old-fashioned, first person shooter action. What makes it great is a richly detailed underwater art deco universe that never blinks, and a backstory that I’m convinced does sly double-duty as a refutation of Ayn Rand’s philosophy of Objectivism. Pick it up, if you can.

~Jeff

the perfect alarm clock

Posted in Ask ldopa, Technology on February 3rd, 2008 by Jeff


The Philips USA AJL308 Clock Radio. Capsule review: Fatally Flawed. Pro: You can play mp3 or MPEG-4 .avi (!) files off an SD card. Con: For some stupid reason, you can’t trigger either one as your alarm. Also, the sound quality and the screen quality are awful. It went back to Target.

I’m a total idiot for alarm clocks. I seriously have drawers and drawers of them lying dormant, the battery powered ones still ticking the hours away to themselves. In my search for the perfect awakening, I have bought probably 15 alarm clocks in my life, and each is flawed in some fairly intrinsic way.

After 33 years of near-constant iteration, I’ve decided The Perfect Alarm Clock must:

  1. It must allow me to wake up to an mp3 of my choosing — without extra background noise.

  2. It must allow me to set a wake up schedule that takes into account weekends where I don’t have to wake up at a set time.
  3. It must have a display that is big and bright enough for me to see it without my glasses.
  4. …but not be *so* bright that it’s like I’m sleeping with a shard of kryptonite next to my bed. Ideally it’s completely dark or super super dim until I touch a button or something.

Right now, we’re using a $50 Memorex CD alarm. Its problems are:

  1. It’s a CD player, so we don’t really wake up to the sound of music. I wake up to the pppppttttooooooeeeeeee sound of the crappy CD drive spinning up.

  2. It’s SO BRIGHT that I have an index card over the display, because even on the dimmest setting it’s bright like the noontime sun.

So my friend Jon suggested that I have this nifty little linux eee laptop, and maybe I could use that for an alarm clock. And: maybe I can. I found an GNOME app descriptively named “Alarm Clock” which lets me set an mp3 for us to wake up to and set a fairly elaborate schedule that excludes weekends. There’s no snooze button, but I think I could work around that — what I’m finding inexplicable is that I can’t seem to find a full-screen linux digital clock app or screensaver. Seriously, that’s all I want, and I can’t seem to locate it. I tried setting up an xwindows screensaver thingy for gltext, and that works, but it’s *so small*.

Anyhow, any thoughts? I can’t believe I’m the first person to try and use linux as their alarm clock. Also much appreciated would be alternatives that satisfy alarm clock conditions #1-4.

SIDENOTE: This looks promising, but I can’t bring myself to spend that much for an alarm clock. Yet.

~Jeff

lots of nice iphone icons

Posted in Technology on January 25th, 2008 by tucker g perry

iPhone

Lots of nice iPhone icons presented in a incredibly simple to use way. Tap the icon and add the resulting page to your homescreen, and it will generate a link to the page it refers to.

pimping remember the milk

Posted in Technology on January 23rd, 2008 by tucker g perry

remember the milk

I’d like to take a quick moment to pimp Remember The Milk. It’s a to-do list manager that I find to be awesome. It uses Google Gears to integrate into the sidebar of a Gmail window, which is great for me, since I always have my work Gmail open. The language processing for adding new events is good too. You can type “write grandma tomorrow”
into the box, and it will make a new task to write grandma, due tomorrow. There is an email interface as well, but I haven’t had as much luck sending quick notes to it in a format it parses well. And if you pony up $25, there is a very nice iPhone version too, which would pretty much obviate the need for the email interface in most instances.

how do you secure your laptop?

Posted in Technology on January 14th, 2008 by tucker g perry

security

Macworld is coming and I always worry about losing my laptop, either by being thoughtless, or by turning my back. With that in mind, I do four things to secure it:

1. I require a password to unlock it from sleep or on startup.

2. I set up a guest account (not the Leopard one) with no password and limited access to software.

3. I installed IPMenu from Loopware to alert me via email whenever the computer’s IP changes. That way, I’ll be notified of the new IP whenever the laptop goes online again.

4. I installed Flickrbooth, so that any pictures a possible thief takes with Photobooth will automatically be uploaded to my Flickr account.

None of these keep me from losing my laptop, but they might help me get it back.

On the network security front, I lock down the firewall, and only access private sites via ssh. And I occasionally crack open dsniff to see if everyone is being so careful.

npr’s slick mobile implementation

Posted in Technology on January 8th, 2008 by tucker g perry

npr.org

m.NPR.org is a well put together little site. You can read the text of stories as you can on the main site, and you can listen to them as well. But rather than mess around with figuring out which mobile phone supports what plug-ins and downloading a big media file over cellular, they invoke a little known protocol called “wtai”, prompting your device to place a phone call which then plays the story to you. The downside is that it costs you minutes, and these days, data plans tend to be unlimited while calling plans aren’t. Also, it leaves iPod touch users and the five people who bought those Nokia n-series tablets out in the cold.

syslogd bug

Posted in Technology on January 1st, 2008 by Jeff


I just did a clean install of Leopard after a hard drive replacement on my trusty ol’ 2003 PowerBook G4 — runs like a champ, actually — and I’ve been seeing these strange CPU spikes. From what I can tell, it’s a bug in syslogd, the logging daemon in 10.5. Until it’s fixed in the upcoming Mac OS X 10.5.2 (hope hope), you can do this:

sudo launchctl stop com.apple.syslogd

…to stop syslogd from spiking your CPU.

~Jeff