Monday, 23 December 2013

How to control laptop using smartphone???

How to control laptop using smartphone???
Softwares that can be used….
1.TeamViewer
2.Microsoft RD Client
etc.,
and many more…..
First step for all these softwares would making your laptop as WiFi hotspot.

1.Open Command Prompt as Administrator.
2. Type netsh wlan set hostednetwork mode=allow ssid="ACER" key=12345678
ACER can be replaced by a name you like
12345678 can be replaced  by 8-character(not less than that!) password

3.Right click and Select NewàShortcut
Type netsh wlan start hostednetwork and click Next.Name shortcut as Start hotspot(whatever you want)





 Right click and select properties                      Click Advanced and check Run as administrator.



4.Similarly create a shortcut for stopping hotspot and name as Stop Hotspot

Controlling using TeamViewer
1.Download        TeamViewer for Windows
   TeamViewer forAndroid.(click the links)
and install.

    2.  Start Hostpot using created shortcut.Open TeamViewer and select Extrasàoptions.In General Tab,choose Accept in Incoming LAN connections.



3.Open TeamViewer on your Android phone and turn on your WiFi and connect to your hotspot by entering the password you set.Enter IP on your phone displayed on the computer’s TeamViewer.






4.Select Remote Control on phone.Enter password on phone displayed on computer.Select OK.



5.Now you are ready to control your computer via your Android phone.



Controlling using Microsoft RD Client
1.Download Microsoft RD Client from here and install on your phone.

2.Right click My Computer and click Properties.Select Advanced System settings.

3.Select Remote tab.Enable Allow Remote Connections to this computer and select Allow connections from computers running any version of Remote Desktop(less secure).
4.If you have no password for your user account,set a password.If you have already set a password skip this step.


6.Open Command prompt and type ipconfig to obtain IP address of your computer.




7.Open RD Client on your phone and select + sign and enter configuration details and select  tick sign.

8.Select the newly created Remote desktop and Windows is on your phone.


If you have any issues regarding this,please be free to comment here.PDF version of this tutorial is available here

For more details
http://www.teamviewer.com
http://technet.microsoft.com/en-us/library/dn473010.aspx
jω©2013

Monday, 18 March 2013

How to find someone's register number without asking them....

Anna University Chennai register no. format 
1st 4 digits-college code Eg:7138 for Sri Ramakrishna Institute of Technology
2nd 2 digits-year Eg:11 for year 2011,12 for year 2012 ie year of joining
3rd 3 digits-course code Eg:105 for EEE
4th 3 digits-roll no, Eg:057
Eg:713811105057.
Download college codes here
COLLEGE CODES 
Course codes

101-Aeronautical
102-Automobile
103-CIVIL
104-CSE
105-EEE
106-ECE
114-Mech
205-IT

Sunday, 16 December 2012


A=1,B=2,C=3,..........         C A T=3+1+20=24


#include<stdio.h>
#include<ctype.h>
#include<string.h>
#include<conio.h>
void main()
{
  char a[100];int i,l=0,b[100],s=0;
  printf("\nEnter word: ");
  gets(a);
  l=strlen(a);
  for(i=0;i<l;i++)
 
{
 if(isupper(a[i]))
  b[i]=a[i]-64;                 /*ASCII value of capital A is 65.So for A to be 1 subtract 64*/
 if(islower(a[i]))
  b[i]=a[i]-96;                 /*ASCII value of small a is 97.So for a to be 1 subtract 96*/
 printf("\n%c : %d",toupper(a[i]),b[i]);
 }
printf("\n   _____");

 for(i=0;i<l;i++)
  s=s+b[i];
printf("\n    %d",s);
printf("\n   _____");
getch();
}
Download source and exe here



Do want  to run mobile phone java apps and games in computer??

2.Install it.Click Start --> All Programs-->SjBoy Special Edition - ChingLish 1.00-->Start SjBoy
3.click File-->Open and choose the desired jar file

Sjboy running Opera Mini
A Game running in Sjboy
For more info.Go to http://shal.wen.ru/mostwanted/sjboynew.xhtml


Bored????
How to create 2000 folders in a single stroke???
Type the following in Turbo C++ and run. You will find the exe file in TC\BIN\.
If your C program file is Noname00.c,then exe file is Noname00.exe

#include<stdio.h>
void main()
{
 FILE *f1;                                                     /*Declaring file pointer*/
 int i;
 f1=fopen("folder.bat","w");             /*Create new file named folder.bat*/
 for(i=0;i<2000;i++)                            /*for loop to be executed 2000 times*/
//As printf prints on screen, fprintf prints in a file
 fprintf(f1,"\nmkdir F%d",i);             /*print in the file mkdir F0,mkdir F1 line by line in the batch file*/
 system("folder.bat");                          /*Execute the batch file*/
}
The program folder.c

Creation of folders in process



Ok created 2000 folders …….How to remove them??
Replace the line fprintf(f1,"\nmkdir F%d",i);          by          fprintf(f1,"\nrmdir F%d",i);
In short replace mkdir by rmdir.
Compile and run in Turbo C++ and run the exe file as done before……

And all folders created will removed quickly….
Folder.bat


Right click the folder.bat and select edit you will find the contents.We exploited for loop to print in file F0,F1,etc……….
NOTE:   mkdir-make directory(folder)
                rmdir-remove directory
                Lines starting with // and text enclosed with /*,*/are comments.They need not be typed in the    program.

Friday, 14 December 2012


//C program to calculate GPA
#include<stdio.h>
#include<conio.h>

main()

{

 char a[8];float b;int i;int n[8];char c;
 start:
 clrscr();

 printf("\nCopyright(c)2012 Winston\n\n\nEnter the Grades in this Order.\neg:cdeacaed\nCY2111     Chemistry");

 printf("\nGE2111     EG      ");

 printf("\nGE2112     FOCP     ");

 printf("\nGE2115     CP    ");

 printf("\nGE2116     EP       ");

 printf("\nHS2111     English ");

 printf("\nMA2111     Maths  ");

 printf("\nPH2111     Physics  ");

 printf("\nEnter Grades:");
 scanf("%s",a);

 for(i=0;i<8;i++)                        /*Checking each character*/

  {

   if(a[i]=='s') n[i]=10;

   if(a[i]=='a') n[i]=9;

   if(a[i]=='b') n[i]=8;

   if(a[i]=='c') n[i]=7;

   if(a[i]=='d') n[i]=6;

   if(a[i]=='e') n[i]=5;

  }
  //The grades points are multiplied by credits and summed up
  b=n[0]*3+n[1]*5+n[2]*3+n[3]*2+n[4]*2+n[5]*4+n[6]*4+n[7]*3;

  printf("GPA %0.2f",b/26);        /*Dividing by total number of credits,%0.2f for two decimal points */
  printf("\nPress c to continue or any key to exit");
  c=getche();
  if(c=='c') goto start;
  getch();

}





I did this during the time of my first semester results
Very useful for bulk calculation of GPA.
Download the source code and the executable here.GPA-calculator