I follow those GoogleDevelopers Videos. Sometime back, in one of the presentations on GoogleIO, there was this interesting string of dots at the bottom of each page of the presentation. They looked like random big and small dots. A similar bunch of dots were also on the T-shirt of a presenter was wearing in another presentation. While it seemed something in the pattern, I could not find what it was. Finally, another presenter cleared the matter that those dots are just binary representation of "GOOGLEIO" (So much for advertizing Google IO, Impressive!).
So I wanna do it. Takes me back to days of those DSP classes at school. Nerdy me had to churn some old brain cells. I remember those first programming language classes in Pascal and C when you were asked to do fibonacci series and converting a binary string to ascii codes. That *experience* came handy here: Check it out!
For those who came to copy the javascript code to convert string to binary, Here it is:
function toBin(str){ var st,i,j,d; var arr = []; var len = str.length; for (i = 1; i<=len; i++){ //reverse so its like a stack d = str.charCodeAt(len-i); for (j = 0; j < 8; j++) { arr.push(d%2); d = Math.floor(d/2); } } //reverse all bits again. return arr.reverse().join(""); }