scy

scy's avatar
scy
npub15pc5...hvce
Nerd. Freelance Software Dev. Relationship Anarchist. Sometimes lives in a van. Queer white cis dude, promotes anti-capitalism, anti-fascism, intersectional feminism, the fight against climate change, and thoughtful, ethical behavior in general. Toots in English or German about software development (mainly Python, JavaScript, Shell), Linux, Vim, electronics/µCs, van life, politics, sex, (inter)personal & emotional things, music, Star Trek, beverages. May contain awful puns.
TIL: Instead of the standard pattern of if k not in mydict: mydict[k] = [] mydict[k].append(foo) Python comes with a subclass of dict that will automatically create missing elements from a factory function as soon as you try to access them: from collections import defaultdict mydict = defaultdict(list) mydict[k].append(foo) #Python
Öh, Crypto-Nerds, wie genau funktionieren eigentlich PINs für Girocards und Kreditkarten? Insbesondere frage ich für die "Wunsch-PIN"-Funktion, mit der ich online(!) die PIN für meine Kreditkarte ändern kann. Ich ging bislang davon aus, dass die PIN den Hardware-Crypto-Teil der Karte entsperrt und nicht bis zur Bank wandert. Bei Girocards scheint das auch so zu sein, denn da kann ich die PIN nur am Automaten ändern. Bei Kreditkarten kann ich aber online eine neue vergeben? Wie geht das?