Page 1 of 3

1416: "Pixels"

Posted: Wed Sep 03, 2014 5:39 am UTC
by Retsam
Image
Alt: It's turtles all the way down.

Ooooh, it's another fun one. My favorite part so far is the Gödel, Escher, Bach reference.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 5:42 am UTC
by KarMann
It's not working for me, using Firefox 31.0 on Linux. All I see is a blank white space. I did manage to see the picture eventually using the web console, but can't see the results of scrolling, which I assume includes the GEB reference among others. :(

ETA: It seems to stop in zoom.js, at line 143. Haven't figured out why yet, though.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 5:47 am UTC
by Eutychus
Recursive comic is recursive.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 5:52 am UTC
by arisance
I pre-ordered the What If? book back in March and haven't thought about it for awhile. Yesterday I got shipment notification from Amazon and I am super excited.

book launch

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 6:02 am UTC
by WalksOnDirt
Do you need to use the scroll wheel to zoom? I get limited zooming from the menu, but scroll wheel zooming doesn't seem to end.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 6:06 am UTC
by Envelope Generator
Scroll wheel zooming works for a little while but then my browser just freezes completely. Is it because I'm not a turtle?

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 6:15 am UTC
by hetas
It was working very badly for me with Firefox 31 on Windows. Firefox just updated to ver 32 and zooming seems to work now. Or maybe restarting the browser helped.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 6:17 am UTC
by Ilze123
It is working fine with exploder :)

Really nicely done. I wonder how deep the rabbit hole goes, and who will document the trip :)

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 6:20 am UTC
by rhomboidal
Mind-el-blow set. :shock:

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 6:27 am UTC
by Thirsting
I think you killed my Chrome.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 6:30 am UTC
by Richard Wolf VI
It seems to work best on IE 11, Chrome 37 (64 bit) hangs at the first recursion.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 6:34 am UTC
by Dr What
This is fantastic!

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 6:42 am UTC
by karhell
errrr... wow. Just. Wow. :shock:

This definitely calls for some documentation

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 6:50 am UTC
by alvinhochun
After a few scrolls, the Chrome tab is using 900MB of RAM.

Nice memory killer.

EDIT: Oh and also a reminder, you need to disable HTTPS Everywhere for any interactive xkcd comics to work.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 6:58 am UTC
by fishtoaster
I'd love to show you all the list of image urls I've compiled, but the forum software keeps telling me I'm a spammer and won't let me post. :/

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 7:11 am UTC
by Eternal Density
Oh BHG :P
bhg.png
what does an Earth hydrant look like?


E!
E.png
EEEEEEEEEEEEEEEE


and of course if you zoom into this:
t1.png

you find this:
t2.png

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 7:12 am UTC
by asdf28
Works in opera 12, at least for one-and-3/4-zooms. After that, rendering performance slows to a crawl.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 7:14 am UTC
by gtschemer
Eternal Density, how did you get THAT picture to show up? The lowest I got was the atom, which goes into blackness/starfield, before repeating.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 7:19 am UTC
by Eternal Density
gtschemer wrote:Eternal Density, how did you get THAT picture to show up? The lowest I got was the atom, which goes into blackness/starfield, before repeating.
I don't think I've seen an atom. (Oh wait, I have. I just hadn't realised it was.)
Have you seen the 'more struts' and the time turner discussion?

Also, sometimes while zooming it just turns white because of this:
crash.png
Did anyone notice the Javascript?
crash.png (9.23 KiB) Viewed 23822 times


What you get depends on what you zoom in on.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 7:26 am UTC
by gtschemer
Now I'm really confused. I've zoomed on every symbol I have found, as far as I know, and I haven't seen ANYTHING with a white background. All I get is endless recursion with this sort of thing:

recursion.png


It works for me in Internet Explorer though, so I guess it is broken for some version(s) of Firefox.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 7:29 am UTC
by Eternal Density
I get white backgrounds from white pixels and black backgrounds from black pixels. And if I zoom into a border between different regions, it sometimes gets confused so the image I'm zooming in on changes when I get a little closer.

Here's something I posted to the Time thread:
Image

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 7:32 am UTC
by manvandmaan
So I guess work is not going to be done today... Got some zoomin' to do!

If you follow the "book launch" ones, there is a comic about how they use a rocket to actually launch the book!

So probably, there are more secret comics hidden in the layers...

Let's find them all!

Fun!

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 7:50 am UTC
by eviloatmeal
Is there anything encoded in the whitespace?

Spoiler:
Image

Image

Image

Image
00010010000110010000000001010111101
11100001100011000100110001000011100
00011011101110100000110101001010100
00001111111100011101101001010100001
11010001011001011000011001110100010
10111011011001001100111100001110111
01001101000110010110000000001100000
10011111010000111110110001111011001
11110111101111010110100010101110000
11110101001101101000110000011010101
etc.


Just noise, or?

gtschemer: It seems that each frame is composed of a specific set of other frames, so if you zoom in on frame A and get lots of small Bs and Cs, then zoom in on B and get lots of small As, then those As will lead back to B and C, and so on.

If you want to explore, you have to zoom into all the different frames, and each frame is composed of different frames in different pixels - like in my pictures above, where the black pixels are composed of two different black frames, and the white pixels are two different white frames.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 8:03 am UTC
by KarMann
alvinhochun wrote:EDIT: Oh and also a reminder, you need to disable HTTPS Everywhere for any interactive xkcd comics to work.

Ah, that little reminder took care of it for me. Thanks a bunch!

Eternal Density wrote:Did anyone notice the Javascript?

I totally noticed the JavaScript. To the point that I forgot about the other reasons it might be broked.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 8:10 am UTC
by Eternal Density

Code: Select all

/* turtles all the way down -- by chromakode (http://chromakode.com) */
hmmm

Code: Select all

TurtlesDown.prototype._zoom = function(amount) {
  var centerOffset = this.size / 2
  var originX = (this._mousePos.x - centerOffset)
  var originY = (this._mousePos.y - centerOffset)

  amount = 1 + amount
  var oldScale = this.offset.scale
  this.offset.scale *= amount > 0 ? amount : 1 / amount

  // FIXME: these formulae are slighly off, somehow.
  var scaleDeltaX = (originX * this.offset.scale - originX * oldScale) / this.offset.scale
  this.offset.x = ((this.offset.x - centerOffset) * this.offset.scale - scaleDeltaX) / this.offset.scale + centerOffset
  var scaleDeltaY = (originY * this.offset.scale - originY * oldScale) / this.offset.scale
  this.offset.y = ((this.offset.y - centerOffset) * this.offset.scale - scaleDeltaY) / this.offset.scale + centerOffset

  this.render()
}
'FIXME' :P

Code: Select all

TurtlesDown.prototype.render = function() {
  // there is no elegance here. only sleep deprivation and regret.
awwwww

This part seems critical to deciding which images show up:

Code: Select all

Turtle.prototype._gen = function() {
  if (this.data || !this.img || !this.spec) {
    return
  }

  this.data = new NArray(Array, this.w, this.h)
  var imageData = getImageData(this.img, this.w, this.h)

  // imageData is an array of UInt8s in RGBA order
  for (var i = 0; i < imageData.data.length; i += 4) {
    var isBlack = imageData.data[i] < 128
    var id = isBlack ? choice(this.spec.black) : choice(this.spec.white)
    this.data.setLinear(i / 4, id)
  }
}

Turtle.prototype._src = function(id) {
  return imgsEndpoint + 'turtledown/' + id + '-tiled.png'
}

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 8:14 am UTC
by masterpi
I wrote a quick python / bash / imagemagic hack to download and convert all the images. It's much more fun to scroll through the page, but here's the imgur album when you're done having fun with the comic: /a/WccVt#0

It won't let me put the whole link in because my account is new :(

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 8:23 am UTC
by RThaiRThai
masterpi wrote:I wrote a quick python / bash / imagemagic hack to download and convert all the images. It's much more fun to scroll through the page, but here's the imgur album when you're done having fun with the comic: /a/WccVt#0

It won't let me put the whole link in because my account is new :(


Aw... you got here before me. I'm pasting my work anyway. (Edit: I like yours better though; the way I did mine they're in no special order) For running in the JavaScript console on any page in the c.xkcd.com domain:

Code: Select all

var ids = {};

(function () {
    var firstId = 'turtles';

    var main = function () {
        ids[firstId] = true;
        fetch(firstId);
    };

    var fetch = function (id) {
      var req = new XMLHttpRequest();
      req.onload = function() {
        try {
            var spec = JSON.parse(req.responseText);
            addToIds(spec);
        } catch (e) {}
      }; 
      req.open("GET", 'http://c.xkcd.com/turtle/' + id, true);
      req.send();
    };

    var addToIds = function (imageData) {
        addToIdsForColor(imageData, 'white');
        addToIdsForColor(imageData, 'black');
    };

    var addToIdsForColor = function (imageData, color) {
        var newIds = imageData[color];
        for (var i = 0; i < newIds.length; i++) {
            var id = newIds[i];
            if (!ids[id]){
                ids[id] = true;
                fetch(id);
            }   
        }   
    };

    main();
}());


Edit: And then you run this after the first part.

Code: Select all

for (var id in ids) {
    document.write('<img src="http://imgs.xkcd.com/turtledown/' + id + "-tiled.png" />');
}

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 8:40 am UTC
by jestingrabbit
masterpi wrote:I wrote a quick python / bash / imagemagic hack to download and convert all the images. It's much more fun to scroll through the page, but here's the imgur album when you're done having fun with the comic: /a/WccVt#0

It won't let me put the whole link in because my account is new :(


Its nice to not have a forum full of spam, it would be nicer if it were easier to work out what was what, so that it could be mechanised. Regardless, here is your link.

http://imgur.com/a/WccVt#0

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 8:48 am UTC
by Andromeda321
Poked around, got a few different things- fun! (I don't know about for others btw, but for me there is nothing really interesting comic-wise in the black- you need to scroll in the white.)

Further, most of the panels repeat, but I saw one joke that repeated- the boy and girl wondering to each other "let's be honest- can we really tell if anyone lives in Stockholm?" I'm sure the Swedish will be happy. :lol: (For the record, pretty sure some people live there as I went there last spring, and it seemed like a nice enough place.)

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 8:53 am UTC
by StClair
jestingrabbit wrote:http://imgur.com/a/WccVt#0


Okay, that's enough struts.
Now, MOAR BOOSTERS!

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 8:55 am UTC
by Pfhorrest
Andromeda321 wrote:Further, most of the panels repeat, but I saw one joke that repeated- the boy and girl wondering to each other "let's be honest- can we really tell if anyone lives in Stockholm?" I'm sure the Swedish will be happy. :lol: (For the record, pretty sure some people live there as I went there last spring, and it seemed like a nice enough place.)

I thought the joke was that people who live in Stockholm and claim that they like it there may just have Stockholm Syndrome. The quote was "How do we know anyone really wants to live in Stockholm?"

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 9:04 am UTC
by azt.tm
Just isolated all image-relations. I describe the procedure on my blog: azttm wordpress com (just add the dots).
Currently working on an image-collage. Stay tuned...

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 10:08 am UTC
by Flumble
gtschemer wrote:Now I'm really confused. I've zoomed on every symbol I have found, as far as I know, and I haven't seen ANYTHING with a white background. All I get is endless recursion with this sort of thing:

[image/]

It works for me in Internet Explorer though, so I guess it is broken for some version(s) of Firefox.

Firefox 31 and 32 have this problem for me too.

Oh well, I had some chromium left, so I've fired it up and I'm now zooming in on turtles... FOR SCIENCE.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 10:34 am UTC
by jeanrenaud
A little processor-hungry on my Core 2 Duo (but can't blame Randall for my PC being outdated). Slow, but worth it.

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
I have a computosaur.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 10:40 am UTC
by C'tol
alvinhochun wrote:EDIT: Oh and also a reminder, you need to disable HTTPS Everywhere for any interactive xkcd comics to work.

Cannot confirm. I didn't turn it off and it still worked for me (until I hit that "white" error posted earlier in this thread)

Edit: Or do you mean the ruleset for xkcd? That I have turned off, yes.

KarMann wrote:It's not working for me, using Firefox 31.0 on Linux.

Using FF 31 on Linux as well, but for me it ran just fine (a bit sluggish, but well...)

Thanks to the people who already posted the collections. Awesome work!

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 10:57 am UTC
by NoMouse
Oh no... It worked fine with Firefox 31.0 on Windows 8.1 (only a little bit slower when many different images were loading) and now it stopped working with Firefox 32.0, when I zoom in, I see white space. :?

Edit: And for those who don't want to destroy their scroll wheels, up and down arrows work just fine. :wink:

Edit2: That's weird, it doesn't work neither in IE11, Chrome and Opera 12.17, so now I have no option to view the comic. :cry:

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 11:08 am UTC
by bachaddict
Not working for me in Chrome or Firefox on Win7. Turns white when I get far enough in to load the next layer.

Thanks to those who scraped all 79 images for us to see!

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 11:12 am UTC
by NoMouse
Explain xkcd says "The comic (along with many other features of the site) will not work at all at present, as the server for dynamic content, c.xkcd.com, is down. " (last edit on the page) so that's probably the real reason.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 11:17 am UTC
by Eternal Density
Thanks for the scraping!
I think the only ones I hadn't seen were the rocket launch (I think it kept crashing for me before I got that deep) and the rope.

Re: 1416: "Pixels"

Posted: Wed Sep 03, 2014 11:20 am UTC
by azt.tm
azt.tm wrote:Just isolated all image-relations. I describe the procedure on my blog: azttm wordpress com (just add the dots).
Currently working on an image-collage. Stay tuned...


Now the collage is finished: http://azttm.wordpress.com/xkcd-com-1416-pixels