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

mina, to metaverse
@mina@berlin.social avatar

I wonder: Is there any person at all, actually using the ?

tshirtman,
@tshirtman@mas.to avatar

@mina there are many, many people using metaverse-like apps like vrchat, and as clumsy as it is, it's probably the closest thing that exist to the "vision" of the metaverse.

I don't use that, but i do use a VR app (Immersed) to work, basically setting up virtual screens to my normal computer, so i have more screen estate wherever i am working from, and can change my background/setting at will. It has some social features, like shared rooms, but i don't use that much.

futurebird, to random
@futurebird@sauropods.win avatar

They don't have to nominate him.

They have a choice. There could be emergency meetings scrambling, an effort to save face.

This is a choice and it's a bad one except as a cynical and increasingly desperate play for power.

tshirtman,
@tshirtman@mas.to avatar

@futurebird sunken costs fallacy, misplaced pride edition. They don't see replacing him as "saving face", on the contrary, it would be admitting being wrong, for so long, and in such a dramatic way.
They also know it would garantee defeat, because it would lose them 30% of the base, at least, as he'd probably run as an independant and they'd vote for him.
They don't want to confront their mistakes, they want to get away with it, whatever the cost to others.
They have a shot at that with him.

tshirtman,
@tshirtman@mas.to avatar

@futurebird (but yeah, "a cynical and increasingly desperate play for power", is a good way to put it)

randahl, to random
@randahl@mastodon.social avatar

The Danish national tv debate preparing Danish voters for the European Parliamentary election coming up this Sunday, is a shouting match between party leaders — who are not even EU Parliament candidates — accusing each other of wanting to bring more refugees into the EU.

I sincerely hope other EU countries are presenting more inspiring debates to European voters.

tshirtman,
@tshirtman@mas.to avatar

@randahl i have bad news from france 😬

metin, to Quotes
@metin@graphics.social avatar
tshirtman,
@tshirtman@mas.to avatar

@metin a third of the world say they didn't like sunburn anyway, others say we can certainly do without because we have electricity, others start to plan their infinite party night. Musk says he's going to negotiate with the aliens, and go in an offensive costume, drunk and tries to mate with some, when that backfires, he says it's fine, he can rebuild a sun anyway, it's basic physics, we have all that figured out.

tshirtman,
@tshirtman@mas.to avatar

@2funny @metin ah, don't you like global warming now, right? :D

(though i don't expect our gas reserves to go that far in the future, unless we get serious about not using them)

mckra1g, to art
@mckra1g@mastodon.social avatar

Once in awhile, I realize how lucky I am to live in Chicago. There is an art student in some part of the world who would love to see this sculpture in person, but for whatever reason, won’t be able to make the trip. But I could theoretically see it every day. There are blessings like this is your life, too, if you know where (and how) to look.

tshirtman,
@tshirtman@mas.to avatar

@mckra1g i did visit Chicago last year, and it's much nicer a city than I expected (i don't expect much from US cities 😅) and yeah, this red thing (😁) is quite a sight to behold, the bean mirror also was quite nice. I did enjoy walking around the lake, and the parks, too, definitely a nice place.

bagder, to random
@bagder@mastodon.social avatar

"maybe we need this in the future" is a bad idea for writing good code. If we need that flexibility in the future, other things will have changed as well. Better do it then, not complicating matters now.

Turning down needlessly flexible code like a boss.

tshirtman,
@tshirtman@mas.to avatar

@bagder yeah had that argument today, "it feels like we might need to move to something more like a plugin architecture, but really, things are quite simple now and straightforward, with one workflow and slightly repetitive tests in it, if we add these bits in all the places, and it's actually too weird, it'll be easier to do that architecture change then, than to go back if it turns out to be unnecessary, can we try the simple way first?"

And that worked, will see how it goes :).

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


Cet homme vient de plonger malencontreusement le port USB-C de ses écouteurs dans sa tasse de café matutinale avant de l'en retirer avec une précipitation aussi bête que malvenue, puisque des goutelettes du précieux breuvage en ont profité pour venir s'épanouir dans un splatch mou sur sa chemise blanche.
Ne soyez pas comme cet homme ; prenez le temps de faire les choses sans empressement. (Bordel.)

tshirtman,
@tshirtman@mas.to avatar

@jesuismonsieurb soutine 😞

desertplains, to python
@desertplains@mastodon.social avatar

I wonder if there's a more efficient way of implementing decimal to conversion in

Without recursion, it's ok, but there will be variable assignments operations, which seems to me as something not so efficient, comparing with recursion...

image/png

tshirtman,
@tshirtman@mas.to avatar

@diazona @desertplains i assume this is cheating, but i also assume it's faster 😬

>>> def d2b(n: int):
... return f"{n:b}"
...
>>> d2b(10)
'1010'

tshirtman,
@tshirtman@mas.to avatar

@desertplains @diazona i though about another hacky way.

Took me more time than i want to admit to get it right 😆

def d2b(n: int):
res = 0
i = 0
while True:
n, r = divmod(n, 2)
res += 10 ** i * r
if n == 0:
break
i += 1
return str(res)

it's still like 30x slower than bin() from my quick tests.

tshirtman,
@tshirtman@mas.to avatar

@desertplains @diazona it'll work fine in python because we have arbitrarily large numbers, but in a more constraining language, it would limit the size of numbers we can convert, because it'll produce much larger numbers than necessary and create overflows.

tshirtman,
@tshirtman@mas.to avatar

@desertplains
https://docs.python.org/3/library/stdtypes.html#typesnumeric says "Integers have unlimited precision" which is to mean it can use as much memory as needed to store bigger values (until your operating system refuses to give more memory to your process). it's not like the C int type, for example, which will have minimum and maximum possible values.
@diazona

evan, (edited ) to random
@evan@cosocial.ca avatar

How much do you travel?

#EvanPoll #poll

tshirtman,
@tshirtman@mas.to avatar

@evan too much for it to be sustainable, so i refrain from it, but much less than i'd like. (Yes, i take the train when i can, but there are many places that i can't reach this way).

GottaLaff, to random
@GottaLaff@mastodon.social avatar

Via Democracy Docket:

NEW: A right-wing media company stopped distributing and streaming the election conspiracy film "2000 Mules" and apologized to the Georgia man the movie falsely depicted as committing ballot fraud in the 2020 election.

tshirtman,
@tshirtman@mas.to avatar

@GottaLaff Will they send a correction to everyone who bought and viewed it, to ensure they understand they were fed lies?

tredok, to random French
@tredok@todon.eu avatar

Encore un autre... Guillaume Meurice. Cela écorne encore plus son image... Le moment est à 18min 40sec.

#PersonneMineure

https://youtu.be/oWS4KQva9ZE?si=PeKRM2r_noPKO9jA&t=1122

tshirtman,
@tshirtman@mas.to avatar

@tredok vu le nombre de conneries dites dans l'interview, je ne vois pas trop de raison de prendre celle là au sérieux.

18+ PrincessConnasse, to random French
@PrincessConnasse@mstdn.social avatar

C'est vrai. Je suis grosse.
Pas ronde. Pas potelée. Grosse.
Obèse.
J'ai passé 35 ans de ma vie à faire des régimes et, par conséquent, le yoyo. Je suis descendue à 55 kilos pour 1m70 après le décès de mon mari et je suis remontée à 70 kilos dans l'année qui a suivi.
J'ai fait mon premier régime à 15 ans.
J'ai perdu plus de poids que vous n'en perdrez dans toute votre vie et à chaque fois, j'ai repris plus que j'avais perdu.

tshirtman,
@tshirtman@mas.to avatar

@Monolecte @PrincessConnasse le fait que tu parle éthologie m'interroge, si tu l'as lu, as tu un avis sur "eat like the animals", qui parle un peu de ce sujet, (pourquoi les humains ne mangent pas "équilibré" si les autres animaux semblent le faire de façon intuitive/naturelle, même en période de surabondance?), la piste au final semble être plus sur la tromperie des aliments ultra transformés, que l'optimisation des couts ET de l'appétence rends particulièrement difficiles a interpréter.

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