Hacker News new | past | comments | ask | show | jobs | submit | adav's comments login

I’d love to make my own scrolling maps.

Can anyone think of a good algorithm for “unrolling” or nearly “straightening” a wiggly route line so that it could fit in one long narrow straight strip?

It still needs to retain illustrative turns and kinks to help with wayfinding.


Maybe if we cheat with the straight segments to make up for the error?

The idea is that visually a straight road or a road bending with a very large radius are almost impossible to distinguish. Whereas visually a 90 degree left turn is very different from a 10 degree left turn.

For example if you have a simple route plan with 10 mile straight followed by a 90 degree left turn and 10 mile straight again. You could instead draw a 10 mile long circle segment which turns the straight bit slightly to the right side of your strip, then draw an 80 deg turn to the left followed by an other circle segment which bends the route back towards straight.

If you are happy with that solution visually then the algorithm which can generate it for you could be an optimisation with two terms, one which penalises deviations in curvature (penalising more heavily where the original curvature was tight), and an other which penalises the route wiggling too far in either direction away from the centre of the paper strip.

Still not sure how one could handle cases where the route turns 180 or close to it though.


Does the glass block lots of UV?


Glass blocks 100% of UVB and 25% of UVA. So while you wont burn, light through glass will still cause skin damage.


Thanks - I learned something today.

Looks like some bus companies treat their windows to block the UVA as well. Eg https://www.valleymetro.org/blog/2022/07/how-valley-metro-ke...


We need a little UVB everyday to maintain melanin (skin pigment) and skin thickness. If you work inside M-F and then go hard on the weekends outdoors, you will receive disproportionate damage from sunlight.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3427189/

https://www.who.int/news-room/questions-and-answers/item/rad...

If you are blocking UVB, you should be blocking UVA as well. The bus folks are doing some good thinking.


So travelling for hours on the sunny side of the bus won't do anything to protect our kids’ eyesight?


The reason I buy cereal less is because it’s now so unbelievably expensive. I treat myself when the own-brands are on offer.


Tell that to the engineers of the Millennium Bridge in London. Resonance from foot traffic caused it to start swaying, requiring shoring up with massive dampers.


No matter the traffic, a bridge should always be built to avoid resonance. Unstable dynamical systems do not care if it's a truck or a feather, they'll resonate and collapse.


A play on macOS's backwards 'natural scrolling'? Very good!


Electric motorbikes? A considerable amount of riders I have seen have hot-wired throttles, overriding the road legal pedal-assist.


The £1M AI “Manchester Prize” seems particularly interesting.


The Tech specs page doesn't differentiate the yellow model as having a different battery to the rest of the range. I was also confused by the title.


Years ago the motoring media was very excited by the idea that electric cars could have a shared “skateboard” and then a coach-built body on top. Surely this DeLorean would be an excellent application of this - standard platform plus shiny bodywork and fancy doors! Why do they want to build a whole platform from scratch just to cash in on the nostalgia?


Take the drive out and smash it to bits.


Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: