[email] Problem reading Java-generated HTML emails with Outlook 2010
Hi, I am having trouble when creating emails from Java using HtmlEmail. I need to send them to an Outlook 2010 client, and it shows the HTML code as plain text, it does not interpret the mentioned code. Is necessary to set any property before sending the email? Thanks a lot! Greetings, Tomas Garcia Tomás García Rodríguez toma...@servicioexterno.inditex.com Tel: +34 981185400 En el caso de haber recibido este mensaje por error, le rogamos que nos lo comunique por esta misma vía, proceda a su eliminación y se abstenga de utilizarlo en modo alguno. If you receive this message by error, please notify the sender by return e-mail and delete it. Its use is forbidden.
Re: [email] Problem reading Java-generated HTML emails with Outlook 2010
Hi Tomas, can you add the code snippet to create the HtmlEmail instance? Thanks, Thomas On Mon, Mar 24, 2014 at 12:43 PM, Tomás García Rodríguez toma...@servicioexterno.inditex.com wrote: Hi, I am having trouble when creating emails from Java using HtmlEmail. I need to send them to an Outlook 2010 client, and it shows the HTML code as plain text, it does not interpret the mentioned code. Is necessary to set any property before sending the email? Thanks a lot! Greetings, Tomas Garcia Tomás García Rodríguez toma...@servicioexterno.inditex.com Tel: +34 981185400 En el caso de haber recibido este mensaje por error, le rogamos que nos lo comunique por esta misma vía, proceda a su eliminación y se abstenga de utilizarlo en modo alguno. If you receive this message by error, please notify the sender by return e-mail and delete it. Its use is forbidden.
[math] Penman–Monteith equation
Sorry for the newbie question, but has anyone written a java method to solve the Peman-Monteith eq given the daily mean temp, rh, wind speed, and solar radiation? Looking for a method or utility to reasonably-accurately calculate net evapotranspiration for a pet project. Thanks in advance, AJ - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [math] Penman–Monteith equation
Why is this more than arithmetic? http://en.wikipedia.org/wiki/Penman%E2%80%93Monteith_equation On Mon, Mar 24, 2014 at 10:22 AM, AJ Weber awe...@comcast.net wrote: Sorry for the newbie question, but has anyone written a java method to solve the Peman-Monteith eq given the daily mean temp, rh, wind speed, and solar radiation? Looking for a method or utility to reasonably-accurately calculate net evapotranspiration for a pet project. Thanks in advance, AJ - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [math] Penman–Monteith equation
Is that a riddle? Maybe it's not more than arithmetic. Maybe someone on this java-math-related mailing list has this handy, and is willing to share, whether they leveraged the Commons Math library or not. -AJ On 3/24/2014 1:25 PM, Ted Dunning wrote: Why is this more than arithmetic? http://en.wikipedia.org/wiki/Penman%E2%80%93Monteith_equation On Mon, Mar 24, 2014 at 10:22 AM, AJ Weber awe...@comcast.net wrote: Sorry for the newbie question, but has anyone written a java method to solve the Peman-Monteith eq given the daily mean temp, rh, wind speed, and solar radiation? Looking for a method or utility to reasonably-accurately calculate net evapotranspiration for a pet project. Thanks in advance, AJ - 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: [math] Penman–Monteith equation
No. Not a riddle. It just looks on the wikipedia page like it requires evaluating a formula. WRiting that formula doesn't require commons math. On Mon, Mar 24, 2014 at 10:39 AM, AJ Weber awe...@comcast.net wrote: Is that a riddle? Maybe it's not more than arithmetic. Maybe someone on this java-math-related mailing list has this handy, and is willing to share, whether they leveraged the Commons Math library or not. -AJ On 3/24/2014 1:25 PM, Ted Dunning wrote: Why is this more than arithmetic? http://en.wikipedia.org/wiki/Penman%E2%80%93Monteith_equation On Mon, Mar 24, 2014 at 10:22 AM, AJ Weber awe...@comcast.net wrote: Sorry for the newbie question, but has anyone written a java method to solve the Peman-Monteith eq given the daily mean temp, rh, wind speed, and solar radiation? Looking for a method or utility to reasonably-accurately calculate net evapotranspiration for a pet project. Thanks in advance, AJ - 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: [email] Problem reading Java-generated HTML emails with Outlook 2010
Hello Tomas, did you follow the Userguide example? http://commons.apache.org/proper/commons-email/userguide.html Greetings Bernd Am Mon, 24 Mar 2014 12:43:16 +0100 schrieb Tomás García Rodríguez toma...@servicioexterno.inditex.com: Hi, I am having trouble when creating emails from Java using HtmlEmail. I need to send them to an Outlook 2010 client, and it shows the HTML code as plain text, it does not interpret the mentioned code. Is necessary to set any property before sending the email? Thanks a lot! Greetings, Tomas Garcia Tomás García Rodríguez toma...@servicioexterno.inditex.com Tel: +34 981185400 En el caso de haber recibido este mensaje por error, le rogamos que nos lo comunique por esta misma vía, proceda a su eliminación y se abstenga de utilizarlo en modo alguno. If you receive this message by error, please notify the sender by return e-mail and delete it. Its use is forbidden. - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [daemon]
Martin Gainty mgainty at hotmail.com writes: From: frederick.van-der-neut at hp.com To: user at commons.apache.org Subject: [daemon] Date: Thu, 20 Mar 2014 15:05:05 + Hi, I have been having an issue where the windows service I created will hang. I was able to start my java program as a Network Service. It starts and stops fine I can also send it a command from cmd to check the client status, but whenever I send it a command to spawn a new thread it sits there hung up until I end the process. The program works fine in both eclipse and running it standalone from cmd. Only when it is a service do I get issues. Is this a limitation of procrun? What else could be causing the service to lock up like this? MGI'll ask the obvious questions: MGDid you set the procrun -Jvm parameter so jvm.dll will load MGIf so then youll need to set --StartMode jvm MGWhat is in your registry located at: MGHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceName MGHKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\ProcRun 2.0\ ServiceName\Parameters MGHKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\ProcRun 2.0\ServiceName MGAlso daemonizing a exe or java binary has these consequences: When using the Java or exe modes, the Procrun service application (prunsrv) launches the target application in a separate process. The stop application needs to communicate somehow with the start application to tell it to stop. For example, using RPC. Thanks, Freddie MGWo arbeitest du MGMartin Hi Martin, Yes the JVM parameters are set so the jvm.dll will load The service is located in two locations of the registry. MGWhat is in your registry located at: MGHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceName MGHKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\ProcRun 2.0\ServiceName Thanks, Freddie - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [math] Problem with ODE discrete event
Hi Calle, Le 24/03/2014 17:28, Calle Ekdahl a écrit : When using the event handler in the ODE solver I’m getting the error message/exception Exception in thread main org.apache.commons.math3.exception.NoBracketingException: function values at endpoints do not have different signs, endpoints: [692,555, 692,556], values: [-0, -0]” What could be the cause of this? My g switching function: public double g(double t, double[] y) { for(int i=0; i y.length/6; i++) { double norm = Math.sqrt(y[6*i]*y[6*i]+y[6*i+1]*y[6*i+1]+y[6*i+2]*y[6*i+2]); if(norm-distanceThreshold minDistance) minDistance = norm-distanceThreshold; } System.out.println(minDistance); return minDistance; } The result of System.out.println(minDistance) does include a sign switch: 4.682173046832716E-5 2.510576831160627E-5 3.389511416873603E-6 -1.8327040230747826E-5 -1.8327040230747826E-5 -1.8327040230747826E-5 However instead of triggering eventOccurred it throws the exception. I am not sure your function is well defined. If minDistance is a field in the event defining class, then it keeps a track of past calls and once it has reached a min value, it never comes back. This seems to be what you get in the println, as the three last values are identical. Here is the sequence I suppose is happenning. At start, you have minDistance some positive value. Then as the integrator progress in time, the distance reduces (say at times t1, t2, t3 corresponding to your first points), until at some time it goes below distanceThreshold and then becomes negative. Say it occurs at t4. At this step, the integrator detects there was a sign change between t3 and t4, and launches a solver with the taks to find the zero between t3 and t4. However, since minDistance is already stored to be -1.8327040230747826E-5, you never enter the if in your g function, and the value reamins the same. Then the solver is lost, as its caller told it there was a zero between t3 and t4, and in fact it finds the value is always negative. Your g function should be well behaved, and depend mainly in the t and y parameters. Having it store and reuse states from one call to another call is a source of problems. Hope this helps, Luc - 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