@CyrilBrulebois@mamot.fr
@CyrilBrulebois@mamot.fr avatar

CyrilBrulebois

@CyrilBrulebois@mamot.fr

Debian developer, DEBAMAX founder, PiRogue Tool Suite supporter

This profile is from a federated server and may be incomplete. Browse more on the original instance.

n8, to random
@n8@mastodon.social avatar

British -- and, IIRC, Irish -- friends: help me understand something. What historical era do the single-purpose "two prong electric shaver outlets" come from?

I mean, I've literally never seen one of the devices (owned or for sale), nor have I heard of anyone using them, but the outlets can be found absolutely everywhere, including places that no reasonable human being would ever tackle task ... like the public library. Or a moving train.

Are we talking 1980s here? 60s? 18th Century?

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@n8 BS 4573:1970?

CyrilBrulebois, to random
@CyrilBrulebois@mamot.fr avatar

Not sure if and when I'll submit it upstream, but now I have a basic plugin to track remaining volume for @1NCE_IoT SIM cards (IoT-oriented, valid 10 years, 500 MB total).

https://github.com/CyrilBrulebois/munin-contrib/commit/ad82afd6bf1ee9986cf6086f189e8d352e892b7c

Better keep an eye on those, now that I'm running automated tests on customer products, switching them from one network mode to another to another… (with or without using the embedded LTE modem).

ZaZo0o, to random French
@ZaZo0o@mamot.fr avatar

Sakkarah, Égypte, février 2024.
Alt: Pyramide à degré en forme d'escalier; cobras sculptés en haut de l'enceinte entourant la pyramide; vue sur les pyramides de Gizeh de loin.

image/jpeg
image/jpeg
image/jpeg

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@ZaZo0o Rigolo, ça fait presque un moiré sur la première photo… 😂

C'est super chouette, ces photos, merci pour le partage !

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@ZaZo0o Déçu, même pas « oui, j'ai bougé quelques blocs pour faire joli » ? 🙃

zhenech, to random
@zhenech@chaos.social avatar

-f, --force
-r, --really-force

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@zhenech --force-around-and-find-out

jlecour, to random
@jlecour@mastodon.evolix.org avatar
CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@jlecour Nicely planted.

CyrilBrulebois, to random
@CyrilBrulebois@mamot.fr avatar

This feeling when you search for answers, find people with the same questions, who wrote about possible solutions (not once but twice!), but their website is not responding…

https://nedbatchelder.com/blog/202302/late_initialization_with_mypy.html
https://nedbatchelder.com/blog/202302/late_initialization_reconsidered.html

Poke @nedbat ;)

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@nedbat I couldn't find a cached version (quite probably I didn't look hard enough).

In my case, the offending part was:

class Foo:
bar: Bar = None

Tried:

class Foo:
bar: Optional[Bar] = None

This makes happy in that spot, but then I would have needed to disambiguate the type (via asserts and the like) all the time, so I went for something simple yet not entirely satisfactory:

class Foo:
bar: Bar = None # type: ignore

And everything else expects bar to be Bar, not None.

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@nedbat I've encountered this problem when dealing with “session classes”, which I'm using to avoid passing parameters across the whole code base: I'm using class attributes, and I don't even need to instantiate those classes.

from my.demo import DemoSession as DS

def many_functions():

do something with DS.foo, DS.bar, etc.

if name == 'main':

argparse, load config

DS.initialize(stuff, read, from, config)

or: DS.foo = …

Not ideal, but those None go away, I swear!

CyrilBrulebois, to random
@CyrilBrulebois@mamot.fr avatar

Fun!

ping: Warning: time of day goes back (-933152us), taking countermeasures
ping: Warning: time of day goes back (-880123us), taking countermeasures

CyrilBrulebois, to random
@CyrilBrulebois@mamot.fr avatar

Days since last “that mechanism does not currently exist” while it has existed for years: 0

CyrilBrulebois, to random
@CyrilBrulebois@mamot.fr avatar

Browsing through open tabs, found this reminder about not forgetting -f when using in scripts: https://binblog.de/2024/03/04/failsafe-curl/

gcolpart, to random French
@gcolpart@mastodon.evolix.org avatar

Je joue à ressusciter des vieilleries d'il y a au moins 20 ans, et l'installeur Debian 12 n'est pas très content car il n'y a que 128M de RAM (mais pour l'instant ça passe quand même) 💾💿📻

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@gcolpart Ça me rappelle des choses, genre sur le D-Link DNS-323 avec sa RAM super limitée (64 Mo), qui partait en OOMK pendant la synchro RAID 1 en arrière-plan (avant d'avoir eu une chance de définir de la swap), c'était grandiose…

CyrilBrulebois, to random
@CyrilBrulebois@mamot.fr avatar

Back to the Future, the Java edition:

// jP: 20010-01-18. See below. We'll need this monitor...

(Brought to you by having to dig into the jmdns source code.)

CyrilBrulebois, (edited )
@CyrilBrulebois@mamot.fr avatar

Also amuzed by “interfaze”, but as expected that's just because Java has “interface” as a reserved keyword.

(Reminds me of GTK+'s klass…)

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@zhenech could have been claas, but my Java guy is from the other team (fendt).

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@zhenech oh wow!

vincib, to random French
@vincib@mamot.fr avatar

grmblgrblgr
https://datatracker.ietf.org/doc/html/rfc2181#section-11
validation ... grmbglrgrbmr

cc @bortzmeyer :D

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@vincib @bortzmeyer C'est là qu'on dit que tu es un RFC editor ?

douardda, to random French
@douardda@pouet.chapril.org avatar

For some reason I feel a bit overwhelmed...

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@douardda Nice shoe closet, but where are the shoes?! 🙃

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@douardda It really is amazing how much stuff can fit in such a small space, even if direct usability might be out of reach.

Locally the biggest challenge I'm facing is dealing with all those pesky power supplies and cables. Thankfully that's just 200-300W max per outlet, but it looks like a perpetual mess. 😢

CyrilBrulebois, to random
@CyrilBrulebois@mamot.fr avatar

Need some peps? YOASOBI's アイドル (Idol) is awesome and is going to kick your ass into doing shit!

(Feeling bad for the next song in that Anime Hits playlist, it's hard to come after that one…)

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@benoit Oh wow, it's incredibly complex influence-wise!!!

CyrilBrulebois, to emacs
@CyrilBrulebois@mamot.fr avatar

I really don't want to dive into 's source code, or to debug which mode(s) and/or part(s) of the code I'm writing are triggering this, but hanging each time I'm typing three quotation marks and hitting Return is making writing code a tad harder than it should be.

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

This isn't a call for anyone to sell me either $EDITOR or $LANGUAGE, thank you very much.

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@circfruit I have a rather short ~/.emacs and not a ton of customization/packages, but I do have lsp-mode listed in package-selected-packages. This is Emacs 28.2 on Debian 12, should that matter.

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@zrzz C-g didn't seem to be doing much at first glance, but hammering it sufficiently finally gets other keystrokes go through, and it gives an opportunity to close the string that's been started (which started triggering the apparently absolute hang + CPU burning — power supply went from 45W to 90W), putting an end to the immediate issue, and/or to save the file…

(Earlier today, I traded 1 << n for 2 ** n and the issue went away…)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • thenastyranch
  • ethstaker
  • everett
  • Durango
  • rosin
  • InstantRegret
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • mdbf
  • slotface
  • tacticalgear
  • anitta
  • kavyap
  • tester
  • cubers
  • cisconetworking
  • ngwrru68w68
  • khanakhh
  • normalnudes
  • provamag3
  • Leos
  • modclub
  • osvaldo12
  • megavids
  • lostlight
  • All magazines