@mdk@mamot.fr
@mdk@mamot.fr avatar

mdk

@mdk@mamot.fr

Core dev Python, je passe mon temps libre sur des projets libres :

  • sysadmin de l'AFPy
  • co-organisateur des PyConFr
  • Traducteur de la doc de Python
  • https://hackinscience.org
  • Mainteneur de sphinx-lint
  • Mainteneur de docs.python.org

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

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

« Visa va fournir l’historique d’achats de ses clients aux commerçants pour faciliter la publicité ciblée » mais non putain.

https://siecledigital.fr/2024/05/17/visa-va-fournir-lhistorique-dachats-de-ses-clients-aux-commercants-pour-faciliter-la-publicite-ciblee/

mdk,
@mdk@mamot.fr avatar

@foxmask payer en liquide pendant que c'est encore légal.

foxmask, to steam French
@foxmask@framapiaf.org avatar

Lol
Supprimer son compte #steam de 22ans pose problème...
Comment peut on me demander une clé cd (de je ne sais même pas quel jeu)...
En 22 ans j'ai changé de pc un bon nombre de fois et les CD .... ont été remplacés par des dvd puis par des clefs USB...
Steam n’a pas songe à changer sa procédure en 20 piges ?

mdk,
@mdk@mamot.fr avatar

@foxmask C'est arrivé à un ami (pas chez Steam), et c'était y'a plus de 10 ans. Il a lancé un DoS sur le servivice concerné. Avec son compte bien identifié.

Rapidement il a reçu un mail "Blah blah pas bien blah blah méchant, blah blah, on a supprimé votre compte, blah blah, ça vous apprendra.".

:D

Dans les conditions d'utilisations y'a pas une clause comme ça ? Genre si tu truches a un jeu t'es viré ? :D

mdk, to python French
@mdk@mamot.fr avatar

Tiens, une formation #Python que je n'aurai pas le temps de donner moi même, quelqu'un pour me remplacer ?

https://discuss.afpy.org/t/offre-demploi-formateur-python-dans-une-ecole-de-cybersecurite/2118

mdk, to random French
@mdk@mamot.fr avatar
isagalaev, to python
@isagalaev@mastodon.social avatar

My biggest gripe about docs and modern search engines: the query "python f-string" finds a lot of trash instead of what I always look for: a reference. https://docs.python.org/3/library/string.html#formatstrings

mdk,
@mdk@mamot.fr avatar

@isagalaev Does Google prefers delivering page with ads sold by Google?

mdk, to orgmode French
@mdk@mamot.fr avatar

Haha :

| mdk.fr | 6.763/6.763/6.763/0.000 ms |
| afpy.org | 7.165/7.165/7.165/0.000 ms |
| reflets.info | 3.920/3.920/3.920/0.000 ms |
#+TBLFM: $2='(shell-command-to-string (concat "ping -c 1 " $1 " | tail -n 1 | cut -d= -f2 | tr -d '\n'"))

Oui c'est un tableau #orgmode qui ping des noms de domaines, #emacs

mdk, to python French
@mdk@mamot.fr avatar

TIL setuptool est capable d'indiquer tout seul au build-backend qu'il à besoin de wheel pour constuire une wheel:

https://github.com/pypa/setuptools/blob/0156e248e777eebff9250d83603611585d0c8f12/setuptools/build_meta.py#L325

donc pas besoin de :

[build-system]
requires = ["setuptools", "wheel"]

[build-system]
requires = ["setuptools"]

#python

scy, to webdev
@scy@chaos.social avatar

I need to convert #HTML to #Markdown and I'm looking for a tool to do that.

The output should

• preserve line breaks in paragraphs
• not contain additional, unnecessary linebreaks (e.g. 4 empty lines between paragraphs)
• be configurable (e.g. whether to use * or _ for emphasis, or * vs - for unordered lists)
• if possible, allow me to hook into details (e.g. to convert <pre class="shell"> to ```sh)

#Python or #CLI. Alternatively, what's a really configurable prettifier?

#askFedi :BoostOK:

mdk,
@mdk@mamot.fr avatar

@scy I haven't looked at the configurability details of html2text, but it converts html to Markdown. Yes the one from Aaron Swartz: https://github.com/Alir3z4/html2text/

mdk, to python French
@mdk@mamot.fr avatar
mdk,
@mdk@mamot.fr avatar

@foxmask Pas étudié non. Mais bon c'est les CI.

#obvious

Varpie, to random
@Varpie@peculiar.florist avatar

GitHub a supprimé le repo de xz et banni le mainteneur principal (qui n'était pas responsable des failles de sécurité) en plus du gars qui a introduit les failles de sécurité.

J'ai comme une impression de déjà vu...
Une petite piqûre de rappel que vos projets ne sont pas en sécurité chez GitHub, toujours avoir un miroir officiel où aller si Microsoft décide de vous supprimer.

mdk,
@mdk@mamot.fr avatar

@incroyable_anis @Varpie À l'AFPy on s'est montés git.afpy.org il y a qq temps pour essayer de migrer hors GH. On a pas foule, mais au moins ça c'est fait.

mdk, to python French
@mdk@mamot.fr avatar
mdk, to python French
@mdk@mamot.fr avatar

Ça y est je commence ma recherche de sponsors pour la #PyConFR !

https://www.pycon.fr/2024/fr/sponsors.html

Si tu pense que ta boite pourrait sponsoriser, fais moi signe, sinon retoot.

Challenge cette année on aimerait des interprètes LSF, si on veut réussir il va falloir taper fort niveau sponsors :D

#Python

berkes, to python
@berkes@mastodon.nl avatar

I'm truly baffled by how insane the map/reduce/filter iterator API for #Python is. Most languages, even JavaScript, have some sort of "other_list = the_list.map().filter()" API. Except Python (and PHP?).

Now, I can imagine that a language that primarily deals with string manipulation or DOM management or so, to have a crappy API for handling large lists of data. But python's entire success comes from "handleing large lists of data", yet the tools to do so are infuriating.

mdk,
@mdk@mamot.fr avatar

@berkes @freemo In Python they are functions, not methods, because they work with any iterable (strings, lists, tuples, bytes, literraly any containers, even the ones you create). It's easier than having to implement a map and a reduce method on every container.

But in Python we don't even use map and filter, comprehensions are (very often) more readable:

>>> sum(map(abs, filter(lambda x: x > 10, the_iterable)))

vs

>>> sum(abs(x) for x in the_iterable if x > 10)

treyhunner, to python
@treyhunner@mastodon.social avatar

What's an coding habit you picked up while learning #Python?

mdk,
@mdk@mamot.fr avatar

@treyhunner euh. hum. ... hard to tell in public, but: writing tests.

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

Wow boom, @codelutin qui m'annonce que c'est pas 1k€ mais 1666€ qu'ils me versent pour continuer à maintenir https://hackinscience.org au titre de la @copiepublique ♥♥♥

En passant j’apprends cette initiative géniale qu'est la Copie Publique, beau pied-de-nez, j'adore, vous êtes des génies, bisous !

fcodvpt, to python French

I made some code to extract the backends declared in the pyproject.toml files (1)

I used @sethmlarson great article : "Querying every file in every release on the Python Package Index" (2)

I called the gist (3) to dowload the files and everything worked fine.

#python #packaging-backends

(1) https://gitlab.liris.cnrs.fr/fconil-small-programs/packaging/get-pypi-packages-backends
(2) https://sethmlarson.dev/security-developer-in-residence-weekly-report-18
(3) https://gist.github.com/sethmlarson/852341a9b7899eda7d22d8c362c0a095

Here is the resulting bar chart (1/2)

mdk,
@mdk@mamot.fr avatar

@fcodvpt @sethmlarson That's not what I see on github:

path:pyproject.toml "setuptools.build_meta" : 28.7k files

path:pyproject.toml "poetry.core.masonry.api" : 96.8k files

mdk,
@mdk@mamot.fr avatar

@fcodvpt @sethmlarson Thanks for the ping! Yeah this looks more like what I expected.

What would be very interesting (to my eyes) is to see evolution over time. a bit like in https://git.afpy.org/mdk/python-versions, to see "migrations" from one backend to another, to see "birth" (or deaths?) of backends, and so on... Last time I did this kind of things I crawled github instead of PyPI, for a talk: https://git.afpy.org/mdk/talks/src/branch/main/2018-pyconfr-emergence.md (it took ages :D)

codelutin, to python French
@codelutin@mastodon.libre-entreprise.com avatar

📢 Code Lutin verse 1000 € au projet #HackInScience pour faciliter l'apprentissage de la programmation par tous 👩‍🏫

Chaque année, nous versons 1% de notre chiffre d’affaires au #Libre en tant que membre de @copiepublique 🐧💰

Merci @mdk de faire vivre le projet 👍

#Python #CopiePublique

https://www.hackinscience.org/

mdk,
@mdk@mamot.fr avatar

@codelutin @copiepublique Wow merci beaucoup !

Ma « procédure habituelle » (genre j'ai l'habitude qu'on me file 1k€) c'est afficher ça ici : https://www.hackinscience.org/sponsor/ pour être transparent.

Ça vous convient comme tournure et comme lien ?

mdk, to python French
@mdk@mamot.fr avatar

Je viens de mettre à jour https://git.afpy.org/mdk/python-versions

#Python 3.9 égalise avec Python 3.7, enfin, presque.

Oh coucou Python 3.12 ! 1% d'utilisateurs dès le premier mois, wow !

mdk, to python French
@mdk@mamot.fr avatar

Oh on est vraiment en 2023, y'a 3 fois plus d'utilisateurs de Python 3.11 que de #Python 2.7.

https://git.afpy.org/mdk/python-versions

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

Je crois que j'ai rêvé mais un jour j'ai croisé une application 2FA intégrée a une application keepass. Je remets pas la main dessus.
Une idée ?
KeepassDX n'a pas ça domache

mdk,
@mdk@mamot.fr avatar

@foxmask 2fa integre a passwordstore y'a sur pypi.

aral, to random
@aral@mastodon.ar.al avatar

Encrypted messaging provider: “We make our money selling this to the police.”

Tech folks: This is cool and normal.

#matrix #element #privacy #acab #e2ee #messaging

mdk,
@mdk@mamot.fr avatar

@aral If the police consider it secure for their own usage, it's a good point.

Cloudguy, to random

deleted_by_author

  • Loading...
  • mdk,
    @mdk@mamot.fr avatar

    @Cloudguy The french finance inspection calls it « massive fraud » maybe Amazon should try to tell them it's defamatory...

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