Posts

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

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

I'm looking for some help running a GitHub organization dedicated to supporting community-maintained third-party packages.

I've written up an introduction here: https://www.better-simple.com/django/2024/05/22/looking-for-help-django-commons/

You can join here: https://github.com/django-commons/membership

sethmlarson,
@sethmlarson@fosstodon.org avatar

@jezdez @CodenameTim Right?? I would like to adopt this in Jazzband too. Maybe we can copy each others work ;)

ryanhiebert,
@ryanhiebert@fosstodon.org avatar

@CodenameTim as far as I know, I’m not a DSF member yet. I thought that I’d applied, but perhaps I’m mistaken or was unsuccessful. Otherwise, I’m happy to help admin.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

@gvwilson I've been enjoying "Software Design By Example", thank you for writing it!

I've come across a few exercises now that I'm not 100% sure I understand what's being proposed. Is there a solution bank somewhere that I'm missing?

One of the specific cases is Chap 4's "Rewrite Any so that it does not repeated re-match text."

CodenameTim,
@CodenameTim@fosstodon.org avatar

@gvwilson that's totally fair! We have a reading group within @djangonaut who have been working through it. It's been great!

gvwilson,
@gvwilson@mastodon.social avatar

@CodenameTim cool - if you're ever doing an online hangout I'd welcome a chance to sit in cc @djangonaut

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

Coming back at update_or_create for round 2!

If you call update_or_create where the instance already exists and the defaults passed in are already the values on the instance, do you ever want it to actually re-save the instance?

I'm running into the case where I'd prefer it to not update the instance if it doesn't need to. I'm guessing I'm overlooking some race condition problem though.

#Django

ryanhiebert,
@ryanhiebert@fosstodon.org avatar

@treyhunner @CodenameTim @webology I've not personally used django-model-utils, but another developer previously showed me that they have a FieldTracker. It doesn't solve for the pure-db-checking upsert as I'd like, but could be useful to dirty check models before saving: https://django-model-utils.readthedocs.io/en/latest/utilities.html#field-tracker

treyhunner,
@treyhunner@mastodon.social avatar

@ryanhiebert @CodenameTim @webology I actually made FieldTracker because I was inspired by django-simple-history and thought django-model-utils might be a good home for that. 😜

Honestly I use django-lifecycle's dirty-checking more often now since it's good enough for my use cases.

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

Google Summer of Code projects have been announced and had four projects accepted!

https://summerofcode.withgoogle.com/programs/2024/organizations/django-software-foundation-8o

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

I was just reminded of the most difficult language I had to learn. https://en.wikipedia.org/wiki/VHDL

Looking at it now, I get more of it, but trying to learn that syntax at the same time I was learning Java was challenging.

satya,
@satya@mas.to avatar

@CodenameTim Whoa! Is there anything you haven’t done?

CodenameTim,
@CodenameTim@fosstodon.org avatar

@satya Actually learn VHDL 😅

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

I did not expect to hear Bowling For Soup on my Discover Weekly playlist today.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

And some days you wake up and try to do something new.

If you're into unsettling fiction, hopefully this scratches that itch. If that's not your thing (or amateur writing for that matter), don't click the link.

https://www.better-simple.com/short-story/2024/04/24/a-unsettling-dream/

matthiask,
@matthiask@hachyderm.io avatar

@CodenameTim I enjoyed reading that a lot. Or maybe enjoyed isn't the best word to describe all the feelings it evoked. Thanks :)

CodenameTim,
@CodenameTim@fosstodon.org avatar

@matthiask Thank you! I definitely went back and forth on publishing it, and then again posting about it here.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

On the fix-it list for 2024: advertising for Better Simple's consulting services.

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

Log into the forum, read a reply from Ken. ❤️ the reply from Ken.

Repeat in about 2 weeks.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

I submitted my final #DjangoConUS talk proposal! If you're still working on yours, you have ~53 hours left to submit.

That said, I'm on Team Submit Early simply to avoid timezone confusion.

ryanhiebert,
@ryanhiebert@fosstodon.org avatar

@CodenameTim I have two I’m thinking to submit. I’ve been sick for over a week and just haven’t been able to get the proposal together. Glad you did.

CodenameTim,
@CodenameTim@fosstodon.org avatar

@ryanhiebert You should 100% submit them. Let me know if you'd like an extra set of eyes.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

@ehmatthes I was thinking about your tea & coffee comment this morning. What kinds of tea are you enjoying these days? Do you vary it and is there anything you swear by?

I also realized I crave coffee because my routine isn't stable right now so I'm not waking up as rested as normal.

ehmatthes,
@ehmatthes@fosstodon.org avatar

@CodenameTim The backup plan is to barge our truck and fly to Seattle. It would work fine, it's just a much less satisfying way to leave. Three days on a ferry is a pretty reflective time. :)

We don't have a rental lined up in NC, but with a firm date for leaving that gets easier.

We should be well-established in NC by the time DjangoCon is happening!

CodenameTim,
@CodenameTim@fosstodon.org avatar

@ehmatthes oh, three days on a ferry sounds like a productive writing environment!

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

I'm pretty far behind @djangochat, but wow! The episode with @baconandcoconut was fantastic. I learned so much about OSS logistics and non-profits. That was a really wonderful chat!

CodenameTim, to python
@CodenameTim@fosstodon.org avatar

Does someone have an idea how long the PyPI organization queue is? #Python #PyPI

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

I'm not sure how many times I'm going to misspell pony as "poney". And yes, I did it again on the correct version for this toot.

adamchainz,
@adamchainz@fosstodon.org avatar
CodenameTim,
@CodenameTim@fosstodon.org avatar

@adamchainz phew, I'm just an old soul

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

How would you test a database migration operation that creates a shadow table with a subset of data, then swaps it in?

Edit: In an automated test

benjaoming,
@benjaoming@social.data.coop avatar

@CodenameTim wild suggestion coming up... but maybe something with an app that's only enabled while testing? You can put a migration in the test app that runs immediate after the target migration, using depends_on?

CodenameTim,
@CodenameTim@fosstodon.org avatar

@benjaoming that's not a bad idea. My current one is pulling a bunch of testing code out of Django to do what django does.

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