May 28, 2020 in Learning, Only Happened In India, Tips and Tricks
ITR form and Description
| ITR 1 |
| ITR 2 |
| ITR 3 |
| ITR 4 |
| ITR 5 |
| ITR 6 |
| ITR 7 |
May 28, 2020 in Learning, Only Happened In India, Tips and Tricks
| ITR 1 |
| ITR 2 |
| ITR 3 |
| ITR 4 |
| ITR 5 |
| ITR 6 |
| ITR 7 |
May 27, 2020 in News, Tips and Tricks
Aarogya Setu app has finally become open source for developers as the government looks to quell the privacy and surveillance concerns. The Ministry of Electronics and Information Technology on Monday issued a notice, stating the code for the Arogya Setu Android app has been uploaded on GitHub and will be available for tinkering by developers starting Tuesday, May 26. Meanwhile, the iOS counterpart of the government’s covid-19 tracking app will be open-sourced within two weeks. The National Informatics Centre (a part of MeitY) has also announced the bug bounty programme for developers who can find vulnerabilities in the app.
The open-source code of the Aarogya Setu app comes after nearly two months since the release of the app, during which over 114 million users have registered themselves for the government’s programme. Although the app has been deemed resourceful by its users, privacy advocates have so far decried the lack of transparency in the app’s code, especially after the French hacker discovered one too many security loopholes in the app. The government then responded to the hacker’s concerns but the apprehension on using Aarogya Setu app among the users grew by the day, forcing the government to come forward and release the code-set of the app on GitHub.
Post the announcement, French security researcher who goes by Elliot Alderson alias on Twitter said, “This is a very positive news and I’m very happy that the Indian government took this direction. Now, we would like to see what is happening on the server side.”
May 21, 2020 in Php, Tips and Tricks
DNS Lookup tool finds all DNS records of a given domain name. The records include but not limited to A, AAAA, CNAME, MX, NS, PTR, SRV, SOA, TXT, CAA.
https://dnschecker.org/all-dns-records-of-domain.php

| A | |||
|---|---|---|---|
| Type | Domain Name | Address | TTL |
| A | soatechnology.net | 35.173.197.109 | 10799 |
| AAAA |
|---|
| Sorry no record found! |
| CNAME |
|---|
| Sorry no record found! |
| MX | ||||
|---|---|---|---|---|
| Type | Pref | Domain Name | Hostname | TTL |
| MX | 10 | soatechnology.net | aspmx.l.google.com | 299 |
| MX | 50 | soatechnology.net | aspmx3.googlemail.com | 299 |
| MX | 40 | soatechnology.net | aspmx2.googlemail.com | 299 |
| MX | 30 | soatechnology.net | alt2.aspmx.l.google.com | 299 |
| MX | 20 | soatechnology.net | alt1.aspmx.l.google.com | 299 |
| NS | |||
|---|---|---|---|
| Type | Domain Name | NS | TTL |
| NS | soatechnology.net | ns57.domaincontrol.com | 3599 |
| NS | soatechnology.net | ns58.domaincontrol.com | 3599 |
| PTR |
|---|
| Sorry no record found! |
| SRV |
|---|
| Sorry no record found! |
| SOA | ||||
|---|---|---|---|---|
| Type | Domain Name | Primary NS | Responsible Email | TTL |
| SOA | soatechnology.net | ns57.domaincontrol.com | dns.jomax.net | 599 |
| TXT | |||
|---|---|---|---|
| Type | Domain Name | Record | TTL |
| TXT | missindia-world.com | v=spf1 +a +mx +ip4:67.227.252.228 ~all | 299 |
| CAA |
|---|
| Sorry no record found! |
May 20, 2020 in Learning, Tips and Tricks
set up your development environment on Windows using React Native framework and Android Studio to build Android Apps
the following tools to set up my development environment:
Download and install the latest version of Visual Studio Code for Windows from https://code.visualstudio.com/

Important: You will need the Intel x86 Emulator Accelerator (HAXM installer) to run the emulator on Windows. For more information, please refer to the following link: https://github.com/intel/haxm/wiki/Installation-Instructions-on-Windows
Note: You need to enable Intel Virtualization Technology by changing a BIOS setting. Please look at the following link to see how that is done:

Note: Make sure you add NPM to the PATH environment variable.
npm install -g react-native-cli
Android Studio comes with an embedded JDK which is recommended. Make sure you check the following option under File → Other Settings → Default Project Structure in Android Studio:

Finally, lets create our first React Native application by running the following command in your workspace location
react-native init SampleReactNativeProject
This creates the following project directory structure when you open the project in Visual Studio Code.


To simplify the build and install process, in package.json, add the following script under “scripts”:
"android-windows": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res && react-native run-android"
Now run the following command to install the app and see it running on the emulator. This runs the script above which we set up in package.json.
npm run android-windows
This starts up a Metro Bundler instance in a new command prompt instance and installs the app on the emulator as shown below:
May 20, 2020 in MySql, Php, Tips and Tricks
<html>
<head>
<title>Hindi</title></head>
<body>
<?php
include("connection.php"); //simple connection setting
$result = mysql_query("SET NAMES utf8"); //the main trick
$cmd = "select * from hindi";
$result = mysql_query($cmd);
while ($myrow = mysql_fetch_row($result))
{
echo ($myrow[0]);
}
?>
</body>
</html>
The dump for my database storing hindi utf strings is
CREATE TABLE `hindi` (
`data` varchar(1000) character set utf8 collate utf8_bin default NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `hindi` VALUES ('सूर्योदय');
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
header( 'Content-Type: text/html; charset=utf-8' );
CREATE DATABASE hindi_test
CHARACTER SET utf8
COLLATE utf8_unicode_ci;
USE hindi_test;
CREATE TABLE `hindi` (`data` varchar(200) COLLATE utf8_unicode_ci NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO `hindi` (`data`) VALUES('कंप्यूटर');
May 11, 2020 in Learning, MySql, Php, Tips and Tricks
<style>
input{
display: block;
}
</style>
<form method="post" action="second.php" enctype="multipart/form-data">
<input type="text" name="user_name">
<input type="password" name="user_password">
Male <input type="radio" name="gender" value="male" checked>
Female <input type="radio" name="gender" value="female">
<input type="checkbox" name="car" value="Maruti"> Car
<input type="checkbox" name="house" value="Narela"> House
<input type="checkbox" name="bike" value="Bajaj"> Bike
<input type="file" name="image[]" multiple>
<input type="submit" value="Click" name="click">
</form>
this example show only two fields, you can add more field in php code to insert.
<?php
$host="localhost";
$user="root";
$password="";
$database="pankaj";
$link= mysqli_connect($host, $user, $password, $database);
if(!$link)
{
echo "Not Connected".mysqli_error($link);
die();
}
$user_name=$_POST['user_name'];
$user_Password=$_POST['user_password'];
$cmd="insert into user set user_name='$user_name', user_password='$user_Password'";
if(mysqli_query($link, $cmd))
{
echo "Success";
}
else
{
echo "User Already Exists";//mysqli_error($link);
}
?>
May 11, 2020 in Learning, Php, Tips and Tricks
<style>
input{
display: block;
}
</style>
<form method="post" action="second.php" enctype="multipart/form-data">
<input type="text" name="user_name">
<input type="password" name="user_password">
Male <input type="radio" name="gender" value="male" checked>
Female <input type="radio" name="gender" value="female">
<input type="checkbox" name="car" value="Maruti"> Car
<input type="checkbox" name="house" value="Narela"> House
<input type="checkbox" name="bike" value="Bajaj"> Bike
<input type="file" name="image[]" multiple>
<input type="submit" value="Click" name="click">
</form>
<?php
$i=0;
foreach($_FILES['image']['name'] as $file => $name)
{
echo $_FILES['image']["tmp_name"][$file]."<br>";
echo $_FILES['image']["name"][$file]."<br>";
echo $_FILES['image']["type"][$file]."<br>";
echo $_FILES['image']["size"][$file]."<br>";
$ext=pathinfo(basename($_FILES["image"]["name"][$file]), PATHINFO_EXTENSION);
$target_file="./profile".$i.".".$ext;
$i++;
move_uploaded_file($_FILES["image"]["tmp_name"][$file], $target_file);
}
echo "total file ".count($_FILES['image']['name']);
?>
Below code show example for check file size, file extension, file type for uploading valid file
<?php
print_r($_POST);
echo "<br>";
print_r($_FILES);
echo "<br>File Name : ".$_FILES['image']['name']."<br>";
echo "File Type : ".$_FILES['image']['type']."<br>";
echo "File Temp Name : ".$_FILES['image']['tmp_name']."<br>";
echo "File Size : in bytes ".$_FILES['image']['size']."<br>";
$file=$_FILES['image']['size'] / 1024;
echo "File Size : in KB ".number_format($file, 2)."<br>";
$file=$file / 1024;
echo "File Size : in MB ".number_format($file, 2)."<br>";
echo "File Error : ".$_FILES['image']['error']."<br>";
$ext=pathinfo(basename($_FILES["image"]["name"]), PATHINFO_EXTENSION);
$filename=time();
$target_file="./".$filename.".".$ext;
move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
?>
May 11, 2020 in ClassV, Tips and Tricks
The digit zero plays an important role as you count very large numbers. It helps track these multiples of 10 because the larger the number is, the more zeroes are needed. In the table below, the first column lists the name of the number, the second provides the number of zeros that follow the initial digit, and the third tells you how many groups of three zeros you would need to write out each number.
| Name | Number of Zeros | Groups of (3) Zeros |
|---|---|---|
| Ten | 1 | (10) |
| Hundred | 2 | (100) |
| Thousand | 3 | 1 (1,000) |
| Ten thousand | 4 | (10,000) |
| Hundred thousand | 5 | (100,000) |
| Million | 6 | 2 (1,000,000) |
| Billion | 9 | 3 (1,000,000,000) |
| Trillion | 12 | 4 (1,000,000,000,000) |
| Quadrillion | 15 | 5 |
| Quintillion | 18 | 6 |
| Sextillion | 21 | 7 |
| Septillion | 24 | 8 |
| Octillion | 27 | 9 |
| Nonillion | 30 | 10 |
| Decillion | 33 | 11 |
| Undecillion | 36 | 12 |
| Duodecillion | 39 | 13 |
| Tredecillion | 42 | 14 |
| Quatttuor-decillion | 45 | 15 |
| Quindecillion | 48 | 16 |
| Sexdecillion | 51 | 17 |
| Septen-decillion | 54 | 18 |
| Octodecillion | 57 | 19 |
| Novemdecillion | 60 | 20 |
| Vigintillion | 63 | 21 |
| Centillion | 303 | 101 |
A table like the one above can certainly be helpful in listing the names of all of the numbers depending on how many zeros they have. But it can be really mind-boggling to see just what some of those numbers look like. Below is a listing—including all the zeros—for the numbers up to decillion—a little more than just half the numbers listed in the above table.
Ten: 10 (1 zero)
Hundred: 100 (2 zeros)
Thousand: 1000 (3 zeros)
Ten thousand 10,000 (4 zeros)
Hundred thousand 100,000 (5 zeros)
Million 1,000,000 (6 zeros)
Billion 1,000,000,000 (9 zeros)
Trillion 1,000,000,000,000 (12 zeros)
Quadrillion 1,000,000,000,000,000 (15 zeros)
Quintillion 1,000,000,000,000,000,000 (18 zeros)
Sextillion 1,000,000,000,000,000,000,000 (21 zeros)
Septillion 1,000,000,000,000,000,000,000,000 (24 zeros)
Octillion 1,000,000,000,000,000,000,000,000,000 (27 zeros)
Nonillion 1,000,000,000,000,000,000,000,000,000,000 (30 zeros)
Decillion 1,000,000,000,000,000,000,000,000,000,000,000 (33 zeros)
Reference to sets of zeros is reserved for groupings of three zeros, meaning they are not relevant for smaller numbers. We write numbers with commas separating sets of three zeros so that it’s easier to read and understand the value. For example, you write one million as 1,000,000 rather than 1000000.
As another example, it’s much easier to remember that a trillion is written with four sets of three zeros than it is to count out 12 separate zeroes. While you might think that that one is pretty simple, just wait until you have to count 27 zeros for an octillion or 303 zeros for a centillion.
It is then that you will be thankful that you only have to remember nine and 101 sets of zeros, respectively.
The number googol (termed by Milton Sirotta) has 100 zeros after it. Here’s what a googol looks like, including all of its required zeros:
10,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
Do you think that number is big? How about the googolplex, which is a one followed by a googol of zeros. The googolplex is so large it doesn’t have any meaningful use yet—it is larger than the number of atoms in the universe.
In the United States—as well as around the world in science and finance—a billion is 1,000 million, which is written as a one followed by nine zeros. This is also called the “short scale.”
There is also a “long scale,” which is used in France and was previously used in the United Kingdom, in which a billion means one million million. According to this definition of a billion, the number is written with a one followed by 12 zeros. The short scale and long scale were described by French mathematician Genevieve Guitel in 1975.
April 30, 2020 in Tips and Tricks
You can either start a playlist with a video, or from the Library tab .
With a video:
From the Library tab:
April 25, 2020 in Laravel, Php, Tips and Tricks
There are two ways available to find the version of the Laravel application. You can either find it by running a command or you can check the Laravel version in files.
Open the terminal on your system. Navigate to the webroot directory of the Laravel application. Now execute the following PHP artisan command to check the Laravel version.
$ php artisan --version
Laravel Framework 5.6.39
Sometimes you may not have access to the terminal of server-hosted Laravel application. Or you may not much familiar with the command line. In that case, you can simply view the Laravel version in the following file.
First navigation to Laravel webroot directory.
$ vim ./vendor/laravel/framework/src/Illuminate/Foundation/Application.php
