Fully-Faltoo blog by Pratyush

Bio Twitter Screener

31st March 2021

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.


26th March 2021

Building a full-text search engine in 150 lines of Python code · Bart de Goede

This is pretty interesting post. It uses lots of small algorithms and provide simple code-snippets for them:

  • tokenzing
  • stemming
  • boolean search
  • term frequency
  • inverse document frequency

All in just 150 lines of code.


19th March 2021

In Praise of the Unambiguous Click Menu | CSS-Tricks

The article suggests that the modern trend in menus is to use click menus instead of hover menus.

  • Click menus behave same on mobiles and desktop.
  • They don't create flicker when the mouse moves a few pixels
  • Click menus are based on "intent"
  • Must use dropdown cursor when using click menus.

Interesting.


17th March 2021

Tax Calculator for Resident Individuals

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.


17th March 2021

Uberspace - Shared web hosting

I love Uberspace for hosting websites on a shared server.

While I use VPS (AWS, Linode or DigitalOcean) for larger projects, I still love shared hosting because they are batteries included. They are pre-configured with firewalls, databases, nginx, apache, memcache and SSL.

Shared servers also have much more (shared) CPU resources than a fixed CPU capacity in a VPS. My earlier websites on Webfaction.com (1GB ram - shared cpu - $5/month) performed much better than on DigitalOcean (2GB ram - 2CPU - $10/month). Primary reason was that though the CPU on Webfaction was shared with neighbours, it was of much …

10th March 2021

Lazy functions in Django [Functional programming]

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): …

25th Feb. 2021

Showing sender image (logo) in transactional emails - BIMI Implementation

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!


« first previous
Page 9 of 64.
next last »