@anze3db@fosstodon.org
@anze3db@fosstodon.org avatar

anze3db

@anze3db@fosstodon.org

Writing Python :python:, Django :django: and surfing waves 🏄‍♂️

Projects:
🧪 https://flakytest.dev tame your test suite flakiness
🧑‍💻 https://fedidevs.com find awesome devs across the fediverse
💻 https://github.com/anze3db/django-tui a TUI for all your Django commands

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

anze3db, to random
@anze3db@fosstodon.org avatar

I was hoping they were fixing the sandbank that was making the waves closeout last winter, but they are laying the undersea fiber optic cables to add additional capacity between Europe and Africa! That's also really cool!

leonid, to python German
@leonid@norden.social avatar

djangoproject.com is down :omya_python:

anze3db,
@anze3db@fosstodon.org avatar

@leonid It's a bit slow (5s per response), but seems to be working for me.

anze3db, to random
@anze3db@fosstodon.org avatar

Adding some error handling to the follow account feature at https://fedidevs.com.

Now that I've been writing Golang for a few weeks I am realizing that it's way to easy to forget about error handling in Python 😅

anze3db, to random
@anze3db@fosstodon.org avatar

🔴 Badass girls are sexy.

anze3db,
@anze3db@fosstodon.org avatar

@kaschu of course!

anze3db, to random
@anze3db@fosstodon.org avatar

Interesting, a message queue library written in Golang built on top of SQLite.

https://www.goqite.com/

anze3db, to random
@anze3db@fosstodon.org avatar

The only reason not to deploy to prod on Fridays is that you have a four day work week and you have Fridays off.

anze3db,
@anze3db@fosstodon.org avatar
adamchainz, to python
@adamchainz@fosstodon.org avatar

✍️ New post covering a small #Python helper to return all subclasses of a given class.

https://adamj.eu/tech/2024/05/10/python-all-subclasses/

anze3db,
@anze3db@fosstodon.org avatar

@adamchainz yield from makes the implementation really clean! 👍

anze3db, to random
@anze3db@fosstodon.org avatar

I've just figured out that when you use the ci" or ci( vim motion you don't have to be in the middle of the thing that you want to change. It will work even if you are at the beginning of the line 🤯

video/mp4

anze3db, to random
@anze3db@fosstodon.org avatar

Great video by Anthony on tracking down which tests are polluting your global namespace and causing hard-to-debug test failures!

https://www.youtube.com/watch?v=BoZDpQnA-Xw

anze3db, to random
@anze3db@fosstodon.org avatar

The posts on the Fedidevs conference pages have also received a facelift!

image/png

anze3db,
@anze3db@fosstodon.org avatar

BTW: the screenshots and video are from this year's page (https://fedidevs.com/pycon24).

I'm sad that I won't make it, but at least I'll be able to browse through all the Mastodon posts about it!

anze3db,
@anze3db@fosstodon.org avatar

And the mobile page also looks decent now!

video/mp4

anze3db, to random
@anze3db@fosstodon.org avatar

I found an interesting use case for flakytest .dev: An e2e test that integrates with a flaky 3rd party service.

It's useful for the test to ping the actual service to catch API changes on their end, but since the service is out of your control it could be flaky.

skribe, to django
@skribe@aus.social avatar

Django peeps. I want to link my languages table (English, French, Chinese, etc) to the word classes (Nouns, Verbs, Adjectives, etc) table. It would be a many-to-many relationship, but I'm not sure whether to use a join table or the many-to-many model. What's the most Django way?

anze3db,
@anze3db@fosstodon.org avatar

@skribe I would keep it simple and use the models.ManyToManyField() and only create my own join table if there is a very specific need for it.

ayo, (edited ) to random
@ayo@ayco.io avatar

I recently thought about the different ways you can "have" a place in the Internet:

  • Bare metal
  • Dedicated server
  • Virtual Private Server (VPS)
  • Shared Hosting
  • Serverless
  • fly.io
  • Netlify, Vercel, etc

anze3db,
@anze3db@fosstodon.org avatar

@ayo I have a raspberry pi running at home with 4 different sites. Honestly, it's not that much work and you don't even need a dedicated IP from your ISP if you are ok with a few minutes of down time every couple of months.

anze3db,
@anze3db@fosstodon.org avatar

@ayo I'll be giving a talk at Pycon Italia about this at the end of the month, but if you do end up trying it and run into issues feel free to message me anytime!

anze3db,
@anze3db@fosstodon.org avatar

@ayo yes! 😄

anze3db, to random
@anze3db@fosstodon.org avatar

I've made some small improvements to the fedidevs conference list page!

The ideas for the design came straight from https://refactoringui.com, thanks @webology for the recommendation!

image/png

anze3db, to random
@anze3db@fosstodon.org avatar

I've never struggled so much to sign up for a service as that one time when I had to sign up for Microsoft Intune.

anze3db, to random
@anze3db@fosstodon.org avatar

Still wrapping my head around some of the concepts in SQLBoiler (Golang's ORM). I love the compile type safety, but setting Valid = false to null a column feels counter intuitive.

I don't think I'd be able to figure out what the code below is doing just by reading it.

anze3db, to random
@anze3db@fosstodon.org avatar

pip 24.1b1 was released yesterday and brings a lot of perf improvements!

It also drops support for EOLed Python 3.7 and legacy version specifiers so make sure you try it out on your workflows and give the pip team feedback if something broke!

python -m pip install pip==24.1b1

https://pip.pypa.io/en/latest/news/#b1-2024-05-06

kevinrenskers, to random
@kevinrenskers@hachyderm.io avatar

Something I really dislike on GitHub: when you add a new comment you have this really obvious button to insert an image, which I use all the time. But when you edit a comment, that button is gone and instead you have to use the small toolbar buttons. Why is this UI not consistent?

anze3db,
@anze3db@fosstodon.org avatar

@kevinrenskers I’ve never used this button as I always drag and drop or copy paste the image directly into the text area. Feels much faster than going through the dialog

anze3db, to random
@anze3db@fosstodon.org avatar

MS Docs: Using the Setup Assistant with modern authentication is considered modern authentication.

If using Setup Assistant with modern authentication wouldn't be considered modern authentication would it still be called Setup Assistant with modern authentication?

anze3db,
@anze3db@fosstodon.org avatar

@deshipu the way this all works Baroque Authentication would be a more fitting name.

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