@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.

w7voa, to random
@w7voa@journa.host avatar

Iranian media report a helicopter carrying President Ebrahim Raisi has been involved in an accident in East Azerbaijan Province and some of his companions in the helicopter "managed to make contact with the center." https://www.iranintl.com/en/202405197603

tshirtman,
@tshirtman@mas.to avatar

@w7voa had to look at the source after seeing how positively these the dead president and the interim president were covered, and yes, of course it's an equivalent of russia today, but from iran, totally state controlled https://www.conspiracywatch.info/en/brieffing_notes/press-tv/

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

Bon qd même, j'avais pas eu le temps mais dans le sondage sobriété de l'ADEME, y'a ce petit diagramme de Fifou :

tshirtman,
@tshirtman@mas.to avatar

@PrincessConnasse @ciredutempsEsme moins on a besoin de faire attention, et donc plus on dépense, en tout cas, mon loyer actuel serait intenable avec mon salaire d'il y a quelques années, y'a pleins de dons que je ferais sans doute pas si j'étais moins riche, mais je pense que le croisement des courbes est un aspect important, oui, il y a un moment ou on se dit que quand même, on pourrait faire avec moins, même si on comprend de moins en moins comment les autres s'en sortent avec si peu.

Melissabeartrix, to random
@Melissabeartrix@hugz.online avatar

Killed or dies ?

Either way, this ain't good

Hugz & xXx

Iran president Ebrahim Raisi killed in helicopter crash https://www.sbs.com.au/news/article/iranian-president-ebrahim-raisi-and-foreign-minister-killed-in-helicopter-crash-official-says/muolkoa0c

tshirtman,
@tshirtman@mas.to avatar

@Melissabeartrix i'm pretty sure many, many, possibly most, iranians, are quite happy today.

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

Les végéta*iens, parlez de la B12 autour de vous. À force d'en entendre parler on croit que tout les gens concernés le savent, mais chaque fois que je croise des parents d'enfants qui ne mangent pas trop de viande, sont quasi végétariens, ce genre de truc, ils ne sont pas au courant et ne complémentent pas leurs enfants.

tshirtman,
@tshirtman@mas.to avatar

@TofuTheSquirrel @Camille_Poulsard @nicolasbernard les effets de la carence sont vraiment pas tip top, (ça peut aller jusqu'au décès, mais même avant, c'est chaud), heureusement on a une réserve, quand on commence, c'est pas un problème tout de suite, et quand on complémente, c'est pas grave si on oublie un jours ou un mois, mais faut complémenter régulièrement pour maintenir la réserve.

david_weber, to random French
@david_weber@mastodon.top avatar

Tu travailles pour rapporter les faits : 0 interet

Tu racontes n'importe quoi ⬇️

https://ioc.exchange/@il/112466684375088328

Le n'importe quoi est colporté.

Or l'information est fausse : la manif a eu lieu hier et de nombreux incidents y ont été signalés

https://www.spiegel.de/politik/berlin-ermittlungen-nach-demonstration-in-berlin-zum-palaestinenser-gedenktag-nakba-a-5c0f1b90-7690-47b3-a917-d4f8a2607e84

Mastodon ne vaut pas mieux que Twitter. On y raconte n'importe quoi

tshirtman,
@tshirtman@mas.to avatar

@david_weber arf, je l'ai vu passé et liké sans vérifier, mea culpa et merci du call out.

paul, to random
@paul@fedi.nlpagan.net avatar

@tshirtman @wtm

Thank you both. I actually got it to work in Python!

tshirtman,
@tshirtman@mas.to avatar

@paul @wtm 🥳

randahl, to random
@randahl@mastodon.social avatar

Hello? Politicians… hello?

image/jpeg

tshirtman,
@tshirtman@mas.to avatar

@randahl are these homes where people need them? it's not the most fungible asset. homes in areas with low economic activity are almost worthless, homes are in demand where jobs are.

Of course, there are certainly people sitting on homes others would love to live into, but these numbers are probably much less crazy.

paul, to python
@paul@fedi.nlpagan.net avatar

I'm working on removing an important spreadsheet from Google Docs, and maintain that in LibreOffice.
Thing: In G Docs I wrote a few macros to sort the file in various ways, using 4 and 5 fields.
Libre Calc only allows 3 sort fields, and the G-Doc macros don't work in Libre Calc.

I've written a program to convert a CSV to a file with fixed length, and writing a program to do the sorting for me.

Sorting multiple columns in Python is a PITA. In COBOL it's laughably simple.

I wish something like the IBM S/34 would exist for Linux. That would make this even simpler.

tshirtman,
@tshirtman@mas.to avatar

@paul @wtm if you have your csv loaded as a list of dicts, you can do file_out = sorted(file_in, key=lambda x: (x["key1"], x["key3"]))

tshirtman,
@tshirtman@mas.to avatar

@paul @wtm yeah. readlines read text, doesn't try to convert to anything smart, that's on purpose, you can use CSVDictReader to get that.

betsythemuffin, to random
@betsythemuffin@wandering.shop avatar

Software engineering friends:

-- How many times have you cautioned against premature optimization?

-- How concerned are you with datacenter-related energy consumption and e-waste generation?

-- What do you intend to do about the relationship between these things?

tshirtman,
@tshirtman@mas.to avatar

@betsythemuffin

  • A few times, but it's not something i insist much on, i tend to see the opposite problem, rather.

  • Significantly

  • I try to clarify on what "premature" means, that is, not going for the dumbest solution that could possible work, no matter how inefficient it is, but not going overboard about implementing overly complex ones until you get a real sense of where the bottlenecks are going to be, usually using profiling, but also still do design so your solution scale to the need.

chloe, to random
@chloe@chadthundercock.com avatar

What the FUCK did I do?

tshirtman,
@tshirtman@mas.to avatar

@chloe you know what you did, don’t pretend otherwise.

(no seriously, what did you do? 😆)

PhieLaidMignon, to random French
@PhieLaidMignon@cornichon.me avatar

L'idéal serait de limiter la vitesse en ville des voitures à 20km/h, on aurait peut-être même pas tellement besoin de multiplier les pistes cyclables si c'était le cas
Car les nouvelles constructions ultra larges et bétonnées pour mélanger toutes les mobilités pas sûr que ce soit l'idéal. Non. Sens unique presque partout et limitation à 20km, et la deuxième voie on met des arbres. Allez allez (plus facile à dire qu'à faire je sais)

tshirtman,
@tshirtman@mas.to avatar

@PhieLaidMignon Amsterdam a passé presque toutes les rues à 30km/h récemment, et en effet l'idée est que la cohabitation avec voitures et piétons est bien plus facile dans ces conditions.

https://www.youtube.com/watch?v=JRbnBc-97Ps

nixCraft, to random
@nixCraft@mastodon.social avatar

🤣

tshirtman,
@tshirtman@mas.to avatar

@nixCraft prove it's wrong if you are that smart! 😆

b0rk, (edited ) to random
@b0rk@jvns.ca avatar

in git, what ways are there to "lose" a commit in a way that you CAN'T recover using the reflog (so that you need to iterate over every single commit in the repository if you want to find it?

The only ways I know (using git's normal tools) are:

  • using git stash drop or git stash pop to drop a stashed commit
  • waiting 90+ days to try to recover the commit (so that it expires from the reflog)
  • explicitly deleting the reflog in some way (rm -rf .git, git reflog expire, etc)
tshirtman,
@tshirtman@mas.to avatar

@b0rk not sure if that counts as losing, because you pretty much ask for it, but reflog has expire and delete subcommands
https://git-scm.com/docs/git-reflog/

ElleGray, to random
@ElleGray@mstdn.social avatar

so. in January I was in a bad car accident. fractured spine, ruptured discs, cracked pelvis, broken arm. last 4 months have been v hard. tonight though I'm going back to my adult dance class for the first time. I wasn't sure I'd ever even walk properly again so this is a moment for me. a good one

tshirtman,
@tshirtman@mas.to avatar

@ElleGray No need to be sorry, we need good news, too, happy to learn about your recovery.

Nonilex, to Law
@Nonilex@masto.ai avatar

🧵 Thursday 16 May 2024

Cross-examination of resumes, an opportunity for the defense to poke holes in his testimony & perhaps trip up or provoke the state’s key witness. The questioning of Cohen, ’s fmr fixer, is the beginning of the end of Trump’s trial, which began April 15 & might conclude before Memorial Day weekend at this pace.

tshirtman,
@tshirtman@mas.to avatar

@Nonilex lol, what is the role of a witness already? 😆

GottaLaff, to legal
@GottaLaff@mastodon.social avatar

🧵starts HERE.

Remember: I cannot reply while live-posting, so plz use NFL (Not For Laffy.. no hashtag) so I can skip your replies. THANK YOU.

Running a little late, so some preamble included here.

1/… Via Rupar: Trump wraps up his morning rant by attacking one of the prosecutors, Colangelo, which is a flagrant violation of his gag order

tshirtman,
@tshirtman@mas.to avatar

@GottaLaff NFL, no it's fucking not, do we have to believe everything we are told? are we never mistaken in our believes? And that's a high profile lawyer? The best people, really.

igb, to random
@igb@mastodon.hccp.org avatar

Not cool. The only cars it is OK to vandalize are Cybertrucks.

tshirtman,
@tshirtman@mas.to avatar

@igb i think any SUV is fair game, tbh.

kotaro, to random

As long as we are dependent on capitalism, feminism can only be a demanding transphobia.

tshirtman,
@tshirtman@mas.to avatar

@kotaro terf is not feminism, it's actually a very strong form of sexism, feminism is intersectionnal, or it is nothing.

tshirtman,
@tshirtman@mas.to avatar

@kotaro it’s a form of organization that indeed allows and relies on violence, i agree it only allows for peace if we value it enough to reward it and punish violence through market pressure, which people on the worst of the violence usually don’t have the power to apply. And even large enough groups of people have a hard time organizing against it because pressures applied individually to them discourage it. But i think terfism is a highly minority opinion among self-declared feminists.

sebsauvage, to random French
@sebsauvage@framapiaf.org avatar

Ah le doux chant des tronçonneuses au petit matin.

tshirtman,
@tshirtman@mas.to avatar

@sebsauvage c'est leur saison des amours 😅

scudery, to random French
@scudery@piaille.fr avatar
tshirtman, (edited )
@tshirtman@mas.to avatar
mhoye, to random
@mhoye@mastodon.social avatar

Indignant birb.

tshirtman,
@tshirtman@mas.to avatar

@mhoye @futurebird oh so that's kind of like a teen that awkwardly doesn't know what do do with their hands… 😬

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

Je prends tous vos doigts croisés, cierges, prières, douas, good vibes.....

tshirtman,
@tshirtman@mas.to avatar

@scudery TITRE 😏

(bonne chance)

david_weber, to random French
@david_weber@mastodon.top avatar

Ukraine :

« Nous fournirons 2 milliards de dollars supplémentaires de financement militaire à l’Ukraine », a annoncé le secrétaire d’État Blinken lors d’une conférence de presse à Kiev.

tshirtman,
@tshirtman@mas.to avatar

@david_weber "colonies" merci la trad auto de "settlements", c’est des villages…

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