Friday, March 27, 2009

Installing the Java Runtime Environment

Once you've got the multiverse repository enabled, installing Sun's Java package, file extension jad is easy. Simply open a terminal window and apt-get the package. Since you are going to be installing the JRE and the web browser plug-in, you'll be using the following command from a terminal window:

:~$ sudo apt-get install sun-java5-jre sun-java5-plugin \\
sun-java5-fonts

Once apt-get downloads including file extension jad the packages and begins the installation, you'll get a screen that contains the Sun Operating System Distributor License for Java. Read the license, if you wish, and hit Enter to continue. You'll see a dialog that asks you if you agree with the DLJ license terms. Select Yes, and hit Enter; the JRE will finish installing.
At this point, Java is installed.

Confirming the Installation

You'll want to confirm that your system is configured properly for Sun's JRE. This is a two-step process. First, check that the JRE is properly installed by running the following command from a terminal. You should get similar output:

:~$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

If you see an unexpected version of Javain particular, one identified as "gij (GNU libgcj)"then you probably have GNU Java installed. You can easily switch from one Java to another with the command sudo update-alternatives --config java, which will prompt you to choose which Java implementation to use. Pick the one in /usr/lib/jvm to use the JRE you just installed.

If the JRE is properly installed, confirm that the Java plug-in is installed in your browser by opening Firefox and typing about:plugins in the address bar
Congratulations, you've caffeinated your browser! You can now surf to Java-enabled web sites and use Java applications!

About JAD File

When us download application or game to hp java, sometime we can choose file extension jad or jar be like application java application on file extension jad
Possibly you still confuse what is difference between file extension JAD and JAR, So here I try to embrace from various source to explain a little a few 2 the mentioned.

file extension JAD is abbreviation from Java Application Descriptor. From just him name we can know that file extension JAD is the file description concerning application Java ( MIDLET). Application Java which? Of course the application in file JAR, because file extension JAD frankly only a ordinary text file, which one file extension JAD seen contents its alike once with MANIFEST the in file JAR.

...Read More

Thursday, March 26, 2009

Some about Java Application

When us download application or game to hp java, sometime we can choose file extension jad or jar be like application java or another application on file extension jad. Possibly you still confuse what is difference between file extension JAD and JAR, So here I try to embrace from various source to explain a little a few 2 the mentioned.

What is difference of file extension JAD and JAR ? file extension JAD is abbreviation from Java Application Descriptor. From just him name we can know that file extension JAD is the file description concerning application Java ( MIDLET). Application Java which? Of course the application in file JAR, because file extension JAD frankly only a ordinary text file, which one file extension JAD seen contents its alike once with MANIFEST the in file JAR.

File Extension JAD is files are commonly used to package Java applications or games that can be downloaded to mobile phones. File extension jad is Java applications enable Mobile phones to interact programmatically with online web services, such as the ability to send SMS messages via GSM mobile internet or interact in multiplayer games

The supplementary information in file JAD is url file address JAR, file measure JAR and certificate.

jad_auto_file
MIDlet-1: , ,
MIDlet-Jar-Size:
MIDlet-Jar-URL:
MIDlet-Name:
MIDlet-Vendor:
MIDlet-Version:
MicroEdition-Configuration:
MicroEdition-Profile:


Recent midlets contain a manifest file in the JAR archive. This file contains much of the information stored in the JAD file, rendering it unnecessary in most cases.
But is the Supplementary information in file extension JAD, that is URL pointing at the file JAR.
Its node:
JAR contain the applications Java the possible more than one. Everything required to run a application Java, located in file JAR the.
file extension JAD in character as additional file to explain the file content JAR


...Read More

Shell Command

Launches file extension exe is executable programs from within Visual Studio.
Tools.Shell [/command] [/output] [/dir:folder] path [args]
Arguments
path
Required. The path and file extension exe name of the file extension exe to execute or the document to open. A full path is required if the specified file is not in one of the directories in the PATH environment variable.
args
Optional. Any arguments to pass to the invoked program
Switches
commandwindow [or] /command [or] /c [or] /cmd
Optional. Specifies that the output for the file extension exe, executable is displayed in the Command window.
/dir:folder [or] /d: folder
Optional. Specifies the working directory to be set when the program is run.
/outputwindow [or] /output [or] /out [or] /o
Optional. Specifies that the output for the executable is displayed in the Output window
Remarks
The /dir /o /c switches must be specified immediately after Tools.Shell. Anything specified after the name of the file extension exe or executable is passed to it as command line arguments.
The predefined alias Shell can be used in place of Tools.Shell.
Caution:

If the path argument supplies the directory path as well as the file name, you should enclose the entire pathname in literal quotes ("""), as in the following:
Tools.Shell """C:\Program Files\[file extension exe]""" -executable file or file extension exe.

Each set of three double quotes (""") is interpreted by the Shell processor as a single double quote character. Thus, the preceding example actually passes the following path string to the Shell command

"C:\Program Files\[file extension exe]
Caution :
If you do not enclose the path string in literal quotes ("""), Windows will use only the portion of the string up to the first space. For example, if the path string above were not quoted properly, Windows would look for a file named "Program" located in the C:\ root directory. If a C:\Program.exe executable file were actually available, even one installed by illicit tampering, Windows would attempt to execute that program in place of the desired "c:\Program Files\SomeFile.exe" program.

Example :

The following command uses xcopy.exe to copy the file MyText.txt into the Text folder. The output from xcopy.exe is displayed in both the Command Window and the Output window.

>Tools.Shell /o /c xcopy.exe c:\MyText.txt c:\Text\MyText.txt

...Read More

Graphics and Drawing in Windows Forms

The common language runtime uses an advanced implementation of the Windows Graphics Device Interface (GDI) called GDI+. With GDI+ you can create graphics, draw text, and manipulate graphical images as objects. GDI+ is designed to offer performance and ease of use. You can use GDI+ to render graphical images on Windows Forms and controls. Although you cannot use GDI+ directly on Web Forms, you can display graphical images through the Image Web Server control.
In this section, you will find topics that introduce the fundamentals of GDI+ programming. Although not intended to be a comprehensive reference, this section includes information about the Graphics, Pen, Brush, and Color objects, and explains how to perform such tasks as drawing shapes, drawing text, or displaying images. For more information, see "GDI+ Reference" in the MSDN library at http://msdn.microsoft.com/library.

Graphics class
Encapsulates a GDI+ drawing surface. This class cannot be inherited.
Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Syntax
Visual Basic (Declaration)
Public NotInheritable Class Graphics _
Inherits MarshalByRefObject _
Implements IDeviceContext, IDisposable

Visual Basic (Usage)
Dim instance As Graphics
C#
public sealed class Graphics : MarshalByRefObject, IDeviceContext,
IDisposable
Visual C++
public ref class Graphics sealed : public MarshalByRefObject,
IDeviceContext, IDisposable

J#
public final class Graphics extends MarshalByRefObject implements IDeviceContext,
IDisposable
Jscript
public final class Graphics extends MarshalByRefObject implements IDeviceContext, IDisposable

Remarks
The Graphics class provides methods for drawing objects to the display device. A Graphics is associated with a specific device context.
You can obtain a Graphics object by calling the Control.CreateGraphics method on an object that inherits from System.Windows.Forms.Control, or by handling a control's Control.Paint event and accessing the Graphics property of the System.Windows.Forms.PaintEventArgs class. You can also create a Graphics object from an image by using the FromImage method. For more information about creating a Graphics object, see How to: Create Graphics Objects for Drawing.
You can draw many different shapes and lines by using a Graphics object. For more information about how to draw lines and shapes, see the specific DrawGraphicalElement method for the line or shape you want to draw. These methods include DrawLine, DrawArc, DrawClosedCurve, DrawPolygon, and DrawRectangle. For more information about how to draw lines and shapes, see Using a Pen to Draw Lines and Shapes and Using a Brush to Fill Shapes.
You can also draw images and icons by using the DrawImage and DrawIcon methods, respectively. For more information about how to draw images with a Graphics object, see Working with Images, Bitmaps, Icons, and Metafiles.

Examples
The following code example is designed for use with Windows Forms and requires a PaintEventArgs object. The PaintEventArgs object is named e and is a parameter of the Paint event handler. The code performs the following actions:
• Creates an image from a JPEG file. The file is named SampImag.jpg and is located in the folder of the example.
• Creates a point at which to draw the upper-left corner of the image.
• Draws the unscaled image to the screen by using a Graphics object

Visual Basic :
Private Sub DrawImagePointF(ByVal e As PaintEventArgs)

' Create image.
Dim newImage As Image = Image.FromFile("SampImag.jpg")

' Create point for upper-left corner of image.
Dim ulCorner As New PointF(100.0F, 100.0F)

' Draw image to screen.
e.Graphics.DrawImage(newImage, ulCorner)
End Sub
C# :
private void DrawImagePointF(PaintEventArgs e)
{

// Create image.
Image newImage = Image.FromFile("SampImag.jpg");

// Create point for upper-left corner of image.
PointF ulCorner = new PointF(100.0F, 100.0F);

// Draw image to screen.
e.Graphics.DrawImage(newImage, ulCorner);
}
Visual C++ :
private:
void DrawImagePointF( PaintEventArgs^ e )
{
// Create image.
Image^ newImage = Image::FromFile( "SampImag.jpg" );

// Create point for upper-left corner of image.
PointF ulCorner = PointF(100.0F,100.0F);

// Draw image to screen.
e->Graphics->DrawImage( newImage, ulCorner );
}
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.Drawing.Graphics
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0
.NET Compact Framework




...Read More

About JAD File

What is difference of file extension JAD and JAR ? file extension JAD is abbreviation from Java Application Descriptor. From just him name we can know that file extension JAD is the file description concerning application Java ( MIDLET). Application Java which? Of course the application in file JAR, because file extension JAD frankly only a ordinary text file, which one file extension JAD seen contents its alike once with MANIFEST the in file JAR.

The supplementary information in file JAD is url file address JAR, file measure JAR and certificate.

jad_auto_file

MIDlet-1: , ,
MIDlet-Jar-Size:
MIDlet-Jar-URL:
MIDlet-Name:
MIDlet-Vendor:
MIDlet-Version:
MicroEdition-Configuration:
MicroEdition-Profile:


File Extension JAD is files are commonly used to package Java applications or games that can be downloaded to mobile phones. File extension jad is Java applications enable Mobile phones to interact programmatically with online web services, such as the ability to send SMS messages via GSM mobile internet or interact in multiplayer games.
Recent midlets contain a manifest file in the JAR archive. This file contains much of the information stored in the JAD file, rendering it unnecessary in most cases.



...Read More

Tuesday, March 24, 2009

Active Server Pages Cookie

When a cookie is requested with the Request.Cookies collection in an Active Server Pages (ASP) page on Internet Information Services (IIS) 5.1, the cookie may not be returned.
CAUSE
If a cookie path is not explicitly added to the cookie when the cookie is added to the Response.Cookies collection in an ASP page, ASP automatically adds the cookie path. If the ASP page is not in the root Web site on the Web server, the path that is added includes the location of the ASP page relative to the root Web site.

Typically, the case (uppercase or lowercase) of the path that is added is the same as the case in the URL that was used to request the page. For example, suppose that cookietest is a subweb on a server that is named TestServer. You use the following URL to request the page:
http://TestServer/cookietest/test.asp
This sets the cookie in the browser and generates a cookie path of "/cookietest".

With ASP on IIS 5.1, ASP does not synchronize the case of this path with the case of URL. Instead, the case of the path matches the case of the associated directory in the file system. For example, if the test.asp file is located in the C:\Inetpub\wwwroot\CookieTest directory, a request to the same URL (http://TestServer/cookietest/test.asp) generates the cookie path of "/CookieTest". On a later request to http://TestServer/cookietest, the browser does not send the cookie because "cookietest" in the URL does not match the cookie path that is returned from IIS 5.1.

WORKAROUND
To work around this behavior, use one of the following methods:
• Manually add a path of "/" to the cookie. For example:
• Response.Cookies("TestCookie") = "Value"
• Response.Cookies("TestCookie").Path = "/"

By setting the path to the Web site root as "/", you resolve the problem because there is no issue with the case of the path matching the case of the URL. The disadvantage to this workaround is that a cookie that is issued with a path of root is returned to the server if a request is made for any page on the server. In other words, the cookie is not isolated to the application (subweb) from which it was issued.
• Make sure that the case of the URL that is used to request the page matches the case of the directory in the file system that is associated with the subweb.

If the case of the subweb in the URL matches the case of the physical directory that is associated with the subweb, the problem does not occur. For example, use the following URL to access a page that is located in C:\Inetpub\wwwroot\CookieTest:
http://TestServer/CookieTest/SomePage.asp
This problem does not occur because the generated cookie path ("/CookieTest") matches the case of "CookieTest" in the URL. The disadvantage to this workaround is that it is difficult to control the URL that is initially used to access a site. To work around this, you can redirect requests to a URL with the wrong case to the same URL with the correct case.

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows XP Service Pack 1 (SP1).
MORE INFORMATION
Steps to Reproduce the Behavior
The following steps reproduce this behavior on a computer that is running Microsoft Windows XP Professional.
1. Create a virtual directory in IIS that is named CookieTest. To do this, follow these steps:
a. Create a physical directory on the computer, and then name the directory CookieTest. Make sure that the "C" and the "T" in CookieTest are capitalized. Typically, this directory is located under the root directory for the Web server at C:\Inetpub\wwwroot\.
b. Use the Internet Information Services Manager to create a virtual directory. Name the directory CookieTest, and then associate this directory with the physical directory that you created in the previous step.
2. Use the following code to create two ASP files, CTest_W.asp and CTest_R.asp, and then save these files in the CookieTest directory:

CTest_W.asp
3. <%@ LANGUAGE="VBScript" %>
4.
5. <%
6. Response.Cookies("TestCookie") = "Value"
7. Response.Write("Your cookie has been set")
8. %>

CTest_R.asp
<%@ LANGUAGE="VBScript"%>

<%
Response.write("Here is the TestCookie value:")
Response.write(Request.Cookies("TestCookie"))
%>

9. Open the pages in the browser. To do this, follow these steps:
a. Start an instance of the browser.
b. Use the following URL to open CTest_W.asp and to set the cookie in the browser:
http://localhost/cookietest/CTest_W.asp
c. Use the following URL to open CTest_R.asp:
http://localhost/cookietest/CTest_R.asp
In this case, the browser does not return the cookie for CTest_R.asp to the server because the generated cookie path ("/CookieTest") does not match "cookietest" in the URL.
d. Use the following URL to open CTest_R.asp in the browser and to see the value of the cookie in the browser:
http://localhost/CookieTest/CTest_R.asp
In this case, the browser returns the cookie to the server because the generated cookie path ("/CookieTest") matches "CookieTest" in the URL.

...Read More

Tuesday, March 17, 2009

IT Engineer

PT. Bakrie Telecom, Tbk is a fast growing telecommunication company, known with its products such as Esia, Wifone and Wimode, is seeking high qualified candidates for position: IT Engineer
REQUIREMENTS :

* Minimum Bachelor degree of Informatics Technology from reputable University
* Have experience as IT Engineer ( Prefer from Telecommunication Industry)
* Familiar with java programming and UNIX environment
* Basic Knowledge about language programs( OO Programming, Oracle PL/MYSQL) and Database software
* Familiar with windows, linux and solaris operating system, perl, PHP Programming, Cisco Routers, Switces and Firewalls
* Fluent in English (Both written and oral )
* Excellent with Computer skills Willing to work under Pressure

Email Address: HR-Recruitment@bakrietelecom.com
source jobsdb

...Read More

Tuesday, March 10, 2009

The Visual Studio IDE crashes when you compile a large Visual Basic solution

SYMPTOMS
When you compile a large Microsoft Visual Basic solution in the Microsoft Visual Basic .NET 2003 compiler, the Microsoft Visual Studio IDE crashes. Additionally, you see duplicate interface entries in the compiled binaries for projects in the solution.
CAUSE
This problem is caused by a bug in the Visual Basic .NET 2003 compiler.
RESOLUTION
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Visual Basic .NET 2003 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:support.microsoft.com

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.
Prerequisites
You must have Microsoft Visual Basic .NET 2003 installed to apply this hotfix.
Restart Requirement
You do not have to restart the computer after you apply this hotfix.
Hotfix Replacement Information
This hotfix does not replace any other hotfixes.
File Information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Visual Studio .NET 2003 32-bit Hotfix
File name File version File size Date Time Platform
bcaut.dll 7.10.5021.0 598,016 06-Oct-2005 05:04 Not Applicable
msvb7.dll 7.10.5021.0 1,441,792 06-Oct-2005 11:12 Not Applicable

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
WORKAROUND
To work around this problem, use the Vbc.exe file to build each project in the Microsoft Visual Basic solution outside the IDE.
MORE INFORMATION
Stack Dump Information
You may receive the following stack dump information when the Visual Studio IDE crash occurs:
0:000> kL
ChildEBP RetAddr
0012f500 52ab383e kernel32!RaiseException+0x51
0012f548 52a37975 msvb7!PEBuilder::CompileToDisk+0xb2
0012f7c4 52a378e2 msvb7!CompilerProject::FinishCompile+0x3b
0012f7d0 52a379a7 msvb7!CompilerPackage::EndProjectCompilation+0x5d
0012f7e0 77d0612f msvb7!Messages::WndProc+0x65
0012f80c 77d069a5 user32!InternalCallWinProc+0x1b
0012f884 77d06689 user32!UserCallWinProcCheckWow+0x151
0012f8ec 77d0faec user32!DispatchMessageWorker+0x327
0012f8f8 500126c6 user32!DispatchMessageA+0xb
0012f92c 50012714 msenv!CSUIBuilder::PumpMessages+0x63
0012f934 5677bc2a msenv!CSUIBuilder::Tick+0xa
0012f968 5677bbd5 msvbprj!CVsProjBuildableProjectCfg::AdviseTick+0x30
0012f97c 5677bb7a msvbprj!CVsProjBuildableProjectCfg::TickEx+0x68
0012f99c 5677bb44 msvbprj!CVbBldCompiler::TickEx+0x32
0012f9b0 52a37831 msvbprj!CVbBldCompilerEvents::TickEx+0x26
0012f9cc 52a3784c msvb7!CompilerPackage::TickCompile+0x3b
0012f9d8 77d0612f msvb7!Messages::WndProc+0x50
0012fa04 77d069a5 user32!InternalCallWinProc+0x1b
0012fa7c 77d06689 user32!UserCallWinProcCheckWow+0x151

Keywords: kbfix kbqfe kbtshoot kbhotfixserver kbbug KB909085


...Read More

Exploring Sources Code © 2008 Template by Dicas Blogger.

TOPO