@CodenameTim@fosstodon.org avatar

CodenameTim

@CodenameTim@fosstodon.org

Gardener, homebrewer, bread baker and hot sauce maker. Assister with Django Debug Toolbar.
Jazzband | DEFNA | he/him

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

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

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

The window project has resumed... With an outside temperature of 40F.

It's going to be a fun two days ya'll

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

Saturday morning #django package idea:

A tool that allows you to rapidly test and compare various indexes against a queryset or known view.

It then would configure the db, and run the queryset, store results, run explain analyze, store that, move onto the next and do the same, then at the end present and annotate the results.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

Welp tomorrow is Halloween and I forgot to improve on my candy distribution marketing. If anyone recalls, I bought 8 pounds of candy last year to have ZERO trick-or-treaters show up.

Though I did reduce how much candy I bought this year. We're at 3 pounds of standard fare rather than specially ordered exquisite candy.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

For those keeping track at home, we had another window rep at the house taking measurements. We're down to three screens, but that's a vexing job.

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

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

I really enjoyed the latest episode of @djangochat with @lilyf. I appreciate her openness on how she approaches contributing. It's always great to get to know people better, see how they think and what challenges interest them.

I was laughing pretty good when Lily talked about her experience with typing in python while being as diplomatic as possible.

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

If anyone is curious about how to approach using as a VPN to your application (say a version that grants you access to the admin site), I have a high level outline here: https://github.com/aspiredu/heroku-tailscale-buildpack#limit-access-to-web-app-to-tailscale-users

If you have questions, please ask.

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.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

Sat morning thought:

Could migrations be improved if we store a hash of the migration file itself in the django_migrations table to help identify when a person changes a migration file after it's been applied?

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

Last night I was up writing up a "syllabus" for what I would cover in a professional #Django course. This morning it turned into a quick blog post with a bunch of links.

I'm curious what folks think:
https://www.better-simple.com/django/2023/08/18/pro-djangonaut-skills/

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

I've been dramatically reducing my coffee consumption over the past month and discovered something amazing.

Coffee.

Coffee is amazing.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

Is there a site for folks to find developers willing to work for a percentage of a company?

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

Early Saturday morning idea. Host a Django Help-a-thon where hosts try to answer as many questions as possible in 24 hours. Sponsors would donate X dollars per question. People could pay some dollars to move their question up to the front of the queue.

Can you tell Jump Rope for Heart was part of my childhood?

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

"Viewing Sentry errors: There and back again"

  1. Get error email
  2. Click Sentry link
  3. Register my device with mimecast by entering my email
  4. Wait 5s for emailed code
  5. Enter code
  6. Click login to Sentry with GitHub
  7. Click fill password from password manager
  8. Log into password manager
  9. Fill GitHub password
  10. Open authy for MFA code
  11. Paste code
  12. Open authy for Sentry MFA code
  13. Paste code
  14. Realize it's a transient error

...

I have to be doing something wrong

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

I need to find a better way to describe contributing open source software. Approximately zero people from my hometown understand what I'm talking about or why anyone would ever give their work away for free.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

With a day to spare, my year in review post is done.

https://www.better-simple.com/personal/2023/12/30/my-year-in-review/

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

I wrote out my daily schedule. It's hard to account for all the this/that/other variations in the day, but I tried.

https://www.better-simple.com/personal/2024/03/27/my-typical-workday-schedule/

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

Can someone convince me that using chat gpt to write the majority of a blog post is a good idea?

I'm frustrated by seeing surface level blog posts that don't show more than how to install a package and describe it using technical jargon.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

Every now and then I wish was using analytics on my site. Tonight's urge: to see how my django migrations post is doing.

CodenameTim, to python
@CodenameTim@fosstodon.org avatar

I really struggle with the docs at times. For example, I'm trying to find more information about slice objects. I found three areas.

https://docs.python.org/3/reference/expressions.html?#slicings
https://docs.python.org/3/library/functions.html#slice
https://docs.python.org/3/glossary.html#term-slice

Finally the c-API seems to provide what I'm looking for, but it's written for the C interface: https://docs.python.org/3/c-api/slice.html?highlight=slice

Where am I going wrong?

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

I'm attempting to buy blinds for windows and the UX is not good. When I'm being told to take 8 measurements, round to the nearest 8th inch, then do math with values in 16ths of an inch AND notice that a wand attachment requires me to add another fraction all without ever entering my own measurements is a massive fail.

Seriously, take my measurements however they are. Round down for me. Using the add-ons, determine what size return my valence needs to be.

This should be way less stressful.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

Know what's fun about web browsers killing cookies? If your app can only load in an iframe you can no longer use 300 redirect responses and need to implement a hacky post redirect.

What's a "post redirect"? Well it's when you render a form with your sensitive inputs (such as session key) as hidden inputs then immediately post it via JS.

But doesn't that involve including sensitive data in the DOM where any extension can read it w/o explicit permissions? Yes, yes it does.

CodenameTim, (edited ) to django
@CodenameTim@fosstodon.org avatar

Djangonaut Space launched its pilot program about a month ago and it's well underway. While we have a number of things to complete, we are gathering contact information for interested folks for future sessions.

The program is designed to help develop future Django contributors. If that sounds like something you'd be interested participating in sign up here https://djangonaut.space/

We're looking for folks who want to become contributors and those who want to guide and advise others!

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

Apparently today's game is "how many times can Tim stick his foot in his mouth?"

  • 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