Friday, January 13, 2006

"A simple way to spread goodness"

"A simple way to spread goodness": "George Washington Carver said, 'How far you go in life depends on your being tender with the young, compassionate with the aged, sympathetic with the striving, and tolerant of the weak and the strong . . . Because someday in your life, you will have been all of these.'

Great food for thought huh? If you like reading the All Pro Dad Play of the Day e-mail, invite your friends and family to do the same. Send them the following link so they can sign up: http://www.allprodad.com/playoftheday.asp It’s a marvelous way to remind them what’s truly important in life."

Frequently Asked Questions

Frequently Asked Questions: "Question: Why are you using 'StringBuffer' instead of 'String' for passwords & text?
Answer:

Starting from beta 6, I've changed all passwords and text containers from Strings to StringBuffers.

The Java Virtual Machine uses a garbage collector (GC) to cleanup memory. In Java we don't have functions to clear the memory. In fact, it is possible that the GC is not called after an operation and that some (sensitive) information stays in memory. So we have to cleanup our 'mess' by ourselves.

In Java, Strings are immutable, they can't be changed after they were set. Even if we set the string to null and the GC is called it is not sure that this information is cleared from the memory. With StringBuffers or character arrays we can resize and reset data byte-per-byte. This is what I did, cleanup the StringBuffers after usage, so we are sure that sensitive information such as passwords are stored in memory only during the time needed (as less as possible)."

Thursday, January 12, 2006

Intel Macs will run Windows... eventually

Intel Macs will run Windows... eventually:

You, this will be so sweet. I need to check out the Virtual PC for Mac OS X

"So Mac OS X and Windows will still run natively on Macs, but we'll have to wait for Windows Vista to see it happen. Once Microsoft ships a version of Virtual PC for Mac OS X compiled as a Universal Binary, Mac users will be able to run Windows at near-native speeds on their machines."

Tuesday, January 10, 2006

FAQs: JTA

FAQs: JTA: "Can I use more than one non-XA connection pool in distributed transactions?

No. Even if you set EnableTwoPhaseCommit=true for both TxDataSources of the connection pools, attempting to use two non-XA connection pools in the same distributed transaction will result in:

'java.sql.SQLException: Connection has already been created in this tx context for pool named {first pool's name}. Illegal attempt to create connection from another pool: {second pool's name}'

when you attempt to get the connection from the second non-XA connection pool."

FAQs: JTA

FAQs: JTA: "Can I use more than one non-XA connection pool in distributed transactions?

No. Even if you set EnableTwoPhaseCommit=true for both TxDataSources of the connection pools, attempting to use two non-XA connection pools in the same distributed transaction will result in:

'java.sql.SQLException: Connection has already been created in this tx context for pool named . Illegal attempt to create connection from another pool: '

when you attempt to get the connection from the second non-XA connection pool."