From e5422beb61a59be5acfa205319f02447de63108d Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 13 Aug 2024 08:07:45 -0600 Subject: [PATCH 01/19] backup strategy --- .../blog/2024/08-13-backup-strategy/index.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 content/blog/2024/08-13-backup-strategy/index.md diff --git a/content/blog/2024/08-13-backup-strategy/index.md b/content/blog/2024/08-13-backup-strategy/index.md new file mode 100644 index 0000000..ea81086 --- /dev/null +++ b/content/blog/2024/08-13-backup-strategy/index.md @@ -0,0 +1,32 @@ +--- +title: Backup strategy +date: 2024-08-13 +tags: + - computers +--- + +After discussing it with the family, +we decided that being able to load the backups onto a Chromebook was a consideration, +since I might not be around to recover the data. + +What we wound up with was a USB SATA adapter, +and a couple El Cheapo 10TB hard drives formatted with ext4. +I'm running rsync of my entire mirrored btrfs onto one right now, +with the expectation that someone will be able to read that on a Chromebook, +or find a helpful nerd to do it. +One drive will live at my father's apartment. +Every six months or so I'll need to run the rsync again. + +At some point one of them will fail, +and will have to be replaced with a new hard drive. + +We're also going to start printing out photos +and making albums the old fashioned way. +I have low confidence that my grandchildren will be able to read an EXT4 SATA hard drive. +But I'm pretty sure they'll be able to see a photograph + +This backup strategy is essentially what we were doing before, +the big change being that I'm no longer buying these crummy USB hard drives +that seem to fail after 2 years. +Hopefully the 5.25" hard drives last longer. +We'll see. From 4362e4401bcba9867ffade28174252f3a0bd0c1b Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Wed, 14 Aug 2024 21:19:27 -0600 Subject: [PATCH 02/19] Emacs --- content/blog/2024/08-14-emacs/index.md | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 content/blog/2024/08-14-emacs/index.md diff --git a/content/blog/2024/08-14-emacs/index.md b/content/blog/2024/08-14-emacs/index.md new file mode 100644 index 0000000..25cfbba --- /dev/null +++ b/content/blog/2024/08-14-emacs/index.md @@ -0,0 +1,37 @@ +--- +title: Emacs +date: 2024-08-14 +tags: + - computers +--- + +I'm back on Emacs. + +Somebody on the Something Awful Forums pointed out that VSCode will only be cool +for as long as Microsoft cares about it. +Given the recent banning of my LinkedIn account, +I figured it was time to go back to Emacs. + +Emacs 29 really did make a lot of improvements. + +I picked it back up almost instantly, +and I've already learned some new things. +I thought I would miss multi-cursor, +so I installed an emacs thing to do it, +but I'm using the built-in search/replace mechanisms more. + +It has a package system now! +And they introduced a related thing that makes my ~/.emacs/init.el +pretty neat and tidy. + +Eshell is still pretty great, +I've been using that quite a bit. +And they've got this new treesitter stuff that works great in Go, +is a little crashy in JavaScript. +I'm expecting a big improvement in Emacs 30. + +This is all in Windows most of the time, +although I'm using it in Linux too. + +Anyway, I'm back on Emacs now. +I think I'm probably done trying out new editors. From 8da6378b3aa301419b9320d35238a800967531d9 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Wed, 14 Aug 2024 21:24:18 -0600 Subject: [PATCH 03/19] fix build? --- .../index.md | 2 +- content/blog/new | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename content/blog/2024/{07-30-featurephone:-still-going => 07-30-featurephone-still-going}/index.md (97%) diff --git a/content/blog/2024/07-30-featurephone:-still-going/index.md b/content/blog/2024/07-30-featurephone-still-going/index.md similarity index 97% rename from content/blog/2024/07-30-featurephone:-still-going/index.md rename to content/blog/2024/07-30-featurephone-still-going/index.md index 4f422b4..835618b 100644 --- a/content/blog/2024/07-30-featurephone:-still-going/index.md +++ b/content/blog/2024/07-30-featurephone-still-going/index.md @@ -1,5 +1,5 @@ --- -title: Featurephone: still going +title: "Featurephone: still going" date: 2024-07-30 tags: - featurephone diff --git a/content/blog/new b/content/blog/new index b390445..25de07b 100755 --- a/content/blog/new +++ b/content/blog/new @@ -20,14 +20,14 @@ YYYY="$(date +%Y)" MM="$(date +%m)" DD="$(date +%d)" -slug=$(echo "$SLUG" | tr 'A-Z ' 'a-z-') +slug=$(echo "$SLUG" | tr 'A-Z ' 'a-z-' | tr -d ':') dir="$YYYY/$MM-$DD-$slug" index="$dir/index.md" mkdir -p "$dir" cat <"$index" --- -title: $TITLE +title: "$TITLE" date: $YYYY-$MM-$DD tags: - untagged From 6bdde7b39ab90dbcdb7de20fcd265d95623f524e Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 2 Sep 2024 22:24:17 -0600 Subject: [PATCH 04/19] rss script --- .../2024/09-02-podcast-rss-generator/build.sh | 61 +++++++++++++++++++ .../2024/09-02-podcast-rss-generator/index.md | 23 +++++++ 2 files changed, 84 insertions(+) create mode 100755 content/blog/2024/09-02-podcast-rss-generator/build.sh create mode 100644 content/blog/2024/09-02-podcast-rss-generator/index.md diff --git a/content/blog/2024/09-02-podcast-rss-generator/build.sh b/content/blog/2024/09-02-podcast-rss-generator/build.sh new file mode 100755 index 0000000..feabea8 --- /dev/null +++ b/content/blog/2024/09-02-podcast-rss-generator/build.sh @@ -0,0 +1,61 @@ +#! /bin/sh + +set -e + +cd $(dirname $0) +. config.sh + +out="rss.xml" +exec 1>$out +echo "Writing to $out" 1>&2 + +cat < + + + $title + $url + en + $description + +EOF + +if [ -f cover.jpg ]; then + cat < + $url/cover.jpg + $title + $url + +EOF +fi + +for fn in *.mp3; do + echo "- $fn" 1>&2 + + ffprobe -loglevel quiet -show_entries format -output_format json "$fn" > format.json + title=$(cat format.json | jq -r '.format.tags.title') + duration=$(cat format.json | jq -r '.format.duration | tonumber | ceil') + #bps=$(cat format.json | jq -r '.format.bit_rate') + #kbps=$(($bps / 1000)) + rm format.json + guid=$(sha1sum "$fn" | awk '{print $1}') + size=$(stat -c %s "$fn") + mtime=$(date -R -d @$(stat -c %Y "$fn")) + ufn=$(echo $fn | tr ' ' '+') + + cat < + $title + $mtime + $duration + + $guid + +EOF +done + +cat < + +EOF diff --git a/content/blog/2024/09-02-podcast-rss-generator/index.md b/content/blog/2024/09-02-podcast-rss-generator/index.md new file mode 100644 index 0000000..57950da --- /dev/null +++ b/content/blog/2024/09-02-podcast-rss-generator/index.md @@ -0,0 +1,23 @@ +--- +title: "Podcast RSS Generator" +date: 2024-09-02 +tags: + - computers + - featurephone +--- + +I wanted to play some audiobooks on my light phone, +so I made a bourne shell script to generate an RSS feed. +I was surprised that I couldn't find any prior work to do this. + +Put all your .mp3 files in a directory, +put this script in it, +and make a `config.sh`: + +```sh +title="My Audiobook" +description="An audiobook I like" +url="https://example.com/ebooks/mine" +``` + +The script: [build.sh](build.sh) From 98e541557ebcc28abc816af5b2574de2421b280e Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 2 Sep 2024 22:29:12 -0600 Subject: [PATCH 05/19] wordsmithing --- .../blog/2024/09-02-podcast-rss-generator/index.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/content/blog/2024/09-02-podcast-rss-generator/index.md b/content/blog/2024/09-02-podcast-rss-generator/index.md index 57950da..6560306 100644 --- a/content/blog/2024/09-02-podcast-rss-generator/index.md +++ b/content/blog/2024/09-02-podcast-rss-generator/index.md @@ -20,4 +20,15 @@ description="An audiobook I like" url="https://example.com/ebooks/mine" ``` -The script: [build.sh](build.sh) +The script: +[build.sh](build.sh). +It will create `rss.xml` in that directory. + +It uses `ffprobe` from ffmpeg to figure out each track's title. +All my tracks have ID3 tags, +so it may fail if yours don't. + +It can deal with spaces in filenames, +but not double-quotes. +`&` and `<` might cause problems too. +Anyway, it's good enough for me. From 9ab86a96e23d885b826b075a469a33b6dbac2afe Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 2 Sep 2024 22:42:39 -0600 Subject: [PATCH 06/19] replace f-91w battery --- content/blog/2022/11-28-smartwatch.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/blog/2022/11-28-smartwatch.md b/content/blog/2022/11-28-smartwatch.md index eaa87cc..3ac67a6 100644 --- a/content/blog/2022/11-28-smartwatch.md +++ b/content/blog/2022/11-28-smartwatch.md @@ -50,3 +50,11 @@ light. It's been running on the battery it came with since I got it. Every 4 years you have to tell it about leap year. Apparently, my favorite watch is one I only have to think about every 4 years. + + +Update: 2024-Sep-02 +--------------- + +The F-91W's alarm wouldn't sound until I replaced the battery. +Seems like I got about 10 years out of it. +I'll plan to replace it again around 2034. From 14b7092eeda4631d245660caa939d1ef0ab11de2 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 2 Sep 2024 22:52:56 -0600 Subject: [PATCH 07/19] email update --- .../blog/2024/09-02-self-hosted-email/index.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 content/blog/2024/09-02-self-hosted-email/index.md diff --git a/content/blog/2024/09-02-self-hosted-email/index.md b/content/blog/2024/09-02-self-hosted-email/index.md new file mode 100644 index 0000000..64b62e8 --- /dev/null +++ b/content/blog/2024/09-02-self-hosted-email/index.md @@ -0,0 +1,15 @@ +--- +title: "Self-Hosted Email" +date: 2024-09-02 +tags: + - computers +--- + +I'm paying a company (Proton) to host woozle.org email now. +I had to learn enough about DKIM and SPF to set it up, +but I've forgotten now. + +It's fine. + +I like not having email delivery tied into the same quota +as photo storage. From a152d3819e1cedba887163a9c514b78b5abac8a9 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 2 Sep 2024 22:55:02 -0600 Subject: [PATCH 08/19] words --- content/blog/2024/09-02-self-hosted-email/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/blog/2024/09-02-self-hosted-email/index.md b/content/blog/2024/09-02-self-hosted-email/index.md index 64b62e8..4cc716a 100644 --- a/content/blog/2024/09-02-self-hosted-email/index.md +++ b/content/blog/2024/09-02-self-hosted-email/index.md @@ -5,11 +5,11 @@ tags: - computers --- -I'm paying a company (Proton) to host woozle.org email now. +I'm now paying a company (Proton) to host woozle.org email. I had to learn enough about DKIM and SPF to set it up, -but I've forgotten now. +but I've forgotten what I did. -It's fine. +Proton is fine. I like not having email delivery tied into the same quota as photo storage. From e2ca9850ffa4978702f87d44a8e8901e0d7bb198 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 3 Sep 2024 13:38:46 -0600 Subject: [PATCH 09/19] feeding deer --- content/letters/feeding-deer.md | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 content/letters/feeding-deer.md diff --git a/content/letters/feeding-deer.md b/content/letters/feeding-deer.md new file mode 100644 index 0000000..1054356 --- /dev/null +++ b/content/letters/feeding-deer.md @@ -0,0 +1,100 @@ +--- +title: Legality of Feeding Deer in Los Alamos +description: Area man asked to stop feeding deer, writes 2000-word tirade to Editor. +--- + +Sunday, December 2, 2024 at 10:39 am + +*This was published as a [letter to the Editor of the Los Alamos Daily Post](https://ladailypost.com/werley-legality-of-feeding-deer-in-los-alamos/)* + +By Dr. Ken Werley +Los Alamos + +To: State Representative Christine Chandler, Los Alamos Daily Post, and NM Department of Game and Fish (NMDGF), + +Re: feeding deer in Los Alamos: + +BACKGROUND: + +I have lived at my residence for 40 years. For 25 years, when I notice an interested deer, I have fed it a small cup of birdseed that takes a deer 2-3 minutes of their day to consume. My house backs onto the golf course and it has the only unfenced yard on the east side of 35th St on my block. Some deer daily pass though my yard on the way between the golf course and the many fruit trees across the street (and to get to the canyon beyond). Nightly, I take my hummingbird and suet feeders inside to not attract bear. I only place a thin layer of birdseed into the bottom my 40-year-old bird feeder (for birds) because a big deer could empty the whole feeder. I try to not put birdseed into the feeder if a deer is in sight. In 40 years, I have never seen a deer/car accident on my block. This spring/summer, I have had seen deer, rabbit, skunk, raccoon, fox, coyote, and bear pass through my yard. + +LAW: It is legal to feed deer in New Mexico. + +PROBLEM: + +On May 31, 2024, NM Department of Game and Fish (NMDGF) Officer Carter showed up at my residence, issued me a warning citation, and told me I had to stop feeding deer. When asked why, Officer Carter stated: (1) “The deer in town (Los Alamos), … are all nuisance animals.” [Carter 6/1/2024 email] and thus: (2) He will issue citations for all feeding of deer in Los Alamos. (This is equivalent to claiming feeding is illegal in Los Alamos.) + +I have read the DGF regulation that states it is illegal to create nuisance animals. It seems to me that the regulation was written to permit DGF to deal with individual problem animals, for instance, if the animal +attacks a person or pet. It seems wrong and illegitimate for Officer Carter to do species profiling and declare all deer, bear and mountain lions in town as nuisance animals. + +* Carter’s claim (1) seems ridiculous to me! Furthermore, he refuses to supply any numerical criteria or published guidelines that explain or justify how DFG may classify a deer as a nuisance. Instead, Carter refers to vague general principles including car accidents, predator encounters, and disease. +* I have lived at my residence for 40 years and have never observed a car/deer accident in front of my house or on my block. Carter does not supply any numerical statistics about car/deer accidents, number, location, rate/year, or whether speeding, driver inattention, or poor visibility at deer crossing locations is to blame. How many car accidents per year in what confined vicinity make deer a nuisance? +* Carter blames deer for attracting bear to town. Any resident knows that the primary draw of bear is garbage cans and fruit trees. +** I don’t know about most of town, but near the golf course, the deer actually reduce the number of predators because they chase away coyotes. Deer chase coyotes for a distance further than the length of a fairway. Neighborhood pets benefit greatly from this. +* Carter has not presented any evidence of any widespread deadly deer disease epidemics. +* The deer have been living and roaming through the neighborhoods of Los Alamos since before Officer Carter was born. These deer are obviously more used to people and dogs than deer that live in more remote areas. + +[Interesting aside: People cause car accidents, attract predators and spread diseases. Does that mean that people are nuisance animals, and we ought declare feeding them via grocery stores and restaurants + be banned?} + +Feeding of deer has been legal in Los Alamos for decades. What has changed in the last year that Carter can now claim that the deer are a nuisance? Where is the historical data that demonstrates that all the deer in Los Alamos are suddenly a nuisance? Where is data that demonstrates that feeding deer a small cup of birdseed has changed any deer’s wandering patterns? (When did Carter start working in the Española Office?) + +Carter says DGF has received reports of my feeding deer (which is legal in NM), but he won’t break down when they were made, the addresses of the reporters, and whether they were reports of feeding or of “creating nuisance animals”. + +* Most of my neighbors live in harmony with the local deer. +* Carter has not performed a survey of the neighbor’s views concerning deer. +* I can easily make a list of many more people who have supported and encouraged the feeding of deer (a small amount of food per deer) at my residence. +* The County of Los Alamos has recently killed a proposed ordinance that would have banned the feeding of wildlife. + +Certainly, over-feeding of deer is bad if it disrupts the natural feeding behavior. If it is a tiny part of both their diet and their movement patterns, then that argument doesn’t apply. + +Officer Carter will not explain what achievable measurable result that he hoped to achieve by banning feeding of deer at my residence? Four herds of doe routinely feed on the golf course on the northwest side of Diamond Dr. One of those herds routinely pass through my unfenced yard. After 3 months of a feeding ban, the deer still pass through my yard regularly. Lately, I’m seeing many fawns per day. What did he achieve by the ban? How can he achieve any change if he already considers all deer in town to be a nuisance? His only goal seems to be to subvert the law that feeding deer is legal in NM and ban feeding of deer in Los Alamos. Since it has been 3 months since Carter has banned all feeding of deer in Los Alamos, and since he blames feeding as the main source of creating nuisance animals, why doesn’t he declare all the deer in Los Alamos as no longer a nuisance? + +Officer Carter’s manager, DGF Sergeant Benjamin Otero, has tried to defend Carter’s actions by claiming that “Every situation is different due to the circumstances” [email 7/5/2024]. This is a falsehood. Carter has claimed that all deer in town are nuisance animals. He also stated that he is “addressing every location that is a feeding location.” and “No house in town will be feeding deer.” [Carter 6/1/2024 email] He bragged that he had a long list of feeders, and I recall him mentioning Urban Park and The Posse Shack as some locations. These are located multiple miles away from my residence. Clearly, DGF’s goal is to subvert the law that feeding deer is legal in NM and ban feeding of deer in Los Alamos. + +DGF Sergeant Benjamin Otero’s manager, DGF Captain Darrell Cole [email 7/19/2024] states that “The Department does not have a policy on what constitutes deer feeding” and it is okay to feed deer unless there is an intent to “entice game animals to an area”. I have no such intent. For 40 years at this residence, deer routinely pass through my yard going between the golf course and the fruit trees across the street and the canyon beyond. It seems silly to base feeding restrictions on intent rather than on feed amounts per deer and feed that determines deer movement patterns. Carter does not supply any numerical statistics about car/deer accidents, number, location, rate/year, or whether speeding, driver inattention, or poor visibility at deer crossing locations (Diamond Dr.) are to blame. How can DGF managers argue local conditions when Officer Carter claims all deer in Los Alamos are nuisance animals? + +SUMMARY: + +Officer Carter’s shortfalls: +* He claims all deer in Los Alamos are nuisance animals. +* He won’t define numerical criteria used to declare nuisance deer. +* He doesn’t explain how feeding a small amount creates a nuisance animal. +* He doesn’t consider the amount of food given per deer. +* He blindly and unfairly targets people who have been reported as feeding deer. +* He refuses to explain what constitutes feeding: For example, filling bird feeders with birdseed, spreading birdseed on the ground, allowing birds to knock birdseed to the ground, fertilizing the yard, allowing weeds to grow, filling the hummingbird feeder with nectar, spreading bread crumbs on the ground for ravens, allowing fruit to lie in the ground, planting a fruit tree, planting a garden. I have seen deer feed on all of the above activities. If a person is threatened with citations and fines for feeding deer, it would seem that he ought provide detailed rules for what is legal. +* He blindly ignores that the main feeding provided to town deer is by the County through fertilizing and heavily watering of Parks and the Golf Course and by fruit tree owners. He states that “The golf course, +fruit trees and small private gardens do not contribute”. [Carter 6/1/2024 email] +* He doesn’t consider that 83% of the land surrounding my block of 35th St. is undeveloped land (golf course and canyons). How can anyone expect deer to not utilize the area? +* He ignores that 80% of my neighbors have fruit trees. He ignores that deer feed on fruit trees from early spring (flowers and new leaves), through late spring (immature fruit blown off of trees), through summer and fall (ripe fruit), and through late fall (fallen leaves). +* He ignores that my yard is the only unfenced yard on the east side of my block and is a natural path between the golf course and the fruit trees and canyons beyond. +* Officer Carter claims it is illegal to feed deer fruit underneath a fruit tree where they are already feeding. Where is any logic in that? (Carter email 6/27/2024) +* He claims it is illegal to feed deer on the golf course where they are already feeding. Deer often feed there for multiple hours per day. (Carter email 6/27/2024) +* How can anyone create a nuisance animal if it is already a nuisance (because it exists in town) before ever getting to any residence? +* Officer Carter doesn’t survey the neighborhood residents to see if they consider the local deer a nuisance before unilaterally declaring them a nuisance? +* He won’t explain if he considers birdseed an unnatural food of deer. +* He ignores the benefits of local deer: eating weeds from yards, cleaning up fallen fruit before they begin to rot, chasing away coyotes, being beautiful to observe and photograph? + +The DGF employees are supposed to be professionals and deer experts, but it sure doesn’t seem so. + +DGF shortfalls: + +* DGF personnel appear to try to avoid explaining their policies. +* When asked directly, DGF management refuse to answer whether Carter’s claim #(1) is official DGF policy? +* They don’t have a policy they use to define a nuisance deer. +* They don’t have an explanation of how feeding a deer a small amount of birdseed (a tiny part of its diet) makes it a nuisance animal. +* They claim all feeding of deer in Los Alamos warrants a citation (Carter) but avoid stating that feeding deer is illegal in Los Alamos. That is totally disingenuous! +* They won’t define what human activities constitute feeding deer even though they threaten fines for it. +* They don’t even consider the amount of food per deer per day. +* They won’t provide a plan to make a nuisance deer be considered not a nuisance. +* DGF will not provide maps that define the areas where they consider nuisance deer to be located? (Even though Carter considers the whole town.) +* Even though it is legal to feed deer in NM, they won’t specify where in Los Alamos County it is legal. +* DGF allows an employee to declare and treat all deer in Los Alamos to be nuisance animals. That is disgusting. + +NMDGF seems to employ a lot of dishonest people. Please consider cutting NMDGF’s budget. + +Thank you for your time and consideration. + +Sincerely, + +Dr. Kenneth A. Werley From 100f309ed9064c7c5f5feb1517e82bf10c9a6760 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 3 Sep 2024 13:41:54 -0600 Subject: [PATCH 10/19] add dates to letters --- content/letters/dear-ministers.md | 1 + content/letters/good-and-bad-los-alamos.md | 1 + content/letters/i-also-enjoy-wearing-kilts.md | 1 + content/letters/shopping-at-smiths.md | 1 + content/letters/suspicious-activity.md | 1 + content/letters/uglification-2.md | 1 + content/letters/uglification.md | 1 + content/toys/triscit/index.html | 5 ++++- content/toys/triscit/ui.mjs | 12 ++++++++++++ 9 files changed, 23 insertions(+), 1 deletion(-) diff --git a/content/letters/dear-ministers.md b/content/letters/dear-ministers.md index 7a4b456..752b268 100644 --- a/content/letters/dear-ministers.md +++ b/content/letters/dear-ministers.md @@ -1,5 +1,6 @@ --- title: Dear Ministers +date: 2011-12-09 --- Friday, December 9, 2011 at 12:39 pm diff --git a/content/letters/good-and-bad-los-alamos.md b/content/letters/good-and-bad-los-alamos.md index 42469a8..09a20e0 100644 --- a/content/letters/good-and-bad-los-alamos.md +++ b/content/letters/good-and-bad-los-alamos.md @@ -1,6 +1,7 @@ --- title: The good and bad of Los Alamos description: The first letter I collected. I felt it needed to be preserved forever. +date: 2008-11-05 --- *This was published as a [letter to the Editor of the Los Alamos Monitor](http://www.lamonitor.com/content/good-and-bad-los-alamos)* diff --git a/content/letters/i-also-enjoy-wearing-kilts.md b/content/letters/i-also-enjoy-wearing-kilts.md index f3037b8..7cfee0b 100644 --- a/content/letters/i-also-enjoy-wearing-kilts.md +++ b/content/letters/i-also-enjoy-wearing-kilts.md @@ -1,5 +1,6 @@ --- title: I Also Enjoy Wearing Kilts +date: 2016-09-28 --- *This was published as a [letter to the Editor of the Daily Post](http://www.ladailypost.com/content/letter-editor-i-also-enjoy-wearing-kilts)* diff --git a/content/letters/shopping-at-smiths.md b/content/letters/shopping-at-smiths.md index 03e9bb1..ff96973 100644 --- a/content/letters/shopping-at-smiths.md +++ b/content/letters/shopping-at-smiths.md @@ -1,5 +1,6 @@ --- title: Shopping At Smith's +date: 2017-05-11 --- *This was published as a [letter to the Editor of the Daily Post](http://www.ladailypost.com/content/letter-editor-shopping-smiths)* diff --git a/content/letters/suspicious-activity.md b/content/letters/suspicious-activity.md index c9f8959..dfa728f 100644 --- a/content/letters/suspicious-activity.md +++ b/content/letters/suspicious-activity.md @@ -1,5 +1,6 @@ --- title: Concern Over Suspicious Activity +date: 2023-09-01 --- *This was published as a [letter to the Editor of the Daily Post](http://www.ladailypost.com/content/letter-editor-concern-over-suspicious-activity)* diff --git a/content/letters/uglification-2.md b/content/letters/uglification-2.md index a39e215..f059019 100644 --- a/content/letters/uglification-2.md +++ b/content/letters/uglification-2.md @@ -1,6 +1,7 @@ --- title: The Uglification of Los Alamos (2021) description: in which it is opined that the new street lamps are ugly, unlike the old ones from 2014 +date: 2021-01-30 --- *This was published as a [letter to the Editor of the Los Alamos Reporter](https://losalamosreporter.com/2021/01/30/the-uglification-of-los-alamos/)* diff --git a/content/letters/uglification.md b/content/letters/uglification.md index a270c57..96cdeea 100644 --- a/content/letters/uglification.md +++ b/content/letters/uglification.md @@ -1,6 +1,7 @@ --- title: The Uglification of Los Alamos (2014) description: in which it is opined that the new street lamps are ugly +date: 2014-11-20 --- *This was published as a [letter to the Editor of the Daily Post](http://www.ladailypost.com/content/letter-editor-uglification-los-alamos)* diff --git a/content/toys/triscit/index.html b/content/toys/triscit/index.html index ad1c10e..dc33ae1 100644 --- a/content/toys/triscit/index.html +++ b/content/toys/triscit/index.html @@ -43,7 +43,10 @@ type: bare
- + +
+
+
diff --git a/content/toys/triscit/ui.mjs b/content/toys/triscit/ui.mjs index c9fbf41..edd6356 100644 --- a/content/toys/triscit/ui.mjs +++ b/content/toys/triscit/ui.mjs @@ -51,6 +51,9 @@ class UI { case "input": e.addEventListener("input", () => this.SetInput()) break + case "0xinput": + e.addEventListener("input", () => this.SetInput(true)) + break case "program": e.addEventListener("input", () => this.SetProgram()) } @@ -186,9 +189,18 @@ class UI { this.Reset() } + Set0xInput() { + let e = document.querySelector('[data-control="0xinput"]') + let x = e.value || "" + let v = Binutils.Unhexlify(x) + // XXX: escape v and fill into the input + this.input = Binutils.Unhexlify(v) + this.Reset() + } SetInput() { let e = document.querySelector('[data-control="input"]') let v = e.value || "" + let x = Binutils.Hexlify(v) this.input = Binutils.Unescape(v) this.Reset() } From fc1afd8681e2a49c112134d215e84c604c064b6e Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 3 Sep 2024 13:42:57 -0600 Subject: [PATCH 11/19] Revert changes to triscit --- content/toys/triscit/index.html | 5 +---- content/toys/triscit/ui.mjs | 12 ------------ 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/content/toys/triscit/index.html b/content/toys/triscit/index.html index dc33ae1..ad1c10e 100644 --- a/content/toys/triscit/index.html +++ b/content/toys/triscit/index.html @@ -43,10 +43,7 @@ type: bare
- -
-
- +
diff --git a/content/toys/triscit/ui.mjs b/content/toys/triscit/ui.mjs index edd6356..c9fbf41 100644 --- a/content/toys/triscit/ui.mjs +++ b/content/toys/triscit/ui.mjs @@ -51,9 +51,6 @@ class UI { case "input": e.addEventListener("input", () => this.SetInput()) break - case "0xinput": - e.addEventListener("input", () => this.SetInput(true)) - break case "program": e.addEventListener("input", () => this.SetProgram()) } @@ -189,18 +186,9 @@ class UI { this.Reset() } - Set0xInput() { - let e = document.querySelector('[data-control="0xinput"]') - let x = e.value || "" - let v = Binutils.Unhexlify(x) - // XXX: escape v and fill into the input - this.input = Binutils.Unhexlify(v) - this.Reset() - } SetInput() { let e = document.querySelector('[data-control="input"]') let v = e.value || "" - let x = Binutils.Hexlify(v) this.input = Binutils.Unescape(v) this.Reset() } From c082bab54a12e8c5a12ae6ef08722abb700f053b Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 3 Sep 2024 13:44:48 -0600 Subject: [PATCH 12/19] formatting --- content/letters/feeding-deer.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/content/letters/feeding-deer.md b/content/letters/feeding-deer.md index 1054356..bc9122a 100644 --- a/content/letters/feeding-deer.md +++ b/content/letters/feeding-deer.md @@ -1,26 +1,25 @@ --- title: Legality of Feeding Deer in Los Alamos -description: Area man asked to stop feeding deer, writes 2000-word tirade to Editor. +description: Area man asked to stop feeding deer, writes 2000-word tirade calling for defunding Game and Fish. --- Sunday, December 2, 2024 at 10:39 am *This was published as a [letter to the Editor of the Los Alamos Daily Post](https://ladailypost.com/werley-legality-of-feeding-deer-in-los-alamos/)* -By Dr. Ken Werley -Los Alamos +By Dr. Ken Werley +Los Alamos -To: State Representative Christine Chandler, Los Alamos Daily Post, and NM Department of Game and Fish (NMDGF), +To: State Representative Christine Chandler, Los Alamos Daily Post, and NM Department of Game and Fish (NMDGF), +Re: feeding deer in Los Alamos: -Re: feeding deer in Los Alamos: - -BACKGROUND: +# BACKGROUND: I have lived at my residence for 40 years. For 25 years, when I notice an interested deer, I have fed it a small cup of birdseed that takes a deer 2-3 minutes of their day to consume. My house backs onto the golf course and it has the only unfenced yard on the east side of 35th St on my block. Some deer daily pass though my yard on the way between the golf course and the many fruit trees across the street (and to get to the canyon beyond). Nightly, I take my hummingbird and suet feeders inside to not attract bear. I only place a thin layer of birdseed into the bottom my 40-year-old bird feeder (for birds) because a big deer could empty the whole feeder. I try to not put birdseed into the feeder if a deer is in sight. In 40 years, I have never seen a deer/car accident on my block. This spring/summer, I have had seen deer, rabbit, skunk, raccoon, fox, coyote, and bear pass through my yard. LAW: It is legal to feed deer in New Mexico. -PROBLEM: +# PROBLEM: On May 31, 2024, NM Department of Game and Fish (NMDGF) Officer Carter showed up at my residence, issued me a warning citation, and told me I had to stop feeding deer. When asked why, Officer Carter stated: (1) “The deer in town (Los Alamos), … are all nuisance animals.” [Carter 6/1/2024 email] and thus: (2) He will issue citations for all feeding of deer in Los Alamos. (This is equivalent to claiming feeding is illegal in Los Alamos.) @@ -54,7 +53,7 @@ Officer Carter’s manager, DGF Sergeant Benjamin Otero, has tried to defend Car DGF Sergeant Benjamin Otero’s manager, DGF Captain Darrell Cole [email 7/19/2024] states that “The Department does not have a policy on what constitutes deer feeding” and it is okay to feed deer unless there is an intent to “entice game animals to an area”. I have no such intent. For 40 years at this residence, deer routinely pass through my yard going between the golf course and the fruit trees across the street and the canyon beyond. It seems silly to base feeding restrictions on intent rather than on feed amounts per deer and feed that determines deer movement patterns. Carter does not supply any numerical statistics about car/deer accidents, number, location, rate/year, or whether speeding, driver inattention, or poor visibility at deer crossing locations (Diamond Dr.) are to blame. How can DGF managers argue local conditions when Officer Carter claims all deer in Los Alamos are nuisance animals? -SUMMARY: +# SUMMARY: Officer Carter’s shortfalls: * He claims all deer in Los Alamos are nuisance animals. @@ -77,7 +76,7 @@ fruit trees and small private gardens do not contribute”. [Carter 6/1/2024 ema The DGF employees are supposed to be professionals and deer experts, but it sure doesn’t seem so. -DGF shortfalls: +# DGF shortfalls: * DGF personnel appear to try to avoid explaining their policies. * When asked directly, DGF management refuse to answer whether Carter’s claim #(1) is official DGF policy? From ecfcc5cfb53abe9fe1036de17baf31c3ca277938 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 3 Sep 2024 13:48:27 -0600 Subject: [PATCH 13/19] date --- content/letters/feeding-deer.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/letters/feeding-deer.md b/content/letters/feeding-deer.md index bc9122a..121deea 100644 --- a/content/letters/feeding-deer.md +++ b/content/letters/feeding-deer.md @@ -1,9 +1,10 @@ --- title: Legality of Feeding Deer in Los Alamos description: Area man asked to stop feeding deer, writes 2000-word tirade calling for defunding Game and Fish. +date: 2024-09-02 --- -Sunday, December 2, 2024 at 10:39 am +Sunday, September 2, 2024 at 10:39 am *This was published as a [letter to the Editor of the Los Alamos Daily Post](https://ladailypost.com/werley-legality-of-feeding-deer-in-los-alamos/)* From 0b8b862ed6bf3e0757ef24e28b902f157b878801 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 3 Sep 2024 13:50:06 -0600 Subject: [PATCH 14/19] more metadata twiddling --- content/letters/feeding-deer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/letters/feeding-deer.md b/content/letters/feeding-deer.md index 121deea..d7cadea 100644 --- a/content/letters/feeding-deer.md +++ b/content/letters/feeding-deer.md @@ -1,6 +1,6 @@ --- title: Legality of Feeding Deer in Los Alamos -description: Area man asked to stop feeding deer, writes 2000-word tirade calling for defunding Game and Fish. +description: Area man asked to stop feeding deer, calls for defunding Game and Fish. date: 2024-09-02 --- From 5b13a76be27d23e26cee788a7fced370ef8a7a53 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 3 Sep 2024 13:52:21 -0600 Subject: [PATCH 15/19] fix date --- content/letters/suspicious-activity.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/letters/suspicious-activity.md b/content/letters/suspicious-activity.md index dfa728f..faae4db 100644 --- a/content/letters/suspicious-activity.md +++ b/content/letters/suspicious-activity.md @@ -1,6 +1,6 @@ --- title: Concern Over Suspicious Activity -date: 2023-09-01 +date: 2013-09-01 --- *This was published as a [letter to the Editor of the Daily Post](http://www.ladailypost.com/content/letter-editor-concern-over-suspicious-activity)* From 2aff02c9aff2a23a63b2a176d5915e84b01979ca Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 3 Sep 2024 13:54:32 -0600 Subject: [PATCH 16/19] update link --- content/letters/suspicious-activity.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/letters/suspicious-activity.md b/content/letters/suspicious-activity.md index faae4db..c9a68aa 100644 --- a/content/letters/suspicious-activity.md +++ b/content/letters/suspicious-activity.md @@ -3,7 +3,7 @@ title: Concern Over Suspicious Activity date: 2013-09-01 --- -*This was published as a [letter to the Editor of the Daily Post](http://www.ladailypost.com/content/letter-editor-concern-over-suspicious-activity)* +*This was published as a [letter to the Editor of the Daily Post](https://ladailypost.com/letter-to-the-editor-concern-over-suspicious-activity/)* September 1, 2013 From bcd9c6415438fc1f99df187bac3eaa838fe19080 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 3 Sep 2024 13:59:54 -0600 Subject: [PATCH 17/19] inline script --- .../2024/09-02-podcast-rss-generator/index.md | 70 ++++++++++++++++++- 1 file changed, 67 insertions(+), 3 deletions(-) diff --git a/content/blog/2024/09-02-podcast-rss-generator/index.md b/content/blog/2024/09-02-podcast-rss-generator/index.md index 6560306..f58d6e1 100644 --- a/content/blog/2024/09-02-podcast-rss-generator/index.md +++ b/content/blog/2024/09-02-podcast-rss-generator/index.md @@ -20,9 +20,8 @@ description="An audiobook I like" url="https://example.com/ebooks/mine" ``` -The script: -[build.sh](build.sh). -It will create `rss.xml` in that directory. +The script +will create `rss.xml` in the directory where you dropped it. It uses `ffprobe` from ffmpeg to figure out each track's title. All my tracks have ID3 tags, @@ -32,3 +31,68 @@ It can deal with spaces in filenames, but not double-quotes. `&` and `<` might cause problems too. Anyway, it's good enough for me. + +`build.sh`: +```sh +#! /bin/sh + +set -e + +cd $(dirname $0) +. config.sh + +out="rss.xml" +exec 1>$out +echo "Writing to $out" 1>&2 + +cat < + + + $title + $url + en + $description + +EOF + +if [ -f cover.jpg ]; then + cat < + $url/cover.jpg + $title + $url + +EOF +fi + +for fn in *.mp3; do + echo "- $fn" 1>&2 + + ffprobe -loglevel quiet -show_entries format -output_format json "$fn" > format.json + title=$(cat format.json | jq -r '.format.tags.title') + duration=$(cat format.json | jq -r '.format.duration | tonumber | ceil') + #bps=$(cat format.json | jq -r '.format.bit_rate') + #kbps=$(($bps / 1000)) + rm format.json + guid=$(sha1sum "$fn" | awk '{print $1}') + size=$(stat -c %s "$fn") + mtime=$(date -R -d @$(stat -c %Y "$fn")) + ufn=$(echo $fn | tr ' ' '+') + + cat < + $title + $mtime + $duration + + $guid + +EOF +done + +cat < + +EOF +``` From fc7cd28999bc612cc52c37103ca36c4d06908037 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 3 Sep 2024 14:03:21 -0600 Subject: [PATCH 18/19] twiddling words --- content/blog/2024/09-02-podcast-rss-generator/index.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/content/blog/2024/09-02-podcast-rss-generator/index.md b/content/blog/2024/09-02-podcast-rss-generator/index.md index f58d6e1..9b2c8f6 100644 --- a/content/blog/2024/09-02-podcast-rss-generator/index.md +++ b/content/blog/2024/09-02-podcast-rss-generator/index.md @@ -11,8 +11,8 @@ so I made a bourne shell script to generate an RSS feed. I was surprised that I couldn't find any prior work to do this. Put all your .mp3 files in a directory, -put this script in it, -and make a `config.sh`: +then add [build.sh](build.sh) +and `config.sh` with your settings: ```sh title="My Audiobook" @@ -32,7 +32,10 @@ but not double-quotes. `&` and `<` might cause problems too. Anyway, it's good enough for me. -`build.sh`: +--- + +Here's the script inline: + ```sh #! /bin/sh From 56c2ecaf14325f5dc5c8932b6b8513fac39395b2 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 3 Sep 2024 14:05:15 -0600 Subject: [PATCH 19/19] clarify wording --- content/blog/2024/09-02-podcast-rss-generator/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/blog/2024/09-02-podcast-rss-generator/index.md b/content/blog/2024/09-02-podcast-rss-generator/index.md index 9b2c8f6..276a989 100644 --- a/content/blog/2024/09-02-podcast-rss-generator/index.md +++ b/content/blog/2024/09-02-podcast-rss-generator/index.md @@ -21,7 +21,7 @@ url="https://example.com/ebooks/mine" ``` The script -will create `rss.xml` in the directory where you dropped it. +will create `rss.xml` in the same directory. It uses `ffprobe` from ffmpeg to figure out each track's title. All my tracks have ID3 tags,