Live data from Hacker News

Reverse-Engineering Xkcd's 'Frequency'

notebooks.jsvine.com

31–40 of 55 posts

Re: Reverse-Engineering Xkcd's 'Frequency'

#33
post #29

To me the most interesting thing in this article were the urls of the inlined images, I had no idea you could do that.

IE 7 doesn't support it, and IE 8 limits you to 32 KB data uri's. IE also only supports images, stylesheets and javascript, while other browsers let you be a bit more creative with things like generating pdf's and excel files client-side.

Re: Reverse-Engineering Xkcd's 'Frequency'

#36
I am trying to apply the Chinese remainder theorem to solve the time required for all of the events to occur simultaneously. I am ignoring the GIF timing bug.

  1. Normalize times to integers.
  2. Assume congruence at x = t mod (t+1).
  3. Solve congruence system.
  4. Denormalize result.
Python solution: http://ideone.com/Wh2SR6 Solution perspective: http://www.wolframalpha.com/input/?i=35417600268377072234556...

Re: Reverse-Engineering Xkcd's 'Frequency'

#39
post #17
post #4

Earlier quoted context omitted.

It would be nice to have Show Code at the top, along with a note that some of the code has been hidden. I like seeing code examples as I'm reading through.

I'm the guy who built that, and I agree. I tinkered with having another "Show Code" button at the top, but my attempts looked bulky and distracting. Still trying to figure out a better way. In the meantime, pull requests quite welcome: https://github.com/jsvine/reporter

As a note of feedback, I didn't notice the button at all. (Only knowing about its existence after looking at HN comments.) You do need to take a little bit a the viewer's attention for them to know about the feature.

Re: Reverse-Engineering Xkcd's 'Frequency'

#40
post #34

Didn't get the "A european resident has their first kiss" though. Wouldn't it make more sense to divide the frequency by two and state "Two european residents have their first kiss"?

It very well may only be one of the participants' first kiss.

Or one participant may not be European.
Post reply on HN