Live data from Hacker News

Poll: Where do you live?

news.ycombinator.com

411–420 of 563 posts

Re: Poll: Where do you live?

#412
post #340

https://wheredohnuserslive.vercel.app/

Thanks! Bug report: "Czechia" on the map is showing 0 votes, since the poll item is "Czech Republic". Also you might want to account for "1 vote" meaning both no votes and actually one vote (not sure how, though, information is just lost here).

Thanks for the catch. Czechia should show now.

Re: Poll: Where do you live?

#413

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?

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

I hear JavaScript is the new hotness.

Re: Poll: Where do you live?

#414

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?

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

I don’t know I feel like gRPC did you know it’s used at Google?

Re: Poll: Where do you live?

#416
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.

Should make this a top level comment so it can get voted to the top.

Edit: appears you did already!

Re: Poll: Where do you live?

#418

Earlier quoted context omitted.

I wanted a total for the US: console.table([...document.querySelectorAll('.fatitem table .athing')].map(el => [el.textContent.replace(/:.*/,'').trim(), parseInt(el.nextSibling.textContent.trim())]).reduce((d, [k,v]) => {d[k]=v + (d[k] || 0); return d}, {})) I can't figure out how to sort that, though...

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

Haha, great minds think alike.

Are you accepting PRs? If so, align=right. Thanks!

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?

#419
post #105

Earlier quoted context omitted.

>> Of course, in 2008, pure investment banks largely failed. Each US state is about the size of a European country, sometimes with similar population. That's one of the things that always comes up in polls of what surprised Europeans about the US when they visited - just how big it is.

By that logic China or Russia should also be listed with each single province or state

Yep. Russia's largest federal subject (Yakutiya) is a third the size of the entire US, and it's one of 85 subjects)

Re: Poll: Where do you live?

#420
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've also made a page with a map (World and US States) and tables: https://stevenprins.com/snippets/hn-where-do-you-live
Post reply on HN