All Entries (Page 56)

Entry created on 2020-11-24 author:steeph (374) cat:Change (1) cat:Thoughts (71) lang:en (253)

Things are changing. Damn. !

Film: A.I. Artificial Intelligence

Entry created on 2020-10-25 (edited 2020-11-22) author:steeph (374) cat:Artificial Intelligence (2) cat:Films (22) cat:Thoughts (71) cat:Toys (1) lang:en (253) top:Films (15)

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.

Bash One-liners

Entry created on 2020-11-22 author:steeph (374) cat:Bash (31) cat:Computer (78) cat:Linux (36) cat:Shared (17) lang:en (253)

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

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

Entry created on 2020-05-12 (edited 2020-09-27) author:steeph (374) cat:FireWire (1) cat:Silly (29) cat:Thoughts (71) lang:en (253)

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

Generate Random Passwords in Linux

Entry created on 2020-09-19 (edited 2020-09-27) author:steeph (374) cat:Bash (31) cat:Code (31) cat:Computer (78) cat:Linux (36) cat:Passwords (1) lang:en (253) top:Projects:Code:Bash Scripts (23)

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.

Go To Navigation Page
Show/Hide Navigation