Re: [pool] how to put a hard limit on idle time?
On 1/28/2011 6:18 PM, Phil Steitz wrote: The requirement to only hold instances for 5 seconds is a pretty severe limitation that will limit the value of the pool. If there is any way to engineer the instances so that they can tolerate longer inactivity periods, you will get more value from the pool. Essentially, we're attempting to pool open socket connections to a TCP server. This server is completely outside our control and is really overloaded. The maintainers of this server have this really bizarre timeout whereby connections that are idle for 5 seconds for any reason (even waiting for a response from THEIR end) are killed with extreme prejudice. We're attempting to alleviate the matter by radically reducing the number of open connections we make to that server by pooling and reusing connections, but their aggressive timeout remains. We're in agreement that this timeout is ill-conceived, but we're definitely not in a position to dictate terms to the owners of the server in question. We're trying to use the pool settings to evict sockets that may be close to hitting this timeout, or have already hit it, and this works fine with our mock server. However, we've seen under testing with the external server that the eviction thread isn't always culling them soon enough. We may try your suggestion to manage timestamps ourselves outside the pool in the short term, since we're completing this particular sprint in the middle of next week. Thanks much, Alan Krueger - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Levenberg Marquardt Simple Example
Hi, Just wondering whether anyone knows of a simple example illustrating how to use the LevenbergMarquardt optimizer. TIA, - Ole - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
[Math] Re: Levenberg Marquardt Simple Example
Hello. [Don't forget to write a [Math] marker in the subejct line of your mail.] Just wondering whether anyone knows of a simple example illustrating how to use the LevenbergMarquardt optimizer. When you check out the code from https://svn.apache.org/repos/asf/commons/proper/math/trunk You can find examples in directory src/test/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizerTest.java Best, Gilles - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [email] 1.3 snapshot
Hi Nathan, good question ... :-) ... currently not implemented I have a look at it Siegfried Goeschl On 1/27/11 12:40 AM, Nathan Maves wrote: This all looks good so far. How can I specify the root of the classpath as the DataSourceResolverImpl location? On Mon, Jan 24, 2011 at 10:09 AM, Siegfried Goeschlsgoes...@gmx.at wrote: Hi Nathan, have a look at ImageHtmlEmailTest.java and DataSourceResolverTest.java - it should be possible to resolve the images from a relative URL Cheers, Siegfried Goeschl On 1/24/11 3:42 PM, Nathan Maves wrote: Siegfried, I did check it out yesterday and I installed in manually. I should give it some good testing today. How do you handle a url that is only local and will never be on the internet? I saw in the code that you can use file:// but is that a relative path or absolute? Nathan On Mon, Jan 24, 2011 at 6:32 AM, Siegfried Goeschlsgoes...@gmx.at wrote: Hi Nate, I have a look to upload the snapshot but for quick testing I would install it by hand. And I would appreciate feedback regarding the new ImageHtmlEmail so I can make changes before the release. Cheers, Siegfried Goeschl On 1/24/11 12:29 PM, Simone Tripodi wrote: Hi Nate!!! :) looks like the commons-email-1.3 is not available yet on apache snapshot repository[1], BTW you can bookmark the snapshot repo URL for future usages. HTH, Simo [1] http://repository.apache.org/snapshots/commons-email/commons-email/ http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Sun, Jan 23, 2011 at 7:14 PM, Nathan Mavesnathan.ma...@gmail.com wrote: I just saw the new ImageHtmlEmail class and would love to test it out. I don't seem to be able to find the 1.3-SNAPSHOT in any of the repositories. Is it available anywhere or do we have to install it locally by hand? Nathan - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: NumberUtils and decimal point character
None I can think of; I've recorded it as LANG-674: https://issues.apache.org/jira/browse/LANG-674 Thanks :) On Thu, Jan 27, 2011 at 1:11 AM, Stevo Slavić ssla...@gmail.com wrote: Hello Apache Commons users, Is there any valid reason why '.' is hardcoded as decimal point character in lang.math.NumberUtils, commons-lang (2.6) ? Shouldn't this be locale dependent? Regards, Stevo. - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
[SCXML] Actionscript SCXML engine
Hi guys, I am a doctor student from China. My name is Gavin Lei. I have much Flex/Flash development experience, and you know that we usually use Flash actionscript to develop some cartoon application, such as some thing move in the screen. Recently, i noticed that SCXML may be a good solution for this kind of application, it can control state and transation very well. But sadly i can not get any good ActionScript based SCXML engine, and we know we have a Java based SCXML engine under Apache Commons, so i want to develop a similar actionscript based SCXML engine. I will finish this job step by step: step 1: Finish basic element parse job for SCXML document, these elements includes: SCXML,state,transition,parallel,initial,final,onentry,onexit and some other relative basic element. I will implenent them in actionscript, parse them into ActionScript object. step 2: Finish execute content elements parse job for SCXML document, parse Raise, If, ElseIf, Else and Log into Actionscript object, and we should involve Data Model elements parse job too, for example, we usually use datamodel element as If elements' parameter step 3: Just like Commons SCXML engine, we should build TriggerEvent, Step, Status and SCInstance and basic SCXMLExecutor here, package a basic SCXML executor engine here. After these jobs, i will put myself upon thinking about the most useful CustomAction implemention in this ActionScript SCXML engine. Any good advises? please let me know, thank you. -- - Best Regards Gavin Lei (雷银) Email: gavingui2...@gmail.com