TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Reverse-Engineering Xkcd's 'Frequency'

251 点作者 ams1大约 11 年前

15 条评论

deckar01大约 11 年前
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.<p><pre><code> 1. Normalize times to integers. 2. Assume congruence at x = t mod (t+1). 3. Solve congruence system. 4. Denormalize result. </code></pre> Python solution: <a href="http://ideone.com/Wh2SR6" rel="nofollow">http:&#x2F;&#x2F;ideone.com&#x2F;Wh2SR6</a> Solution perspective: <a href="http://www.wolframalpha.com/input/?i=3541760026837707223455613087881588712157229686722179240978118057837619969343910617190906282246617252766842304240193875476480000000000+seconds" rel="nofollow">http:&#x2F;&#x2F;www.wolframalpha.com&#x2F;input&#x2F;?i=35417600268377072234556...</a>
评论 #7294684 未加载
josephwegner大约 11 年前
Not super related to the content, but I love the &quot;Show Code&quot; button at the bottom of the article. So often sites either show code inline and break up my reading, or just dump the whole thing into a github repo, which loses context. That button is awesome, because I can read the whole thing to understand the problem, then review the code the next time through with better context.<p>Awesome!
评论 #7291162 未加载
评论 #7291028 未加载
评论 #7291566 未加载
nly大约 11 年前
For anyone wondering how to dump gif loop time.<p><pre><code> curl -s http:&#x2F;&#x2F;imgs.xkcd.com&#x2F;comics&#x2F;frequency&#x2F;turnsignal1.gif | giftext | grep DelayTime | cut -d&#x27;:&#x27; -f 2 | awk &#x27;{s+=$1} END {print s&#x2F;100}&#x27; </code></pre> The results seem to correspond with authors table.
评论 #7291331 未加载
ck2大约 11 年前
There are some really clever people in this world.<p>One to make it.<p>One to take it apart.
scelerat大约 11 年前
I can&#x27;t imagine a better followup to an xkcd strip. Bravo.
评论 #7292424 未加载
dav-大约 11 年前
Awesome, this is one of my favorite XKCDs. I&#x27;ve been mulling over a plan in my mind to make a physical version of it, looking similar to a deep picture frame or display case. It would use white acrylic with the text somehow printed or transferred on, backlit by white LEDs (maybe incandescent lamps would look nicer?). Each cell would be separated by thin black wood or plastic strips. It should be pretty easy to control the whole thing with an arduino, and I think it would make an awesome wall display.
评论 #7291442 未加载
评论 #7291593 未加载
Dylan16807大约 11 年前
What I found interesting was the format of the gifs themselves. They were mostly or completely uncompressed, totaling 8MB. I can only think of one possible reason to do this, which would be to take advantage of HTTP compression to go inter-frame instead of using the builtin intra-frame that gifs have (.5MB vs 4MB). But HTTP compression was turned off too.
arithma大约 11 年前
There&#x27;s more analysis here than reverse engineering. Nice work still.
aphrax大约 11 年前
I&#x27;m still trying to understand where the frequency is stored? Is it a value that can be embedded into the gif?
评论 #7291277 未加载
roma1n大约 11 年前
Didn&#x27;t get the &quot;A european resident has their first kiss&quot; though. Wouldn&#x27;t it make more sense to divide the frequency by two and state &quot;Two european residents have their first kiss&quot;?
评论 #7292031 未加载
guelo大约 11 年前
To me the most interesting thing in this article were the urls of the inlined images, &lt;img src=&quot;data:image&#x2F;png;base64,...&gt; I had no idea you could do that.
评论 #7291983 未加载
评论 #7292001 未加载
评论 #7291961 未加载
nextstep大约 11 年前
Does anyone know the answer to the &quot;turn signal problem&quot; he poses? Why does the beat frequency he observes match what he calculated?
评论 #7291242 未加载
agmartin大约 11 年前
I&#x27;m completely distracted by the fact that this was #1331.<p>Surely he must have something truly epic saved up for 1337.<p>Right? Anyone?
kriswill大约 11 年前
This page is hard crashing Safari latest on my MBP 2013. Anyone else experiencing this?
评论 #7294178 未加载
ingend88大约 11 年前
Get this story in your mailbox with daily newsletter for top 5 HN Post, signup at <a href="http://top5hn.launchrock.co" rel="nofollow">http:&#x2F;&#x2F;top5hn.launchrock.co</a> Stats after creating the landing page in last 24hours: 944 Page Views 101 Signups Newsletter Stats 41% Open Rate 40% CTR