I love shell scripts because theyâre so pragmatic and often allow me to get jobs done really quickly.
But sadly theyâre full of pitfalls. Pitfalls everywhere you look.
Today, a coworker â whoâs highly skilled, not a newbie by any means â ran into this:
$ bash -c 'set -u; foo=bar; if [[ "$foo" -eq "bar" ]]; then echo it matches; fi'
bash: line 1: bar: unbound variable
Whyâs that happening? I know the answer. Do you? đ
Stuff like that made me stop using shell scripts at work, unless theyâre just 4 or 5 lines of absolutely trivial code. Itâs now Python instead, even though the code is often much longer and clunkier, but at least people will understand it more easily and not trip over it when they make a tiny change.
En cherchant des illustrations #solarpunk pour mes cours, je mâaperçois que câest encore difficile Ă trouver
@prologic@twtxt.net 35°C outside. đ«€ Iâm just gonna sit here and wait for November. đ
If some of you budding fathers want to know how I created a computer nerd to one day work for Facebook in the big USA, well you purchase a $1000 Xmas present, an enormous thick book with C++ programming, and say, you can play as many games as you like kids, but James has to create them using computer software.
SO James created once a 3D chess program with sound, took 6 months or so, really hard to beat, not based on logic moves point by point like other chess programs, this one was based on the depth of looking for patterns, set it to 5 moves ahead and you were toast every time. Nice program too, sadly gone over the years, computers suffer from bit rot. We used to try and mark rotten hard drive discs once as bad sectors, not sure how UBuntu does this these days, I see a dozen errors on the screen every time I load.
Today I would purchase for my kids AI CAD simulation software with metal 3D printer and get your child to build fancy 3D models and engines from scratch. This will make them an expert in the CAD AI industry by the time they are 14 years old. Sadly AI is here to stay and will spoil the Internet.
Je cherche deux thermomĂštres : pour lâintĂ©rieur et pour lâextĂ©rieur. La plupart seront trĂšs bientĂŽt obsolĂštes puisque la tempĂ©rature maximale possible est de 50°C
There are also a bunch of log messages scrolling by. Iâve never seen this much activity in the log:
Jul 25 01:37:39 buc.ci yarnd[829]: [yarnd] 2024/07/25 01:37:39 (149.71.56.69) "GET /external?nick=lovetocode999&uri=https://pagez.co.uk/services/your-own-100-fully-owned-online-vi>
Jul 25 01:37:39 buc.ci yarnd[829]: [yarnd] 2024/07/25 01:37:39 (162.211.155.2) "GET /twt/112135496802692324 HTTP/1.1" 400 12 826.65”s
Jul 25 01:37:40 buc.ci yarnd[829]: [yarnd] 2024/07/25 01:37:40 (51.222.253.14) "GET /conv/muttriq HTTP/1.1" 200 36881 20.448309ms
Jul 25 01:37:40 buc.ci yarnd[829]: [yarnd] 2024/07/25 01:37:40 (162.211.155.2) "GET /twt/112730114943543514 HTTP/1.1" 400 12 663.493”s
Jul 25 01:37:40 buc.ci yarnd[829]: [yarnd] 2024/07/25 01:37:40 (27.75.213.253) "GET /external?nick=lovetocode999&uri=http%3A%2F%2Falfarah.jo%2FHome%2FChangeCulture%3FlangCode%3Den>
Jul 25 01:37:40 buc.ci yarnd[829]: time="2024-07-25T01:37:40Z" level=error msg="http://bynet.com.br/log_envio.asp?cod=335&email=%21%2AEMAIL%2A%21&url=https%3A%2F%2Fwww.almanacar.c>
Jul 25 01:37:40 buc.ci yarnd[829]: [yarnd] 2024/07/25 01:37:40 (162.211.155.2) "GET /twt/111674756400660911 HTTP/1.1" 400 12 545.106”s
Jul 25 01:37:40 buc.ci yarnd[829]: time="2024-07-25T01:37:40Z" level=warning msg="feed FetchFeedRequest: @<lovetocode999 http://alfarah.jo/Home/ChangeCulture?langCode=en&returnUrl>
Jul 25 01:37:41 buc.ci yarnd[829]: [yarnd] 2024/07/25 01:37:41 (162.211.155.2) "GET /twt/112507964696096567 HTTP/1.1" 400 12 838.946”s
Something really weird is going on?
Allez on se remet au boulot. Je nâavais pas tout Ă fait arrĂȘtĂ©, mais dĂ©sormais, câest tous les soirs!
The 26°C humidity was through the roof and we just barely escaped the thunderstorm on our stroll. Only the adjacent rain hit us hard. Black clouds caught up on us and we decided to take cover at a barn. Not even a minute later it started to rain cats and dogs for ten minutes straight. Holy crap, that was cool to watch. :-) Also, the smell of rain was just beautiful.
We then decided to continue our return in the light drizzle. But it then got much heavier again and we got completely soaked. With the wet t-shirt and the wind it actually felt rather cold. I anticipated to get rained on, so I left my camera at home. Plenty of paths turned into brook landscapes, several centimeter deep creeks ran down the hilly trails. Quite fascinating. :-)
The sunset a few minutes ago wasnât too bad:

Itâs a very dangerous time. The coalition for reason is extremely weak. Thatâs why I really appreciate C.H. Danhauserâs entertaining and informative Logical Thinking series. (https://www.youtube.com/watch?v=BUqMNVnELzE&list=PLMpofmkxKHBJfta_JzekLbWGHUSLUJoLt)
woooah, la claque. Câest bon ça ! https://invidious.fdn.fr/watch?v=r5ua6H5zyt8
Pinellas County - Cool down: 2.35 miles, 00:09:59 average pace, 00:23:27 duration
walked about Ÿ mile and then started c/d run. felt strong so endurance is in a great spot!
#running
So dissatisfied and disappointed with the Fairphone 4âs audio issues where during phone calls, the receiver only gets half of the messages due to noise cancellation problems, that weâre considering iPhone as a valid âit just worksâ replacement. Especially since the iPhone15 now also has the USB Type C port.
PurĂ©e, ça me rend tellement triste de lire ça. Alors si câest vraiment ce qui arrive⊠Mais les gens, vous rĂ©flĂ©chissez ou pas? https://www.warriordudimanche.net/article2015/6679b42dae7b3 #education #politique
Bon jâai essayĂ© un truc avec #inkscape, mais câest minable. Pourtant, jâadorerais porter un t-shirt avec Ă©crit en gros devant ânous sommes noirs, nous sommes blancs, nous sommes jaunes, et ensemble, nous sommesâŠâ et derriĂšre âde la dynamite!â. Mais mes essais font des illustrations toutes moches. Y a des artistes dans le coin? @noroanka@im-in.space
Câest quoi le mot Français pour âoverkillâ ? Trop tuant ?!
@prx@si3t.ch JâespĂšre que vous allez bien. Et câest fous comme histoire, jâai vu exactement la mĂȘme sur BFM ce matain oĂč le conducteur ĂągĂ© (70 ans et quelques si je me rappelle bien) impliquĂ© dans lâaccident a fini par percuter quelquâun dâautre quelques minutes aprĂšs le premier accident.
Ce soir, câest conseils de classe, jusquâĂ 20h30 minimum⊠Puis 1h de route. Ăa sera dĂźner, puis #nethack! (ou probablement dodo ^^)
Hum, jâhĂ©site Ă planter mes butternut et potiron⊠Câest les escargots qui risquent de se rĂ©galer, mais ils commencent Ă peiner Ă rester Ă la maison
Ha oui câest vrai que cette semaine il va falloir que je mâimprovise expert hardening proxmox. Si quelquâun a des billes⊠Je prends :)
M a y b e p u t s p a c e s b e t w e e n t h e l e t t e r s t o t h w a r t t h e c r a w l e r s l i k e t h i s s o t h e y j u s t s e e i n d i v i d u a l l e t t e r s
Câest fou toutes ces requĂȘtes spĂ©cfiques Ă #dokuwiki qui persistent mĂȘme si je nâai plus dokuwiki. Les diff et que sais-je⊠Les bots adorent :/
Je cherche de quoi sâisoler du bruit pour me concentrer. Câest pour plusieurs heures, il faut donc que ça soit plus confortable que des boules quies. Des suggestions?
I think @abucci@anthony.buc.ci and @stigatle@yarn.stigatle.no are running snac? I didnât have a closer look at snac (no intention of running it), but if that is a relatively small daemon (maybe comparable to Yarn?) that gives you access to the whole world of ActivityPub, then, well, yeah ⊠Thatâs tough to beat.
Yes, I am running snac on the same VPS where I run my yarn pod. I heard of it from @stigatle@yarn.stigatle.no, so blame him đ snac is written in C and is one simple executable, uses very little resources on the server, and stores everything in JSON files (no databases or other integrations; easy to save and migrate your data) . Itâs definitely like yarn in that respect.
I havenât been around yarn much lately. Part of that is that Iâve been very busy at work and home and only have a limited time to spend goofing off on a social network. Part of it is that Iâm finding snac very useful: Iâve connected with friends Iâd previously lost touch with, Iâve found useful work-related information, Iâve found colleagues to follow, and even found interesting conferences to attend. Thereâs a lot more going on over there.
I guess if I had to put it simply, Iâd say I have limited time to play and there are more kids in the ActivityPub sandbox than this one. Thatâs not a ding on yarnâI like yarn and twtxtâIâm just time constrained.
âMagic Clockâ for Plan 9 (and p9p). http://a.9srv.net/src/img/magicclock-p9p.png http://a.9srv.net/src/magicclock.c (man and other info at http://a.9srv.net/src/).
Pinellas County - Recovery: 3.03 miles, 00:09:07 average pace, 00:27:36 duration
this felt really easy today which was surprising since yesterdays run hurt (knee). curious if the S&C beforehand helped things out a bit. it was hot and humid, but there was a nice breeze for some of it so i didnât feel the heat until the last mile.
#running
AprÚs un WE à 27°C semaine derniÚre, ce samedi nous avons fait de la luge aux Jouv !
@shreyan@twtxt.net ever tried KeepassXC or Pass/Password Store ? They are worth giving a try ⊠Then you can keep your KeepassXD database in synch across your devices with (NOT /R/s/y/n/c) I meant Syncthing or git in the case Pass (using a git repo in within your local network of course) đđŒ(edited)
3,5%, câest tout, juste 3,5%⊠https://escapethecity.life/en-manifestation-troquer-les-armes-contre-des-roses
Pub Trivia
â Read more
Iâve been out a few hours again. I came across a dozen or so forest mice. I heard tons of squeaking and saw a lighting fast moving seething mass under leaves and groves. It was impossible to capture anything but I could watch it for two, three minutes. They even seemed to come as close as 20Â centimeters judging by the rustle and moving plant leaves. Pretty cool.
But heaps of people had to fire up their noise machines today. That clouded my overall joy in nature. Once a commercial airliner was about to fade away in the distance, the next one already adumbrated itself. Lots of prop planes and even a helicopter. Obnoxious loud super cars and motorcycles with broken off mufflers or I donât know what. My felt hat amplifies the sound I noted.
Luckily, the sun hid behind the clouds most of the time, so I survived the 25°C. Even hotter tomorrow, yikes!
https://lyse.isobeef.org/waldspaziergang-2024-04-07/

Jâai battu mon record Ă #nethack: 25359 points! Je nâaurais pas dĂ» manger cet oeuf malgrĂ© la faim, câĂ©tait celui dâune cockatrice :S
Lâinterface web par dĂ©faut de mastodon est dĂ©cidĂ©ment trĂšs lourde. Jâadore utiliser Ă la place pinafore. Câest un bon compromis devant brutaldon. Dommage que lâauto-hĂ©berger semble si fragile, mais le site officiel est trĂšs bien: https://pinafore.social/
Il se pourrait bien que jâaie achetĂ© la #musique de #Dune Part Two. Câest la meilleure moitiĂ© du film :) https://fr.7digital.com/artist/hans-zimmer/release/dune-part-two-original-motion-picture-soundtrack-38031790?f=20%2C19%2C12%2C16%2C17%2C9%2C2
RĂ©flexion intĂ©ressante pour proposer un site statique sur le FĂ©diverse (ActivityPub). Reste que ATOM/RSS, câest + pratique. https://s3lph.me/activitypub-static-site.html
@prologic@twtxt.net High five, Iâm âgeneration Javaâ as well! đ There were some leftovers of C++, we used that in the computer graphics courses in Uni a lot. But pretty much anything else that involved programming was Java.
(There was nothing even remotely resembling CS in our âhigh schoolâ. That school neither had the required teachers nor the equipment / PCs.)
I finished my data structures classes with C++ and the next year they changed it out with Java. When i transferred up after my assoc degree it was C++ using the counter-strike source game engine.
@movq@www.uninformativ.de before this century. Back when colleges taught C++ instead of Java for CS degrees.
Je suis en plein rĂ©flexion. Je cherche Ă me dĂ©connecter, et lire hors ligne aprĂšs synchronisation. Un peu comme le fait offpunk. Cependant, ça ne me convient pas, la navigation en ligne revient trop vite; Je veux rĂ©cupĂ©rer les changements des sites puis les lire. RSS/ATOM (mastodon en gĂ©nĂšre), câest parfait pour ça, je lis tout avec rss2email. Comment faire de mĂȘme pour #gemini et #gopher? Je rĂȘve dâouvrir mon terminal, puis de parcourir les nouveautĂ©s sans clics
Je mĂšne une petite expĂ©rience: rassembler les titres des informations sur une page simple, et virer les pubs et autres bĂȘtises. Facile avec wikinews (y a pas de pub). Câest du bricolage, on verra Ă lâusage. Ăa vous inspire des commentaires? https://si3t.ch/infos/
Iâm really bad at competitive programming. đ For todayâs #AdventOfCode puzzle, I spent an eternity trying to understand exactly what kind of bG9naWMgY2lyY3VpdAo= the puzzle input describes â I havenât done that in well over a decade, so I made little progress. I knew right from the start that SSBoYWQgdG8gbG9vayBmb3IgY3ljbGUgbGVuZ3RocyBhbmQgdGhlbiBmaW5kIHRoZSBMQ00K. It just didnât occur to me to just run my program on cGFydGlhbCBpbnB1dAo= and print those numbers. đ„Ž I only did that after over 4 hours (including time to debug my nasty C code) and then, boom, solution âŠ
Todayâs Advent of Code puzzle was rather easy (luckily), so I spent the day doing two other things:
- Explore VGA a bit: How to draw pixels on DOS all by yourself without a library in graphics mode 12h?
- Explose XMS a bit: How can I use more than 640 kB / 1 MB on DOS?
Both are ⊠quite awkward. đŹ For VGA, Iâll stick to using the Borland Graphics Interface for now. Mode 13h is great, all pixels are directly addressable â but itâs only 320x200. Mode 12h (640 x 480 with 16 colors) is pretty horrible to use with all the planes and what not.
As per this spec, Iâve written a small XMS example that uses 32 MB of memory:
https://movq.de/v/9ed329b401/xms.c
It works, but it appears the only way to make use of this memory is to copy data back and forth between conventional memory and extended memory. I donât know how useful that is going to be. đ€ But at least I know how it works now.

Je viens de dĂ©couvrir que dans #nethack, câest une mauvaise idĂ©e dâenchanter une armure dĂ©jĂ Ă +3. Me voilĂ Ă poil dans le donjon, je nâai plus de robe XD
Ă propos du remplacement de la pĂąte thermique, il semble que ce soit encore + efficace le lendemain, comme si elle avait besoin de âsĂ©cherâ. LĂ , je suis Ă 40°C en moyenne
Je viens de changer la pĂąte thermique sur le CPU de mon x250. obsdfreqd ne devient plus aussi indispensable : au lieu de tourner autour de 75°C, jâen suis Ă 55°C. Petit rappel du dimanche soir : pensez Ă mettre votre bios Ă jour, Ă nettoyer le ventilateur et Ă changer la pĂąte thermique. #openbsd
merci archive.org de proposer des #torrent pour les sets neogeo, câest tellement + rapide et fiable. Merci pour ce travail de mĂ©moire.
obsdfreqd is saving my computer from burning at 70°C #openbsd
@eapl.me@eapl.me I have many fond memories of Turbo pascal and Turbo C(++). They really did have a great help system. And debug tools! Its rare for language docs to be as approachable. QBasic was great. As was PHP docs when I first came into web.
It is a pleasure to work with the help system of Borlandâs Turbo C++ 3.0 on DOS. The descriptions are clear and concise. There are short and simple examples. Pretty much every help page is cross-refenced and those links can be clicked.
genially⊠Pourquoi faut-il payer pour avoir le contenu hors ligne. Que câest nul, câest autant de ressources qui ne serviront jamais pour lâĂ©ducation. Quelquâun saurait comment exporter un genially. Par exemple celui-ci : https://college.hachette-education.com/ressources/0002017238904/st6_2023_exploration_06/
Something weird is happening to the new APC UPS - it has an USB Type-C port - but it seems that the power supply is a bit wonky.