Wednesday, January 4, 2023
Saturday, November 9, 2019
Python Basic
1. Hello world program in Python IDLE:-
print("hello world");
sentence="there is a boy";
print(sentence);
print(sentence.replace("boy","girl"));
print(sentence);
print(sentence[1:4]);
print(sentence.upper())
print(sentence.lower())
2. Loop in python :-
n=0
print("this is a program to find sum of first 100 numbers")
for i in range(5):
i=i+1
n=n+i
print('the sum is ' + str(n))
4.Example program:-
print('what is your name?')
name=input()
print('hello ' + name)
x=len(name)
print('number of characters in your name is:' + str(len(name)))
print("enter a number")
num1=input()
print('you entered '+num1)
5. Example 4
# Store input numbers
num1 = input('Enter first number: ')
num2 = input('Enter second number: ')
# Add two numbers
sum = float(num1) + float(num2)
# Display the sum
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
Tuesday, March 26, 2019
C++ with technical akash | Object Oriented Programming
OBJECT ORIENTED PROGRAMMING USING C++
passing object as a fun argument
#include<iostream>using namespace std;
class time
{
int hour;
int minute;
public:
void gettime(int h,int m)
{
hour=h;
minute=m;
}
void puttime()
{
cout<<hour<<"hours";
cout<<minute<<"minutes";
}
void sum(time,time);
};
void time:: sum(time t1,time t2)
{
minute=t1.minute+t2.minute;
hour=minute/60;
minute=minute%60;
hour=hour+t1.hour+t2.hour;
}
int main()
{
time T1,T2,T3;
T1.gettime(2,45);
T2.gettime(3,30);
T3.sum(T1,T2);
cout<<endl<<"M = ";
T1.puttime();
cout<<endl<<"N = ";
T2.puttime();
cout<<endl<<"P = ";
T3.puttime();
return 0;
}
Friend function
#include<iostream>using namespace std;
class sample
{
int a;
int b;
public:
void setvalue()
{
a=25;
b=40;
}
friend float mean(sample s); //here s object is decleared
};
float mean(sample s)
{
return float(s.a+s.b)/2.0;
}
int main()
{
sample x;
x.setvalue(); //here private data is accessed through member function setvalue
cout<<"mean value=" <<mean(x) <<endl;
return 0;
}
#include<iostream>
using namespace std;
class A; //forward declearation
class B
{
int a;
public:
void setdata (int x)
{
a=x;
}
friend void fun(A,B);
};
class A
{
int b;
public:
void setdata(int y)
{
b=y;
}
friend void fun(A,B);
};
void fun(A o1,B o2)
{
cout<<"sum="<<o1.b+o2.a;
}
int main()
{
A obj1;
B obj2;
obj1.setdata(2);
obj2.setdata(3);
fun(obj1,obj2);
return 0;
}
Static Data Member Function :-
#include<iostream>
using namespace std;
class A
{
static int count;
int num;
public:
void getdata(int a1)
{
num=a1;
count ++;
}
void getcount ()
{
cout<<"count:"<<count<<endl;
}
};
int A:: count; //definition of static data
int main()
{
A a,b,c;
a.getcount();
b.getcount();
c.getcount();
a.getdata(100);
b.getdata(200);
c.getdata(300);
cout<<"after calling " <<endl;
a.getcount();
b.getcount();
c.getcount();
return 0;
}
Constructor :-
#include<iostream>
using namespace std;
class a
{
int m,n;
public:
a() //constructor
{
m=1;
n=2;
}
void display()
{
cout<<"m="<<m<<endl;
cout<<"n="<<n<<endl;
}
};
int main()
{
a o; //object o is created of class a and constructor is called automatically
o.display();
return 0;
}
#include<iostream>
using namespace std;
class gce
{
int m,n;
public:
gce(int x, int y); //decleration of constructor
void display()
{
cout<<m<<n<<endl;
}
gce()
{
}
};
gce :: gce(int x=1,int y=2) //definition of constructor outside class first gce is class name and other is function name
{
m=x;
n=y;
}
int main()
{
//gce g;
gce g=gce(10,20);
//gce g(10,20);
g.display();
return 0;
}
Tuesday, February 26, 2019
Node MCU & Arduino : Microcontroller for IoT devices
Node MCU (ESP8266) is a microcontroller having similar function as Arduino which has many advantages over Arduino UNO i.e. Low cost,integrated support for wifi networks, small , low power consumption.
best websites for better understanding :
Official website - click here
Arduino uno offical website for software installation - click here
https://www.elecrow.com -click here
Arduino code for led blinking - click here
nodeMCU code:-
wifi server - click here
IIT BHU Robotics workshop files - click here
IIT Patna workshop files - click here
Arduino code for led blinking - click here
nodeMCU code:-
wifi server - click here
IIT BHU Robotics workshop files - click here
IIT Patna workshop files - click here
Online Shopping
Tuesday, February 5, 2019
C++ Programming with Technical Akash | Conditionals and Loops
To print table of any number ; input of the number is taken by the user ; using for loop
#include<iostream>
using namespace std;
int main()
{
float i;
int x;
cout <<"table of any number" <<endl <<"enter the number whose table is to be write" <<endl ;
cin>> i;
for(x=1;x<11;x++)
{
cout <<x <<"x" <<i <<"=" <<x*i << endl ;
}
return 0;
}
#include<iostream>
using namespace std;
int main()
{
float i;
int x;
cout <<"table of any number" <<endl <<"enter the number whose table is to be write" <<endl ;
cin>> i;
for(x=1;x<11;x++)
{
cout <<x <<"x" <<i <<"=" <<x*i << endl ;
}
return 0;
}
while loop
#include<iostream>
using namespace std;
int main()
{
int i=1,j;
cout <<"enter the last number" <<endl ;
cin>>j;
cout <<"this is our counting from 1" << endl;
while(i<=j)
{
cout<<i <<endl;
i++;
}
}
do while loop
#include<iostream>
using namespace std;
int main()
{
int a,b;
cout << "enter the first and last number " <<endl;
cin>>a;
cin>>b;
int c =a;
cout<<"the series is " <<endl;
do
{
cout<< c <<endl;
c+=2;
}
while (c<=b);
}
#include<iostream>
using namespace std;
int main()
{
int a,b;
cout << "enter the first and last number " <<endl;
cin>>a;
cin>>b;
int c =a;
cout<<"the series is " <<endl;
do
{
cout<< c <<endl;
c+=2;
}
while (c<=b);
}
output
C++ with Technical Akash | Function
* A function is a group of statements that can perform a particular tasks.
But how we was performing the tasks without knowing about function ? Actually we was using a function named "main" function . A c++ program must have at least one function.
We can reuse function and we can modify it somewhere in program.
#include<iostream>
using namespace std;
int akash()
{
cout<< "technical akash will solve your all problems";
}
int main()
{
akash();
}
But how we was performing the tasks without knowing about function ? Actually we was using a function named "main" function . A c++ program must have at least one function.
We can reuse function and we can modify it somewhere in program.
#include<iostream>
using namespace std;
int akash()
{
cout<< "technical akash will solve your all problems";
}
int main()
{
akash();
}
Here int is called function return type which must be defined , and akash is function name which is further recalled in int function.
=> we can also modify functon after defining it , see below a example :-
#include<iostream>
using namespace std;
int akash()
int main()
{
akash();
akash();
}
int akash()
{
cout<< "technical akash will solve your all problems"<<endl;
cout << "this is our modified function "<<endl;
}
Tuesday, January 29, 2019
Are you controlling or got controlled | A fight with self | Take the situation in your favour.
Make the gadgets your friend not enemy. If we are wasting our most of time on mobile and other gadgets and learn nothing , this does not mean that we should live without mobile phone , laptops or switch it off . We should think positive and make our study environment and hence our situations better , not by forgiving all things , but by adopting it i.e. make your social media profiles and feeds better towards positive so that you can learn something from it . For doing this you can install applications that can make your skills better i.e. quora , sololearn , unacadmy , Internshala ,linkedin etc .Subscribe good youtube channels and like some informative pages on facebook, so that applications cannot control our mind and activities but you may control them according to our needs.
Now a days modern technologies like machine learning and artificial intelligence based algorithms are used on the most of the popular applications and websites that can make you addictive and engaged for their profit . They can predict our mindsets and interests. And even can tell our some part of future by tracking your activities and they use our activity data for prediction through algorithms .
Companies are doing their jobs best , we have to use the product according to our requirements and in such a way that they cannot leave bad impact on our life .
Sunday, October 14, 2018
LINUX commands | Taste of kali linux on Android Smartphone |Working on Terminal |
For very beginners first they should aware about some basic commands on terminal:-
Working with directories
1.pwd - present working directory
This command will give you folder path in which you are now in.
If you are in Desktop folder then it will give you output /root/Desktop
2 . ls - List of directories and files
this command outputs list of all files and folder in present directory
for list in details use. # ls -l
3 . mkdir __(dirctory name )__
To make new directory . If we type. # mkdir akash , then it will create a new folder in present directory with name akash.
4. rmdir __(directory name)__
To delete directory. If we type # rmdir akash , then it will delete the folder name akash from present directory.
Dark web | Hidden Internet | Dark part of the Internet
Do you know? Part of the internet can be browse easily is only 6% of the internet which includes all the websites information which we can surf through browsers i.e. chrome,mozilla firefox, internet explorer...etc and search through google,bing,.etc.
The biggest question here is ,why we do not surf rest part of the internet? what is there? How can we go there?
For all these answers i have to start form beginning.
we can divide the internet into three parts :-
1) surface web :- there is no any new thing here ,you are reading this blog on surface web.this is the part of internet which is easily and directly available to all.it includes google,facebook,tweeter,torrent, all websites with com,in,net,org,...suffix containing websites
2) Deep Web :- This part contains highly secure data of different organisation,government which may be personal for an indivisual or organisation which are also not indexed on google and can only be reacheed if address is available.
3) Dark web :- This part is very popular for its illegal market,hackers,mystery,and weird things. Actually this part not only have bad thing but some useful things too . Here you can download many books,apps and many more for free that is available on surface web at high cost. Dark web is also the sea of knowledge and information of high level and posts of intelligent and smart people.
But as we know intelligent people needs not be ethical ,they can have worst thought too.
There is also many websites where marketing of drugs ,illegal IDs,carding,stolen products ,pirated unlocked softwares are sold and bought through virtual crypto currency like bitcoin,but its illegal to buy products from there. Here is also some mind disturbing stuff which are so weird that normal people do not have dare to watch it. i.e. human torcher ,child p*rnography ,which are very illegal .
The websites on dark web has ( .onion ) suffix. It is top-level domain suffix designing an anonymous hidden service reachable via tor browser. These websites can only be visited through TOR(the onion root) browser and VPN(virtual private network) through your device.
How tor works?
Ans - If you visit a website using tor, first the request from your yor browser goes to a random secure server of tor and after wandering to diffrent servers it finally request the the website from a final node of tor
After collecting information from the website ,it again wanders similarly in diffrent tor severs of tor and finally reaches to you.
So it's hard for the ISPs and govt. to trace your IP. If they try they get firstly the last used server of tor. Simply, tor makes tor makes layers of IPs like an onion layers.
My presonal experience on darkweb :-
I have visited there many times through a smartphone and visited on Hiddenwiki website for getting some (.onion) links there.And then clicked some of the dark web websites .Some of them opened while some were not. Because tor browser give you an option to make pdf of the websites you visited , i saved some of them.
Hiddenwiki pdf ( list of darkweb websites)- click here to download pdf
Hiddenwiki pdf ( list of darkweb websites)- click here to download pdf
Without much experience please do not think to go on darkweb because:-
i) it's hard to trace tor user but not impossible.
ii) You may get additive of darkweb involve in any illegal things that may turns you towards bad end of additction.
iii) Downloaded file may be infected with some virus that can cause steal of your presonal data.So the people who download something from dark web is recommended to not open it when their internet is active.
TOR official website - click here
VPN app for android (orbot proxy) - click here
TOR official website - click here
VPN app for android (orbot proxy) - click here
Friday, October 12, 2018
How to become a Hacker | Getting Started
Ethical Hacking -
The passion of hacking among youngsters is accelerating throughout the world. But it's not quite easy for beginners to start hacking even at very small scale (i.e. wi-fi,smartphone).They have to go through some commands which needs some practice to remember.
Hacking is very broad area of study with infinite syllabus. For a professional hacker , they always have to be updated and learn new things and ideas because as the things getting updated,and old techniques of hacking do not works.Their security flows and bugs are being fixed.
how to getting started Hacking (basic) :-
- You must be familiar with operating system for hackers. obviously windows OS not for a hacker. Kali Linux, Parrot OS ,etc are made for hackers because you will get all the required tools for hacking there. _ If you have windows installed in your system then you have many alternating options to enjoy other OS along with windows OS i.e. Making a bootable USB pendrive , install inside other OS through a applicaton Oracle virtual box or vm ware , Dual boot your system with two OS.
- Learn Basic command of Linux. For working on Kali linux, first you have to learn commands and make practice on it. open terminal(similar to command prompt of windows) in linux and practice on commands. First learn to operate directories and files through commands in terminal. Some of them are (ls,mkdir,rmdir,nano,cd,...)
- Never stop learning. Everything is available on you tube,Google,and torrent you have to just find out and learn.Also learn about all the tools of kali linux and how to use it.
Try to search these on google
anonymous ,tor ,duckduckgo ,vpn ,DoS and DDoS attack ,dark web ,deep web,cicada 3301 , linux commands ,kali linux tools ,white hat hacker, ........
Important Link :-
15 hours video lecture for hacking |kali linux
see similar videos on you tube.
How broad is linux - click here
Thursday, October 11, 2018
Amazing Websites | Top 10 websites
➤There are billion of websites are on the surface web of internet among which some are Amazing.
One should know about some of them which may help them everywhere.
These websites may not work fine on mobile.
- the Scale of the Universe 2 : http://htwins.net/scale2/ - The Scale of The Universe shows everything from the smallest to largest things in our universe. Check out the Scale of The Universe right now! Amazing to see.
- Radio Garden : http://radio.garden/ - Select your radio channel on the map and listen live world's radios.
- The Internet Map : https://internet-map.net/ - Millions of website on the internet are mapped with some details based upon visitors number.
- 1 Second-internet Live stats : http://www.internetlivestats.com/one-second/ - Here you can see number of click per second on some popular websites . And some internet live data.
- Shorten URL : https://tiny.cc/ - Through this you can short any link. Just paste your link and get it in shorten form.
- Flight tracker :https://flightaware.com/live/ - The world's most popular flight tracker. Watch aircraft move around the world in real-time on detailed map, get up-to-date flight status & airport information.
- The revolving Google : http://therevolvinginternet.com/ - A funny Google page that make the web pages revolving.
- Live hacking attacks in the world : http://www.norse-corp.com/ - Norse offers proactive security solutions, based on our global "dark intelligence" platform, to defend against today's advanced threats.
- TV shows Details : https://www.tvcountdown.com/ - tvcountdown.com counts down the days, hours and minutes left until your favorite TV show airs.
Online virus Scanner : https://www.virustotal.com/#/home/upload - here you can just upload your file and get know whether your file is infected from any virus or not.
Meditation , know about life and world : for such type of stuff . I suggest two websites based on two great human
1. osho :- oshoworld.com -this website has great experience & knowledge of life by osho . Audio of osho on Geeta saar in this website is my personal favourate.
2 . Jaggi Vashudev :- https://isha.sadhguru.org/in/en ,isha yoga centre of india is very popular across the world . On this website there is vast experience of jaggi vashudev which are amazing .
Subscribe to:
Posts (Atom)
























