Eric Matthew wrote:Then I realized I could just excel to select all the Strings and Integers, find & replace all the "," with "". Bam, all extra commas gone. Don't know how this slipped my mind.
Paul Clapham wrote:I'm pretty sure it's going to be whatever I did wrongly in setting up a connection pool, I just looked at the logs and I see that it's closing pooled connections immediately instead of keeping them open for 5 minutes as I thought I had told it. So far everything I've done looks kosher but for sure it's my fault. I just have to find out why.
Eric Matthew wrote:What small thing did you over look or perhaps didn't click-in/notice right away for you that caused so much frustration?
Awhile back ago, I had a difficult time parsing/splitting a CSV(Comma Seperated Values) file that had fields with commas in them "Plumbing & Cleaning, Inc." and "$1,999.00". So I read up on Regular Expressions hoping to get some voodoo magic working for a few days.
Then I realized I could just excel to select all the Strings and Integers, find & replace all the "," with "". Bam, all extra commas gone. Don't know how this slipped my mind.
How about yourself? What can we learn from your pain and suffering?
Jeff Zak wrote:All these little things add up and you learn from it so they aren't all that bad.
Eric Matthew wrote:How about yourself? What can we learn from your pain and suffering?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Bloch does confess to another mistake with BigInteger/BigDecimal. He forgot to mark the classes final.Winston Gutkowski wrote:. . . And if any further proof was needed, here's another from a class written by none other than Joshua Bloch . . .
I haven't bothered to work out what 2²¹⁴⁷⁴⁸³⁶⁴⁷ − 1 is, but you need a pinch of salt to take with the following:-BigInteger constructors and operations throw ArithmeticException when the result is out of the supported range of -2^Integer.MAX_VALUE (exclusive) to +2^Integer.MAX_VALUE (exclusive).
"infinite word size" abstraction provided by this class.
Campbell Ritchie wrote:BigInteger does include a private constant called MAX_MAG_LENGTH which appears to be equal to 2²⁶; if you multiply that by 32 you get 2³¹, so that will probably prevent overflow in the bit length methods.
It also says: "BigInteger constructors and operations throw ArithmeticException when the result is out of the supported range of -2^Integer.MAX_VALUE (exclusive) to +2^Integer.MAX_VALUE (exclusive)".
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Campbell Ritchie wrote:I haven't bothered to work out what 2²¹⁴⁷⁴⁸³⁶⁴⁷ − 1 is, but you need a pinch of salt to take with the following:- "infinite word size"...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Everybody! Do the Funky Monkey! Like this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|