Wednesday weblog: Toots ending 2024-10-09
| reviewHere's what I've been posting on @sacha@social.sachachua.com:
- Emacs
Emacs equivalent of screenshots.debian.net? 2024-10-09T12:54:35.785Z
https://screenshots.debian.net/ is neat. Do we have one of those for #Emacs packages? Could be a long-term project.
Planet Emacslife updates 2024-10-08T10:51:48.127Z
More tweaks to planet.emacslife.com - I had been incorrectly checking the future-dated posts, whoops. Should work again! Also, I updated my blog feed and my new posts are finally getting aggregated again.
Pan and zoom for beginner map 2024-10-08T00:39:36.301Z
Mwahaha, I've added pan and zoom to my #Emacs map at https://sachachua.com/web/beginner-map.html thanks to the https://github.com/bumbu/svg-pan-zoom Javascript library. The power! Now if I could figure out some kind of nice keyboard navigation for arbitrary SVG directed graph...
Controlling Org Mode export of inline SVGs using
ATTR_HTML
2024-10-07T14:57:58.311Z#OrgMode and #EmacsLisp: I figured out how to use values from ~ATTR_HTML~ attributes in my custom function for inlining SVGs in my export from #Emacs so that I can specify ~#+ATTR_HTML :data-link t~ before an image if I don't want it inlined. The trick was to use ~org-export-read-attribute~ with the parent of the link, like so:
```
(plist-get (org-export-read-attribute :attr_html (org-element-parent-element link))
:data-link)
```
For example, the Org source for https://sachachua.com/blog/2024/09/combining-mastodon-timelines-using-mastodon-el/ has
```
#+CAPTION: Screenshot of combined timeline in mastodon.el
#+ATTR_HTML: :data-link t
[[file:/home/sacha/recordings/2024-10-07-10-37-39.svg]]
```
More info about sometimes inlining SVGs at https://sachachua.com/blog/2024/09/include-inline-svgs-in-org-mode-html-and-markdown-exports/Beginner map - bookmarks, dired, dynamic map 2024-10-03T14:46:34.898Z
I added a section on bookmarks and a section on dired to my #emacs map. I also added two Org Babel blocks to dynamically calculate the nodes and edges so that they get included via noweb syntax.
https://sachachua.com/web/beginner-map.html (source: https://sachachua.com/web/beginner-map.org)Making YouTube shorts 2024-10-06T19:52:27.707Z
The kiddo's bingewatching of Minecraft Youtube shorts gives me a new appreciation for how much can be squeezed into 60 seconds. I've been thinking about little bits of my config/workflow that I want to review by shuffling a playlist of audio notes (and maybe eventually managing it with a spaced-repetition system). Here are three so far: https://youtube.com/shorts/NUgKVOX6UZQ (Embark and C-h, rewriting custom Org links, and inserting links with consult-omni).
I like that the text is short enough for me to draft on my phone, the recording is something I can squeeze into a quiet moment, and subed-record lets me put it together with visuals. Later, I'll commit my changes to subed-record and compile-media that let me do the open captions as those somewhat-trendy centered short burned-in subtitles (with my handwriting! https://github.com/sachac/sachac-hand) once I get back to my setup.
I'll eventually figure out how to put them on my blog and make them available as a podcast for all y'all who don't do YouTube. =)
- Other tech:
YouTube shorts limitations 2024-10-07T18:26:39.209Z
Boo, hadn't realized that #YouTube shorts don't let you put convenient links in the description. I could make them regular videos (and maybe go back to landscape orientation) or stick a QR code on the end for a few seconds. Hmm...
Rails upgrade 2024-10-03T00:30:52.230Z
Okay, that was actually less painful than I expected. I think I've gotten my personal time/etc. tracking site moved from Rails 4.2 to Rails 7.2 and from Ruby 2.6 to Ruby 3.1.0. Along the way, I discarded Rspec 2 tests, handles_sortable_columns, acts-as-tree-with-dotted-ids (replaced with ancestry), rails4-autocomplete, omniauth (been meaning to get rid of it anyway), paperclip (disabled the clothing part of the tracker), and mysql (switch to sqlite3). Nice to spend time on technical debt.