Anybody else in the US finally putting on their winter tires today?
I've never owned those
Anybody else in the US finally putting on their winter tires today?
What is winter? Is that the season where H2O falls from the sky? I heard there are even places where it comes down in the solid state. That must be scary.Anybody else in the US finally putting on their winter tires today?
Interesting coincidence: I drove a little bit extra to stop at an excellent fish market and restaurant, right in a little fishing harbor town (Moss Landing). Picked up their clam chowder, and brought it home for dinner with fresh sourdough bread. It's nice to live in a fishing town. My wife and I spent many years in Honolulu, and we visit occasionally, and we love getting REALLY fresh fish inexpensively. And the sushi bars are to die for.Loaded up on Sushi![]()
#!/bin/sh
IS_OLD=0
RR=$(uname -r)
[ "$RR" \< "14" -o "$RR" \> "2" ] && IS_OLD=1
frame=0
recal=0
start=$(date +%s)
SEED=$(date +%s);
set -- $INI
trap 'intr' SIGINT
intr() {
print_at $(tput li) 1 " "
tput reset
end=$(date +%s)
ss=$((end-start))
rps="NaN"
[ $ss -ne 0 ] && rps=$(($recal / $ss))
echo FRAMES=$frame RECALCS=$recal SECONDS=$ss RPS=$rps
exit
}
rand() {
SEED=$(((1103515245 * $SEED + + 12345) % 2147483648));
RANDO=$((SEED % 257));
}
print_at() {
if [ $IS_OLD -eq 0 ]
then
tput cm $(($1 - 1)) $(($2 - 1))
else
tput cm $(($2 - 1)) $(($1 - 1))
fi
echo -n "$3"
}
delete_at() {
local v
tput me
print_at $1 $2 " "
}
get_at() {
# ret=0
# [ $c -eq 0 -o $r -eq 0 -o $r -gt $ROWS -o $c -gt $COLS ] && return
v=tab_${1}_${2}
eval ret=\$$v
}
recalc() {
local x
local i
local j
local r
local c
NEIG=0
recal=$(($recal + 1))
for i in -1 0 1
do
r=$(($1 + $i))
[ $r -eq 0 -o $r -eq $L2 ] && continue
for j in -1 0 1
do
c=$(($2 + $j))
[ $c -eq 0 -o $c -eq $C2 ] && continue
[ $i -eq 0 -a $j -eq 0 ] && continue
x=NG_${r}_${c}
eval NEIG=\$$x
NEIG=$(($NEIG + $3))
eval $x=$NEIG
done
done
}
count_n() {
local i
local j
NEIG=0
for i in -1 0 1
do
for j in -1 0 1
do
[ $i -eq 0 -a $j -eq 0 ] && continue
get_at $(($1 + $i)) $(($2 + $j))
NEIG=$(($NEIG + $ret))
done
done
#echo $1 $2 = $NEIG
}
ROWS=$(tput li)
COLS=$(tput col)
ROWS=20
COLS=40
tput vi
clear
JL=$(jot $ROWS)
JC=$(jot $COLS)
for i in $JL
do
for j in $JC
do
rand
z=tab_${i}_${j}
if [ $RANDO -le 70 ]
then
eval $z=1
print_at $i $j "#"
else
eval $z=0
fi
done
done
C2=$(($COLS+1))
L2=$(($ROWS+1))
z=tab_0_0
eval $z=0
z=tab_0_${C2}
eval $z=0
z=tab_${L2}_0
eval $z=0
z=tab_${L2}_${C2}
eval $z=0
for i in $JL
do
z=tab_${i}_0
y=tab_${i}_${C2}
eval $z=0
eval $y=0
done
for j in $JC
do
z=tab_0_${j}
y=tab_${L2}_${j}
eval $z=0
eval $y=0
done
for i in $JL
do
for j in $JC
do
count_n $i $j
eval NG_${i}_${j}=$NEIG
# echo -n $NEIG >>u
done
# echo >>u
done
while true
do
chg=0
LSTD=""
LSTN=""
for i in $JL
do
for j in $JC
do
key="$i:$j"
x=NG_${i}_${j}
eval NEIG=\$$x
z=tab_${i}_${j}
eval v=\$$z
if [ $NEIG -lt 2 -o $NEIG -gt 3 ]
then
eval $z=0
[ $v -eq 1 ] && delete_at $i $j && LSTD="$LSTD $key" && chg=1
elif [ $NEIG -eq 3 ]
then
eval $z=1
[ $v -eq 0 ] && print_at $i $j "#" && LSTN="$LSTN $key" && chg=1
else
#nothing to do for 2 neighbors
sda=1
fi
done
done
# sleep 1
frame=$(($frame + 1))
[ $chg -eq 0 -o $frame -eq 200 ] && intr && exit
for d in $LSTD
do
i=${d%:*}
j=${d#*:}
recalc $i $j -1
done
for d in $LSTN
do
i=${d%:*}
j=${d#*:}
recalc $i $j 1
done
done
That is a very very very cool script. Kudos.Conway's Game of Life, shell version
sh:#!/bin/sh IS_OLD=0 RR=$(uname -r) [ "$RR" \< "14" -o "$RR" \> "2" ] && IS_OLD=1 frame=0 recal=0 start=$(date +%s) SEED=$(date +%s); set -- $INI trap 'intr' SIGINT intr() { print_at $(tput li) 1 " " tput reset end=$(date +%s) ss=$((end-start)) rps="NaN" [ $ss -ne 0 ] && rps=$(($recal / $ss)) echo FRAMES=$frame RECALCS=$recal SECONDS=$ss RPS=$rps exit } rand() { SEED=$(((1103515245 * $SEED + + 12345) % 2147483648)); RANDO=$((SEED % 257)); } print_at() { if [ $IS_OLD -eq 0 ] then tput cm $(($1 - 1)) $(($2 - 1)) else tput cm $(($2 - 1)) $(($1 - 1)) fi echo -n "$3" } delete_at() { local v tput me print_at $1 $2 " " } get_at() { # ret=0 # [ $c -eq 0 -o $r -eq 0 -o $r -gt $ROWS -o $c -gt $COLS ] && return v=tab_${1}_${2} eval ret=\$$v } recalc() { local x local i local j local r local c NEIG=0 recal=$(($recal + 1)) for i in -1 0 1 do r=$(($1 + $i)) [ $r -eq 0 -o $r -eq $L2 ] && continue for j in -1 0 1 do c=$(($2 + $j)) [ $c -eq 0 -o $c -eq $C2 ] && continue [ $i -eq 0 -a $j -eq 0 ] && continue x=NG_${r}_${c} eval NEIG=\$$x NEIG=$(($NEIG + $3)) eval $x=$NEIG done done } count_n() { local i local j NEIG=0 for i in -1 0 1 do for j in -1 0 1 do [ $i -eq 0 -a $j -eq 0 ] && continue get_at $(($1 + $i)) $(($2 + $j)) NEIG=$(($NEIG + $ret)) done done #echo $1 $2 = $NEIG } ROWS=$(tput li) COLS=$(tput col) ROWS=20 COLS=40 tput vi clear JL=$(jot $ROWS) JC=$(jot $COLS) for i in $JL do for j in $JC do rand z=tab_${i}_${j} if [ $RANDO -le 70 ] then eval $z=1 print_at $i $j "#" else eval $z=0 fi done done C2=$(($COLS+1)) L2=$(($ROWS+1)) z=tab_0_0 eval $z=0 z=tab_0_${C2} eval $z=0 z=tab_${L2}_0 eval $z=0 z=tab_${L2}_${C2} eval $z=0 for i in $JL do z=tab_${i}_0 y=tab_${i}_${C2} eval $z=0 eval $y=0 done for j in $JC do z=tab_0_${j} y=tab_${L2}_${j} eval $z=0 eval $y=0 done for i in $JL do for j in $JC do count_n $i $j eval NG_${i}_${j}=$NEIG # echo -n $NEIG >>u done # echo >>u done while true do chg=0 LSTD="" LSTN="" for i in $JL do for j in $JC do key="$i:$j" x=NG_${i}_${j} eval NEIG=\$$x z=tab_${i}_${j} eval v=\$$z if [ $NEIG -lt 2 -o $NEIG -gt 3 ] then eval $z=0 [ $v -eq 1 ] && delete_at $i $j && LSTD="$LSTD $key" && chg=1 elif [ $NEIG -eq 3 ] then eval $z=1 [ $v -eq 0 ] && print_at $i $j "#" && LSTN="$LSTN $key" && chg=1 else #nothing to do for 2 neighbors sda=1 fi done done # sleep 1 frame=$(($frame + 1)) [ $chg -eq 0 -o $frame -eq 200 ] && intr && exit for d in $LSTD do i=${d%:*} j=${d#*:} recalc $i $j -1 done for d in $LSTN do i=${d%:*} j=${d#*:} recalc $i $j 1 done done
added benchmark capability (number of calls to recals() / s)
m4 vm: 700/s
older xeon: 300/s
rk3568: 16/s
rpi zero :12/s
bash is about 30% slower than sh
View attachment 25094
...Americans talk coffee...American coffee and european coffee are two different things: are you talking about european black tar coffee, or americanized steeped robusto bean swill. I've acquired a taste for the darker french roast (fresh ground of course).
Dude, I have not been in Spain for over 40 years - I cannot tell anything about your coffee at all. I just was trying to summerize and discuss something, which is impossible (at least in a forum's post): characterizing european's coffee in less than a 300 pages book - Dude, Europe consists of what? >45 countries? How long do you expect a readable post to be? (without writing and reading it with AI?)because we use the same espresso machines as the Italians, so our coffee is as good as Italian coffee, and Maturin doesn't seem one to gift compliments, so Maturin criticizes our beer instead
Dude, I have not been in Spain for over 40 years - I cannot tell anything about your coffee at all. I just was trying to summerize and discuss something, which is impossible (at least in a forum's post): characterizing european's coffee in less than a 300 pages book - Dude, Europe consists of what? >45 countries? How long do you expect readable post to be? (without writing and reading it with AI?)
Don't post configs; post an abstract, then troubleshoot more and come back to the threadawd and awk sound like pain groans.
The problem with openning a thread in the "serious" parts of the forum is that it's taken too seriously. For instance, I just noticed that if I press Alf+F4, my Plasma DE freezes. I have Alt+F4 disabled in it's "default" action of closing the current window. I don't have Alt+F4 assigned to anything. But also I don't want to investigate further because it's not a problem to me. I won't press it. Period.
drm_kms_helper.fbdev_emulation=0 for faster boots which breaks TTYs; trying to switch to a TTY from working desktop makes it appear everything froze (DE does the TTY switch as-intended but it doesn't know the display stack config beyond itself). Nobody else is likely troubleshooting that without a several page thread of details and a curiosity stumble on that option LOL, I"m having the same sort of issue with Gallium OS, there's some sort of race condition with my mouse so that it will sometimes completely freeze, but at random. Fortunately, the keyboard and power button work so that I can deal with it. Unfortunately, the main solution I've seen is coded in Python and I'm very much on the fence as to which problem I'd rather deal with. The random freezing mouse, or having to have Python on my chromebook. Life is tough sometimes.Nah, I just wish there were a kind of dumping ground where users could post things that happen to them (like Plasma freezing when I press Alt+F4, not having Alt+F4 assigned to any action) in case the developer finds them of any interest, but without requiring any further effort by the user, because the user (me) just doesn't care whether the problem gets fixed or not and doesn't want to invest any time in it.
Am I a bad user? Am I not supportive? I'm just sincere. I would be willing to report it, but that's it. You (developer) deal with it. I don't care.
The developer could extract some practical use from this "dumping ground" anyway: if many users are "dumping" something very similar-sounding, it may be worth investigating it further.
I leave random notes on my wiki to kind-of do reportingNah, I just wish there were a kind of dumping ground where users could post things that happen to them (like Plasma freezing when I press Alt+F4, not having Alt+F4 assigned to any action) in case the developer finds them of any interest, but without requiring any further effort by the user, because the user (me) just doesn't care whether the problem gets fixed or not and doesn't want to invest any time in it.
Our workday morning begins with digging the car out from under the snow.I don't even know whether "winter tires" means literally switching your car tires or putting that metal things on. In Barcelona it snows once every 4 or 5 years. When it does, it snows very lightly and only for a few hours, but the city stops to a halt because we aren't prepared..
..Americans talk coffee...
Okay, you correctly call your stuff "swill". That's why you are allowed to enter my personal coffee class.
So, let me put some things right, before some one mentions Starfu...![]()
Above all anything else US Americans are all always at first primarily businesspeople. ("Money rules.")