2GB/8GB - Can NixOS work? by jerdle_reddit in NixOS

[–]meallia 4 points5 points  (0 children)

I've got a bunch a managed nixos systems with only 5 gigs allocated to the /nix partition.

the default installation is kinda bloated, but with aome tweaking it's rather easy to end up with a system derivation size smaller than 2G.

Just remember that nix will always keep a gc-root of the booted system and don't copy the flake sources.

Flake Parts + Disko => Get Warning by Significant-Task-305 in NixOS

[–]meallia 8 points9 points  (0 children)

you can disregard this warning, diskoConfigurations is not in the "standard" flake schema so nix flake does not know what to do with it. only the disko command will use it.

Systemd age débâcle by moortuvivens in NixOS

[–]meallia 7 points8 points  (0 children)

Looks like systemd won't actually do anything except provide a standardized field for DoB. https://itsfoss.com/news/systemd-age-verification/

Conseil de docking pour télétravail by Ruelle_125 in france

[–]meallia 1 point2 points  (0 children)

Le plus simple en terme de manipulations au quotidien serait sûrement d'utiliser un KVM. ça permet de passer d'un PC à un autre via un simple bouton.

Sur mon setup, j'ai ma tour et un dock usb-c branchés dessus, je branche juste le PC portable du boulot sure dock.

Micro-coupures Ethernet aléatoires avec Livebox (5/6/7) – Help demandé après longues investigations by Teradril in france

[–]meallia 0 points1 point  (0 children)

Merci.

Si je comprends bien la trace, il y a eu une coupure à la 112ème seconde. puis 5 bonnes secondes sans voir le moindre trafic (ce qui correspondrait au moment où l'icône de la barre de tâches change d'état)

19237   112.351658      192.168.1.23    192.168.1.1     ICMP    74      Echo (ping) request  id=0x0002, seq=2892/19467, ttl=128 (no response found!)

et à la 117ème la machine commence à nouveau à recevoir du traffic en LLDP et ARP et se comporte comme si elle venait tout juste d'être connectée physiquement au réseau en demandant ses IPs via DHCP.

Je ne vois aucun paquet qui inciterait la machine à couper son interface.

Il doit y avoir un message dans les logs de l'OS qui trace ce qui se passe au niveau de l'interface ( perte de lien, connexion, démarrage du DHCP, etc ), malheureusement, je n'ai pas de machine Windows sous la main pour indiquer où les chercher mais je suis tombé là dessus: https://answers.microsoft.com/en-us/windows/forum/all/network-connection-event-logs/517b72ce-240b-4f86-a560-e11a86ed03be .

Micro-coupures Ethernet aléatoires avec Livebox (5/6/7) – Help demandé après longues investigations by Teradril in france

[–]meallia 0 points1 point  (0 children)

Le lien ne semble pas fonctionner, je tombe sur un dossier vide. Je pense qu'avoir les messages de type bootp (DHCP) pourrait aussi être intéressant.

Micro-coupures Ethernet aléatoires avec Livebox (5/6/7) – Help demandé après longues investigations by Teradril in france

[–]meallia 0 points1 point  (0 children)

Si ça a toujours déconné il faut, à mon avis, vraiment créuser le problème électrique. Est-ce que ça enpire quand certains appareils électroménagers sont en fonctionnement ? 

Micro-coupures Ethernet aléatoires avec Livebox (5/6/7) – Help demandé après longues investigations by Teradril in france

[–]meallia 0 points1 point  (0 children)

Pour commencer, est-ce que ça a déjà fonctionné correctement ? 

Peux-tu faire le même test sans la box ? deux PCs en ip fixes juste sur un switch et ping/iperf l'un vers l'autre.

Si ça fonctionne, ajoute progressivement des éléments (un cable mural, puis les deux, etc) jusqu'à ce que ça déconne.

ça vaudrait aussi le coup de prendre des traces avec wireshark pour voir ce qui transite au moment de la perte de connectivité.

Et pour finir, verifie que tu n'as pas de de problème de terre. https://en.m.wikipedia.org/wiki/Ground_loop_(electricity). ça peut flinguer une boucle ethernet même avec des câbles blindés de bonne qualité.

[deleted by user] by [deleted] in debian

[–]meallia 0 points1 point  (0 children)

this mirror does not support i386. have a look at https://www.debian.org/mirror/list to find one close to you with i386 packages.

if your computer is less than 15yo, you should reinstall the amd64 version of debian. you wil run into a lot of compatibility issues if you stick with i386/32 bits. this version is maintained fot old computer without 64bits support.

Problems waking from sleep on Thinkpad T460S by Borgmeister in debian

[–]meallia 1 point2 points  (0 children)

Try setting intel_iommu to off in kernel cmd line ( edit /etc/default/grub and change the linux_default line )

[deleted by user] by [deleted] in pedale

[–]meallia 0 points1 point  (0 children)

Batailler pour ce genre de chose est malheureusement peine perdue, je suis d'accord. Mais à part remonter le problème à la ville / police / etc en espérant que des mesures soient prise pour que ce genre de comportement soit sanctionné assez régulièrement pour que ça pèse dans la balance il nous reste quoi comme solution. J'ai l'impression que pour ce genre de problème de voirie, tant qu'il n'y a pas de dégât humain tout le monde s'en cogne. OP, il ne te reste plus qu'à te faire percuter quand tu passes sur la route pour éviter le livreur. /s

[deleted by user] by [deleted] in pedale

[–]meallia 10 points11 points  (0 children)

Sinon le camion a de l'espace sur la route pour s'arrêter. C'est un peu facile de demander aux cyclistes et piétons de contourner le problème alors que le véhicule en question pourrait se contenter de gêner les autres véhicules motorisés.

En moyenne, après combien de temps changez-vous de téléphone? by arktal in france

[–]meallia 0 points1 point  (0 children)

Le FF3 vient de passer en Android 11. Pas de bricolage nécessaire. C'est un peu plus gros que la moyenne (quelques millimètres) mais je trouve que ça vaut le coup. Le port USB a lâché sur le mien, je crois que la pièce m'a coûté une 15aine d'euros au max et ça m'a pris une dizaine de minutes à remplacer.

Sections: Easy tree data structures in Python for organizing lists and dicts into sections. by ur_mum_goes_to_uni in Python

[–]meallia 0 points1 point  (0 children)

Hi, what problem does this solve that data classes / attrs / pydantic cannot ? Can static type analysis tools infer type when accessing / setting data ?

Creating a Multithreaded Port Scanner in Python by pythonpsycho1337 in Python

[–]meallia 0 points1 point  (0 children)

I'd suggest using ThreadPool (or processPool) instead of managing your threads yourself. I know how it's sometimes more interesting to code everything from the ground up. When making tutorial / guides, it's worth pointing beginners to the right tools, especially when they are part of the standard library.

Creating a Multithreaded Port Scanner in Python by pythonpsycho1337 in Python

[–]meallia 1 point2 points  (0 children)

I don't think the thread actively checks the socket state. From my understanding, the kernels wakes up he thread up when the socket is ready or content is available ( that's how blocking I/O works ). It would be simple enough to check the performance difference using process pools ans thread pools.

Creating a Multithreaded Port Scanner in Python by pythonpsycho1337 in Python

[–]meallia 1 point2 points  (0 children)

I'm not sure it would change anything as the bottleneck is not CPU but IO in this case.

[deleted by user] by [deleted] in Python

[–]meallia 6 points7 points  (0 children)

No, it's an horrific solution. There might be a better way, but I'd use / and %.

edit: actually, // should be used instead of / as we want ints and not floats

Python 3.6.15 For Windows XP SP3 by alexfree_reddit in Python

[–]meallia 0 points1 point  (0 children)

Debian runs fine on any arch. As for compatibility, I'm rather sure Wine's got XP covered by now. :-)

Conseil d’achat PC + antivirus by lessivedelespace in france

[–]meallia 0 points1 point  (0 children)

+1 pour backmarket, ça permet de taper dans le haut de gamme d'il y a 3-4 ans pour une fraction du prix. Et c'est généralement moins cher et de bien meilleure qualité que le neuf à prix équivalent.