Sounds in React Native with Expo

Sounds in React Native with Expo

Tiempo de lectura: < 1 minutoThe simplest way with Expo is to use expo-av. I’ll explain it step by step: bash npm install expo-av 2. File structure Place your MP3 file in the assets/sounds folder: assets/sounds/musica.mp3 3. Basic usage jsx import { useEffect, useRef } from ‘react’; import { Audio } from ‘expo-av’; export default function MiComponente() { const soundRef … Read more

Cloud-based Ollama Models that can be used with TIER free

Tiempo de lectura: < 1 minutoHoy vamos a indicar cuales son los modelos Ollama Cloud que no dan el error de: {«error»:»this model requires a subscription, upgrade for access: https://ollama.com/upgrade (ref: 374c814e-dc9c-4fc1-a898-0bbc57cb0d0a)»} To determine this and by running tests with this script we can know which models are available to use with cloud and free tier cat

How to Block Bots using User-Agents in Python and FastAPI

How to Block Bots using User-Agents in Python and FastAPI

Tiempo de lectura: < 1 minutoWe will learn today how to implement a bot blocker using user-agents. 1. Install the library pip install user-agents 2. Creating the decorator file # dependencies/bot_detection.py import functools from fastapi import Request, HTTPException from user_agents import parse def block_bots(func): @functools.wraps(func) async def wrapper(request: Request, *args, **kwargs): ua_string = request.headers.get(“user-agent”, “”) ua = parse(ua_string) if ua.is_bot: … Read more

Installing OpenClaw using Docker Compose

Installing OpenClaw using Docker Compose

Tiempo de lectura: < 1 minutoHoy vamos a aprender a instalar OpenClaw en un sistema Docker mediante Docker Compose y dejarlo de forma aislada. Primero instalamos Docker. Once installed, we need to update Docker Compose: # Add official Docker repository curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg echo “deb [arch=$(dpkg –print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable” | sudo … Read more

Creating an RSA Key for Jenkins and GitLab

Creating an RSA Key for Jenkins and GitLab

Tiempo de lectura: 2 minutosYou explain how to add an RSA key in Jenkins to authenticate with GitLab: In the Jenkins server (or your local machine), execute: bash ssh-keygen -t rsa -b 4096 -C “[email protected]” Save the keys, for example in ~/.ssh/id_rsa_jenkins. In a Pipeline (Jenkinsfile): groovy pipeline { agent any stages { stage(‘Checkout’) { steps { git credentialsId: … Read more

Getting a free Google Gemini AI API key

Getting a free Google Gemini AI API key

Tiempo de lectura: < 1 minutoWe will learn today how we can get a free Google Gemini API for AI, but with limitations. 1. Go to this URL: aistudio.google.com 2. Log in with your Google account 3. Click on “Get API Key” → Create API key Now it will ask to create a new project, let’s do that. We can … Read more