Summer is the aggregate of all nights in which you can lay in wet grass at 3am and enjoy a fresh wind on your bare skin.
Definition Of Summer
Entry created on 2021-09-11
Authors: steeph (376)
Categories: Definition (1)
Silly (32)
Skin (1)
Summer (2)
Languages used: en (257)
edit
Entry created on 2021-09-02 Authors: steeph (376) Categories: Band Name Ideas (3) Domain Name Ideas (1) Silly (32) Thoughts (73) Languages used: de (90) en (257) edit
If I had a band to name, I'd name it Feiera, because feiera.band is still available and costs only 2,50 a month.
The Three Bad Reasons Why I Don't Use Git
Entry created on 2021-09-01
Authors: steeph (376)
Categories: Computer (78)
Git (1)
Personal (13)
Software (53)
Version Control (1)
Languages used: en (257)
edit
1. Github or other public Git repositories: Wouldn't be complete
Haven't published everything always, don't want to publish everything, would want to include everything but couldn't. So using public Git repositories would always be accompanied by a feeling of imperfection.
2. I've never used Git for anything really.
Apart from cloning and occasionally updating others' repositories I've never used them. I'm not used to using Git and I don't struggle with not using it. So starting to do so now would require me to hurdle quite some hurdle. I never used it. Why would I start now?
3. It's too late to start now.
I've noticed that the point where it would have been a good idea and would have made a lot of sense to get accustomed to using Git has long passed. So by starting now or in the future I would admit that I didn't take the hurdle when it would have been the right thing to do - when the best time to do so was near the present. I would admit to doing some things not the right way in the past if I would start to do them right from now on. It's easier to pretend that the way it always has been is the right way - the way I'm used to doing things.
That all makes no logical sense. It would be an improvement to start using Git for some things, be it coding projects, any category of texts that I have on my computers, any collection of files, ... The costs of these improvements would be hard disk space, which isn't all that rare for me nowadays and getting used to using Git, which isn't complicated.
So why don't I even try to use it in some cases? Well, I've just honestly told you my three reasons.
SBWG 0.9.6
Entry created on 2021-08-29
Authors: steeph (376)
Categories: Bash (31)
Code (31)
Computer (78)
Linux (36)
Projects (41)
SBWG (18)
Scripts (28)
Software (53)
Languages used: en (257)
Topics: Projects → Code → Bash Scripts → SBWG (16)
edit
As foreseen I've made slow progress in development of SBWG, the script that generates this web site, because I want to test and improve it with the current feature set before I start to implement new features. The former is necessary. The latter is more fun. But today I've reached a point where I can say that the only thing left to do before I call it v1.0.0 is testing edge cases and things that I didn't think of testing before, as well as fixing potential bugs discovered from this testing.
So, version 0.9.6 is out, everything is working, The README file, other documentation included in the package, the example website, the included style sets and partly even the code quality has been deemed satisfactory, and I hope I'll find the time to test all sorts of weird stuff and discover and fix some bugs next month, at which point version 1.0.0 will be published and I'll finally be able to allow myself to start working on new features, some of which are awaited by both regular users of the script.
Hope Dies Last
Entry created on 2021-08-09
Authors: steeph (376)
Categories: Hope (1)
Thoughts (73)
Languages used: en (257)
edit
I will never forgive her for doing that to meeveverybody!
Backmatch - A Simple Dual-N-Back-Inspired Performance Task Trainer For Bash
Entry created on 2021-07-31
Authors: steeph (376)
Categories: Bash (31)
Brain Training (1)
Code (31)
Computer (78)
Scripts (28)
Software (53)
Languages used: en (257)
Topics: Projects → Code → Bash Scripts (23)
edit
Here is a script that I wrote as a short side project because I wanted my own n-back trainer. I'm aware that the practical memory improments of n-back training, even when using a proper audiovisual dual n-back trainer, is not as great as it's often said to be. I just wanted to try it and see whether I like the training.
Usage
Execute the script and pass it a number that resembles the difficulty level. For example bash backmatch 3 starts the script with a 3-back task. On
your keyboard press the key of the letter that was displayed n letters ago (in this example 3 letters ago). When you press a key the next letter is presented
immedietly. If you don't press a key for 3 seconds (the time value can be changed by changing the variable sec) the next letter is presented and you
don't get a point for this letter. When you exit the script by pressing ctrl+c your keypresses get compared to what was presented and you get your score.
#!/bin/bash
if [[ ${#} -ge 1 ]] && [[ ${1} =~ ^[0-9]*$ ]]
then
n=${1}
else
echo "'${@}' is not a number, is it?"
exit 1
fi
echo "Ctrl+C pressing is for quitters."
npo=$((n+1))
sec=3
end() {
echo -en " \n"
if [[ ${#str} -ge ${npo} ]] # If enough characters had been generated
then
for i in $(seq $n); do echo -n "-"; done # offset by $n dashes
echo ${str}
echo ${you}
got=0
for i in $(seq ${#str})
do
[[ ${str:$i:1} == ${you:$((i+n)):1} ]] && got=$((got+1))
done
echo -e "\n${got} out of $((${#str}-npo)) correct"
else
echo "Not enough data to judge you."
fi
}
trap end EXIT
while true
do
str+=$(cat /dev/urandom | tr -dc 'A-Z' | head -c 1) # Get a random new letter.
echo -en "\r \r${str: -1}" # Print the last character in the string (the new letter).
read -n 1 -t ${sec} key # Get a single character input, timeout $sec seconds.
[[ -n ${key} ]] && you+=${key^^} || you+="-"
[[ ${key^^} == ${str: -$npo:1} ]] \
&& echo -en "\r good" \
|| echo -en "\r bad" # Check if uppercase input char is the same as the nth char from the back.
done
end
exit 1
Setting Screen Brightness To Any Value With A Three-Step Keyboard Shortcut (Linux)
Entry created on 2021-07-08
Authors: steeph (376)
Categories: Code (31)
Computer (78)
Displays (5)
Linux (36)
Scripts (28)
Languages used: en (257)
edit
Initially out of necessity because the brightness keys of my new laptop didn't work out of the box (the driver was aded to my distro not a month later, which should have been acceptable, but I didn't know that at first), I was looking for a way to set the backlight brighness of my laptop's internal screen easily, without typing a command in a shell. What I ended up using I like even better than the usual + and - keys.
I'm using i3wm and dmenu. The way I set screen brightness is
It's simple to implement. Just put this line in the i3 config file:
bindsym $mod+b exec \
thatbright=$(echo "1000\n2000\n3000\n4000\n5000\n6000\n7000\n100\n10" \
| dmenu -p "How bright though?") && echo $thatbright \
> /sys/class/backlight/*/brightness
You can put it into one line (without the \s inbetween) if you want.
You could easily change that to a two-step or single shortcut if you like. I like the three-step version because it allows me to choose from one of seven brightness modes easily but also lets me enter a value below or between those pre-sets without taking up more than one key.
Code Explanation
First, the variable thatbright is set to the number that dmenu outputs, which can be one of the numbers that are echoed to the pipe (selected with
arrow keys or completed when typed in dmenu) or another number that is entered into dmenu. If that was suggessful, the value is written to
/sys/class/backlight/*/brightness. If you have multiple backlights in /sys/class and you only want to set one or if your shell doesn't support wild
cards in paths, you can change the * to whatever applies to your system, e.g. intel_backlight.
Scripts/Commands to set the screen brightness
The simplest script that sets the screen brightness in Linux is probably the one-liner from above: echo $1 > /sys/class/backlight/*/brightness. This
sets the raw numerical value. You need to know what a sensible range of numbers is and what the maximal accepted value is (look at
'/sys/class/backlight/[YOUR_BACKLIGHT]/max_brightness'). But there are more elaborate scripts, like bbacklight by Giuseppe Eletto
with which you set the brightness with a percentage value.
I don't have a capsule in the Gemini Space
Entry created on 2021-06-20
Authors: steeph (376)
Categories: Computer (78)
Gemini (2)
Gopher (1)
Shared (17)
Languages used: en (257)
edit
When I first read about Project Gemini (the Gemini protocol) I was excited. I think it's a good idea for several reasons and I'm happy that it's reality and more than a handful of people help building that space and filling it with content. I never got into gopher mainly because I don't find the structure of gopher sites (gopherholes?) suitable for most kinds of content. And because the web exists and, with the right browser extensions and configuration, isn't annoying enough most of the time.
But now that there is a new kid on the block with a different feature set and the right ideological background of the initiator(s) of the protocol, I seriously thought about moving this site over to the Gemini Space. Or to participate in any way. But I've decided against it for now. I've just started building this site and the software behind it and I don't want to abandon thi project already or start a competing one before this one is established in my mind.
So this blog entry shall be my only contribution for now. Go check it out, there already is a lot of interesting content in Gemini capsules.