Live data from Hacker News

Show HN: Hnwatch – Linux x64 terminal-based real-time HN watcher/reader

2ton.com.au

31–40 of 49 posts

Re: Show HN: Hnwatch – Linux x64 terminal-based real-time HN watcher/reader

#31

Hmmm. I wonder if someone can write a hacker news comment that'll cause remote code execution on those running this...[1] I would have no idea how easy protecting buffer overflows is in assembly but I'm guessing it's harder than C. [1] consider this a challenge...

You obviously didn't scrutinize my code :-)

Re: Show HN: Hnwatch – Linux x64 terminal-based real-time HN watcher/reader

#32
post #26

Earlier quoted context omitted.

Hmh; I think there might have been kinda misunderstanding (?) - I'll edit my comment to change "interesting" to "nice", hopefully this way it will better express my original intent. In other words, big thanks for making me aware of the FASM! Not sure if I'll ever use it, but totally worth remembering for future, just in case. Or, who knows; maybe for some hobby AVRing I hope to do it'd be actually easier than the who…

Your use of the word "apart" right at the beginning is likely to be a cause of confusion. Clearly, in this context, you mean it in the "as well as" sense, but I initially read it in the "instead of" sense, and I think most other English-as-1st-language speakers would do the same. Qualifying it e.g. "quite apart from..." can avoid the misunderstanding.

oh... ok; thanks! changed that too; hopefully better now? :/

Re: Show HN: Hnwatch – Linux x64 terminal-based real-time HN watcher/reader

#33

Hmmm. I wonder if someone can write a hacker news comment that'll cause remote code execution on those running this...[1] I would have no idea how easy protecting buffer overflows is in assembly but I'm guessing it's harder than C. [1] consider this a challenge...

You obviously didn't scrutinize my code :-)

Ah yes! After reading through the code it's become crystal clear to me that your code is bullet proof :-)

Re: Show HN: Hnwatch – Linux x64 terminal-based real-time HN watcher/reader

#34
outside curios request related to this submission, I have always configured webservers to return "400 Bad Requests" on HTTP/1.1 requests that lack a Host: header.

Still, every interaction I have had with HN this year always results in lots of hosts getting said results, and while this one is going, the most offensive host: 207.226.141.203 (dns: 207-226-141-203.static.pccwglobal.net) .. 1800 requests and counting from that host... ??

Re: Show HN: Hnwatch – Linux x64 terminal-based real-time HN watcher/reader

#35

I made a docker image for this: https://github.com/agonzalezro/docker-hnwatch If you want to run it: docker run -it agonzalezro/hnwatch I don't know why but hnwatch doesn't look like working ATM. I've tried in a Linux box (without docker) and I have the same problem with the tty, it's just loading 4 news and no comments or similar.

wow really bad now, my program is mostly useless without firebaseio... should I ring them?

Re: Show HN: Hnwatch – Linux x64 terminal-based real-time HN watcher/reader

#36

I made a docker image for this: https://github.com/agonzalezro/docker-hnwatch If you want to run it: docker run -it agonzalezro/hnwatch I don't know why but hnwatch doesn't look like working ATM. I've tried in a Linux box (without docker) and I have the same problem with the tty, it's just loading 4 news and no comments or similar.

wow really bad now, my program is mostly useless without firebaseio... should I ring them?

I attempted to call the 1 (844) 843-3473 number on the firebaseio.com site, I suspect it may be before their waking hours though.. my hnwatch now is not behaving at all like it was earlier though, and the only difference is that I released it here :-/

Re: Show HN: Hnwatch – Linux x64 terminal-based real-time HN watcher/reader

#37
I really don't get this to work as I feel it should. Initially I get like 4 articles showing up, sometimes two articles have the same pos-value.

The list of articles then continues to be populated very slowly (I'm up to 12 now after a minute or so maybe?).

I've tried it on two different networks, one of them being 100/100mbit/s fiberoptics.

Am I missing something?

Re: Show HN: Hnwatch – Linux x64 terminal-based real-time HN watcher/reader

#38

I really don't get this to work as I feel it should. Initially I get like 4 articles showing up, sometimes two articles have the same pos-value. The list of articles then continues to be populated very slowly (I'm up to 12 now after a minute or so maybe?). I've tried it on two different networks, one of them being 100/100mbit/s fiberoptics. Am I missing something?

WYSIWYG sadly, hnwatch grabs the ID list to fetch from the SSE direct from firebaseio (and thus the public API). It was working a treat (and accurately reproducing everything from HN web-proper) prior to my releasing this... IDK what the proper course of action is from here... :-/

Re: Show HN: Hnwatch – Linux x64 terminal-based real-time HN watcher/reader

#39

Earlier quoted context omitted.

Is there a list of active rooms somewhere?

See prior comment about the intentional omission of "/list" functionality

Well I'd also take just one active room ;)

Re: Show HN: Hnwatch – Linux x64 terminal-based real-time HN watcher/reader

#40

I made a docker image for this: https://github.com/agonzalezro/docker-hnwatch If you want to run it: docker run -it agonzalezro/hnwatch I don't know why but hnwatch doesn't look like working ATM. I've tried in a Linux box (without docker) and I have the same problem with the tty, it's just loading 4 news and no comments or similar.

Dude, use alpine (~5MB) rather than ubuntu (~190MB) for the base image!

Done. Awesome image! Thanks for sharing :)
Post reply on HN