News for hackers. Stuff that matters.
Re:Taking pictures with your MacBook every time the lid opens by dfranke on Monday January 10, 2011 @03:16PM (#2089588)
This would be a neat way to catch a laptop thief.
Re:Taking pictures with your MacBook every time the lid opens by Timothee on Monday January 10, 2011 @05:05PM (#2089927)
Prey actually does it as part of their reports on stolen laptops: http://preyproject.com/

Probably not with PhotoBooth though :)

Re:Taking pictures with your MacBook every time the lid opens by Tycho on Monday January 10, 2011 @04:12PM (#2089763)
that's what I was thinking. make it send the pics to a web archive whenever it finds an open connection. then you'd almost want your laptop to get stolen
Re:Taking pictures with your MacBook every time the lid opens by pyre on Monday January 10, 2011 @05:04PM (#2089921)
You could create a honeypot netbook and take it with you to places like Starbucks and just leave it out when you go to the bathroom,etc.
Re:Taking pictures with your MacBook every time the lid opens by Tycho on Tuesday January 11, 2011 @06:03PM (#2093998)
Do this, follow it up, expose the thief, make a blog of it, and the advertising income from the blog will probably recoup the laptop cost.
Re:Taking pictures with your MacBook every time the lid opens by jacquesm on Friday January 14, 2011 @01:57PM (#2104913)
That's pretty close to entrapment.
Re:Taking pictures with your MacBook every time the lid opens by raghava on Tuesday January 11, 2011 @02:01AM (#2091200)
But wouldn't a slightly smart thief be able to beat it by using a small sticker on the webcam?

I know a smart lady who (after reading about webcams on compromised machines being used to take snaps without the knowledge of unsuspecting users) used a simple fix; stick a bindi(http://commons.wikimedia.org/wiki/File:Bindi.jpg) on the webcam.

Re:Taking pictures with your MacBook every time the lid opens by mh_ on Monday January 10, 2011 @09:54PM (#2090665)
I just recently submitted an app called iTried to the Mac app store which was kinda built for this (http://bit.ly/hEDJTw)

iTried listens for screensaver stopped events, and then takes the picture. I disabled tweetpic'ing the picture when submitting to the app store, but will re-enable in an update.

Re:Taking pictures with your MacBook every time the lid opens by adamdecaf on Monday January 10, 2011 @07:36PM (#2090323)
Before reading the article I thought it was going to be about catching thieves.
Re:Taking pictures with your MacBook every time the lid opens by notJim on Monday January 10, 2011 @07:41PM (#2090340)
Became far less interesting the moment he started posing for the pictures, IMO. There's tons of photos on the web of geeky types mugging for the camera. It's those moments of unguarded excitement, waiting for your MBP to finish waking up from sleep that are novel.

At least in my opinion.

Re:Taking pictures with your MacBook every time the lid opens by icefox on Monday January 10, 2011 @09:07PM (#2090560)
When you open the lid of a MacBook mine have always been ready and running, there is no waiting for them to finish waking up like on Windows.
Re:Taking pictures with your MacBook every time the lid opens by notJim on Tuesday January 11, 2011 @09:51AM (#2092020)
Haha, I know, that was just a bit of artistic prose. Still, I think unposed photos would have been more interesting.
Re:Taking pictures with your MacBook every time the lid opens by thwarted on Monday January 10, 2011 @04:50PM (#2089876)
Here's a bunch of shell scripts I hacked up take pictures when certain events occur on linux. Could be extended to handle the lid opening or coming out of sleep, although I have a feeling that xscreensaver detecting may already handle most of that case (because I think the screensaver gets activated, or at least the screen is locked, automatically when the lid is closed).

https://github.com/thwarted/picsofourlives

Re:Taking pictures with your MacBook every time the lid opens by alanfalcon on Monday January 10, 2011 @02:50PM (#2089506)
Very neat idea! I know you didn't try posing the same way for every picture, but I wonder if you couldn't put together a video that shows every picture in sequence with your face centered to prevent too much jarring movement?

I've always wanted some way to tap into iPhoto's face recognition since mousing over the thumbnail in Faces view creates a neat effect with the subject's head always in about the same place. Even better would be the image matching tech used on TinEye. For example, find a picture of the moon (or click http://www.tineye.com/search/45a444e7e4f564f58321c60347db9a8... ) then use the "compare" link for various matched images. TinEye rotates and scales all the images to match up as closely as possible, which lets you view some neat moon wobble effects... that kind of tech could be very cool if it was able to do the same with your myriad face photos.

Re:Taking pictures with your MacBook every time the lid opens by kluikens on Monday January 10, 2011 @04:16PM (#2089777)
This would work well for DailyBooth, a la scrobbling for last.fm.
Re:Taking pictures with your MacBook every time the lid opens by sil3ntmac on Monday January 10, 2011 @03:59PM (#2089716)
I used to do the same thing, but a little differently. I used SleepWatcher as well, ( http://www.bernhard-baehr.de/ ), but set it up to run the following script, which uses isightcapture ( http://www.intergalactic.de/pages/iSight.html ) to do it all in the background:

   NOWDATE=`/bin/date +%Y.%m.%d-%H.%M.%S`
   /usr/local/sbin/isightcapture ~/login_images/$NOWDATE.png
   /usr/bin/scp -o ConnectTimeout=5 ~/login_images/$NOWDATE.png [email protected]:~/login_images
Where I have an SSH fingerprint for [email protected] installed. This let me back up the images to a server, for convenience and security.

Edited for code formatting.

Re:Taking pictures with your MacBook every time the lid opens by icefox on Monday January 10, 2011 @04:04PM (#2089738)
That is pretty much the solution I had for the first week before I switch to photo booth whos main advantages were: - I could compose a photo with objects and or just remember to be in frame and smile - I could easily delete a bad photo with just a click. - I could take several photos right there and then if I wanted.
Re:Taking pictures with your MacBook every time the lid opens by kjell on Monday January 10, 2011 @10:55PM (#2090792)
I have a daemon that snaps my photo every odd 30 minutes. I was the first thing i built after getting a new laptop with an isight 4 years ago. Should I leave nothing else to the world, there will at least be tens of thousands of crummy jpegs of my face scrunched before a monitor when I die.

Mine are far less cutesy than his because the only indication that a photo is being taken is the little green light activating for a split second. But more authentic i think.

Re:Taking pictures with your MacBook every time the lid opens by annon on Monday January 10, 2011 @07:36PM (#2090324)
I'm going to do this, but instead of having photobooth open, I found a command line app to capture an image from the isight: http://www.intergalactic.de/pages/iSight.html
Re:Taking pictures with your MacBook every time the lid opens by tejaswiy on Monday January 10, 2011 @02:51PM (#2089510)
Really cool, I always look at these 1 pic a day programs and think I should do that sometimes, and the longest I've done is ~1 week.

What I think would be cooler is if you could randomize it a bit. Privacy concerns?

Re:Taking pictures with your MacBook every time the lid opens by uxp on Monday January 10, 2011 @03:01PM (#2089546)
I'd personally want to do a daemonized process so I and anyone else would be none the wiser, with a randomized delay of under a minute after the lid was opened.

Regarding privacy? I doubt anyone would get into any sort of trouble with it. If it's your laptop, you can install whatever you want on it, even rootkits and keyloggers.

Re:Taking pictures with your MacBook every time the lid opens by mh_ on Monday January 10, 2011 @10:26PM (#2090736)
Check my comment earlier with shameless self plug for iTried (http://bit.ly/hEDJTw) :)
Re:Taking pictures with your MacBook every time the lid opens by icefox on Monday January 10, 2011 @02:59PM (#2089540)
The was the core idea of getting it when the laptop opened. By having it always go off I had no effort (or choice) about getting my photo taken. And it paid off as I kept at it for years.
Re:Taking pictures with your MacBook every time the lid opens by gnok on Monday January 10, 2011 @02:37PM (#2089462)
Pretty neat hack! Were you conscious of the script each time you opened the lid? I imagine I would forget about it after the first week.
Re:Taking pictures with your MacBook every time the lid opens by runjake on Monday January 10, 2011 @03:18PM (#2089597)
If you read the linked article, aside from the very beginning, he uses Sleepwatcher [1] to trigger an Automator script that launches Photo Booth and does the 3...2...1 countdown.

[1] http://www.bernhard-baehr.de/

[2] http://www.apple.com/macosx/what-is-macosx/apps-and-utilitie...

[3] http://www.apple.com/macosx/what-is-macosx/apps-and-utilitie...

Re:Taking pictures with your MacBook every time the lid opens by gnok on Monday January 10, 2011 @03:34PM (#2089644)
Sorry, I should have been more clear. I was wondering if he remembered that the script would launch PhotoBooth before he opened the lid each time. I expect he'd have just grabbed his MacBook and opened the lid and then remembered that it would take a picture.
Re:Taking pictures with your MacBook every time the lid opens by icefox on Monday January 10, 2011 @03:41PM (#2089662)
As it happens all of the time I really don't forget. And if it takes a really horrible photo I can always just click the little X and delete it so no harm.
Re:Taking pictures with your MacBook every time the lid opens by icefox on Monday January 10, 2011 @02:45PM (#2089488)
The first day or two it just took the photo in the background without me knowing about it. But too many of the photos were really bad (deleted most of them). I was moving or my head was cut off or out of frame. I was willing to trade the 'security' of hidden photo gathering and instead just had it launch PhotoBooth and immediately take a picture. That gave me three seconds to compose myself and if I couldn't do it in time I could just click the capture button and take another one. Occasionally I would get annoyed at it, but it was over quick enough.
Re:Taking pictures with your MacBook every time the lid opens by tehjones on Monday January 10, 2011 @03:38PM (#2089652)
He mentions an automator workflow and sleep watcher, doesnt really give any explanation on how he really did it.

I tried playing with recording and automater, but it wasnt happen about photo booth.

Re:Taking pictures with your MacBook every time the lid opens by tehjones on Monday January 10, 2011 @04:06PM (#2089743)
Okay I got taking a photo with automator to work. I launch photo booth then used a mouse click macro to trigger a photo capture. Then I quit it.

jones.freeshell.org/TakePicture.zip

Re:Taking pictures with your MacBook every time the lid opens by albemuth on Monday January 10, 2011 @02:57PM (#2089532)
You could just add a growl notification, might get annoying over time though
Re:Taking pictures with your MacBook every time the lid opens by Sadranyc on Monday January 10, 2011 @02:58PM (#2089536)
Pretty neat. Is there any way to do this on Windows? I'd like to try a similar experiment with my Thinkpad
Re:Taking pictures with your MacBook every time the lid opens by joelhaasnoot on Monday January 10, 2011 @03:27PM (#2089623)
My IdeaPad shipped with Lenovo Veriface which authenticates you based on your picture. It also stores a copy for 24 hours I believe, which you could automatically move before they get removed.
Re:Taking pictures with your MacBook every time the lid opens by obiefernandez on Monday January 10, 2011 @09:30PM (#2090605)
It'd be cool to rig this to upload your facebook profile pic automatically everyday.
Re:Taking pictures with your MacBook every time the lid opens by snes on Monday January 10, 2011 @04:10PM (#2089754)
Very cool. I will try to remember this when I start using my laptop more often.