I’ve been using Pipenv for the last few months and my biggest issue is that --keep-outdated has been broken in the latest release (2018.11.26) for a while. I’ve needed to install Pipenv from the master branch to make it functional. However, the last time I used --keep-outdated from the master branch, it wouldn’t automatically update the hash of the dependency being updated.
Updating specific requirements is something I need to do pretty often, and it’s not fun to explain all the Pipenv quirks to the team.
Pip-tools looks like it does everything I need and has fewer quirks, so I ended up making the switch.
Pipenv uses pip-tools under the hood, so the migration to pip-tools was very smooth. The migration process was:
Copy the dev-packages and packages sections of the Pipfile to their own requirements.in files.
Run pip-compile
Copy over the specific versions and hashes from the Pipfile.lock to the generated requirements.txt.
I did have a small issue where updating a specific package with pip-tools removed a bunch of dependencies from the requirements.txt unexpectedly, but running pip-compile with --rebuild fixed it.
I added “autoplay muted” to my <video> tag to make a video autoplay in a carousel. It worked on desktop Chrome or Firefox, but didn’t work on iOS Chrome or Safari.
Back to Route53 - Create an A record for both www.heckingoodboys.com and heckingoodboys.com using the alias to their respective buckets. (this will be the first option in autocomplete)
Why not just use a CNAME from www.heckingoodboys.com to heckingoodboys.com? AWS says they don’t charge for aliases, but they do charge for CNAMEs. So, I used an alias to a bucket instead.
I got a pull request merged into django-celery-email that cuts peak memory usage by about 74% when sending large batches of emails with attachments.
CeleryEmailBackend.send_messages used to serialize every message up front, then split the serialized list into chunks, then hand each chunk to a Celery task:
email_to_dict copies the whole message into a dict, attachments included. Doing that for the entire batch before chunking means every serialized email sits in memory at once. With attachments, that gets expensive fast.
The fix is to chunk the messages first, then serialize one chunk at a time:
Same tasks get queued, but only one chunk’s worth of serialized emails exists at a time, so the earlier chunks can be garbage collected once their task is queued.
Benchmarks on 80 emails with a 5 MB attachment each: