Thursday, January 8, 2009

Hack to Remove/Uninstall Symantec Norton Antivirus (SAV) Client without Password

Norton AntiVirus Clients or Symantec AntiVirus Clients especially Corporate Edition Clients can be installed as managed network setup type by a Symantec AntiVirus Server. When a Symantec AntiVirus Client is managed, it will prompt for password when uninstalling client via local computer Control Panel Add or Remove Program applet. If you don’t know or forget the password, then the client is not able to uninstall or remove. And the SAV client uninstall password won’t work with server group password too, as if you enter that password, you will receive an invalid password message.

The client uninstallation password is different from the server group password, and it can be set by the administrator through the Symantec System Center for the client that is managed. If the client uninstallation password has not been set or changed specifically, it will still be the default password. Thus, first thing to try in order to successfully uninstall a Symantec Client Security program is by using the default password for the uninstalling clients, which is symantec.

In the cases where Symantec AntiVirus server has been taken down and no longer exist, or the client computer has no access to company network, or the default client uninstall password does not work, the following hack will enable you to remove Symantec Antivirus without using a password:

1. Open Registry Editor (regedit).
2. Navigate to the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\Administrator Only\Security\
3. Change the value for useVPuninstallpassword key from 1 to 0.
4. Exit Registry Editor and now you can uninstall Symantec AntiVirus Client.

The trick should work on most version of Symantec AntiVirus client or Norton AntiVirus Client, including version 7, 8, 9 or 10.

Free Disk Space By Making Windows Vista Service Pack 1 Permanent

If you are using Windows Vista and have installed the Service Pack 1, you may be losing up to 1GB of space because of old and redundant files Windows has stored. You can easily recover this space by making Windows Vista Service Pack 1 permanent.

To recover almost 1GB of space after you have installed Windows Vista service Pack 1, follow the simple steps listed below.

1. Open a command prompt window.
2. Type in the command “vsp1cln” (since this executable exists in system32 folder, it’s a global command and can be run from any folder) and hit Enter.
3. Read the instructions and type in “Y” and hit enter.
4. You should see Vista performing a clean up of old files, once it’s complete you should recover almost 1GB of disk space.

Wednesday, January 7, 2009

Execute code in both If and Else part

I a very trick question, if we ask some one how we instruct the program to execute both IF-Condition code and Else-Condition code in one IF-Else condition statement.

Like we have a condition as follows:

if (True) {
// code A
}
else {
// code B
}

Ideally any one code can be executed, if True than code A will be executed otherwise code B is executed. What if i want to execute both code A and code B?

Well, we know in C language, Visual basic and some other languages we have "goto" statement, "goto" statement is used to jump from one code line to another by passing any program flow, so we can do like this:

if ( True ) {
LABLE1:
// code A
goto LABEL2
}
else {
LABEL2:
// code B
}

What will happen if condition is True than code A is executed and in the next line we instruct it to jump to label "LABEL2" with "goto" statement, that’s it we have forced the program to work against the logical rule. That is why "goto" statement should not be used as it can violate the program rules and are difficult to debug as well.

Thursday, January 1, 2009

Comparison Of Dot Net, J2EE, PHP

A team of 2 developers rebuilt the “Sun Microsystems' Java Pet Store J2EE Blue Print Application” using .Net in 4 weeks with 25% of the code. When tested in a lab, the .Net application ran %1000 faster than a tuned version of the Java application.
The same Pet Store application was rebuilt by both Microsoft and Sun for an independent competition sponsored by The Middleware Company.
Below is a comparison of the results:

.Net 1.1J2EE
Lines of Code2,09614,004
Time required for tuning and optimization prior to performance test2 man-weeks10 man-weeks
Price/Performance Ratio – the cost per server divided by the maximum transactions per second the server could handle$316 – in other words, for a Java application to handle the same amount of website traffic as a .Net application, an additional $989 would need to be spent on server hardware.$1,305
Maximum Pages served per Second1,400600
Maximum Number of Concurrent Users6,0004,000
Maximum Number of Transactions per Second11759

In general, .Net brings the power of an enterprise application into the cost range f a small and medium sized business by reducing the lines of code required. This reduction in code results in decreased development time, expensive development staff, maintenance and overall cost, while delivering superior website performance.

Feature.NetJavaCold Fusion MXPHP
Compiled Code – Increases website speed (precompiled is the fastest)Yes – both pre- compiled and dynamically compiled when a page is requestedYes – both pre- compiled and dyn- amically compiled when a page is requestedYes – dyn- amically compiled when a page is requestedNo – a 3rd party accelerator can be used to increase performance but it is not installed on most shared hosting servers.
Scripted Language – results in poor website performanceNoNoSomewhatYes – a 3rd party accelerator can be used to increase performance but it is not installed on most shared hosting servers.
Object Oriented – Increases the ability for code reuse and provides enhanced features as well as reduced development time; since code is more reusable, results in fewer bugs that can be discovered by any client and fixed for everyone; encourages developers to write more maintainable code.YesYesSomewhatNo
Supported Development Languages – easier to find developersC++, C#, Visual Basic.NET, Jscript.NET, Python, Perl, Java (J#), COBOL, Eiffel, Delphi – 25 languages supported currentlyJavaCFML and CF ScriptPHP
Browser Specific HTML Rendering – different HTML is automatically sent to IE than to Netscape, reducing incompatibility issuesYesNoNoNo
Open SourceNoYesSomewhatYes

Reference from Wikipedia:

Comparison of web application frameworks