If you think that's cool, look at Daeken's Magister: http://demoseen.com/windowpane/magister.png.html A PNG that's interpreted as HTML and loads itself as compressed JavaScript!
Note: Chrome or Firefox with WebGL required. I also wrote an article on how I got this down to 1kb, http://daeken.com/superpacking-js-demos , and just released a new demo based on the same techniques (747 bytes): http://demoseen.com/windowpane/nufl0wer.png.html
A file that's both an acceptable HTML page and a JPEG (view source on it)
101–110 of 133 posts
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#102Earlier quoted context omitted.
Congratulations, the user is on your website, running your malicious javascript. Which is going to do what, exactly? It doesn't have access to any other site's cookies or information.
Be incredibly annoying and make you look like an idiot? e.g. the MySpace worm http://namb.la/popular/tech.html
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#103Any practical use for this or just for fun?
There was a 'virus' that spread on 4chan years ago that did something like this. AFAIK when saved as a .js file and run it would post itself back 4chan to continue spreading.
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#104Only 3594 errors! http://validator.w3.org/check?uri=http%3A%2F%2Flcamtuf.cored...
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#105Earlier quoted context omitted.
Really? I see no slowdown whatsoever. What are you running?
Yeah it locks up Chrome for me, pressing Ctrl+w closed the tab after about 10 seconds. Chrome 20 on Ubuntu 12.04 x86_64. Core 2 Duo with Intel graphics.
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#106This is just more evidence that we should strive to do everything in a browser. Or an app that functions like one. It is more secure. Details should not be exposed to the user. Remember there is no file system. In fact, there are no files. We hid them so they do not exist. Out of sight, out of mind. There's no such thing as binary. That only existed when you were younger. Now it no longer exists. The numbers are gone…
I am a html5 JS developer taking part in all this and I happen to share your opinion from time to time. I enjoy using lynx (ok, links2 actually). Don't worry, there's lots of people who are trying to keep the web worth your attention :)
No one needs to cater to my attention. Apparently I'm not today's end user. I'm for all intents and purposes a blind user. The web is not for me. I don't even start X11 if it's not necessary. I work with text. Graphics and multimedia are for recreation.
One of my favorite recent HN comments/stories was from Diego Basch. He described what happened at Inktomi, an early search engine that eventually was made all but obsolescent by Google.
In his story, he stated what he saw as one of the sure signs that Inktomi was being overtaken by Google. He said he saw that Inktomi engineers did not use Inktomi's search. They used Google.
Are complex browsers the way of the future? I find it easier to work on _operating systems_ than I do to work on today's "modern browsers". That is how complex (and therby insecure) the code has gotten. I would rather try to understand the code for ffmpeg or mplayer than I would for Chrome or Mozilla. But as I said, I'm not the "end user" to focus on.
Developers/engineers gotta eat. Do what works today. Focus on what you think "end users" are doing. Try to anticpate what they "want".
When I'm pondering "the next big thing" and what may work tomorrow to pay the bills, I will always remember Diego's story of the Inktomi engineers.
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#107Hello everyone, i appreciate the great solution that this is but i have a similar problem that could be solved by this solution but has not been solved. My problem is that i want to publish a series of JPEG images as a Kindle book, but i can't, since the reader slices some of my images and puts padding around them. I would prefer that the images render like the cover page, in full screen, but this is impossible to ac…
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#108Hello everyone, i appreciate the great solution that this is but i have a similar problem that could be solved by this solution but has not been solved. My problem is that i want to publish a series of JPEG images as a Kindle book, but i can't, since the reader slices some of my images and puts padding around them. I would prefer that the images render like the cover page, in full screen, but this is impossible to ac…
You can't do it with epub because they would just get converted to Mobi when it gets to Amazon. You might be able to do something with the new Mobi 8 format though: http://www.amazon.com/gp/feature.html?docId=1000729511
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#109Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#110If you think that's cool, look at Daeken's Magister: http://demoseen.com/windowpane/magister.png.html A PNG that's interpreted as HTML and loads itself as compressed JavaScript!
WATCH IT. This file hard-froze my machine (osx/chrome) and I now have to rebuild my dev environment.