@tshirtman@mas.to
@tshirtman@mas.to avatar

tshirtman

@tshirtman@mas.to

Dissipé, curieux, ultracrépidarianiste.
développeur (#python :python:), vegan :seedling: (éco/éthique), linuxien (ubuntu depuis 2005)
core développeur #kivy

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

Acermendax, to random French

À quoi reconnait-on l’expertise ?
La question n’est pas simple, mais on peut se fier à quelques critères. Nous prendrons pour exemples Marie Peltier et Stéphanie Lamy qui se présentent comme expertes sur les questions du complotisme.

Les réactions au contenu de cette vidéo seront une occasion parfaite pour prolonger le questionnement.

https://www.youtube.com/watch?v=E2VoFFUFWaY

tshirtman,
@tshirtman@mas.to avatar

@Taos @Acermendax sérieux? j’ai parlé une fois avec elle, on s’est prit la tête, on s’est pas reparlé, et j’ai pas parlé d’elle depuis, et c’est du harcèlement? là je demande juste a voir la réaction pour juger si c’est du soutiens, et c’est du harcèlement?

C’est du grand délire, la moindre critique des actions d’une personne, par ce qu’elle est, par ailleurs, victime de harcèlement, c’est du harcèlement?

Y’a un moment faut se poser des questions.

tshirtman,
@tshirtman@mas.to avatar

@Taos @Acermendax (donc je suis bloqué, et sans doute signalé, après avoir été traité d’incel sans aucune justification, sérieusement, avec des alliés comme ça, certains n’ont pas besoin d’enemis, je vais fair au mieux pour pas associer la connerie de cette personne aux personnes qu’elle soutiens, mais franchement, c’est un effort).

mathieu_rebeaud, to random French
tshirtman,
@tshirtman@mas.to avatar

@mathieu_rebeaud mais puisqu'on vous dit que c'est saisonnier!

😩

StillIRise1963, to random
@StillIRise1963@mastodon.world avatar

If/when white people become climate change migrants, will they turn each other away?🤔

tshirtman,
@tshirtman@mas.to avatar

@StillIRise1963 a lot of people suddently found their humanity regarding refugees* last year. Really hard to guess what was it about these particular refugees. Something about driving the same cars, i heard.

(well, some refugees, that didn’t change a whole lot for the "usual" ones)

hanse_mina, to languagelearning

The collapse of the ruble is spreading panic among propagandists

video/mp4

tshirtman,
@tshirtman@mas.to avatar

@hanse_mina ah, the people who were so quick to point out how it held up last year are less noisy, right? Thanks, it's always fun to see this clown angry 😂

papachan, to random

Videos denying climate science approved by Florida as state curriculum
https://www.theguardian.com/us-news/2023/aug/10/florida-ron-desantis-climate-vidoes-school-curriculum

tshirtman,
@tshirtman@mas.to avatar

@papachan i wonder if making us hate the very idea of education is part of the plan.

xocolatl, to postgres

Hey people.

Do you use ±infinity in your dates and timestamps? What is your use case? What would you do instead if they weren't available?

Please boost for reach.

tshirtman,
@tshirtman@mas.to avatar

@truls46 ok, for this case, where indeed you want to express "does not expire" (like, a permission, or something immaterial of the kind), i do think it make sense.

scudery, to random French
@scudery@piaille.fr avatar

Bon.

Je vais aller courir.

Si je fais du 7min30 au km ça devrait suffire pour distancer les zombies du champi de la mort qui tue.

tshirtman,
@tshirtman@mas.to avatar

@scudery suffit de courir plus vite que le voisin!

Geri, to coffee
@Geri@mastodon.online avatar

I spent 11 days trying to quit but was unable to do so as the headaches were just too bad. So last week, last Thursday, I went back to drinking it again. However, the pain, which I thought would go away straight away, is still present.

Any advice would be welcomed. Xxx

tshirtman,
@tshirtman@mas.to avatar

@Geri as any detox, quitting cold is hard, for immediate pain, the classics (water + paracetamol, or stronger if you need & have), then reducing more slowly, some people mix with chicory while reducing consumption.

mcc, to random
@mcc@mastodon.social avatar

Apparently in Python, slice() and range() are two different types. This is something else I somehow never realized despite having first learned Python in 2001.

…why?

Why are slice() and range() different, I mean
They're both a start, a stop, and a step

tshirtman,
@tshirtman@mas.to avatar

@scubbo @mcc ahah, indeed, looks a lot like it, though about looking it up, but felt lazy, nice digging!

edit: and nice to push that good answer to +500 with my vote :D

tshirtman,
@tshirtman@mas.to avatar

@cs @mcc yeah, i realized that after, hence my edit.

tshirtman,
@tshirtman@mas.to avatar

@mcc I read sometime ago a question about why python could so quickly if a number was in a very (very, very) large range, like

(completely random example)

>>> 29873192 in range(1, int(1e29), 4)  
False  
>>>  

This is instantaneous. Because it doesn't have to iterate it, it knows what a range is, and it can quickly determine if that number is in or not.

A slice is more general and doesn't allow such optimization.
I don't know if it's the motivation, but it seems like a good reason.

tshirtman,
@tshirtman@mas.to avatar

@cs @mcc yeah, by that i meant that range have a definition that constraint more what can be in it, while a slice can contain basically any sequence of values.

But yeah, it's not such as one could be a subclass of the other.

edit: i'm probably making a confusion, between what they are (start, stop, step) and what they allow accessing, because indeed i never directly used them as an object, so sorry if this is misleading.

tshirtman,
@tshirtman@mas.to avatar

@ChateauErin @mcc huge documents are huge, but this is indeed not a good enough reason these days, you can put it into annexes, refer to it in a footnote, etc, just make sure there is a way to find it if you want/need to know. It's all digital anyway, it's not going to hurt to have more to look up.

Hope there was not too much actual screaming, just mildly stressful disagreement. 😅

lefrancmatombe, to random French

Avez-vous remarqué que X appelle toujours les tweets, des "tweets"? ...

tshirtman,
@tshirtman@mas.to avatar

@lefrancmatombe c’est rilgolo, mais en soit c’est pas forcément déconnant, l’idée (idiote) de musk est d’en faire une plateforme à tout, mais le cas d’usage "twitter" ne disparait pas (même il intéresse de moins en moins de gens sur la plateforme), c’est juste que d’autres actions sont supposer arriver, ça n’implique pas forcément que les tweets doivent être renommés.

Bon par contre, l’idée reste complètement pété hein.

SillobreMVC, to random French
@SillobreMVC@diaspodon.fr avatar

Voilà, voilà...

tshirtman,
@tshirtman@mas.to avatar

@SillobreMVC @fusible @saegor pas trop surpris, de la part des admins, refuser d’écouter ceux qui gueulent le plus fort c’est aussi s’exposer à des abus. C’est là que le modèle du fédivers est à double tranchant, les gens plus modérés peuvent aller vers d’autres instances, et ces instances seront désignés refuges à mascu, et bloqués par les autres, etc.

Ça reste un "jeu" de pouvoir/popularité.

tshirtman, (edited )
@tshirtman@mas.to avatar

@SillobreMVC ah, donc mamot t’as bloqué, mais pas ton instance, je suppose.

Bon courage, j’ai peur que ça se calme pas tout de suite, même si la vidéo d’Acermandax devrait (j’espère) donner plus de visibilité au problème, pas dit que les plus vénères se remettent en question.

tshirtman, (edited )
@tshirtman@mas.to avatar

@SillobreMVC attend, comment ça marche? par ce qu’on dirait bien que c’est avec le même compte que tu poste là actuellement. Je cherche la différence, mais mes yeux ne la voyent point.

edit ah non, c’était un compte twitter dont le handle est ton handle masto (domaine compris), c’est ça? Et tu l’a suspendu par ce que le réseau n’est plus supportable? (et rapport aux bails avec MP et SL).

tshirtman, to random French
@tshirtman@mas.to avatar

Me: "hm, there is no curl or wget in this image, and i’m not root, what can i use to download a binary, oh there is /bin/perl, surely downloading something with that should be possible"

perl: "get.pl died at line 4"

"Thanks really useful error message.

Ah, debugging is apperently done with -d"

next
next
next
next

"get.pl died at line 4"

Geez, I wonder why i didn’t learn this language before.

tshirtman,
@tshirtman@mas.to avatar

@mjgardner thanks for wanting to help, it’s not very important, i was just venting, the main issue is that File::Fetch doesn’t return a meaningful error message, and perl is exiting because the code i used use die $ff->error in case of error, i assume the cause is that it doesn’t find a suitable http provider (since neither curl or wget is present), and the "file not found error" is only visible through $!.

tshirtman,
@tshirtman@mas.to avatar

@eythian but i guess "die" is probably to be blamed here, but it does seem like $ff->error should be more informative.

tshirtman,
@tshirtman@mas.to avatar

@bahmanm weird "no such file or directory", but that’s helpful! Thanks.

The script i wanted to download also needs curl or wget anyway, i think we’ll try to get a better environment to work than that, too constrained, or at least get root to use apt-get, some more uglyness in the CI, yay!

Or become the maintainer of yet another image.

tshirtman,
@tshirtman@mas.to avatar

@popey good suggestion, but no, not present 😅.

tshirtman,
@tshirtman@mas.to avatar

@eythian that’s not really important, the code is an example from stackoverflow with many upvotes, and seems to match the documentation for the module.

use File::Fetch;  
my $url = '<https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3>';  
my $ff = File::Fetch-&gt;new(uri =&gt; $url);  
my $file = $ff-&gt;fetch() or die $ff-&gt;error;  

I was told i could get the error using $! fair enough (turns out it’s "no such file or directory"), but a backtrace with a dump of the actual error would seem like a better default.

tshirtman,
@tshirtman@mas.to avatar

@mjgardner having a look, that might come handy, thanks. :)

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