Show more

train of thought:

• I need to get up from the computer.
• What's a program that will kick me off the computer?
• Oh, `workrave` is still maintained, but the website is derelict? Do they need any help to get the new one ready?
• Here's a different program in a language I like better. But some of these dependencies seem superfluous. Could I reimplement those functions to streamline it?
• This API says it's been deprecated in favor of something about a "Seat." What's a Seat?
• I'm still hungry.
• I need to get up from the computer.

(I'm working on a pull request I started at the sprint yesterday, that's what reminded me of this.)

Show thread

GitHub 

This repo doesn't live here, I'm just making PRs: <gist.github.com/keturn/9ea3aa7>

In the GitHub workflow (which is ubiquitous these days), you submit contributions by forking the repo, which shows up prominently on your profile and namespace.

But I'm not maintaining a long-lived branch and this URL isn't one anyone should use to reference the upstream project.

I've made a little script that replaces the default branch in your forked repo with a sign that says "Pull-Request Only Fork."

Okay Pythonistas. Pythians. Portlanders and other Cascadians. I'm not at today but I'm signed up for Monday's sprints.

Please share, I'm looking for help on upcoming projects for The Recompiler -- paid positions for editing, print and ebook design, and research support recompilermag.com/2020/02/04/h

wanted: a browser/window manager plug-in that detects if I am mindlessly flipping between windows in a novelty-seeking cycle, and kicks me off for a while.

(I've had some success with things like Leechblock, but this would be more checking behavior than strictly filtering by destination.)

software bug 

to temper this a bit: just discovered Darktable using 4 CPUs at a time when I think it should have been idle for the last many hours.

so maybe some bugs to file after that reading. In the meantime, something to keep an eye on.

Show thread

Relatedly: tried out Darktable today (for editing digital photos shot in raw mode).

Seems pretty good! Flexible, snappy, and stable so far. But goodness there are a lot of ways to do very similar things:

What's the difference between "exposure correction" and adjusting brightness? How does that compare to tone mapping, or "global tonemap"? Where does the "base curve" come from? Which things should I use in combination, and when should I just pick one because they're alternative approaches to the same task?

I've got some reading to do.

darktable.org/

Show thread

Unicode emoji proposals continue to be entertaining reading.

> The expression “Don’t feed the troll” could be represented as TROLL + POULTRY LEG + COMBINING ENCLOSING CIRCLE BACKSLASH. In the internet image on the right this expression is depicted as someone handing a roast chicken to a troll, enclosed in a prohibition sign.

— from L2/19-232 by West & Everson, which is a cromulent submission overall, though this suggested sequence is pushing it.

unicode.org/cgi-bin/GetMatchin

Every single person on Mastodon is an anarchist trans girl from Portland, Oregon who works in infosec. In fact, I am an anarchist trans girl from Portland, Oregon who works in infosec. I wish I had found out sooner.

The reason I've been working out how to scroll by column is, of course, so I can make landscape-mode layouts for reading web fiction, like gitlab.com/keturn/multicolumn-

CSS+ 

`position: sticky`

Neat CSS rule where the element starts off positioned as normal, until you try to scroll it away, at which point it sticks to the edge.

developer.mozilla.org/en-US/do

re: css, javascript 

I was about to write "`scroll-snap-type: mandatory` is not sufficient on its own," and I went to double-check.

I *do* have scroll-snap working so Firefox's default handling of the right arrow key gets to the next column.

But not left. It must always round up or something, so 1 + 0.1 = 1.1 → 2, but trying to go backwards 2 - 0.1 = 1.9 → 2.

Show thread

re: css, javascript 

I've had some success combining this with Scroll Snap, which is a handy thing for this use case:

developer.mozilla.org/en-US/do

where my arithmetic gives me a close-enough value and then scroll-snap will snap to. But it would be nice to not need to both add the keybinding *and* manipulate the document's CSS.

Show thread

css, javascript 

Know what's great for long-form text on these widescreen monitors? Multi-column layout!

And CSS has columns these days.

So just as long as there's an easy way to advance to the next column or page…

column-scroll.glitch.me/

haven't quite got it. A column isn't exactly an element in the DOM, so I'm having trouble accurately querying its width, in order to know how much to scroll.

re: 1980's-era graphics esoterica 

I was tipped off to this when looking at the source of Colorful, which I noticed was mathing up the color codes from RGB values in these low-color modes, instead of having some 8-value lookup table.

pypi.org/project/colorful/

Show thread

1980's-era graphics esoterica 

In the days of 8-color displays (or 16, where the the second half was just brighter versions of the 8), I never saw a pattern in the order the colors came in for things like ANSI X3.64 codes. I assumed they had their small set of colors but the order was arbitrary.

But 8 is how high you can count in three bits: one bit each R, G, and B. The direction may differ between implementations; looks like ANSI X3.64 has Red as the lowest and CGA has Blue as the lowest. But the order of the colors just comes from counting up in binary.

0 0 0 - black
0 0 b - blue
0 g 0 - green
0 g b - cyan
r 0 0 - red
r 0 b - magenta
r g 0 - ~yellow~ brown?

They made a special case for brown, where the green bit only counts for half, because they thought it made a better palette than a dull yellow: en.wikipedia.org/wiki/Color_Gr

Never would have guessed they went to extra expense for that CGA brown!

Show more
Toot.Cat

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!