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

simon, to random
@simon@simonwillison.net avatar

The tag on here is super active right now, great to have a functioning social media back channel again!

anze3db,
@anze3db@fosstodon.org avatar

@simon it's really awesome to see!

PS: If anyone is overwhelmed by all the post feel free to check out https://fedidevs.com/pycon24/ where I have some basic filters and ordering for all the posts with any of the three main PyCon hashtags!

anze3db, to random
@anze3db@fosstodon.org avatar

Next week I am flying to Florence for my 3rd PyCon Italia!

I'm really excited for this year since I'll be giving a talk: "Self hosting your side projects with Django and duct tape"!

If you are in town and would like to meet up let me know!

https://2024.pycon.it/en/submission/onag

anze3db,
@anze3db@fosstodon.org avatar

@ayo yes, I believe it will!

anze3db,
@anze3db@fosstodon.org avatar

@ayo I've recently learned that a lot of devs coming into programming through React don't even know that you don't need Javascript to make a fully functioning website. I'm trying to do my best to show that things can still be simple!

anze3db,
@anze3db@fosstodon.org avatar

@ayo For me personally there are more Python/Django conferences that I can attend in a year, so I'm not even considering more general web dev confs at all.

anze3db, to random
@anze3db@fosstodon.org avatar

If you ever find yourself writing a comment like:

We will never get to this point/this code will never run

You have to know that life will find a way to run that code when you least expect it and ruin your day.

ayo, to RaspberryPi
@ayo@ayco.io avatar

Time to buy a raspberry pi. Any advice what or where to get? 👀

anze3db,
@anze3db@fosstodon.org avatar

@ayo get the 5, I think they should be in stock everywhere (check the official site for resellers in your country)

Be careful when choosing the SD card, there are huge differences in read/write speed so make sure you get a fast one.

anze3db,
@anze3db@fosstodon.org avatar

@ayo @levlaz having a RPi server is a lot of fun! Note that it does need a power supply to work so you’ll need that + an external display to code with it on the train.

anze3db,
@anze3db@fosstodon.org avatar

@ayo a case with active cooling can be useful if you are maxing out the cpu, but it is not necessary. I have an 11’ external display for mine so that I can easily see cpu/mem/network

anze3db, to random
@anze3db@fosstodon.org avatar

One thing I dislike about go fmt is the column alignment of structs. A small oneline change can result in a multiline diff.

For PR reviews on GitHub, disabling whitespace changes (?w=1) can be helpful, but you'll still have to deal with needless git conflicts from time to time

anze3db, to random
@anze3db@fosstodon.org avatar

A game where you write scripts in a Python like language to solve puzzles. I don't have a Windows machine so can't try it out, but it looks really cool!

https://store.steampowered.com/app/2060160/The_Farmer_Was_Replaced/

anze3db, to random
@anze3db@fosstodon.org avatar

Amazing to see these many Mastodon posts about on day one!

As someone who couldn't attend this year I love to see them! Keep them coming y'al!

anze3db,
@anze3db@fosstodon.org avatar

And I'm not saying this because I've built a site where you can see all PyCon posts sorted and filtered 😅

https://fedidevs.com/pycon24/

anze3db, to random
@anze3db@fosstodon.org avatar

Good article on error handling in Go. It shows really well what the main problem with Go's error is. Spoiler: It's not the lack of try/except. It's the lack of context information when an error occurs.

https://blog.rideapp.in/conquering-errors-in-go-a-guide-to-returns-and-handling-a13885905433

anze3db, to random
@anze3db@fosstodon.org avatar

I was surprised to see C# on the list, but then I remembered that I did a few Unity projects back in the day. Good times!

anze3db, to random
@anze3db@fosstodon.org avatar

Google’s AI product updates bring back memories of when Google pushed social features into every product during the Google+ era.

anze3db, to random
@anze3db@fosstodon.org avatar

I received some feedback on flakytest yesterday (thanks @alextomkins & @andreagrandi) so time for a small update!

  1. The pricing page now clearly states that the tool is free for non profits and open source projects ❤️
  2. Test result pages can now be made public. Check out the page for fedidevs or flakytest itself:

https://flakytest.dev/projects/fedidevs/runs/
https://flakytest.dev/projects/flakytest/runs/

hynek, to random
@hynek@mastodon.social avatar

how did we even fly before

anze3db,
@anze3db@fosstodon.org avatar

@hynek were you able to upload an actual image from the flight? I don't believe it, it must be fake.

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

@hynek I've used TAP's Free Messaging plan and it wasn't the best. Only text and no images and you had to renew it every hour. No idea about the payed plans, but I think the full flight one was too expensive for me to even consider.

anze3db, to random
@anze3db@fosstodon.org avatar

One thing that I'm missing with HTMX and Django is proper error handling.

By default HTMX swallows any response that is not a 2xx, which might leave your users hanging on an endless loading state.

Does anyone have a good solution for this that can be reused between projects?

video/mp4

anze3db,
@anze3db@fosstodon.org avatar

As a stopgap solution I solved this by returning a 200 response with an error content, but I am curious how others deal with errors and HTMX.

video/mp4

anze3db,
@anze3db@fosstodon.org avatar

@dunsap oh I didn't know about this extension. Looks cool, thanks for sharing!

anze3db,
@anze3db@fosstodon.org avatar

@aral Benjamin pointed out that there is an extension that allows you to define hx-target-error: https://social.data.coop/@benjaoming/112439119762935983

anze3db,
@anze3db@fosstodon.org avatar

@benjaoming For this particular example I think a local error text is more appropriate than a global toast, but I will also need toasts for other things so this is useful, thanks again!

preslavrachev, to blogging
@preslavrachev@mastodon.social avatar

Blog Update: I have successfully migrated email sending away from ButtonDown Email to a self-hosted Ghost instance. Nothing bad with ButtonDown - simply, Ghost has by far a better editing and publishing experience (and can be self-hosted, of course).

Speaking of newsletters, one reason to migrate was because I want to explore email communication a bit further. So, if newsletters are your thing, be my guest and add your email here: https://preslav.me/subscribe/#via-email I won't spam!


anze3db,
@anze3db@fosstodon.org avatar

@preslavrachev Awesome, I've signed up!

The confirmation email went to my spam folder though 😔

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