finally, we have the technology to make intersections look ugly
11.11.2025 06:52 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0@snoopj.hachyderm.io.ap.brid.gy
Hi, I'm James. Eternal dilettante and purveyor of nonsense, much of it about #Python, physics, and #cycling. I take part in #Monsterdon most Sundays at 9 PM ET [โฆ] ๐ bridged from โ https://hachyderm.io/@SnoopJ, follow @ap.brid.gy to interact
finally, we have the technology to make intersections look ugly
11.11.2025 06:52 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0wow here I thought I was just going to do a little prototyping, and I've already hit my first goal and it's all greenfield from here
nice
Photo of a PyQt application showing a map of part of Boston and Cambridge, near the Boston University Bridge. Overlaid on the map are dozens of bicycle tracks, many laying along either side of the river, but some taking the streets on either side
I wrote a little script to convert FIT files to GPX and now it can render every activity I have recorded!
11.11.2025 06:44 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0```
if np.nanmin(lon) < -80:
LOGGER.warning("Skipping that one ride I took in New Mexico")
```
me: I would like to do a project :)
computing: HERE IS SOME CURSED KNOWLEDGE REQUIRED TO DO YOUR PROJECT DO YOU ACCEPT [Y / MAYBE LATER]
huh so needing to handle a status code of 0 is a known quirk in Chromium, because the W3C specification is quite clear about setting 0 at the start of the process, but does not specify what should be done if an HTTP status code does not apply (as for the `file://` scheme) [โฆ]
11.11.2025 05:47 โ ๐ 0 ๐ 1 ๐ฌ 1 ๐ 0@xgranade obligatory https://www.youtube.com/watch?v=tas0O586t80
11.11.2025 05:35 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0god, I remember that Lexington used to feel impossibly far away by bike, and now it's just likeโฆ a place I go frequently, because it's a nice ride!
that said, Concord is still pretty damned far away, I've only done *that* ride once.
well, I say "the" remaining trick as if I'm not dreaming of an entire application here
once I can display multiple GPX files, it will have reached feature parity with the old tool for showing my routes, with the bonus of having all the creature comforts of Leaflet
and *then* I can start [โฆ]
now the remaining trick is to convert my FIT files to GPX files
OR
to modify `leaflet-gpx` to work from FIT data instead of GPX data
not sure which of those is easier but *probably* the first one.
let's ignore that squiggly bit in the middle, I got turned around badly in Alewife on my return because of the ongoing construction >_>
11.11.2025 05:16 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0Screenshot of a PyQt application showing a map of Boston and a red path traced out on top of it along the Somerville Community Path and the Minuteman Commuter Bikeway
okay, I figured it out. `leaflet-gpx` isn't exactly expecting to be run locally, I think, and wasn't deal with an `XMLHttpRequest` response status of 0 (I suspect this is a familiar quirk to people who know the domain better than I do)
but anyway, now I have a [โฆ]
[Original post on hachyderm.io]
PyQt application running Leaflet, showing a triangle drawn arbitrarily over downtown Boston
consistency check: can I draw a random polygon? (yes)
11.11.2025 04:48 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0I managed to segfault it! :D
I can get the `leaflet-gpx` code loaded and successfully parse my reference GPX file, but I cannot get it to display on the leaflet map
`Uncaught TypeError: this.callInitHooks is not a function`
statements dreamt up by the utterly embedded
in hindsight it should have been obvious I'd be pissing around with JavaScript glue here
11.11.2025 04:02 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0@glyph I've seen encoded bytes you people wouldn't believe
11.11.2025 03:31 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0hm, I can get `leaflet-gpx` to do what I wanted in a browser demo, but I can't reproduce the same thing in the little sandbox pyqtlet2 has set up
11.11.2025 03:31 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0Screenshot of a PyQt application showing an embedded Leaflet map of Boston, with some overlaid text reading "HEH HEH HEH THIS IS MY TEXT"
putzing around with PyQt a bit tonight
11.11.2025 03:08 โ ๐ 0 ๐ 0 ๐ฌ 2 ๐ 0it is difficult to say how much time I spent reading Wikipedia but it's definitely A BUNCH
11.11.2025 03:05 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0whoa, Wikipedia just went down for me for a moment
jump-scare moment
CI/CD means "crashes immediately, can't debug"
11.11.2025 00:46 โ ๐ 2 ๐ 28 ๐ฌ 1 ๐ 0@bitprophet signed
11.11.2025 02:46 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0@ozdreaming ah I think the meshes on either side of the door have inverted normals. common problem
11.11.2025 02:24 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0A photo of a sign that is designed like the SEPTA logo, but it is the "Cool S" in the middle. The text reads, "SEPTA IS COOL". If you don't know what a "cool S" is, ask your nearest Millennial American.
I made a sign to support SEPTA #philly #philadelphia
19.08.2025 23:43 โ ๐ 1 ๐ 15 ๐ฌ 2 ๐ 0@SnoopJ @bikepedantic.bsky.social if we could get the city to put effort into bikeshare being a point of city pride, getting a better bike network would be so much easier
10.11.2025 22:42 โ ๐ 0 ๐ 1 ๐ฌ 0 ๐ 0@DemonHusky @bikepedantic.bsky.social I'm thinking more about load-balancing due to asymmetric flows/jitter. AFAIK this is just table stakes: you will always need to manually move bikes from [THERE] to [HERE] or end up with a deficit of parking somewhere because bikes have piled up.
10.11.2025 22:45 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0@SnoopJ @bikepedantic.bsky.social I think a major bit is swapping batteries, and you eliminate 90% of operations costs by electrifying 10% of stations. For balancing the system, just adding capacity to stations and more density likely (no insider knowledge here) reduce required van swaps. But at [โฆ]
10.11.2025 22:40 โ ๐ 0 ๐ 1 ๐ฌ 1 ๐ 0@DemonHusky @bikepedantic.bsky.social @notjustbikes yea this is kinda where the idea of roping libraries in came to me from. It's something there's already (some) civic pride in, and a bikeshare does share some concepts with lending (and there's prior art for lending tools etc.).
The same kind [โฆ]
@DemonHusky @bikepedantic.bsky.social all that said, I hope the conversation about fare-free busses doesn't come to a screeching half just because Hochul opened her mouth on the subject. She was wrong about congestion pricing, and she's wrong about this.
10.11.2025 22:34 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0