draft0 - a shared blog by just some people

Menu

All Entries (Page 31)

Theres no feeling like the feeling you get when you finally tidied up your .bashrc, added every alias and function you ever wanted there and then accidently overwrite it with something silly before you made a backup.

Comment via email

USB Volume Control Knob

Volume control used to be a lot more responsive, quick and simple when the used potentiometers (analogue knobs or wheels). Just reach to the knob and the volume is at 0 or 100% almost instantly. No key combinations, no deactivated function keys, no switching tabs, no delay (!), no pressing the same botton multiple times or holding it down. I miss that.

(tba:content)

Comment via email

"RGB LEDed" Shop Sign

Found this old shop sign on ebay Kleinanzeigen. Idk, I just wanted to have it. Picket it up for 10 € since it wasn't far from me. Put some RGB LEDs and an Arduino inside, used some sample RGB LED sketch, Robert is your uncle. (tbc)

File Attachments (5 files)

Comment via email

Things are changing. Damn. !

Comment via email

Film: A.I. Artificial Intelligence

There is something that I think most people overlook in the story of the movie A.I. Artificial Intelligence. I've watched it more than three times before I realised this.

I realised that Teddy (the toy robot teddy bear imitating emotions, called a "supertoy") displayed the exact same signs of actual intelligence and emotions as David (the surrogate son A.I. invention). When talking about the movie people discuss whether David is actually intelligent and actually feels emotions like a human or whether he (it?) just imitates them. But nobody seems to notice that the same question then has to be asked about Teddy. The main difference between the two is that one is marketed as a toy and one as an artificial human with actual artificial emotions. When you watch the movie and pay attention to teddy you'll notice that he has opinions of his own, will, shows fear, love, intent, ... On the journey with David he behaves just like any other sentient child character.

I believe the technological improvements of David over Teddy are mainly in looks, texture of the skin, speech synthesis and a repertoire of behavioral patterns that are expected of a boy his age. If you believe that David is sentient and can feel based on what you saw in the movie than you should also believe the same about Teddy.

Comment via email

Bash One-liners

Great collection of Bash one-liners at https://linuxcommandlibrary.com/basic/oneliners.html

Another, more structured collection at https://github.com/onceupon/Bash-Oneliner

Comment via email

The choice of available orange FireWire 400 cables is too small in 2020. Why is there no short one?

Comment via email

Generate Random Passwords in Linux

Two ways to generate random passwords on the command line:


#!/bin/bash
if [ $# -eq 0 ]
then
  echo "I'll not generate anything for you if you won't give me at least one argument."
  echo "1st argument: password length"
  echo "2nd argument: number of passwords (optional)"
  exit
fi
i=0
if [ $# -gt 1 ]
then
  num=$2
else
  num=1
fi
while [ $i -lt $num ]; do
  let i=i+1 
  </dev/urandom tr -dc '12345!@#$%qwertQWERTasdfgASDFGzxcvbZXCVB' | head -c$1
  echo ""
done

Pass the length of the password as the first argument and the number of passwords as the second argument, if you want more than one.

Or you can use just this line to generate a single 16 character long password with the same rules.


</dev/urandom tr -dc '12345!@#$%qwertQWERTasdfgASDFGzxcvbZXCVB' | head -c16; echo ""

Or just use pwgen (man page) to have more options. It's probably in your distro's repos.

Comment via email
Mastodon