Jacob Beard | 21 May 21:13
Picon
Favicon
Gravatar

Re: [scxml] there is a working example?

Hi,

Sorry, I don't have enough experience with Commons SCXML to answer that
question.

I mentioned the <script> tag, because in the examples in the SCXML spec,
variables in the datamodel are exposed as local variables to the scripting
context which executes the contents of SCXML nodes with executable content,
such as @expr, @cond and <script>. In the SCXML spec, JavaScript is used as
the scripting language, but I think SCXML Commons allows other scripting
languages, such as EL. When non-JavaScript scripting languages are used,
it's less clear how the data model is exposed to the script context, and
this is somewhat implementation-dependent as well, which is why I suggested
a solution in which JavaScript is used as the scripting language. It seems
Commons SCXML may support using JavaScript as scripting language in the J6
branch.

That's about the extent of my knowledge on this subject.

Cheers,

Jake

On Mon, May 21, 2012 at 1:47 PM, Alessandro Scarozza <xan.scale <at> gmail.com>wrote:

> i dont need scripts, i need to access to variables directly
>
> <data id="oneValue" expr="0"></data>
>  <transition event="alfa" cond= "oneValue ===  0" target="two">
> </transition>
(Continue reading)

Alessandro Scarozza | 20 May 22:13
Picon

[scxml] there is a working example?

hi to all,

i need a full working example for SCXML, in particular with evalutator
online i just find stopwatch, but i need a more complex example (xml and java)

anyone can help me?

thz

--

-- 
Alessandro Scarozza
http://www.google.com/profiles/xan.scale
wangm | 20 May 17:22
Picon

[pool] Is there any way to monitor StackObjectPool usage?


Dear all,     I am currently using StackObjectPool. It can work well. But I want to monitor the usage of the whole
pool, for instance, how many resource in the pool are really been used, and how many are idle?    Any comment
will be real appreciated. 
Sincerely MerlinShift+sforward sentence 		 	   		  
Vincent Wolowski | 14 May 18:43
Picon

[math] fitting hill equation & parameter estimation

Hi all,

I am having some troubles fitting data to a hill equation
in order to estimate the dissociation constant.
I would be thankful for your advise.

The details:

The hill equation is the following:
x^h / (x^h + Kd^h) * s

An example of the data is the following:
x, y
1.0, 2.5118
5.0, 6.8069
25.0, 16.4898
125.0, 24.8289
625.0, 18.2857

In R I used the nls package and I have done the following which works fine:

ints_values <- c(2.5118,  6.8069,   16.4898,    24.8289,   18.2857)
datapoints <- data.frame(x = c(1,5,25,125,625), intensity = ints_values)
model <- nls(intensity ~ (x^h / (x^h + Kd^h) * s),
             data = datapoints,
             start = list(Kd=90, h=1.8, s=0.8),
             upper = c(1000,2,1),
             lower = c(1,1,0.4),
             algorithm = "port",
             trace = TRUE)
(Continue reading)

henrib | 14 May 18:43
Picon
Favicon

[JEXL] Snapshots published

Dear Jexl users and Apache friends;

Jexl 2.1.2 and 3.0 snapshots have been published.
The former which is just a minor/bug-fixing release can be used through:

<dependency>
  <groupId>org.apache.commons</groupId>
  <artifactId>commons-jexl</artifactId>
  <version>2.1.2-SNAPSHOT</version>
</dependency>

The latter which is a major API rewrite (thus the jexl3 packaging) through:

<dependency>
  <groupId>org.apache.commons</groupId>
  <artifactId>commons-jexl3</artifactId>
  <version>3.0-SNAPSHOT</version>
</dependency>

Anyone with spare cycles to check those snapshots is more than welcome to
report any issue before I start/attempt the release cycle.
Cheers;
Henrib

--
View this message in context: http://apache-commons.680414.n4.nabble.com/JEXL-Snapshots-published-tp4632584.html
Sent from the Commons - User mailing list archive at Nabble.com.
Gabriel Rossetti | 14 May 13:25

Commons Validator: Cross field (business logic) validation?

Hi all,

I have searched Google for this but I can't find a definitive answer, can the validation framework do
cross-field validation? I would like to use this for business logic validation as well as field validation.

Since I don't have a web page (the client is a heavy client) I thought that maybe I could define several form
validation rules, each one being for a specific  business logic rule, but I haven't seen anyone doing this.
Not finding anything prompted me to wonder if I had not understood how the validation framework works.

Thanks,
Gabriel

  ________________________________

This email and any attachments are confidential and access to this email or attachment by anyone other than
the addressee is unauthorised. If you are not the intended recipient please notify the sender and delete
the email including any attachments. You must not disclose or distribute any of the contents to any other
person. Personal views or opinions are solely those of the author and not of Trafigura. Trafigura does not
guarantee that the integrity of this communication has been maintained nor that the communication is
free of viruses, interceptions or interference. By communicating with anyone at Trafigura by email, you
consent to the monitoring or interception of such email by Trafigura in accordance with its internal
policies. Unless otherwise stated, any pricing information given in this message is indicative only, is
subject to change and does not constitute an offer to deal at any price quoted.
Andreas Niekler | 14 May 10:02
Picon

[math] Usage of DifferentiableMultivariateRealFunction

Hello,

i'm currently developing a gaussian process implementation for my PhD 
thesis. Within this package i need to calculate and maximize the 
marginal likelihood of the model given some data. This marginal 
likelihood is dependent on the parameters of a covariance function which 
is used. For a certain covariance function one can calculate the 
derivitives and the gradients for the marginal likelihood to optimize 
this function.

My Question: Can someone show me an example for the usage of 
DifferentiableMultivariateRealFunction and a matching optimizer. I 
understand the concept but the implementational details are hard to 
find. Here is what i understood:

value: the value of the function.

gradient(): an array containing all partial derivitivs gradients for the 
parameters.

partialDerivitive: Value containing only one gradient of the function

if i provide this basic implementation i should pass this to the 
optimizer. Or do i have to provide an extra target function to the 
optimizer as inicated by some optinmizers with the <FUNC> operator?

Thnak you
--

-- 
Dipl.-Ing. (FH) Andreas Niekler
Mitarbeiter und Promovend
(Continue reading)

Ludwig Magnusson | 13 May 13:02

[Collections] retainAll and removeAll with different equal-methods

Hello!
I have two lists and I want to use the methods ListUtils.retainAll and ListUtils.removeAll on them.
However, I want to do this several times with comparison methods that are different from the defaul
equals-method. I.e I would like to compare the elements in the two lists from several different
prespectives. 

Consider a class Person that has the attributes firstName and lastName. I could define the equals method to
say that two persons equals if they have the same first name. I could also say that they equals if they have
the same full name. But what if I want to alternate?

So basically what I want to do is this:
List<Person> firstList; 
List<Person> secondList;
List<Person> firstNamesThatOccurInBothLists = ListUtils.retainAll(firstList, secondList, [Third
equals-comparator argument]);
List<Person> fullNamesThatOccurInBothLists = ListUtils.retainAll(firstList, secondList, [Third
equals-comparator argument]);

Can something of this effect be done with commons collections in any way?
/Ludwig
B.Kumar | 13 May 09:06

[math] Gaussian fitter problem

Hi!
I am using the gaussian fitter. Occasionally, I see that the gaussian 
curve that it generates goes negative - undershoots the x-axis. How do I 
avoid this?
Please see the attached plot (using JFreeChart).
Thanks in advance for your help.
B.Kumar
Thufir | 13 May 01:41
Picon

Fwd: Re: edit gnome-list <at> gnome.org

Just as an FYI to the list..

-------- Original Message --------
Subject: Re: edit gnome-list <at> gnome.org
Date: Sat, 12 May 2012 22:43:32 +0200
From: asjo <at> koldfront.dk (Adam Sjøgren)
Reply-To: admin <at> gmane.org
To: hawat.thufir <at> gmail.com
Newsgroups: gmane.discuss.subscribe
References: <jkpo15$ojb$1 <at> dough.gmane.org>
[...]

On Mon, 26 Mar 2012 14:53:08 +0000 (UTC), hawat.thufir <at> gmail.com wrote:

> gmane.comp.jakarta.commons.user   user <at> commons.apache.org
>   User discussion list for the Apache Jakarta Commons project, a collection of open source Java components

> unfortunately, posting is not allowed, or at least silently fails.

Ok; marked as unidirectional.

Are you subscribed to the lists? Some mailing lists only accept posts
from subscribers (many mailing list managers allow you to be subscribed
without getting emails (i.e. "vacation mode")).

   Best regards,

     Adam

--

-- 
(Continue reading)

Erick Lichtas | 11 May 18:39

Commons Net File name of the Connect Enterprise Parser

I've recently ran into a scenario where a connect enterprise server contains file name with spaces. 
Because of this, the EnterpriseUnixFTPEntryParser does not accurately parse the listing returned by
the server.  Below is the raw listing of the server:

-AR-------TCP A ceunix      398082    2843 May 09 02:26 PGP EWN PREDAY MEFSEWN.120509022645
-AR-------TCP A ceunix      451560    3022 May 10 02:24 PGP EWN PREDAY MEFSEWN.120510022415
-ART------TCP A ceunix      427643    3485 May 11 02:22 PGP EWN PREDAY MEFSEWN.120511022237

In this case, the file name returned by the parsing is simply PGP, but the file name is indeed everything
after the timestamp, so "PGP EWN PREDAY MEFSEWN.120509022645" for example.

I am using commons net 2.2.1, but have reviewed the parser for the latest 3.1 and it is the same.  Group 23 and 24
of the regex contain the entire filename when combined, but group 24 is never used.   I'm curious if there is a
reason why group 24 is being ignored and if there would be any problems changing group 23 to simply include
everything after the minute group (22) and return that as the file name.

By changing the REGEX in the parser to the following, the list parser works as expected for this listing.

       /**
       * this is the regular expression used by this parser.
       */
       private static final String REGEX = "(([\\-]|[A-Z])([\\-]|[A-Z])([\\-]|[A-Z])([\\-]|[A-Z])([\\-]|[A-Z])"
              + "([\\-]|[A-Z])([\\-]|[A-Z])([\\-]|[A-Z])([\\-]|[A-Z])([\\-]|[A-Z]))"
              + "(\\S*)\\s*"
              + "(\\S+)\\s*"
              + "(\\S*)\\s*"
              + "(\\d*)\\s*"
              + "(\\d*)\\s*"
              + MONTHS
              + "\\s*"
(Continue reading)


Gmane