Live data from Hacker News

A file that's both an acceptable HTML page and a JPEG (view source on it)

lcamtuf.coredump.cx

101–110 of 133 posts

Re: A file that's both an acceptable HTML page and a JPEG (view source on it)

#101
post #16

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

Works perfectly here, in both "in browser" as well as "totally blowing my mind" mode. Kudos, sir.

Re: A file that's both an acceptable HTML page and a JPEG (view source on it)

#102
post #64

Earlier 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

well, after all samy is my hero.

Re: A file that's both an acceptable HTML page and a JPEG (view source on it)

#103
post #35

Any 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.

The best part about that virus was it also zipped up a random file from your pc to upload along with it. Everyone in /g/ was grabbing for these things. Can you say identity fraud.

Re: A file that's both an acceptable HTML page and a JPEG (view source on it)

#105

Earlier 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.

It did fine for me on Chrome 20, Arch 64bit. Also a dual core, but nVidia graphics. Maybe the intel graphics drivers are being weird?

Re: A file that's both an acceptable HTML page and a JPEG (view source on it)

#106
post #92

This 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 :)

Few other "browsers" beat links (or links2 nogui), and they are not even "browsers": e.g., the original netcat, tcpclient and BSD's ftp with http support. No, curl is not on the list. It's dog slow.

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)

#107

Hello 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)

#108
post #107

Hello 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

The problem with KF8 is that i now will be limited to a fraction of the kindle crowd i was targeting. KF8 does look promising though, truly a new age of publishing. What about the iBooks platform, any hope over there?

Re: A file that's both an acceptable HTML page and a JPEG (view source on it)

#110

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!

WATCH IT. This file hard-froze my machine (osx/chrome) and I now have to rebuild my dev environment.

it's god punishing you for F5'ing HN when you should be working.
Post reply on HN