Tell HN: Sorry I broke the server

159 points by dang 11 years ago

Experimenting with some code this evening and got so into it, I didn't notice that I broke story submission for two hours. Argh!

Sorry everyone.

Edit: While you're here... you can now view the comments you've upvoted by clicking on "saved comments" in your profile. It works like "saved stories". Thanks to porker for the suggestion: https://news.ycombinator.com/item?id=9050374.

jacquesm 11 years ago

Where there's people working there are bound to be mistakes. Don't sweat it, this is a free service after all and the service level for a non-advertising supported free service is absolutely incredible. I'd be more than happy to pay for HN as it is, you guys are doing a better job than most paid services when it comes to customer support, uptime and courtesy combined.

  • mintplant 11 years ago

    Seriously. I use HN as my "am I connected to the internet?" check, as it always loads instantly even when Google takes a while.

    • ponytech 11 years ago

      I personally use : http://perdu.com (up since 1998) Which translate into:

      Lost on the Internet? Don't worry, we will help * <----- you are here

      • tux3 11 years ago

        I'd love to see their stats. They have basically 0 content and I hit them 10 times a day.

      • imjustsaying 11 years ago

        What fast IP do you use when you suspect you're connected to the internet but can't resolve DNS? I'm looking for a good non-Google IP (because China)

        • nitrogen 11 years ago

          Level3's DNS is easy to remember at 4.2.2.1. Or is that Verizon's?

          • wattengard 11 years ago

            Or google's at 8.8.8.8 and 8.8.4.4 ?

          • vinceguidry 11 years ago

            You should only use 4.2.2.1 or 4.2.2.2 if you're an actual Level3 customer. While they do respond to public requests, they're not intended for public use, unlike Google's 8.8.8.8 and 8.8.4.4 servers.

            • userbinator 11 years ago

              https://news.ycombinator.com/item?id=7120248

              Level3's VP says they're public.

              (They go up to 4.2.2.6 too, I think.)

              • nitrogen 11 years ago

                Interesting. I seen to remember that at one point the reverse lookup for one of the 4.2.2.x addresses was "dont-steal-service-etc.somebody". I just send an ICMP ping when I need an IP to check a connection. I also seem to recall reading that the 4.2.2.x resolvers were multi-homed, but in both cases my memory could be faulty.

        • pcl 11 years ago

          I still ping the IP address of my college's DNS server, all these years later. Muscle memory dies hard.

    • iamwithnail 11 years ago

      Hah, glad it's not just me. It's also the thing I hit if I'm trying to think of what I was doing/am idle for a moment... typing 'news.' just seems to flow from my fingers if they're unoccupied.

      • mintplant 11 years ago

        Yep, same for me. I'll be staring at the screen in thought, then up pops a Hacker News tab.

      • vehementi 11 years ago

        I have this habit too and it's deeply disturbing. Actively fighting it!

        • megalodon 11 years ago

          Why fight it? Visiting a technological/intellectual inspiration source definitely goes in my list of positive habits.

          • mod 11 years ago

            For me, because it can consume my entire workday. Has done that today, really.

      • joefreeman 11 years ago

        Ctrl-T, N, Enter :/

        • asadlionpk 11 years ago

          same here, I visit this site so much that only typing 'N' does the job.

          • crystalclaw 11 years ago

            Ditto. Done with catching up on other stuff? CMD-T n enter. When it's perpetual tab gets closed, that is.

      • thomasfoster96 11 years ago

        There used to be a race between Google news (news.google.com) and Hacker News to be the top suggestion for me, hacker news has pulled away to a strong lead recently.

    • bpodgursky 11 years ago

      I use HN because I can never trust whether anymore whether Google is really loading from a remote source or is just doing some aggressive caching magic (or whether Chrome just has the Google homepage baked in now).

    • logn 11 years ago

      In terms of uptime, HN has been hosted on a single server (until recently... I saw mention of a failover server). If you are just looking for a lightweight site to load, example.com is great.

    • dredmorbius 11 years ago

      Might want to spread that out over a few sites. Any one can go down.

      Alexa's top 10 sites is usually a pretty good set.

  • math 11 years ago

    it's perhaps worth remembering the service isn't 100% altruistic... though I agree it is indeed awesome and I'd probably be happy to pay for it too.

    • akshatpradhan 11 years ago

      Could you give some good examples of 100% altruistic?

      • Intermernet 11 years ago

        These are probably debatable, but I'd suggest Wikipedia and Archive.org would come close.

      • spacemanmatt 11 years ago

        groklaw.net was close enough for me.

  • switz 11 years ago

    Hacker News is most definitely supported by ads. Perhaps you just don't realize it.

    https://news.ycombinator.com/jobs

    • thomasfoster96 11 years ago

      I'm fairly certain those companies don't pay for those job listings.

      • smackfu 11 years ago

        Just because they give them out for free (to a very small specific group of companies) doesn't mean they don't have value.

        • thomasfoster96 11 years ago

          Oh yes they certainly have value - but Those job listings aren't ads that pay for servers and bandwidth for hacker news.

          • eli 11 years ago

            Depends how you look at it.

          • benologist 11 years ago

            Whether that value directly pays for servers or intangibly-or-directly increases their own startups' value doesn't seem like an important distinction.

      • kyleblarson 11 years ago

        Well, they are YC companies so they pay YC with a pretty significant portion of their equity.

    • logicallee 11 years ago

      Sure, and Harvard is supported by ads, you just don't realize it.

      (sell an education->create wealthy people->ask them to contribute->get endowment whose returns account for the largest source of its operating revenue[1])

      but I find your semantics frankly ridiculous. yes hacker news belongs to ycombinator. but you can't just use the word ad however you want. No, not everything's an ad, and in particular you can't 'buy' a job ad on HN. It's not a good description of the situation.

      [1] http://www.harvard.edu/about-harvard/harvard-glance/endowmen... "The endowment remains the largest source of revenue supporting the University budget."

    • DadFoundMy 11 years ago

      Are you the same switz from #r/GlobalOffensive?

eterm 11 years ago

Saved comments throws an error trying to view page 2 of saved comments.

(change the below to your own ID ofc.)

https://news.ycombinator.com/saved?id=eterm&comments=yes&p=2

Actually, it looks like page 2 of saved stories also breaks? Is it just finding something not cached and the site is currently broken for non-cached content?

  • kogir 11 years ago

    Thanks! We were trying to track down an error message we were seeing, and you found it.

colinramsay 11 years ago

That's ok - you did it while I was asleep :)

I seem to remember that last year there was talk of re-doing the markup for HN so that it would be more mobile-friendly. What came of that idea?

  • dang 11 years ago

    We've been working on it lately and don't expect it to take too much longer, so stay tuned.

kogir 11 years ago

And I missed it in code review and testing. Sorry!

  • kogir 11 years ago

    And now I'm doubling down. HN is once again running an entirely new HTTP pipeline.

    Please let us know if you run into any issues, especially related to cookies and logging in/out.

deanclatworthy 11 years ago

When is the responsive style sheet coming :)?

  • aw3c2 11 years ago

    Oh lord, I hope it will not force some annoyingly huge text on us. I am perfectly happy with the site as it is, works well with text-reflow.

    • partisan 11 years ago

      Agreed. I am free to zoom around and scroll through as much as I want right now and makes it very easy for me to use the site. Just take a look at Craigslist to see how terrible it cn be to have no ability to view all content.

    • dang 11 years ago

      As a fierce advocate for information density on Hacker News I can pretty well guarantee you it will never have annoyingly huge text.

      • aw3c2 11 years ago

        Thank you!

walterbell 11 years ago

"Saved Comments" is valuable and long wished-for, thanks for adding the feature!

Will it be possible to extract these as JSON, e.g. via the API?

  • dang 11 years ago

    Good idea. The API doesn't support all the lists (edit: and logged-in state) properly yet, and when we fix that, it should be natural to include both variants of /saved.

philsnow 11 years ago

"Stories submitted per time" seems like one of the five-ish metrics that you should always keep an eye on while making any changes in production, coming back to your desk after a coffee break, or coming in to the office in the morning.

If it is not trivial to look at these metrics (ideally you just glance up to a dashboard monitor), it would probably be a good idea to throw that together.

All of this is to say nothing of proper alerting to go with monitoring, but I mention the above because its by far easier to set up and you get a lot of bang for the buck.

All of _that_ said, thanks to dang any anybody else working on making HN better.

bencollier49 11 years ago

Nice to see test-driven development at the height of its powers. :-)

andrea_s 11 years ago

Ah, you clearly need a proper review process!

Just joking - thanks for the work you guys put in, this is definitely one of the most interesting place on the web :)

jwatte 11 years ago

If only there was some way to quickly get told when production hiccups... And if only there was some way to prove each feature works automatically... :-)

ugh123 11 years ago

You were experimenting with code on the production server? If not, do you have automated tests?

dkarapetyan 11 years ago

I noticed saved stories but why are comments showing up twice on the account page.

  • dang 11 years ago

    It's the comments you've upvoted, as opposed to those you've posted. I just changed the label to make that clearer.

    https://news.ycombinator.com/item?id=9050374

    • oneeyedpigeon 11 years ago

      It'll be interesting to see whether this has an effect on the nature of upvoting. If saved comments were slightly more structured, rather than just one big list, I could imagine them comprising some sort of 'personal knowledgebase'. In turn, that might decrease the amount of 'I agree with that' opinion upvoting, in favour of 'that's useful information'. Whether that's to be encouraged is, of course, a personal opinion.

      • dang 11 years ago

        Interesting point. HN mostly is a collection of lists. You might almost call it a list processor.

        • Intermernet 11 years ago

          What a brilliant idea! A "List Processor"!

          Oh, wait...

thisjepisje 11 years ago

Curious what effect this will have on comment upvotes.