hacker_news 0.1.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +3 -3
- data/VERSION +1 -1
- data/hacker_news.gemspec +9 -10
- data/lib/hacker_news/item.rb +6 -5
- data/test/fixtures/index.html +10 -22
- data/test/unit/test_scraper.rb +18 -7
- metadata +40 -25
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.1
|
data/hacker_news.gemspec
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.
|
7
|
+
s.name = "hacker_news"
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Aleksandr Lossenko"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
12
|
+
s.date = "2011-10-07"
|
13
|
+
s.description = "Fetches newest 5 pages from Hacker News and returns convenient ruby objects"
|
14
|
+
s.email = "aleksandr.lossenko@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
17
|
"README",
|
@@ -34,21 +34,20 @@ Gem::Specification.new do |s|
|
|
34
34
|
"test/helper.rb",
|
35
35
|
"test/unit/test_scraper.rb"
|
36
36
|
]
|
37
|
-
s.homepage =
|
37
|
+
s.homepage = "http://github.com/egze/hacker_news"
|
38
38
|
s.licenses = ["MIT"]
|
39
39
|
s.require_paths = ["lib"]
|
40
|
-
s.rubygems_version =
|
41
|
-
s.summary =
|
40
|
+
s.rubygems_version = "1.8.10"
|
41
|
+
s.summary = "Wrapper for Hacker News website"
|
42
42
|
s.test_files = [
|
43
43
|
"test/helper.rb",
|
44
44
|
"test/unit/test_scraper.rb"
|
45
45
|
]
|
46
46
|
|
47
47
|
if s.respond_to? :specification_version then
|
48
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
49
48
|
s.specification_version = 3
|
50
49
|
|
51
|
-
if Gem::Version.new(Gem::
|
50
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
52
51
|
s.add_runtime_dependency(%q<nokogiri>, ["~> 1.4.0"])
|
53
52
|
s.add_runtime_dependency(%q<iconv>, [">= 0"])
|
54
53
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
data/lib/hacker_news/item.rb
CHANGED
@@ -12,11 +12,12 @@ module HackerNews
|
|
12
12
|
@title = Iconv.iconv('iso-8859-1//translit', 'utf-8', node.text)[0].to_s.strip
|
13
13
|
@url = node[:href]
|
14
14
|
@position = position
|
15
|
-
@points = points_comments_td.css("span")[0].text.to_i
|
16
|
-
@id = points_comments_td.css("span")[0][:id].split("_")[1].to_i
|
17
|
-
@user = points_comments_td.css("a")[0].text.strip
|
18
|
-
@comments = points_comments_td.css("a")[1].text.to_i
|
19
|
-
@created_at =
|
15
|
+
@points = points_comments_td.css("span")[0].text.to_i rescue nil
|
16
|
+
@id = points_comments_td.css("span")[0][:id].split("_")[1].to_i rescue nil
|
17
|
+
@user = points_comments_td.css("a")[0].text.strip rescue nil
|
18
|
+
@comments = points_comments_td.css("a")[1].text.to_i rescue nil
|
19
|
+
@created_at = points_comments_tr.text.match(/by [-\w]+ (.*) \|/)[1].strip rescue nil
|
20
|
+
@created_at ||= points_comments_tr.text
|
20
21
|
end
|
21
22
|
|
22
23
|
end
|
data/test/fixtures/index.html
CHANGED
@@ -1,37 +1,25 @@
|
|
1
1
|
|
2
|
-
<html><head><link rel="stylesheet" type="text/css" href="http://ycombinator.com/news.css">
|
3
|
-
<link rel="shortcut icon" href="http://ycombinator.com/favicon.ico">
|
4
|
-
<script>
|
2
|
+
<html><head><link rel="stylesheet" type="text/css" href="http://ycombinator.com/news.css">
|
3
|
+
<link rel="shortcut icon" href="http://ycombinator.com/favicon.ico">
|
4
|
+
<script>
|
5
5
|
function byId(id) {
|
6
6
|
return document.getElementById(id);
|
7
7
|
}
|
8
|
-
|
8
|
+
|
9
9
|
function vote(node) {
|
10
10
|
var v = node.id.split(/_/); // {'up', '123'}
|
11
11
|
var item = v[1];
|
12
|
-
|
13
|
-
// adjust score
|
14
|
-
var score = byId('score_' + item);
|
15
|
-
var newscore = parseInt(score.innerHTML) + (v[0] == 'up' ? 1 : -1);
|
16
|
-
score.innerHTML = newscore + (newscore == 1 ? ' point' : ' points');
|
17
|
-
|
12
|
+
|
18
13
|
// hide arrows
|
19
14
|
byId('up_' + item).style.visibility = 'hidden';
|
20
15
|
byId('down_' + item).style.visibility = 'hidden';
|
21
|
-
|
16
|
+
|
22
17
|
// ping server
|
23
18
|
var ping = new Image();
|
24
19
|
ping.src = node.href;
|
25
|
-
|
20
|
+
|
26
21
|
return false; // cancel browser nav
|
27
|
-
} </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="/x?fnid=epVoi4m0mi">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">61.</td><td><center><a id=up_2389994 href="vote?for=2389994&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2389994></span></center></td><td class="title"><a href="http://www.marco.org/4222285032">Apple’s boring hardware updates</a><span class="comhead"> (marco.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2389994>127 points</span> by <a href="user?id=remi">remi</a> 19 hours ago | <a href="item?id=2389994">59 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">62.</td><td><center><a id=up_2391545 href="vote?for=2391545&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2391545></span></center></td><td class="title"><a href="http://opensource.com/life/11/3/nasa-concludes-first-open-source-summit-aims-make-openness-default">NASA concludes first Open Source Summit, aims to make openness the default</a><span class="comhead"> (opensource.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2391545>16 points</span> by <a href="user?id=Tsiolkovsky">Tsiolkovsky</a> 6 hours ago | <a href="item?id=2391545">2 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">63.</td><td><center><a id=up_2390765 href="vote?for=2390765&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2390765></span></center></td><td class="title"><a href="http://codingrelic.geekhold.com/2011/03/non-blocking-programmers.html">Non-blocking Programmers</a><span class="comhead"> (geekhold.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2390765>51 points</span> by <a href="user?id=srikar">srikar</a> 12 hours ago | <a href="item?id=2390765">23 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">64.</td><td><center><a id=up_2389967 href="vote?for=2389967&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2389967></span></center></td><td class="title"><a href="http://www.physicscentral.com/buzz/blog/index.cfm?postid=6659555448783718990&1">Urban Decay: Exploring an old abandoned particle collider facility</a><span class="comhead"> (physicscentral.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2389967>117 points</span> by <a href="user?id=dstein">dstein</a> 19 hours ago | <a href="item?id=2389967">29 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">65.</td><td><center><a id=up_2393043 href="vote?for=2393043&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2393043></span></center></td><td class="title"><a href="http://www.engadget.com/2011/03/31/google-working-on-a-face-recognition-app-that-leads-to-your-pers/" rel="nofollow">Google making a face recognition app that leads to your personal info</a><span class="comhead"> (engadget.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2393043>3 points</span> by <a href="user?id=lotusleaf1987">lotusleaf1987</a> 1 hour ago | <a href="item?id=2393043">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">66.</td><td><center><a id=up_2392549 href="vote?for=2392549&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2392549></span></center></td><td class="title"><a href="http://hivespun.tumblr.com/post/4199646942/hive-spun-beta-testing" rel="nofollow">HiveSpun.com Beta: Online Art Collaboration</a><span class="comhead"> (hivespun.tumblr.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2392549>6 points</span> by <a href="user?id=torme">torme</a> 3 hours ago | <a href="item?id=2392549">1 comment</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">67.</td><td><center><a id=up_2392371 href="vote?for=2392371&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2392371></span></center></td><td class="title"><a href="http://blog.cuphon.com/design-coffee-and-code-how-were-building-a-co">Design, Coffee, and Code: How We're Building a Company Half a World Away.</a><span class="comhead"> (cuphon.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2392371>25 points</span> by <a href="user?id=gwil">gwil</a> 3 hours ago | <a href="item?id=2392371">6 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">68.</td><td><center><a id=up_2390816 href="vote?for=2390816&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2390816></span></center></td><td class="title"><a href="https://github.com/agentzh/ngx_openresty">Turning Nginx into Full-Stack Web Application Platform (By Taobao.com)</a><span class="comhead"> (github.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2390816>44 points</span> by <a href="user?id=Polat">Polat</a> 11 hours ago | <a href="item?id=2390816">8 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">69.</td><td><center><a id=up_2393005 href="vote?for=2393005&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2393005></span></center></td><td class="title"><a href="http://www.engineyard.com/blog/2011/how-long-is-your-measuring-stick/" rel="nofollow">How long is your measuring stick?</a><span class="comhead"> (engineyard.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2393005>3 points</span> by <a href="user?id=mshe">mshe</a> 1 hour ago | <a href="item?id=2393005">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">70.</td><td><center><a id=up_2393004 href="vote?for=2393004&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2393004></span></center></td><td class="title"><a href="http://www.catonmat.net/blog/follow-hacker-news-from-the-console" rel="nofollow">At work? Follow Hacker News from the Console</a><span class="comhead"> (catonmat.net) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2393004>3 points</span> by <a href="user?id=fosk">fosk</a> 1 hour ago | <a href="item?id=2393004">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">71.</td><td><center><a id=up_2392977 href="vote?for=2392977&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2392977></span></center></td><td class="title"><a href="http://parkedavenue.com" rel="nofollow">Free hosted landing pages for your domains</a><span class="comhead"> (parkedavenue.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2392977>3 points</span> by <a href="user?id=jeffrey999">jeffrey999</a> 1 hour ago | <a href="item?id=2392977">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">72.</td><td><center><a id=up_2388432 href="vote?for=2388432&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2388432></span></center></td><td class="title"><a href="http://googleblog.blogspot.com/2011/03/1s-right-recommendations-right-when-you.html"> +1’s: the right recommendations right when you want them—in your search results</a><span class="comhead"> (googleblog.blogspot.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2388432>205 points</span> by <a href="user?id=Anon84">Anon84</a> 1 day ago | <a href="item?id=2388432">83 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">73.</td><td><center><a id=up_2391735 href="vote?for=2391735&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2391735></span></center></td><td class="title"><a href="http://techcrunch.com/2011/03/31/what’s-the-most-difficult-ceo-skill-managing-your-own-psychology/">What’s The Most Difficult CEO Skill? (Ben Horowitz).</a><span class="comhead"> (techcrunch.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2391735>11 points</span> by <a href="user?id=emmanuelory">emmanuelory</a> 5 hours ago | <a href="item?id=2391735">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">74.</td><td><center><a id=up_2392012 href="vote?for=2392012&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2392012></span></center></td><td class="title"><a href="http://techcrunch.com/2011/03/31/qwiki-raises-1-million-from-fund-started-by-groupon-co-founders/">Qwiki Raises $1 Million From Groupon Co-Founders</a><span class="comhead"> (techcrunch.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2392012>8 points</span> by <a href="user?id=kacy">kacy</a> 4 hours ago | <a href="item?id=2392012">1 comment</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">75.</td><td><center><a id=up_2392592 href="vote?for=2392592&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2392592></span></center></td><td class="title"><a href="http://www.airs.com/blog/archives/495" rel="nofollow">Tcl: a brief overview of language design gone wrong</a><span class="comhead"> (airs.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2392592>4 points</span> by <a href="user?id=yan">yan</a> 2 hours ago | <a href="item?id=2392592">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">76.</td><td><center><a id=up_2392565 href="vote?for=2392565&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2392565></span></center></td><td class="title"><a href="http://www.slate.com/id/2289302" rel="nofollow">Against Gamification</a><span class="comhead"> (slate.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2392565>4 points</span> by <a href="user?id=mcantelon">mcantelon</a> 2 hours ago | <a href="item?id=2392565">4 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">77.</td><td><center><a id=up_2392667 href="vote?for=2392667&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2392667></span></center></td><td class="title"><a href="http://mashable.com/2011/03/31/activeinbox/">ActiveInbox Turns Gmail Into a Task Manager</a><span class="comhead"> (mashable.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2392667>13 points</span> by <a href="user?id=peterjlambert">peterjlambert</a> 2 hours ago | <a href="item?id=2392667">3 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">78.</td><td><center><a id=up_2392353 href="vote?for=2392353&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2392353></span></center></td><td class="title"><a href="http://pivotrly.com/" rel="nofollow">Pivotrly</a><span class="comhead"> (pivotrly.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2392353>5 points</span> by <a href="user?id=citadrianne">citadrianne</a> 3 hours ago | <a href="item?id=2392353">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">79.</td><td><center><a id=up_2392412 href="vote?for=2392412&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2392412></span></center></td><td class="title"><a href="http://blog.indextank.com/546/contest-time-build-an-app-with-indextank-factual/">Contest time. Build an app with IndexTank + Factual</a><span class="comhead"> (indextank.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2392412>17 points</span> by <a href="user?id=diego">diego</a> 3 hours ago | <a href="item?id=2392412">3 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">80.</td><td><center><a id=up_2392392 href="vote?for=2392392&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2392392></span></center></td><td class="title"><a href="http://bostinnovation.com/2011/03/31/boston-companies-using-django/">Boston Companies Using Django</a><span class="comhead"> (bostinnovation.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2392392>17 points</span> by <a href="user?id=kmccarth">kmccarth</a> 3 hours ago | <a href="item?id=2392392">3 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">81.</td><td><center><a id=up_2391777 href="vote?for=2391777&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2391777></span></center></td><td class="title"><a href="https://github.com/williscool/jquery-socket.io">Socket.io jquery plugin</a><span class="comhead"> (github.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2391777>9 points</span> by <a href="user?id=wh-uws">wh-uws</a> 5 hours ago | <a href="item?id=2391777">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">82.</td><td><center><a id=up_2391758 href="vote?for=2391758&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2391758></span></center></td><td class="title"><a href="https://github.com/karlseguin/the-little-mongodb-book/network">Github, the future of book publishing?</a><span class="comhead"> (github.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2391758>28 points</span> by <a href="user?id=latch">latch</a> 5 hours ago | <a href="item?id=2391758">22 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">83.</td><td><center><a id=up_2393294 href="vote?for=2393294&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2393294></span></center></td><td class="title"><a href="item?id=2393294">Ask HN: Anyone recommend BaseCampHQ alternatives?</a></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2393294>3 points</span> by <a href="user?id=allanchao">allanchao</a> 47 minutes ago | <a href="item?id=2393294">3 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">84.</td><td><center><a id=up_2392727 href="vote?for=2392727&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2392727></span></center></td><td class="title"><a href="http://www.theregister.co.uk/2011/03/31/google_juices_both_python_and_java_app_engine/" rel="nofollow">Google app cloud juices Java and Python</a><span class="comhead"> (theregister.co.uk) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2392727>3 points</span> by <a href="user?id=sunsai">sunsai</a> 2 hours ago | <a href="item?id=2392727">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">85.</td><td><center><a id=up_2391744 href="vote?for=2391744&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2391744></span></center></td><td class="title"><a href="http://techcrunch.com/2011/03/31/what%E2%80%99s-the-most-difficult-ceo-skill-managing-your-own-psychology/">Is Your Mind Playing Tricks on You?</a><span class="comhead"> (techcrunch.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2391744>8 points</span> by <a href="user?id=Stormi">Stormi</a> 5 hours ago | <a href="item?id=2391744">1 comment</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">86.</td><td><center><a id=up_2392586 href="vote?for=2392586&didir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2392586></span></center></td><td class="title"><a href="item?id=2392586">Show HN: an app to help you shop for food</a></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2392586>9 points</span> by <a href="user?id=maxhs">maxhs</a> 2 hours ago | <a href="item?id=2392586">3 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">87.</td><td><center><a id=up_2392230 href="vote?for=2392230&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2392230></span></center></td><td class="title"><a href="http://www.nodesocket.com/survey.php" rel="nofollow"> Help Us Build A World-Class Node.js Hosting Platform</a><span class="comhead"> (nodesocket.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2392230>6 points</span> by <a href="user?id=nodesocket">nodesocket</a> 4 hours ago | <a href="item?id=2392230">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">88.</td><td><center><a id=up_2390467 href="vote?for=2390467&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2390467></span></center></td><td class="title"><a href="http://www.businessweek.com/magazine/content/11_15/b4223041200216.htm">Do Not Anger the Alpha Android</a><span class="comhead"> (businessweek.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2390467>36 points</span> by <a href="user?id=pathik">pathik</a> 15 hours ago | <a href="item?id=2390467">31 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">89.</td><td><center><a id=up_2385424 href="vote?for=2385424&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2385424></span></center></td><td class="title"><a href="http://devinterviews.pen.io/">Hiring Developers: You're Doing It Wrong</a><span class="comhead"> (pen.io) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2385424>380 points</span> by <a href="user?id=Udo">Udo</a> 1 day ago | <a href="item?id=2385424">205 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">90.</td><td><center><a id=up_2387330 href="vote?for=2387330&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%48%58%51%7a%4c%70%6f%47%57%41"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2387330></span></center></td><td class="title"><a href="http://ignorethecode.net/blog/2011/03/30/skype_5/">Skype 5 for Mac</a><span class="comhead"> (ignorethecode.net) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2387330>265 points</span> by <a href="user?id=shawndumas">shawndumas</a> 1 day ago | <a href="item?id=2387330">110 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=bXOjmlABF8" 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>
|
28
|
-
<center><span class="yclinks"><a href="lists">Lists</a> | <a href="rss">RSS</a> | <a href="http://
|
29
|
-
<
|
30
|
-
src="http://www.co2stats.com/propres.php?s=1138"></script><img src="http://ycombinator.com/images/s.gif" height=1 width=15><a href="http://www.webmynd.com/html/hackernews.html"><img
|
31
|
-
src="http://ycombinator.com/images/hnsearch.png" border=0
|
32
|
-
style="padding-bottom:12px"></a><img src="http://ycombinator.com/images/s.gif" height=1 width=25><a href="http://mixpanel.com/?from=yc"><img border=0
|
33
|
-
src="http://mixpanel.com/site_media/images/mixpanel_partner_logo_borderless.gif"
|
34
|
-
alt="Analytics by Mixpanel"
|
35
|
-
style="padding-bottom:8px"
|
36
|
-
/></a><br>
|
22
|
+
} </script><title>Hacker News</title></head><body><center><table border=0 cellpadding=0 cellspacing=0 width="85%" bgcolor=#f6f6ef><tr><td bgcolor=#000000><img src="http://ycombinator.com/images/s.gif" height=5 width=0></td></tr><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="/x?fnid=OIhcQjDH8A">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">31.</td><td><center><a id=up_3081171 href="vote?for=3081171&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3081171></span></center></td><td class="title"><a href="https://docs.google.com/spreadsheet/ccc?key=0AgdrTOOiB3BMdExDMXAtUmhrNnQwUXRjZHh1QVhzRHc&hl=en_US">Show HN: My table of tools for startups [Google Docs]</a><span class="comhead"> (google.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3081171>117 points</span> by <a href="user?id=matthiaswh">matthiaswh</a> 15 hours ago | <a href="item?id=3081171">32 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">32.</td><td><center><a id=up_3078434 href="vote?for=3078434&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3078434></span></center></td><td class="title"><a href="http://www.thegatesnotes.com/Personal/Steve-Jobs">Bill Gates on Steve Jobs</a><span class="comhead"> (thegatesnotes.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3078434>527 points</span> by <a href="user?id=hornokplease">hornokplease</a> 1 day ago | <a href="item?id=3078434">13 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">33.</td><td><center><a id=up_3080437 href="vote?for=3080437&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3080437></span></center></td><td class="title"><a href="http://article.gmane.org/gmane.comp.time.tz/4133">Law suit shuts down Olson TZ database servers.</a><span class="comhead"> (gmane.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3080437>152 points</span> by <a href="user?id=fanf2">fanf2</a> 18 hours ago | <a href="item?id=3080437">37 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">34.</td><td><center><a id=up_3080939 href="vote?for=3080939&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3080939></span></center></td><td class="title"><a href="http://www.asymco.com/2011/10/06/steve-jobs-didnt/">Steve Jobs didn’t</a><span class="comhead"> (asymco.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3080939>181 points</span> by <a href="user?id=donmcc">donmcc</a> 16 hours ago | <a href="item?id=3080939">37 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">35.</td><td><center><a id=up_3082791 href="vote?for=3082791&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3082791></span></center></td><td class="title"><a href="http://www.planethunters.org/planetometer">Crowd sourcing planet finding</a><span class="comhead"> (planethunters.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3082791>11 points</span> by <a href="user?id=afunnyfunnyman">afunnyfunnyman</a> 4 hours ago | <a href="item?id=3082791">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">36.</td><td><center><a id=up_3078574 href="vote?for=3078574&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3078574></span></center></td><td class="title"><a href="http://www.whitehouse.gov/blog/2011/10/05/president-obama-passing-steve-jobs-he-changed-way-each-us-sees-world">President Obama on Steve Jobs: "He Changed the Way Each of Us Sees the World"</a><span class="comhead"> (whitehouse.gov) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3078574>465 points</span> by <a href="user?id=hornokplease">hornokplease</a> 1 day ago | <a href="item?id=3078574">58 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">37.</td><td><center><a id=up_3082196 href="vote?for=3082196&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3082196></span></center></td><td class="title"><a href="http://uncrunched.com/2011/10/06/nuance-to-acquire-swype-for-100-million/">Nuance To Acquire Swype For $100+ Million</a><span class="comhead"> (uncrunched.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3082196>39 points</span> by <a href="user?id=aaronbrethorst">aaronbrethorst</a> 9 hours ago | <a href="item?id=3082196">13 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">38.</td><td><center><a id=up_3079694 href="vote?for=3079694&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3079694></span></center></td><td class="title"><a href="http://www.theatlantic.com/technology/archive/2011/10/italian-wikipedia-shuts-down-in-protest-of-wiretap-act/246180/">Italian Wikipedia shut down</a><span class="comhead"> (theatlantic.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3079694>192 points</span> by <a href="user?id=coldarchon">coldarchon</a> 22 hours ago | <a href="item?id=3079694">35 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">39.</td><td><center><a id=up_3082723 href="vote?for=3082723&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3082723></span></center></td><td class="title"><a href="http://www.cringely.com/2011/10/unanswered-steve-jobs-questions/">Unanswered Steve Jobs questions</a><span class="comhead"> (cringely.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3082723>23 points</span> by <a href="user?id=bretthellman">bretthellman</a> 5 hours ago | <a href="item?id=3082723">6 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">40.</td><td><center><a id=up_3078510 href="vote?for=3078510&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3078510></span></center></td><td class="title"><a href="https://plus.google.com/109813896768294978296/posts/dwmWyNSoXTh">Sergey Brin on Steve Jobs</a><span class="comhead"> (google.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3078510>362 points</span> by <a href="user?id=nextparadigms">nextparadigms</a> 1 day ago | <a href="item?id=3078510">9 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">41.</td><td><center><a id=up_3081352 href="vote?for=3081352&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3081352></span></center></td><td class="title"><a href="http://techcrunch.com/2011/10/06/palantir-technologies-raises-70-million-at-2-5-billion-valuation/">Palantir Technologies Raises $70 Million At $2.5 Billion Valuation</a><span class="comhead"> (techcrunch.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3081352>63 points</span> by <a href="user?id=shaurya">shaurya</a> 14 hours ago | <a href="item?id=3081352">24 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">42.</td><td><center><a id=up_3078314 href="vote?for=3078314&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3078314></span></center></td><td class="title"><a href="http://arstechnica.com/apple/news/2011/10/tim-cook-no-words-can-adequately-express-our-sadness-at-steves-death.ars">Tim Cook: "No words can adequately express our sadness at Steve's death"</a><span class="comhead"> (arstechnica.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3078314>356 points</span> by <a href="user?id=Toddward">Toddward</a> 1 day ago | <a href="item?id=3078314">4 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">43.</td><td><center><a id=up_3078662 href="vote?for=3078662&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3078662></span></center></td><td class="title"><a href="http://samaltman.com/thanks-steve">Thanks, Steve</a><span class="comhead"> (samaltman.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3078662>324 points</span> by <a href="user?id=sama">sama</a> 1 day ago | <a href="item?id=3078662">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">44.</td><td><center><a id=up_3083020 href="vote?for=3083020&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3083020></span></center></td><td class="title"><a href="http://www.nytimes.com/2011/10/06/garden/the-race-to-grow-the-one-ton-pumpkin.html" rel="nofollow">The Race to Grow the One-Ton Pumpkin</a><span class="comhead"> (nytimes.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3083020>4 points</span> by <a href="user?id=hachiya">hachiya</a> 2 hours ago | <a href="item?id=3083020">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">45.</td><td><center><a id=up_3079499 href="vote?for=3079499&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3079499></span></center></td><td class="title"><a href="https://www.adobe.com/products/flashplayer.html">Adobe Flash 11 is now stable for 64-bit Linux</a><span class="comhead"> (adobe.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3079499>196 points</span> by <a href="user?id=nodata">nodata</a> 1 day ago | <a href="item?id=3079499">52 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">46.</td><td><center><a id=up_3080603 href="vote?for=3080603&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3080603></span></center></td><td class="title"><a href="http://blog.tojicode.com/2011/10/source-engine-levels-in-webgl-video.html">Team Fortress 2 in WebGL</a><span class="comhead"> (tojicode.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3080603>109 points</span> by <a href="user?id=DanielRibeiro">DanielRibeiro</a> 17 hours ago | <a href="item?id=3080603">31 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">47.</td><td><center><a id=up_3081357 href="vote?for=3081357&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3081357></span></center></td><td class="title"><a href="http://www.edwardtufte.com/tufte/dapp/">Edward Tufte's "Data Analysis for Politics and Policy"</a><span class="comhead"> (edwardtufte.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3081357>53 points</span> by <a href="user?id=danso">danso</a> 14 hours ago | <a href="item?id=3081357">9 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">48.</td><td><center><a id=up_3082483 href="vote?for=3082483&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3082483></span></center></td><td class="title"><a href="http://inqk.net/weblog/2011/857">Those Build-a-Business-in-48-Hours Conferences are a Lie</a><span class="comhead"> (inqk.net) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3082483>14 points</span> by <a href="user?id=pyrmont">pyrmont</a> 7 hours ago | <a href="item?id=3082483">6 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">49.</td><td></td><td class="title"><a href="http://www.pagerduty.com/jobs/engineering/software-engineer" rel="nofollow">PagerDuty (YC S10) is looking for some awesome devs</a><span class="comhead"> (pagerduty.com) </span></td></tr><tr><td colspan=2></td><td class="subtext">12 hours ago</td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">50.</td><td><center><a id=up_3078678 href="vote?for=3078678&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3078678></span></center></td><td class="title"><a href="http://google.com/">Google's Steve Jobs tribute</a><span class="comhead"> (google.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3078678>288 points</span> by <a href="user?id=sahillavingia">sahillavingia</a> 1 day ago | <a href="item?id=3078678">20 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">51.</td><td><center><a id=up_3078624 href="vote?for=3078624&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3078624></span></center></td><td class="title"><a href="http://digitaljournalist.org/issue0712/y_walker08.html">Steve Jobs At Home In 1982</a><span class="comhead"> (digitaljournalist.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3078624>282 points</span> by <a href="user?id=raju">raju</a> 1 day ago | <a href="item?id=3078624">21 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">52.</td><td><center><a id=up_3078335 href="vote?for=3078335&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3078335></span></center></td><td class="title"><a href="https://plus.google.com/115658896387238242974/posts/QoHtWrjjQcE">Bill Gates Makes Statement on Steve Jobs</a><span class="comhead"> (google.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3078335>302 points</span> by <a href="user?id=riskish">riskish</a> 1 day ago | <a href="item?id=3078335">1 comment</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">53.</td><td><center><a id=up_3080824 href="vote?for=3080824&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3080824></span></center></td><td class="title"><a href="http://www.businessweek.com/printer/magazine/the-beginning-19551985-10062011.html">Steve Jobs: The Beginning, 1955-1985 (Part 1 of 3)</a><span class="comhead"> (businessweek.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3080824>78 points</span> by <a href="user?id=cshenoy">cshenoy</a> 16 hours ago | <a href="item?id=3080824">5 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">54.</td><td><center><a id=up_3083066 href="vote?for=3083066&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3083066></span></center></td><td class="title"><a href="http://blog.proceranetworks.com/2011/10/06/steve-jobs-far-reaching-impact/">URLs with Steve Jobs in the title accounted for 1% of all net traffic yesterday</a><span class="comhead"> (proceranetworks.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3083066>9 points</span> by <a href="user?id=krig">krig</a> 2 hours ago | <a href="item?id=3083066">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">55.</td><td><center><a id=up_3078479 href="vote?for=3078479&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3078479></span></center></td><td class="title"><a href="http://plus.google.com/u/1/106189723444098348646/posts/4wkYwTCCgAc">Larry Page on Steve Jobs</a><span class="comhead"> (google.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3078479>338 points</span> by <a href="user?id=hornokplease">hornokplease</a> 1 day ago | <a href="item?id=3078479">13 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">56.</td><td><center><a id=up_3080851 href="vote?for=3080851&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3080851></span></center></td><td class="title"><a href="http://www.nature.com/news/2011/111005/full/news.2011.575.html">Faster-than-light neutrinos face time trial</a><span class="comhead"> (nature.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3080851>66 points</span> by <a href="user?id=llambda">llambda</a> 16 hours ago | <a href="item?id=3080851">19 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">57.</td><td><center><a id=up_3083051 href="vote?for=3083051&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3083051></span></center></td><td class="title"><a href="http://store.apple.com/go/iphone">IPhone 4S Now Available for Pre-Order</a><span class="comhead"> (apple.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3083051>9 points</span> by <a href="user?id=Aqua_Geek">Aqua_Geek</a> 2 hours ago | <a href="item?id=3083051">10 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">58.</td><td><center><a id=up_3082944 href="vote?for=3082944&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3082944></span></center></td><td class="title"><a href="http://community.haskell.org/~ndm/temp/EGMitchell-ExperienceReport.pdf" rel="nofollow">Experience Report: Functional Programming through Deep Time</a> [<a href="http://www.scribd.com/vacuum?url=http://community.haskell.org/~ndm/temp/EGMitchell-ExperienceReport.pdf">scribd</a>]<span class="comhead"> (haskell.org) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3082944>4 points</span> by <a href="user?id=buro9">buro9</a> 3 hours ago | <a href="item?id=3082944">discuss</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">59.</td><td><center><a id=up_3078439 href="vote?for=3078439&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3078439></span></center></td><td class="title"><a href="http://www.nytimes.com/interactive/2011/08/24/technology/steve-jobs-patents.html">The 313 Apple patents that list Steven P. Jobs among the group of inventors</a><span class="comhead"> (nytimes.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3078439>254 points</span> by <a href="user?id=keyle">keyle</a> 1 day ago | <a href="item?id=3078439">15 comments</a></td></tr><tr style="height:5px"></tr><tr><td align=right valign=top class="title">60.</td><td><center><a id=up_3078565 href="vote?for=3078565&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%69%6b%58%59%43%7a%66%47%63%47"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_3078565></span></center></td><td class="title"><a href="http://daringfireball.net/linked/2011/10/05/steve">Daring Fireball: Steve Jobs Dies</a><span class="comhead"> (daringfireball.net) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_3078565>239 points</span> by <a href="user?id=solipsist">solipsist</a> 1 day ago | <a href="item?id=3078565">9 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=XEjkQIIghP" 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>
|
23
|
+
<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>
|
24
|
+
<form method=get action="http://www.hnsearch.com/search#request/all">Search: <input type=text name="q" value="" size=17></form><br>
|
37
25
|
</center></td></tr></table></center></body></html>
|
data/test/unit/test_scraper.rb
CHANGED
@@ -8,14 +8,25 @@ class TestScraper < Test::Unit::TestCase
|
|
8
8
|
assert_equal 150, articles.size
|
9
9
|
first_article = articles[0]
|
10
10
|
|
11
|
-
assert_equal "
|
11
|
+
assert_equal "Show HN: My table of tools for startups [Google Docs]", first_article.title
|
12
12
|
assert_equal 1, first_article.position
|
13
|
-
assert_equal
|
14
|
-
assert_equal
|
15
|
-
assert_equal
|
16
|
-
assert_equal "
|
17
|
-
assert_equal "
|
18
|
-
assert_equal "
|
13
|
+
assert_equal 117, first_article.points
|
14
|
+
assert_equal 32, first_article.comments
|
15
|
+
assert_equal 3081171, first_article.id
|
16
|
+
assert_equal "matthiaswh", first_article.user
|
17
|
+
assert_equal "https://docs.google.com/spreadsheet/ccc?key=0AgdrTOOiB3BMdExDMXAtUmhrNnQwUXRjZHh1QVhzRHc&hl=en_US", first_article.url
|
18
|
+
assert_equal "15 hours ago", first_article.created_at
|
19
|
+
|
20
|
+
job_article = articles[18]
|
21
|
+
|
22
|
+
assert_equal "PagerDuty (YC S10) is looking for some awesome devs", job_article.title
|
23
|
+
assert_equal 19, job_article.position
|
24
|
+
assert_equal nil, job_article.points
|
25
|
+
assert_equal nil, job_article.comments
|
26
|
+
assert_equal nil, job_article.id
|
27
|
+
assert_equal nil, job_article.user
|
28
|
+
assert_equal "http://www.pagerduty.com/jobs/engineering/software-engineer", job_article.url
|
29
|
+
assert_equal "12 hours ago", job_article.created_at
|
19
30
|
end
|
20
31
|
|
21
32
|
end
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hacker_news
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 21
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
8
|
+
- 2
|
7
9
|
- 1
|
8
|
-
|
9
|
-
version: 0.1.1
|
10
|
+
version: 0.2.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Aleksandr Lossenko
|
@@ -14,87 +15,98 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2011-
|
18
|
-
default_executable:
|
18
|
+
date: 2011-10-07 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
|
+
none: false
|
22
23
|
requirements:
|
23
24
|
- - ~>
|
24
25
|
- !ruby/object:Gem::Version
|
26
|
+
hash: 7
|
25
27
|
segments:
|
26
28
|
- 1
|
27
29
|
- 4
|
28
30
|
- 0
|
29
31
|
version: 1.4.0
|
32
|
+
requirement: *id001
|
30
33
|
prerelease: false
|
31
|
-
type: :runtime
|
32
34
|
name: nokogiri
|
33
|
-
|
35
|
+
type: :runtime
|
34
36
|
- !ruby/object:Gem::Dependency
|
35
|
-
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
36
39
|
requirements:
|
37
40
|
- - ">="
|
38
41
|
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
39
43
|
segments:
|
40
44
|
- 0
|
41
45
|
version: "0"
|
46
|
+
requirement: *id002
|
42
47
|
prerelease: false
|
43
|
-
type: :runtime
|
44
48
|
name: iconv
|
45
|
-
|
49
|
+
type: :runtime
|
46
50
|
- !ruby/object:Gem::Dependency
|
47
|
-
|
51
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
48
53
|
requirements:
|
49
54
|
- - ~>
|
50
55
|
- !ruby/object:Gem::Version
|
56
|
+
hash: 23
|
51
57
|
segments:
|
52
58
|
- 1
|
53
59
|
- 0
|
54
60
|
- 0
|
55
61
|
version: 1.0.0
|
62
|
+
requirement: *id003
|
56
63
|
prerelease: false
|
57
|
-
type: :development
|
58
64
|
name: bundler
|
59
|
-
|
65
|
+
type: :development
|
60
66
|
- !ruby/object:Gem::Dependency
|
61
|
-
|
67
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
62
69
|
requirements:
|
63
70
|
- - ~>
|
64
71
|
- !ruby/object:Gem::Version
|
72
|
+
hash: 7
|
65
73
|
segments:
|
66
74
|
- 1
|
67
75
|
- 5
|
68
76
|
- 2
|
69
77
|
version: 1.5.2
|
78
|
+
requirement: *id004
|
70
79
|
prerelease: false
|
71
|
-
type: :development
|
72
80
|
name: jeweler
|
73
|
-
|
81
|
+
type: :development
|
74
82
|
- !ruby/object:Gem::Dependency
|
75
|
-
|
83
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
76
85
|
requirements:
|
77
86
|
- - ">="
|
78
87
|
- !ruby/object:Gem::Version
|
88
|
+
hash: 3
|
79
89
|
segments:
|
80
90
|
- 0
|
81
91
|
version: "0"
|
92
|
+
requirement: *id005
|
82
93
|
prerelease: false
|
83
|
-
type: :development
|
84
94
|
name: rcov
|
85
|
-
|
95
|
+
type: :development
|
86
96
|
- !ruby/object:Gem::Dependency
|
87
|
-
|
97
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
88
99
|
requirements:
|
89
100
|
- - ">="
|
90
101
|
- !ruby/object:Gem::Version
|
102
|
+
hash: 3
|
91
103
|
segments:
|
92
104
|
- 0
|
93
105
|
version: "0"
|
106
|
+
requirement: *id006
|
94
107
|
prerelease: false
|
95
|
-
type: :development
|
96
108
|
name: fakeweb
|
97
|
-
|
109
|
+
type: :development
|
98
110
|
description: Fetches newest 5 pages from Hacker News and returns convenient ruby objects
|
99
111
|
email: aleksandr.lossenko@gmail.com
|
100
112
|
executables: []
|
@@ -121,7 +133,6 @@ files:
|
|
121
133
|
- test/fixtures/index.html
|
122
134
|
- test/helper.rb
|
123
135
|
- test/unit/test_scraper.rb
|
124
|
-
has_rdoc: true
|
125
136
|
homepage: http://github.com/egze/hacker_news
|
126
137
|
licenses:
|
127
138
|
- MIT
|
@@ -131,23 +142,27 @@ rdoc_options: []
|
|
131
142
|
require_paths:
|
132
143
|
- lib
|
133
144
|
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
134
146
|
requirements:
|
135
147
|
- - ">="
|
136
148
|
- !ruby/object:Gem::Version
|
149
|
+
hash: 3
|
137
150
|
segments:
|
138
151
|
- 0
|
139
152
|
version: "0"
|
140
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
141
155
|
requirements:
|
142
156
|
- - ">="
|
143
157
|
- !ruby/object:Gem::Version
|
158
|
+
hash: 3
|
144
159
|
segments:
|
145
160
|
- 0
|
146
161
|
version: "0"
|
147
162
|
requirements: []
|
148
163
|
|
149
164
|
rubyforge_project:
|
150
|
-
rubygems_version: 1.
|
165
|
+
rubygems_version: 1.8.10
|
151
166
|
signing_key:
|
152
167
|
specification_version: 3
|
153
168
|
summary: Wrapper for Hacker News website
|