Tag: javascript

  • Parsing “Pollinator Post”

    May Chen runs a treasure of an e-mail newsletter, the “Pollinator Post”, where she shares macro shots of insects and plants, mostly local natives, from her hikes around the East Bay, along with commentary drawing on her decades of experience as a docent. Until recently, these posts were available only via an invite-only e-mail group,…

  • Undoing perspectival distortion

    I have a lot of photos containing a sign or other rectangular object where I’d like to undo the distortion that comes from having the plane of the camera not exactly parallel to the plane of the rectangle. I’ve also been wanting to play with Tauri, a framework for creating apps, for a while. So,…

  • Fun with Xorshift

    I’ve been hacking on an old game I wrote for the school paper I founded: Hangman. (Code: https://github.com/fadend/hangman.) One feature I like: the ability to create your own games with a shareable link. Here’s one for you: https://revfad.com/hangman/?w=JVFUVAT+LBH+N+JBAQRESHY+QNL. Since I didn’t want the URL parameter to give away the answer, I have the game run…

  • ArcGIS map linking

    Something I’ve found frustrating with a few different instances of ArcGIS-based maps is the lack of an easy ability to share or link to a particular location. E.g., one of the water districts shares this map: https://valleywater.maps.arcgis.com/apps/webappviewer/index.html?id=39632100ff6d48dcab9405ee080b142b. After some fruitless searching in regular search, Gemini helped get me on the right track in response to…

  • Comparing nodes

    I thought I wanted to compare the DOM trees for a couple of nodes. I ended up putting this together: How would you have done it? (I’d be unsurprised if this has some bugs.) After writing this though, I realized that comparing the HTML from n1.getHTML() vs n2.getHTML() was better for my purposes. (I don’t…