ways to speed up wordpress.
Check this out later.
February 2007 Archives
This is a great summary of how to do this with the new Instrument package in Java 5+.
The article boils it down very well, but the ultra nutshell version is that you define a class that gets loaded as a "pre-main" agent. First, create a simple implementation of
java.lang.instrument.Instrument, creating a manifest file, putting the class file into a jar (with the manifest). Then, start your java application (like tomcat or whatever) with -javaagent:jarfile. Finally, in your code, call your SizeAgent class like this:
try {
int size = SizeAgent.sizeOf("some java object, like maybe this string");
} catch (IllegalStateException e) {
// size agent is not loaded by -javaagent switch
}
Nice typo.
A nice one from Stevie.
Steve Jobs gets it, not surprisingly I suppose. The big question is this:
Jobs can convince smart software people to go along with crazy, unrealistic ideas. Can he convince the idiots at the big music companies of the harsh reality of the digital future? That DRM will never work?
I doubt it. They'll only be convinced when their business is dead and gone.
If you run your own SSL mail server (imap or pop or smtp), you probably have a self-signed certificate. This will make your Mail application complain that the certificate is not trusted. Since you can trust your own self-signed cert, you need to add your certificate to the trusted list on your own mac. Here is how (on Tiger, maybe a little different for other versions):
- Download your CA certificate and put on your desktop. Call it mycert.crt or whatever.
- Make sure you're logged in an a user with administrative privileges.
- Open /Applications/Utilities/Keychain Access
- Select File - Import
- Select the file mycert.crt
- Chose "X509 Anchors" as the destination for the import. Note: don't import it to the login keychain.
- Give your password when prompted.