Motion Sensing and iSight Hacks on the Mac

If you own a late model Powerbook, or a Macbook, your machine has a motion sensor inside to shut off the hard drive in case of a tumble. Two hacks taking advantage of of the sensor in inventive ways have recently made the rounds of the Macosphere. Light Saber, turns your mac into a light saber, and SmackMac which ties into the excellent Mac virtual desktop utility Desktop Manager to allow you to smack your way through desktops. Both hacks are based on the work of Amit Singh a writer/programmer, who was the first person to publicize methods of using the sudden motion sensor creatively. These hacks led me on a search for other hacks which use the mac motion sensor. As of yet there are only a couple but I assume more are in the pipeline... (onscreen dice anyone?, how about a 'jiggle your dock icons with a bump' hack?)

Amit Singh's original proof of concepts:
Rotate D triggers screen orientation rotation.
HID Device turns the movement of the screen into an input device. Singh put up a nice page describing how to use HID Device to control games.
Tracker simply prints out the movement data.
Visualizer shows the orientation of your mac in 3D.
Stable Window is a cool little hack that puts up a window that tries to compensate for the rotation.

Erling Ellison's Smackbook Hack is described here (look in the comments for complied versions) (and as a sidenote, Ellison's blog is only 2 entries long and already looks promising... I haven't seen a good Mac Hack blog in a long time).
Smack Exposé and Bump Tunes both riff off SmackBook and are self explanatory.

Smack Exposé and Bump Tunes both riff off SmackBook and are self explanatory.

Dash Level is a dashboard widget that turns your mac into a level.

iAlertU is perhaps the most useful use of the motion sensor, it basically gives you a car alarm for your portable... if someone tries to move it, it goes off. Multialarm and Theft Sensor basically do the same thing.

MacSaber (your mac as a light saber in case you haven't downloaded it yet) can be found here. When my wife saw me giggling and playing with this, she stopped dead in her tracks, sputtered "Oh my god, you are such a nerd" and quickly left the room.

To turn your motion sensor off follow this hack.

All the googling for mac motion sensing led me to isight based motion sensing (ie motion sensor triggered video) which led me to iSight hacks.

Evocam has been around for a while and is still my favorite motion sensor video app. It's relatively cheap. I've yet to find a free alternative. With it you can produce motion sensor triggered video like this.

Motiondetect allows you to add motion detection effects to iMovie.

Miracle sight uses motion triggers to turn your mac into a magic mirror.

And speaking of magic mirrors, there are a number of iSight connected quartz composer hacks. The video basically goes through a filter and is output into quartz composition file. You can read these qtz files in Safari or use them as screensavers (just put them in Library/Screensaver) If you have a newer mac, you've seen this kind of effect in Photobooth (if you have an isight camera connected to your mac, click here to see a demo). The best of these can be found here:

Tatsuo Unemi's Crazy Mirror
Matthew Turk's Gravity Lens
& Sam Kass' Hack Page

Apple puts out a cool quick and dirty capture utility called Whacked TV. MulleSight is a similar small capture app and duhsoft creates a simple photo capture widget for the Dashboard.

EvoBarCode turns your iSight into a bar code reader and intergalactic allows you to capture images from the command line.

Finally if you are tired of video chatting in iChat you can check out Adobe's Flash based conferencing product Breeze (iChat is leagues better). I found it worked quite well with iSight.

And last but certainly not least is iGlasses which tweaks iSight's video output. This is most useful if you use iSight in dark rooms as it allows you to brighten up the image, change the contrast, etc.

That's quite a few... did I miss anything great?

ER tips

Many thanks to everyone who emailed. Sorry to have scared some of you. Jenn is still feeling lousy, but improving... Emergency Rooms are never fun, especially in New York, but all in all things went as well as can be expected. I'm always in awe of the doctors and nurses who work these jobs, I have no idea how they manage to sustain the energy and focus needed to deal with moment to moment stress of patients in crisis and worried family.

In case you ever find yourself having to rush someone to the hospital, here are a couple of things I learned today. Perhaps one will stick in the back of your mind somewhere in your time of need.

1. Grab some food (bananas are perfect) and a bottle of water. Often feeding patients is prohibited because of the meds being given, but often food is ok, and there is usually no nearby place to get food. Also you need to eat too.

2. If you have time put an extra pair of clothes the bag.

3. Bring something to read. Even in the most dramatic situations there will be hours of downtime with nothing to do.

4.Try to write down as much hard data as possible... Times of fevers/chills/temperatures. This way you can be precise when rapid-fire questions are being asked.

5. If the place isn't crazy busy, it's never hurts to ask for an extra blanket/pillow/water etc.

6. Be nice. Remember people's names. You wouldn't believe how many people I saw today being incredibly rude to the staff. The worst offenders were family/friends. A little niceness goes a long way. Remember there is always someone else in there with a more critical emergency.

7. If you are discharged but the doctors tell you to "come back if things turn for the worse again", get your doctor's name/number. This way you can won't find yourself trying to track down the numbers/names if the patient worsens. Also if you have to be admitted a second time it's a good idea to have the new doc talk with the old one.

8. It's probably not cool to ask the cops escorting in a very sick prisoner, "What was he in for?"

9. If your wife declares she is feeling much better it is best not to joke that if she were on TV medical drama this would be the point that she would flatline and someone could come in with palettes yelling "defib!"

10. Wash your hands when you leave.

When you know things


When your wife is in the emergency room, very sick, and very much in pain, and when the nurse can’t find a vein to draw blood and has to make repeated jabs with a long needle including one in between the knuckles, this is when, you as a husband, start to worry in earnest.

But then, between the grimaces, you see a smile flicker across your wife’s face, and when the nurse runs out to find another needle your wife turns and smiles and says, "I just had the thought, ‘maybe she can’t find the vein because I’ve been kissed by a vampire. My transmogrification has begun.’" This is when you know everything will be ok.

By-line

I've been enjoying a bit of Hemingway tonight... A few first paragraphs...

Trout Fishing in Europe, November 17, 1923
"Bill Jones went to visit a French financier who lives near Deauville and has a private trout stream. The financier was very fat. He stream was very thin."

A.D. in Africa: A Tanganyika Letter, April 1934
"To write this sort of thing you need a typewriter. To describe, to narrate, to make funny cracks you need a typewriter. To fake along, to stall, to make light reading, to write a good piece, you need luck, two or more drinks and a typewriter. Gentlemen, there is no typewriter."

On the Blue Water: A Gulf Stream Letter, April 1936
"Certainly there is no hunting like the hunting of man and those who have hunted armed men long enough and liked it, never really care for anything else thereafter. You will meet them doing various things with resolve, but their interest rarely holds because after the other thing ordinary life is as flat as the taste of wine when the taste buds have been burned off your tongue. Wine, when your tongue has been burned clean with lye, feels like puddle water in your mouth, while mustard feels like axle-grease, and you can smell crisp, fried bacon, but when you taste it, there is only a feeling of crinkly lard."

Late Afternoon, Garze

Do you ever miss the light of a particular place? It was misty and humid today in New York City and I was missing the clear light of Garze where late every afternoon you get these great long shadows as the sun sets below the horizon.

Jets


Ummm. Why have military planes been circling in formation over Brooklyn all day long?

Delicious New York

Blog reader Kendra emailed today, "I'm coming to New York for a Memorial day weekend. Where should I eat? I'm looking for something a little bit offbeat. Asian maybe? Something we can't find here in Tulsa and not super expensive."

Well Kendra, the question is broad (so many options!), but here are a few suggestions that immediately popped into my head.

(in no particular order)

1. The Kuma Inn - 113 Ludlow Street, 2nd Floor. (212) 353-8866
Every time I eat at the Kuma Inn my dinner guests get a little wild eyed with glee. Everything at this Asian Tapas bar is absurdly yummy. The grilled items are especially drool-worthy. Cash only. Reservations recommended.

2. The Yemen Cafe - 176 Atlantic Ave, Brooklyn
My own neighborhood is a bit of a restaurant wasteland with many places for passable eats, but few that really knock the ball out of the park. Enter the Yemen Cafe... the kabobs, the lentil soup, and the Yemeni salads are all just about perfect. I always bring out of town guests here and they always leave happy. Cash is king.

3. Pat Pong - Pat Pong, 93 East 7th (212) 505-6454
Thai-Hungarian? Sounds good-awful, but how wrong you are. Turns out kielbasa is just the thing certain Thai dishes need. Order the yum-nuea beef salad, of the scores of yum-nuea's I've had at Thai joints around the city this is one of the few contenders. another review here

4. The Good Fork - 391 Van Brunt Avenue, Brooklyn.
This one might be a bit difficult to find for an out of towner as it's in Red Hook which is subway inconvenient. I ate there my first time last week, but the place instantly went to the top of my list. The best description I've heard of the menu is "Korean inspired diner food." Don't know if that sounds appealing but everything on the menu is knock-you-out delicious. Make sure to order the dumplings. Menus available online.

5. Momofuku - 163 1st Ave (btw 10th & 11th)
I haven't eaten there yet, but Jenn has been raving about Momofuku, a newish Korean noodle bar.

6. Nha Trang- 87 Baxter St.
Vietnamese restaurants in New York have nothing on their counterparts in Houston or San Francisco, but I imagine they are better than anything you can find in Tulsa (do they even have Vietnamese restaurants in Tulsa?)... It's hard to go wrong at Nha Trang where I've rarely had anything less than super-tasty meals. And whatever you order make sure to wash it down with their home made limeade. So good.

Is 6 enough? I could go on, but go through this list first. If you need more suggestions just shout for more... (and fellow New Yorkers are welcome to add their own favs).

Eating Apples

Here is the thing nobody tells you about being a parent... well at least no one told me: One morning you will be up at the grim hour of 5:43AM and through a miasma of sleep you will see your smiling son pick up an apple with both hands and begin to eat it.

It is the detail of the hands that, in an instant, triggers a concentrated rush of memory. In a wink you are not some groggy 39 year old guy standing in his boxers in the middle of his kitchen watching his son eat an apple, you are a kid excited to be holding that sticky apple, turning it round and round with both hands as you nibble away the bitter skin to extract the sweetness inside. You are inside this moment and it conjures up an entire era you had long forgotten. The smell of your mother's kitchen. The brown carpets of the 70's. How you used to start eating apples standing up, but would eventually plop down cross-legged concentrating on the task at hand. Suddenly stingingly awake and awash in an extreme almost overwhelming empathy you feel very much alive. It is 5:46AM.

These leaps in time happen with discombobulating regularity and are always triggered by the tiniest things: our son waving his fingers against the fading light at bedtime just before he slips into a dream and the hand falls to the pillow, two kids on the playground crouched down over a fallen pigeon's egg, the collection of pine cones, or the way his mother holds his head comforting him when the world is not going his way. Each little flashback not only connects you to your kid reminding you to be a little more patient and a little less harried, it connects you to yourself, and that is the most surprising thing of all.

OneThree Journal Project

Journal #1 is out the door and headed to Kilkenny, Ireland.
Journal #2 will be out the door tomorrow and will make it's first stop in Hoi An, Vietnam.
Journal #3 will be ready by weeks end. I think it will start it's journey in Portland, Oregon.

All 3 should will be wandering for about a year if everyone plays their part. Can't wait to see what happens.

Notes on Blogger vs Movable Type vs Wordpress

Warning geeky post. Most regular readers are excused.

For over a year now I've been meaning to switch the engine behind this blog from Blogger to Moveable Type. While Blogger is dead simple, it's development ground to a halt after the Google acquisition. Features now standard on other blogging systems like the ability to add a "previous" link to the bottom of a page, categories, and the ability to sort archives in ascending order are all MIA. Moveable Type pioneered many of these features and I am comfortable with the system as this is what I use to run my photoblog, but importing from Blogger is tricky especially if you want to preserve comments due to Blogger limitations.

I've been pretty happy with Moveable Type and it has steadily been improved over the years but I've noticed a falloff in 3rd party plug-ins and hacks recently... MT's sometimes hairy installation and confusing upgrade process are the system's main barriers to entry especially for non-techie users....but after everything is installed MT is fast and flexible. All this is a long way of saying I just haven't gotten around to switching because of the hassle involved.

Recently a friend recommended Wordpress, she had upgraded recently and had found it a smooth & easy process. I had tried Wordpress a few years ago and found it buggy, but recently I've been seeing lots of nice Wordpress based blogs so I decided to give it a spin. True to it's publicity I had Wordpress up and running in about 5 minutes. A few minutes later it was importing this blog and surprise surprise everything was imported correctly (the only issue was that it reverted a few customized settings in the original Blogger blog to their defaults after the import).

While the new version of the blog isn't up yet, I've been going back and forth between the systems all week. I'm biased by my familiarity with Blogger and MT, but here are some notes on the three systems for those of you thinking of switching, upgrading, or starting a new blog. All my notes are for people installing the blogs on their own webservers.


-Both MT and Wordpress store all your entries in a database on your own server. Blogger saves your entries on a google server but outputs the actual pages to your sever. MT has the option to generate static pages or the dynamically create pages. Wordpress can only generate pages dynamically. The advantage of the Blogger method is that even if your webserver dies completely, you can always republish the content elsewhere, the odds of Blogger/Google losing all your posts are small. If you server dies with Wordpress or MT and you aren't backed up offline you've lost everything. The disadvantage of the Blogger method is that if Google has a hiccup, you can't post to your blog.

-MT has the easiest and simplest export option (It has a one click option to output all your entries to a nicely formatted text file which can be easily imported later). Exporting with Blogger or Wordpress via a custom template is not difficult if you know what you are doing, but there are no easy presets for novices. There are a couple of WP plugins to create text files but all of them have issues. These are two of the best I've found: Script #1, Script #2

-Wordpress has the best import features hands down. It allows you to import blog entries from a number of systems and seems to do so flawlessly. Even comments are correctly handled. MT's allows you to import from a text file, but that file must be in the MT's format. Obviously it imports it's own export files perfectly, but I have yet to find a perfect solution for getting Wordpress or Blogger to output files that can be easily read by MT. The main issue is comments which always seem to get screwed up. Blogger doesn't have an import function-it simply doesn't exist. I once helped a friend write a little PHP script to email each of his WP entries to Blogger via Blogger's 'Mail-to-Blogger' function. It was a bit of a kludge but it worked, it would be easy enough to do this to get a MT database into Blogger as well. Comments would be lost.

-If you want to customize the mechanics of the blog, you have an extremely limited set of tags in Blogger and it's impossible to get under the hood and add a missing function like yearly archives [blogger's tags]. There is no plugin mechanism. Given Blogger's lack of development (there have been no major functional upgrades in almost 2 years) you're pretty much stuck. Moveable Type and Wordpress both have richer tag sets [MT Tags, WP tags]. Both are also highly customizable via plugins. In MT perl is the preferred plugin language, in Wordpress it's php. Both allow you to use php in page templates. The big difference at least to the user is that MT plugs are accessed through easy to read tags. Wordpress modifications are php code and are accessed by bits of php code which can be difficult to read. Another drawback of php as used in Wordpress with dynamically generated pages is that a small typo can make the entire blog simply disappear until the error is fixed. Even the admin interface can vanish. Because MT can generate static files, your blog will still exist if you make an error, you just can't post new content. Another Wordpress issue: on some servers you will need to fiddle with htaccess files to creating google friendly permalinks.

-You can style pages in all 3 systems using CSS. Blogger basically only has a single template which it uses for everything. MT and WP both allow you to style archive pages and individual pages as much as you wish.

- All three systems now have good standards compliant templates to choose from. On the web countless scores alternate templates are available... good, bad, and horrible. Design-wise I like the Blogger default templates best although all of them are overused. Moveable Type and Wordpress default templates are more functional with the crucial additions of both search and categories.

-The biggest difference between systems to the reader of your blog will probably be speed. Perhaps because both Blogger and MT generate static pages, those pages load much faster than the same pages generated by Wordpress. But it's not just the pages that are slower, it's also the admin interface and the speed with which the blog updates (If you set MT to dynamically generate pages it is still much faster than Wordpress on the same server with the same content). In my case Wordpress pages often took several seconds to load while MT/Blogger pages were almost instant. There are sites devoted to Wordpress speed tweaks that do improve things. The biggest improvements came when I installed a caching plugin.

-Perhaps I am just being dense, but I found the Wordpress archive schema difficult to wrap my head around and spent way too long massaging urls so that they appeared the way I wanted (I want urls for the new blog to match those of the old so that people's links don't break). I've had no problems in MT making the archives conform to my wishes. Blogger's archives aren't super-customizable but a simple admin interface provides several easy archiving options.

-Two Wordpress selling points of note 1) it is open source so if you're a gearhead you can tinker endlessly and 2) it supports Widgets-small modules you can add to your sidebar and move around with ease.

-Both Blogger and MT play well with google. For reasons I don't fully understand wordpress pages are googled less well, especially interior and archive pages. To test this I set up 3 blogs using default templates on the same server containing sentences with unique nonsense words and linked to them externally. Two weeks later I googled. Items on all 3 index pages were googled (MT first, Blogger second, WP third). Searching for words in archive pages, the WP results where missing completely.

-Wordpress is much better at dealing with comment spam in the default configuration. MT can be brought up to speed with plugins (the Askimet plugin ported from wordpress is particularly effective. Blogger's spam controls are invisible to the user and uncustomizable, but I have to admit they generally work fairly well blocking most SPAM before it arrives. All systems allow for moderated comments.
So what are my conclusions:

I recommend Blogger to most people who lack coding or designing experience. It's easy, it works, and it's hard to break.

I recommend Wordpress to those of you who like to tinker, especially if you are into php. My issues: difficult to read code, confusing archiving, and lack of text export are all offset by Wordpress' almost infinite customizability and it's active community. I was tempted by the huge number of user plugins and easy to use widgets but ultimately I was looking for a balance between control and simplicity.

My choice was the one I started with, Moveable Type. Movable Type is perfect for people who don't care to fiddle around under the hood as long things work reliably. Installation is the only real issue. Otherwise I like the clean code, the speed, the power, and the easy archiving. I have found plugins to work around most of MT's limitations. And I came up with a solution on how to get my Blogger posts & comments imported-- first I import from Blogger to Wordpress which grabs the comments correctly and then I export to MT via a plugin. Now if I could just stop comparing the systems and actually do the work of putting up the new blog.

In Between Days


This afternoon Jenn and I were able to sneak out and catch a screening of In Between Days at BAM by director So Yong Kim. From the reviews I had expected a film delving deep into Korean-American culture but I think the reviewers didn't really get it... it wasn't a film about immigrants— it was a film about teenagers... The cultural notes helped define the characters but were ultimately peripheral. Like most good films about teenagers it is about teenagers who are in love, who can't say what they feel, and who keep hurting each other. It’s a quiet story told mainly in close-up picking up small and telling glances where the spaces between words are more important than the words themselves. The film is directed with a sure hand and the director managed to coax utterly realistic and emotionally hard-hitting performances from a cast of untrained but talented actors.

My wife missed the lack of establishing shots or wide shots and said the movie sometimes felt claustrophobic. She was also sometimes confused as to where she was in the story, this is a criticism she often has of female directors who she notes always seem to go for the gut with lots of close-ups. I was only slightly bothered by this although it’s a fair criticism. Most people have been conditioned to read films in a certain way... They need breathing room. This film would often track directly from one moment to another hours or days later without any of the standard transitions... I read this as poetic mindscreen... This is the way we remember things: Someone breaks up with you. That person calls. You are eating together. In your memory the moments run together without any in-between bits. Onscreen the result has an emotional intensity to it. The only breaks in the movie were sequences I read as dream sequences.... Voiced-over letters to an absent father read or whispered by the main character Aimie over grainy shots of empty landscapes. I thought this was lovely. Worked for me.

The film was shot on digital often with little light and it looked amazing-beautifully bleak. HD opens up realms almost impossible to shoot on film and especially with such a small crew. The sound design was also flawless with ambient noise calibrated to precisely play against the character’s emotions. The director spoke afterward and noted the crew size was often limited by the number of people who could fit in a single car—6. The crew was sleeping in the apartment being used as a set. The girl's room in the movie was the room she was sleeping in. Morning shots were morning shots and so on. Sort of a dogma film without the dogma. As someone who worked on movies where the crews generally numbered in the 100’s with endless layers of bureaucracy, personal filmmaking this with this level of finish and style is inspiring.

I don’t believe In Between Days has distribution yet, but by all rights it should. Look for it at festivals and later on DVD.

Dispatches

Snippets of recent IMs and recent conversations:

MH: here's a general question for you, an early adopter:
what do i not have that i should look into aside from a cost effective sound and video server for the whole house

RG: ?

MH: Think about it.

RG: Umm. Photo printer?

MH: mmm - i can print photo's on my printer, but don't know if it is good enough. I think the answer is: (dramtic pause) survival kits, a fail-safe exit route, rally points, ingot stashes, and property in wyoming or panama to retreat to when the apocalypse hits

RG: your problem would be getting out... in LA there aren't so many options and if the shit was really going down it would be hard to get out

MH: already have that covered, my friend

and so on
..................
RG: You know how I wasn't supposed to be cutting the baby's hair... well I've been cutting it... just little trims here and there and you haven't noticed...

Jenn: You've been cutting his hair behind my back!

RG: Just around the edges where's it's in danger of mulleting out.

Jenn:So why are you telling me this?

RG: Well... I slipped with the clippers... he moved his head, and well, now it pretty much looks like he's prepared for a lobotomy. But you know, it will grow back fast...and he has lots of hats. He looks great in hats.

Jenn:RAUL!

and so on
..................
RG: My problem is that I don't have a graduated sense of the world. I either love something or I hate it, it's binary. Cheese-Makes me want to die. Cats-Grr. Hate is too poor a word. White brick buildings make me want to throw myself in the East River.

TR: Aren't you being a little dramatic. Are you saying you have a strong opinion on everything. How about... graph paper.

RG: I LOVE graph paper!

TR:The Manhattan bridge.

RG: Bleah. Hate it. Functional and uninspired.

TR: So there's nothing that you say, "well that was just ok."

RG: You're not understanding... it's not like an opinion with me it just is. White or black.

TR: That's incredibly obnoxious.

RG: I know. I hate this about myself.

and so on

North Korea Images




My brother-in-law Paul has once again come up with some links to North Korea snapshot galleries.

Artemiy Lebedev posts 4 galleries of images on his website (one, two,
three
, and four).

There are several good DPRK sets on flickr: Matthijs Gall, Mark Wang, Veronica Pinter. nuwex, prime8z, Fraser Lewry, Liz Ralph, John Goodman, and staypuff.

And finally blogger Daniel Shorr's pictures and blog account of a recent trip. (in the blog archive scroll down to the bottom and work your way up).

I hope to do some photography there in the relative near future.

Archive

1999 — 2026
2026
Jan Mar Apr May Jun
2025
May Jun Oct
2024
2023
2022
2021
Jan
2020
Mar Apr May Jun Jul Oct Dec
2019
Jan
2018
Apr
2017
Oct Nov
2016
Mar
2015
Dec
2014
Oct
2013
Mar Apr May
2012
Jan Feb Mar May Jun Jul Aug Sep Oct
2004
Mar Jul Aug Sep Oct Nov Dec
2003
Mar Apr
2002
2001
2000
1999
May