How can I swap out data to disk, to save memory in #rust?
I'm storing lots of data in a big dict/hashtable. Keys are 64bit ints, values about 20-100 bytes. But I have 600-800M items. I'm currently using a BTreeMap<i64, _>.
Solution must be Rust, open source. Ideally nothing that needs another service running (ie j want something "embedded")
Thanks to @thibaultmol and @MapComplete for informing me of the tags service:electricty=yes/no/limited/… for whether there's a place to plug in your laptop in a cafe.
How do I go about deleting wikidata items about me?
Someone has added some personal stuff to wikidata that shouldn't be shared like that. I tried to remove it, but they keep re-adding it. How can I get this personal data deleted? #wikidata#wikimedia
Remember an important OSM rule: Don’t just bulk import your gender from an “official” source. Maybe the on the ground gender you survey yourself is more accurate, and you should throw away the official version?
I'll install debian on it. UK keyboard (so no apple). ~14 in screen. I'd prefer smaller & compacter, to powerful. But shouldn't be too slow. Relatively high budget.
@Doudouosm@amapanda Debian seems to work fine on my Framework 13/16 using a live usb, only thing I couldn't get to work instantly is the fingerprint reader. Obviously just browsing around and doing some OSM editing isn't really giving a full image, though basic features like WiFi, Bluetooth, battery level and webcam seem to work fine out of the box.
Quick calculation of the “Longest Roads in Europe” based on road number (OSM's ref) rather than road name (name) shows different results, with results that one expects to find.
What's a good site to share small geo datasets for people to explore?
I wanna share my long roads data, and allow people to browse a map, and filter based on the properties of each feature. I can make a simple html map viewer myself, but that's a lot of work each time. Is there like a geo-spreadsheet web app I can use instead?
Github Gists can show a map from GeoJSON, but don't allow filtering, right?
All roads used to lead to Rome, now the longest road in Europe avoids it. 🤣
The longest road¹ in Europe in #OpenStreetMap is the Autostrada Adriatica in Italy, at 774 km. It goes from Bologna to Taranto, and avoids Rome as much as possible by going along the Adriatic Coast of Italy.
I define “a road” here as a continuous sequence of OSM ways with a highway tag & the same name tag. osm-lump-ways generates this with one simple command:
osm-lump-ways -i europe-latest.osm.pbf -o euro-roads.geojson -f highway -f name -g name --split-into-single-paths --min-length-m 10000 --split-into-single-paths-by crow_flies
Here's the top 1000 longest roads in Europe (connected OSM highway's with the same name tag). Shortest is ~53 km long. (lots hidden behind others).
This shows some clear regional differences, which might have more with how data is mapped in #OpenStreetMap, but might also reflect how different cultures name roads.
“Natural Waterways” on WaterwayMap.org got smarter. 🚀 It now connects river that flow through canal locks. This is very noticeable in North America 🌎, where the calculated Mississippi River water basin (blue) has gained a few more water basins (pink).
@amapanda I lived and worked in #Chicago for the EPA, where I learned that humans had reversed the Chicago River flow, changing its outfall from Lake Michigan to the Mississippi, eventually. "The Sanitary and Ship Canal," which we rudely renamed the S & Sh*t canal. #Environment