Reset Root Password in MySQL ^8.*

Views: 441 Add below code to the end of /etc/mysql/my.cnf file.[mysqld]skip-grant-tables Restart service:sudo systemctl restart mysql Login into mysql:sudo mysql -uroot Remove root password:UPDATE mysql.user SET authentication_string=null WHERE User=’root’; FLUSH PRIVILEGES; exit; Comment below code at the end of /etc/mysql/my.cnf file by add # in front of each line.# [mysqld]# skip-grant-tables Restart service:sudo systemctl restart

Read More

flask

INSTALL AND RUN FLASK(PYTHON) ON UBUNTU 19.04 on VpsServer

Views: 456 Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja and has become one of the most popular Python web application frameworks. Step #0:Signup (I appreciate if you use my referral link)

Read More

Simple System With GraphGL, Reactjs, PHP

Views: 569 simple system with GraphQL, Reactjs, PHP Tools used: PHP v7.3^ , Symfony 4.4^ , React 16^ , VPS, SQL , Docker , overblog/GraphQLBundle Preview: as gif – video GraphiQL: http://146.71.79.164:85/graphiql GraphQL: http://146.71.79.164:85/graphql/?query=query{buyers{id,name}} UI: http://146.71.79.164:85 note: this is my first time to use GraphQL & Reactjs GraphiQL: Example Query: query { buyer(id: 20){ id, name, authToken }, products{ id, name

Read More

Video Generator

Views: 1,113 Video Generator is a python tool that allows converting a collection of photos from local and online sources to video. Preview Reflection While I was working on some computer vision task related to extracting some information from public surveillance cameras streams, in some stage I wanted to record some videos from a collection

Read More

Firebase Logger

Views: 587 Firebase Logger is a simple firebase PHP logger package to monitor and save the users activities. Installation Use composer to install firebase-logger:composer require khaledalam/firebase-logger Preview Usage example.php <?php // PHP 7.1^ //error_reporting(0); include_once ‘./FirebaseLogger.php’; $serviceFile = __DIR__ . ‘/serviceAccountKey.json’; $databaseUri = ‘https://{EDIT_THIS}.firebaseio.com’; $firebaseLogger = new FirebaseLogger([ ‘service_account_key_json’ => $serviceFile, ‘database_uri’ => $databaseUri, ‘database_realtime_name’ => ‘Logger’, ]);

Read More

API Multiprocessing

Views: 1,053 Motivation In this article, I am going to show you how we can improve the computing power of simple API script from total overall (6 minutes and 17 seconds) to (1 minute 14 seconds) The Idea I will share with you one of my simple favourite technique that I prefer to use especially

Read More