Thursday, January 8, 2009
Hack to Remove/Uninstall Symantec Norton Antivirus (SAV) Client without Password
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
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
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.1 | J2EE | |
Lines of Code | 2,096 | 14,004 |
Time required for tuning and optimization prior to performance test | 2 man-weeks | 10 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 Second | 1,400 | 600 |
Maximum Number of Concurrent Users | 6,000 | 4,000 |
Maximum Number of Transactions per Second | 117 | 59 |
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 | .Net | Java | Cold Fusion MX | PHP |
Compiled Code – Increases website speed (precompiled is the fastest) | Yes – both pre- compiled and dynamically compiled when a page is requested | Yes – both pre- compiled and dyn- amically compiled when a page is requested | Yes – dyn- amically compiled when a page is requested | No – 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 performance | No | No | Somewhat | Yes – 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. | Yes | Yes | Somewhat | No |
Supported Development Languages – easier to find developers | C++, C#, Visual Basic.NET, Jscript.NET, Python, Perl, Java (J#), COBOL, Eiffel, Delphi – 25 languages supported currently | Java | CFML and CF Script | PHP |
Browser Specific HTML Rendering – different HTML is automatically sent to IE than to Netscape, reducing incompatibility issues | Yes | No | No | No |
Open Source | No | Yes | Somewhat | Yes |
Reference from Wikipedia:
Comparison of web application frameworks