Proxy > Gmail Facebook Yahoo!

This trick will shutdown a selected pc from Your LAN network. You can apply this trick in your office or school.. but i take no responsibilities fro any action. Its just for fun. Here is how to use this trick :



1. Go to Start > Run and type in cmd 2. You will see the command prompt window . Now type in this command line. shutdown.exe -i And hit Enter. You will see remote shutdown Window. If you know someone’s IP on a computer in your Local Area network, type in their IP Address after clicking the add button. 3. After entering the IP Address click OK . Now watch the person’s face as their computer shuts down....
[Read More...]


Automatic Window refresh



Whenever you make a change to your windows you have to press F5 or do a manual refresh sometimes its very annoying Now with this trick you can tell windows to increase the rate at which it does the refreshing.Just follow given steps: 1) Type Regedit in run.2) In Registry editor window go toHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Update.3)...
[Read More...]


Nokia Codes



IMEI no: : *#06# Reset to factory settings : *#7780# Clear the LCD display (operator logo) : *#67705646# Bluetooth device address : *#2820# Sim clock status : *#746025625# Default Security Code : 12345 On Enhanced Full Rate Codec : *3370# Off Enhanced Full Rate Codec : *#3370# On Half Rate Codec. : *4720# Off Half Rate Codec...
[Read More...]


Problem:: My Windows Login Screen has changed to "Classic Logon Box". I want the new Welcome Screen back



Solution: Type "control userpasswords" in RUN dialog box or Open "User Accounts" in Control Panel. Then click on "Change the way Users log on and off". Now check the option "Use Welcome Screen". If you get following error: Uninstall client services for netware. Then Open "Network Connections" and open Properties of your Internet Connection. Now goto "Networking" tab and select "Client services on Netware" option and...
[Read More...]


Trick to hack administrator Account using Guest account in XP- 100% works



Follow these steps: 1. ok, First of all login through your guest account and open C:\WINDOWS\system32 2. Now look for cmd.exe and sethc.exe 3. copy these both exe files and place it any safe location 4. Now again go to C:\WINDOWS\system32, now rename cmd.exe into sethc.exe...... As sethc.exe is already exist, so a window...
[Read More...]


Program to find the LCM of a number



#include<iostream>   void main() { using namespace std;   int num1,num2,a,b; cout<<"Enter 1st no. "; cin>>num1; cout<<"Enter 2nd no. "; cin>>num2; a=num1; b=num2; while(a!=b) { if(a<b) { a+=num1; } else { b+=num2; } }   cout<<"LCM is = "<<a; cin.get(); ...
[Read More...]


Program to find the GCD of a number using C++



  #include<iostream>   void main() { using namespace std;   int num1,num2; cout<<"Enter 1st no. "; cin>>num1; cout<<"Enter 2nd no. "; cin>>num2; while(num1!=num2) { if(num1>num2) { num1 = num1-num2; } else { num2 = num2-num1; } }   cout<<"GCD is = "<<num1; cin.get(); ...
[Read More...]


Program to Demonstrate Inheritance in Java



Instructions: 1.)Save this program to a file and name it Inheritance.java  import javax.swing.JOptionPane; class SuperClass //The Superclass { String str="We Got Copieeed!!!"; void func() { JOptionPane.showMessageDialog(null, str); //Prints the string 'str' in a window. } }   class SubClass extends SuperClass //The SubClass inheriting SuperClass { }   public class Inheritance {   public static void...
[Read More...]


JAVA program to demonstrate Abstract class example



abstract class Abs { abstract void display(); } class B extends Abs { void display() { System.out.println("Hello"); } } public class A { public static void main(String args[]) { B objB = new B(); objB.display();   } } In the above program, the display() function in class B completes the display() function in abstract class A.  ...
[Read More...]


C++ program to open a file



This program will show you how to open a file in C++.We’ll need to include the fstream header file. The fstream header file contains the necessary classes to read, write files. It includes ofstream: Stream class to write on files ifstream: Stream class to read from files fstream: Stream class to both read and write from/to files. #include <iostream> #include <fstream> using namespace std; int main()   {   ...
[Read More...]


Applet to make a smiley face



In this applet, we’ll be making a face using different shapes. The applet package contains methods to draw an Oval, a line, rectangle, rounded rectangle, arc, etc. To make a smiley face, we will be using Ovals and arcs. Syntax for drawing an Oval: 1 obj.drawOval(x,y,width,height); In the above syntax, drawOval() method needs to be supplied four arguments. The first two arguments to set the position of the oval along the...
[Read More...]


C++ Program to demonstrate Insertion Sort



Insertion sort is a simple sorting algorithm: a comparison sort in which the sorted array (or list) is built one entry at a time. How it works: In insertion sort,elements are entered into the array(or list) 1-by-1. When the first element is entered, it is placed at the 1st position in the list(0th position in an array). When a new element is entered, it is compared to our already entered element and is decided whether...
[Read More...]


Java program to to convert Octal number into Decimal number



Octal to Decimal: How to Convert Octal to decimal conversion is one of the most commonly taught problem solving exercises in computer basics. So is there an octal to decimal formula? Yes, an octal number can be converted to a decimal number using the following formula: Decimal Form = Ʃ(ai x 8i) In this formula, ‘a’ is the individual digit being converted, while ‘i‘ is the number of the digit counting from the right-most...
[Read More...]


Tic Tac Toe in C++



This program is a game program, Tic Tac Toe. Most of us have played this game in school days, we will be making a C++ program on it now. This program is quite lengthy, so I’ll first explain each variable and function. Variables used: (global) int gameover: This variable is initialized to 0 and its value is altered to 1 when the game...
[Read More...]


Java program to perform binary search



Example: Consider an sorted array containing 5,15,25,30,35,40 Suppose we want to search for the number 30 in the given array. The algorithm performs the search in the following steps. Step 1: Compare the number to be searched with the middle element i.e 20 in this case. So the algorithm compares the number 30 with 20. Step 2: If the...
[Read More...]


Java program to generate the Hailstone sequence (Collatz conjecture).



import java.util.Scanner; public class HailStone {   static Scanner MyScanner = new Scanner(System.in);   public static void main(String[] args) {     System.out.println("This program will generate the HailStone sequence. ");     System.out.println("Enter a number: ");     int num = MyScanner.nextInt(); //Taking input from user     while(num>1)    ...
[Read More...]


Java interview questions and answers



What is an abstract method?An abstract method is a method which doesn’t have a body, just declared with modifier abstract. Explain the use of the finally block.Finally block is a block which always executes. The block executes even when an exception is occurred. The block won't execute only when the user calls System.exit() What is the initial state of a thread?It is in a ready...
[Read More...]


C, C++ OOPs Question



What is Operator, Operand, Expression, Statement in 'C'? What is polymorphism? What is operator overloading? What are templates? Declare a void pointer. Declare a function pointer which takes a pointer to char as an argument and returns a void pointer. Type-define a function pointer which takes a int and float as parameter and returns a float *. What does the following C statement do? while(*c++ = *d++); assuming c and...
[Read More...]


18. Goldbach's Conjecture. Goldbach's Conjecture is that any even number is the sum of two primes. Write a program to test Goldbach's Conjecture over a range of numbers.



import java.util.*; public class Goldbach {   public static void main(String [] args)   {     Scanner scan=new Scanner(System.in);         System.out.println("Enter Ending Range:");     int endRange=scan.nextInt();         System.out.println("Goldbach's Conjecture to Range=:");     for(int num=4;num<=endRange;num=num+2)    ...
[Read More...]


What is the Sieve of Eratosthenes?



A prime number is a natural number greater than 1 that can be divided without remainder only by itself and by 1. Natural numbers n that can be divided by a number less than n and greater than 1 are composite numbers. The Sieve of Eratosthenes identifies all prime numbers up to a given number n as follows: Write down the numbers 1, 2, 3, ..., n. We will eliminate composites by marking them. Initially all numbers are unmarked....
[Read More...]


11. Sieve of Eratosthenes. Using the Sieve principle, write a program that can produce all the prime numbers greater than zero and less than or equal to some largest number Max.



import java.util.*; public class Eratosthenes {   int max;   static int primes[];     public static void main(String args[])   {     Eratosthenes erat = new Eratosthenes();     erat.find_primes();     for(int i=0;i<primes.length;i++)     {       System.out.print(primes[i]+",");     }   }  ...
[Read More...]


Junior Java programmer interview questions



Normal 0 false false false EN-US X-NONE X-NONE ...
[Read More...]



Send mail to your Friends.  

Expert Feed

 
Return to top of page Copyright © 2011 | My Code Logic Designed by Suneel Kumar