How to Create a Mobile App with Local AI Using Mistral and Transformers.js with React Native

How to Create a Mobile App with Local AI Using Mistral and Transformers.js with React Native

Tiempo de lectura: 2 minutos Do you imagine an app that works with artificial intelligence without internet connection? Today I’ll show you how to use Transformers.js and a model like Mistral 7B quantized in the browser or on your mobile, without sending data to external servers. You’ll achieve total privacy by using your own device, it’s free to use, works … Read more

How to Create Your Own Autonomous AI Agent with AutoGen Studio

How to Create Your Own Autonomous AI Agent with AutoGen Studio

Tiempo de lectura: 2 minutos Learn how to create an autonomous intelligent agent that can plan, reason and execute tasks on its own without needing expertise in AI. Just follow these steps. Autonomous agents are revolutionizing personal and professional productivity thanks to platforms like AutoGen Studio, which allows you to build assistants that: Requirements COUNTS ON AutoGen Studio PYTHON 3.10+ … Read more

Show number of tests executed and passed in SonarQube with Jest, Vitest and Pytest

Show number of tests executed and passed in SonarQube with Jest, Vitest and Pytest

Tiempo de lectura: 2 minutos Today we are going to learn how to pass and display the number of tests that have been covered in SonarQube. For React with Vite: First, we install: npm install -D vitest-sonar-reporter Now, we go to the vitest.config.ts We add: html reporters: [‘default’, ‘vitest-sonar-reporter’], // JUnit reporter to generate test reports outputFile: ‘test-results/test-results.xml’, // XML … Read more

Function for changing the brightness on a OLED screen from an Arduino 96 in (inches) display (SSD1306)

Function for changing the brightness on a OLED screen from an Arduino 96 in (inches) display (SSD1306)

Tiempo de lectura: < 1 minuto We bring you a function that allows to reduce the brightness of the OLED SSD1306 screen connected to our Arduino. We add this code using the Adafruit library: adafruit/Adafruit SSD1306@^2.5.7 adafruit/Adafruit GFX Library@^1.11.9 We create this function: void OledDisplay::brightness(uint8_t level) {     display.ssd1306_command(SSD1306_SETCONTRAST);     display.ssd1306_command(level); } We can add values in the range: 0-255 For level = 255, all … Read more

Sending data from a WordPress post to a webhook upon post publication

Sending data from a WordPress post to a webhook upon post publication

Tiempo de lectura: 2 minutos Today we’re going to see how we can send data from WordPress to a webhook when a publication is made. The first thing we’ll do is install the plugin called Code Snippet, which allows us to add code. We are adding new code: add_action(‘transition_post_status’, ‘enviar_a_a_webhook’, 10, 3); function enviar_a_webhook($new_status, $old_status, $post) { // Verificar que … Read more

How to Change the Version of Kotlin using Expo React Native

How to Change the Version of Kotlin using Expo React Native

Tiempo de lectura: < 1 minuto We will today learn how to change the Kotlin version used in Expo. First, we need to install expo-build-properties, which will allow us to edit native project properties without modifying anything in the android folder. html npm run expo install expo-build-properties And then we modified inside our app.json and could add the kotlinVersion:

Fixing error: Text content does not match server-rendered HTML in Next.js

Fixing error: Text content does not match server-rendered HTML in Next.js

Tiempo de lectura: < 1 minuto Today we are going to fix the common error that may occur when implementing i18n in our React environment with Next.js. This is the error: Unhandled Runtime Error Error: Text content does not match server-rendered HTML. Warning: Text content did not match. Server: “” Client: “” See more info here: https://nextjs.org/docs/messages/react-hydration-error Returns only the HTML … Read more

Button component using Flutter in the Dart programming language.

Button component using Flutter in the Dart programming language.

Tiempo de lectura: 2 minutos In this post, we will create a customizable button component in Flutter using the ElevatedButton widget. This component will allow us to create buttons with text, icon, and customize various aspects like color, text size, and button width. import ‘package:flutter/material.dart’; import ‘../util/constantes/Colores.dart’; class Boton extends StatelessWidget { final Color? color; // Ahora es opcional y … Read more

Middleware file in Next.js

Middleware file in Next.js

Tiempo de lectura: < 1 minuto Today I’m going to explain and provide an example of middleware in Next.js A middleware in Next.js is a function that runs before a request reaches your Next.js route or API. You can use middleware to handle and manipulate incoming requests. Cookie Management: You can read, modify, or set cookies in incoming requests. Redirects: You … Read more