Adding Redis to FastAPI with Docker and Optimizing with Cache

Adding Redis to FastAPI with Docker and Optimizing with Cache

Tiempo de lectura: 2 minutosStack: FastAPI · Docker Compose · fastapi-cache2 · Redis 7 No caching, each request goes to the database even if the data has not changed. With Redis, the first call checks the DB and stores the result. The subsequent requests return Redis directly, without touching the DB. Scenario No Redis With Redis GET /books (First … Read more

Optimizing FastAPI for Quick and Effective Performance

Tiempo de lectura: 2 minutosThese 4 optimizations improve performance, concurrency and response speed of a FastAPI API in production with Docker. Gunicorn acts as a process manager above Uvicorn. Launches multiple workers (independent processes) to allow the API to handle several requests in parallel, not sequentially. Main Impact: Improved concurrency under load. With 4 workers, you can handle 4 … Read more

Complete Guide to JSON Data Types

Complete Guide to JSON Data Types

Tiempo de lectura: 2 minutosJSON (JavaScript Object Notation) is a lightweight data exchange format widely used in APIs, storage, and communication between systems. Its simplicity makes it very powerful, but it’s essential to know the types of data it supports to avoid errors. JSON defines six main data types: Represents text and should always be between double quotes. { … Read more

Using local Ollama with Opencode

Using local Ollama with Opencode

Tiempo de lectura: < 1 minutoWe will learn today how we can use opencode with our Ollama directly on local. The API is exposed by default in: http://localhost:11434 Check it out: curl http://localhost:11434/api/tags You don’t have it? You need to install Ollama For Windows: irm https://ollama.com/install.ps1 | iex For Windows: curl -fsSL https://ollama.com/install.ps1 | iex We download a model, in … Read more

Installing and Using Open Code AI on Linux or Ubuntu and Connecting to GitHub Copilot

Installing and Using Open Code AI on Linux or Ubuntu and Connecting to GitHub Copilot

Tiempo de lectura: < 1 minuto<strong/OpenCode is basically an artificial intelligence environment for developers, that helps you to writing, analyzing and executing code automatically. According to the version, it can be just a code assistant, or an autonomous agent able to take decisions and create complete projects by itself. First, you have to install it like this: npm install -g … Read more

Motivational Sentence Agent with Claude Code and Chron

Motivational Sentence Agent with Claude Code and Chron

Tiempo de lectura: 2 minutosVamos a generate a first agent with Claude Code and it will run automatically every hour with a cron and upload the generated content to GitHub. Crea the folder of your agent: mkdir -p ~/motivational-agent/md mkdir -p ~/motivational-agent/data cd ~/motivational-agent The final structure will be: motivational-agent/ │ ├─ md/ │ └─ claude.md # context and … Read more

Installing Claude Code on Windows

Tiempo de lectura: < 1 minutoWe will learn today how to install Claude Code on Windows. Claude Code is a tool developed by Anthropic that acts as an intelligent agent for programmers. It’s not an AI model itself, but rather a CLI/Interface that communicates with advanced language models, such as those from the Claude family, to help you generate, review … Read more

Using Zotero to Link References in Journal of Medical Internet Research or Other Scientific Paper Formats with Microsoft Word or LibreOffice

Using Zotero to Link References in Journal of Medical Internet Research or Other Scientific Paper Formats with Microsoft Word or LibreOffice

Tiempo de lectura: 2 minutosWe will learn today how to use the Zotero tool to link references in Word and as an example in JMIR format. We need to install Zotero. We can also install a browser extension. I recommend creating an account that allows syncing. Now that it is installed, we are going to add the JMIR format. … Read more

Creating a Dynamic Theme System (Light/Dark/Brand) Professionally

Creating a Dynamic Theme System (Light/Dark/Brand) Professionally

Tiempo de lectura: 2 minutosWe will create a dynamic theme system with CSS variables to create a dark, normal or branded theme. We define the structure of variables at :root.No use hardcoded colors in components. Only use semantic variables. :root { /* Color scheme */ –color-bg: #ffffff; –color-surface: #f5f5f5; –color-primary: #1976d2; –color-text: #222222; –color-text-muted: #666666; /* Borders */ –radius-md: … Read more

Advanced CSS in WordPress: A Design System with Variables + Clamp()

Advanced CSS in WordPress: A Design System with Variables + Clamp()

Tiempo de lectura: 2 minutosThis is especially powerful if you want your web to be consistent, maintainable and responsive without relying on 50 media queries. A design system is not just “that looks nice”. It’s having clear and reusable rules for: No repeat values by all the stylesheet, we’re going to centralize everything in CSS variables and use clamp() … Read more