I prefer good ole regex test of a binary num
function isEven(number){
binary=$(echo "obase=2; $number" | bc)
if [ "${binary:-1}" = "1" ]; then
return 255
fi
return 0
}
I prefer good ole regex test of a binary num
function isEven(number){
binary=$(echo "obase=2; $number" | bc)
if [ "${binary:-1}" = "1" ]; then
return 255
fi
return 0
}
I know, what a dick right
I’m so glad that Kim Kardashian exists to inspire young people today…
I love the tired droopy eyes that comes from decades of staring at bad code.
Not good code, never good code. Good code you glance at once and it makes your heart sing.
No, bad code keeps you up at night, staring into the void between the whitespace until you can make out the subpixel colouring of your own sad reflection gazing recursively in upon itself broken only by the jagged stack limit threshold of the hateful morning sun casting a bad enough glare for you to hiss under the covers for a brief respite before you repeat the same process again.
…not quite sure where the hostility is coming from.
The question OP asked is what is likely to vanish in 10 years, and I described the already forced-digitization of household appliances and took it one step further to depict Appliances-as-a-Service, based on the model the printer industry is already rolling out.
How his offends anyone, is a little beyond me. Maybe I should have added quotes?
Yup. Worse still, I can see this extending to other appliances. Haven’t paid your monthly washing machine service fee? Our partnership with the only water company in your area authorizes us to shut off your water.
Manual appliances. You can open the fridge, but only if you pay your monthly subscription fee to keep it restocked.
We work hand-in-hand in retailers to make online shopping the default, whilst making the UI only accessible to AI bots, so if you want a stocked fridge; pay your fees.
self-inflicted, if they played nice we would all be printing from home.
upside is less paper waste
Thank you so much!
WKUK are always good, and the current guy on their channel is pushing very apt sketches in our current world crisis
Thanks for checking IMDB, I didn’t think to look there! I wonder if they have a wiki of sorts with this info
I seem to be on a gnuplot bender at the moment, but maybe you will enjoy this too!
thanks! oh well data formatting, just 15 years of messing around with awk and sed
Data fitting, gnuplot does all the heavy lifting with the modelling, and I always have to look up the syntax because I never remember it haha
Play around and have fun with the code snippets!
Upon deeper analysis, you are correct. I was a bit floored by what appeared to be a power curve near the beginning, but after actually plotting, it’s a simple linear trend:
curl https://www.openssh.com/releasenotes.html \
| sed -nr '/^<h3><a/s/.*OpenSSH ([0-9.]+).*\(([0-9-]+)\).*/\2\t\1/p' \
| sort \
| sed -r 's|([0-9]+)\.([0-9]+)\.([0-9]+)|\1.\2\3|' \
| column -t -N 'Date,Version' > openssh.dat
head openssh.dat
Which yields:
Date Version
2000-03-05 1.22
2000-03-24 1.23
...
2025-02-18 9.9
2025-04-09 10.0
gnuplot -p -e '
set xdata time;
set timefmt "%Y-%m-%d";
set xlabel "Date"; set format x "%Y";
set ylabel "Version";
f(x) = a*x + b;
a = 1e-10; b = -100;
fit f(x) "openssh.dat" using 1:2 via a,b;
set label 1 sprintf("Fit: Version = (%.3e * Date) %.3f", a ,b) at graph 0.05,0.95 left;
plot "openssh.dat" using 1:2 with points title "Versions", f(x) with lines title "Fit"
'
Which yields:
Use Y = (mX) + C, or Version = (9.55651e-09 * Date) -6.75132
Note that Date are Epoch timestamps.
export VERSION="43.2"
date +%Y-%m-%d -d \
@$(
export m="9.55651e-09";
export c="-6.75132";
## Use python for better scientific number handling
python -c "print(($VERSION - $c)/$m)"
)
For OpenSSH version 43.2, the predicted date is:
So, assuming a linear trend and no cataclysmic events that would pause development for a few thousand years, then it’s only 110 years into the future
fuckoff spez
OpenSSH version:
Extrapolating: OpenSSH 43.2 is millions of years into the future
I used to use RedNotebook[0] wayback when, but have since switched to Emacs and am therefore now an insufferable org-mode/roam user.
PS2 as a non-functional hardware that works, is… a pretty apt description lol
I was thinking the exact same thing. Mud walls are great insulators, and keep really cool during the intense summer heat
Mud huttingdon:
woah your bash is legit good. I thought numeric pretexts needed
$(( blah ))
, but you’re ommiting the $ like an absolute madman. How is this wizardy possible