Eduardo Zepeda's latests posts
Facebook's plugin chat how to decrease its impact?
- javascript
The facebook chat plugin allows you to add a page button that connects to the chat of a facebook fanpage. But, as you know, facebook is monopolistic and the default installation loads the plugin first, making your website slower and affecting the web vitals indicators of the page...
Read more
OCR with tesseract, python and pytesseract
- python
- Artificial Intelligence
Python is super versatile, it has a giant community that has libraries that allow to achieve great things with few lines of code, Optical Character Recognition (OCR) is one of them, for that you just need to install tesseract and the python bindings, called pytesseract and you&rs...
Read more
Python tortoise ORM integration with FastAPI
- fastapi
One of the things I like most about Django is its ORM; one of the reasons why this framework is so popular . On the other hand FastAPI does not have an ORM and focuses solely on serving endpoints, showing agnostic on the basis of data. There are enough options ORM to python: djan...
Read more
The django admin panel and its customization
- django
One of the best features of django is that it has the django admin panel, a ready-to-use administration panel, with basic functions such as create, read, edit and delete models, users, groups and permissions. All ready to use just by setting up your application. But sometimes our...
Read more
Caching in Django REST Framework using memcached
- django
To use the cache in django, just follow three simple steps:
Install a caching system, be it redis, memcached, etc. Set the CACHES variable to the settings.py file of the project. Add the middleware necessary for django to return the cache before processing the view. Use the l...
Read more
Periodic Tasks with Celery and Django
- django
In addition to creating asynchronous tasks, celery also allows you to create periodic tasks, which are executed from time to time. This can be quite useful to give maintenance to the database from time to time, to send marketing or shopping cart recovery emails, perhaps even to e...
Read more
Celery and django to run asynchronous tasks
- django
Celery, in combination with Django serve to solve a problem: the lack of asynchrony in our application. Sending an email, processing some file or responding to a third party service will keep our execution waiting for the task to finish and, as a consequence, our user waiting.&#x...
Read more
Login using Django Rest Framework DRF
- django
Almost all complex Django applications need views for Login, Logout, reboot and password change, as well as user registration. However, both Django and Django REST Framework (DRF) are completely agnostic about their implementation, and delegate the responsibility for these functi...
Read more
React memo, useMemo and useCallback to avoid React renderings
- react
We can use react memo and useCallback to prevent a component from being rendered, uselessly, multiple times by memoization. If you don’t know what memoization is or don’t understand what the react components, useCallback and memo are for, I have a post where I explain...
Read more
React useCallback, useMemo and memo, differences
- react
The useCallback, useMemo and memo functions are used to optimize React applications using memoization, avoiding useless renderings, each with their differences, similarities and use cases. These three functions should not be used indiscriminately, but only in those situations whe...
Read more