Hi! 👋 I'm Scott, aka Thissa! I'm a technology enthusiast from BC, Canada. By day I build software used to run medical labs in #Python. But when I'm not doing that I'm often watching #Anime or #Gaming.
One PSA: pytest fixtures are worth learning and making maintaining non-small projects much easier to maintain.
I recommend storing them in conftest.py to get your feet wet. Every application can have a conftest.py if you want or have one global one.
I have worked with both for a decade and a half, and pytest fixtures are less code, faster, and remove 10 to 20 lines of repetitive setUp() boilerplate. 🤷
#FediLZ
Nachdem ich schon so viel Hilfe bei meinem Problem bekommen habe, gebe ich nicht auf aus dem #iPad noch ein brauchbares Arbeitsgerät zu machen.
Ich suche noch nach einer kostenlosen IDE für #Python um einfache Programme zu schreiben.
Hat jemand eine Idee?
TIL: When launching a script that uses Python, sys.path does not contain the current directory. If you do weird sys.path mangling, you might observe different results from script vs python -m script.
Recently #GNUCash 5.1 was released, a good trigger for me to update a Python script to automatically convert several data standards and file formats (.csv & .pdf) into one, simple readable .csv format that GNUCash can import easily.
Did you know in python you can stick a for loop in the list brackets and just BAM have a list? No “append” check it:
l=[chr(i+65) for i in range(0,26)]
print(l)
> [‘A’, ‘B’, ‘C’, … , ‘Z’]
(it will be the letters A-Z since the unicode for the capital letter starts at 65, chr renders these numbers as letters.)
Is that classy? For some reason this neat little feature isn’t really taught. I guess with a loop and appending you have not flexibility— but still this is cool. #python#coding#tricks
@mousebot but here, I'll give it a shot based on vibes
Plato: #Agda (the Idea of the Good, proto-Maoist non-conformists)
Aristotle: #C (arch reactionary)
Duns Scotus: #ASM (simple brittle concepts but with plenty of haecceity)
Spinoza: #CommonLisp (OG that everyone thinks is fresh bcs its dynamic)
Descartes: #MLIR (ghost in the machine)
Kant: #CPP (critique of Pure C)
Hegel: #Genera (the absolute Idea as self-reflective system)
Nietzsche: #Scratch (the primacy of appearances)
Marx/Lenin: #ML (self-explanatory)
Freud: #GDB (not phil, but rather the original debugger for all the problems of phil)
Heidegger: #forth (the anti-technology technologist's lang of choice)
Wittgenstein: #Prolog (all there is are the facts)
Stalin: #Haskell (forces you to do things "correctly" even when its neither the best option for the situation nor the most performant; the extreme ML)
Lacan: #rr (meta-debugging, non-linear retroactive causality of the signifier, on top of gdb)
Deleuze: #MaxMSP (thinks programming should be art, thinks art is about infinite flows, elaboration of Nietzsche)
Federici: #SpritelyGoblins (super witchey)
Derrida: #AWK (theres nothing outside the text)
Malabou: #Python (everything is neurobiological including language itself)
Badiou: #Scheme (the generic is the Idea of the Good)
Butler: #Rust (the new generation of Kantians doing things right, performatively)
So for tonight I decide to rewrite the leibniz algorithm from #python to #BASIC - in particular #Commodore64 - we had been talking about #Retro earlier...
Cut iterations to 1000 and blew the dust off my brain.
@stux for reading menus if you are using #Python use #unispeak but linux support is beta now, as people are too lazy to test this.
but you get almost full windows speech backend, a macOS speech backend, and, as I said before, linux backend which can be broken in million ways.
The team behind it is obviously extraordinarily talented.
And while I completely understand the reasons for keeping it closed initially, it is a little disappointing that there is no timeframe or licensing guidance on an eventual open-source state (as hinted to in their FAQs).
Going to have to keep it on the back burner until then.
I should probably also do a couple of follow-ups here to note the two bits of new open source software that I announced for the first time during this talk. The first is PINPal, a spaced-repetition tool for securely generating, memorizing, and rotating the passwords you actually need to remember in your brain: phone PIN, master passphrase for your password manager, etc: https://github.com/glyph/pinpal
The second is TokenRing, a Python Keyring backend which uses your YubiKey (or other CTAP2 compatible hardware key with the hmac-secret extension) to ensure a user-presence check for any high-sensitivity secrets. https://github.com/glyph/tokenring
Both of these are pretty rough proofs of concept, although I'm reasonably confident that they don't contain any super obvious security bugs (I did have other smart people have a look at them before making them public). My focus will be elsewhere for a while but I'd be happy for any PRs to these.