encthenet, to programming
@encthenet@flyovercountry.social avatar

Wonder if there's a optimization to turn:
a == None

into:
a is None

thissa, to programming

New instance, new post!

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 . But when I'm not doing that I'm often watching or .

I really enjoy , , and . My current obsessions are and . Other games I've enjoyed recently include , and .

I'm also a big fan of and which I talk about on my main account, @smallsco . This account is a lot more relaxed.

Giving a try because, why not, it looks a lot more fun than plain ol' Mastodon!

dwarmstrong, to linux
@dwarmstrong@fosstodon.org avatar

Day 65 of - Added virtualization (kvm + qemu + libvirt) packages and config details to my setup script: https://gitlab.com/dwarmstrong/null-to-void

webology, to random
@webology@mastodon.social avatar

🎉 Fun episode of @djangochat this week.

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

https://fosstodon.org/@djangochat/110305840315179834

webology,
@webology@mastodon.social avatar

When people first work with Django, they commonly ask how do my models in models.py get picked up by Python?

pytest fixtures are no less scary or weird than Django already is. 🤷

hcs, to programming

Impossible not to fall in love with . This is just beautiful:

onkelmarkus, to programming German
@onkelmarkus@metalhead.club avatar


Nachdem ich schon so viel Hilfe bei meinem Problem bekommen habe, gebe ich nicht auf aus dem noch ein brauchbares Arbeitsgerät zu machen.
Ich suche noch nach einer kostenlosen IDE für um einfache Programme zu schreiben.
Hat jemand eine Idee?

pythonbytes, to programming
@pythonbytes@fosstodon.org avatar

Kicking off another @pythonbytes live stream in a few minutes!

Join us and be part of the show with hosts @mkennedy and @brianokken (plus occasional guests).

https://pythonbytes.fm/stream/live

felixxm, to programming
@felixxm@fosstodon.org avatar

🚨 Django security releases issued: 4.2.1, 4.1.9, and 3.2.19 🔥

https://www.djangoproject.com/weblog/2023/may/03/security-releases/

tmr232, to programming
@tmr232@mastodon.social avatar

I don't know when Trusted Publishers were added to PyPI, but this is absolutely genius!!!

Add the info about your repo, and you're done!
Your CI jobs can create the project for you, and need no additional credentials!

https://docs.pypi.org/trusted-publishers/

astrojuanlu, to programming
@astrojuanlu@social.juanlu.space avatar

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.

sietse, to programming
@sietse@toot.community avatar

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

https://github.com/JensTec/NL-Bankstatement-converter

itsfoss, to programming
@itsfoss@mastodon.social avatar

Grab the Python programming bundle by No Starch Press.

Part of the proceeds go towards the Python Software Foundation!

⏱️ Ends on 22 May.
💸 $1 or more.

https://www.humblebundle.com/books/python-no-starch-books?partner=itsfoss

futurebird, to programming
@futurebird@sauropods.win avatar

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

einenlum, to php
@einenlum@fosstodon.org avatar

Still a few days left to subscribe to the landing page, to get a 50% discount coupon before my book "From to " is out.

Getting ready for the release (on May 9th). This is exciting! 💚

https://fromphptopython.com/?new

chrisoffner3d, to programming

😍 Chris Lattner (father of ) just announced this new language for AI programming:
https://www.modular.com/mojo

rml, to random
@rml@functional.cafe avatar

McCarthy is like the #Hegel of #Lisp, while Sussman & Ableson are his #Marx & Engels.

"Means of abstraction", "means of combination"... substitute the dialectical method with the substitution method...

...they were brewing up a revolution, and they knew good & well what they were scheming.

#scheme

rml,
@rml@functional.cafe avatar

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

bbelderbos, to programming
@bbelderbos@fosstodon.org avatar

What is your preferred way to install on your system?

walkerb, to programming

So for tonight I decide to rewrite the leibniz algorithm from to - in particular - we had been talking about earlier...

Cut iterations to 1000 and blew the dust off my brain.

After several revisions ... it worked 😂

Commodore 64 running the Leibniz approximation for Pi to 1000 steps, it takes 17 seconds to complete

cjerrington, to linux
@cjerrington@mstdn.social avatar

Some thoughts on Ubuntu's change with Python support in the upcoming release. What to expect, what I like and some dislikes as well.

https://claytonerrington.com/blog/ubuntus-change-with-python-support/

(30)

stux, to gamedev
@stux@mstdn.social avatar

Made a quick export of a very awesome and big map with multiple towns, a big castle and a hidden magic tree!

There's not much gameplay yet but soon..

Download for Windows (2.1GB)

https://u.fail/monster

Super little part of the mega awesome map you can fully explore now!

pax,

@stux for reading menus if you are using use 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.

adamjcook, to programming

So... the language looks really cool!

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.

https://www.modular.com/mojo

sethmlarson, to programming
@sethmlarson@fosstodon.org avatar

New JSON APIs making a cameo in @pamelafox's presentation slides! 🤩

https://pamelafox.github.io/my-py-talks/pyday-apis/#/9

glyph, to PyConUS
@glyph@mastodon.social avatar

Post-conference notes from my experience at PyCon 2023. I think I am squeaking under the wire for these to still be relevant…

https://blog.glyph.im/2023/04/post-pycon-us-2023-notes.html

@PyConUS

glyph,
@glyph@mastodon.social avatar

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

glyph,
@glyph@mastodon.social avatar

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

glyph,
@glyph@mastodon.social avatar

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.

  • 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