hn 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -23,6 +23,9 @@ And then execute:
23
23
  # return up to 30 homepage entries
24
24
  HackerNews::Engine.homepage
25
25
 
26
+ # return up to 30 best entries
27
+ HackerNews::Engine.best
28
+
26
29
  # return up to 30 newest entries
27
30
  HackerNews::Engine.newest
28
31
 
@@ -33,3 +36,9 @@ And then execute:
33
36
  3. Commit your changes (`git commit -am 'Added some feature'`)
34
37
  4. Push to the branch (`git push origin my-new-feature`)
35
38
  5. Create new Pull Request
39
+
40
+ ## Contributors
41
+
42
+ Thanks following wonderful people for contributing to this project:
43
+
44
+ [@bencevans](https://github.com/bencevans)
@@ -5,6 +5,10 @@ module HackerNews
5
5
  EntryParser.new.homepage
6
6
  end
7
7
 
8
+ def best
9
+ EntryParser.new.best
10
+ end
11
+
8
12
  def newest
9
13
  EntryParser.new.newest
10
14
  end
@@ -8,6 +8,10 @@ module HackerNews
8
8
  parse_entries site_name
9
9
  end
10
10
 
11
+ def best
12
+ parse_entries "#{site_name}best"
13
+ end
14
+
11
15
  def newest
12
16
  parse_entries "#{site_name}newest"
13
17
  end
@@ -38,10 +42,10 @@ module HackerNews
38
42
 
39
43
  entry.title = trs[i*3].at_css('td.title a').text
40
44
 
41
- entry.site = trs[i*3].at_css('td.title span.comhead').text.match(/\((.+)\)/)[1] rescue nil
45
+ entry.site = trs[i*3].at_css('td.title span.comhead').text.match(/\((.+)\)/)[1] rescue ''
42
46
  entry.points = trs[i*3+1].at_css('td.subtext span').text.to_i rescue -1
43
- entry.username = trs[i*3+1].at_css('td.subtext a').text rescue nil
44
- entry.time_string = trs[i*3+1].at_css('td.subtext a').next.text.sub('|', '').strip rescue nil
47
+ entry.username = trs[i*3+1].at_css('td.subtext a').text rescue ''
48
+ entry.time_string = trs[i*3+1].at_css('td.subtext a').next.text.sub('|', '').strip
45
49
  entry.submitted_at = Chronic.parse entry.time_string
46
50
  entry.num_comments = trs[i*3+1].css('td.subtext a')[1].text.to_i rescue -1
47
51
 
@@ -1,3 +1,3 @@
1
1
  module HackerNews
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -0,0 +1,24 @@
1
+ <html><head><link rel="stylesheet" type="text/css" href="http://ycombinator.com/news.css">
2
+ <link rel="shortcut icon" href="http://ycombinator.com/favicon.ico">
3
+ <script>
4
+ function byId(id) {
5
+ return document.getElementById(id);
6
+ }
7
+
8
+ function vote(node) {
9
+ var v = node.id.split(/_/); // {'up', '123'}
10
+ var item = v[1];
11
+
12
+ // hide arrows
13
+ byId('up_' + item).style.visibility = 'hidden';
14
+ byId('down_' + item).style.visibility = 'hidden';
15
+
16
+ // ping server
17
+ var ping = new Image();
18
+ ping.src = node.href;
19
+
20
+ return false; // cancel browser nav
21
+ } </script><title>Top Links | Hacker News</title></head><body><center><table border=0 cellpadding=0 cellspacing=0 width="85%" bgcolor=#f6f6ef><tr><td bgcolor=#ff6600><table border=0 cellpadding=0 cellspacing=0 width="100%" style="padding:2px"><tr><td style="width:18px;padding-right:4px"><a href="http://ycombinator.com"><img src="http://ycombinator.com/images/y18.gif" width=18 height=18 style="border:1px #ffffff solid;"></img></a></td><td style="line-height:12pt; height:10px;"><span class="pagetop"><b><a href="news">Hacker News</a></b><img src="http://ycombinator.com/images/s.gif" height=1 width=10><a href="newest">new</a> | <a href="newcomments">comments</a> | <a href="ask">ask</a> | <a href="jobs">jobs</a> | <a href="submit">submit</a> | <font color=#ffffff>best</font></span></td><td style="text-align:right;padding-right:4px;"><span class="pagetop"><a href="newslogin?whence=%62%65%73%74">login</a></span></td></tr></table></td></tr><tr style="height:10px"></tr><tr><td><table border=0 cellpadding=0 cellspacing=0><tr><td align=right valign=top class="title">1.</td><td><center><a id=up_4252955 href="vote?for=4252955&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4252955></span></center></td><td class="title"><a href="http://eyetap.org/mcdonalds/">Physical assault by McDonald's for wearing Digital Eye Glass</a><span class="comhead"> (eyetap.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4252955>1025 points</span> by <a href="user?id=balnaphone">balnaphone</a> 2 days ago | <a href="item?id=4252955">433 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">2.</td><td><center><a id=up_4252274 href="vote?for=4252274&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4252274></span></center></td><td class="title"><a href="http://dealbook.nytimes.com/2012/07/16/googles-marissa-mayer-tapped-as-yahoos-chief/">Google’s Marissa Mayer Tapped as Yahoo’s Chief</a><span class="comhead"> (nytimes.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4252274>964 points</span> by <a href="user?id=sahillavingia">sahillavingia</a> 2 days ago | <a href="item?id=4252274">342 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">3.</td><td><center><a id=up_4258458 href="vote?for=4258458&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4258458></span></center></td><td class="title"><a href="http://sriramk.com/unsolicitedyahoo.html">Advice for Marissa Mayer from an ex-Yahoo</a><span class="comhead"> (sriramk.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4258458>451 points</span> by <a href="user?id=sriramk">sriramk</a> 1 day ago | <a href="item?id=4258458">254 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">4.</td><td><center><a id=up_4250581 href="vote?for=4250581&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4250581></span></center></td><td class="title"><a href="https://www.shortcutfoo.com/">Build muscle memory with your favorite editor</a><span class="comhead"> (shortcutfoo.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4250581>430 points</span> by <a href="user?id=swalberg">swalberg</a> 2 days ago | <a href="item?id=4250581">118 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">5.</td><td><center><a id=up_4255738 href="vote?for=4255738&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4255738></span></center></td><td class="title"><a href="http://www.jasondavies.com/primos/">Prime number patterns</a><span class="comhead"> (jasondavies.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4255738>344 points</span> by <a href="user?id=dmarinoc">dmarinoc</a> 1 day ago | <a href="item?id=4255738">98 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">6.</td><td><center><a id=up_4261608 href="vote?for=4261608&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4261608></span></center></td><td class="title"><a href="http://apod.nasa.gov/apod/ap120718.html">A Hole in Mars</a><span class="comhead"> (nasa.gov) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4261608>340 points</span> by <a href="user?id=jamesbritt">jamesbritt</a> 16 hours ago | <a href="item?id=4261608">100 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">7.</td><td><center><a id=up_4260228 href="vote?for=4260228&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4260228></span></center></td><td class="title"><a href="http://shop.wikileaks.org/donate#dccard">Wikileaks credit card donation is back</a><span class="comhead"> (wikileaks.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4260228>332 points</span> by <a href="user?id=Timshel">Timshel</a> 22 hours ago | <a href="item?id=4260228">68 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">8.</td><td><center><a id=up_4253427 href="vote?for=4253427&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4253427></span></center></td><td class="title"><a href="http://blogs.valvesoftware.com/linux/steamd-penguins/">Steam'd Penguins</a><span class="comhead"> (valvesoftware.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4253427>328 points</span> by <a href="user?id=mwilcox">mwilcox</a> 2 days ago | <a href="item?id=4253427">161 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">9.</td><td><center><a id=up_4259441 href="vote?for=4259441&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4259441></span></center></td><td class="title"><a href="http://www.networkworld.com/community/blog/hope-9-whistleblower-binney-says-nsa-has-dossiers-nearly-every-us-citizen">Whistleblower Binney says the NSA has dossiers on nearly every US citizen</a><span class="comhead"> (networkworld.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4259441>317 points</span> by <a href="user?id=gasull">gasull</a> 1 day ago | <a href="item?id=4259441">208 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">10.</td><td><center><a id=up_4261263 href="vote?for=4261263&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4261263></span></center></td><td class="title"><a href="https://github.com/jkbr/httpie/">HTTPie: A cURL-like tool for humans</a><span class="comhead"> (github.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4261263>273 points</span> by <a href="user?id=jkbr">jkbr</a> 17 hours ago | <a href="item?id=4261263">71 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">11.</td><td><center><a id=up_4253538 href="vote?for=4253538&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4253538></span></center></td><td class="title"><a href="http://lists.w3.org/Archives/Public/ietf-http-wg/2012JulSep/0172.html">Varnish author criticizing HTTP/2.0 proposals</a><span class="comhead"> (w3.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4253538>269 points</span> by <a href="user?id=cgbystrom">cgbystrom</a> 2 days ago | <a href="item?id=4253538">133 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">12.</td><td><center><a id=up_4262050 href="vote?for=4262050&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4262050></span></center></td><td class="title"><a href="https://www.fluidui.com/editor/live/">Fluid: A UI Prototyping Tool</a><span class="comhead"> (fluidui.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4262050>257 points</span> by <a href="user?id=hye">hye</a> 15 hours ago | <a href="item?id=4262050">74 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">13.</td><td><center><a id=up_4257108 href="vote?for=4257108&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4257108></span></center></td><td class="title"><a href="https://plus.google.com/114259566451209869276/posts/ZNrsoqPWRA2">Google+ grows 43% in June</a><span class="comhead"> (plus.google.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4257108>253 points</span> by <a href="user?id=vibrunazo">vibrunazo</a> 1 day ago | <a href="item?id=4257108">182 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">14.</td><td><center><a id=up_4254925 href="vote?for=4254925&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4254925></span></center></td><td class="title"><a href="http://skype-open-source.blogspot.ch/2012/05/microsoft-wiretapping-on-skype-now.html">Microsoft changes skype supernodes architecture to support wiretapping</a><span class="comhead"> (skype-open-source.blogspot.ch) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4254925>247 points</span> by <a href="user?id=smartial_arts">smartial_arts</a> 1 day ago | <a href="item?id=4254925">102 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">15.</td><td><center><a id=up_4258587 href="vote?for=4258587&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4258587></span></center></td><td class="title"><a href="http://www.noisemademedoit.com/miles-davis-blind-listening-test/">Miles Davis – blind listening test</a><span class="comhead"> (noisemademedoit.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4258587>240 points</span> by <a href="user?id=mactac">mactac</a> 1 day ago | <a href="item?id=4258587">64 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">16.</td><td><center><a id=up_4251471 href="vote?for=4251471&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4251471></span></center></td><td class="title"><a href="http://news.yahoo.com/stephen-covey-7-habits-author-dies-79-163742994--finance.html">Stephen Covey, "7 Habits" author, dies at 79</a><span class="comhead"> (yahoo.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4251471>224 points</span> by <a href="user?id=MarlonPro">MarlonPro</a> 2 days ago | <a href="item?id=4251471">86 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">17.</td><td><center><a id=up_4255649 href="vote?for=4255649&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4255649></span></center></td><td class="title"><a href="http://www.danielwillingham.com/1/post/2012/05/the-latest-on-intelligence.html">The Latest On Intelligence</a><span class="comhead"> (danielwillingham.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4255649>215 points</span> by <a href="user?id=danielford">danielford</a> 1 day ago | <a href="item?id=4255649">161 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">18.</td><td><center><a id=up_4250118 href="vote?for=4250118&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4250118></span></center></td><td class="title"><a href="item?id=4250118">Ask HN: I'm desperate to stay in Denmark. Anyone need a great web/ios dev?</a></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4250118>209 points</span> by <a href="user?id=throwawayCPH">throwawayCPH</a> 2 days ago | <a href="item?id=4250118">126 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">19.</td><td><center><a id=up_4255846 href="vote?for=4255846&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4255846></span></center></td><td class="title"><a href="http://dearmarissamayer.com/">Dear Marissa Mayer...please make Flickr awesome again</a><span class="comhead"> (dearmarissamayer.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4255846>209 points</span> by <a href="user?id=andrewudell">andrewudell</a> 1 day ago | <a href="item?id=4255846">77 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">20.</td><td><center><a id=up_4263437 href="vote?for=4263437&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4263437></span></center></td><td class="title"><a href="http://gist.io">Show HN: gist.io, blogless writing for hackers</a><span class="comhead"> (gist.io) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4263437>207 points</span> by <a href="user?id=idan">idan</a> 10 hours ago | <a href="item?id=4263437">37 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">21.</td><td><center><a id=up_4262242 href="vote?for=4262242&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4262242></span></center></td><td class="title"><a href="http://www.npr.org/blogs/krulwich/2012/07/16/156851175/five-men-agree-to-stand-directly-under-an-exploding-nuclear-bomb?ps=cprs">Five Men Agree To Stand Directly Under An Exploding Nuclear Bomb</a><span class="comhead"> (npr.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4262242>206 points</span> by <a href="user?id=iProject">iProject</a> 14 hours ago | <a href="item?id=4262242">97 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">22.</td><td><center><a id=up_4259602 href="vote?for=4259602&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4259602></span></center></td><td class="title"><a href="http://coderwall.com/p/xczkaq">GIT is the new FTP</a><span class="comhead"> (coderwall.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4259602>201 points</span> by <a href="user?id=bitsweet">bitsweet</a> 1 day ago | <a href="item?id=4259602">133 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">23.</td><td><center><a id=up_4254750 href="vote?for=4254750&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4254750></span></center></td><td class="title"><a href="http://blog.coursera.org/post/27394575240/12-new-universities-join-coursera">12 new universities join Coursera</a><span class="comhead"> (coursera.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4254750>199 points</span> by <a href="user?id=vibrunazo">vibrunazo</a> 2 days ago | <a href="item?id=4254750">100 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">24.</td><td><center><a id=up_4262192 href="vote?for=4262192&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4262192></span></center></td><td class="title"><a href="http://codepen.io/TimPietrusky/pen/Bsegb">CSS3 meets AMC's Breaking Bad</a><span class="comhead"> (codepen.io) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4262192>195 points</span> by <a href="user?id=benblodgett">benblodgett</a> 14 hours ago | <a href="item?id=4262192">48 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">25.</td><td><center><a id=up_4251986 href="vote?for=4251986&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4251986></span></center></td><td class="title"><a href="http://blog.grubwithus.com/post/27339212070/making-friends-over-30-with-grubwithus">Making Friends Over 30 with Grubwithus</a><span class="comhead"> (grubwithus.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4251986>177 points</span> by <a href="user?id=eddylu">eddylu</a> 2 days ago | <a href="item?id=4251986">71 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">26.</td><td><center><a id=up_4257498 href="vote?for=4257498&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4257498></span></center></td><td class="title"><a href="https://www.blurity.com/blog/2012/07/17/how-i-converted-a-software-thief-into-a-customer/">How I converted a software thief into a customer</a><span class="comhead"> (blurity.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4257498>170 points</span> by <a href="user?id=tghw">tghw</a> 1 day ago | <a href="item?id=4257498">77 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">27.</td><td><center><a id=up_4255638 href="vote?for=4255638&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4255638></span></center></td><td class="title"><a href="http://my.opera.com/hallvors/blog/2012/07/17/twitter-crashes-itself-with-commas?1">Twitter crashes itself with commas</a><span class="comhead"> (opera.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4255638>165 points</span> by <a href="user?id=MatthewPhillips">MatthewPhillips</a> 1 day ago | <a href="item?id=4255638">111 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">28.</td><td><center><a id=up_4260447 href="vote?for=4260447&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4260447></span></center></td><td class="title"><a href="http://www.nytimes.com/2012/07/18/world/europe/in-denmark-pedaling-to-work-on-a-superhighway.html?pagewanted=all">In Denmark, Pedaling to Work on a Superhighway</a><span class="comhead"> (nytimes.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4260447>164 points</span> by <a href="user?id=mkramer05">mkramer05</a> 20 hours ago | <a href="item?id=4260447">127 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">29.</td><td><center><a id=up_4261495 href="vote?for=4261495&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4261495></span></center></td><td class="title"><a href="http://techcrunch.com/2012/07/18/dell-gives-linux-laptops-another-chance/">Ubuntu is coming back to Dell Laptops</a><span class="comhead"> (techcrunch.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4261495>159 points</span> by <a href="user?id=bkerensa">bkerensa</a> 16 hours ago | <a href="item?id=4261495">122 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">30.</td><td><center><a id=up_4250044 href="vote?for=4250044&dir=up&whence=%62%65%73%74"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4250044></span></center></td><td class="title"><a href="http://www.troyhunt.com/2012/07/heres-why-we-keep-getting-hacked-clear.html">Here’s why we keep getting hacked – clear and present Billabong failures</a><span class="comhead"> (troyhunt.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4250044>153 points</span> by <a href="user?id=troyhunt">troyhunt</a> 2 days ago | <a href="item?id=4250044">43 comments</a></td></tr><tr style="height:5px"></tr><tr style="height:10px"></tr><tr><td colspan=2></td><td class="title"><a href="/x?fnid=EUsmAwfGDr" rel="nofollow">More</a></td></tr></table></td></tr><tr><td><img src="http://ycombinator.com/images/s.gif" height=10 width=0><table width="100%" cellspacing=0 cellpadding=1><tr><td bgcolor=#ff6600></td></tr></table><br>
22
+ <center><span class="yclinks"><a href="lists">Lists</a> | <a href="rss">RSS</a> | <a href="http://ycombinator.com/bookmarklet.html">Bookmarklet</a> | <a href="http://ycombinator.com/newsguidelines.html">Guidelines</a> | <a href="http://ycombinator.com/newsfaq.html">FAQ</a> | <a href="http://ycombinator.com/newsnews.html">News News</a> | <a href="item?id=363">Feature Requests</a> | <a href="http://ycombinator.com">Y Combinator</a> | <a href="http://ycombinator.com/apply.html">Apply</a> | <a href="http://ycombinator.com/lib.html">Library</a></span><br><br>
23
+ <form method=get action="http://www.hnsearch.com/search#request/all">Search: <input type=text name="q" value="" size=17></form><br>
24
+ </center></td></tr></table></center></body></html>
@@ -18,7 +18,7 @@ function vote(node) {
18
18
  ping.src = node.href;
19
19
 
20
20
  return false; // cancel browser nav
21
- } </script><title>Hacker News</title></head><body><center><table border=0 cellpadding=0 cellspacing=0 width="85%" bgcolor=#f6f6ef><tr><td bgcolor=#ff6600><table border=0 cellpadding=0 cellspacing=0 width="100%" style="padding:2px"><tr><td style="width:18px;padding-right:4px"><a href="http://ycombinator.com"><img src="http://ycombinator.com/images/y18.gif" width=18 height=18 style="border:1px #ffffff solid;"></img></a></td><td style="line-height:12pt; height:10px;"><span class="pagetop"><b><a href="news">Hacker News</a></b><img src="http://ycombinator.com/images/s.gif" height=1 width=10><a href="newest">new</a> | <a href="newcomments">comments</a> | <a href="ask">ask</a> | <a href="jobs">jobs</a> | <a href="submit">submit</a></span></td><td style="text-align:right;padding-right:4px;"><span class="pagetop"><a href="newslogin?whence=%6e%65%77%73">login</a></span></td></tr></table></td></tr><tr style="height:10px"></tr><tr><td><table border=0 cellpadding=0 cellspacing=0><tr><td align=right valign=top class="title">1.</td><td><center><a id=up_4105485 href="vote?for=4105485&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105485></span></center></td><td class="title"><a href="http://www.chronicle.com/article/Why-Privacy-Matters-Even-if/127461/">Why Privacy Matters Even if You Have 'Nothing to Hide'</a><span class="comhead"> (chronicle.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105485>77 points</span> by <a href="user?id=mtgx">mtgx</a> 2 hours ago | <a href="item?id=4105485">28 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">2.</td><td><center><a id=up_4105694 href="vote?for=4105694&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105694></span></center></td><td class="title"><a href="http://trac.webkit.org/changeset/120154">CSS Variables land in WebKit</a><span class="comhead"> (webkit.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105694>40 points</span> by <a href="user?id=cleverjake">cleverjake</a> 1 hour ago | <a href="item?id=4105694">14 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">3.</td><td><center><a id=up_4105587 href="vote?for=4105587&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105587></span></center></td><td class="title"><a href="http://www.bbc.co.uk/news/technology-18423502">Linux creator Linus Torvalds shares Millennium Technology Prize</a><span class="comhead"> (bbc.co.uk) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105587>41 points</span> by <a href="user?id=anons2011">anons2011</a> 1 hour ago | <a href="item?id=4105587">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">4.</td><td></td><td class="title"><a href="http://www.olark.com/jobs" rel="nofollow">Olark(YC) is hiring devops in Ann Arbor, MI. Own our automation.</a><span class="comhead"> (olark.com) </span></td></tr><tr><td colspan=2></td><td class="subtext">2 minutes ago</td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">5.</td><td><center><a id=up_4105397 href="vote?for=4105397&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105397></span></center></td><td class="title"><a href="http://www.wired.com/geekdad/2012/06/dragonbox/all/">DragonBox: Algebra beats Angry birds</a><span class="comhead"> (wired.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105397>58 points</span> by <a href="user?id=aymeric">aymeric</a> 2 hours ago | <a href="item?id=4105397">8 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">6.</td><td><center><a id=up_4105891 href="vote?for=4105891&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105891></span></center></td><td class="title"><a href="http://blog.readability.com/2012/06/announcement/">Readability : An Important Announcement</a><span class="comhead"> (readability.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105891>17 points</span> by <a href="user?id=bjonathan">bjonathan</a> 37 minutes ago | <a href="item?id=4105891">3 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">7.</td><td><center><a id=up_4105768 href="vote?for=4105768&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105768></span></center></td><td class="title"><a href="http://blog.sanctum.geek.nz/series/unix-as-ide/?">Using unix as your IDE</a><span class="comhead"> (sanctum.geek.nz) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105768>22 points</span> by <a href="user?id=mgrouchy">mgrouchy</a> 1 hour ago | <a href="item?id=4105768">2 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">8.</td><td><center><a id=up_4105435 href="vote?for=4105435&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105435></span></center></td><td class="title"><a href="http://blog.disqus.com/post/25017922977/the-new-disqus-2012">The new Disqus 2012: Elevating the Discussion</a><span class="comhead"> (disqus.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105435>29 points</span> by <a href="user?id=dctrwatson">dctrwatson</a> 2 hours ago | <a href="item?id=4105435">17 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">9.</td><td><center><a id=up_4105302 href="vote?for=4105302&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105302></span></center></td><td class="title"><a href="http://calnewport.com/blog/2012/06/12/what-you-know-matters-more-than-what-you-do/">What you know matters more than what you do</a><span class="comhead"> (calnewport.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105302>50 points</span> by <a href="user?id=ridruejo">ridruejo</a> 3 hours ago | <a href="item?id=4105302">8 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">10.</td><td><center><a id=up_4105383 href="vote?for=4105383&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105383></span></center></td><td class="title"><a href="http://news.cnet.com/8301-1023_3-57450838-93/here-comes-the-greatest-internet-landgrab-in-history/?tag=postrtcol;posts">Here comes the greatest Internet landgrab in history</a><span class="comhead"> (cnet.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105383>32 points</span> by <a href="user?id=iand">iand</a> 2 hours ago | <a href="item?id=4105383">15 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">11.</td><td><center><a id=up_4103344 href="vote?for=4103344&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4103344></span></center></td><td class="title"><a href="http://niederfamily.blogspot.be/2012/06/silencing-of-maya.html">The Silencing of Maya</a><span class="comhead"> (niederfamily.blogspot.be) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4103344>563 points</span> by <a href="user?id=kngl">kngl</a> 15 hours ago | <a href="item?id=4103344">225 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">12.</td><td><center><a id=up_4105446 href="vote?for=4105446&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105446></span></center></td><td class="title"><a href="http://newgtlds.icann.org/en/program-status/application-results/strings-1200utc-13jun12-en">New gTLD Applied-For Strings</a><span class="comhead"> (icann.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105446>77 points</span> by <a href="user?id=grose">grose</a> 2 hours ago | <a href="item?id=4105446">102 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">13.</td><td><center><a id=up_4104486 href="vote?for=4104486&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4104486></span></center></td><td class="title"><a href="http://www.bbc.com/news/technology-18419231">Linus Torvalds: Linux succeed thanks to selfishness and trust</a><span class="comhead"> (bbc.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4104486>130 points</span> by <a href="user?id=sparknlaunch">sparknlaunch</a> 8 hours ago | <a href="item?id=4104486">31 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">14.</td><td><center><a id=up_4104958 href="vote?for=4104958&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4104958></span></center></td><td class="title"><a href="http://www.mode7games.com/blog/2012/06/12/how-to-be-an-indie-game-developer/">How to Be an Indie Game Developer</a><span class="comhead"> (mode7games.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4104958>49 points</span> by <a href="user?id=hk__2">hk__2</a> 5 hours ago | <a href="item?id=4104958">3 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">15.</td><td><center><a id=up_4104402 href="vote?for=4104402&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4104402></span></center></td><td class="title"><a href="http://swaaanson.tumblr.com/post/25005539624/kindle-notes-inside-apple-by-adam-lashinsky">Lessons from Inside Apple: Why Focus is Horrifyingly Scary</a><span class="comhead"> (swaaanson.tumblr.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4104402>112 points</span> by <a href="user?id=swany4">swany4</a> 9 hours ago | <a href="item?id=4104402">37 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">16.</td><td><center><a id=up_4101992 href="vote?for=4101992&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4101992></span></center></td><td class="title"><a href="http://blog.hooktheory.com/2012/06/06/i-analyzed-the-chords-of-1300-popular-songs-for-patterns-this-is-what-i-found/">I analyzed the chords to 1300 popular songs for patterns. This is what I found.</a><span class="comhead"> (hooktheory.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4101992>428 points</span> by <a href="user?id=davec">davec</a> 19 hours ago | <a href="item?id=4101992">177 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">17.</td><td><center><a id=up_4104259 href="vote?for=4104259&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4104259></span></center></td><td class="title"><a href="http://seclists.org/oss-sec/2012/q2/504">Ruby on Rails SQL Injection</a><span class="comhead"> (seclists.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4104259>130 points</span> by <a href="user?id=lelf">lelf</a> 10 hours ago | <a href="item?id=4104259">24 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">18.</td><td><center><a id=up_4105906 href="vote?for=4105906&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105906></span></center></td><td class="title"><a href="http://hsafoundation.com/" rel="nofollow">HSA Foundation</a><span class="comhead"> (hsafoundation.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105906>4 points</span> by <a href="user?id=protomyth">protomyth</a> 35 minutes ago | <a href="item?id=4105906">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">19.</td><td><center><a id=up_4105504 href="vote?for=4105504&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105504></span></center></td><td class="title"><a href="https://speakerdeck.com/u/asotirov/p/analyzing-the-md5-collision-in-flame">Analysis of the MD5 collision attack used by the Flame malware</a><span class="comhead"> (speakerdeck.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105504>13 points</span> by <a href="user?id=alter8">alter8</a> 1 hour ago | <a href="item?id=4105504">1 comment</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">20.</td><td><center><a id=up_4105325 href="vote?for=4105325&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105325></span></center></td><td class="title"><a href="http://www.ichilton.co.uk/blog/apple/new-apple-macbook-pro-ram-is-soldered-to-the-motherboard-513.html">New Apple Macbook Pro RAM is soldered to the motherboard | Ian Chilton</a><span class="comhead"> (ichilton.co.uk) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105325>97 points</span> by <a href="user?id=ichilton">ichilton</a> 3 hours ago | <a href="item?id=4105325">176 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">21.</td><td><center><a id=up_4102248 href="vote?for=4102248&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4102248></span></center></td><td class="title"><a href="http://www.newyorker.com/online/blogs/frontal-cortex/2012/06/daniel-kahneman-bias-studies.html">Why Smart People Are Stupid</a><span class="comhead"> (newyorker.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4102248>266 points</span> by <a href="user?id=mshafrir">mshafrir</a> 19 hours ago | <a href="item?id=4102248">205 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">22.</td><td><center><a id=up_4105310 href="vote?for=4105310&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105310></span></center></td><td class="title"><a href="http://www.ia.ucsb.edu/pa/display.aspx?pkey=2748">New Evidence Supports Theory of Extraterrestrial Impact</a><span class="comhead"> (ucsb.edu) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105310>16 points</span> by <a href="user?id=J3L2404">J3L2404</a> 3 hours ago | <a href="item?id=4105310">3 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">23.</td><td><center><a id=up_4100032 href="vote?for=4100032&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4100032></span></center></td><td class="title"><a href="http://www.reddit.com/r/gaming/comments/uxpil/ive_been_playing_the_same_game_of_civilization_ii/">Civ II game a decade old</a><span class="comhead"> (reddit.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4100032>448 points</span> by <a href="user?id=jchrisa">jchrisa</a> 1 day ago | <a href="item?id=4100032">122 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">24.</td><td><center><a id=up_4104069 href="vote?for=4104069&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4104069></span></center></td><td class="title"><a href="http://entagen.github.com/jenkins-build-per-branch/">Use Jenkins "Build Per Branch" for Git Feature Branch Development</a><span class="comhead"> (github.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4104069>66 points</span> by <a href="user?id=tednaleid">tednaleid</a> 11 hours ago | <a href="item?id=4104069">21 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">25.</td><td><center><a id=up_4105317 href="vote?for=4105317&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4105317></span></center></td><td class="title"><a href="https://github.com/ericmoritz/wsdemo/blob/master/results.md">WebSocket benchmarks</a><span class="comhead"> (github.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4105317>8 points</span> by <a href="user?id=gmcabrita">gmcabrita</a> 3 hours ago | <a href="item?id=4105317">1 comment</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">26.</td><td><center><a id=up_4104541 href="vote?for=4104541&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4104541></span></center></td><td class="title"><a href="http://www.core77.com/blog/technology/mit_researchers_produce_micro-light_that_outputs_more_energy_than_it_takes_in_22644.asp">MIT Researchers Produce Micro-Light that Outputs More Power Than Applied</a><span class="comhead"> (core77.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4104541>41 points</span> by <a href="user?id=jnand">jnand</a> 8 hours ago | <a href="item?id=4104541">27 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">27.</td><td><center><a id=up_4103921 href="vote?for=4103921&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4103921></span></center></td><td class="title"><a href="http://www.1024cores.net/home/lock-free-algorithms">Lockfree algorithms</a><span class="comhead"> (1024cores.net) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4103921>73 points</span> by <a href="user?id=azernik">azernik</a> 12 hours ago | <a href="item?id=4103921">11 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">28.</td><td><center><a id=up_4104510 href="vote?for=4104510&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4104510></span></center></td><td class="title"><a href="http://www.romymisra.com/growth-hacker-the-new-in-thing/">Growth Hackers - the new "in" thing</a><span class="comhead"> (romymisra.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4104510>34 points</span> by <a href="user?id=romymisra">romymisra</a> 8 hours ago | <a href="item?id=4104510">16 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">29.</td><td><center><a id=up_4104262 href="vote?for=4104262&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4104262></span></center></td><td class="title"><a href="http://venturebeat.com/2012/06/12/thiel-fellowship-2012/">Peter Thiel gives new class of students $100K to forgo college</a><span class="comhead"> (venturebeat.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4104262>52 points</span> by <a href="user?id=jackyyappp">jackyyappp</a> 10 hours ago | <a href="item?id=4104262">45 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">30.</td><td><center><a id=up_4101355 href="vote?for=4101355&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4101355></span></center></td><td class="title"><a href="http://alanhollis.com/first-month-freelancing/">My first month freelancing</a><span class="comhead"> (alanhollis.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4101355>178 points</span> by <a href="user?id=Alan01252">Alan01252</a> 21 hours ago | <a href="item?id=4101355">107 comments</a></td></tr><tr style="height:5px"></tr><tr style="height:10px"></tr><tr><td colspan=2></td><td class="title"><a href="news2">More</a></td></tr></table></td></tr><tr><td><img src="http://ycombinator.com/images/s.gif" height=10 width=0><table width="100%" cellspacing=0 cellpadding=1><tr><td bgcolor=#ff6600></td></tr></table><br>
21
+ } </script><title>Hacker News</title></head><body><center><table border=0 cellpadding=0 cellspacing=0 width="85%" bgcolor=#f6f6ef><tr><td bgcolor=#ff6600><table border=0 cellpadding=0 cellspacing=0 width="100%" style="padding:2px"><tr><td style="width:18px;padding-right:4px"><a href="http://ycombinator.com"><img src="http://ycombinator.com/images/y18.gif" width=18 height=18 style="border:1px #ffffff solid;"></img></a></td><td style="line-height:12pt; height:10px;"><span class="pagetop"><b><a href="news">Hacker News</a></b><img src="http://ycombinator.com/images/s.gif" height=1 width=10><a href="newest">new</a> | <a href="newcomments">comments</a> | <a href="ask">ask</a> | <a href="jobs">jobs</a> | <a href="submit">submit</a></span></td><td style="text-align:right;padding-right:4px;"><span class="pagetop"><a href="newslogin?whence=%6e%65%77%73">login</a></span></td></tr></table></td></tr><tr style="height:10px"></tr><tr><td><table border=0 cellpadding=0 cellspacing=0><tr><td align=right valign=top class="title">1.</td><td><center><a id=up_4122937 href="vote?for=4122937&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122937></span></center></td><td class="title"><a href="http://mocko.org.uk/b/2012/06/17/how-i-store-my-1s-and-0s-zfs-bargain-hp-microserver-joy/">How I Store My 1's and 0′s: ZFS + Bargain HP Microserver = JOY</a><span class="comhead"> (mocko.org.uk) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122937>90 points</span> by <a href="user?id=mocko">mocko</a> 3 hours ago | <a href="item?id=4122937">43 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">2.</td><td><center><a id=up_4122783 href="vote?for=4122783&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122783></span></center></td><td class="title"><a href="https://tools.ietf.org/html/draft-diao-aip-dns-00">Chinese RFC proposes separate, independent, national internets and DNS roots</a><span class="comhead"> (ietf.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122783>71 points</span> by <a href="user?id=gioele">gioele</a> 5 hours ago | <a href="item?id=4122783">44 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">3.</td><td><center><a id=up_4122924 href="vote?for=4122924&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122924></span></center></td><td class="title"><a href="http://jeanphix.me/Ghost.py">Ghost.py - a webkit web client written in python.</a><span class="comhead"> (jeanphix.me) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122924>40 points</span> by <a href="user?id=aeurielesn">aeurielesn</a> 3 hours ago | <a href="item?id=4122924">3 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">4.</td><td><center><a id=up_4123082 href="vote?for=4123082&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4123082></span></center></td><td class="title"><a href="https://air.mozilla.org/product-design-at-mozilla/">Product Design at Mozilla: three new projects from the design strategy team</a><span class="comhead"> (mozilla.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4123082>16 points</span> by <a href="user?id=mbrubeck">mbrubeck</a> 2 hours ago | <a href="item?id=4123082">6 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">5.</td><td><center><a id=up_4122991 href="vote?for=4122991&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122991></span></center></td><td class="title"><a href="http://divisionbyzero.net/article/2012/06/17/central-logging-with-open-source-software.html">Central Logging with Open Source Software</a><span class="comhead"> (divisionbyzero.net) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122991>23 points</span> by <a href="user?id=reyjrar">reyjrar</a> 3 hours ago | <a href="item?id=4122991">3 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">6.</td><td><center><a id=up_4122883 href="vote?for=4122883&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122883></span></center></td><td class="title"><a href="http://gigaom.com/2012/06/15/the-hard-truth-newspaper-monopolies-are-gone-forever/">The hard truth: Newspaper monopolies are gone forever</a><span class="comhead"> (gigaom.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122883>35 points</span> by <a href="user?id=jackyyappp">jackyyappp</a> 4 hours ago | <a href="item?id=4122883">7 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">7.</td><td><center><a id=up_4122099 href="vote?for=4122099&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122099></span></center></td><td class="title"><a href="http://www.mdotstrange.com/2012/06/youtube-claims-i-dont-own-my-own-film.html">Creator posts original film to YouTube, BMF claims copyright</a><span class="comhead"> (mdotstrange.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122099>255 points</span> by <a href="user?id=angrycoder">angrycoder</a> 14 hours ago | <a href="item?id=4122099">67 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">8.</td><td><center><a id=up_4122794 href="vote?for=4122794&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122794></span></center></td><td class="title"><a href="item?id=4122794">Ask HN: How to setup a company in U.S. without being there?</a></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122794>110 points</span> by <a href="user?id=ahmedaly">ahmedaly</a> 5 hours ago | <a href="item?id=4122794">30 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">9.</td><td><center><a id=up_4123156 href="vote?for=4123156&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4123156></span></center></td><td class="title"><a href="http://boingboing.net/2012/06/16/market-for-zero-day-vulnerabil.html">Market for zero-day vulnerabilities incentivizes sabotage</a><span class="comhead"> (boingboing.net) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4123156>7 points</span> by <a href="user?id=aurelianito">aurelianito</a> 1 hour ago | <a href="item?id=4123156">5 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">10.</td><td><center><a id=up_4121698 href="vote?for=4121698&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4121698></span></center></td><td class="title"><a href="http://youtu.be/MShbP3OpASA?t=49m45s">Aalto Talk with Linus Torvalds </a><span class="comhead"> (youtu.be) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4121698>322 points</span> by <a href="user?id=flabbergasted">flabbergasted</a> 18 hours ago | <a href="item?id=4121698">113 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">11.</td><td><center><a id=up_4122907 href="vote?for=4122907&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122907></span></center></td><td class="title"><a href="http://www.incgamers.com/2012/06/south-korea-bans-virtual-item-trading-diablo-3-auction-house-dead/">South Korea bans virtual item trading & bots</a><span class="comhead"> (incgamers.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122907>18 points</span> by <a href="user?id=spdy">spdy</a> 3 hours ago | <a href="item?id=4122907">10 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">12.</td><td><center><a id=up_4122000 href="vote?for=4122000&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122000></span></center></td><td class="title"><a href="http://blog.reemer.com/how-we-reduced-our-cancellation-rate-by-87-5">How we reduced our cancellation rate by 87.5%</a><span class="comhead"> (reemer.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122000>202 points</span> by <a href="user?id=kareemm">kareemm</a> 15 hours ago | <a href="item?id=4122000">53 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">13.</td><td><center><a id=up_4122724 href="vote?for=4122724&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122724></span></center></td><td class="title"><a href="http://gorillas.heroku.com/">QBasic's Gorillas in coffescript</a><span class="comhead"> (heroku.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122724>39 points</span> by <a href="user?id=despo">despo</a> 5 hours ago | <a href="item?id=4122724">16 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">14.</td><td><center><a id=up_4122412 href="vote?for=4122412&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122412></span></center></td><td class="title"><a href="https://www.docracy.com/doc/showalluserdocs?userId=10881">Orrick's Legal docs for startups</a><span class="comhead"> (docracy.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122412>93 points</span> by <a href="user?id=tomazstolfa">tomazstolfa</a> 10 hours ago | <a href="item?id=4122412">13 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">15.</td><td><center><a id=up_4123097 href="vote?for=4123097&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4123097></span></center></td><td class="title"><a href="http://www-cs-students.stanford.edu/~cale/cs201/apartheid.comp.html">The Use of Computers to Support Oppression</a><span class="comhead"> (stanford.edu) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4123097>8 points</span> by <a href="user?id=dimitar">dimitar</a> 2 hours ago | <a href="item?id=4123097">2 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">16.</td><td><center><a id=up_4122756 href="vote?for=4122756&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122756></span></center></td><td class="title"><a href="http://www.sciencedaily.com/releases/2012/06/120615114057.htm">Knowledge of fractions and long division predicts long-term math success</a><span class="comhead"> (sciencedaily.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122756>26 points</span> by <a href="user?id=ColinWright">ColinWright</a> 5 hours ago | <a href="item?id=4122756">10 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">17.</td><td><center><a id=up_4123142 href="vote?for=4123142&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4123142></span></center></td><td class="title"><a href="https://github.com/mgronhol/pouring-rain">Show HN: Framework for exponentially faster distributed data transfer</a><span class="comhead"> (github.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4123142>6 points</span> by <a href="user?id=mgronhol">mgronhol</a> 1 hour ago | <a href="item?id=4123142">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">18.</td><td><center><a id=up_4123166 href="vote?for=4123166&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4123166></span></center></td><td class="title"><a href="http://mobile.theverge.com/2012/6/15/3076519/vizio-reboot-pc-american-hdtv-success-do-it-again">Vizio reboots the PC: a quiet American success story</a><span class="comhead"> (theverge.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4123166>37 points</span> by <a href="user?id=ditados">ditados</a> 1 hour ago | <a href="item?id=4123166">3 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">19.</td><td><center><a id=up_4123084 href="vote?for=4123084&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4123084></span></center></td><td class="title"><a href="http://www.openculture.com/2012/06/rare_1960s_audio_stanley_kubricks_interview_with_ithe_new_yorkeri.html">Stanley Kubrick’s Interview with The New Yorker </a><span class="comhead"> (openculture.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4123084>12 points</span> by <a href="user?id=J3L2404">J3L2404</a> 2 hours ago | <a href="item?id=4123084">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">20.</td><td><center><a id=up_4121859 href="vote?for=4121859&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4121859></span></center></td><td class="title"><a href="http://www.empiricalzeal.com/2012/06/11/the-crayola-fication-of-the-world-how-we-gave-colors-names-and-it-messed-with-our-brains-part-ii/">How we gave colors names and it messed with our brains (part II)</a><span class="comhead"> (empiricalzeal.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4121859>146 points</span> by <a href="user?id=gruseom">gruseom</a> 17 hours ago | <a href="item?id=4121859">47 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">21.</td><td><center><a id=up_4122455 href="vote?for=4122455&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122455></span></center></td><td class="title"><a href="http://debuggerstepthrough.blogspot.co.il/2012/06/having-fun-web-crawling-with-phantomjs.html">Web crawling and downloading ebooks with phantomJS</a><span class="comhead"> (debuggerstepthrough.blogspot.co.il) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122455>43 points</span> by <a href="user?id=gillyb">gillyb</a> 9 hours ago | <a href="item?id=4122455">19 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">22.</td><td><center><a id=up_4122654 href="vote?for=4122654&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122654></span></center></td><td class="title"><a href="http://www.techweekeurope.co.uk/news/illegal-gps-jammers-are-widespread-study-finds-62443">Illegal GPS Jammers Are Widespread, Study Finds</a><span class="comhead"> (techweekeurope.co.uk) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122654>36 points</span> by <a href="user?id=baha_man">baha_man</a> 6 hours ago | <a href="item?id=4122654">34 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">23.</td><td><center><a id=up_4122547 href="vote?for=4122547&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122547></span></center></td><td class="title"><a href="http://challenge.docopt.org/">Challenge: Implement CLI interface like that?</a><span class="comhead"> (docopt.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122547>42 points</span> by <a href="user?id=halst">halst</a> 8 hours ago | <a href="item?id=4122547">37 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">24.</td><td><center><a id=up_4122641 href="vote?for=4122641&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122641></span></center></td><td class="title"><a href="http://jayfuerstenberg.com/devblog/judging-an-app-by-its-cover-techniques-and-tools-for-creating-and-testing-a-professional-app-icon">Judging an App by its Cover - Techniques for Creating & Testing a Pro App Icon</a><span class="comhead"> (jayfuerstenberg.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122641>20 points</span> by <a href="user?id=jayfuerstenberg">jayfuerstenberg</a> 7 hours ago | <a href="item?id=4122641">11 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">25.</td><td><center><a id=up_4122871 href="vote?for=4122871&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122871></span></center></td><td class="title"><a href="http://whilefalse.blogspot.com/2012/06/corporate-culture-lesson-in-unintended.html">Corporate culture: A lesson in unintended consequences</a><span class="comhead"> (whilefalse.blogspot.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122871>9 points</span> by <a href="user?id=Adrock">Adrock</a> 4 hours ago | <a href="item?id=4122871">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">26.</td><td><center><a id=up_4122966 href="vote?for=4122966&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4122966></span></center></td><td class="title"><a href="http://www.reuters.com/article/2012/06/17/us-media-tech-summit-cyber-strikeback-idUSBRE85G07S20120617">Hacked companies fight back with controversial "strike-back" steps</a><span class="comhead"> (reuters.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4122966>6 points</span> by <a href="user?id=iProject">iProject</a> 3 hours ago | <a href="item?id=4122966">1 comment</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">27.</td><td><center><a id=up_4121292 href="vote?for=4121292&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4121292></span></center></td><td class="title"><a href="http://www.reddit.com/r/IAmA/comments/v59z3/iam_sebastian_thrun_stanford_professor_google_x/">Sebastian Thrun currently doing an AMA on reddit</a><span class="comhead"> (reddit.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4121292>162 points</span> by <a href="user?id=ih">ih</a> 22 hours ago | <a href="item?id=4121292">11 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">28.</td><td><center><a id=up_4120837 href="vote?for=4120837&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4120837></span></center></td><td class="title"><a href="http://www.forbes.com/sites/andygreenberg/2012/03/23/shopping-for-zero-days-an-price-list-for-hackers-secret-software-exploits/">Zero-day Exploit Price List</a><span class="comhead"> (forbes.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4120837>195 points</span> by <a href="user?id=mef">mef</a> 1 day ago | <a href="item?id=4120837">109 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">29.</td><td><center><a id=up_4121543 href="vote?for=4121543&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4121543></span></center></td><td class="title"><a href="http://blog.linode.com/2012/06/16/linode-birthday-giveaway/">Linode Birthday Giveaway</a><span class="comhead"> (linode.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4121543>82 points</span> by <a href="user?id=SeanOC">SeanOC</a> 20 hours ago | <a href="item?id=4121543">29 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">30.</td><td><center><a id=up_4121145 href="vote?for=4121145&dir=up&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_4121145></span></center></td><td class="title"><a href="http://blog.archive.org/2012/06/16/internet-archive-sues-to-stop-new-washington-state-law/">Internet Archive Sues to Stop New Washington State Law </a><span class="comhead"> (archive.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_4121145>102 points</span> by <a href="user?id=cleverjake">cleverjake</a> 23 hours ago | <a href="item?id=4121145">15 comments</a></td></tr><tr style="height:5px"></tr><tr style="height:10px"></tr><tr><td colspan=2></td><td class="title"><a href="news2">More</a></td></tr></table></td></tr><tr><td><img src="http://ycombinator.com/images/s.gif" height=10 width=0><table width="100%" cellspacing=0 cellpadding=1><tr><td bgcolor=#ff6600></td></tr></table><br>
22
22
  <center><span class="yclinks"><a href="lists">Lists</a> | <a href="rss">RSS</a> | <a href="http://ycombinator.com/bookmarklet.html">Bookmarklet</a> | <a href="http://ycombinator.com/newsguidelines.html">Guidelines</a> | <a href="http://ycombinator.com/newsfaq.html">FAQ</a> | <a href="http://ycombinator.com/newsnews.html">News News</a> | <a href="item?id=363">Feature Requests</a> | <a href="http://ycombinator.com">Y Combinator</a> | <a href="http://ycombinator.com/apply.html">Apply</a> | <a href="http://ycombinator.com/lib.html">Library</a></span><br><br>
23
23
  <form method=get action="http://www.hnsearch.com/search#request/all">Search: <input type=text name="q" value="" size=17></form><br>
24
24
  </center></td></tr></table></center></body></html>
@@ -6,6 +6,14 @@ module HackerNews
6
6
  let(:engine) { subject }
7
7
  it { should respond_to :homepage }
8
8
 
9
+ it "should fetch homepage items" do
10
+ engine.homepage.count.should == 30
11
+ end
12
+
13
+ it "should fetch best items" do
14
+ engine.best.count.should == 30
15
+ end
16
+
9
17
  it "should fetch newest items" do
10
18
  engine.newest.count.should == 30
11
19
  end
@@ -2,6 +2,7 @@ require "spec_helper"
2
2
 
3
3
  FakeWeb.register_uri :get, 'http://news.ycombinator.com/', :body => fixture('home.html')
4
4
  FakeWeb.register_uri :get, 'http://news.ycombinator.com/newest', :body => fixture('newest.html')
5
+ FakeWeb.register_uri :get, 'http://news.ycombinator.com/best', :body => fixture('best.html')
5
6
 
6
7
  module HackerNews
7
8
  describe EntryParser do
@@ -12,18 +13,41 @@ module HackerNews
12
13
  context "homepage" do
13
14
  it "should parse them right" do
14
15
  entries = parser.homepage
15
- entries.count.should == 29 # 4th should fail since it don't have id
16
+ entries.count.should <= 30
16
17
  entries.first.should be_an Entry
17
18
  entries.each do |entry|
18
19
  entry.id.should > 4000000
19
- entry.username.should =~ /\w+/ unless entry.username.nil?
20
- entry.link.should =~ /^http/ unless entry.site.nil?
20
+ entry.username.should =~ /\w+/
21
+ entry.link.should =~ /^http/
21
22
  entry.title.should_not be_empty
22
23
  entry.num_comments.should >= 0
23
24
  entry.site.should_not =~ /^http/
24
25
  entry.points.should_not == 0
25
26
 
26
- entry.submitted_at.should < Time.now unless entry.time_string.nil?
27
+ entry.submitted_at.should < Time.now
28
+ end
29
+ end
30
+ end
31
+
32
+ context "best" do
33
+ it "should parse them right" do
34
+ entries = parser.newest
35
+ entries.count.should == 30
36
+ entries.first.should be_an Entry
37
+ entries.each do |entry|
38
+ entry.id.should > 4000000
39
+ entry.username.should =~ /\w+/
40
+ entry.link.should =~ /^http/
41
+
42
+ if entry.site.nil? # ASK HN
43
+ entry.id.should == entry.link.match(/^http:\/\/news\.ycombinator\.com\/item\?id=(\d+)$/)[1].to_i
44
+ end
45
+
46
+ entry.title.should_not be_empty
47
+ entry.num_comments.should >= 0
48
+ entry.site.should_not =~ /^http/
49
+ entry.points.should >= 0
50
+ entry.submitted_at.should < Time.now
27
51
  end
28
52
  end
29
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-13 00:00:00.000000000 Z
12
+ date: 2012-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70327185077080 !ruby/object:Gem::Requirement
16
+ requirement: &70300323557400 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70327185077080
24
+ version_requirements: *70300323557400
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70327185076660 !ruby/object:Gem::Requirement
27
+ requirement: &70300323556980 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70327185076660
35
+ version_requirements: *70300323556980
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: simplecov
38
- requirement: &70327185076240 !ruby/object:Gem::Requirement
38
+ requirement: &70300323556560 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70327185076240
46
+ version_requirements: *70300323556560
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: fakeweb
49
- requirement: &70327185075820 !ruby/object:Gem::Requirement
49
+ requirement: &70300323556140 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70327185075820
57
+ version_requirements: *70300323556140
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: nokogiri
60
- requirement: &70327185075400 !ruby/object:Gem::Requirement
60
+ requirement: &70300323555720 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70327185075400
68
+ version_requirements: *70300323555720
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: chronic
71
- requirement: &70327185074980 !ruby/object:Gem::Requirement
71
+ requirement: &70300323555300 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70327185074980
79
+ version_requirements: *70300323555300
80
80
  description: A tiny gem to fetch Hacker News entries
81
81
  email:
82
82
  - afu@forresty.com
@@ -99,6 +99,7 @@ files:
99
99
  - lib/hn/parsers/comment_parser.rb
100
100
  - lib/hn/parsers/entry_parser.rb
101
101
  - lib/hn/version.rb
102
+ - spec/fixtures/best.html
102
103
  - spec/fixtures/comments.html
103
104
  - spec/fixtures/home.html
104
105
  - spec/fixtures/newest.html
@@ -121,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
122
  version: '0'
122
123
  segments:
123
124
  - 0
124
- hash: -3446218292935206945
125
+ hash: 556332051837383682
125
126
  required_rubygems_version: !ruby/object:Gem::Requirement
126
127
  none: false
127
128
  requirements:
@@ -130,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
131
  version: '0'
131
132
  segments:
132
133
  - 0
133
- hash: -3446218292935206945
134
+ hash: 556332051837383682
134
135
  requirements: []
135
136
  rubyforge_project:
136
137
  rubygems_version: 1.8.11
@@ -138,6 +139,7 @@ signing_key:
138
139
  specification_version: 3
139
140
  summary: A tiny gem to fetch Hacker News entries
140
141
  test_files:
142
+ - spec/fixtures/best.html
141
143
  - spec/fixtures/comments.html
142
144
  - spec/fixtures/home.html
143
145
  - spec/fixtures/newest.html