All Entries (Page 33)

SBWG 0.9.6 Entry created on 2021-08-29 Authors: steeph (370) Categories: Bash (31) Code (31) Computer (78) Linux (35) Projects (41) SBWG (18) Scripts (28) Software (52) Languages used: en (255) 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.

Comment via email
Taktik Entry created on 2021-08-25 Authors: struki (8) Categories: Politics (6) Languages used: de (88) edit

Ich scheine einen neuen Marker des Erwachsenseins erreicht zu haben:

Ich werde bei der kommenden Bundestagswahl taktisch waehlen.

Das Ziel dabei ganz klar: Eine Regierung ohne CDU-Beteiligung, wenn irgendwie moeglich.

So weit, so gut. Nur habe ich durch den Entschluss jetzt immer noch keinen Plan, wen genau ich wählen werde. Wieder die Linke zu wählen waere der sicherste Weg, keine CDUige Regierung zu unterstuetzen, aber hat warscheinlich am Ende auch gar keinen Einfluss auf ne Regierungsbildung...

Also SPD, weil nochmal "Gro"-Ko dann doch deutlich unwahrscheinlicher scheint, als schwarz-grün?

Comment via email
Xanthippe Entry created on 2021-08-15 Authors: Andrea Reinhardt (14) Categories: Gedichte (10) Poetry (9) Languages used: de (88) Topics: Poetry (12) edit

wenn morgens die Bäckereiverkäuferin fragt:
"was arbeiten sie zur Zeit"
antworte ich zögernd
"über die Wahrheit"
"ach ja" entgegnet sie zerstreut,
ich bezahle schnell und gehe.
Davon kann frau natürlich keine Brötchen kaufen,
viele von uns gehen putzen
manche bezahlt
manche sind verheiratet.
Xanthippe hatte geheiratet,
um die Wahrheit zu suchen,
tat es mit dem Größten ihrer Zeit,
über Kinder und Haushalt
vergaß sie niemals
die Suche nach Wahrheit,
doch wir vergaßen,
ihr Suchen aufzuschreiben
und erinnern uns nur
an die keifende Hausfrau

Copyright 1998 Andrea Reinhardt

hopfen-dies-last Entry created on 2021-08-11 Authors: struki (8) Categories: Reply (1) Languages used: de (88) edit

Hmm?

Manchmal fehlt hier die Kommentarfunktion

Aber ich schätze, wenn es sie gäbe, dann wäre dies hier unser beider Telegchat.

Comment via email
Erinnerungen sind nicht vegan? Entry created on 2021-08-11 Authors: struki (8) Categories: Exploding (1) Getit? (1) Silly (32) Languages used: de (88) edit

Gerade erst gecheckt, dass Scott Pilgrim & Vergissmeinnicht die gleiche Story sind

Mit gleicher Haarfarbwechselquote -

Comment via email
Hope Dies Last Entry created on 2021-08-09 Authors: steeph (370) Categories: Hope (1) Thoughts (72) Languages used: en (255) edit

I will never forgive her for doing that to meeveverybody!

Comment via email
ANALYSE Entry created on 2021-08-02 Authors: Andrea Reinhardt (14) Categories: Gedichte (10) Languages used: de (88) Topics: Poetry (12) edit

küssen ist eigentlich gar nicht so einfach
wann kriege ich schon mal einen wirklich guten kuß?
einen der mich mitreißt, fesselt
einen der sagt "ich will Dich"
oder "ich liebe Dich"
oder einfach nur "komm her
mit Deiner ganzen Seele"
f****** ist da viel einfacher

Copyright 1998 Andrea Reinhardt

Backmatch - A Simple Dual-N-Back-Inspired Performance Task Trainer For Bash Entry created on 2021-07-31 Authors: steeph (370) Categories: Bash (31) Brain Training (1) Code (31) Computer (78) Scripts (28) Software (52) Languages used: en (255) 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
Comment via email
Go To Navigation Page
Show/Hide Navigation
Mastodon