u/prinoxy

▲ 1 r/pdf

Splitting big (116 pages) PDF where all pages are low(ish)-res images...

SumatraPDF only gives me a "Select all". I can import the PDF into GIMP, and that gives me 116 images, and if there's no other way, I would have to save them all individually as PNGs, which I've done for a few. FreeOCR is the next step, and due to the low resolution, it doesn't result in anything overly useful, retyping the input might actually be faster.

I've also tried using Image Magick with a

D:\temp>magick -density 288 tobin_sexton_1972.pdf -resize 25% ( -clone 0-0 +write 0.pdf ) ( -clone 1-1 +write 1.pdf ) ( -clone 2-2 +write 2.pdf ) null:

command line, and yes, that split the file, in this case in three 1-page segments, but the resulting output is rather utter pixelated crap. (And yes, the above could run using a "FOR" command on Windoze, I copy-edited the above from StackOverflow)

Any suggestions as how to proceed would be welcome, and as yes, I already mentioned retyping, and if that's the only way, so be is, deep sigh...

prino.neocities.org
u/prinoxy — 1 day ago

Valhalla and GraphHopper as alternatives to 10^100 maps

Copy of a reply to chat:

Valhalla seems to be down at the moment. Basically you open the URL, https://valhalla.openstreetmap.de/directions?profile=car&wps= and then click on the little arrow icon in the top-left corner to open the location boxes and then you just enter location for the route. You can move them around, add new waypoints by clicking on the map, but you cannot, like with Google Maps drag the route around. The result will be a URL like, one of my longest: https://valhalla.openstreetmap.de/directions?profile=car&wps=23.2033662,54.4148756,23.1199711,54.3086465,23.1146209,54.2993747,22.8249207,53.9989516,21.0819752,52.3080124,17.6827884,51.2965645,17.6002043,51.3108865,15.1214408,51.2058659,15.0007893,51.1502667,14.9903007,51.1543882,14.9877335,51.1555149,14.9736606,51.1585665,14.9594323,51.1995564,12.9421887,50.8935891 In principle you could shorten longitudes and latitudes to 5 significant figures without much loss of detail, I think using seven gives a resolution of 10 cm. Valhalla has two somewhat significant limitations, routes must be shorter than 1,500 km, and you cannot have more than 20 coordinate pairs per route.

Alternative is GraphHopper, https://graphhopper.com/maps/?profile=car&layer=OpenStreetMap which allow longer routes and more sections, but results in URLs that are about twice as long. Conversion between the two, not yet got to programming anything to do so, is pretty trivial, just create a short route on both, and look at the resulting URLs. I have one too-long-for-valhalla GraphHopper URL: https://graphhopper.com/maps/?point=54.790455,24.667332&point=54.740691,23.930154&point=54.708205,24.005424&point=54.696575,24.075159&point=54.708205,24.005424&point=54.740691,23.930154&point=55.196528,23.715194&point=55.165081,23.572222&point=55.098644,23.128223&point=55.085166,22.776525&point=55.085933,22.775034&point=55.085749,22.770517&point=55.075531,22.759958&point=55.376428,23.112574&point=55.382609,23.110343&point=55.389386,23.11688&point=55.389417,23.115454&point=55.390121,23.111671&point=55.387241,23.102968&point=55.381232,22.969155&point=55.461448,22.69578&point=55.72172,21.950163&point=55.704235,21.221746&profile=car&layer=OpenStreetMap

Ride was with a courier :)

reddit.com
u/prinoxy — 2 days ago
▲ 16 r/TI_Calculators+1 crossposts

Really old stuff - 52-Notes

I html-ised the lot, and they're now available with a complete index, and all back-links in articles are clickable. Enjoy!

u/prinoxy — 8 days ago

From BY to AZ

Five rides today, started with a driver from BY in Vilnius, who was followed by three Lithuanian guys (in fancy Merc/Audi/BMW's) to finish back in Vilnius in a recovery truck carrying a swastikar driven by an Azeri. One sub-1,000 km day left in May, a bit closer to my 21th virtual trip around the world, and my ultimate goal of 1,000,000 km.

reddit.com
u/prinoxy — 10 days ago

Extremely puzzled

Why the flippin' 'ell does Valhalla render this route like it does? Looked at OSM, and there don't seem to be any restrictions on the roundabout coming from the transportzone, and going over the motorway?

reddit.com
u/prinoxy — 13 days ago