Better HN
topnewbestaskshowjobs
Log inSign up

mookey

11 karma · joined Mar 18, 2021 (5y ago) · 6 submissions

Submissions

comment 3y ago · link · parent

"In the land of code and curly braces, There lived a language with magical graces. Its name was JavaScript, clever and bright, With syntax that danced, day and night."

ChatGPT in the words of Shel Silverstein

2.

An Ode to JavaScript(dev-poetry.com ↗)

2 points · by mookey · 3y ago · 1 comment

comment 5y ago · link · parent

Thanks! It's without a doubt a pretty painful process. I'm using d3.js (https://d3js.org) for projecting a vector representation of a specific area. There is a lot of great tutorials / videos out there so a good starting point is probably just to search for e.g. "d3.js maps". D3.js might seem overwhelming at first, at least it did for me, don't let that discourage you. There are many vector sets where existing countries are already present but in my case I have to plot the highlighted map areas on my own. For that I use QGIS (https://www.qgis.org/en/site/), then just save those areas in a vector file and project them onto the map. I guess that's the basics. I have spent many, many hours generating/mapping the background image, pruning the data files from redundant information, repositioning tooltips after a zoom, etc, but perhaps you don't have to, so cross that bridge when you get there.

comment 5y ago · link · parent

He has great taste! It said that Hannibal's father made him swear that he would "never be a friend of Rome" (Polybius). It led to the Second Punic War. So, you know, perhaps go easy on your son regarding that whole "taking oaths" thing, okey?

comment 5y ago · link · parent

Thank you! I appreciate it.

6.

Show HN: Interactive maps of three historical conflicts(interactive-history.app ↗)

8 points · by mookey · 5y ago · 7 comments