Acorn: Remove a Background
Acorn is a basic image editing software of MacOS. It is not a Photoshop - but who needs a photoshop all time.
What I loved about it was their brilliant documentation with lots of video tutorials.
Acorn is a basic image editing software of MacOS. It is not a Photoshop - but who needs a photoshop all time.
What I loved about it was their brilliant documentation with lots of video tutorials.
This is pretty interesting post. It uses lots of small algorithms and provide simple code-snippets for them:
All in just 150 lines of code.
The article suggests that the modern trend in menus is to use click menus instead of hover menus.
Interesting.
While most tax calculators ask lots of questions, this one provides a very simple quick calculation of tax based on slab rates.
Comes handy in these days of March.
I love to write functions instead of classes. However, Django does not allow us to call functions inside templates.
Sometimes we want to postpone the function calls in templates because they might be expensive. Thus we might want to call them inside the template’s cache fragment or inside an if statement.
My way around them is to use a lazy_cache function to postpone and cache a function's result.
Thus the whole usage is something like this:
import datetime as dt from utilities.functional import lazy_cached def expensive_computation(result_date, page_number=1): # do some expensive stuff return results def latest_results(request): …We usually see a sender's photo in Gmail. Those sender avatars are shown not only for our friends and known contacts, but also for transactional emails.
I often wondered how they are shown. They look good and provide a better clue about the sender.
Turns out there is a "BIMI" (Brand Indicators for Message Identification) spec for that. It requires DMARC compliance and then a DNS record pointing to the SVG image.
Cool!