Showing posts with label How-to. Show all posts
Showing posts with label How-to. Show all posts
Fix can not find 640 x 480 video mode

Fix can not find 640 x 480 video mode

How to fix can not find 640 x. 480 video mode (work for any games).

This problem usually only happens on Windows.

To fix this on Windows 8:
Go to your steam library and go to GTA 3 Properties by right clicking it.
Go to local files and click browse local files.
Right click GTA3.exe and go to properties.
Go to the compatibility tab and check "Run this program in compatibility mode for:"
Click the drop down box and click Windows 7.
DONE, start the game.

To fix this on Windows 7:
Go to your steam library and go to GTA 3 Properties by right clicking it.
Go to local files and click browse local files.
Right click GTA3.exe and go to properties.
Go to the compatibility tab and check "Run this program in compatibility mode for:"
Click the drop down box and click Windows XP Service Pack 3.
DONE, start the game.

Source : Google.com.

Enable Default ADMINISTRATOR Account in Windows 10

Enable Default ADMINISTRATOR Account in Windows 10

How to enable Default ADMINISTRATOR Account in Windows 10????

Here I am telling the solution, using command prompt...

Open command prompt with administrator rights ( one way is click win + x and choose the option command prompt (administrator), an one more way is click Windows key and search with keyword cmd and right click the .exe file choose the run as administrator option)

For activating the admin account use the command

net user administrator /active:yes

Click enter, it shows the message like

Command completed successfully.

For disable the admin account

net user administrator /active:no

Click enter, it shows the message like

Command completed successfully.

After that logout the current account and choose the administrator account ( shows the down the left side)..

😃

Send SMS Through JAVA/JSP/ SERVLETS

Send SMS Through JAVA/JSP/ SERVLETS

Hi, Friends with this post i will show to how to send an sms through JAVA/JSP/SERVLETS

For sending sms I am using mvayoo.

First what is mVaayoo, It  is a cost effective End-to-End Enterprise Mobile Messaging Service with high service level availability, that is unmatched in the industry. mVaayoo provides both 1-Way & 2-Way SMS communication including SMS Push, short code and long code services, SMS gateway with APIs, SMS Excel plugin, SMS contest, voting & polling and Voice SMS services.

URL : http://www.mvayoo.com


You first register in this website and continue your tutorial ...
 
------------------------------------------------------------------------------------------------------------
Note  : We can send only 20 sms with the free account... If you want more choose the premium plan or register with another account.

------------------------------------------------------------------------------------------------------------

coming to the program...;


import java.io.*;
import java.security.*;

import java.net.*;

public class SMS  //Save the file with the name "SMS.java"
{
    public static void main(String[] args)
    {
        String phnum= "9292929292";   // Example Phone Number
        String message = "Hai, How are you ..."; //Example Message
        try{ 



//http://api.mVaayoo.com/mvaayooapi/MessageCompose?user=USERNAME:PASSWORD&senderID=TEST SMS&receipientno=RECEIPIENTNO&dcs=0&msgtxt=This is Test message&state=4              

   URL myurl = new URL("http://api.mvaayoo.com/mvaayooapi/MessageCompose?user=USERNAME:PASSWORD&senderID=TEST%20SMS&receipientno="+phnum+"&dcs=0&msgtxt="+message+"");
 
  BufferedReader in = new BufferedReader(new InputStreamReader(myurl.openStream())); 
  String inputLine;

 while ((inputLine = in.readLine())!= null)
          System.out.println(inputLine);


in.close();
}
catch(Exception e){
            System.out.println("error"+e);


}
 

}

}

OUTPUT :

Hai, How are you ...

Status=0,ins37_14066345089954

Observe the output, in output "Hai, How are you ..." is our message and the second line is for status indication if your message is send successful it shows the output like "Status=0", Other wise it will not send ..


------------------------------------------------------------------------------------------------------------
NOTE : INTERNET Connection must required for sending an sms ...


------------------------------------------------------------------------------------------------------------
Retrieval Image From DataBase and Display on WebPage by Using Servlets.

Retrieval Image From DataBase and Display on WebPage by Using Servlets.

Hi Frnds, This Session I will Explain you to "How Retrive Image from DataBase Using Servlets and Display it on WebPage"

The below code is useful for Retrive Image from DataBase Using Servlets and Display it on WebPage.

import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.http.HttpServlet;
import javax.servlet.annotation.WebServlet;

@WebServlet("/ImageDis")

public class ImageDis extends HttpServlet
{
public void service(HttpServletRequest request,HttpServletResponse response)  throws IOException,ServletException
{
 response.setContentType("image/jpeg");

Blob image = null;
Connection con = null;
byte[ ] imgData = null ;
Statement stmt = null;
ResultSet rs = null;

try {

Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://localhost:3306/DbName","UserName","Password");
stmt = con.createStatement();
// Retrieve Image from DataBase using MySQL Query Based on Condition...;
rs = stmt.executeQuery("select imge from empde where id='12'");

if (rs.next()) {
                               //Getting Image From DataBase...;
image = rs.getBlob(1);
imgData = image.getBytes(1,(int)image.length());

} else {
System.out.println("Display Blob Example");
System.out.println("image not found for given id>");

}
// display the image...;

ServletOutputStream out1 = response.getOutputStream();
BufferedOutputStream bout = new BufferedOutputStream(out1);
   
bout.write(imgData);

} catch (Exception e) {
System.out.println("Unable To Display image");
System.out.println("Image Display Error=" + e.getMessage());
} finally {
try {
rs.close();
stmt.close();
con.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}
}

Check the OutPut If you have any Doubts Leave your Comments Below...;

Have a Gr8 Day Frnds...;)

Displaying Text directly beside an image


Hi, Today i wanna show you how to Displaying Text With An Image Within HTML Code...;

If you're trying to place text directly beside an image within your web page HTML code, you may have discovered it's not as easy as it appears. When you place your image HTML code and text within your HTML code, instead of the text and image displaying side by side like a newspaper, it will display like this:


To enable your image and text to display properly together, you will need to add an ALIGN attribute to your image HTML code.

Following is an example image displaying on the left with the text wrapping around the image to the right.

To align your image to left and your text to the right, add ALIGN="left" to your image HTML code like this:

<img border="0" align="left" src="image.jpg"> Hai Frnds,How are You


Following is an example image displaying on the right with the text wrapping around the image to the left.

To align your image to right and your text to the left, add ALIGN="right" to your image HTML code like this:

<img border="0" align="Right" src="image.jpg"> Hai Frnds,How are you



Wrapping your text around your image will enable you to give your content a much more professional look.

Source : http://www.web-source.net/

Try It...,

Have a nice-day...;
JavaScript to Start and Stop the Time

JavaScript to Start and Stop the Time

Hi Frnds, I waana Show you how to Start and Stop the Time Using JavaScript...;

The Below Code is used to Start and Stop the Time Using JavaScript

<!DOCTYPE html>
<html>
<body>

<p>A script on this page Starts and Stops clock:</p>

<p id="demo"></p>

<div>
<form><input type = "submit" value = "Start Time" style = "float:left"></form>

<input type = "submit" value = "Stop Time" style = "margin-left:10px" onclick="myStopFunction()" ></div>

<script>
var myVar = setInterval(function(){ myTimer() }, 1000);

function myTimer() {
var d = new Date();
var t = d.toLocaleTimeString();
document.getElementById("demo").innerHTML = t;
}

function myStopFunction() {
clearInterval(myVar);
}
</script>

</body>
</html>

Observe carefully this code

<p id = “demo”></p>
var myVar = setInterval(function(){ myTimer() }, 1000);

function myTimer() {
var d = new Date();
var t = d.toLocaleTimeString();
document.getElementById("demo").innerHTML = t;
}

This code is used to display the Current System time, when page is loaded.

<input type = "submit" value = "Stop Time" style = "margin-left:10px" onclick="myStopFunction()" >

function myStopFunction() {
clearInterval(myVar);

When we click the “Stop Time” Button, the myStopFunction() is called. It Stops the Time.

<form><input type = "submit" value = "Start Time" style = "float:left"></form>

When we click the “Start Time” Button, the Page will refresh so the time will start again.

Try it...,


Have Nice Day...;
Framework

Framework

A framework, or software framework, is a platform for developing software applications. It provides a foundation on which software developers can build programs for a specific platform. For example, a framework may include predefined classes and functions that can be used to process input, manage hardware devices, and interact with system software. This streamlines the development process since programmers don't need to reinvent the wheel each time they develop a new application.

A framework is similar to an application programming interface (API), though technically a framework includes an API. As the name suggests, a framework serves as a foundation for programming, while an API provides access to the elements supported by the framework. A framework may also include code libraries, a compiler, and other programs used in the software development process.

Several different types of software frameworks exist. Popular examples include ActiveX and .NET for Windows development, Cocoa for Mac OS X, Cocoa Touch for iOS, and the Android Application Framework for Android. Software development kits (SDKs) are available for each of these frameworks and include programming tools designed specifically for the corresponding framework. For example, Apple's Xcode development software includes a Mac OS X SDK designed for writing and compiling applications for the Cocoa framework.

In many cases, a software framework is supported natively by an operating system. For example, a program written for the Android Application Framework will run on an Android device without requiring other additional files to be installed. However, some applications require a specific framework in order to run. For example, a Windows program may require Microsoft .NET Framework 4.0, which is not installed on all Windows machines (especially PCs running older versions of Windows). In this case, the Microsoft .NET Framework 4 installer package must be installed in order for the program to run.

NOTE: While frameworks generally refer to broad software development platforms, the term can also be used to describe a specific framework within a larger programming environment. For example, multiple Java frameworks, such as Spring, ZK, and the Java Collections Framework (JCF) can be used to create Java programs. Additionally, Apple has created several specific frameworks that can be accessed by OS X programs. These frameworks are saved with a .FRAMEWORK file extension and are installed in the /System/Library/Frameworks directory. Examples of OS X frameworks include AddressBook.framework, CoreAudio.framework, CoreText.framework, and QuickTime.framework.

Source : http://techterms.com

1(One) Way To Access Blocked Sites

           Is you school, college or office blocking you from getting on social network sites like Friendster, Facebook, Myspace, Bebo, Hi5, Orkut, etc? Here One way you can bypass the restrictions and surf like normal, but please check with your local authorities before using them. We will not held any responsibility if you’ve breach the regulations of any.


Using Tor Browser...

What is the Tor Browser?

          The Tor software protects you by bouncing your communications around a distributed network of relays run by volunteers all around the world: it prevents somebody watching your Internet connection from learning what sites you visit, it prevents the sites you visit from learning your physical location, and it lets you access sites which are blocked.

The Tor Browser lets you use Tor on Windows, Mac OS X, or Linux without needing to install any software. It can run off a USB flash drive, comes with a pre-configured web browser to protect your anonymity, and is self-contained.

Official Web Site : https://www.torproject.org/projects/torbrowser.html.en

Download the latest tor tarball as your requirement like you OS(Operating System) example windows OS 64/34 bit/Mac OS/Linux etc? from Official Web Site(Use above link).

For Windows OS Users :

After Downloading the package extract it and click the tor.exe file, that's it.

For Linux OS Users :

  • After Downloading the package, open a terminal(ctrl+alt+t) window and navigate to the directory you downloaded it to
  • run this command: tar -xvf <NAME_OF_TARBALL>
  • use cd to go into the created directory (ex: /opt/tor-browser_en-US/Browser)
  • run the start script with ./start_tor_browser.sh
Good Luck Friends...
Generates Random Integers in a Specific Range

Generates Random Integers in a Specific Range

import java.util.Random;

/** Generate random integers in a certain range. */
public final class RandomRange {
 
  public static final void main(String... aArgs){
    log("Generating random integers in the range 1..10.");
   
    int START = 1;
    int END = 10;
    Random random = new Random();
    for (int idx = 1; idx <= 10; ++idx){
      showRandomInteger(START, END, random);
    }
   
    log("Done.");
  }
 
  private static void showRandomInteger(int aStart, int aEnd, Random aRandom){
    if (aStart > aEnd) {
      throw new IllegalArgumentException("Start cannot exceed End.");
    }
    //get the range, casting to long to avoid overflow problems
    long range = (long)aEnd - (long)aStart + 1;
    // compute a fraction of the range, 0 <= frac < range
    long fraction = (long)(range * aRandom.nextDouble());
    int randomNumber =  (int)(fraction + aStart);  
    log("Generated : " + randomNumber);
  }
 
  private static void log(String aMessage){
    System.out.println(aMessage);
  }
}


An example run of this class:
Generating random integers in the range 1..10.
Generated : 9
Generated : 3
Generated : 3
Generated : 9
Generated : 4
Generated : 1
Generated : 3
Generated : 9
Generated : 10
Generated : 10
Done.
Generates Random Floating Point Numbers

Generates Random Floating Point Numbers

import java.util.Random;

/**
 Generate pseudo-random floating point values, with an
 approximately Gaussian (normal) distribution.

 Many physical measurements have an approximately Gaussian
 distribution; this provides a way of simulating such values.
*/
public final class RandomGaussian {

  public static void main(String... aArgs){
    RandomGaussian gaussian = new RandomGaussian();
    double MEAN = 100.0f;
    double VARIANCE = 5.0f;
    for (int idx = 1; idx <= 10; ++idx){
      log("Generated : " + gaussian.getGaussian(MEAN, VARIANCE));
    }
  }
 
  private Random fRandom = new Random();

  private double getGaussian(double aMean, double aVariance){
    return aMean + fRandom.nextGaussian() * aVariance;
  }

  private static void log(Object aMsg){
    System.out.println(String.valueOf(aMsg));
  }
}


An example run of this class:
Generated : 99.38221153454624
Generated : 100.95717075067498
Generated : 106.78740794978813
Generated : 105.57315286730545
Generated : 97.35077643206589
Generated : 92.56233774920052
Generated : 98.29311772993057
Generated : 102.04954815575822
Generated : 104.88458607780176
Generated : 97.11126014402141
Generate random numbers

Generate random numbers

import java.util.Random;

/** Generate 10 random integers in the range 0..99. */
public final class RandomInteger {
 
  public static final void main(String... aArgs){
    log("Generating 10 random integers in range 0..99.");
   
    //note a single Random object is reused here
    Random randomGenerator = new Random();
    for (int idx = 1; idx <= 10; ++idx){
      int randomInt = randomGenerator.nextInt(100);
      log("Generated : " + randomInt);
    }
   
    log("Done.");
  }
 
  private static void log(String aMessage){
    System.out.println(aMessage);
  }
}

Example run of this class:
Generating 10 random integers in range 0..99.
Generated : 44
Generated : 81
Generated : 69
Generated : 31
Generated : 10
Generated : 64
Generated : 74
Generated : 57
Generated : 56
Generated : 93
Done.
Sending Email through Gmail Server Using JavaServlets

Sending Email through Gmail Server Using JavaServlets

import java.io.*;
import java.net.*;

import java.util.Properties;
import javax.mail.AuthenticationFailedException;
import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.servlet.*;
import javax.servlet.http.*;

public class SendEmail extends HttpServlet {

 protected void processRequest(HttpServletRequest request,
                                  HttpServletResponse response)
                   throws IOException, ServletException {

        final String err = "/error.jsp";
        //final String succ = "/success.jsp";

        String from = "abc@gmail.com"    // Sender Email-Id
        String to = "xyz@gmail.com"     // Receiver Email-Id

System.out.println("mail : "+to);
        String subject = "Subject";          //Your Subject.
        String message = "Message"    Your Message

        String login = "abc@gmail.com";        //Sender Mail_Id
        String password = "xyx"; //Sender Mail Password

        try {
            Properties props = new Properties();
            props.setProperty("mail.host", "smtp.gmail.com");
            props.setProperty("mail.smtp.port", "587");
            props.setProperty("mail.smtp.auth", "true");
            props.setProperty("mail.smtp.starttls.enable", "true");

            Authenticator auth = new SMTPAuthenticator(login, password);

            Session session = Session.getInstance(props,auth);

            MimeMessage msg = new MimeMessage(session);
            msg.setText(message);
            msg.setSubject(subject);
            msg.setFrom(new InternetAddress(from));
            msg.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
            Transport.send(msg);

        } catch (AuthenticationFailedException ex) {
            request.setAttribute("ErrorMessage", "Authentication failed");

            RequestDispatcher dispatcher = request.getRequestDispatcher(err);
            dispatcher.forward(request, response);
            return;

        } catch (AddressException ex) {
            request.setAttribute("ErrorMessage", "Wrong email address");

            RequestDispatcher dispatcher = request.getRequestDispatcher(err);
            dispatcher.forward(request, response);
            return;
        } catch (MessagingException ex) {
           request.setAttribute("ErrorMessage", ex.getMessage());
       
            RequestDispatcher dispatcher = request.getRequestDispatcher(err);
            dispatcher.forward(request, response);
            return;
        }
            RequestDispatcher dispatcher = request.getRequestDispatcher("/success.jsp?email="+to);
            dispatcher.forward(request, response);
            return;
    }

    private class SMTPAuthenticator extends Authenticator {

        private PasswordAuthentication authentication;

        public SMTPAuthenticator(String login, String password) {
            authentication = new PasswordAuthentication(login, password);
        }

        protected PasswordAuthentication getPasswordAuthentication() {
            return authentication;
        }
    }

    protected void doPost(HttpServletRequest request,
                         HttpServletResponse response)
                   throws ServletException, IOException {
        processRequest(request, response);
    }

 
}

Java Date and Time

Java Date and Time

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class SimpleDateFormatExample {
public static void main(String[] args) {

Date curDate = new Date();

SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");

String DateToStr = format.format(curDate);
System.out.println(DateToStr);

format = new SimpleDateFormat("dd-M-yyyy hh:mm:ss");
DateToStr = format.format(curDate);
System.out.println(DateToStr);

format = new SimpleDateFormat("dd MMMM yyyy zzzz", Locale.ENGLISH);
DateToStr = format.format(curDate);
System.out.println(DateToStr);

format = new SimpleDateFormat("E, dd MMM yyyy HH:mm:ss z");
DateToStr = format.format(curDate);
System.out.println(DateToStr);

try {
Date strToDate = format.parse(DateToStr);
System.out.println(strToDate);
} catch (ParseException e) {
e.printStackTrace();
}
}
}
Output:

2014/12/19
19-12-2014 04:54:26
19 December 2014 India Standard Time
Fri, 19 Dec 2014 16:54:26 IST
Fri Dec 19 16:54:26 IST 2014


Java Program to print Circular (Spiral) Matrix

Question:

            Write a Program in Java to fill a square matrix of size ‘n*n” in a circular fashion (clockwise) with natural numbers from 1 to n*n, taking ‘n’ as input.

For example: if n = 4, then n*n = 16, hence the array will be filled as given below




Note: This program is also known as Spiral Matrix

Solution:

import java.io.*;


class Circular_Matrix

    {

        public static void main(String args[])throws IOException

        {

            BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

            System.out.print("Enter the number of elements : ");

            int n=Integer.parseInt(br.readLine());



            int A[][]=new int[n][n];

            int k=1, c1=0, c2=n-1, r1=0, r2=n-1;



            while(k<=n*n)

                {

                    for(int i=c1;i<=c2;i++)

                    {

                        A[r1][i]=k++;

                    }



                    for(int j=r1+1;j<=r2;j++)

                    {

                        A[j][c2]=k++;

                    }



                    for(int i=c2-1;i>=c1;i--)

                    {

                        A[r2][i]=k++;

                    }



                    for(int j=r2-1;j>=r1+1;j--)

                    {

                        A[j][c1]=k++;

                    }



                 c1++;

                 c2--;

                 r1++;

                 r2--;

                }

 

            /* Printing the Circular matrix */

            System.out.println("The Circular Matrix is:");

            for(int i=0;i<n;i++)

                {

                    for(int j=0;j<n;j++)

                        {

                            System.out.print(A[i][j]+ "\t");

                        }

                 System.out.println();

                }

        }

    }

Working:



    
            We will take a variable ‘k’ which will begin with 1 and will do the work of filling. i.e. for every cell, it will increase by 1. The below given processes will repeat till the value of ‘k’ becomes ‘n*n’

C1 denotes the index of the column from where we have to begin. Hence its initial value will be 0.
C2 denotes the index of the column where we have to end. Hence its initial value will be ‘n-1′ (n is the size of the matrix).
R1 denotes the index of the row from where we have to begin. Hence its initial value will be 0.
R2 denotes the index of the row where we have to end. Hence its initial value will be ‘n-1′ (n is the size of the matrix).
The filling up of the matrix in circular fashion will consist of 4 different steps which will continue till the matrix is filled completely.

Step 1: We will fill the elements of Row 0 (R1), starting from Column 0 (C1) till ‘n-1′ (C2). The cells which will be filled are marked in the image above in yellow color.
The elements will be accessed as follows: A[R1][i], where ‘i’ will go from C1 to C2 (A[ ][ ] is the array)

Step 2: Now, we will fill the elements of Column ‘n-1′ (C2), starting from Row R1+1 till R2. The cells which will be filled are marked in the image above in grey color.
The elements will be accessed as follows: A[j][C2], where ‘j’ will go from R1+1 to R2 (A[ ][ ] is the array)

Step 3: Next we will fill the elements of Row ‘n-1′ (R2), starting from Column C2-1 till C1. The cells which will be filled are marked in the image above in green color.
The elements will be accessed as follows: A[R2][i], where ‘i’ will go from C2-1 to C1 (A[ ][ ] is the array)

Step 4: Now, we will fill the elements of Column C1, starting from Row R2-1 till R1+1. The cells which will be filled are marked in the image above in blue color.
The elements will be accessed as follows: A[j][C1], where ‘j’ will go from R2-1 to R1+1 (A[ ][ ] is the array)

The above 4 steps will now repeat with the inner matrix which is marked in white color in the above image. For the inner matrix,
C1 will increase by 1 i.e. it will be C1+1.
C2 will decrease by 1 i.e. it will be C2-1.
R1 will increase by 1 i.e. it will be R1+1.
R2 will decrease by 1 i.e. it will be R2-1.

The above processes will repeat till we have filled in ‘n*n’ values.
  
Output:



Add Your Name (or) Application to right click Of My Computer

Add Your Name (or) Application to right click Of My Computer

Caution.

As it   is related to Windows registry it   can be dangerous. So, Try this at  your own risk.

To write your name on right click application

Please follow the steps

1. Copy/ Paste the following code in Notepad And then Save it as  .reg


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Registry Editor]

@="Your name or Name of the Application"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Registry Editor\command]

@="Location of   the Application"

2. Now edit it and then Type your name In

Eample :

[HKEY_CLASSES_ROOT \CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Registry Editor]

@="AHK"

3.   If you want to get any application, once you click your name or name
Of   application

Then, type the location Of the application Which you want to open In :

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Registry Editor\command]

@="Location of   the Application"

For  example : 

C:\Program  Files\Yahoo! \Messenger\messenger.exe
That's it finally save it And then Run it
------------------------------------------------------------

To  add Application Control Panel

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSI D\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\ControlPanel\command]
@="rundll32.exe shell32.dll,Control_RunDLL"

To  add Application add/remove

[HKEY_CLASSES_ROOT \CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove\command]
@="control appwiz.cpl"

To  add Application Reboot

[HKEY_CLASSES_ROOT \CLSI D\ {20D04FE0-3AEA-1069-A2D8-08002B30309D}\ shell\ [Reboot ] \ command]
@="shutdown -r -f -t 5"

To  add Application Shutdown

[HKEY_CLASSES_ROOT \CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\ shell\[ Shutdown]\command]
@="shutdown -s -f -t 5"

Keyboard Shortcuts List for Windows 7 and Windows Vista



If you spend as much time in front of a computer as I do, learning a shortcut which can save a few seconds off a common task can be significant. Throw in the fact that I’m also a bit lazy… and it should explain why I’m always looking around for new Keyboard Shortcuts. The majority of Windows 

7 keyboard shortcuts remain the same from Windows Vista and XP (thank you for that Microsoft), so many of the shortcuts I’ve compiled in this post should look familiar. If you have a favorite I’ve missed or you find a new one however, please be sure to tell me about it in the comments so I can add it to the list! 

Windows 7 and Windows Vista Keyboard Shortcuts

Windows logo key:: Open or close the Start menu 

Windows logo key + Left Arrow Key:: Snap current window to left side of screen for side-by-side viewing 

Windows logo key + Right Arrow Key:: Snap current window to left side of screen for side-by-side viewing 

Windows logo key + Left Arrow 2x:: Snap current window left across multiple monitors for side-by-side viewing 

Windows logo key + PAUSE:: Display the System Properties dialog box 

Windows logo key + D:: Display the desktop 

Windows logo key + M:: Minimize all windows 

Windows logo key + SHIFT+M:: Restore minimized windows to the desktop 

Windows logo key + E:: Open Computer 

Windows logo key + F:: Search for a file or folder 

CTRL+Windows logo key + F:: Search for computers (if you are on a network) 

Windows logo key + L:: Lock your computer or switch users 

Windows logo key + R:: Open the Run dialog box 

Windows logo key + T:: Cycle through programs on the taskbar 

Windows logo key + TAB:: Cycle through programs on the taskbar by using Windows Flip 3-D 

CTRL+Windows logo key + TAB:: Use the arrow keys to cycle through programs on the taskbar 
by using Windows Flip 3-D 

Windows logo key + SPACEBAR:: Bring all gadgets to the front and select Windows Sidebar 

Windows logo key + G:: Cycle through Sidebar gadgets 

Windows logo key + U:: Open Ease of Access Center 

Windows logo key + X:: Open Windows Mobility Center 

Windows logo key + Any number key:: Open the Quick Launch shortcut that is in the position that 
corresponds to the number. For example, Windows logo key + 1 :: Launch the first shortcut in the 
Quick Launch menu. 

Windows Key + S:: OneNote Screen Clipping Tool (Requires OneNote) 

Windows Key + =:: Open Magnifier Tool 

General Keyboard Shortcuts

F1:: Display Help 
F2:: Rename the selected item 
F3:: Search for a file or folder 
F4:: Display the Address bar list in Windows Explorer 
F5– Refresh the active window 
F6:: Cycle through screen elements in a window or on the desktop 
F7:: Check Spelling in open document 
F10:: Activate the menu bar in the active program 
CTRL+A:: Select all items in a document or window 
CTRL+C:: Copy the selected item 
CTRL+X:: Cut the selected item 
CTRL+V:: Paste the selected item 
CTRL+Z:: Undo an action 
CTRL+Y:: Redo an action 
SHIFT+DELETE:: Delete the selected item without moving it to the Recycle Bin first (Outlook Tip 
also) 
SHIFT+F10:: Display the shortcut menu for the selected item 
Hold SHIFT when you insert a CD:: Prevent the CD from automatically playing 
CTRL+ESC:: Open the Start menu 
CTRL+SHIFT with an arrow key:: Select a block of text 
CTRL+SHIFT+ESC:: Open Task Manager 
CTRL+F4:: Close the active document (in programs that allow you to have multiple documents open 
simultaneously) 
CTRL+ALT+TAB:: Use the arrow keys to switch between open items 
CTRL+Mouse scroll wheel:: Change the size of icons on the desktop 
ALT+ESC:: Cycle through items in the order in which they were opened 
ALT+ENTER:: Display properties for the selected item 
ALT+F4:: Close the active item, or exit the active program 
ALT+SPACEBAR:: Open the shortcut menu for the active window 
ALT+UP ARROW:: View the folder one level up in Windows Explorer 
ALT+TAB:: Switch between open items 
ALT+SHIFT+TAB:: Switch between open items in reverse order 
Windows logo key + TAB:: Cycle through programs on the taskbar by using Windows Flip 3-D 
CTRL+Windows logo key + TAB:: Use the arrow keys to cycle through programs on the taskbar 
by using Windows Flip 3-D 
ESC:: Cancel the current task 
Internet Explorer Keyboard Shortcuts
CTRL+click:: Open links in a new tab in the background 
CTRL+SHIFT+click:: Open links in a new tab in the foreground 
CTRL+T:: Open a new tab in the foreground 
CTRL+TABor CTRL+SHIFT+TAB:: Switch between tabs 
CTRL+W:: Close current tab (or the current window if tabbed browsing is disabled) 
ALT+ENTER:: Open a new tab in the foreground from the Address bar 
CTRL+n{where n is a number between 1 and 8}Switch to a specific tab number 
CTRL+9:: Switch to the last tab 
CTRL+ALT+F4:: Close other tabs 
CTRL+Q:: Toggle Quick Tabs (thumbnail view) on or off 
ALT+M:: Open the Home menu 
ALT+R:: Open the Print menu 
ALT+J:: Open the RSS menu 
ALT+O:: Open the Tools menu 
ALT+L:: Open the Help menu 
F1:: Display Help 
F11:: Toggle between full-screen and regular views of the browser window 
TAB:: Move forward through the items on a webpage, the Address bar, or the Links bar 
SHIFT+TAB:: Move back through the items on a webpage, the Address bar, or the Links bar 
ALT+HOME:: Go to your home page 
ALT+RIGHT ARROW:: Go to the next page 
ALT+LEFT ARROWor BACKSPACE:: Go to the previous page 
SHIFT+F10:: Display a shortcut menu for a link 
CTRL+TABor F6:: Move forward through frames and browser elements (only works if tabbed 
browsing is disabled) 
CTRL+SHIFT+TAB:: Move backward between frames (only works if tabbed browsing is disabled) 
CTRL+F:: Find on this page 
F5:: Refresh the current webpage 
CTRL+F5:: Refresh the current webpage, even if the time stamp for the web version and your 
locally stored version are the same 
ESC:: Stop downloading a page 
CTRL+O:: Open a new website or page 
CTRL+N:: Open a new window 
CTRL+W:: Close the current window (if you only have one tab open) 
CTRL+S:: Save the current page 
CTRL+P:: Print the current page or active frame 
CTRL+I:: Open Favorites 
CTRL+H:: Open History 
CTRL+J:: Open Feeds 
ALT+P:: Open the Page menu 
ALT+T:: Open the Tools menu 
ALT+H:: Open the Help menu 
Dialog box keyboard shortcuts
CTRL+TAB:: Move forward through tabs 
CTRL+SHIFT+TAB:: Move back through tabs 
TAB:: Move forward through options 
SHIFT+TAB:: Move back through options 
ALT+underlined letter:: Perform the command (or select the option) that goes with that letter 
ENTER:: Replaces clicking the mouse for many selected commands 
SPACEBAR:: Select or clear the check box if the active option is a check box 
Arrow keys:: Select a button if the active option is a group of option buttons 
F1:: Display Help 
F4:: Display the items in the active list 
BACKSPACE:: Open a folder one level up if a folder is selected in the Save As or Open dialog box 
Windows Sidebar keyboard shortcuts
Windows logo key + SPACEBAR:: Bring all gadgets to the front and select Sidebar 
Windows logo key +G:: Cycle through Sidebar gadgets 
TAB:: Cycle through Sidebar controls 
Windows Explorer keyboard shortcuts
END:: Display the bottom of the active window 
HOME:: Display the top of the active window 
F11:: Maximize or minimize the active window 
CTRL+N:: Open a new window 
CTRL+Mouse scroll wheel:: Change the size and appearance of file and folder icons 
NUM LOCK+ASTERISK (*) on numeric keypad:: Display all subfolders under the selected folder 
NUM LOCK+PLUS SIGN (+) on numeric keypad:: Display the contents of the selected folder 
NUM LOCK+MINUS SIGN (-) on numeric keypad:: Collapse the selected folder 
LEFT ARROW:: Collapse the current selection (if it is expanded), or select the parent folder 
ALT+D:: Select the Address bar 
ALT+LEFT ARROW:: View the previous folder 
ALT+RIGHT ARROW:: View the next folder 
RIGHT ARROW:: Display the current selection (if it is collapsed), or select the first subfolder 
Keyboard Shortcuts you will never use!
Left ALT+left SHIFT+PRINT SCREEN(or PRTSCRN) :: Turn High Contrast on or off 
Left ALT+left SHIFT+NUM LOCK:: Turn Mouse Keys on or off 
SHIFT five times:: Turn Sticky Keys on or off 
Hold NUM LOCK for five seconds:: Turn Toggle Keys on or off 
Windows logo key +U:: Open the Ease of Access Center 
SHIFT with any arrow key:: Select more than one item in a window or on the desktop, or select 
text within a document 
CTRL with any arrow key+SPACEBAR:: Select multiple individual items in a window or on the 
desktop 
CTRL+RIGHT ARROW:: Move the cursor to the beginning of the next word 
CTRL+LEFT ARROW:: Move the cursor to the beginning of the previous word 
CTRL+DOWN ARROW:: Move the cursor to the beginning of the next paragraph 
CTRL+UP ARROW:: Move the cursor to the beginning of the previous paragraph
Some Tips And Tricks in Windows

Some Tips And Tricks in Windows

1.TRICK TO CREATE FOLDERS WITHOUT NAME

=>Click on a FOLDER
=>Right click and goto rename option
=>Delete the old name
=>Pressing ALT key type 0160
=>Now press enter
=>You have created a folder without name

2.TRICK TO ADD YOUR NAME IN TASK BAR
GOTO

=>Start
=>Control Panel
=>Regional & Language Options
Customize
=>Time
=>AM Symbol
=>Enter your name

Thats it,your name is added to your Task Bar

3.TRICK TO CREATE A AUTORUN CD
=>Open notepad and type
[autorun]
OPEN=setup.exe
ICON=iconname.ico
=>save as autorun.inf on the desktop

Write ur CD with the autorun file, ur desired icon for the CD & the setup file.
iconname.ico is the name of the icon file which is desired for ur CD. =>Setup.exe is the name of the
setup which u want to make it autorun.

4.TRICK TO CHANGE THE INTERNET EXPLORER TITLE

Follow these simple steps

1)=>Go to Start
2)=>Type Regedit
3)Go to
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Window Title
4)Enter what you want appear in the title bar
eg:YOUR NAME
That’s it YOUR NAME will be displayed.

5.TRICK TO CLEAN RAM WITHOUT SOFTWARE
=>To clean ur RAM without software
=>Open notepad & type FREEMEM=SPACE(64000000)
=>Save it as ram.vbs and close it
=>Now run the script by double click on ti
=>now your pc work fast

6.TRICK TO DISABLE AUTOPLAY OF PENDRIVE
Disable autoplay of pendrive to avoid virus activation:
go to run

=>Run
=>Type gpedit.msc
=>Computer configuration
=>Administrative Templates
=>System
(In the Right side)
=>Go to Turn off Autoplay
=>Enable
=>All drives
7.TRICK TO FIX CORRUPTED FILES IN WINDOWS XP
=>Load XP cd into cd drive
=>Go to Run
=>Type sfc/scannowok
=>THEN copy and paste the lost file from cd

8.TRICK TO CONVERT TEXT INTO VOICE

A hidden trick to convert your text to voice without any software.

=>Try out this go to Run type
=>control speech
=>write any text & speech it

9.TRICK TO OPERATE PC WITHOUT MOUSE

=>Here is a simple trick to operate COMPUTER without MOUSE
PRESS the left
SHIFT+ALT+NumLock+ok
Now you can use your number keys to act as mouse
Note:It will not disable your mouse
To return back to previous state again press these combination keys together.

10.TRICK TO SHUTDOWN PC 100 TIMES FASTER
=>Press ctrl+alt+del
=>open task Manager
=>click the shutdown Tab.
=>While holding ctrl key,
=>Press TURN OFF.
with this simple trick you can shut down your pc 100 times faster.

10 Awesome Google Search Tricks.....


You may be spending hours in searching with Google.So learn some Google search hacks to get effective search results.

1. Identify Local  Time  for Any City  in the World using Google
    If you want to know current local time in a particular city, use the following method. To see the current           local TIME in INDIA do the following.

   time india

2. Search  for Keywords with Similar Meaning using   Google
    Instead of searching for only the given word, using ~ before the keyword you can instruct Google to             search for webpages with the exact given word or the words which has same meaning. In the following         example, giving ~tutorial also searches for keywords guide, manual, reference etc.

    Linux Installation ~tutorial

3. Match Any Single Word  in the Search Using *,While searching, if you are not sure about which               keyword to be placed in the phrase, you can match any single word using *.

    For example, if you want to search for examples of Jedit editor substitution, and you are not sure whether     to search for “Jedit editor find and replace examples”, or “Jedit editor search and replace examples”, then     use * , which will match either find, search or any other word, as shown below.

   Jedit editor * and replace examples

4. Use OR  in Google Search
    Using OR operator in between the words makes the following kind of search possible in Google.                 Following example will search for Cuda examples or Cuda programs.

    Cuda examples OR programs

Note: The keyword OR should be in uppercase


5. Identify Definition a Word. To view the definition of a word use the following method.

   define: Operating System

6. Mathematical  Calculations using Google,Normally for doing the metric conversions we will be using some    online conversion websites or conversion softwares.You can use the Google search box as your scientific      calculator as   
   
   sqrt(25)

7. Unit Conversion using Google, The following will show the equivalent pounds for one kg.

    kg  in pound

8. Money Conversion using Google, Following converts US Dollars in Rupees.
  
    USD  in INR

9. Translate Using Google, Use Google to translate whatever word you wish to see in other language.

     translate hello  into French

10. Identify Local Weather  for Any City  i n the World using Google, To see the current weather in Berlin          do the following.

     weather Berlin

Enjoy With Google Tricks

How to Lock Your Computer Using Mouse


Alt+Ctrl+Del or Windows+L to lock our PCs.Instead of trying those windows keyboard shortcut keys to lock Pc, lets now tryout something new.
Some might have already know this trick already…

1. Just Right click on the desktop, point to New and click Shortcut.

2. In the Create Shortcut dialog box, copy the following into the ‘Type the location’ of the
    item text box:

rundll32 user32.dll,LockWorkStation” remove quotes while typing.

3. Click Next.

4. In “Type a name for this shortcut”, type LOCK MY  PC and Click Finish

5. Now just double click on the icon, your desktop will be locked.

Though this is a age old trick.It makes some difference to newbies