Live data from Hacker News

Snap webcam photos whenever your app crashes

sizeof.io

1–10 of 11 posts

Re: Snap webcam photos whenever your app crashes

#6
post #5
post #4

Cool idea =) Had to add -w 1 to the arguments of imagesnap, otherwise my camera took black images.

Yes, this seems to be necessary for using Imagesnap with more recent Apple devices.

Hey, author here. I'll update the post with that if that's the case. Thanks!

Re: Snap webcam photos whenever your app crashes

#7
post #2

This is awesome. What about a collective dev facepalms gallery? It would be great to add a caption to the photo with an extract of the error message at the time. You could actually start a meme with that!

Hey, author here! I was actually thinking of continuing the article at some point by adding lolcommit-style error messages onto the pictures. I think it's a great idea!

Re: Snap webcam photos whenever your app crashes

#8
For added effect, add a couple lines to set volume to max and play a loud high-pitch sine wave 400ms before image is snapped. The purpose of this is two-fold: hilarious portraits (albeit, at the cost of one's eardrums) and skinnerian conditioning resulting in improved code checking habits. Always analyze code before running it.

Re: Snap webcam photos whenever your app crashes

#10

This is fun to do for when you are the only one using the app (ie, early testing). It looks like a privacy nightmare. You'll probably lose millions in lawsuits. Still, I think I'll have fun with this :D

No, it is not a function of the app, but a breakpoint action in XCode. It only works when you are debugging the app.
Post reply on HN