Live data from Hacker News

Proper use cases for Android UserManager.isUserAGoat()

stackoverflow.com

11–20 of 21 posts

Re: Proper use cases for Android UserManager.isUserAGoat()

#12
post #7

Earlier quoted context omitted.

kNuthMagicNumber?

Looks like golden ratio (phi, about 1.618) * 2^30. Maybe something to do with Knuth's Surreal Numbers? ( http://www-cs-faculty.stanford.edu/~uno/sn.html )

Maybe the answer to this question sheds some light on that: http://cstheory.stackexchange.com/questions/9639/how-did-knu...

Re: Proper use cases for Android UserManager.isUserAGoat()

#13
in every app I've written since 2008, I've added an interface named "ICanHazCheezburger", it has a single property "CanHazCheezburger". I don't actually have any classes that implement it, it is just a nice little easter egg for the next dev that works on the code :)

Re: Proper use cases for Android UserManager.isUserAGoat()

#17
So I've created a shim for iOS. You play a gentle, low sound, not unlike goats bleating. Then you check the accelerometer[1][2] for the unique pattern of sound waves rebounding from the hairs of theuser's beard. (Remember, the iOS accelerometer is amazingly accurate. This technique really works!)

If you're interested, drop me a line at 1.800.GOAT.API and I will license my patent for your app.

[1] Cf. http://stackoverflow.com/questions/13248493/detect-ipad-mini... [2] Also relevant: http://xkcd.com/378/

Re: Proper use cases for Android UserManager.isUserAGoat()

#18
post #2

This reminds me of the "isUserAMonkey" thread: http://stackoverflow.com/questions/7792123/strange-function-... That turned out to refer to automated testing harnesses as opposed to live users (see: http://developer.android.com/tools/help/monkey.html ). Unfortunately, http://developer.android.com/tools/help/goat.html 404s. The Android API is known for lots of little hidden references and Google jokes. The SensorManage…

Well, the number in chrome is kinda random (not really), but there is a story behind why someone added "goats teleported". That wasn't just randomly chosen, it's from a joke that dates back to 2006.

Re: Proper use cases for Android UserManager.isUserAGoat()

#19
post #2

This reminds me of the "isUserAMonkey" thread: http://stackoverflow.com/questions/7792123/strange-function-... That turned out to refer to automated testing harnesses as opposed to live users (see: http://developer.android.com/tools/help/monkey.html ). Unfortunately, http://developer.android.com/tools/help/goat.html 404s. The Android API is known for lots of little hidden references and Google jokes. The SensorManage…

Naming an automated GUI tester a monkey could be a reference to the original Mac: http://www.folklore.org/StoryView.py?story=Monkey_Lives.txt

(IIRC, the original Mac also had an area of memory called "MickeyBytes" that stored the current mouse acceleration settings)

Re: Proper use cases for Android UserManager.isUserAGoat()

#20
post #2

This reminds me of the "isUserAMonkey" thread: http://stackoverflow.com/questions/7792123/strange-function-... That turned out to refer to automated testing harnesses as opposed to live users (see: http://developer.android.com/tools/help/monkey.html ). Unfortunately, http://developer.android.com/tools/help/goat.html 404s. The Android API is known for lots of little hidden references and Google jokes. The SensorManage…

Or it could be a Chinese Zodiac sign thing? There are 12 animals in the Chinese Zodiac, each representing a year in a 12 year cycle. Goat and Monkey are two of them. I'm a Tiger, which means I am either 2,14,26,38,50,62,74,86 or 98 years old.
Post reply on HN