Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But sooo much less fun. When I started, I was doing the following:

ryan@newslily /tmp/reddit $ find . |grep |xargs grep $foo |wc -l

ryan@newslily /tmp/reddit $ find . |grep |xargs grep $bar |wc -l

etc. etc.

But the nerd in me went "Well I wonder how many times each character occurs?", so I wrote a python script to find each unique character, then count how many times it occurs. (Somebody in the comments pointed out that I could have done this with awk, but still: much less fun to use a canned solution).

The most common character in the html files is the letter "e", which occurs 32880 times.

If you take the top 8 characters from them, in descending order, they spell "etinsaor", which I assume is some sort of alien dinosaur.

If you take them in ascending order, it is "roasnite", which I assume is some sort of radioactive material from another planet that they use to power the servers.



Google "ETAOIN SHRDLU" to see the principle you just rediscovered. =)

Actually still handy in cryptanalysis.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: