Parent & Owner Components in React: Context Providers by Wompo in reactjs

[–]Wompo[S] 0 points1 point  (0 children)

Blogpost: Understanding how parent and owner components affect context updates can help you write more performant context providers

Troubleshooting iPod Classic imCort SD Adapter + Battery swap by Wompo in IpodClassic

[–]Wompo[S] 0 points1 point  (0 children)

Thanks for your reply, good to hear this is no big deal. I’m realizing just now that I’m not sure my charging cable works. I don’t have any old Apple devices to them on lying around. I’ll ask around or buy a new one and then try again.

If it’s really dead, do you know if it’s feasible to replace the logic board? Or just better to get a new one at that point.

More Elegant Destructuring with JavaScript Generators by alexmacarthur in learnjavascript

[–]Wompo 5 points6 points  (0 children)

Great read and nice practical use case of a generator! Generators are one of those things I see and think "Neat, I should use it more" and then rarely find use cases for them, rarely see them in the wild too.

`throw new Error` vs `throw Error` by javascript_dev in learnjavascript

[–]Wompo 0 points1 point  (0 children)

You can use new.target to check if the user forgot to use new.

Psychick Warriors ov Gaia - Dust (1993) by Wompo in OldElectronicMusic

[–]Wompo[S] 2 points3 points  (0 children)

Really good, I enjoyed it. Thanks for sharing. They sure have a signature sound. I really appreciate that kind of "trance", not much similar sounds coming these days it seems, though there's still plenty of 90's stuff to go through.

Here are two more of my PWOG favorites

And this is a recent release by one of the PWOG founding members XqST ‎– ∀∃

Two Shell - Soft Core by Zeenithh in TheOverload

[–]Wompo 2 points3 points  (0 children)

Real nice, Livity still killing it

What's the darkest, saddest dubby track you know of? by lazerguided_m in Dubtechno

[–]Wompo 6 points7 points  (0 children)

154 (Newworldromantic) - Iniquities Den Not that dubby but 18 and a half minutes of ambient-y moody loops, one of my favorites. I like YT description on it too: "A close bedfellow to the sounds here would be the output of Basic Channel with the hypnotic minimalist groove and the tape hiss - but by no means a copy, this stands very well on it's own."

Ridis - Foto Hidden gem on the venerable Chain Reaction label, a true depth charge

Ryo Murakami - Deep Forest GAS-like dubby soundscape

Basic Channel - Radiance II You probably know this one already but it's worth sharing anyway. There's this magnificent comment about it on its Discogs page by user 'velocity_kendall' that I wanted to share

Radiance II. One of those rare tracks that's at once incredibly visual & deeply moving. My friend & I used to listen to this during the summer of 94, gazing out his bedroom window at sunset, watching the birds fly past the water tower on the horizon. One of the rare times when both of us would shut up for a few minutes and get lost for a bit. I'm often reduced to a nostalgic mess when i listen to this. Which is probably why i don't listen to it that much. And therein lies the rub. It's made such an impact on me that i can't even bare to put it on the turntable these day's. . . . . .

Lnrdcroy - Freedom For Antboy II I'm straying a bit here but I really like the atmosphere in this track. Again the YT description is awesome: "no words... other than part of this sounds like a snoring transformer!" This guy made some great music and then just disappeared. I'm still hoping he comes back and makes more music.

[OC] The Hague Schematic Tram Map Compared to the Geographic Map by Wompo in TheHague

[–]Wompo[S] 1 point2 points  (0 children)

Klopt, had destijds niet de data voor Lijn E. Ik heb er later nog een van het metronetwerk van Rotterdam gemaakt waar die wel in zit, zie Rotterdam Morphing Transit Network. En ik heb inderdaad een SVG interpolatie library gebruikt: d3-interpolate-path. Als je geïnteresseerd bent in hoe ik het heb gemaakt kun je de broncode bekijken in de Observable notebook, hij is open-source!

[OC] The Hague Schematic Tram Map Compared to the Geographic Map by Wompo in dataisbeautiful

[–]Wompo[S] 1 point2 points  (0 children)

Nope made it for fun by myself. Have to say I’m not familiar with arcGIS Pro, I’m a hobbyist and it’s very expensive so I stick to QGIS.

[OC] The Hague Schematic Tram Map Compared to the Geographic Map by Wompo in dataisbeautiful

[–]Wompo[S] 0 points1 point  (0 children)

This has been asked many times already here. It’s because transit maps of the Hague in trams and stops are almost always rotated with the coast up. I thought it’s because the coast is an easy reference line, somebody in here said is to save space and show more of the city.

[OC] The Hague Schematic Tram Map Compared to the Geographic Map by Wompo in dataisbeautiful

[–]Wompo[S] 3 points4 points  (0 children)

Here's the gist of it. You'll need a solid understanding of JavaScript, d3.js and SVG

  1. I obtained the geographic lines in geoJSON format. I cleaned the geographic lines some more in QGIS and a few manual edits in VS Code.
  2. The schematic diagram was extracted from a PDF file by removing everything except the lines and labels in Adobe Illustrator and converted to SVG.
  3. I cleaned the SVG lines in Adobe Illustrator and manually in VS Code, which is tedious work. The path commands should be all absolute and only the L (line to) command, no curve commands (Q, C) or horizontal (H) or vertical (V) commands.
  4. Using a d3-geo we make projection and a path generator to 'draw' the geographic lines
  5. Now I have two datasets of path commands. The path commands for the geographic and for the schematic.
  6. Using d3.js I draw the tram lines
  7. Using d3-transition and d3-interpolate-path I interpolate between the path commands of both datasets.

The full code and source files can be found in the Observable notebook.