@m455b there have been times where i didn't understand parts of the license, so rather than listen to internet sensationalists, i just asked directly and got helpful answers:



:thaenkin: python zip(*rows) is matrix transpose

>>> [(1, 2, 3), (4, 5, 6)]
[(1, 2, 3), (4, 5, 6)]
>>> list(zip(*_))
[(1, 4), (2, 5), (3, 6)]
>>> list(zip(*_))
[(1, 2, 3), (4, 5, 6)]

>>> [[1, 2, 3], [4, 5, 6]]
[[1, 2, 3], [4, 5, 6]]
>>> numpy.transpose(_).tolist()
[[1, 4], [2, 5], [3, 6]]
>>> numpy.transpose(_).tolist()
[[1, 2, 3], [4, 5, 6]]

:thaenkin: hey it rhymes too

@Drezil Oh wow! I wonder how well it will fare on some weird multi-column PDFs I have. Thanks for the tip!

@dthompson @insom I replaced the microswitches in my Logitech trackball too! afaict there's lots of them that have the same dimensions and are basically interchangeable. I picked up a handful new from digikey in a variety of weights and brands to see if i could detect any difference. (I could not.) But so far the replacements haven't worn out the way the stock Omrons seem to even before the batteries die...


‘HTML, CSS and our vanishing industry entry points’

this says so many things i agree with, i hardly know where to begin pulling quotes. web design and dev used to be something you could organically transition toward from a variety of other roles or hobbies. there was a broad, porous space between laypeople and ultra nerds. this zone created a culture i was able to grow and succeed within. it is now nearly gone.

🛎️ Website update:

- Still a bunch of CSS cleanup to do, but I've got marginalia working! 😍 Soon I want to get a "light theme" toggle going.

- Lots of revision to my article re: "purist free software systems shouldn't shun non-free programs"

- Some revision to my "exec the arguments" draft, including implementation in bash, c, python, rust, and scheme

@datagrok warning: afaik bitstream vera also has worse coverage of international scripts.

Do you find that on some sites, emojis show up as outlines instead of color images? If so, try uninstalling DejaVu fonts and installing Bitstream Vera fonts instead.


… So I am excited to say that as soon as I get all the detritus swept up from having ham-handedly smashed their CSS together with mine, I'll have nice mobile-friendly marginalia and sidenotes on my Markdown-source-format webpages! It's already mostly-working! I've wanted this for so long! 😁

Cascading style sheets -/+ Show more

Cascading style sheets -/+ Show more

a do-while loop in shell script Show more

@Drezil hmm! That sounds a lot like a tool I love called "Krop," which is the best means I have so far for resizing PDFs for my e-reader. arminstraub.com/software/krop

But it doesn't go so far as to convert PDF to epub. I'd be astonished to see a tool that does that, because doing it without access to the document source code I would imagine to be extremely difficult.

But if I had an e-pub it would allow the device to re-flow the text according to my preferences. (And pagination would be better, and faster.)

a do-while loop in shell script Show more

TIL Two popular textbooks on mathematics for data science (one for math experts and one for everybody else) both offer complete downloadable PDFs at no cost!

An Introduction to Statistical Learning

The Elements of Statistical Learning

(Grumble grumble I wish they were epub though)

👀 Updated draft: "The 'run the arguments trick,'" up to 3k words now on this ode to these four little characters: "$@"


Added new Rust and Guile Scheme examples, plus lots of revision.

Just a few more improvements then I can rip the "draft" warning label off.

@cwebber Nice! Thanks!

(use-modules (ice-9 match))
(match (program-arguments)
((argv0 cmd args ...)
(apply execlp cmd cmd args)))

Attempting to implement this bit of shell script in .

exec "$@"

My first working attempt used eval with quasiquoting and it looked very messy. Second attempt:

(let ((args (cdr (program-arguments))))
(apply execlp (car args) args))

It works, but is it idiomatic? Is this how you'd write that? Can it be shorter or clearer?

👀 Unfinished draft article about one of my favorite pieces of shell script:


"The 'run the arguments' trick":

Show more

cybrespace: the social hub of the information superhighway

jack in to the mastodon fediverse today and surf the dataflow through our cybrepunk, slightly glitchy web portal