Android Class for Google Login

Google Sample Import Classes import com.google.android.gms.auth.api.signin.GoogleSignIn; import com.google.android.gms.auth.api.signin.GoogleSignInAccount; import com.google.android.gms.auth.api.signin.GoogleSignInClient; import com.google.android.gms.auth.api.signin.GoogleSignInOptions; import com.google.android.gms.common.SignInButton; import com.google.android.gms.common.api.ApiException; import com.google.android.gms.tasks.OnCompleteListener; import com.google.android.gms.tasks.Task; Implement View.OnClickListener /** * Activity to demonstrate basic retrieval of the Google user's ID, email address, and basic * profile. */ public class SignInActivity extends AppCompatActivity implements View.OnClickListener { Set up Java classes for login…

Google Analytics 4 (GA4)

Google Analytics Google Analytics is a web analytics service offered by Google that tracks and reports website traffic and also the mobile app traffic & events, currently as a platform inside the Google Marketing Platform brand. Google launched the service in November 2005 after acquiring Urchin Google Analytics provides an SDK that allows gathering usage…

Setting up a Cookie Consent Window

If you use cookies in your website, Cookie Conset Window is must. Read for more details Cookie Consent window with Vanilla JS //localStorage.removeItem("cookiesAccepted"); // this line is for testing only. always comment after testing // Check if the user has already accepted cookies if (!localStorage.getItem('cookiesAccepted')) { //alert("cookiesAccepted is " + localStorage.getItem('cookiesAccepted')); // Display the cookie…

Creating video from all images in a folder

Simple concat Code concat.bat @echo OFF setlocal ENABLEDELAYEDEXPANSION rem 1366×768 set BG_W=1366 set BG_H=768 set SLIDE_DURATION=4 set IMG_TYPE=JPG set /a TOTAL_IMAGE_FILES=0 set PICS_FOLDER=PICS set VIDS_FOLDER=VIDS for %%f in (./%PICS_FOLDER%/*.%IMG_TYPE%) do ( set /a TOTAL_IMAGE_FILES=TOTAL_IMAGE_FILES+1 rem https://stackoverflow.com/a/2919699 rem echo TOTAL_IMAGE_FILES is !TOTAL_IMAGE_FILES! rem echo file name is %%f rem https://stackoverflow.com/a/45811503 set filename[!TOTAL_IMAGE_FILES!]=%%f set TEMP_FILENUM=!TOTAL_IMAGE_FILES! echo filename[!TOTAL_IMAGE_FILES!]…

Artificial Intelligence Introduction

Basically it refers to software algorithms that are able to learn – becoming better and better at carrying out one specific task as they are exposed to more data. This article is based on [this video] Intelligence AI is defined as the simulation of human intelligence processes by machines espescially computers. Many times intelligence is…

Setting Up FB Login with PHP

Main Ref Another ref Ref for Login with DB Facebook login manual flow Facebook tutorial for login with JS Full JS reference Create FB App Created App Under Settings >> Basic set App domains get App Id and App secret Download facebook graph sdk Graph SDK Git composer require facebook/graph-sdk copy index.php and profile.php replace…

FFMPEG : Concatenation

change format if required Often Adobe premiere exports in mpeg set sourceFile=yogaIntro set sourceFileFormat=mpeg set targetFile=%sourceFile%WithLogo ffmpeg -i %sourceFile%.%sourceFileFormat% %targetFile%.mp4 -y Perform concat ffmpeg -y -i "yogaIntroWithLogo.mp4" -i "yogaOutroSilent.mp4" -filter_complex "[0:v] [0:a] [1:v] [1:a]concat=n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" -y concat.mp4