Avatar scuti

Formerly at scuti@teknik.io.

Read the blogroll. It's typically about programming.

I keep notes on git.

Je joue Minetest avec mes amies français.

mi cu ciska lo tu'itsku bau lo jbobau.i je te lerfanva la .kirilits. (шои!)

48 notes

Tags

#blogroll(13) #programming(11) #surf(3) #git(2) #lojban(9) #francais(4) #scihub(1) #layerone(2) #gardening(3) #minetest(5) #bookmark(6) #leetcode(2) #music(1)

I built a longhouse in Minetest which is used as a barn-themed shop for the town it's in. I used a Fachhallenhaus for reference.

#minetest

[reply]

pic: a group of unripe tomato growing. I had no idea suckers could sprout from fruit stems.

#gardening

[reply]

Around last election season, someone showed me "Simulating alternate voting systems" by Primer on YouTube.

https://yewtu.be/watch?v=yhO6jfHPFQU

The video content parallels this online book.

https://math.libretexts.org/Courses/College_of_the_Canyons/Math_100%3A_Liberal_Arts_Mathematics_(Saburo_Matsumoto)/08%3A_Mathematics_and_Politics/8.03%3A_Voting_Theory

I had assumed compared to plurality voting, the electoral method in the US, approval voting would be harder to verify because each voter can cast an n number of votes for candidates.

#bookmark

[reply]

This is a commit from the repo for my guestbook script. I had told myself that this is a remarkable example.

https://notabug.org/scuti/sitescripts/commit/c67575291b49074fcd80d05a03bcb6bdf0d878ec#diff-48aeb99446addbe345f69f4fa5883ca587d0e81R108

I wrote it late at night; I was tired; I was frustrated; it didn't work as I intended; and I was constantly hitting the Up Arrow key in my terminal. It was more confusing than it had to be, and I took a break. Just because I took a break, I was able to write a much simpler version of the function (right above).

#programming

[reply]

I tried starting strawberries from seed a few months ago, but I had given up expecting seedlings from this batch of soil and reused it to grow a tomato. Now, I have more strawberry seedlings than I anticipated sprouting.

#gardening

[reply]

Notes on using git so I don't have to use a search engine every time.

#git

In most cases, I want to undo the commit and leave everything intact, so I can re-do the commit message or (un)set my name or e-mail:

git reset --soft HEAD^

I can see a use for undoing the commit and unstaging the changes.

git reset HEAD^

I seldom want to throw out everything and reset to the previous commit:

git reset --hard HEAD^

The above is described in...

git reset --help

It even includes readily understandable examples.

[reply]
[reply]

Touch some grass (in Minetest) then sell it to this vending machine.

scuti.neocities.org

Minetest: Digilines Vending Machine

scuti made a vending machine in Minetest with the Digilines mod and programmed it in Lua.

#blogroll #minetest

[reply]
[reply]
[reply]
[reply]

The first time I had to update my code because of how the compiler updated:

https://www.gnu.org/software/gcc/gcc-11/porting_to.html#header-dep-changes

#programming

Last week, I updated reflex2q3. The update is only because a major version of GCC introduced header dependency changes. That means someone using GCC 11 or greater could not compile my code without making minor changes to the preprocessor directives.

Currently, the issue is resolved on a branch, so the project will be seeing a patch release.

[reply]
[reply]

https://archive.is/https://www.teknik.io/

https://archive.ph/39vVA

#bookmark

Found out today teknik, the service I have been using for git repositories and e-mail, has shut down.

The choices I have made regarding modern web services have not always been the most conventional or convenient. The recent events still have not changed why I make such choices.

Now that every teknik service I had used is now 404, I re-uploaded many of my repositories to:

https://notabug.org/scuti

[reply]
[reply]

What I have noticed about Ada programming tutorials on the web are trivial type definitions that are making things harder to understand than needs to be.

A basic example like "How to read in a file" should have understandable types like strings and should not leave the reader guessing what "Banana" or "Orange" really are.

https://archive.is/https://riptutorial.com/ada/example/28406/open-and-read-from-stream-file

For self-reference, I wrote the following:

https://notabug.org/scuti/00-adaprogramming/src/master/src/ref_readfile.adb

#programming

[reply]

Test post with some of the strawberry plants I've grown in the past.

[reply]
[reply]
[reply]

cppia: a little experiment with libtorrent and peertube.

https://notabug.org/scuti/cppia

https://ideas.joinpeertube.org/posts/26/allow-third-parties-to-contribute-bandwidth

#programming

The extent it works is that it can download videos from peertube using the bittorrent protocol, but it can not contribute bandwidth towards the peertube player.

Before, the problem used to be noncompatibility between webtorrent and bittorrent. (As popular as doing everything in a web browser is, I don't see myself keeping browser tabs open to seed torrents.)

But now the problem is that the peertube player uses something else for its hls player.

[reply]
[microblog.py]