7 ms·
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
by 101008 5y ago
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.
- stronglikedan 5y agoI'll try to whip up an Excel macro over the weekend, but I can't promise anything.
- ShakataGaNai 5y agoExcel Macro's... What does a virus have to do with visualizations?! /s
- cerved 5y agoIt IS only VIRAL if you make it from clicks on the emails!! ALWAYS make clicks with the RIGHT to be SAFE from VIRALS
- emacs28 5y agoI think I can help, I've been learning how to make bar graphs from tables in microsoft word
- deleted 5y ago[deleted]
- l0b0 5y agoAsk codegolf.stackexchange.com, there's probably a Mathematica one-liner to display a globe with colour-coded areas.
- abdusco 5y agoI never understood the purpose of languages with unicode operators that can supposedly express a 30 line script in like 2 symbols. Are they purpose built on the spot for CodeGolf?
- lgeorget 5y agoNot on the spot, a condition for the answer to be accepted is that the language must exist before the challenge, but yes, many languages exist only just for the purpose of golfing. Mathematica is a legitimate language though, it just is the case that some operations are surprisingly compact.
- LeifCarrotson 5y agoLike checking if an image is of a goat: ImageInstanceQ[x,"caprine animal",RecognitionThreshold->i/100] https://codegolf.stackexchange.com/a/71680 https://codegolf.stackexchange.com/a/71680
- danuker 5y agoI doubt Mathematica is built for code golf. Check out Burlesque (which is ASCII). https://mroman.ch/burlesque/docs/BLSQ.html https://mroman.ch/burlesque/docs/BLSQ.html
- e12e 5y agoIf ask for a "histogram" of the data, did I just write a 30 line script as a single word?
- airstrike 5y agoSomeone should actually post it there and then post the question here...
- aksss 5y agoI have a cousin twice removed who knows FoxPro and could do this.
- Crosseye_Jack 5y agoCan he help stop my Microwave from blinking 12:00 all the time?
- iechoz6H 5y agoCould you ask him about random list generation too? And whether or not order influences outcomes? Thanks
- barbazoo 5y agoThis made me almost spit out my tea, well done :)
- geocrasher 5y agoJust do it in Bash, of course! Take the poll andcopy/paste it directly into a file called 'hnpoll', then run sed -e ':a;N;$!ba;s/\n/ /g' -e 's/points/,/g' -e 's/point/ ,/g' -e 's/,/\n/g' hnpoll | awk '{ print $2 " "$1 }' | sort -n | grep ^[0-9] | tail -n 20 12 Finland 12 Serbia 13 Norway 13 Romania 15 Belgium 15 Israel 15 Spain 16 Austria 19 Switzerland 20 Italy 21 India 22 Australia 22 Denmark 26 Brazil 26 Poland 35 Netherlands 36 Sweden 41 France 124 Germany 132 Canada See- easy! And if you want the US states, even easier: grep US -A1 hnpoll | sed -e ':a;N;$!ba;s/\n/ /g' -e 's/points/,/g' -e 's/point/ ,/g' -e 's/,/\n/g' -e '/^$/d' | sort -r |cut -d: -f2 | awk '{ print $2" "$1 }' | sort -n | tail -n 20 15 Arizona 16 Michigan 16 Minnesota 16 Ohio 16 Wisconsin 17 Maryland 18 Georgia 25 Florida 28 Jersey 31 Virginia 32 Pennsylvania 35 Oregon 39 Carolina 42 Illinois 47 Massachusetts 51 Colorado 59 Texas 103 Washington 110 New York 265 California And people say Bash is a terrible language... BUT WAIT THERE'S MORE! Get the total number of US results: echo $(grep US -A1 hnpoll | sed -e ':a;N;$!ba;s/\n/ /g' -e 's/points/,/g' -e 's/point/ ,/g' -e 's/,/\n/g' -e '/^$/d' | sort -r |cut -d: -f2 | awk '{ print $2 }' | sort -n | grep ^[0-9] | paste -sd+ - | bc)" United States" 943 United States Combine them a bit... sed -e ':a;N;$!ba;s/\n/ /g' -e 's/points/,/g' -e 's/point/ ,/g' -e 's/,/\n/g' hnpoll | awk '{ print $2 " "$1 }' | sort -n | grep ^[0-9] | tail -n 20; echo $(grep US -A1 hnpoll | sed -e ':a;N;$!ba;s/\n/ /g' -e 's/points/,/g' -e 's/point/ ,/g' -e 's/,/\n/g' -e '/^$/d' | sort -r |cut -d: -f2 | awk '{ print $2 }' | sort -n | grep ^[0-9] | paste -sd+ - | bc)" United States" 12 Finland 12 Serbia 3 Norway 13 Romania 15 Belgium 15 Israel 15 Spain 16 Austria 19 Switzerland 20 Italy 21 India 22 Australia 22 Denmark 26 Brazil 26 Poland 35 Netherlands 36 Sweden 41 France 124 Germany 132 Canada 943 United States
- Zenbit_UX 5y agoI'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?
- aerovistae 5y agoI thought it was serious until I got to the 3mb part, that was where the tone became clear. It's funny because I found the first sentence so upsetting. "With client-side hydration" -- I was just thinking to myself god these stupid buzzwords, what does that even mean, just another recycled concept with a new web 3.0 name.
- e12e 5y agoClient side hydration might be the waterboarding of data visualization.
- eyelidlessness 5y agoClient-side hydration has been a term of art since component-based web apps have been built with the same code on the server and client. It’s not some new buzzword. It’s an exceedingly common term and has been a major focus in the space for years. But loljs or whatever plays well so go for it.
- riidom 5y agoI prefer the printed version from parent poster, thanks
- ProZsolt 5y agoKubrernetes is an old thechnology. It should be serverless!
- jcun4128 5y agoAdd haproxy on it
- bityard 5y agoThis is literally the best comment I've ever read on this site.
- 101008 5y agoThank you so much. I can sell you the NFT of this comment if you want. Or you can sell it to me I guess.
- rubabredwan 5y agohttps://wheredohnuserslive.vercel.app/ https://wheredohnuserslive.vercel.app/ Visualized it by countries and us states. Should update every 30 seconds.
- Yajirobe 5y agoThe US map is bigger than the rest of the world
- deleted 5y ago[deleted]
- binarynate 5y agoThat's awesome! Thank you for making this map.
- mordae 5y agoPlease fix Czechia vs. Czech Republic mismatch. And Macedonia vs. North Macedonia. Also, per-capita hacker density would be cool as well.
- tempestn 5y agoShould make this a top level comment so it can get voted to the top. Edit: appears you did already!
- cheeaun 5y agoSingapore is missing :(
- jc_yc_2022 5y ago
- binarynate 5y agoGood idea! I created this page that shows a table with the current results: https://nate.org/hacker-news-location-poll https://nate.org/hacker-news-location-poll
- jarrenae 5y agoI got you. Where does hacker news live? visualized: https://ae.studio/random/where-does-hacker-news-live https://ae.studio/random/where-does-hacker-news-live
- zhoujianfu 5y agoNice! A lot of Germans! Gummipuppen!
- radiator 5y agoThank you but unfortunately only the large discs are readable. I think a sorted datatable might serve the purpose better.
- stepri 5y agoI've also made a page with a map (World and US States) and tables: https://stevenprins.com/snippets/hn-where-do-you-live https://stevenprins.com/snippets/hn-where-do-you-live