Avatar scuti

Formerly at scuti@teknik.io.

My software projects are now hosted on NotABug/scuti by Peers Community. The programming languages I generally use are C, C++, Python, Lua, and Ada.

Je joue le jeu Minetest avec mes amis français.

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

10 notes

Tags

#programming(10) #california(1) #lojban(12) #blogroll(9) #francais(5) #scihub(1) #layerone(2) #gardening(3) #minetest(5) #bookmark(8) #surf(5) #git(1) #leetcode(2) #music(1)

Pages

[no pages]

I was a bit busy this weekend.

#programming

https://notabug.org/scuti/xdfcgi

https://git.projectsegfau.lt/scuti/xdfcgi

I had given some attention to an old project for an old game server that is no longer online.

I had added:

  • 2 new sql(lite3) queries
  • a python script
  • some edits to a C program

The database pertains to racing in a video game. For a given map, a player can have a score and a velocity; the server only tracks the best 'n' records and the highest velocity.

The results can be seen at:

https://antares.neocities.org/xdf/

All the links on this page are SFW. Quake 3 Defrag maps file names are generally prefixed by screen name of the map creator.

[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]

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

#git #programming

In most cases, what I want is 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^— from https://archive.is/foQbY and finally taking the time to read git reset --help
[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]
[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]

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]