Show HN: I wrote a script to turn a webpage into bitmap HTML. (Caution: huge)
elliottkember.com
elliottkember.com
The object: take a copy of the Google search page and represent it in the most inefficient, bloated way possible. There would be two divisions: time-bloat and space-bloat.
Rules: Every piece of code must be involved in displaying something visibly on the page. Every statement in the Javascript must be making forward progress toward displaying the page.
The functionality of the page must be exactly the same as the original.
Any other rules?
(There wouldn't be any loading and waiting on external resources, of course.)
do
page = gen_random_bytes(n)
while (h != SHA256(page))
print page
It can be even generated client-side! page_bytes = bytes(size_of(bytes_of(page)))
do
page_bytes += 1
while (page_bytes != bytes_of(page))
print pageBut, there's another way - use a damn scripted gif or png</obvious>
...or for monochrome pages, is an xbm smaller?
update: oh yeah, i forgot, xbm files are C, though I suppose you could meta script them with more C.
people who really dont want their text stolen are going to see the massive bandwidth we have now and start just using images. protects it from anything but ocr.
hope you don't go over your bandwidth quota ;)
I made a bitmap -> <table> once, that was pure hell like this. ;-)
...oh that's why.