What is and how do I use Java's Reflection?
Have you ever wondered what is Java's Reflection and how do you use it?
If so, you may have interest in reading this article that gives you a brief introduction on the subject with examples.
This blog belongs to Patrick Fust and contains links mostly concerned about java and security issues.
What is and how do I use Java's Reflection?
I have made a colorprofile for my monitor, but the printing of images look different!
A secure, memorable password is easy for you to remember, and hard for others to guess.
What do I send to that webservice, and what do the service return?
webproxy:8080) and tried starting up tcpmon with -Dhttp.proxyHost=webproxy -Dhttp.proxyPort=8080, but still it won't work...-Dhttp.proxyHost=localhost -Dhttp.proxyPort=8888 (Now we use tcpmon as proxy)| Port | 8888 |
| Server Name | Proxyserver (in my case webproxy) |
| Server Port | Proxyserverport (in my case 8080) |
I want to fire onChange method on an object programmatically in Javascript.value on an object you might expect that the onChange method is fired, but sorry... no firering...function newValueForObject {
var myObject = document.getElementById(nameOfObject);
myObject.value = 'a new value';
if (myObject.hasAttribute) { // Firefox
if(myObject.hasAttribute("onchange")){
myObject.onchange();
}
} else if (myObject.onchange) { // IE
var newEvt = document.createEventObject();
myObject.fireEvent("onchange", newEvt);
}
}
Please help me speed up my Windows startup time!
%userprofile%\Start Menu\Programs\Startup
%allusersprofile%\Start Menu\Programs\StartupOr in the registry:HKLM\Software\Microsoft\Windows\CurrentVersion\Run
HKCU\Software\Microsoft\Windows\CurrentVersion\Run
HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnceEx
HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnceEx
How should I choose an open source license?
I would like to see all the properties of a given object.
function popUpProperties(inobj) {
op = window.open();
op.document.open('text/plain');
for (objprop in inobj) {
op.document.write(objprop + ' => ' + inobj[objprop] + '\n');
}
op.document.close();
}
Ex.: popUpProperties(document.forms[0]);
The article discusses what kind of test that's needed in a project, and what the differences are between the different kind of tests.
Unit tests run fast. If they don't run fast, they aren't unit tests.
Enterprise-grade SOAs require a plan for addressing diverse security needs
The quick way to check how good a software team is.
Isn't it annoying you have to specify all the jar files needed to run a javaprogram?
SET CLASSPATH=jar1.jar;jar2.jar;jar3.jar... javac.exe -Djava.ext.dirs=usualextdir;anotherdir... java.exe -Djava.ext.dirs=usualextdir;anotherdir...Suppose you have developed your Java application and distributed it to your users. If all goes well, the application just works on every computer. But if there's a problem, you have to begin troubleshooting. Users will call for all sorts of installation problems, expecting you to fix them. Moreover, the same problems will often come back: the wrong version of Java, a deleted file, too-restrictive file permissions, etc. Most of these problems can be solved by creating a checklist. However, instead of wasting time asking new users the same questions on the checklist over and over, you can create a diagnostic test that goes through the checklist, providing users with the information they need to solve the problem. If users can't solve the problem themselves, they can show you a clear checklist, so you can take a look at what's going wrong without asking a bunch of questions first.
JAVA_HOME environment variable) or changes in the directory structure can indeed break things. In this article, we will develop an Ant script to run diagnostic tests for a Java application. We will look at a list of possible problems and how to deal with them. For our approach to work, Ant has to be installed on the user's machine. This may mean that your installer will have to provide Ant.