Sign in

iiinova is part of the Atmosphere — an open, public network where you own your identity.

Anže

@anze3db.pecar.me
1.3K followers 161 following 211 posts

Writing Python and surfing waves 🏄‍♂️

PostsRepliesMedia
Anže @anze3db.pecar.me · 13/10/2026
django-tui 26.1 is out, the first release in two years! 🎉 It's a complete redesign! You can now type a command like in your shell and the form fills in as you go. pip install -U django-tui
150 5
Anže @anze3db.pecar.me · 30/09/2026
🐍 Python Lisbon Meetup is tomorrow! 🎤 Talk by @mathsppblog ⚡ Lightning talks 🍻 Socializing 📍 IST, Sala Multiusos, Torre Norte (new room, not the Pavilhão de Matemática!) 🕖 Thu, 1 Oct, 19:00 RSVP links below 👇
100 1
Anže @anze3db.pecar.me · 23/09/2026
Fun fact, I gave a lightning talk about chess and then got caught solving a chess puzzle during one the workshops 😅
010 1
Anže @anze3db.pecar.me · 23/09/2026
PyCon Portugal continues to be my favorite PyCon. This year it was in Aveiro (a better Venice 😉) and we had a blast! I enjoyed giving my talk on lazy imports, but the best part was meeting new people and catching up with friends. Looking forward to it again next year!
120 2
Anže @anze3db.pecar.me · 27/08/2026
We opened a support ticket, and the AI immediately identified the issue as being on their end. No answer to the ticket yet, but we no longer see the 30k charge in Cost Explorer 😮‍💨 If you are using Grok 4.6 through Bedrock Mantle, double-check how much you are spending!
000 0
Anže @anze3db.pecar.me · 27/08/2026
I had a bit of a heart attack this morning when we noticed that my Grok 4.6 benchmark experiment using Amazon Bedrock would cost $28,044.59 instead of ~$28.00 that I was expecting 😱
100 1
Anže @anze3db.pecar.me · 26/08/2026
One of the many things that I learned at DEF CON a few weeks ago is about Python Class Pollution and how a harmless snippet like the one below can cause a huge issue if an attacker controls it!
210 2
Anže @anze3db.pecar.me · 31/07/2026
My dog kept me in Zone 2 for 3kms. Then I had to drop him off and immediately made bad decisions. 💛
000 0
Anže @anze3db.pecar.me · 27/07/2026
Quite a way to start a Monday 😅
GitHub PR stats:

+86,316 of added alines
-29 removed lines
101 1
Anže @anze3db.pecar.me · 21/07/2026
I do think it nailed my voice though!
Voice

First person, always. Posts are “I did X and here’s what happened”, not “one can do X”. Use “we” only for genuine team work or when walking the reader through code (“Let’s look at the view”).
Address the reader directly as “you” in tutorials: “You’ll have to add the pidfile parameter.”
Warm, enthusiastic, and self-deprecating. Admit mistakes and ugly code openly: “The one-liner has a face only a mother could love”, “which may or may not have happened in the past 🙈”.
Hedge honestly, not weaselly. Say “I haven’t tested it myself, so I’m not sure it’s foolproof” or “take the results with a grain of salt” rather than vague qualifiers.
Credit people by name with links: “Shoutout to Rémy on BlueSky”, “Thank you Hynek”. Community attribution is a core habit.
Exclamation marks are welcome when the enthusiasm is real. Emoji as sentence-final emotional beats: 🎉 for wins, 😅 for sheepishness, 🤞 for hope, 💥/☠️ for breakage, 🙈 for embarrassment. A few per post, never mid-sentence decoration.
011 1
Anže @anze3db.pecar.me · 03/07/2026
Our Go wrapper rebuilt an expensive index on every call. Python version builds it at package build time. Yes, we could fix the indexing problem, and then Go would be ~16x faster than Python (0.04ms vs 0.63ms), but we’ll happily trade 0.6ms to remove the whole Go-Python bridge.
000 0
Anže @anze3db.pecar.me · 03/07/2026
Today I migrated some Go code to Python and made it 590x FASTER 😎
100 1
Anže @anze3db.pecar.me · 26/05/2026
The Claude usage page is very confusing. Since Sonnet has a separate bar I thought I'd be able to switch to it after I max out Opus, but nope. Of course this all makes sense if you actually read the tooltip/labels but who does that today anyway? 😅
200 2
Anže @anze3db.pecar.me · 25/05/2026
Oh, I didn’t know GitHub doesn’t have pagination in the Commits tab of a pull request. 😅
020 2
Anže @anze3db.pecar.me · 22/05/2026
Make sure to always reuse your botoclients. Initializing a fresh one on each task has A LOT of overhead!
000 0
Anže @anze3db.pecar.me · 20/05/2026
Running Claude in a loop to push our test coverage. After 24+ hours and 22,000 new lines of tests, coverage climbed from 92% to 95%. No clue if it’ll get merged, but it's a really fun experiment 👀
100 1
Anže @anze3db.pecar.me · 17/05/2026
Fun fact, I was reviewing for 3 hours straight on Saturday while the Raglan surf competition was on. There was A LOT of waiting between sets, so I could focus on proposals for most of it!
000 0
Anže @anze3db.pecar.me · 17/05/2026
Over the last week, I've been reviewing PyCon Portugal talk and workshop proposals, and I just finished reviewing them all! 😎 Some really good ones in the mix that got me really excited about the conference in September. Make sure to grab your ticket! 2026.pycon.pt
110 1
Anže @anze3db.pecar.me · 13/05/2026
Fedidevs had quite an outage today. It went offline just as I went to bed and I didn't see it until I woke up this morning 🫣 Still better uptime than GitHub 😅
000 0
Anže @anze3db.pecar.me · 12/05/2026
Months of training runs with my dog. Went solo today and broke almost every PR I had. He’s the real coach 🐕
130 3
Anže @anze3db.pecar.me · 05/05/2026
I wrote a few words about the Agents Day hachaton that I attended last week on Friday. It's always fun to have an excuse to spend a day tinkering with something new. I even managed to be one of the 5 that got to demo their project on stage! 👉 blog.pecar.me/agents-day-...
021 2
Anže @anze3db.pecar.me · 12/04/2026
Everyone’s favorite web framework is now also in the gelato business 🤤
060 6
Anže @anze3db.pecar.me · 03/04/2026
Another Python Lisbon Meetup in the books! Looking forward to the next one on May 7 👀
021 2
Anže @anze3db.pecar.me · 15/03/2026
Can't wait for lazy imports in Python 3.15! I spent a bunch of time and tokens over the weekend inlining heavy imports so that they don't get loaded during initial start of a Django app. The `manage.py check` command is now 3.8x faster (9.45s down to 2.48s).
040 4
Anže @anze3db.pecar.me · 21/12/2025
New board!
030 3
Anže @anze3db.pecar.me · 12/12/2025
I've finished #adventofcode 2025 and this is the first year that I managed to get all solutions under 100ms ⚡ All but two are under 10ms. Not bad for the slowest popular language out there 🐍, although I did have to use numpy a few times.
020 2
Anže @anze3db.pecar.me · 07/12/2025
It has been 15 years since I joined GitHub 😱
000 0
Anže @anze3db.pecar.me · 07/12/2025
New release of adventofcode PyPI package today improves the display of alternative solutions for each day: 1. Slower solutions are no longer counted in totals 2. Slower solutions are dimmed out Why limit yourself to one #adventofcode solution per day? 😆 Happy solving! 🎄
031 3
Anže @anze3db.pecar.me · 04/12/2025
I compared the first 4 #adventofcode solutions on two different CPUs. * Rows with a red background are on 8x Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz. * Rows with a green background are on Apple M3 Max. So if you want to be better at advent of code just get a better CPU? 😆
040 4
Anže @anze3db.pecar.me · 03/12/2025
I wonder how long I'll be able to keep all the days green like this #adventofcode 🟢 Today I learned that you can use None when slicing a list in Python: >>> [1,2,3][:None] [1, 2, 3] Useful to avoid the edge case where [:0] would give an empty list: >>> [1,2,3][:0] []
031 3
Anže @anze3db.pecar.me · 02/12/2025
Just launched version 25.4 of my adventofcode PyPI package! 🚀 25.4 adds a `adventofcode run` command that removes the ugly boilerplate that you had to have in your puzzle files until now! Before: After:
031 3
Anže @anze3db.pecar.me · 02/12/2025
Day 2 of #adventofcode kinda felt easier than day 1 or was it just me? I got to the solution fairly quickly but it was a bit slow. I then spent the next hour optimizing it and managed to make part 1 200x faster and part 2 500x faster 🎉
010 1
Anže @anze3db.pecar.me · 01/12/2025
Day 1 of #adventofcode felt a bit harder than previous day 1 puzzles. It took me way longer to figure out part 2 than I care to admit, but I'm blaming this on my sleepy brain 😅 My code took 1.1ms for both parts without any perf optimizations 🎉 Eleven more to go!
030 3
Anže @anze3db.pecar.me · 30/11/2025
6 hours until the first advent of code puzzle unlocks. Who's going to participate this year? 🎄
020 2
Anže @anze3db.pecar.me · 30/11/2025
I've also added a benchmarking utility so that I can have a fancy README with all the run times 😎
010 1
Anže @anze3db.pecar.me · 29/11/2025
I've just published a new version of my adventofcode PyPI package, just in time for Advent of Code that starts in 36 hours! 🎉 I've added a command line tool that helps you scaffold all the files for puzzle days because I got annoyed by copy pasting the same file each time! pypi.org/project/adv...
100 1
Anže @anze3db.pecar.me · 20/10/2025
us-east-1 is down, happy Monday!
230 3
Anže @anze3db.pecar.me · 11/10/2025
I've improved the performance of the starter packs list query from about 200ms to 2ms. 🎉 The trick was to stop dynamically computing the number of accounts in a starter pack and instead precompute it in a column. A bit more work on each update, but worth it!
141 4
Anže @anze3db.pecar.me · 02/08/2025
LLMs really are an amazing peace of technology. How were we ever able to live without them?
Thank you very much! :) was transformed into "Gratitude for assistance was expressed"
020 2
Anže @anze3db.pecar.me · 01/08/2025
Early birthday present has arrived! 🎂
160 6
Anže @anze3db.pecar.me · 10/07/2025
No, it's not migrations :( I'm using --reuse-db/--keepdb everywhere and I have confirmed that all the test databases didn't get deleted between runs:
100 1
Anže @anze3db.pecar.me · 02/07/2025
I know that making network requests is bad but a similar error also happens with using Django's test mailer backend (locmem.py) and in any case the python interpreter shouldn't just crash in the middle of running tests like this.
000 0
Anže @anze3db.pecar.me · 02/07/2025
Has anybody seen a Fatal Python error: Aborted error when running pytest? It seems to come from socket.py but we haven't been able to reproduce outside of pytest. It's sporadic and very hard to reproduce consistently. Any ideas on how to debug this?
301 3
Anže @anze3db.pecar.me · 12/06/2025
The scary thing about vibe code is that it appears convincing enough to make you approve changes even when they break things. 😱
030 3
Anže @anze3db.pecar.me · 10/06/2025
The smallest sardines that I’ve ever had at Santos Populares but they were still delicious 🤤🐟🎉
010 1
Anže @anze3db.pecar.me · 08/06/2025
And today Portugal won the League of Nations! Not a bad weekend for 🇵🇹!!!
010 1
Anže @anze3db.pecar.me · 08/06/2025
The Portuguese ladies dominated the first challenger series event! 🏄‍♀️🏄‍♀️🏄‍♀️
000 0
Anže @anze3db.pecar.me · 28/05/2025
I've made it to #PyConIT25 just in time for Django's 20th birthday cake! 🎂
030 3
Anže @anze3db.pecar.me · 09/05/2025
Correct it’s been over 3k for the past 3 days. The waves have been really good so I would surf even more if my arms would let me 😅
110 1
Anže @anze3db.pecar.me · 08/05/2025
If I keep this up, I’ll need to take a second vacation just to recover from the current vacation 😅
140 4