Posts

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

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

I really enjoyed the recent @djangonews conversation with @webology. Jeff, you can repeat that line about wanting to see "decades of over-investment in open source" as many times as you want.

https://djangochat.com/episodes/funding-open-source-jeff-triplett

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

django-simple-depoy 0.6.3 is out. This fixes a bug with Platform.sh deployments, and improves consistency internally across platforms.

Also, 60+ vague exploratory issues have been trimmed to ~20 task-oriented issues.

https://github.com/ehmatthes/django-simple-deploy/blob/main/CHANGELOG.md

ehmatthes,
@ehmatthes@fosstodon.org avatar

Next up, make Platform.sh deployments more resilient. Right now they fail if you already have a project deployed there.

After that, I think it's time to build out the plugin model. :)

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

Somebody likes the spring muddy season

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

Corgi fest! Birdie is turning one soon, and she got to visit all five of her siblings, and her mom and dad. Such a sweet time!

Two corgi pups coming over to get pet
Four corgi pups running with their tongues out

ehmatthes,
@ehmatthes@fosstodon.org avatar

(Birdie is wearing the pink harness.)

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

I just released django-simple-deploy 0.6.2, the first release in quite a while.

You can use it to make multiple deployments to Fly.io. Heroku deployments are updated as well.

I'm making steady progress toward a plugin-based model, and should be able to make regular releases over the next few weeks.

Changelog: https://github.com/ehmatthes/django-simple-deploy/blob/main/CHANGELOG.md

#Python #Django

ehmatthes, to python
@ehmatthes@fosstodon.org avatar

TIL how to use itertools.dropwhile() to get all lines from a file after a specific line. I always used to write my own loop to solve this problem.

I'm curious, have you heard of dropwhile()? Have you used it?

AlSweigart,
@AlSweigart@mastodon.social avatar

@ehmatthes Never heard of it. I would have just written my own loop to solve the problem, too.

paarth,
@paarth@pirate.lgbt avatar

@AlSweigart @ehmatthes itertools and functools take the crown for each being parts of the standard library that are grossly underused. They solve so, so many common programming patterns in a way that is measurably more performant than other solutions.

You want to have a for loop within a for loop? You can use itertools.product instead!
You want memoization of a function/instance property? Just use functools.cache, or functools.cached_property respectively!

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

As a speaker, I'd love to be more connected with the online audience.

There was a speakers Slack channel, largely focused on getting slides ready and dealing with AV prep. I could see a stronger focus on encouraging speakers to log in beforehand and greet online attendees, and checking in with them afterwards.

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

For everyone I spoke with recently about moving to NC later this summer, this is part of the reason we're looking forward to being somewhere else:

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

For my talk last week, I ended up rendering images of my code snippets for the slides.

I wrote up my process for generating those snippets, with the ability to regenerate all of them with different formatting options at any time:

https://www.mostlypython.com/generating-code-snippets/?ref=mostly-python-newsletter

danyeaw,
@danyeaw@fosstodon.org avatar

@ehmatthes This is a nice trick! How do you think the output compares to something like https://carbon.now.sh?

jeffglass,
@jeffglass@mastodon.social avatar

@hugovk @ehmatthes I found the same thing worked in Google Slides! Honestly being able to re-size/edit actual text instead of screenshots ended up being very convenient.

https://jeff.glass/post/pycon-talk-2024/

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

Wow @webology, Syncthing made it so easy to jump back onto my desktop this morning and pick up right where I left off on the plane last night.

ehmatthes,
@ehmatthes@fosstodon.org avatar

@webology @phildini I ignore virtual environments, but include .git dirs. It's worked flawlessly so far, and I second how nice it is to hop into the same state on a different machine.

ehmatthes,
@ehmatthes@fosstodon.org avatar

@phildini @webology I think that approach would work quite well.

Just make sure you have a good backup before running your sync, because the syntax is different than I'm used to from git and rsync. It would not be fun to mess up your first sync.

That said, you can set up the main system as read-only for your first sync, and once it's all synced set it back to read and write.

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

One of the things I respect most about how organizers handled the masking policy is that they A) made a clear policy, and B) stuck to that policy.

Many people made their decision about whether to attend - both attendees and non-attendees - based on that policy.

I believe they were also collecting air quality data throughout the conference, in order to inform next year's policy. I have tremendous respect for that approach.

ehmatthes,
@ehmatthes@fosstodon.org avatar

FWIW, I don't really worry about dying from a single Covid infection. I do worry about long-term respiratory health, including athletic performance as I age, and cognitive impacts of repeat infections.

So I really like the opportunity to be around masked crowds, with plenty of opportunity for unmasked time as well.

I came away from PyCon this year thoroughly impressed with the way masking was handled. I respect that PyCon organizers have not just given up on this like most of society has.

carlton,
@carlton@fosstodon.org avatar

@ehmatthes that last seems just so reasonable. Clearly many people report lasting issues from Covid. Clearly that’s in a we don’t really know box. Wearing a mask is what? A bit of a pain, at most, when it’s hot (for most).

Instead though, no, I must object to prove my… what exactly? I don’t get it.

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

About to touch down in SIT, ~3:00 am Pittsburgh time. Thanks for a great conference everyone!

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

For anyone following django-simple-deploy, the biggest change that will happen before 1.0 is implementing a plugin model.

It's on my short list, but I still have some open questions about what that means for the project's structure. If you have a moment, please take a look at the relevant discussion:

https://github.com/ehmatthes/django-simple-deploy/discussions/266

I'd love to know if you have any thoughts, even if it's just a thumbs-up.

josh,
@josh@joshthomas.dev avatar

@ehmatthes @webology beat me to mentioning pluggy and datasette...

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

It's been a productive plane ride. 24 issues closed, all open issues triaged on django-simple-deploy.

ehmatthes,
@ehmatthes@fosstodon.org avatar

@frank Sorry I missed you this week! I kept my head down a bit before my talk; it took a bit more out of me than usual.

I'm very much looking forward to DjangoCon again this fall. We should be in NC by then, so that should be the first conference I get to drive to. :)

frank,
@frank@frankwiles.social avatar

@ehmatthes yes I was surprised we managed to not run into each other, but I also made myself scarce on Saturday to recharge a little.

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

Merging PRs at 40,000 feet like I'm still at the sprints. :)

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