UNPKG

hacker-news-api

Version:
1 lines 43.4 kB
[{"url":"/api/v1/search?hitsPerPage=1&tags=(comment)","reply":{"hits":[{"created_at":"2013-11-27T02:18:36.000Z","title":null,"url":null,"author":"zedshaw","points":1081,"story_text":null,"comment_text":"Hey, other comments are going to give you a few lines telling you to not quit, that you should hang in there, and that it&#x27;ll be alright. That may be true, but to me it sounds like you&#x27;re possibly not doing well enough to make any of that possible, and you probably need to find work fast. Here&#x27;s what I want to do:<p>1. I have a little list of companies looking for employees that I&#x27;ll send you. Not much just companies that have contacted me looking for people.\\n2. I am a bad ass writer and have a crazy resume, but more importantly I know how to craft resumes and I&#x27;ll look at yours and help you fix it up.\\n3. If you&#x27;re in the San Francisco area I&#x27;ll meet up with you and listen to what happened and see if there&#x27;s a way to work out of it, or at least listen.\\n4. If you email me at help@learncodethehardway.org I&#x27;ll talk with you and see if there&#x27;s other ways I can help.<p>I&#x27;m serious, hit me up on email and I&#x27;ll help out if I can. In fact, this goes for anyone else looking for work right now. Email the above and I&#x27;ll reply with my little list. I don&#x27;t make commissions on placement or anything like that, just a good thing to do.","num_comments":null,"story_id":6805699,"story_title":"Started a stupid company. Failed. ","story_url":"","parent_id":6805699,"created_at_i":1385518716,"_tags":["comment","author_zedshaw","story_6805699"],"objectID":"6805807","_highlightResult":{"author":{"value":"zedshaw","matchLevel":"none","matchedWords":[]},"comment_text":{"value":"Hey, other comments are going to give you a few lines telling you to not quit, that you should hang in there, and that it&#x27;ll be alright. That may be true, but to me it sounds like you&#x27;re possibly not doing well enough to make any of that possible, and you probably need to find work fast. Here&#x27;s what I want to do:<p>1. I have a little list of companies looking for employees that I&#x27;ll send you. Not much just companies that have contacted me looking for people.\\n2. I am a bad ass writer and have a crazy resume, but more importantly I know how to craft resumes and I&#x27;ll look at yours and help you fix it up.\\n3. If you&#x27;re in the San Francisco area I&#x27;ll meet up with you and listen to what happened and see if there&#x27;s a way to work out of it, or at least listen.\\n4. If you email me at help@learncodethehardway.org I&#x27;ll talk with you and see if there&#x27;s other ways I can help.<p>I&#x27;m serious, hit me up on email and I&#x27;ll help out if I can. In fact, this goes for anyone else looking for work right now. Email the above and I&#x27;ll reply with my little list. I don&#x27;t make commissions on placement or anything like that, just a good thing to do.","matchLevel":"none","matchedWords":[]},"story_title":{"value":"Started a stupid company. Failed. ","matchLevel":"none","matchedWords":[]},"story_url":{"value":"","matchLevel":"none","matchedWords":[]}}}],"nbHits":1105215,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":8,"query":"","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&tags=%28comment%29"}},{"url":"/api/v1/search_by_date?hitsPerPage=1&tags=(comment)","reply":{"hits":[{"created_at":"2014-06-20T03:39:55.000Z","title":null,"url":null,"author":"gohrt","points":1,"story_text":null,"comment_text":"A perennial HN favorite<p><a href=\"https://hn.algolia.com/?q=Fibonacci+Flim-Flam#!/all/forever/0/Fibonacci%20Flim-Flam\" rel=\"nofollow\">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?q=Fibonacci+Flim-Flam#!&#x2F;all&#x2F;forever&#x2F;...</a><p>What&#x27;s fascinating about this topic is that the reposts come at intervals that approximates the Fibonacci sequence.","num_comments":null,"story_id":7919207,"story_title":"Fibonacci Flim-Flam","story_url":"http://www.lhup.edu/~dsimanek/pseudo/fibonacc.htm","parent_id":7919207,"created_at_i":1403235595,"_tags":["comment","author_gohrt","story_7919207"],"objectID":"7919431","_highlightResult":{"author":{"value":"gohrt","matchLevel":"none","matchedWords":[]},"comment_text":{"value":"A perennial HN favorite<p><a href=\"https://hn.algolia.com/?q=Fibonacci+Flim-Flam#!/all/forever/0/Fibonacci%20Flim-Flam\" rel=\"nofollow\">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?q=Fibonacci+Flim-Flam#!&#x2F;all&#x2F;forever&#x2F;...</a><p>What&#x27;s fascinating about this topic is that the reposts come at intervals that approximates the Fibonacci sequence.","matchLevel":"none","matchedWords":[]},"story_title":{"value":"Fibonacci Flim-Flam","matchLevel":"none","matchedWords":[]},"story_url":{"value":"http://www.lhup.edu/~dsimanek/pseudo/fibonacc.htm","matchLevel":"none","matchedWords":[]}}}],"nbHits":1366190,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":9,"query":"","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&tags=%28comment%29"}},{"url":"/api/v1/search?hitsPerPage=1&tags=(poll)","reply":{"hits":[{"created_at":"2012-03-23T19:19:37.000Z","title":"Poll: What's Your Favorite Programming Language?","url":null,"author":"GreekOphion","points":2321,"story_text":"What's your favortie programming langauge?<p>Below are the most popular languages. If your favorite isn't below select other and comment what it is below.<p>Note: By voting for a language you are not up voting this poll. Please up vote this poll to keep it alive.","comment_text":null,"num_comments":592,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1332530377,"_tags":["poll","author_GreekOphion","story_3746692"],"objectID":"3746692","_highlightResult":{"title":{"value":"Poll: What's Your Favorite Programming Language?","matchLevel":"none","matchedWords":[]},"author":{"value":"GreekOphion","matchLevel":"none","matchedWords":[]},"story_text":{"value":"What's your favortie programming langauge?<p>Below are the most popular languages. If your favorite isn't below select other and comment what it is below.<p>Note: By voting for a language you are not up voting this poll. Please up vote this poll to keep it alive.","matchLevel":"none","matchedWords":[]}}}],"nbHits":1183,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":1,"query":"","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&tags=%28poll%29"}},{"url":"/api/v1/search_by_date?hitsPerPage=1&tags=(poll)","reply":{"hits":[{"created_at":"2014-06-19T22:45:49.000Z","title":"Poll: Do you experience \"The Hum\"?","url":null,"author":"tempestn","points":3,"story_text":"According to this article, between 2 and 10% of the population experiences &quot;The Hum&quot;, a low-frequency droning sound of indefinite source that is difficult or impossible to block out: https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7917771.<p>Do you experience this hum?","comment_text":null,"num_comments":1,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1403217949,"_tags":["poll","author_tempestn","story_7918694"],"objectID":"7918694","_highlightResult":{"title":{"value":"Poll: Do you experience \"The Hum\"?","matchLevel":"none","matchedWords":[]},"author":{"value":"tempestn","matchLevel":"none","matchedWords":[]},"story_text":{"value":"According to this article, between 2 and 10% of the population experiences &quot;The Hum&quot;, a low-frequency droning sound of indefinite source that is difficult or impossible to block out: https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7917771.<p>Do you experience this hum?","matchLevel":"none","matchedWords":[]}}}],"nbHits":1183,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":1,"query":"","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&tags=%28poll%29"}},{"url":"/api/v1/search?hitsPerPage=1&tags=(story%2Cpoll)","reply":{"hits":[{"created_at":"2011-10-05T23:42:23.000Z","title":"Steve Jobs has passed away.","url":"http://www.apple.com/stevejobs/","author":"patricktomas","points":4271,"story_text":"","comment_text":null,"num_comments":376,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1317858143,"_tags":["story","author_patricktomas","story_3078128"],"objectID":"3078128","_highlightResult":{"title":{"value":"Steve Jobs has passed away.","matchLevel":"none","matchedWords":[]},"url":{"value":"http://www.apple.com/stevejobs/","matchLevel":"none","matchedWords":[]},"author":{"value":"patricktomas","matchLevel":"none","matchedWords":[]},"story_text":{"value":"","matchLevel":"none","matchedWords":[]}}}],"nbHits":6754704,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":7,"query":"","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&tags=%28story%2Cpoll%29"}},{"url":"/api/v1/search_by_date?hitsPerPage=1&tags=(story%2Cpoll)","reply":{"hits":[{"created_at":"2014-06-20T03:35:46.000Z","title":"Judge says concerned about Apple, Google hiring settlement","url":"http://in.reuters.com/article/2014/06/19/apple-google-settlement-idINL2N0P01ZI20140619","author":"bradleyjg","points":1,"story_text":"","comment_text":null,"num_comments":0,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1403235346,"_tags":["story","author_bradleyjg","story_7919424"],"objectID":"7919424","_highlightResult":{"title":{"value":"Judge says concerned about Apple, Google hiring settlement","matchLevel":"none","matchedWords":[]},"url":{"value":"http://in.reuters.com/article/2014/06/19/apple-google-settlement-idINL2N0P01ZI20140619","matchLevel":"none","matchedWords":[]},"author":{"value":"bradleyjg","matchLevel":"none","matchedWords":[]},"story_text":{"value":"","matchLevel":"none","matchedWords":[]}}}],"nbHits":646496,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":8,"query":"","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&tags=%28story%2Cpoll%29"}},{"url":"/api/v1/search?hitsPerPage=1&tags=(story)","reply":{"hits":[{"created_at":"2011-10-05T23:42:23.000Z","title":"Steve Jobs has passed away.","url":"http://www.apple.com/stevejobs/","author":"patricktomas","points":4271,"story_text":"","comment_text":null,"num_comments":376,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1317858143,"_tags":["story","author_patricktomas","story_3078128"],"objectID":"3078128","_highlightResult":{"title":{"value":"Steve Jobs has passed away.","matchLevel":"none","matchedWords":[]},"url":{"value":"http://www.apple.com/stevejobs/","matchLevel":"none","matchedWords":[]},"author":{"value":"patricktomas","matchLevel":"none","matchedWords":[]},"story_text":{"value":"","matchLevel":"none","matchedWords":[]}}}],"nbHits":6731683,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":7,"query":"","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&tags=%28story%29"}},{"url":"/api/v1/search_by_date?hitsPerPage=1&tags=(story)","reply":{"hits":[{"created_at":"2014-06-20T03:35:46.000Z","title":"Judge says concerned about Apple, Google hiring settlement","url":"http://in.reuters.com/article/2014/06/19/apple-google-settlement-idINL2N0P01ZI20140619","author":"bradleyjg","points":1,"story_text":"","comment_text":null,"num_comments":0,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1403235346,"_tags":["story","author_bradleyjg","story_7919424"],"objectID":"7919424","_highlightResult":{"title":{"value":"Judge says concerned about Apple, Google hiring settlement","matchLevel":"none","matchedWords":[]},"url":{"value":"http://in.reuters.com/article/2014/06/19/apple-google-settlement-idINL2N0P01ZI20140619","matchLevel":"none","matchedWords":[]},"author":{"value":"bradleyjg","matchLevel":"none","matchedWords":[]},"story_text":{"value":"","matchLevel":"none","matchedWords":[]}}}],"nbHits":646269,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":7,"query":"","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&tags=%28story%29"}},{"url":"/api/v1/items/17","reply":{"id":17,"created_at":"2006-10-09T19:52:45.000Z","created_at_i":1160423565,"type":"comment","author":"pg","text":"<p>Is there anywhere to eat on Sandhill Road?</p>","points":5,"parent_id":15,"story_id":1,"children":[{"id":1079,"created_at":"2007-02-25T22:18:23.000Z","created_at_i":1172441903,"type":"comment","author":"dmon","text":"<p>sure</p>","points":4,"parent_id":17,"story_id":1,"children":[]},{"id":454426,"created_at":"2009-01-28T20:32:27.000Z","created_at_i":1233174747,"type":"comment","author":"Arrington","text":"<p>This is why we can't have nice things.</p>","points":1,"parent_id":17,"story_id":1,"children":[]}]}},{"url":"/api/v1/users/pg","reply":{"id":623037,"username":"pg","about":"Bug fixer.","karma":154666,"created_at":"2006-10-09T18:21:32.000Z","avg":14.113636363636363,"submission_count":643,"comment_count":8790,"created_at_i":1160418092,"objectID":"pg"}},{"url":"/api/v1/search?hitsPerPage=1&tags=(comment)%2Cauthor_pg","reply":{"hits":[{"created_at":"2013-11-01T05:18:12.000Z","title":"","url":"","author":"pg","points":293,"story_text":null,"comment_text":"It&#x27;s a little early to say for sure, but I predict this will do more to hurt Apple&#x27;s reputation in the tech community than anything they&#x27;ve done before. And that is not a good community to alienate. I would not be surprised if they look back on this move one day and feel that they ended up net worse off as a result.<p>Apple used to be careful not to alienate hackers. And Microsoft has been gradually digging itself out of a hole in that respect for several years. Now in my mind they are both the enemy.","num_comments":null,"story_id":6651704,"story_title":"Patent war goes nuclear: Microsoft, Apple-owned Rockstar sues Google","story_url":"http://arstechnica.com/tech-policy/2013/10/patent-war-goes-nuclear-microsoft-apple-owned-rockstar-sues-google/","parent_id":6651704,"created_at_i":1383283092,"_tags":["comment","author_pg","story_6651704"],"objectID":"6651926","_highlightResult":{"title":{"value":"","matchLevel":"none","matchedWords":[]},"url":{"value":"","matchLevel":"none","matchedWords":[]},"author":{"value":"pg","matchLevel":"none","matchedWords":[]},"comment_text":{"value":"It&#x27;s a little early to say for sure, but I predict this will do more to hurt Apple&#x27;s reputation in the tech community than anything they&#x27;ve done before. And that is not a good community to alienate. I would not be surprised if they look back on this move one day and feel that they ended up net worse off as a result.<p>Apple used to be careful not to alienate hackers. And Microsoft has been gradually digging itself out of a hole in that respect for several years. Now in my mind they are both the enemy.","matchLevel":"none","matchedWords":[]},"story_title":{"value":"Patent war goes nuclear: Microsoft, Apple-owned Rockstar sues Google","matchLevel":"none","matchedWords":[]},"story_url":{"value":"http://arstechnica.com/tech-policy/2013/10/patent-war-goes-nuclear-microsoft-apple-owned-rockstar-sues-google/","matchLevel":"none","matchedWords":[]}}}],"nbHits":8789,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":17,"query":"","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&tags=%28comment%29%2Cauthor_pg"}},{"url":"/api/v1/search_by_date?hitsPerPage=1&tags=(comment)%2Cauthor_pg","reply":{"hits":[{"created_at":"2014-03-30T00:12:35.000Z","title":null,"url":null,"author":"pg","points":8,"story_text":null,"comment_text":"Is there a forum that doesn&#x27;t ban people?","num_comments":null,"story_id":7493856,"story_title":"Meet the People Taking over Hacker News","story_url":"http://blog.ycombinator.com/meet-the-people-taking-over-hacker-news","parent_id":7494175,"created_at_i":1396138355,"_tags":["comment","author_pg","story_7493856"],"objectID":"7494555","_highlightResult":{"author":{"value":"pg","matchLevel":"none","matchedWords":[]},"comment_text":{"value":"Is there a forum that doesn&#x27;t ban people?","matchLevel":"none","matchedWords":[]},"story_title":{"value":"Meet the People Taking over Hacker News","matchLevel":"none","matchedWords":[]},"story_url":{"value":"http://blog.ycombinator.com/meet-the-people-taking-over-hacker-news","matchLevel":"none","matchedWords":[]}}}],"nbHits":8789,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":17,"query":"","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&tags=%28comment%29%2Cauthor_pg"}},{"url":"/api/v1/search?hitsPerPage=1&tags=(poll)%2Cauthor_pg","reply":{"hits":[{"created_at":"2011-05-29T01:13:53.000Z","title":"Poll: Should HN display comment scores?","url":null,"author":"pg","points":606,"story_text":"It's now been long enough since I hid comment scores that we know\\nwhat the site will be like without them. Do you prefer the site\\nnow or the way it used to be?<p>I hid comment scores after tptacek suggested it as a way to reduce\\narguments. There was a nasty kind of argument that used to happen,\\nwhere people would literally try to score points off one another,\\nand users voting on the thread became like a mob egging on two\\npeople fighting. I prefer HN without comment scores, because those\\nfights really disturbed me, and they've practically gone away since\\nI hid comment scores.<p>I realize there is another side to the story, though. Lots of\\npeople have complained that without comment scores it's harder to\\npick out the good comments. Some say that's better, because now\\nyou have to judge a comment for itself. On the other hand, with\\nsufficient discipline one could presumably judge a comment for\\nitself despite seeing the score.<p>Last time I tried asking this question, the voting was roughly even.\\nI'm curious if there has been any drift toward a consensus.","comment_text":null,"num_comments":280,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1306631633,"_tags":["poll","author_pg","story_2595605"],"objectID":"2595605","_highlightResult":{"title":{"value":"Poll: Should HN display comment scores?","matchLevel":"none","matchedWords":[]},"author":{"value":"pg","matchLevel":"none","matchedWords":[]},"story_text":{"value":"It's now been long enough since I hid comment scores that we know\\nwhat the site will be like without them. Do you prefer the site\\nnow or the way it used to be?<p>I hid comment scores after tptacek suggested it as a way to reduce\\narguments. There was a nasty kind of argument that used to happen,\\nwhere people would literally try to score points off one another,\\nand users voting on the thread became like a mob egging on two\\npeople fighting. I prefer HN without comment scores, because those\\nfights really disturbed me, and they've practically gone away since\\nI hid comment scores.<p>I realize there is another side to the story, though. Lots of\\npeople have complained that without comment scores it's harder to\\npick out the good comments. Some say that's better, because now\\nyou have to judge a comment for itself. On the other hand, with\\nsufficient discipline one could presumably judge a comment for\\nitself despite seeing the score.<p>Last time I tried asking this question, the voting was roughly even.\\nI'm curious if there has been any drift toward a consensus.","matchLevel":"none","matchedWords":[]}}}],"nbHits":11,"page":0,"nbPages":11,"hitsPerPage":1,"processingTimeMS":1,"query":"","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&tags=%28poll%29%2Cauthor_pg"}},{"url":"/api/v1/search_by_date?hitsPerPage=1&tags=(poll)%2Cauthor_pg","reply":{"hits":[{"created_at":"2013-05-01T21:40:59.000Z","title":"Poll: Do you have a 3d printer?","url":null,"author":"pg","points":180,"story_text":"","comment_text":null,"num_comments":276,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1367444459,"_tags":["poll","author_pg","story_5640988"],"objectID":"5640988","_highlightResult":{"title":{"value":"Poll: Do you have a 3d printer?","matchLevel":"none","matchedWords":[]},"author":{"value":"pg","matchLevel":"none","matchedWords":[]},"story_text":{"value":"","matchLevel":"none","matchedWords":[]}}}],"nbHits":11,"page":0,"nbPages":11,"hitsPerPage":1,"processingTimeMS":1,"query":"","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&tags=%28poll%29%2Cauthor_pg"}},{"url":"/api/v1/search?hitsPerPage=1&tags=(story)%2Cauthor_pg","reply":{"hits":[{"created_at":"2013-02-18T18:26:05.000Z","title":"Why HN was down","url":"","author":"pg","points":1027,"story_text":"Hacker News was down all last night. The problem was not due to\nthe new server. In fact the cause was embarrassingly stupid.<p>On a comment thread, a new user had posted some replies as siblings\ninstead of children. I posted a comment explaining how HN worked.\nBut then I decided to just fix it for him by doing some surgery in\nthe repl. Unfortunately I used the wrong id for one of the comments\nand created a loop in the comment tree; I caused an item to be its\nown grandchild. After which, when anyone tried to view the thread,\nthe server would try to generate an infinitely long page. The\nstory in question was on the frontpage, so this happened a lot.<p>For some reason I didn't check the comments after the surgery to\nsee if they were in the right place. I must have been distracted\nby something. So I didn't notice anything was wrong till a bit\nlater when the server seemed to be swamped.<p>When I tailed the logs to see what was going on, the pattern looked\na lot like what happens when HN runs short of memory and starts\nGCing too much. Whether it was that or something else, such problems\ncan usually be fixed by restarting HN. So that's what I did. But\nfirst, since I had been writing code that day, I pushed the latest\nversion to the server. As long as I was going to have to restart\nHN, I might as well get a fresh version.<p>After I restarted HN, the problem was still there. So I guessed\nthe problem must be due to something in the code I'd written that\nday, and tried reverting to the previous version, and restarting the\nserver again. But the problem was still there. Then we (because\nby this point I'd managed to get hold of Nick Sivo, YC's hacker in\nresidence) tried reverting to the version of HN that was on the old\nserver, and that didn't work either. We knew that code had worked\nfine, so we figured the problem must be with the new server. So\nwe tried to switch back to the old server. I don't know if Nick\nsucceeded, because in the middle of this I gave up and went to bed.<p>When I woke up this morning, Rtm had HN running on the new server.\nThe bad thread was still there, but it had been pushed off the\nfrontpage by newer stuff. So HN as a whole wasn't dying, but there\nwere still signs something was amiss, e.g. that /threads?id=pg\ndidn't work, because of the comment I made on the thread with the\nloop in it.<p>Eventually Rtm noticed that the problem seemed to be related to a\ncertain item id. When I looked at the item on disk I realized what\nmust have happened.<p>So I did some more surgery in the repl, this time more carefully,\nand everything seems fine now.<p>Sorry about that.","comment_text":null,"num_comments":292,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1361211965,"_tags":["story","author_pg","story_5239673"],"objectID":"5239673","_highlightResult":{"title":{"value":"Why HN was down","matchLevel":"none","matchedWords":[]},"url":{"value":"","matchLevel":"none","matchedWords":[]},"author":{"value":"pg","matchLevel":"none","matchedWords":[]},"story_text":{"value":"Hacker News was down all last night. The problem was not due to\nthe new server. In fact the cause was embarrassingly stupid.<p>On a comment thread, a new user had posted some replies as siblings\ninstead of children. I posted a comment explaining how HN worked.\nBut then I decided to just fix it for him by doing some surgery in\nthe repl. Unfortunately I used the wrong id for one of the comments\nand created a loop in the comment tree; I caused an item to be its\nown grandchild. After which, when anyone tried to view the thread,\nthe server would try to generate an infinitely long page. The\nstory in question was on the frontpage, so this happened a lot.<p>For some reason I didn't check the comments after the surgery to\nsee if they were in the right place. I must have been distracted\nby something. So I didn't notice anything was wrong till a bit\nlater when the server seemed to be swamped.<p>When I tailed the logs to see what was going on, the pattern looked\na lot like what happens when HN runs short of memory and starts\nGCing too much. Whether it was that or something else, such problems\ncan usually be fixed by restarting HN. So that's what I did. But\nfirst, since I had been writing code that day, I pushed the latest\nversion to the server. As long as I was going to have to restart\nHN, I might as well get a fresh version.<p>After I restarted HN, the problem was still there. So I guessed\nthe problem must be due to something in the code I'd written that\nday, and tried reverting to the previous version, and restarting the\nserver again. But the problem was still there. Then we (because\nby this point I'd managed to get hold of Nick Sivo, YC's hacker in\nresidence) tried reverting to the version of HN that was on the old\nserver, and that didn't work either. We knew that code had worked\nfine, so we figured the problem must be with the new server. So\nwe tried to switch back to the old server. I don't know if Nick\nsucceeded, because in the middle of this I gave up and went to bed.<p>When I woke up this morning, Rtm had HN running on the new server.\nThe bad thread was still there, but it had been pushed off the\nfrontpage by newer stuff. So HN as a whole wasn't dying, but there\nwere still signs something was amiss, e.g. that /threads?id=pg\ndidn't work, because of the comment I made on the thread with the\nloop in it.<p>Eventually Rtm noticed that the problem seemed to be related to a\ncertain item id. When I looked at the item on disk I realized what\nmust have happened.<p>So I did some more surgery in the repl, this time more carefully,\nand everything seems fine now.<p>Sorry about that.","matchLevel":"none","matchedWords":[]}}}],"nbHits":632,"page":0,"nbPages":632,"hitsPerPage":1,"processingTimeMS":3,"query":"","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&tags=%28story%29%2Cauthor_pg"}},{"url":"/api/v1/search_by_date?hitsPerPage=1&tags=(story)%2Cauthor_pg","reply":{"hits":[{"created_at":"2014-03-29T20:43:24.000Z","title":"Meet the People Taking over Hacker News","url":"http://blog.ycombinator.com/meet-the-people-taking-over-hacker-news","author":"pg","points":578,"story_text":"","comment_text":null,"num_comments":290,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1396125804,"_tags":["story","author_pg","story_7493856"],"objectID":"7493856","_highlightResult":{"title":{"value":"Meet the People Taking over Hacker News","matchLevel":"none","matchedWords":[]},"url":{"value":"http://blog.ycombinator.com/meet-the-people-taking-over-hacker-news","matchLevel":"none","matchedWords":[]},"author":{"value":"pg","matchLevel":"none","matchedWords":[]},"story_text":{"value":"","matchLevel":"none","matchedWords":[]}}}],"nbHits":632,"page":0,"nbPages":632,"hitsPerPage":1,"processingTimeMS":3,"query":"","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&tags=%28story%29%2Cauthor_pg"}},{"url":"/api/v1/search?hitsPerPage=1&tags=(comment)&query=apple","reply":{"hits":[{"created_at":"2013-11-01T05:18:12.000Z","title":"","url":"","author":"pg","points":293,"story_text":null,"comment_text":"It&#x27;s a little early to say for sure, but I predict this will do more to hurt Apple&#x27;s reputation in the tech community than anything they&#x27;ve done before. And that is not a good community to alienate. I would not be surprised if they look back on this move one day and feel that they ended up net worse off as a result.<p>Apple used to be careful not to alienate hackers. And Microsoft has been gradually digging itself out of a hole in that respect for several years. Now in my mind they are both the enemy.","num_comments":null,"story_id":6651704,"story_title":"Patent war goes nuclear: Microsoft, Apple-owned Rockstar sues Google","story_url":"http://arstechnica.com/tech-policy/2013/10/patent-war-goes-nuclear-microsoft-apple-owned-rockstar-sues-google/","parent_id":6651704,"created_at_i":1383283092,"_tags":["comment","author_pg","story_6651704"],"objectID":"6651926","_highlightResult":{"title":{"value":"","matchLevel":"none","matchedWords":[]},"url":{"value":"","matchLevel":"none","matchedWords":[]},"author":{"value":"pg","matchLevel":"none","matchedWords":[]},"comment_text":{"value":"It&#x27;s a little early to say for sure, but I predict this will do more to hurt <em>Apple</em>&#x27;s reputation in the tech community than anything they&#x27;ve done before. And that is not a good community to alienate. I would not be surprised if they look back on this move one day and feel that they ended up net worse off as a result.<p><em>Apple</em> used to be careful not to alienate hackers. And Microsoft has been gradually digging itself out of a hole in that respect for several years. Now in my mind they are both the enemy.","matchLevel":"full","matchedWords":["apple"]},"story_title":{"value":"Patent war goes nuclear: Microsoft, <em>Apple</em>-owned Rockstar sues Google","matchLevel":"full","matchedWords":["apple"]},"story_url":{"value":"http://arstechnica.com/tech-policy/2013/10/patent-war-goes-nuclear-microsoft-<em>apple</em>-owned-rockstar-sues-google/","matchLevel":"full","matchedWords":["apple"]}}}],"nbHits":191248,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":11,"query":"apple","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&query=apple&tags=%28comment%29"}},{"url":"/api/v1/search_by_date?hitsPerPage=1&tags=(comment)&query=apple","reply":{"hits":[{"created_at":"2014-06-20T03:32:34.000Z","title":null,"url":null,"author":"fleitz","points":1,"story_text":null,"comment_text":"Yeah the article seems stupid, while technically they aren&#x27;t contributing to the <i>scholarship</i> they do pay tuition for the last 2 years.<p>I&#x27;m not the biggest fan of starbucks, mostly because their coffee doesn&#x27;t taste that good, however, I don&#x27;t why what they&#x27;ve done shouldn&#x27;t be applauded.<p>It&#x27;s kinda funny that I see more people upset about the business practices of Starbucks&#x2F;Wal-Mart than Lockheed Martin.","num_comments":null,"story_id":7918547,"story_title":"Starbucks admits it's not contributing to scholarship fund","story_url":"http://www.komonews.com/news/local/Starbucks-admits-its-not-contributing-to-hyped-scholarships-263837031.html","parent_id":7919290,"created_at_i":1403235154,"_tags":["comment","author_fleitz","story_7918547"],"objectID":"7919418","_highlightResult":{"author":{"value":"fleitz","matchLevel":"none","matchedWords":[]},"comment_text":{"value":"Yeah the article seems stupid, while technically they aren&#x27;t contributing to the <i>scholarship</i> they do pay tuition for the last 2 years.<p>I&#x27;m not the biggest fan of starbucks, mostly because their coffee doesn&#x27;t taste that good, however, I don&#x27;t why what they&#x27;ve done shouldn&#x27;t be <em>appla</em>uded.<p>It&#x27;s kinda funny that I see more people upset about the business practices of Starbucks&#x2F;Wal-Mart than Lockheed Martin.","matchLevel":"full","matchedWords":["apple"]},"story_title":{"value":"Starbucks admits it's not contributing to scholarship fund","matchLevel":"none","matchedWords":[]},"story_url":{"value":"http://www.komonews.com/news/local/Starbucks-admits-its-not-contributing-to-hyped-scholarships-263837031.html","matchLevel":"none","matchedWords":[]}}}],"nbHits":106472,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":14,"query":"apple","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&query=apple&tags=%28comment%29"}},{"url":"/api/v1/search?hitsPerPage=1&tags=(poll)&query=apple","reply":{"hits":[{"created_at":"2009-06-09T18:56:10.000Z","title":"Poll: App rejected. Is this offensive? Seriously Apple?","url":null,"author":"sayhello","points":11,"story_text":"Our second attempt at the submission of the free version of our app, Comicstrips Lite got rejected again.<p>The first time was acceptable, but this time, they seem to be pushing it. They rejected the app due to the content linked below.<p>http://getcomicstrips.com/public/img_0067.png<p>It does not seem to me that it is \"obscene, pornographic, offensive or defamatory\". Wolfenstein 3D is on the app store and got approved and is <i>way</i> more violent.<p>Am I missing something here? Comments are most welcome.","comment_text":null,"num_comments":26,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1244573770,"_tags":["poll","author_sayhello","story_649663"],"objectID":"649663","_highlightResult":{"title":{"value":"Poll: App rejected. Is this offensive? Seriously <em>Apple</em>?","matchLevel":"full","matchedWords":["apple"]},"author":{"value":"sayhello","matchLevel":"none","matchedWords":[]},"story_text":{"value":"Our second attempt at the submission of the free version of our app, Comicstrips Lite got rejected again.<p>The first time was acceptable, but this time, they seem to be pushing it. They rejected the app due to the content linked below.<p>http://getcomicstrips.com/public/img_0067.png<p>It does not seem to me that it is \"obscene, pornographic, offensive or defamatory\". Wolfenstein 3D is on the app store and got approved and is <i>way</i> more violent.<p>Am I missing something here? Comments are most welcome.","matchLevel":"none","matchedWords":[]}}}],"nbHits":17,"page":0,"nbPages":17,"hitsPerPage":1,"processingTimeMS":3,"query":"apple","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&query=apple&tags=%28poll%29"}},{"url":"/api/v1/search_by_date?hitsPerPage=1&tags=(poll)&query=apple","reply":{"hits":[{"created_at":"2013-10-24T12:53:37.000Z","title":"Poll: Which iPad(s) do you use?","url":null,"author":"oneeyedpigeon","points":1,"story_text":"In 3.5 years, Apple has released a whopping 7 models of iPad. As a (frustrated) user of the 1st generation iPad, I often feel like I&#x27;m part of a tiny minority. Sales figures and usage stats by individual model are hard to come by, so I&#x27;m interested in which models HN readers regularly use.","comment_text":null,"num_comments":0,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1382619217,"_tags":["poll","author_oneeyedpigeon","story_6604931"],"objectID":"6604931","_highlightResult":{"title":{"value":"Poll: Which iPad(s) do you use?","matchLevel":"none","matchedWords":[]},"author":{"value":"oneeyedpigeon","matchLevel":"none","matchedWords":[]},"story_text":{"value":"In 3.5 years, <em>Apple</em> has released a whopping 7 models of iPad. As a (frustrated) user of the 1st generation iPad, I often feel like I&#x27;m part of a tiny minority. Sales figures and usage stats by individual model are hard to come by, so I&#x27;m interested in which models HN readers regularly use.","matchLevel":"full","matchedWords":["apple"]}}}],"nbHits":17,"page":0,"nbPages":17,"hitsPerPage":1,"processingTimeMS":3,"query":"apple","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&query=apple&tags=%28poll%29"}},{"url":"/api/v1/search?hitsPerPage=1&tags=(story%2Cpoll)&query=apple","reply":{"hits":[{"created_at":"2011-08-24T22:37:35.000Z","title":"Steve Jobs Resigns as CEO of Apple","url":"http://finance.yahoo.com/news/Steve-Jobs-Resigns-as-CEO-of-bw-19285464.html?x=0&.v=1","author":"taylorbuley","points":1638,"story_text":"","comment_text":null,"num_comments":308,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1314225455,"_tags":["story","author_taylorbuley","story_2922756"],"objectID":"2922756","_highlightResult":{"title":{"value":"Steve Jobs Resigns as CEO of <em>Apple</em>","matchLevel":"full","matchedWords":["apple"]},"url":{"value":"http://finance.yahoo.com/news/Steve-Jobs-Resigns-as-CEO-of-bw-19285464.html?x=0&.v=1","matchLevel":"none","matchedWords":[]},"author":{"value":"taylorbuley","matchLevel":"none","matchedWords":[]},"story_text":{"value":"","matchLevel":"none","matchedWords":[]}}}],"nbHits":27717,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":10,"query":"apple","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&query=apple&tags=%28story%2Cpoll%29"}},{"url":"/api/v1/search_by_date?hitsPerPage=1&tags=(story%2Cpoll)&query=apple","reply":{"hits":[{"created_at":"2014-06-20T03:35:46.000Z","title":"Judge says concerned about Apple, Google hiring settlement","url":"http://in.reuters.com/article/2014/06/19/apple-google-settlement-idINL2N0P01ZI20140619","author":"bradleyjg","points":1,"story_text":"","comment_text":null,"num_comments":0,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1403235346,"_tags":["story","author_bradleyjg","story_7919424"],"objectID":"7919424","_highlightResult":{"title":{"value":"Judge says concerned about <em>Apple</em>, Google hiring settlement","matchLevel":"full","matchedWords":["apple"]},"url":{"value":"http://in.reuters.com/article/2014/06/19/<em>apple</em>-google-settlement-idINL2N0P01ZI20140619","matchLevel":"full","matchedWords":["apple"]},"author":{"value":"bradleyjg","matchLevel":"none","matchedWords":[]},"story_text":{"value":"","matchLevel":"none","matchedWords":[]}}}],"nbHits":23819,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":14,"query":"apple","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&query=apple&tags=%28story%2Cpoll%29"}},{"url":"/api/v1/search?hitsPerPage=1&tags=(story)&query=apple","reply":{"hits":[{"created_at":"2011-08-24T22:37:35.000Z","title":"Steve Jobs Resigns as CEO of Apple","url":"http://finance.yahoo.com/news/Steve-Jobs-Resigns-as-CEO-of-bw-19285464.html?x=0&.v=1","author":"taylorbuley","points":1638,"story_text":"","comment_text":null,"num_comments":308,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1314225455,"_tags":["story","author_taylorbuley","story_2922756"],"objectID":"2922756","_highlightResult":{"title":{"value":"Steve Jobs Resigns as CEO of <em>Apple</em>","matchLevel":"full","matchedWords":["apple"]},"url":{"value":"http://finance.yahoo.com/news/Steve-Jobs-Resigns-as-CEO-of-bw-19285464.html?x=0&.v=1","matchLevel":"none","matchedWords":[]},"author":{"value":"taylorbuley","matchLevel":"none","matchedWords":[]},"story_text":{"value":"","matchLevel":"none","matchedWords":[]}}}],"nbHits":27714,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":9,"query":"apple","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&query=apple&tags=%28story%29"}},{"url":"/api/v1/search_by_date?hitsPerPage=1&tags=(story)&query=apple","reply":{"hits":[{"created_at":"2014-06-20T03:35:46.000Z","title":"Judge says concerned about Apple, Google hiring settlement","url":"http://in.reuters.com/article/2014/06/19/apple-google-settlement-idINL2N0P01ZI20140619","author":"bradleyjg","points":1,"story_text":"","comment_text":null,"num_comments":0,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1403235346,"_tags":["story","author_bradleyjg","story_7919424"],"objectID":"7919424","_highlightResult":{"title":{"value":"Judge says concerned about <em>Apple</em>, Google hiring settlement","matchLevel":"full","matchedWords":["apple"]},"url":{"value":"http://in.reuters.com/article/2014/06/19/<em>apple</em>-google-settlement-idINL2N0P01ZI20140619","matchLevel":"full","matchedWords":["apple"]},"author":{"value":"bradleyjg","matchLevel":"none","matchedWords":[]},"story_text":{"value":"","matchLevel":"none","matchedWords":[]}}}],"nbHits":23818,"page":0,"nbPages":1000,"hitsPerPage":1,"processingTimeMS":21,"query":"apple","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&query=apple&tags=%28story%29"}},{"url":"/api/v1/search?hitsPerPage=1&tags=(ask_hn)&page=2&query=apple","reply":{"hits":[{"created_at":"2010-04-11T05:01:43.000Z","title":"Ask HN: How many people upset over Apple's rules are actually iPhone developers?","url":"","author":"jasongullickson","points":57,"story_text":"It would be interesting to know what percentage of the people in uproar about the new no-cross-compiling rules are actually developers for the platform (who are affected by the rules) and what percentage are developers of other platforms, or not developers at all?","comment_text":null,"num_comments":84,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1270962103,"_tags":["story","author_jasongullickson","story_1256391","ask_hn"],"objectID":"1256391","_highlightResult":{"title":{"value":"Ask HN: How many people upset over <em>Apple</em>'s rules are actually iPhone developers?","matchLevel":"full","matchedWords":["apple"]},"url":{"value":"","matchLevel":"none","matchedWords":[]},"author":{"value":"jasongullickson","matchLevel":"none","matchedWords":[]},"story_text":{"value":"It would be interesting to know what percentage of the people in uproar about the new no-cross-compiling rules are actually developers for the platform (who are affected by the rules) and what percentage are developers of other platforms, or not developers at all?","matchLevel":"none","matchedWords":[]}}}],"nbHits":849,"page":2,"nbPages":849,"hitsPerPage":1,"processingTimeMS":4,"query":"apple","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&page=2&query=apple&tags=%28ask_hn%29"}},{"url":"/api/v1/search_by_date?hitsPerPage=1&tags=(ask_hn)&page=2&query=apple","reply":{"hits":[{"created_at":"2014-06-19T09:53:30.000Z","title":"Ask HN: How can I get Swag from Startups?","url":"","author":"techidse","points":1,"story_text":"\\tHello HN,\\nI&#x27;m a college student from India. Is there a way to get swag from start ups or other companies to wear College. I&#x27;m in not the best financial conditions. So, I would appreciate if anyone helps me. I will tweet my picture with the swag when received :) Thanks","comment_text":null,"num_comments":3,"story_id":null,"story_title":null,"story_url":null,"parent_id":null,"created_at_i":1403171610,"_tags":["story","author_techidse","story_7915384","ask_hn"],"objectID":"7915384","_highlightResult":{"title":{"value":"Ask HN: How can I get Swag from Startups?","matchLevel":"none","matchedWords":[]},"url":{"value":"","matchLevel":"none","matchedWords":[]},"author":{"value":"techidse","matchLevel":"none","matchedWords":[]},"story_text":{"value":"\\tHello HN,\\nI&#x27;m a college student from India. Is there a way to get swag from start ups or other companies to wear College. I&#x27;m in not the best financial conditions. So, I would <em>appre</em>ciate if anyone helps me. I will tweet my picture with the swag when received :) Thanks","matchLevel":"full","matchedWords":["apple"]}}}],"nbHits":849,"page":2,"nbPages":849,"hitsPerPage":1,"processingTimeMS":10,"query":"apple","params":"advancedSyntax=true&analytics=false&hitsPerPage=1&page=2&query=apple&tags=%28ask_hn%29"}}]