Live data from Hacker News

Poll: Where do you live?

news.ycombinator.com

401–410 of 563 posts

Re: Poll: Where do you live?

#401
post #10

I hope there is someone who knows how to code in this community to parse the results and do a nice visualization. I have a cousin who knows about computers, if noone knows here how to do it, I can ask him to try. He always helps me with my printer.

https://wheredohnuserslive.vercel.app/ Visualized it by countries and us states. Should update every 30 seconds.

Please fix Czechia vs. Czech Republic mismatch. And Macedonia vs. North Macedonia.

Also, per-capita hacker density would be cool as well.

Re: Poll: Where do you live?

#402
post #36
post #25

Pasting this in dev console will give you a quick and dirty rundown. It sorts locations by points. [...document.querySelectorAll('.fatitem table .athing')].map(el => [el.textContent.trim(), el.nextSibling.textContent.trim()]).sort(([,a], [,b]) => parseInt(b) - parseInt(a)).map(a => a.join(' - ')) As of this post, California is leading, followed by other places w/ large tech hubs (Germany, UK, Canada, NY, Washington)

This is begging for a console.table console.table([...document.querySelectorAll('.fatitem table .athing')].map(el => [el.textContent.trim(), el.nextSibling.textContent.trim()]).sort(([,a], [,b]) => parseInt(b) - parseInt(a)))

To see the sorted results: https://gabrielsroka.github.io/hnpoll.html?id=30210378

Source: https://github.com/gabrielsroka/gabrielsroka.github.io/blob/...

Re: Poll: Where do you live?

#403
post #10

I hope there is someone who knows how to code in this community to parse the results and do a nice visualization. I have a cousin who knows about computers, if noone knows here how to do it, I can ask him to try. He always helps me with my printer.

I'm currently working on a vue + vuex server side rendered PWA with client side hydration.i found the perfect UI component library which only adds ~3mb of overhead,which went paired with Chart.js and of course wrapped with VueCharts.js should be able to query a graphql endpoint to process the results and display in the browser. What do you all think of kubernetes, overkill?

Add haproxy on it

Re: Poll: Where do you live?

#404

Earlier quoted context omitted.

I'm currently working on a vue + vuex server side rendered PWA with client side hydration.i found the perfect UI component library which only adds ~3mb of overhead,which went paired with Chart.js and of course wrapped with VueCharts.js should be able to query a graphql endpoint to process the results and display in the browser. What do you all think of kubernetes, overkill?

Add haproxy on it

Don't forget to put it behind Cloudflare, too, wouldn't want it to go down from too much traffic

Re: Poll: Where do you live?

#406
post #10

I hope there is someone who knows how to code in this community to parse the results and do a nice visualization. I have a cousin who knows about computers, if noone knows here how to do it, I can ask him to try. He always helps me with my printer.

This is literally the best comment I've ever read on this site.

Thank you so much. I can sell you the NFT of this comment if you want. Or you can sell it to me I guess.

Re: Poll: Where do you live?

#408
post #10

I hope there is someone who knows how to code in this community to parse the results and do a nice visualization. I have a cousin who knows about computers, if noone knows here how to do it, I can ask him to try. He always helps me with my printer.

I got you. Where does hacker news live? visualized: https://ae.studio/random/where-does-hacker-news-live

Thank you but unfortunately only the large discs are readable. I think a sorted datatable might serve the purpose better.

Re: Poll: Where do you live?

#409
post #10

I hope there is someone who knows how to code in this community to parse the results and do a nice visualization. I have a cousin who knows about computers, if noone knows here how to do it, I can ask him to try. He always helps me with my printer.

I'm currently working on a vue + vuex server side rendered PWA with client side hydration.i found the perfect UI component library which only adds ~3mb of overhead,which went paired with Chart.js and of course wrapped with VueCharts.js should be able to query a graphql endpoint to process the results and display in the browser. What do you all think of kubernetes, overkill?

have you considered the blockchain? and/or at least consider adding a language that is not Java, but runs on the JVM.

Re: Poll: Where do you live?

#410

Earlier quoted context omitted.

I created a page with the current results that includes a total for the US: https://nate.org/hacker-news-location-poll

Percentage next to totals would make this perfect

Good idea—I just added a percentage column, as well as a row at the bottom for the total count
Post reply on HN