Adding PDO pdo_mysql Extension in Apache + PHP Docker Container

Adding PDO pdo_mysql Extension in Apache + PHP Docker Container

Tiempo de lectura: 2 minutos Reading time: 2 minutes Today I’m going to show you how to install the PDO pdo_mysql extension to use Codeigniter or RedBeans, etc… We have the following docker-compose.yml file: version: “3.1” services: miservicio_mariadb: image: mariadb container_name: mariadb_container env_file: – ./Dockerfile/mysql.env environment: MYSQL_DATABASE: “db_prueba” MYSQL_USER: “user_prueba” MYSQL_PASSWORD: “pass_mysql” MYSQL_ROOT_PASSWORD: “contra@prueba” volumes: – ./config/mariadb:/var/lib/mysql expose: – 3306 … Read more

Flutter – Structure of an API POST Call

Flutter – Structure of an API POST Call

Tiempo de lectura: < 1 minuto Reading time: < 1 minutes The structure for making a call from Flutter to an API and sending parameters to receive data is as follows: First, we declare and initialize a variable with the API route, in this case, I call it uri: final uri = 'https://name/api/route'; Then, I declare the headers, content-type: final headers ... Read more

Flutter- structure call API -GET

Flutter- structure call API -GET

Tiempo de lectura: < 1 minuto Reading Time: < 1 minute The structure to make an API call and retrieve data in Flutter is as follows: First, declare and initialize a variable with the API endpoint, in this case, I’ll call it `uri`: final uri = ‘https://example.com/api’; Next, declare the headers, specifically the `Content-Type`: final headers = { ‘Content-Type’: ‘application/json’, }; … Read more

Error compiling a Flutter application with API connection

Error compiling a Flutter application with API connection

Tiempo de lectura: < 1 minuto html Copy code Reading time: < 1 minute When trying to run an application that makes an API call from Flutter, the following error occurs: Error: Cannot run with sound null safety, because the following dependenciesdon’t support null safety: package:http package:http_parser To fix this error, I followed these steps: First, in the Android Studio menu … Read more

Fixing error Message: mkdir(): Invalid path Session_files_driver in Codeigniter using Docker

Fixing error Message: mkdir(): Invalid path Session_files_driver in Codeigniter using Docker

Tiempo de lectura: < 1 minuto Reading time: < 1 minute In this post, we are going to solve an error related to sessions: Severity: Warning Message: mkdir(): Invalid path Filename: drivers/Session_files_driver.php Line Number: 136 Backtrace: File: /var/www/html/application/controllers/Home.php Line: 5 Function: __construct File: /var/www/html/index.php Line: 315 Function: require_once First, open application/config. Edit config.php and go to the line of the $config['sess_save_path'] ... Read more

Unir dos contenedores definidos dentro de dos docker-compose.yml distintos usando external_links en Docker Compose

Unir dos contenedores definidos dentro de dos docker-compose.yml distintos usando external_links en Docker Compose

Tiempo de lectura: 2 minutos Reading time: < 1 minute Today I’m going to show you how you can connect two containers defined in separate docker-compose.yml files. We have the following: File docker-compose-db.yml: version: "3.1" services: miservicio_mariadb: image: mariadb container_name: mariadb_container env_file: - ./Dockerfile/mysql.env environment: MYSQL_DATABASE: "db" MYSQL_USER: "user" MYSQL_PASSWORD: "pass" MYSQL_ROOT_PASSWORD: "pass_root" volumes: - ./config/mariadb:/var/lib/mysql expose: - 3306 ports: ... Read more

Bash Script Example of a Console Menu

Bash Script Example of a Console Menu

Tiempo de lectura: < 1 minuto EnlighterJSRAW”>#!/bin/bash Function to print “Hello” function hello() { echo “Hello” } Function to print “Goodbye” function goodbye() { echo “Goodbye” } Menu echo “Select an option:” echo “1. Print Hello” echo “2. Print Goodbye” echo “3. Print Hello and Goodbye” read option case $option in 1) hello ;; 2) goodbye ;; 3) hello goodbye ;; … Read more

Generate RSA Key for Commits and PULL in Gitlab Without Authentication

Generate RSA Key for Commits and PULL in Gitlab Without Authentication

Tiempo de lectura: 2 minutos Reading time: 3 minutes Today, I’m going to show you how to create an RSA key to use in your GITLAB projects https://gitlab.com/ First, let’s go to the Ubuntu console (you can use WSL if you’re on Windows) ssh-keygen -t rsa -b 4096 -C “email@example.com” Replace “email@example.com” with the email of your Gitlab account. It … Read more

Connecting Two Separate Docker Compose Setups Using a Network: Nginx Proxy Manager + PHP + MariaDB + PHPMyAdmin

Connecting Two Separate Docker Compose Setups Using a Network: Nginx Proxy Manager + PHP + MariaDB + PHPMyAdmin

Tiempo de lectura: 2 minutos Reading time: 2 minutes To connect two separate Docker Compose setups using the same network, you need to create a custom network in Docker and then add all the services from both Docker Compose setups to that custom network. Here is the updated Docker Compose file for Nginx Proxy Manager with the name of the … Read more

Error when performing a push on a git project: error: insufficient permission…

Error when performing a push on a git project: error: insufficient permission…

Tiempo de lectura: < 1 minuto Reading time: < 1 minute When trying to perform a push on a project that is configured with git, I get the following error: error: insufficient permission for adding an object to repository database .git/objects error: Error building trees To solve this error, I first navigated to the .git directory. Inside this directory, we executed ... Read more