News for hackers. Stuff that matters.
Re:Show HN: HN Replies – Get notified of replies to your com... by dangrossman on Thursday February 11, 2016 @10:27AM (#11080638)
Hi everyone. There used to be a site that did this, but it disappeared a few months ago, so I made HN Replies last night to fill the void.

I check HN's API for new comments every 10 minutes, and send an e-mail notification when a new reply to one of your comments shows up. This is what the notification mail will look like:

http://i.imgur.com/f8jaAm8.png

Re:Show HN: HN Replies – Get notified of replies to your com... by shostack on Thursday February 11, 2016 @02:04PM (#11082263)
You rock Dan! I just posted to Ask HN recently asking if there was a replacement when I noticed it go down and got crickets. Thanks for taking the initiative. You should let Jacques know so he can update his HN FAQ.

On a side note, any idea why YC doesn't bake this into the HN site itself? Dang, any comment?

Re:Show HN: HN Replies – Get notified of replies to your com... by Mithaldu on Thursday February 11, 2016 @10:38AM (#11080704)
Any chance we could get RSS feeds instead? :)
Re:Show HN: HN Replies – Get notified of replies to your com... by captn3m0 on Thursday February 11, 2016 @01:57PM (#11082190)
This would be awesome. I currently use Slack as an RSS reader (Have a dedicated channel) and it works mostly nice.
Re:Show HN: HN Replies – Get notified of replies to your com... by koralatov on Thursday February 11, 2016 @11:46AM (#11081242)
What does the plain-text notification look like? I'd guess that Hacker News probably has a pretty high proportion of users whose MUA of choice is mutt or Emacs+something.
Re:Show HN: HN Replies – Get notified of replies to your com... by dangrossman on Thursday February 11, 2016 @04:51PM (#11083562)
Re:Show HN: HN Replies – Get notified of replies to your com... by koralatov on Thursday February 11, 2016 @05:04PM (#11083658)
It doesn't seem to parse links correctly in the body of the comment, but I appreciate what works so far. It's pretty much exactly what I want, and fills one of the few missing points of Hacker News.

https://imgur.com/6LRulGi

Two pretty trivial suggestions:

- Number the links in square brackets, so they're easier to follow when passed to urlview

- Quotation marks around the topic subject in the body of the email

Re:Show HN: HN Replies – Get notified of replies to your com... by dangrossman on Thursday February 11, 2016 @05:15PM (#11083750)
Yeah, that's pretty ugly. That's what the HN API returns as the comment text... super HTML-encoded for some reason. I'll try to undo more of it.
Re:Show HN: HN Replies – Get notified of replies to your com... by JoshTriplett on Thursday February 11, 2016 @11:01AM (#11080888)
> Hi everyone. There used to be a site that did this, but it disappeared a few months ago, so I made HN Replies last night to fill the void.

Huh; HN Notify does seem to have gone missing. Anyone know what happened to it?

Re:Show HN: HN Replies – Get notified of replies to your com... by flashman on Thursday February 11, 2016 @11:37PM (#11085344)
Same thing that happens to most side projects with no love, money or support
Re:Show HN: HN Replies – Get notified of replies to your com... by captn3m0 on Thursday February 11, 2016 @01:56PM (#11082176)
It went down a few months back I think, came back up for a while and then went missing again.
Re:Show HN: HN Replies – Get notified of replies to your com... by kenrick95 on Thursday February 11, 2016 @10:35AM (#11080686)
It will be good to have e-mail verification. (i.e. check if the one signing up is really the e-mail owner)
Re:Show HN: HN Replies – Get notified of replies to your com... by dangrossman on Thursday February 11, 2016 @10:47AM (#11080774)
Probably a good idea, so I've added e-mail verification.
Re:Show HN: HN Replies – Get notified of replies to your com... by raimue on Thursday February 11, 2016 @10:49AM (#11080795)
I wanted to replay that it already does that. Apparently you implemented and deployed that very fast.
Re:Show HN: HN Replies – Get notified of replies to your com... by munkiepus on Thursday February 11, 2016 @10:55AM (#11080836)
Yeah that was a super quick change, good work :)
Re:Show HN: HN Replies – Get notified of replies to your com... by kenrick95 on Thursday February 11, 2016 @11:51AM (#11081277)
This was quick. Thanks :)
Re:Show HN: HN Replies – Get notified of replies to your com... by autotune on Thursday February 11, 2016 @12:03PM (#11081371)
Wouldn't this just have the same problem as the previous site? The functionality for this tool seems better implemented as a Chromium or Firefox plugin rather than a service.
Re:Show HN: HN Replies – Get notified of replies to your com... by kbenson on Thursday February 11, 2016 @12:37PM (#11081579)
What were the problems with the previous site? I used it without major problems.

Wouldn't a browser plugin require you to actively be using HN, or at least have a tab open? Getting an email notification four hours later that someone replied to you on HN, so you may want to take a look is nice (if you don't want to be a slave to HN, don't check your email as often or don't deal immediately with this email).

Additionally, in a browser extension, there's then a lot of people grabbing the comment history rather than a single program, which necessarily puts a higher load on HN.

Re:Show HN: HN Replies – Get notified of replies to your com... by autotune on Thursday February 11, 2016 @06:25PM (#11084148)
Major problem with it going offline, hence this new tool, which may or may not go offline at some point again. I am sure you could build an extension that polls the HN API every couple of seconds or so to check for replies and have it show a popup when you get a notification as well as send an email.

https://github.com/HackerNews/API

Re:Show HN: HN Replies – Get notified of replies to your com... by kbenson on Thursday February 11, 2016 @10:13PM (#11085058)
> Major problem with it going offline, hence this new tool, which may or may not go offline at some point again.

I'm not sure I understand this sentiment. It's a tool that provides a capability that wasn't there before, so event if it goes away later, you still get the utility it provided while it worked. Since the cost is just providing and email address, that seems a worthwhile trade to me. If it was a trade between this and some other implementation that worked, and it's possible closure at a later date would force you to set up with another service afterwards and you wouldn't if you chose the correct service in the first place, then that's a different story.

> I am sure you could build an extension that polls the HN API every couple of seconds or so to check for replies and have it show a popup when you get a notification as well as send an email.

Well, I'm not sure it would be nice to HN to query them an extra time every few seconds X the number or people that might install the extension. If it's a query every 10 seconds, and 1000 people run it, you've just increased their load by 100 queries a second.

Re:Show HN: HN Replies – Get notified of replies to your com... by striking on Thursday February 11, 2016 @10:21PM (#11085084)
It'd be hitting Firebase, not HN.
Re:Show HN: HN Replies – Get notified of replies to your com... by kbenson on Thursday February 11, 2016 @11:59PM (#11085413)
Which is a distinction I don't think really matters. They have an agreement, and firebase provides the API, but that agreement could become strained or need to be renegotiated if there's a feeling that the HN API is taking more resources than it's worth, or if HN pays directly for usage, then we're back at it affecting HN again.

Ultimately, the bits we consume aren't free. Someone pays for them, it just commonly not the consumer in the current model. At the point where you make the person that is paying for them feel it, then the person who pays might end up shifting to you. Or the resource goes away, and everyone loses.

I'm not saying that's likely in this case, but even if it isn't likely, doesn't mean we shouldn't think about it.

Re:Show HN: HN Replies – Get notified of replies to your com... by ikeboy on Thursday February 11, 2016 @01:21PM (#11081866)
Reddit companion extension alerts you for new replies, with no requirement to keep a reddit tab open.
Re:Show HN: HN Replies – Get notified of replies to your com... by gavinflud on Thursday February 11, 2016 @01:00PM (#11081733)
Well in a browser extension, you wouldn't necessarily have a lot of people grabbing the comment history. The program could still run as it does, calling the HN API every ten minutes for new replies. The browser extension could just call the service to see if it has found any new replies for you particularly.
Re:Show HN: HN Replies – Get notified of replies to your com... by mintplant on Thursday February 11, 2016 @10:55AM (#11080838)
> There used to be a site that did this, but it disappeared a few months ago

I was just about to link HN Notify for this, but sure enough, it's gone. Thanks for the replacement!

Re:Show HN: HN Replies – Get notified of replies to your com... by enraged_camel on Thursday February 11, 2016 @10:36AM (#11080696)
Thanks! I was thinking of creating this exact thing, and now I can take it off my to-do list. :)
Re:Show HN: HN Replies – Get notified of replies to your com... by nickpsecurity on Thursday February 11, 2016 @06:40PM (#11084230)
Thanks for writing it. I seriously was getting tired of looking for replies. I was about to write one myself within the week. Might still do it to experiment with a new language. Thanks still.
Re:Show HN: HN Replies – Get notified of replies to your com... by Chris911 on Thursday February 11, 2016 @04:02PM (#11083225)
Nice. I built a similar service for HN comments, Github stars and other small things like that a while (still running). Is your code open-source?
Re:Show HN: HN Replies – Get notified of replies to your com... by baudehlo on Thursday February 11, 2016 @10:36PM (#11085134)
Quick fix: set the type= of the email box to "email". This makes it easier on mobile.
Re:Show HN: HN Replies – Get notified of replies to your com... by gravypod on Thursday February 11, 2016 @12:17PM (#11081450)
Is this open source? I'd like to see how your finding replies for a single user.
Re:Show HN: HN Replies – Get notified of replies to your com... by kbenson on Thursday February 11, 2016 @12:44PM (#11081625)
You just check the comments feed occasionally, and make sure you follow it back far enough until you've found a comment you've previously seen (or a time prior to the last seen comment). Of those comments, if any are for users that have requested notification, shoot off an email to their supplied notification email address with the relevant info.

It's really not that complicated, and a great starter/hobby project. I imagine the only reason there wasn't a replacement out sooner for the prior site that stopped working is that a lot of us weren't really aware it had stopped, or weren't aware it was dead and not suspended (is it?), or hadn't yet gotten off our buts to make a replacement once we determined the prior site was gone.

It's the kind of small scope and easily defined project that's great for learning a new language.

Re:Show HN: HN Replies – Get notified of replies to your com... by nickpsecurity on Thursday February 11, 2016 @06:37PM (#11084222)
Come on now. I'm sure the commenter knew you could search the subscriber list when new comments come in. I think the real interest was in how Grossman may have optimized it for CPU or memory efficiency. I was curious myself given it's easier to keep sites like this up if they take almost no resources to run. Some low-power, disposable box or extra CPU cycles on an existing server.

"It's the kind of small scope and easily defined project that's great for learning a new language."

I totally agree with that. Matter of fact, I was planning on implementing that exact project to learn Rust or Go. :) Might still do it as it remains a good learning experience, esp for stuff you use 80% of the time.

Re:Show HN: HN Replies – Get notified of replies to your com... by kbenson on Thursday February 11, 2016 @10:07PM (#11085039)
> Come on now. I'm sure the commenter knew you could search the subscriber list when new comments come in.

Well, that may have been obvious to you, but I didn't want to assume anything about the asker, and while it appears the majority of users here are developers at times, there are still people that frequent that have little or no practical software engineering experience. In any case, it's easy to overlook features of a site you never or rarely use. I've clicked on the comments feed maybe 3-4 times in a few years, if I hadn't thought about this issue previously (as obviously you have as well), I might or might not have immediately thought about the comments link, and how it's really a feed.

Re:Show HN: HN Replies – Get notified of replies to your com... by joshschreuder on Thursday February 11, 2016 @05:14PM (#11083742)
Thanks for putting this together! I too was sad that the old site went down.
Re:Show HN: HN Replies – Get notified of replies to your com... by Mz on Thursday February 11, 2016 @05:29PM (#11083830)
Thanks! I hate missing replies and I really am glad to see a replacement.
Re:Show HN: HN Replies – Get notified of replies to your com... by glifchits on Thursday February 11, 2016 @01:05PM (#11081758)
I was looking for a service like this just days ago. Kudos!
Re:Show HN: HN Replies – Get notified of replies to your com... by bootload on Thursday February 11, 2016 @04:40PM (#11083490)
probably won't see that, html isn't processed on my client. Any chance of a text version?
Re:Show HN: HN Replies – Get notified of replies to your com... by dangrossman on Thursday February 11, 2016 @04:45PM (#11083529)
It's a multipart message with both HTML and text versions.

http://i.imgur.com/nKgL5hh.png

Re:Show HN: HN Replies – Get notified of replies to your com... by bootload on Thursday February 11, 2016 @07:21PM (#11084462)
Thx @Dan, confirmed this via the email.
Re:Show HN: HN Replies – Get notified of replies to your com... by swah on Thursday February 11, 2016 @11:02AM (#11080897)
I wonder if it works?
Re:Show HN: HN Replies – Get notified of replies to your com... by cmrx64 on Thursday February 11, 2016 @10:45AM (#11080767)
It'd be neat if you implemented PGP encryption of messages to a designated keyid.
Re:Show HN: HN Replies – Get notified of replies to your com... by krapp on Thursday February 11, 2016 @11:12AM (#11080984)
The comments are public, and it's public knowledge which account they're replying to. What would be accomplished by encrypting them?
Re:Show HN: HN Replies – Get notified of replies to your com... by cmrx64 on Thursday February 11, 2016 @01:21PM (#11081867)
account -> email mapping isn't necessarily public, the email hosts transiting the email don't need that information leaked. it's about preventing info flow.
Re:Show HN: HN Replies – Get notified of replies to your com... by krapp on Thursday February 11, 2016 @01:46PM (#11082065)
It doesn't look like you need to use the email associated with your account, though.
Re:Show HN: HN Replies – Get notified of replies to your com... by marvy on Thursday February 11, 2016 @01:51PM (#11082106)
Yes, but even if HN knows you by [email protected], and this fact does not leak, something else does: someone (probably you) is interested at getting replies to your comments at [email protected]. Deduction: that is one of your email addresses.
Re:Show HN: HN Replies – Get notified of replies to your com... by krapp on Thursday February 11, 2016 @02:07PM (#11082294)
But email addresses aren't meant to be private, so even if that deduction is true, everything it appears to leak is still public knowledge.