Eduardo Zepeda's latests posts
What Types to use for React components with children
- react
- typescript
- javascript
If you're struggling about what types to use for React components that have children in Typescript, so you can inherit them correctly and avoid errors, then this is the post you need to read, I explain you three different approaches you can save and use as a part of your ty...
Read more
How to measure requests per second with locust in python?
- python
There are quite simple to use tools that allow us to audit the number of requests per second (rps) that a website supports, locust is one of them, it is made with Python and with a minimal configuration allows us to process information and obtain graphs instantly, and in real tim...
Read more
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 with libraries that allow you to create neural networks from scracth, fine-tune a LLM or use Optical Character Recognition (OCR). For the latter you just need to install tesseract and python bindings, known as pytesseract and yo...
Read more
Python tortoise ORM integration with FastAPI
- fastapi
- databases
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
How to use Django Framework asynchronously using Celery
- 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