Author: David Faden
-
Extract attachments from .eml files
I have a need for an implementation of the Knuth-Morris-Pratt algorithm (or similar) handling streaming input. I’m pretty sure I’ve implemented this previously and thought I might my find my code in an old .zip file I’d sent someone in e-mail. But Gmail refuses a direct download of the attachment, I guess due to it…
-
YOLO doesn’t see a poppy?
I’m excited to start playing with You Only Look Once, https://pjreddie.com/darknet/yolo/. The installation instructions worked beautifully: % git clone https://github.com/pjreddie/darknet% cd darknet% make% wget https://data.pjreddie.com/files/yolov3.weights% ./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg…data/dog.jpg: Predicted in 0.334838 seconds.dog: 57%car: 52%truck: 56%car: 62%bicycle: 59% Neat! I think this also my first time encountering this license: https://github.com/pjreddie/darknet/blob/master/LICENSE.fuck. One little project I…
-
Interview with Judy Schwarz
Judy Schwarz, who manages the native plant section at the Palo Alto SummerWinds location, is an icon in the local native plants community. A few quotes about her from the GardeningWithNatives mailing list: “Judy is a wonderful resource and advocate” (link), “Judy at [SummerWinds] in Palo Alto is the best!” (link), “Judy at [SummerWinds] Palo…
-
“Are Emergent Abilities of Large Language Models a Mirage?”
A couple thoughts looking at this fascinating paper from 2023: “Are Emergent Abilities of Large Language Models a Mirage?”:
-
Telling g++ about homebrew-installed lib
I’ve been having fun looking at some code created by a friend/ex-coworker, including https://github.com/hfgong/walker_vose. It makes use of the beloved to me GoogleTest C++ test framework. I guess probably the right thing to do is to set things up via one of the methods mentioned in the GoogleTest docs, Bazel or CMake. (I was very…
-
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,…
-
California cities from CDTFA
At least based on the dates listed on https://lab.data.ca.gov/dataset/california-city-boundaries-and-identifiers — still says “03/24/25” — I’m guessing the city boundaries haven’t been updated yet. For a current project, I want the best boundaries available so let’s work directly with the source pointed out by the CIO, GIS: https://gis.data.ca.gov/datasets/CDTFA::city-and-county-boundary-line-changes/explore?layer=0&location=33.924386%2C-118.008294%2C11.67. > library(sf)> d <- read_sf(“~/Downloads/City_and_County_Boundary_Line_Changes_217120214122415134.gpkg”) It turns out…
-
A hole in Los Altos (continued)
The city clerk got back to me this morning. (Thanks much for the prompt response!) The hole in the map is also a hole in the ground — a reservoir belonging to the City of Mountain View. We happened to be in the area after checking out Tom’s Depot Cafe yesterday so I snapped a…
-
A hole in Los Altos
Looking at the Census page for Los Altos, something funny caught my eye: there’s a hole in the map for Los Altos: https://data.census.gov/profile/Los_Altos_city,_California?g=160XX00US0643280 Returning to the data from https://lab.data.ca.gov/dataset/california-city-boundaries-and-identifiers, we see the same thing: > library(ggplot2)> library(sf)> cities <- read_sf(“~/Downloads/California_Cities_and_Identifiers_Blue_Version_view_-6943741225906831761.gpkg”)> losAltos <- subset(cities, CDTFA_CITY == “Los Altos”)> ggplot(losAltos) + geom_sf() What’s in that hole? >…
-
What Wittier Whittier
I was really impressed to get an almost immediate reply from the CIO, GIS to my note about Whittier appearing to some extra stuff in the geometries provided here: https://lab.data.ca.gov/dataset/california-city-boundaries-and-identifiers. They pointed to the California Department of Tax and Fee Administration as the original source of the geometries, which has been updated in the meantime:…