Sunday, June 27, 2010

Running an Applet

A easy way to run a applet inside a browser..........

Create a simple web page which calls the applet which we have created.........the below code is the html code which is used for calling the applet Hello


html start tag
boby start tag

< /applet > tag must be provided here with the proper src.
body end tag
html end tag


We need to make sure that the applet tag is placed only between the body tags.........

This tells the browser to run the applet Hello.class, and to use an area of the screen 500 pixels wide and 300 high. To create the above web page( incase if you are not familiar with the html language) copy paste the above lines into a text document and save it as Hello.html in the same directory that has Hello.class. At this point your directory should look something like this:

C:\> dir A*.*

03/07/98 08:01p 560 Hello.class
03/07/98 08:01p 199 Hello.html
03/07/98 08:00p 247 Hello.java
3 File(s) 1,006 bytes
157,295,104 bytes free

Now double click on the html file. Your Web browser starts running and displays the applet.

Or

you can use the appletviewer to run the applet:

C:\> appletviewer Hello.html

Sometimes browsers are not set up for applets, or have other problems and as a result of this the browser cant open the applet, a error message is displayed saying that "Failed opening the applet. Make sure that the applet-viewer is in the same directory as java and javac and is more reliable for viewing your applets than a Web brower. However, the appletviewer shows you only the applet part of an HTML file. The other parts (if any) are omitted.

Thursday, June 17, 2010

HOW TO OPEN THE BLOCKED SITES

Are you tired of finding the ways to open a website which is blocked by your sysadmin or network administrator.......
Do-not worry as here is a easy and quick solution for opening the site which are blocked

The simplest way is to use a web proxy.

Before that are you eager to know why to go with web proxy?

Anonymous free web proxies are present on the internet, which allows us to bypass local proxies and security restrictions and surf the blocked sites or simply surf securely without any need of installing a software on your computer. If you browse the web through public web proxy the website cannot find your real IP address.

LIST:

24 Proxy

7 N 4
911 Surf
Browse At Work
Browse Orkut
Daves Online Proxy

Diglet

Go Fish
My Proxy Solution

Wednesday, June 16, 2010

RUN COMMAND SHORT_CUTS

USE THE FOLLOWING COMMANDS IN THE RUN COMMAND WINDOW:





Device manager:

hdwwiz.cpl

This is used to open the device manager where you can browse all the types of devices present in your system. The devices listed in this are battery(for laptops), my-computer, HDD disc, display adapters, controllers, keyboard, processors, usb...........etc.


Administrator tools:

control admintools

This command is used for opening the administrator tools used for the controlling purpose. These tools consists or computer-management, event viewer, performance monitor, task scheduler, windows memory diagnostics, windowa fire wall, services, windows power shell.

Blue tooth:

fsquirt

This command opens the blue-tooth transfer wizard.

Componant services:

dcomcnfg

this command is used for the open the interface for the event viewer and the services.

Personalizing the Desktop:

control desktop

This command is used for the setting the personalization of the desktop

Internet configguration wizard:

inetcpl.cpl

This opens the internet configuration wizard.

Mouse property wizard:

control mouse

This command is used for setting or controlling the properties of the mouse.

Key board properties:

control keyboard

this property is used to control or configure properties of the mouse.

To open the access data-base:

access.cpl

This opens the access database corresponding to the database which comes as a part of the MS office.

To open the paint brush:

mspaint

This open the paint brush.

Open notepad:

Notepad

This opens the notepad.


Advanced notepad : (only if installed)

Notepad++

This opens the advances notepad.

Add and remove programs:

Appwiz.cpl

This opens the add and remove program wizard.

Remote desktop login:

mstsc

This opens the login screen to login into the remote system.

Testing the TCP:

tcptest

This command is used for the TCP.


Windows Fire wall wizard:

firewall.cpl

This opens the firewall configuration wizard.




Tuesday, June 15, 2010

Friday, June 11, 2010

HOW TO INSTALL VIRTUAL PC IN WIN 7 HOME PREMIUM

Hi..... Are you wondering how to install virtual pc in windows 7 home premium edition?

Are you tired of searching about how to install a virtual pc with xp compatibility in windows 7 home premium edition...................Don't worry, here is a way of installing the virtual pc with xp compatibility in windows 7 home premium edition.


steps:

1) Do not try to download and install the

"Windows Virtual PC"

as this is not supported in windows 7 home premium edition. (I think you will not be able to even download it from Microsoft site, when trying to download it from a system with operating system as Microsoft windows 7 home premium edition).

2) Download the "MICROSOFT VIRTUAL PC", as this is supported in windows 7 home premium.
Download link for MICROSOFT VIRTUAL PC "http://www.mydigitallife.info/2007/02/21/free-download-microsoft-virtual-pc-2007-with-support-for-windows-vista-as-guest-os/"

Here you can find the versions for 32-bit and 64-bit.

3) Now install this and configure a new virtual PC XP any other os (a list is shown in the dropdown ).

4) After configuring the settings, start the virtual PC then when it will ask for the boot-able disc then insert the disc and then go to the option CD then go for "USE PHYSICAL DRIVE".

5) Now you will be guided through the installation process.

6)And finally you are done with your windows virtual pc with the XP mode or xp compatibility.

NOTE: At the time you are making the configurations for the virtual pc, you will be specifying the ram to be used, this can be changed later also.

Monday, June 7, 2010

LEARN JAVASCRIPT IN 1 HOUR.............JAVASCRIT BASICS..

THIS WORD DOCUMENT IS A NOTES ON BASIC JAVA SCRIPT FUNCTIONS THAT A DEVELOPER MUST KNOW........................THIS DOCUMENT IS ENOUGH TO LEARN JAVASCRIPT BASICS.

find the document at the f0llowing location:

http://www.4shared.com/document/KxTUZXuy/javascriptcourse.html

Saturday, June 5, 2010

Useful Oracle Functions

1) Lead / Lag
Lead function is an analytic function that lets you query
More than one row in a table at a time without having to
Join the table to itself.

It returns values from the next row / Previous Row Respectively in the table.

To return a value from a previous row, try using the lag function.

Example: Business Case.

Need to retrieve the Login date and Last Login date.

Select UserName, LogInDate,
lag (LoginDate,1) over (ORDER BY LoginDate desc) AS prev_Logindate
From UserLoginDetails;

2) Coalesce

coalesce function returns the first non-null expression in the list.
If all expressions evaluate to null, then the coalesce function will return null.

Business Case:

Table has Mobile Number, Land Line, and Office Phone

Three different columns, three fields can be with null values,
We need to retrieve the contact Number for that record,

Select Coalesce ( mobileNumber,Landline,OfficePhone) from Table.

It will return the first not null value from table.


3) NVL2

NVL2 function extends the functionality found in the NVL function.
It lets you substitutes a value when a null value is encountered as well as
When a non-null value is encountered.

Select NVL2( string1, value_if_NOT_null, value_if_null ) As Desc From
MyTable.

All above three functions supports from Oracle version 8i and Above.

Oracle Data Provider for .NET

What is Oracle Data Provider for .NET?

ODP.NET stands for Oracle Data Provider for .NET, ODP.NET is the next step of development technology from Oracle. Seeing the efficiency of data management of the ODP, the application has been developed for better performance through integration.

The Oracle Data Provider for .NET (ODP.NET) features optimized ADO.NET data access to the Oracle database. ODP.NET allows developers to take advantage of advanced Oracle database functionality, including Real Application Clusters, XML DB, and advanced security. The data provider can be used with the latest .NET Framework 3.5 version.

ODP.NET makes using Oracle from .NET more flexible, faster, and more stable. ODP.NET includes many features not available from other .NET drivers, including a native XML data type, self-tuning, RAC optimizations, and Advaned Queuing API.

GET AT A FARE ENOUGH IDEA ABOUT SILVERLIGHT......

Are you new and wondering what is silver light?

What is silver light?
-->Microsoft Silverlight is a web application framework that provides functionalities similar to those in adobe flash, integrating multimedia, graphics, animations and interactivity into a single runtime environment.

You must watch this video to get a clear cut idea of silver light and how easy it is to implement.

http://www.silverlight.net/learn/videos/silverlight-videos/getting-started-with-silverlight-development/

This video is also available for download.

ABOUT ME

Hi All...........I am a DOTNET developer, Please feel free to ask me any doubts regarding DOTNET. In my bog you can find all the stuff related to DOTNET, JAVASCRIPT, OS and other internet stuff.