Recovering a MySQL or MariaDB database without a backup by accessing the mysql folder or directory

Recovering a MySQL or MariaDB database without a backup by accessing the mysql folder or directory

Tiempo de lectura: 2 minutos Today we are going to learn how we can recover a database for which we don’t have a .sql backup copy, but we do have access to its MySQL folder or directory. This can happen when the operating system doesn’t boot up, but we still have access to the hard drive. The first thing we … Read more

Adding GDPR European Ad Consent Message with React Native Google Mobile Ads (ADMOB) using Expo

Adding GDPR European Ad Consent Message with React Native Google Mobile Ads (ADMOB) using Expo

Tiempo de lectura: 2 minutos Today we are going to learn how we can add the mandatory ad consent message to comply with GDPR. The first thing we need to do is to have our message set up: https://devcodelight.com/mensaje-consentimiento-conforme-rgpd-para-admob/ NOTE: I am using version 12.2.0 of react-native-google-mobile-ads at least (https://github.com/invertase/react-native-google-mobile-ads) Once configured, let’s go to android/app/proguard-rules.pro and add: -keep class … Read more

Implementing Google Consent for GDPR with React Native

Implementing Google Consent for GDPR with React Native

Tiempo de lectura: < 1 minuto Today we are going to learn how we can implement the GDPR consent message with React Native. Lets install the following library (https://www.npmjs.com/package/@ulangi/react-native-ad-consent) npm install @ulangi/react-native-ad-consent –save <p.Now let’s add this key in info.plist of iOS: <p.Now we open AndroidManifest.xml in case of Android. And add: And now we create our component called consentAdmob.ts To … Read more

Failed to connect with the project in React Native

Failed to connect with the project in React Native

Tiempo de lectura: 2 minutos I tried to run an application developed in React Native on an Android device, and I encountered the following error. To solve it, I went to the network and Internet settings of my computer, after clicking on ‘Connection status’ as shown in the following image. We are now going to click where we are connected … Read more

Connect a React Native Application to a WebSocket

Connect a React Native Application to a WebSocket

Tiempo de lectura: < 1 minuto Today we will learn how to connect our React Native application to a WebSocket using the react-native-websocket library Setting up React Native Application npm install –save react-native-websocket Make sure to replace ws://localhost:8000/ws/1 with the URL of your FastAPI server. npx react-native run-android or npx react-native run-ios Visit http://localhost:3000 in your browser and you will see … Read more

Connect a React Application to a WebSocket Server

Tiempo de lectura: < 1 minuto Today we're going to learn how to connect our web application developed with React to a WebSocket. Configuration of the React Application npm install –save react-websocket Make sure to replace ws://localhost:8000/ws/1 with the URL of your FastAPI server. npm start Visit http://localhost:3000 in your browser, and you'll see the React application. You can type messages, … Read more

Connect a Flutter Application to a WebSocket

Connect a Flutter Application to a WebSocket

Tiempo de lectura: < 1 minuto Today we are going to learn how we can connect a Flutter APP to a WebSocket quickly and simply. Step 1: Flutter Project Setup flutter create my_app Replace «my_app» with the name you want for your project. We will use the web_socket_channel library: https://pub.dev/packages/web_socket_channel To add the dependency, run: flutter pub add web_socket_channel Run flutter … Read more

Creating a WebSocket with FastAPI

Creating a WebSocket with FastAPI

Tiempo de lectura: < 1 minuto Today we are going to learn how we can quickly and easily generate a websocket with FastAPI. Step 1: Environment Setup, if you already have FastAPI installed, you can skip these steps. Make sure you have Python installed on your system. Then, install FastAPI and Uvicorn using pip: pip install fastapi uvicorn Step 2: Create … Read more

Adding Audio or Sounds in Flutter

Adding Audio or Sounds in Flutter

Tiempo de lectura: 2 minutos To add audio or sounds in Flutter, we’ll use the audioplayers library. First, we install it: flutter pub add audioplayers Then, run flutter pub get in your terminal to install the dependency. If you haven’t already, organize your Flutter project so that you have a folder for assets like images and sounds. For example: – … Read more

How to Get Current Location (Latitude and Longitude) in Flutter

Tiempo de lectura: < 1 minuto To quickly and easily get the current location, follow these steps: First, make sure you have added the geolocator dependency in the pubspec.yaml file: geolocator: ^7.0.3 Then, run flutter pub get to install the dependency. Next, add the necessary permissions in the AndroidManifest.xml file: Then implement the following code, which will request location permissions, get … Read more