💾 Archived View for ftrv.se › _now_202105 captured on 2021-12-06 at 14:29:53. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

Now/log

Newest entries[1].

[1] Newest entries

Previous month[2].

[2] Previous month

0531-0601

Genetic programming in C.

0530

Very nice weather outside. Around two hours of walking today, with a stroller and a grill. Grilled stuff, ate, played cards, all in the sun. Great day.

Updated npe[3] to do proper blending with alpha and corrected `SDL_UpdateTexture` for cases where parts of the textures are updated with the `pitch` being different from the entire image's width. That means uxn[4] works on 9front properly again.

[3] npe

[4] uxn

0529

No computers.

0528

Updated rio theming patch[5] for subrio to try loading the theme from `/dev/theme` on start.

[5] rio theming patch

I use a semicolon (';') as my rio prompt to make copy-pasting commands easier, now I also patched my `rio` so that double-clicking on the left (or right) of the prompt sign select the command line AND the whole its output.

demo

diff -r 1d9839f8f32d sys/src/cmd/rio/wind.c
--- a/sys/src/cmd/rio/wind.c	Thu May 27 07:47:10 2021 +0200
+++ b/sys/src/cmd/rio/wind.c	Fri May 28 10:40:19 2021 +0200
@@ -1034,8 +1021,8 @@
 	wframescroll(selectwin, dl);
 }
 
-static Rune left1[] =  { L'{', L'[', L'(', L'<', L'«', 0 };
-static Rune right1[] = { L'}', L']', L')', L'>', L'»', 0 };
+static Rune left1[] =  { L'{', L'[', L'(', L'<', L'«', L';', 0 };
+static Rune right1[] = { L'}', L']', L')', L'>', L'»', L';', 0 };
 static Rune left2[] =  { L'\n', 0 };
 static Rune left3[] =  { L'\'', L'"', L'`', 0 };
 
@@ -1057,6 +1044,7 @@
 {
 	Rune c;
 	int nest;
+	uint p;
 
 	nest = 1;
 	for(;;){
@@ -1071,6 +1059,14 @@
 			(*q)--;
 			c = w->r[*q];
 		}
+		if(c == L';' && c == cl){
+			p = *q - max(0, dir) - 1;
+			if(p < 1 || p >= w->nr || w->r[p] == '\n'){
+				*q = min(max(0, *q+dir), w->nr);
+				return 1;
+			}
+			continue;
+		}
 		if(c == cr){
 			if(--nest==0)
 				return 1;

That patch can be improved, of course. Feel free to do that yourself.

Tech bro, tech bro
Take me to your condo
I'll do my laundry while you code
Tech bro, tech bro
I'll let you explain
Feminism to me

(Childbirth - Tech Bro)

0527

A quick porting by-product: cweb[6] for Plan 9.

[6] cweb

I'm going to keep sndkit Plan 9 port[7] so things don't break on updates, and continue getting the changes upstream.

[7] sndkit Plan 9 port

0526

sndkit[8] port builds and works on 9front. The changes aren't big so this will hopefully be part of upstream after I clean everything up.

[8] sndkit

0525

A bit more work on SoundPipe port[9], this time writing a declarative layer to interface it with text.

[9] SoundPipe port

Learned a few days ago: if mint leaves are staying too small, this usually means the pot is too small. Needs a bigger place to live.

0524

Quick and dirty port of SoundPipe to 9front[10]. The idea is to hook it up to `opl3` with an exported filesystem interface, so that each channel has its own effects chain represented as a single text file, each line being an effect with all its parameters listed.

[10] port of SoundPipe to

9front

That is to be used with Orca OPL companion app[11] by umbraticus[12].

[11] Orca OPL companion

app

[12] umbraticus

Perhaps a Pilot[13] rewrite for 9front in C could make use of this all, connected together, alongside a custom bank created with op2ed[14].

[13] Pilot

[14] op2ed

0523

Biked to Orlången and back, 30km of ups and downs. Considering I haven't sat on a bike for 4 years, this wasn't too bad, although my legs became really weak over that time. I definitely have to continue doing this. So much fun and nice sightseeing.

0522

Just resting.

0521

What does it take to make Firefox delete a word on `ctrl+w` while keeping the same thing semi-working in other places?

`~/.xbindkeysrc`:

"xdotool key Control_L+BackSpace Alt_L+BackSpace"
	Release+Control+w

0518-0520

Figuring out a different place to work at.

0517

Treason's[15] install script will now build `libogg`, which is required by `opus`.

[15] Treason's

Uxn[16] running on 9front[17]:

[16] Uxn

[17] 9front

uxn piano

0516

Planting and repotting. Hope to have some cute flowers growing on the balcony this summer. Mint needed its root to be untangled and fit in a bigger pot with soil and compost.

0515

Comparing original, 2x-scaled with xBR, and 2x-scaled with `resample(1)` from imgtools[18]:

[18] imgtools

scaling

0511-0514

Nothing to report.

0510

It was really warm so I sun-tanned.

0509

Stratification of apple seeds: they start to germinate in the fridge. Maybe this time they won't die.

Ears stretched to 00g. I don't have tapers any bigger, guess it's purely PLUGS time after this size.

0508

No computering. Just migraine.

0507

Trying to figure out how taxes work. Then trying to imagine how international taxing works. From my calculations it seems like I'd put more than 50% of earned money to taxes and other payments, which apparently is quite normal??? shrugs

0506

Can't remember, terribly busy day.

0505

A very hectic day. Vet with the dog, human doctor, etc. Injections are still not available in Sweden and, according to the doctor, it has been like that for years. Fuck this.

0504

`zuke` manpage!

10 vials of blood for analysis. Tomorrow I'm going to ask (yet again) whether injections are available in Sweden. I thought patches would work better than pills, but it appears they just cause me to flip more often.

0503

More fixes for libtags[19].

[19] libtags

0501-0502

No computers.

Older entries

2021-04-*[20].

[20] 2021-04-*

2021-03-*[21].

[21] 2021-03-*

2021-02-*[22].

[22] 2021-02-*

2021-01-*[23].

[23] 2021-01-*