Posts

How to connect adb devices in linux | Run apps on a hardware device android

Image
For Installing ADB just open your terminal and type the following command : - sudo apt install adb First of all for checking how many adb  devices connected to your computer, you just have to type  adb devices command on your terminal  this command will list out all the adb devices connected to your comuter. if your devices not appears then follow these step to connect  Open your phone settings go to your android or MIUI version just tap 2-3 times on it, untill it will alert that you  are developer, then just go to developer option in your phone. After opening the developer option you just have to allow USB  debugging and after turning on when you type adb devices on terminal you will get no-permission.             So for turning on it you just have to revoke USB debugging  and then plug out your USB from your computer. After that just plug in your USB cable to your computer it will popup new window of Allow USB debugging...

Build a weather web application in React JS | React JS beginner Tutorial

Image
  Let's learn more about how all this works by building a weather application using React JS. Installing Node and npm Building a weather web application in React JS, we will have run-time environment called Node. It is mostly used to execute JavaScript code. To download it, go to https://nodejs.org/en/ . You'll also need npm, which is a package manager built on Node. You can use it to install packages for your JavaScript apps. Fortunately it comes with Node, so you don't need to download it manually. Once both of them are finished, open your terminal or command prompt and type node -v. and check npm -v .This checks which version of Node you have. How to Create a React App For creating our react application, just open your project directory and open the terminal and type npx create-react-app <Your app name> in your terminal, or npx create-react-app weather-app for this project. You'll see that the packages are being installed. Once the packages are done, go into ...

Facebook Login In React Native | Expo

Image
React native is a hybrid mobile app development platform that enables you to use your application in android, ios as well as web. so code once and use it anywhere and In this article, we will configure how to make Facebook authentication in your react native application using Facebook Graph API with Expo . " Expo is a framework and a platform for universal React applications. It is a set of tools and services built around React Native and native platforms that help you develop, build, deploy, and quickly iterate on iOS, Android, and web apps from the same JavaScript/TypeScript codebase." Requirements Expo account Facebook developer account Your Expo project setup Step 1: Create an expo project Create an expo project and install the expo-facebook library by following these command below:- expo init Login_Social cd Login_Social/ expo install expo-facebook expo start Step 2 Get Facebook kay hash - To get this you have to sign in to your expo account on you...

Solution for "Developer Error" In React Native Google Authentication

Image
  " Developer Error " In React Native Google Authentication So in this post, I am gonna show you how you will figure out the developer error in react native google authentication like this is a common error while you start learning about google authentication so make sure anything you are doing of installing any type of dependencies must follow the whole documentation properly because this is the major issue while start learning new technology or something other you are doing is your project so let's start about this topic. Dependencies For RN >= 0.60 please use version installed from @react-native-google-signin/google-signin yarn add @react-native-google-signin/google-signin For RN <= 0.59 use version 2 installed from react-native-google-signin yarn add react-native-google-signin Make sure you properly installed this dependency in your project follow this documentation link below https://github.com/react-native-google-signin/google-signin So this error is shown to ...

Firebase Client to Client Background Notifications with REST API in React Native.

Image
  In this article, we will configure how to use Firebase Client to Client Background Notifications with REST API in React Native so let's start. Notifications are a way to let you know that something new has happened so you don't miss anything that might be worth your attention and appears whether you are using an application or not. so using notifications you can make your application more interactive with users and promote engagement for that application. So for using the REST API notification follow the instruction below: Step 1: You must have a good setup and working project whether you are testing on android or IOS. Step 2: Install the following dependencies in your project using yarn or also you can use the npm package manager. Step 3: After installing all the dependencies you have to make some changes to your App.js file as code given below:-     Step 4: After setting up App.js all the dependencies create a file Notification.js ro...

What is data science?🤔

Image
Data Science Hello @User so in this article, I am gonna explaining the topic "What is Data Science🤔", I also curious before about the topic until I didn't get it, so as we study bio in biology, maths in mathematics, just like that "Data science is the field of exploring data, analyzing, and using that data to answer the question or also make some recommendations". Data can also be in a structured manner and as well as an unstructured manner, in a structured manner, we can say data in excel or any other row column-wise so you can easily get insights of all data but in an unstructured manner, it will take some effort to be in structured then after you can analyze or visualize your data. Data Sources Primary data sources include data about collected and prepared directly by the researcher, such as investigations, questionnaires, polls. Secondary data sources include information regained through preexisting sources like research articles, Internet, web searches, et...

Factorial of the "N" natural numbers using recursion and iterative method in CPP language

Image
In this post, I am gonna show you how to find factorial of N numbers using recursion and as well as iterative approach, Here is the video clip of recursion that will visualize that how the recursion work.    Here's the code below in this code I have used input.txt and outout.txt for input-output purpose. and you can also use the code below and visualize using the recursion visualizer tool using this link https://recursion.now.sh/ Recursive approach It will take one integer value to find out the factorial and in this, we will take the first base condition, where the recursion will stop and we will get our final answer, and second which will create the stack size of the given number. Iterative Approach For the iterating approach, we just have to iterate the one variable "i" until we got the last number "n". and parallelly multiplying it with the "fact" variable which we have declared as "1" before.