Ten post głównie zainteresuje adminów linuksowych, ale inni użytkownicy Linuksa także będą zadowoleni.
Wczoraj odkryłem ciekawy program, którego szukałem od lat :). Mowa o programie #termshark. Z wyglądu i funkcjonalności przypomina program na desktopa o nazwie #Wireshark.
Z opisu wynika, że obsługuje także inne platformy:
I find that one great use for LLMs is for something a bit like rubber duck debugging, but for any topic.
You ask the LLM for its thoughts on a topic and respond. The LLM probably has no real insights to give you, since these things necessarily live in the world of cliché, but the process can help you to clarify your thoughts.
Then you can talk with a thoughtful and intelligent person to find the real errors in your thinking.
I noticed that the unit test program runs two subtests and the log indicates that it completed the first successfully before crashing, but when I ran it under gdb the back trace showed it in the first unit test when the segfault occurred. Very strange.
Successfully debugged my dishwasher. Had an issue (for more than a year) with dishes just not getting clean, and after re-doing the drainage tube so it had a lot smoother run between the air gap and the dishwasher disposal, the dishwasher now runs nicely! (there was a slight kink in the tube, but enough apparently to back up the drainage) #dishwasher#debugging
A list of useful, not-obvious hacks to get the most out of your browser’s1 debugger. Assumes an intermediate-level-or-higher understanding of the developer tools.
Sono praticamente 36 ore che non posto e lo so che siete in astinenza, ma avevo https://octospacc.altervista.org/2024/03/26/pwtorturaaaa/ di risolvere quel #problema con le #PWA una volta per tutte. E ora, nonostante un’altra frazione di sanità mentale sottrattami dagli spiritelli del silicio, dolori perché sto seduta per ore alla scrivania e tutta storta, e sonno perché ieri sera ho perso un sacco di tempo a debuggare un errore stupidissimo rimanendo sveglia fino alle 2 per poi arrendermi perché stavo veramente morendo, quantomeno ce l’ho fatta… 🤯️
Cercando con estrema #disperazione ieri mattina, mi accorgo di una cosa documentata alla bene e meglio, trovando prima una menzione su MDN ad un permesso webRequestFilterResponse.serviceWorkerScript, che servirebbe a regola per permettere alle #estensioni di intercettare i caricamenti dei Service Worker, e poi un thread bugzilla (#1636629) che pare abbia portato proprio all’introduzione di questa separazione di permessi. Ho scaricato il #codice dimostrativo per il bug, l’ho un attimo sistemato per tenere conto di questa misura di sicurezza poi introdotta e, certo abbastanza, il coso riusciva a fare quello che io volevo dall’inizio, senza ricorrere a bruttissime e fragilissime #hack (che a questo punto io nemmeno divulgo visto che non ho dovuto implementarle, per non sporcarmi la reputazione come developer, che già è molto bassa visto che prediligo il #webdev). 🔮️
A questo punto era quasi solo questione di rifiniture, un po’ creare il popup per le impostazioni della mia #estensione (che però mi ha richiesto diverse ore di design e implementazione fatti in contemporanea, perché volevo farle bene, non buttarci dentro bottoni a cazzo per il gusto di), e un po’ capire come #programmare il worker che gestisce #cache e richieste di rete #offline. Solo che qui ho sclerato perché… inizialmente con il codice preso da Chrome for Developers non andava, e pensavo fosse un problema mio, ma invece sembra proprio colpa loro, le loro demo non vanno proprio in #Firefox (ma non ho testato nemmeno in Chromium)… quindi ho provato quello offerto da MDN, ma anche qui nada, solo che ormai stavo crollando e quindi vado a mimir… stamattina vedo meglio e quest’ultima implementazione in effetti scopro che funziona, ma a me non andava perché, nel modo in cui iniettavo il #ServiceWorker trasformandolo da oggetto a stringa, una variabile che referenziavo non era accessibile nel contesto di esecuzione effettivo dello script, e quindi l’accesso alla cache falliva, ma io non me ne sono accorta subito perché già gli strumenti di #debugging del #browser sono mezzi scassati per questi casi speciali, ma io poi avevo pure un try-catch di mezzo che quindi sopprimeva gli errori alzati dall’interprete… la #pazzia. 😫️ 😩️
C’è un #casino di mezzo con la pubblicazione di #addon per #Mozilla, quindi praticamente ora il mio è in revisione, ma se tutto va bene dovrebbe prossimamente apparire sulla pagina https://addons.mozilla.org/en-US/firefox/addon/offline-caching/; in ogni caso, chi volesse usarlo da subito (come me sul telefono in primis) può scaricare da qui il file firmato da installare a mano. Edit: un’oretta dopo, l’estensione è approvata! 💖️
OK, so I got this close 🤏🏾 to getting @videodreams posting again. It downloads images properly and assembles them into a webm video file. But it seems like Mastodon's updated something because now I'm getting the attached HTTP 422 error when trying to post the file.
Nice to know that the code still works, though! I'll have to come back and figure out how to play nice with Mastodon. #bots
Spent a little time going over @himawari_wpac 's error-checking after it went down for a bit. Not sure if I fixed everything, but at the very least it should notify me if something goes wrong now. #bots#debugging
Hmm, seems like it crashed again. Back to the drawing board.
These intermittent bugs are a pain to squash, but at least it gets easier with each new bot (and writing more robust and maintainable code gets easier too, as you learn how not to make each successive project implode). #debugging#bots
yoooooo
for the first time, @himawari_wpac recovered from a remote disconnect, relogged and kept on posting. looks like we have a good exception handling framework finally. #bots#debugging