News for hackers. Stuff that matters.
Re:Click on the "I" and the "O" by dm2 on Thursday May 09, 2013 @08:49AM (#5680118)
space: 00101010

pong: 10000001

simone: 11010011

eightbit: 01010011

song: 11011011

synth: 10001000

ascii: 01111111

bowling: 01110101

rocket: 01000101

burger: 00111001

cat: 11100111

bacon: 10010000

This was done a while ago.

Re:Click on the "I" and the "O" by mambodog on Thursday May 09, 2013 @09:11AM (#5680235)
You can also just read the code (the third parameter is the decimal representation of the 'password'):

    ww.mode.register("home", ww.mode.HomeMode, null);
    ww.mode.register("cat", ww.mode.CatMode, 231, 8);
    var isAndroid = navigator.userAgent.match(/Android/);
    isAndroid || ww.mode.register("space", ww.mode.SpaceMode, 42, 8);
    ww.mode.register("pong", ww.mode.PongMode, 129, 8);
    ww.mode.register("bacon", ww.mode.BaconMode, 144, 8);
    ww.mode.register("simone", ww.mode.SimoneMode, 211, 8);
    ww.mode.register("eightbit", ww.mode.EightBitMode, 83, 8);
    ww.util.getAudioContextConstructor() && (ww.mode.register("song", ww.mode.SongMode, 219, 8), ww.mode.register("synth", ww.mode.SynthMode, 136, 8));
    ww.mode.register("ascii", ww.mode.AsciiMode, 127, 8);
    ww.mode.register("bowling", ww.mode.BowlingMode, 117, 8);
    ww.mode.register("rocket", ww.mode.RocketMode, 69, 8);
    ww.mode.register("burger", ww.mode.BurgerMode, 57, 8);
Re:Click on the "I" and the "O" by dm2 on Thursday May 09, 2013 @09:19AM (#5680264)
Sure, if you assume everyone has the amazing ability to do decimal to binary conversions in their head.

Also assuming that everyone has the skill to dig through javascript files.

Re:Click on the "I" and the "O" by nightpool on Thursday May 09, 2013 @09:30AM (#5680311)
cough https://www.google.com/#&q=231+in+base+2&oq=27+in+ba... Or, you know, Windows Calculator? Or Gcalctool? Or, if you want overkill: http://www.wolframalpha.com/input/?i=231+in+base+2
Re:Click on the "I" and the "O" by mambodog on Thursday May 09, 2013 @10:41AM (#5680659)
I certainly didn't do the decimal-binary conversion in my head (mental arithmetic is not my greatest skill). You can open your browser's JS console and use:

    Number(x).toString(2)
x being the decimal value.
Re:Click on the "I" and the "O" by Hello71 on Thursday May 09, 2013 @12:32PM (#5681325)

  (x).toString(2)
Re:Click on the "I" and the "O" by pygy_ on Thursday May 09, 2013 @09:44AM (#5680383)
Decoding is easy with pen and paper, if not mentally. You must know your powers of two. In the order that concerns us:

128, 64, 32, 16, 8, 4, 2, 1

----

Let's decompose 231.

----

231 >= 128; That's a 1 in first position. 1

231 - 128 = 103 >= 64; We have a one in the second position. 11.

103 - 64 = 39 >= 32; One in the third position. 111.

39 - 32 = 7 < 16; Zero in the fourth position. 1110.

7 < 8; Zero in the fifth place. 11100

7 >= 4; 111001

7 - 4 = 3 >= 2; 1110011

3 - 2 = 1 >= 1; Final result: 11100111. Enjoy your cats :)

Re:Click on the "I" and the "O" by zerohp on Thursday May 09, 2013 @10:23AM (#5680558)
That method is what I did until I went back to school for computer engineering.

All you have to do is integer division by two and keep the remainder. You don't even need to know the powers of two.

Here's an example with 137.

  137 % 2 = 1
  68  % 2 = 0
  34  % 2 = 0
  17  % 2 = 1
  8   % 2 = 0
  4   % 2 = 0
  2   % 2 = 0
  1   % 2 = 1
Now reverse the order and zero extend if necessary.

Final result: 10001001

You can use a similar method to convert the fractional part of a float, but with multiplication.

Re:Click on the "I" and the "O" by pygy_ on Thursday May 09, 2013 @12:22PM (#5681247)
Neat, thanks for the tip :)
Re:Click on the "I" and the "O" by ctdonath on Thursday May 09, 2013 @09:49AM (#5680402)
If you're trying to crack a code on developers.google.com, yes I would assume that.
Re:Click on the "I" and the "O" by mcdigman on Thursday May 09, 2013 @10:50AM (#5680694)
If you spend enough time trying to debug systems that are communicating in binary, its an ability you start to pick up, especially for small numbers.