/_posts/2009-2-6-my-macheist-release-estimate.markdown

https://github.com/FranklinChen/mattfoster.github.com · Markdown · 42 lines · 26 code · 16 blank · 0 comment · 0 complexity · c4b30b3db3294373db56b02ca08be48e MD5 · raw file

  1. ---
  2. title: My MacHeist Release Estimate
  3. categories:
  4. - bundle
  5. - python
  6. - numpy
  7. - macheist
  8. layout: post
  9. ---
  10. Like a lot of mac users, I get excited about MacHeist, and why not, it's fun and a good bargain.
  11. Since we're snowed out of work, and a MacHeist Bundle release seems imminent, I decided to hack up a quick script to find out how wide the progress bar thing is, and use that to estimate the release time. Here's what I've been up to for the last half hour or so:
  12. <div class="thumbnail"><a href="http://skitch.com/mattfoster/bd2ut/macheist-mainframe"><img src="http://img.skitch.com/20090206-nd331ywttf11ypf684ehdr5scr.preview.jpg" alt="MacHeist: Mainframe" /></a><br /><span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080">Uploaded with <a href="http://plasq.com/">plasq</a>'s <a href="http://skitch.com">Skitch</a>!</span></div>
  13. I used [BeautifulSoup](http://crummy.com/software/BeautifulSoup "Beautiful Soup: We called him Tortoise because he taught us.") with [urllib2](http://docs.python.org/library/urllib2.html "urllib2 — extensible library for opening URLs &mdash; Python v2.6.1 documentation") and a tiny regular expression, and here's the result:
  14. <script src="http://gist.github.com/59370.js"></script>
  15. I'm running it in a simple shell loop:
  16. while true; do sleep 60; python heist_parse.py >> heist_countdown; done
  17. Which is collecting the width every minute (that doesn't seem too often).
  18. Now that I've had this loop running for a while I've got 34 data points, so I can do a bit of simple linear regression, with [scipy](http://www.scipy.org/ "SciPy -"). Here's a graph:
  19. <div class="thumbnail"><a href="http://skitch.com/mattfoster/bd2ik/macheist-release-estimate"><img src="http://img.skitch.com/20090206-8cess4fmajn5b741bgf1w8mqkg.preview.jpg" alt="macheist_release_estimate" /></a><br /><span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080">Uploaded with <a href="http://plasq.com/">plasq</a>'s <a href="http://skitch.com">Skitch</a>!</span></div>
  20. And here's the code used to do the regression, and generate the plot.
  21. <script src="http://gist.github.com/59382.js"></script>
  22. It's important to remember that this is based on the assumption that the bar is full up at **500** pixels wide. This may or may not be reasonable.
  23. If it is though, I'd tentatively estimate that the bundle will be release at **3AM (GMT) on the 7th Feb 2009**. You read it here first!
  24. **Update:** Well, it looks like they cheated! Here's a graph of the bar's length with time:
  25. <div class="thumbnail"><a href="http://skitch.com/mattfoster/bd49m/rounded-up"><img src="http://img.skitch.com/20090206-k9eynh3auxkny255jttwtdafcm.preview.jpg" alt="Rounded up!" /></a><br /><span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080">Uploaded with <a href="http://plasq.com/">plasq</a>'s <a href="http://skitch.com">Skitch</a>!</span></div>
  26. As you can probably see, it was rounded up. Ahh well. So much for the estimate!