Google search

Basic and advanced computer skills like Excel with macros, How to speed up your PC, C, CPP, Java programming, HTML, JavaScript, PHP, Wordpress, all web tools, Android tutorials, MySQL Tutorials, WAMP server installation. etc.

internet connection status check

This java script example demonstrates that,  whether your browser is online or offline.
<html>
<head>
</head>
<body>
<h1> Check internet connection status </h1>
 <script>
    function status()
    {
        if(navigator.onLine)
        {
alert("You are Online!")
}
        else
        {
alert("You are Offline!")
        }
    }

</script>
<button onclick="status();">check internect connection 

status </button>
<br>
<h1> This is refresh code </h1>
<a href="javascript:location.reload(true)">Refresh 

Now!</a>
</script>
</body>
</html>

Out put of the above code is : 














MIT India Tech Blog: Work from home

MIT India Tech Blog: Work from home: To make money online or work from home, here are some simple steps to make extra earning for you.  1. Blogging : if you are good at wr...

Work from home

To make money online or work from home, here are some simple steps to make extra earning for you. 


1. Blogging : if you are good at writing articles or post. 
try www.blogspot.com or www.wordpress.com
You can write article/post on technical, non-technical, political, sports, science, fiction etc.  

2. Online share trading: this requires lot of market watch and analysis to buy and sell shares.
Before stepping into trading, one should study ABC of share market. You can refer this link: www.moneycontrol.com  for more detail.

3. Freelancing: if you are good at programming or computer related work then try registering on https://www.freelancer.com or https://www.upwork.com to make good and steady income.

The jobs available at these sites are.

  • a) Web Designer/Developers: This requires strong knowledge of particular technical skills like web technologies (HTML5,PHP, MySQL, Wordpress, Java etc)
  • b) Programmers: C, C++, Java etc
  • c) Macro Programmer : Excel Macros with VB coding.
  • d) Accounting : Tally / CIMA expert / Auditing  etc.
  • e) Network engineers: CISCO tools /  Microsoft tools.
  • f) Database admin: MS-SQL, Oracle, MySQL or any RDBMS.
  • g) Online help desk: Basic computer, Ms Office, internet and good communication skills are mandatory.
  • h) Call center executive: Good command over spoken and written English with computer skills.
  • i) Digital Marketing Executive: one should know SEO marketing tools with advertising on social media like facebook, twitter, linkedin, google+, pintrest etc.


4. Affiliate marketing: if you have a website or a blog try inserting affliliate links to them and earn some extra bucks.
exa: amazon affiliate [is best one.]

5. Email marketing: if you know how to send bulk emails on behalf of your clients then this is good idea to earn money.

6. There 7 Benefits of Working From Home

CPP Basic Programs-List1

Following are the list of C++ Programs.
1. C++ Program to display employee salary information. 
#include<iostream.h>
#include<conio.h>
class test
{
public:
int bs, hra, pf, net;

getdata(int bs1, int hra1, int pf1)
{
bs=bs1;
hra=hra1;
pf=pf1;
net=bs+hra-pf;
return(net);
}

void display()
{
cout <<"Net Salary="<<net;
}
};

main()
{
clrscr();
test t;
t.getdata(10000,3000, 1500);
t.display();
}

2. C++ Program to add 2 numbers.
#include<iostream.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
cout<<"\nEnter two numbers:";
cin>>a>>b;
int sum=a+b;
cout<<"\nResult="<<sum;
getch();
}

3. C++ Program to display square and cube of entered number.
#include<iostream.h>
#include<math.h>
#include<conio.h>
main()
{
int num;
clrscr();
cout<<"\nEnter number:";
cin>>num;
cout<<"\nSquare of the given number="<<num*num;
cout<<"\nCube of the given number="<<num*num*num;
cout<<"\nSquare root of the given number="<<sqrt(num);
getch();
}

4. C++ Program to show inventory information. 
#include<iostream.h>
#include<conio.h>
main()
{
int qty;
char itemnm[15];
float price,tot;
clrscr();
cout<<"\nEnter item name:";
cin>>itemnm;
cout<<"\nEnter qty:";
cin>>qty;
cout<<"\nEnter price:";
cin>>price;
tot=qty*price;
clrscr();
cout<<"\n=====BILL=====";
cout<<"\nItem name:"<<itemnm;
cout<<"\nQty      :"<<qty;
cout<<"\nPrice    :"<<price;
cout<<"\nTotal Amt:"<<tot;
cout<<"\n==============";
getch();
}

5. C++ program to display addition and multiplication using switch case.
#include<iostream.h>
#include<conio.h>
main()
{
int a,b,ch;
clrscr();
cout<<"\n1.Addition";
cout<<"\n2.Multilplication";
cout<<"\nEnter choice:";
cin>>ch;
switch(ch)
{
case 1:
cout<<"\nResult="<<a+b;
break;
case 2:
cout<<"\nResult="<<a-b;
break;
default:
cout<<"\nInvalid choice";
break;
}
getch();
}

6. C++ Program to use goto statement.
#include<iostream.h>
#include<conio.h>
main()
{
int i;
clrscr();
for(i=1;i<=10;i++)
{
if(i==5)
goto a;
cout<<"\nI="<<i;
}
a:
cout<<"\nProgram terminated";
getch();
}

7. C++ Program to display smallest and largest number.
#include<iostream.h>
#include<conio.h>
main()
{
int num[10];
int range;
clrscr();
cout<<"\nEnter range:";
cin>>range;
cout<<"\nEnter "<<range<<" numbers:";
for(int i=0;i<range;i++)
cin>>num[i];
cout<<"\nThe given numbers are:";
for(i=0;i<range;i++)
cout<<"\n"<<num[i];
int big,small;
big=num[0];
small=num[0];
for(i=1;i<range;i++)
{
if(num[i]>big)
big=num[i];
else if(num[i]<small)
small=num[i];
}
cout<<"\nLargest number="<<big;
cout<<"\nSmallest number="<<small;
getch();
}

8. C++ Program to swap 2 numbers using function.
#include<iostream.h>
#include<conio.h>
swap(int,int);

main()
{
int a,b;
clrscr();
cout<<"\nEnter two numbers:";
cin>>a>>b;

cout<<"\nBefore calling the function";
cout<<"\nA="<<a;
cout<<"\nB="<<b;

swap(a,b);
cout<<"\nAfter calling the function";
cout<<"\nA="<<a;
cout<<"\nB="<<b;
getch();
}

swap(int a,int b)
{
int temp=a;
a=b;
b=temp;
cout<<"\nInside the function";
cout<<"\nA="<<a;
cout<<"\nB="<<b;
}

9. C++ Program to find length of the string.
#include<iostream.h>
#include<conio.h>
#include<string.h>
main()
{
char str[25];
int i,len=0;
clrscr();
cout<<"\nEnter string:";
cin>>str;
for(i=0;str[i]!='\0';i++)
{
len++;
}
cout<<"\nLength of the string="<<len;
getch();
}

10. C++ Program to calculate electricity bill. 
#include<iostream.h>
#include<conio.h>
class EBill
{
 int meterno,units,tot;
 char cnm[15];
 public:
 void getInfo()
 {
  cout<<"\nEnter customer name:";
  cin>>cnm;
  cout<<"\nEnter number of units used:";
  cin>>units;
  cout<<"\nEnter meter number:";
  cin>>meterno;
 }
 void calc()
{
 if(1<= units<=150)
 tot=units*2+100;
 else if(150< units<=300)
 tot=units*3+100;
 else if(300< units<=400)
 tot=units*4+100;
 else
 tot=units*5+100;
}
void showBill()
{
cout<<"\n=====Electricity BILL======";
cout<<"\nCustomer name="<<cnm;
cout<<"\nNo. of Units ="<<units;
cout<<"\nMeter number ="<<meterno;
cout<<"\nTotal Bill   ="<<tot;
cout<<"\n================";
}
};
main()
{
clrscr();
EBill ob;
ob.getInfo();
ob.calc();
ob.showBill();
getch();
}

Thank you for referring above programs. 
keep subscribe to latest and updated programs.  

Display and Update records using PHP

In this tutorials you'll able to List / Display records and Update records using PHP program with MySQL as a back-end database. 

First of all we will display list of all records entered into MySQL database using PHP page. Here is the code for that.

1. File name : list_records.php
<?php
$host="localhost"; 
$username="root";
$password=""; 
$db_name="mars_db"; 
$tbl_name="list"; 

mysql_connect("$host", "$username", "$password")or die("cannot connect"); 
mysql_select_db("$db_name")or die("cannot select DB");

$sql="SELECT * FROM $tbl_name";
$result=mysql_query($sql);
?>

<h1> Update records </h1> <hr color="yellow">
<table width="400" border="0" cellspacing="1" cellpadding="0">
<tr>
<td>
<table width="400" border="1" cellspacing="0" cellpadding="3">
<tr>
<td colspan="4"><strong>List of Employee Records </strong> </td>
</tr>

<tr>
<td align="center"><strong>ID</strong></td>
<td align="center"><strong>First name</strong></td>
<td align="center"><strong>Last Name</strong></td>
<td align="center"><strong>Update</strong></td>
</tr>

<?php
while($rows=mysql_fetch_array($result)){
?>

<tr>
<td><?php echo $rows['id']; ?></td>
<td><?php echo $rows['fname']; ?></td>
<td><?php echo $rows['lname']; ?></td>


<td align="center"><a href="update.php?id=<?php echo $rows['id']; ?>">update</a></td>
</tr>

<?php
}
?>

</table>
</td>
</tr>
</table>

<?php
mysql_close();
?>
<img src=icons/k.png>
<img src=icons/b.png>
<img src=icons/y.png>

2. Out put from above code looks as following.

















3. Now, copy the below code and save as "update.php".
<?php
$host="localhost"; 
$username="root";
$password=""; 
$db_name="mars_db"; 
$tbl_name="list"; 

mysql_connect("$host", "$username", "$password")or die("cannot connect"); 
mysql_select_db("$db_name")or die("cannot select DB");

$id=$_GET['id'];

$sql="SELECT * FROM $tbl_name WHERE id='$id'";
$result=mysql_query($sql);
$rows=mysql_fetch_array($result);
?>

<table width="400" border="0" cellspacing="1" cellpadding="0">
<tr>
<form name="form1" method="post" action="update_ac.php">
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td>&nbsp;</td>
<td colspan="3"><strong>Update data in mysql</strong> </td>
</tr>
<tr>
<td align="center">&nbsp;</td>
<td align="center">&nbsp;</td>
<td align="center">&nbsp;</td>
<td align="center">&nbsp;</td>
</tr>
<tr>
<td align="center">&nbsp;</td>
<td align="center"><strong>ID</strong></td>
<td align="center"><strong>First Name</strong></td>
<td align="center"><strong>Last Name</strong></td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="center">
<input name="id" type="text" id="id" value="<?php echo $rows['id']; ?>">
</td>
<td align="center">
<input name="fname" type="text" id="fname" value="<?php echo $rows['fname']; ?>" size="15">
</td>
<td>
<input name="lname" type="text" id="lname" value="<?php echo $rows['lname']; ?>" size="15">
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<input name="id" type="hidden" id="id" value="<?php echo $rows['id']; ?>">
</td>
<td align="center">
<input type="submit" name="Submit" value="Submit">
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</form>
</tr>
</table>
<?php
mysql_close();
?>


4. The out put of the above file looks as below.











5. When you want to update, just click on Submit button and it will take you to next page called "update_ac.php", refer the below code.
<?php
$id=$_POST["id"];
$fname=$_POST["fname"];
$lname=$_POST["lname"];

$host="localhost"; 
$username="root";
$password=""; 
$db_name="mars_db"; 
$tbl_name="list"; 

mysql_connect("$host", "$username", "$password")or die("cannot connect"); 
mysql_select_db("$db_name")or die("cannot select DB");

$sql="UPDATE $tbl_name SET fname='$fname', lname='$lname' WHERE id='$id'";
$result=mysql_query($sql);

if($result)
{
echo "Successful";
echo "<BR>";
echo "<a href='list_records.php'>View result</a>";
}

else 
{
echo "ERROR";
}
?>

6. The above code is having following output.







7. once you click on "View result" link as per above image, it will redirect to the "list_records.php", hence you'll have updated records. 

Thank you for reading and referring my blog. Keep reading mitindia blog for latest updates and don't forget to subscribe!. 

Wordpress on Local server

How to run / create a blog/website using Wordpress.

Brief About Wordpress:  It is a CMS(Content Management System), The most powerful open source plat-form for creating blogs and professional websites with over 24% of entire web share out of nearly 1 billion websites world wide. Over 26,000 plug-ins to use and enhance your Wordpress site features and stunning themes to look and feel.

In this tutorials you'll able to install, create and design website/blog using wordpress on local pc/laptop.

Step1:
Install WAMP (server) on your windows PC/Laptop.
Here is an tutorial to install wamp 

Step2:
After installing, open browser and type : http://localhost

Step3: You'll see following screen shot with WAMP Home page.

Step4: Click on "phpmyadmin" as per above image and create a database on mysql as following screen image.

After successfully creating the database "mywpsite", now go for next step.

Step5: Now download the wordpress software from here or
you can also refer below image for that.






Step 6: Unzip the folder and place that folder in C:\wamp\www location. [it looks like c:\wamp\www\mywpsite]

Step 7: Now open above site in the browser by typing : http://localhost/mywpsite (refer following image)












Step 8: Click on "Continue" then Click on Letsgo" button 
















Step 9: Put here database name (which was just created), user name (commonly "root"), password (commonly blank) and local host, leave this as it is.[follow below screen image]
















Step 10: Click on "Submit" button then you'll see following screen image.











Step 11: Click on "Run the Install" then you'll be redirected  to following page.












Step 12: provide all user details with email id as per above image. And Click on "Install Wordpress" button.

Finally you'll see following success page.















Now login with user name and password to create your local wordpress sites.

Thank you for reading my blog.





Domain connectivity

In this tutorial you'll able to connect your windows xp/7/8 PC to server machine like windows server 2008 R2 etc.

First of all  on Windows XP PC settings : 
Put the IP address on the windows XP  PC. To do this follow the steps.
1. Right click on "My Network places" icon on desktop and select "Properties" [see below image]









2. Select "Local Area Connection" and then Properties.






3. Select "Internet protocol (TCP/IP)

4. Click on "Properties" button and Enter IP address as following image.


 

in the above dialog box, 
IP address: 192.168.1.98 is the IP of current PC .i.e.XP machine Default subnet mask is : 255.255.255.0 and Default gateway is 192.168.1.1 [IP of your router, commonly written backside of the router device]
And last, Preferred DNS server, this is your server IP address : 192.168.1.20 [you'll find this on your server]

5. Now, Right click on "My Computer" icon on desktop and select "properties" 
then Click on "Computer Name"  tab, Click on "Change " button. [refer below image]












Now click on "Domain" and enter domain name [server / DNS] as following screen shot.












After this, your DNS will ask server administrator authentication [user name and password] please provide the same and after this step your windows XP PC   will restart and after restart one can log on to your Domain Server  [DNS]. 

Thank you for reading this, please share it to others!   

IT Engineer Responsibilities

Responsibilities of IT Engineers:
===========================================
1) Software / Hardware installing, supporting and maintaining infrastructure.
2) Managing company emails, anti-spam and virus protection.

3) Creating user accounts, permissions and passwords.

4) Monitoring usage of network .

5) Ensuring the most cost-effective and efficient use of 
servers / machines.

6) Providing IT solutions to business and management 
problems.

7) Ensuring that all IT equipment must complies with 
industry standards.

8) Analyzing and resolving issues.

9) Routine preventative measures and implementing, 
maintaining and monitoring network security, particularly if the network connects to the internet.

10) Providing training and technical support for users with 
varying levels of IT knowledge and competence.

11) Supervising other technical staff, such as help-desk 
technicians etc.

12) Working closely with other departments/organisations 
and collaborating with other IT staff.

13) Monitoring the use of the web by employees.

14) Planning and implementing future IT developments and undertaking project work.

15) Managing the website and keeping internal networks 
running.

Top Engineering colleges in india

Top Engineering [B.E./B.Tech/M.Tech]Colleges in India
===========================================

  • Indian Institute of Technology, Madras
  • Indian Institute of Technology, Delhi
  • Indian Institute of Technology, Bombay
  • Indian Institute of Technology, Kharagpur
  • Indian Institute of Technology, Kanpur
  • VIT University, Vellore
  • Thiagarajar College of Engineering, Madurai
  • SASTRA University, Thanjavur
  • PSG College of Technology, Coimbatore
  • National Institute of Technology, Warangal
  • National Institute of Technology, Tiruchirappalli
  • National Institute of Technology, Surathkal
  • National Institute of Technology, Calicut
  • Manipal Institute of Technology, Manipal
  • Jadavpur University, Kolkata
  • Institute of Chemical Technology, Mumbai
  • Indian Institute of Technology, Roorkee
  • Indian Institute of Technology, Indore
  • Indian Institute of Technology, Hyderabad
  • Indian School of Mines, Dhanbad
  • Indian Institute of Technology, Ropar
  • Indian Institute of Technology, Guwahati
  • Indian Institute of Technology, Gandhinagar
  • Indian Institute of Technology, Banaras Hindu University, Varanasi
  • Indian Institute of Engineering Science and Technology, Shibpur
  • Delhi Technological University, Delhi
  • College of Engineering, Pune
  • Delhi Technological University, Delhi
  • College of Engineering, Pune
  • College of Engineering, Anna University, Chennai
  • Birla Institute of Technology and Science, Pilani
  • Nirma University, Ahmedabad
  • Visvesvaraya National Institute of Technology, Nagpur
  • Veermata Jijabai Technological Institute, Mumbai
  • SSN College of Engineering, Kalavakkam
  • Silicon Institute of Technology, Bhubaneswar
  • School of Engineering, Cochin University of Science and Technology, Ernakulam
  • Sardar Vallabhbhai National Institute of Technology, Surat
  • Sant Longowal Institute of Engineering and Technology, Longowal
  • RV College of Engineering, Bangalore
  • Punjab Engineering College University of Technology, Chandigarh
  • Pondicherry Engineering College, Puducherry
  • PES University, Bangalore
  • Netaji Subhas Institute of Technology, Delhi
  • National Institute of Technology, Rourkela
  • National Institute of Technology, Raipur
  • National Institute of Technology, Kurukshetra
  • National Institute of Technology, Durgapur
  • National Institute of Science Education and Research, Bhubaneswar
  • MS Ramaiah Institute of Technology, Bangalore
  • Motilal Nehru National Institute of Technology, Allahabad
  • Maulana Azad National Institute of Technology, Bhopal
  • Maulana Abul Kalam Azad University of Technology, Kolkata
  • Maharaja Sayajirao University of Baroda, Vadodara
  • Madras Institute of Technology, Chennai
  • Karunya University, Coimbatore
  • JNTUH College of Engineering, Hyderabad
  • Jaypee Institute of Information Technology, Noida
  • Jawaharlal Nehru Technological University College of Engineering, Kakinada
  • International Institute of Information Technology, Hyderabad
  • International Institute of Information Technology, Bangalore
  • Indraprastha Institute of Information Technology, Delhi
  • Indira Gandhi Institute of Technology, Sarang
  • Indian Institute of Technology, Patna
  • Indian Institute of Technology, Jodhpur
  • Indian Institute of Technology, Bhubaneswar
  • Indian Institute of Science Education and Research, Thiruvananthapuram
  • Indian Institute of Science Education and Research, Pune
  • Indian Institute of Science Education and Research, Mohali
  • Indian Institute of Science Education and Research, Kolkata
  • Indian Institute of Science Education and Research, Bhopal
  • Indian Institute of Information Technology, Allahabad
  • Harcourt Butler Technological Institute, Kanpur
  • Guru Gobind Singh Indraprastha University, Delhi
  • Dr B R Ambedkar National Institute of Technology, Jalandhar
  • Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar
  • College of Technology, GB Pant University of Agriculture and Technology, Pantnagar
  • College of Engineering, Trivandrum
  • College of Engineering and Technology, Bhubaneswar
  • Coimbatore Institute of Technology, Coimbatore
  • BMS College of Engineering, Bangalore
  • BITS Pilani- Hyderabad Campus, Hyderabad
  • Birla Institute of Technology, Mesra
  • Bidhan Chandra Krishi Viswa Vidyalaya, Nadia
  • AU College of Engineering, Vishakhapatnam
  • ABV- Indian Institute of Information Technology and Management, Gwalior
  • Walchand College of Engineering, Sangli
  • VNR Vignana Jyothi Institute of Engineering and Technology, Hyderabad
  • Veltech Multitech Dr.Rangarajan Dr.Sakunthala Engineering College, Chennai
  • Velammal Engineering College, Chennai
  • Velagapudi Ramakrishna Siddhartha Engineering College, Vijaywada
  • Vasavi College of Engineering, Hyderabad
  • Vardhaman College of Engineering, Hyderabad

Top MBA colleges

Top MBA (Management) Colleges in India
===========================================

  1. Indian Institute of Management, Bangalore
  2. Indian Institute of Management, Ahmedabad
  3. Indian Institute of Management, Calcutta
  4. Department of Management Studies, Indian Institute of Technology, Delhi
  5. Department of Management Studies, Indian Institute of Technology, Madras
  6. Indian Institute of Management, Lucknow
  7. XLRI – Xavier School of Management, Jamshedpur
  8. Indian Institute of Management, Kozhikode
  9. Indian Institute of Technology, Roorkee
  10. Indian Institute of Management, Indore
  11. Vinod Gupta School of Management, Indian Institute of Technology, Kharagpur
  12. Faculty of Management Studies, University of Delhi, Delhi
  13. National Institute of Industrial Engineering, Mumbai
  14. Shailesh J Mehta School of Management, Indian Institute of Technology, Bombay
  15. Jamnalal Bajaj Institute of Management Studies, Mumbai
  16. Indian Institute of Management, Raipur
  17. TA Pai Management Institute, Manipal
  18. Great Lakes Institute of Management, Chennai
  19. Institute of Management Technology, Ghaziabad
  20. Management Development Institute, Gurgaon
  21. SP Jain Institute of Management and Research, Mumbai
  22. Indian Institute of Technology, Kanpur
  23. Rajiv Gandhi Indian Institute of Management, Shillong
  24. Indian Institute of Foreign Trade, Delhi
  25. Department of Management Studies, Indian Institute of Science, Bangalore
  26. Indian Institute of Management, Ranchi
  27. Xavier Institute of Management, Bhubaneswar
  28. Institute for Financial Management and Research, Changambakkam
  29. Indian Institute of Management, Rohtak
  30. Indian Institute of Management, Tiruchirapalli