Posts

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

bmispelon, to random
@bmispelon@mastodon.social avatar

๐Ÿ’ฟ๐Ÿ‡๐Ÿป๐Ÿ…ฐ๏ธ๐Ÿ†–๐Ÿ”ต

bmispelon, to random
@bmispelon@mastodon.social avatar

I published a new article on my blog: How to do search and replace with https://blog.bmispelon.rocks/articles/2024/2024-06-03-git-search-and-replace.html

e11bits,
@e11bits@fosstodon.org avatar

@holgerschurig What package are you using with rg in #emacs?

holgerschurig,

@e11bits I use consult, it has a consult-ripgrep subcommand.

bmispelon, to random
@bmispelon@mastodon.social avatar

I did some pair programming today and had to ask my colleague to increase their font size in their text editor and terminal

Does that mean I'm officially old? ๐Ÿ‘ด๐Ÿป

pythonbynight,
@pythonbynight@fosstodon.org avatar

@bmispelon Even worse... now I can't find them and don't remember where I put them... ๐Ÿ‘ด

bmispelon,
@bmispelon@mastodon.social avatar

@pythonbynight that's why I always keep mine on the same spot: the top of my nose ๐Ÿ˜‚

bmispelon, to random
@bmispelon@mastodon.social avatar

I'm really enjoying this post by @capjamesg about fun things you can do on your personal website: https://jamesg.blog/2024/02/19/personal-website-ideas/

After many years of thinking about it, I finally created my own site 2 months ago and it's been a lot of fun. I'd definitely recommend it!

adamchainz,
@adamchainz@fosstodon.org avatar

@bmispelon Great list, and Iโ€™m loving your site ๐Ÿ‘

bmispelon,
@bmispelon@mastodon.social avatar

@adamchainz Aww, thanks! ๐Ÿ˜Š

bmispelon, to random
@bmispelon@mastodon.social avatar

@djangonews thanks for the two links this week, I'm honored ๐Ÿ˜

bmispelon, to django
@bmispelon@mastodon.social avatar

New article on my blog: a ORM technique I found for combining JSONObject and Subquery to build model instances: https://blog.bmispelon.rocks/articles/2024/2024-05-09-django-getting-a-full-model-instance-from-a-subquery.html

CodenameTim,
@CodenameTim@fosstodon.org avatar

@bmispelon ๐Ÿคฉ this functionality is something that belongs in the ORM ideally. I think a third party library is a good starting point, but I'd vote for it to go straight to main. People frequently want to fetch a list of discussion threads and the latest post of each thread. Your idea is perfect for that scenario!

bmispelon,
@bmispelon@mastodon.social avatar
bmispelon, to django
@bmispelon@mastodon.social avatar
josh,
@josh@joshthomas.dev avatar

@ghickman @webology @benjaoming @bmispelon On top of the fact that if you really need or miss the factory pattern, there are Recipes within model-bakery that can do that for you as well

ghickman,
@ghickman@mastodon.social avatar

@josh @webology @benjaoming @bmispelon that's a really useful comparison, thank you!

bmispelon, to random
@bmispelon@mastodon.social avatar

The computer is use daily is a ~7 year old laptop with a somewhat small SSD. I'm not very good at pruning docker images, so I've been routinely low on storage space.

Well today I completely ran out. The reason? I was running the build script for a PaaS command-line tool and it consumed over 4Gb of storage space.
4Gb. For a CLI tool.

What a tech world we made ๐Ÿ’ฉ๐Ÿ”ฅ๐Ÿ’ป

hvdklauw,
@hvdklauw@mastodon.social avatar

@bmispelon wow, our backend docker image is 1.5gb and I'm really trying to reduce that.

bmispelon, to django
@bmispelon@mastodon.social avatar
adamchainz,
@adamchainz@fosstodon.org avatar

@bmispelon @carlton haha nice project

adamchainz,
@adamchainz@fosstodon.org avatar

@bmispelon @carlton โ€œDIMMING EXHAUSTION CONTACT
DUTIESโ€ - I can relateโ€ฆ

https://botsin.space/@unicodedatapoetry/112347322361378077

bmispelon, to random
@bmispelon@mastodon.social avatar

New blog post: A programming joke, etymology, and the challenges with naming things.

https://blog.bmispelon.rocks/articles/2024/2024-04-18-etymology-naming-things-off-by-one-error.html

Warning: may contain traces of Python, Django and some Latin โš ๏ธ

bmispelon, to django
@bmispelon@mastodon.social avatar

I just discovered that the #Django runserver command can be optimized to run better in colder climates by using a special flag:

python manage.py runserver --ski

โ›ท๏ธ ๐Ÿ”๏ธ โ„๏ธ

I wonder if there are also secret optimizations for warmer climates ๐Ÿค”

bmispelon,
@bmispelon@mastodon.social avatar

@webology It's actually the showmigrations command that has a flag to honor the many Polish contributors:

python manage.py showmigrations --pl

๐Ÿ™ƒ

bmispelon,
@bmispelon@mastodon.social avatar

@webology Meanwhile, the check command can give you a warning if your project contains too many german words:

python manage.py check --de

/cc @markush

bmispelon, to CSS
@bmispelon@mastodon.social avatar

New article this week: A #CSS technique for making desaturated background images: https://blog.bmispelon.rocks/articles/2024/2024-04-12-css-desaturated-background-image.html

bmispelon, to django
@bmispelon@mastodon.social avatar

Just published a new article on trying to find the best way to initialize Sentry in a #Django project: https://blog.bmispelon.rocks/articles/2024/2024-04-06-sentry-initialization-in-a-django-project.html

treyhunner,
@treyhunner@mastodon.social avatar

@bmispelon I have had this problem before and had not thought of your eventual fix. It's hacky but it looks like a pretty decent workaround!

bmispelon, to python
@bmispelon@mastodon.social avatar

I made a #python poetry bot: @unicodedatapoetry and wrote about it on my blog: https://blog.bmispelon.rocks/articles/2024/2024-03-27-unicode-poetry-bot.html (oh yeah, I have a blog now apparently)

bmispelon, to django
@bmispelon@mastodon.social avatar

Just spent an hour of my morning trying to debug why my queryset annotation wasn't working.
Turns out I'd written "fist_name" instead of "first_name" and the error message had been telling me all along but my eyes glossed over it ๐Ÿ‘Š๐Ÿป

#django

kdmwangi,

@bmispelon this is a classic

markwalker,
@markwalker@fosstodon.org avatar

@bmispelon Classic brain making sense of your errors situation ๐Ÿคฆโ€โ™‚๏ธ

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