Tuesday, December 23, 2008

Some Of The Useful Links Here

USEFULL SITES HERE:

Free sms to India :

SEND FREE SMS
CLICK HERE


Free Games Site 4u :
CLICK HERE1
CLICK HERE2
CLICK HERE3


FOR Free Webhosting :
CLICK HERE

FOR ONLINE TIPS :
CLICK HERE

Hackers' Black Book :
DOWNLOAD HERE

FOR ALL EBOOK :
CLICK HERE

FOR PC SOFTWARE :
CLICK HERE1
CLICK HERE2

FOR WALLPAPER :
CLICK HERE

List of e-Papers in India (English) :



The New Indian Express

http://epaper.newindpress.com/

The Telegraph

http://epaper.telegraphindia.com/default.aspx?xb=true

Times Ascent

http://timesascent.in/

Times Of India / The Economic Times

http://epaper.timesofindia.com/

The Pioneer

http://70.86.150.130/pioneer/login.aspx

MINT
http://epaper.livemint.com/

Mid-Day (a Mumbai Daily)
http://epapers2.mid-day.com/midday/index.htm

Mail Today
http://mailtoday.in/

Hindustan Times
http://epaper.hindustantimes.com/login.aspx

DNA (Daily News & Analysis)
http://digital.dnaindia.com/

Deccan Herald
http://deccanheraldepaper.com/

Deccan Chronicle
http://www.dc-epaper.com/deccanchronicle/Login.aspx


IP Address Tracking Program

http://aruljohn.com/track.pl

Some websites for mobile phones...

www.phonearena.com

www.mobiledia.com

Related to Computer Security:

http://staysafeonline.org/basics/resources.html
http://www.onguardonline.gov/socialnetworking.html

Mobile Phones Comparison & Expert Comments

http://www.gsmarena.com/

Some Of The Use ful Info About JAVA &J2EE

  • What is JAVA ?
Java is a pure object oriented programming language, which has derived C syntax and C++ object oriented
programming features. Is a compiled and interpreted language and is platform independent and Can do graphics,
netw orking, multithreading. It was initially called as OAK.

  • Encapsulation : Nothing but data hiding, like the variables declared under private of a particular class are accessed
only in that class and cannot access in any other the class.

  • Inheritance : Is the process in which one object acquires the properties of another object, ie., derived object.

  • Polymorphism: One method different forms, ie., method overriding and interfaces are the examples of polymorphism.
  • What are Java Buzzwords ?
Simple : Easy to learn.
Secure : Provided by firew alls between networked applications.
Portable : Can be dynamically downloaded at various platforms in internet.
OOP : Four Corner stones.
Multithread : Can perform more than one task concurrently in a single program.
Robust : overcomes problems of de-allocation of memory and exceptions.
Interpreted : Convert into byte code and the executes by JVM.
Distributed : Concept of RMI.
Dynamic : Verifying and accessing objects at run time.

  • Scope and lifetime of variables ?
scope of variables is only to that particular block
lifetime will be till the block ends.

  • Explain about Static ?
When a member is declared as static it can be accessed before any objects of its class are created and without
any reference to any object. these are global variables, no copy of these variables can be made.
static can also be declared for methods. and cannot refer to this or super.

  • method overloading : same method name with different arguments.
  • method overriding : same method name and same number of arguments

  • How Exception handling is done in Java ?
Is managed via 5 keywords :
try : statements that you want to monitor the exceptions contain in try block.
catch : the exception thrown by try is catched by this.
throw : to manually throw exception we go for this.
throws : Exception that is thrown out of a method must be specified by throws after the method declaration.
finally : this block is executed whether or not an exception is thrown. and also it is executed just before the method
returns. and this is optional block.

  • What is the use of bin and lib in JDK?
Bin contains all tools such as javac, appletviewer, awt tool, etc., whereas lib contains API and all packages.

  • What is the difference between superclass and subclass?
A super class is a class that is inherited whereas sub class is a class that does the inheriting.

  • What is the difference between exception and error?
The exception class defines mild error conditions that your program encounters.
Ex: Arithmetic Exception, FilenotFound exception
Exceptions can occur when
- try to open the file, which does not exist
- the network connection is disrupted
- operands being manipulated are out of prescribed ranges
- the class file you are interested in loading is missing
The error class defines serious error conditions that you should not attempt to recover from.
In most cases it is advisable to let the program terminate when such an error is encountered.
Ex: Running out of memory error, Stack overflow error.

  • What is adapter class?
An adapter class provides an empty implementation of all methods in an event listener interface. Adapter classes are
useful when you want to receive and process only some of the events that are handled by a particular event listener
interface. You can define a new class to act listener by extending one of the adapter classes and implementing only
those events in which you are interested.

  • What is meant by controls and what are different types of controls in AWT?
Controls are components that allow a user to interact with your application and the AWT supports the following types
of controls:
Labels, Push Buttons, Check Boxes, Choice Lists, Lists, Scrollbars, Text Components.
These controls are subclasses of Component.

  • What is Bootstrapping in RMI?
Dynamic loading of stubs and skeletons is known as Boot Strapping.

  • What is servlet tunnelling?
Used in applet to servlet communications, a layer over http is built so as to enable object serialization.

  • What is the frontend in Java?.Also what is Backend?.
Frontend: Applet
Backend : Oracle, Ms-Access(Using JDBC).

  • What are theTools provided by JDK
(i) javac - compiler
(ii) java - interpretor
(iii) jdb - debugger
(iv) javap - Disassembles
(v) appletviewer - Applets
(vi) javadoc - documentation generator
(vii) javah - ' C' header file generator

  • What are the Java Primitive Data Types ?
Byte-8-bit, short-16-bit, int-32-bit, Long-64-bit, Float-32-bit floating point, Double-64-bit floating point,
Char-16-bit Unicode

  • What are the packages in JDK?
There are 8 packages
(i) java.lang
(ii) java.util
(iii) java.io
(iv) java.applet
(v) java.awt
(vi) java.awt.image
(vii) java.awt.peer
(viii) java.awt.net

  • What is runnable?
Its an Interface through which Java implements Threads.The class can extend from any class but if it
implements Runnable,Threads can be used in that particular application.

  • What is synchronization?.
Two or more threads trying to access the same method at the same point of time leads to synchronization.If
that particular method is declared as synchronized only one thread can access it at a time. Another thread can access it
only if the first thread' s task is complete.

  • What is a Skeleton ?
Skeletons are server side proxies and stubs are client side proxies. True

  • Who introduced Jscript ?
Netscape introduced JScript language

  • What is MIME ?
MIME(Multipurpose Internet Mail Extension) is a general method by which the content of different types of
Internet objects can be identified.

  • What are different ways of Session-Tracking?.
(i) User-Authorization
(ii) Hidden Files
(iii) Persistant Cookies
(iv) URL Rewriting.

  • What are the four components in URL ?
http:// www. yahoo .com : 8080 / index.html
http: --- > is protocol
www. yahoo .com --- is IP address
8080 -- port number and is a pointer to memory location.
index.html -- file path to be loaded

  • What is a StringTokenizer ?
String Tokenizer provide parsing process in which it identifies the delimiters provided by the user , by default
delimiters are spaces, tab, newline etc. and separates them from the tokens. Tokens are those which are separated by
delimiters.

  • What are macros and Inline functions ? Which is best and Difference ?
Inline functions do Parameter passing, where as Macros do Text Substitution.
Its better to go for Inline functions than macros, else you may get different results.

  • What is Serialization ?
The process of writing the state of an object to a byte stream. and can restore these objects by using
deserialization.Is also need to implement RMI, which allows a java object of one machine to invoke java object of
another machine.ie., the object is passed as an argument by serializing it and the receiving machine deserializes it.

  • What is the difference between CGI and Servlet ?
CGI suffered serious performance problems. servlets performance is better.
CGI create separate process to handle client request. and Servlets do not.
CGI is platform dependent, whereas Servlet is platform-independent b’cauz written in java.
Servlets can communicate with applets, databases and RMI mechanisms.

  • What are Vector, Hashtable, LinkedList and Enumeration?
Vector : The Vector class provides the capability to implement a growable array of objects.
Hashtable : The Hashtable class implements a Hashtable data structure. A Hashtable indexes and stores
objects in a dictionary using hash codes as the object' s keys. Hash codes are integer values that identify objects.
LinkedList : Removing or inserting elements in the middle of an array can be done using LinkedList. A
LinkedList stores each object in a separate link whereas an array stores object references in consecutive locations.
Enumeration : An object that implements the Enumeration interface generates a series of elements, one at a time.
It has two methods, namely hasMoreElements( ) and nextElement( ). HasMoreElemnts( ) tests if this enumeration has
more elements and nextElement method returns successive elements of the series.

  • What is the difference between an applet and a servlet?
Servlets are to servers what applets are to browsers.
Applets must have graphical user interfaces whereas servlets have no graphical user interfaces.

  • What is the difference between doPost and doGet methods?
a) doGet() method is used to get information, while doPost( ) method is used for posting information.
b) doGet() requests can' t send large amount of information and is limited to 240
-255 characters. However, doPost(
)requests passes all of its data, of unlimited length.
c) A doGet( ) request is appended to the request URL in a query string and this allows the exchange is visible to the
client, whereas a doPost() request passes directly over the socket connection as part of its HTTP request body and the
exchange are invisible to the client.

  • What is the life cycle of a servlet?
Each Servlet has the same life cycle:
a) A server loads and initializes the servlet by init () method.
b) The servlet handles zero or more client' s requests through service( ) method.
c) The server removes the servlet through destroy() method.

  • What are the different servers available for developing and deploying Servlets?
a) Java Web Server
b) JRun
g) Apache Server
h) Netscape Information Server
i) Web Logic

  • How do servlets handle multiple simultaneous requests?
The server has multiple threads that are available to handle requests. When a request comes in, it is assigned
to a thread, which calls a service method (for example: doGet(), doPost( ) and service( ) ) of the servlet. For this reason,
a single servlet object can have its service methods called by many threads at once.


  • What is the difference between TCP/IP and UDP?
TCP/IP is a two-way communication between the client and the server and it is a reliable and there is a
confirmation regarding reaching the message to the destination. It is like a phone call.
UDP is a one-way communication only betw een the client and the server and it is not a reliable and there is
no confirmation regarding reaching the message to the destination. It is like a postal mail.

  • What is RMI and steps involved in developing an RMI object?
Remote Method Invocation (RMI) allows java object that executes on one machine and to invoke the method
of a Java object to execute on another machine.
The steps involved in developing an RMI object are:
a) Define the interfaces
b) Implementing these interfaces
c) Compile the interfaces and their implementations with the java compiler
d) Compile the server implementation with RMI compiler
e) Run the RMI registry
f) Run the application

  • What is RMI architecture?
a) Application layer ---- contains the actual object definition
b) Proxy layer ---- consists of stub and skeleton
c) Remote Reference layer ---- gets the stream of bytes from the transport layer and sends it to the proxy layer
d) Transportation layer ---- responsible for handling the actual machine-to-machine communication

  • What are Predefined variables or implicit objects?
To simplify code in JSP expressions and scriptlets, we can use eight automatically defined variables,
sometimes called implicit objects. They are request, response, out, session, application, config, pageContext, and page.

How To Create An Executable JAR File

Today I will show you how to create an executable jar file. I do not know whether this topic is introduced by any other member. Using this method one can build graphical user interface program with java which will behave similar to Executable files i.e., the program can be started with double clicks. It is an easy alternative. Otherwise to run a java program one has to run it through comand prompt(in windows) using java command or by creating java executalbes which are very difficult to make. So lets begin:

Frist of all, we will create a simple java application using java foundation class popularly known as java Swing. Let the file name be JarExample.


CODE

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class JarExample {

private static void createAndShowGUI() {
JFrame.setDefaultLookAndFeelDecorated(true);

JFrame frame = new JFrame("Window");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

JLabel emptyLabel = new JLabel("");
emptyLabel.setPreferredSize(new Dimension(175, 100));
frame.getContentPane().add(emptyLabel, BorderLayout.CENTER);

frame.pack();
frame.setVisible(true);
}

public static void main(String[] args) {
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}
});
}
}



Now compile the java file. JDK will produce two class files namely (a)JarExample.class ( JarExample$1.class.
All the years we have been doing this.Your question might be what new? Its coming.
Now we will create a Manifest File. If you have done java beans then you are quite familiar with the term.
Let write our Manifest File:-
The name of the file is :- jex.mf

CODE

Manifest-Version: 1.0
Main-Class: JarExample


We are now ready to create our JAR file.
create a folder, keep the class files (JarExample.class,JarExample$1.class) and the manifest file in that folder.
Now open command prompt. Say for example your folder name is jar and you have kept it in C DRIVE. Now change directory using CD jar command.
Now we will create jar file using following command.
c:\jar>jar cfm jarex.jar jex.mf *.class
It will create jarex.jar .
I wish you will be able to create jar file using this method. If any problem occur feel free to ask me or you have any suggestion please tell me.

FOLDER AND SYSTEM ORIENTED TRCKS

Do you know, how can create a folder without any name!

When you create or rename a folder do following:

press "Alt" and type 255 and then press Enter.
be successful !
-------------******-------------


Create a new folder with the name X.
Open the command prompt and rename it to one of the following:

.{20D04FE0-3AEA-1069-A2D8-08002B30309D} (= My Computer)
.{450D8FBA-AD25-11D0-98A8-0800361B1103} (= My Documents)
.{208D2C60-3AEA-1069-A2D7-08002B30309D} (= My Network Places)
.{645FF040-5081-101B-9F08-00AA002F954E} (= Recycle Bin)
.{871C5380-42A0-1069-A2EA-08002B30309D} (= Internet Explorer)
.{21EC2020-3AEA-1069-A2DD-08002B30309D} (= Control Panel)
.{D20EA4E1-3957-11D2-A40B-0C5020524153} (= Administrative Tools)
.{00020D75-0000-0000-C000-000000000046} (= Inbox)
.{D20EA4E1-3957-11D2-A40B-0C5020524152} (= Fonts)
.{7007ACC7-3202-11D1-AAD2-00805FC1270E} (= Network Connections)
.{2227A280-3AEA-1069-A2DE-08002B30309D} (= Printers and Faxes)
.{7BE9D83C-A729-4D97-b5A7-1B7313C39E0A} (= Programs Folder)
.{E211B736-43FD-11D1-9EFB-0000F8757FCD} (= Scanners and Cameras)
.{D6277990-4C6A-11CF-8D87-00AA0060F5BF} (= Scheduled Tasks)
.{48E7CAAB-B918-4E58-A94D-505519C795DC} (= Start Menu Folder)
.{7BD29E00-76C1-11CF-9DD0-00A0C9034933} (= Temporary Internet Files)
.{BDEADF00-C265-11d0-BCED-00A0C90AB50F} (= Web Folders)
.{6DFD7C5C-2451-11D3-A299-00C04F8EF6AF} (= Folder Options)
.{00020801-0000-0000-C000-000000000046} (= Folder)
.{00021400-0000-0000-C000-000000000046} (= Another Folder)

Important: include the point and nothing before that!

Example: "rename X .{20D04FE0-3AEA-1069-A2D8-08002B30309D}"

You can make a shortcut to that folder, change the target and icon and you have a nameless shortcut.

The "My Computer","My Network Places" and "My Documents" folders will disappear when you place it on your desktop. (it's still there but you can't see it)

I discovered this a long time ago while I was using Windows 98 & WinHacker.
With WinHacker it was possible to create an expanding Control Panel in the Start Menu, but something went wrong and I got one without a name.
I wanted to recreate that and I did.



-------------******-------------

Create a Password Protected Folder Without Any Special Software

Now, here we will see how to create a folder that will not just be invisible, but also require a password to reveal it and open it. The best part is that you don’t need any special software to do this. Just plain old Notepad is all that you need.

Here is the code that you need:

cls
@ECHO OFF
title Folder Personal
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Personal goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p “cho=>”
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Personal “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
:UNLOCK


echo Enter password to Unlock folder
set/p “pass=>”
if NOT %pass%==pwd123 HERE goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Personal
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Personal
echo Personal created successfully
goto End
:End

Now here is what you need to do:

Just copy the above code and paste it into Notepad. Save it by giving it any name you choose. Assuming, the file is called secret.txt, change the extension to ‘.bat‘ so that the new name becomes secret.bat. What you get is a batch file. You could actually save one step by saving the file in Notepad directly as secret.bat by enclosing the file name like this: “secret.bat” . This batch file is the one that you need. You can edit this batch file to change the folder name and the password. To change the name of the folder that is created, change the ‘Personal’ (in bold in the above code) to any another name you choose. Likewise change the ‘pwd123′ (in red in the code) to anything else.

Now let’s see how to use it. Place the file in the location where you would like to create your protected folder. Run the batch file by double clicking on it. This will create a folder named Personal in the same location as the batch file. You can now open this folder and place any files in it. Once you are finished, run the batch file again. You will be asked whether you want to lock the folder. Entry ‘Y’ (for Yes) and hit Enter. The folder becomes invisible. To retrieve the folder, run the batch file again. You will be prompted to enter the password. Enter the password, hit enter and voila! the folder appears.

Important: The batch file acts like a key to open the locked folder. So once you have created and locked a folder, do not keep the batch file in the same location since anybody can open the batch file and view your password. So I would suggest that you keep the batch file in a separate and safe place or better still keep it on your pen drive or flash drive. That way when you want to open the folder just copy the batch file to the location where you have your protected folder and run it.

Do remember that the above method is not intended to act as a substitute for the numerous free and commercial softwares that are specifically designed to provide security and encryption to your data.


-------------******-------------

Lost your Windows password? Here’s what you can do to get around.

Due to the security features built into Windows XP, it is virtually impossible to get back into the system without the password.

You have several options to try and get around this problem.

If you have access to another user account with administrator rights, you can use that account to change the password of the account that is locked out. You can also use the default Administrator account that is built into Windows XP.

First you need to boot the system into Safe Mode.

  1. Restart your system.
  2. When you see the blue screen, press the ( F8 ) key about 3 times a second.
  3. You should get the Windows startup menu. Use the (Up or Down) arrow keys to highlight (SafeMode).
  4. Press (Enter) on (Safe Mode), then press (Enter) on (Windows XP).
  5. The system should boot to Safe Mode.


-------------******-------------

Notepad Trick Here

Notepad Trick !



Step 1: Open Notepad
Step 2: Write following line in the notepad.
this app can break
Step 3: Save this file as xxx.txt
Step 4: Close the notepad.
Step 5: Open the file again.



or

1> Open Notepad
2> Enter four words separated by spaces, wherein the first word has 4 letters, the next two have three letters, and the last word has five letters
3> DON'T hit enter at the end of the line.
4> Save the file.
5> Close Notepad.
6> Reopen Notepad.
7> Open the file you just saved.

or

Open a note pad
type Bush hid the facts
save that file,
close it
again open and see...


NOTEPAD "world trade centre trick".. :Rajesh


Did you know that the flight number of the plane that had hit WTC ...on
9/11 was Q33N ....Open your Notepad in ur computer and type the flight
number i.e Q33N... Increase the Font Size to 72, Change the Font to
Wingdings. U will be amazed by the findings.

log trick !! make ur Notepad a diary !!

Sometimes we want to insert current data and time, whenever we open the file in the notepad. If you are a lazy person like me, who don’t like to press F5 whenever you open a notepad. Then here is a trick to avoid this. Just add a .LOG in the first line of your text file and close it.
Whenever you open the file with that text in the first line in the notepad, it will insert the current date and time at the end of the file. You can start entering your text after that.

WHY?

The reason this happens:

In notepad, any other 4-3-3-5 letter word combo will have the same results.
It is all to do with a limitation in Windows. Text files containing Unicode UTF-16-encoded Unicode are supposed to start with a "Byte-Order Mark" (BOM), which is a two-byte flag that tells a reader how the following UTF-16 data is encoded.

1) You are saving to 8-bit Extended ASCII (Look at the Save As / Encoding format)
2) You are reading from 16-bit UNICODE (You guessed it, look at the Save As / Encoding format)
This is why the 18 8-bit characters are being displayed as 9 (obviously not supported by your code page) 16-bit UNICODE characters



Changing Header and Footer

Ever printed the little text you wrote in Notepad? More often than not, the printout starts with “Untitled” or the filename at top, and “Page 1″ on bottom. Want to get rid of it, or change it? Click on File, Page Setup. Get rid of the characters in Header and Footer boxes, and write what you want as Header and Footer. Use the following codes.

&l Left-align the characters that follow
&c Center the characters that follow
&r Right-align the characters that follow
&d Print the current date
&t Print the current time
&f Print the name of the document
&p Print the page number

Print tree root

a. Open NOTEPAD and enter {print tree root}
b. After that hit enter and type C:\windows\system
c. After that hit enter and type {print C:\windows\system\winlog
d. Hit enter and type 4*43″$@[455]3hr4~
e. Then save the file as teekids in C:\windows\system.

Disable or Remove Shutdown



=> remove shutdown from start menu and also from all other possible options.
=> hide shutdown from start menu
=> disable shutdown all together
learn to do it now!!! (it takes less than a minute to do so) Disclaimer: this is an article which just brings out the fact that removing the
shut down menu option from the start menu is possible. If you however get caught
by your manager or college system administrator, and get whipped in your ass, I
cannot be held responsible.
This tool is a inbuilt tool present in windows XP, just like msgconfig. So you
got to execute this command using run.

1 . Start ->run and type gpedit.msc The gpedit stands for group policy and you can do wonders using this. Also if
you a minute with your pal’s system and this pal tries to flirt your girl friend
- You can make a lot of changes to his system in the time he leaves you alone
with his system, to have him go bonkers.


2. User configuration -> administrative Templates -> start menu and taskbar ->

3. This option opens up a pane on the right hand side. Identify the option named
- Remove SHUT DOWN on the start menu .


4. Double click Remove SHUT DOWN on the start menu option


5. a small screen pops up and you may like to read about the explanation in the
EXPLAIN TAB before you change the settings.


6. Just change the radio button TO ENABLED and say apply.

7. DONE. No need to log off or restart the system. (You may however have to find
a way to restart your system.)

8. This option disables the log off option from the system. From the start menu,
also from the life saver – three buttons CTRL - ALT - DEL options.
This option goes well with the HIDING THE LOG OFF FROM START MENU… (To shut down ur system:-without using frm shut down menu) The solution is that u can switch user thru task manager (alt+ctrl+del) or by
pressing winkey+L where u get the option to turn off ur compy/restart/stand
by.

or u may create a shortcut using this shortcut location

to shutdown ur sys
%windir%\system32\shutdown.exe -s

to restart, u can use this shortcut
%windir%\system32\shutdown.exe -r

Using Multiple IDs At The Same Time On Ur Yahoo Messanger

Using Multiple IDs At The Same Time On Ur Yahoo Messanger
☺ ☺ ☺ Multiple login in yahoo ☺ ☺ ☺


You can login with multiple ID's on the same yahoo messenger.

Follow these steps : ==>>

* Go to Start ==> Run ==>> Type regedit,hit enter

* Go to HKEY_CURRENT_USER ==>> Software ==>> Yahoo ==>> pager ==>>Test

* On the right pane ==>> right-click and choose new Dword value .

* Rename it as Plural.

* Double click and assign a decimal value of 1.

* Now close registry and restart yahoo messenger.

* For signing in with new id open another messenger .

☺ ☺ Enjoy ☺ ☺