[continuum] BUILD FAILURE: Apache Commons - Commons DbUtils - Default Maven 2 Build Definition (Java 1.5)

2011-08-18 Thread Continuum@vmbuild
Online report : 
http://vmbuild.apache.org/continuum/buildResult.action?buildId=11467&projectId=74

Build statistics:
  State: Failed
  Previous State: Failed
  Started at: Fri 19 Aug 2011 06:24:36 +
  Finished at: Fri 19 Aug 2011 06:24:49 +
  Total time: 12s
  Build Trigger: Schedule
  Build Number: 12
  Exit code: 1
  Building machine hostname: vmbuild
  Operating system : Linux(unknown)
  Java Home version : 
  java version "1.6.0_24"
  Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
  Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

  Builder version :
  Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+)
  Java version: 1.6.0_24
  Java home: /usr/lib/jvm/java-6-sun-1.6.0.24/jre
  Default locale: en_AU, platform encoding: UTF-8
  OS name: "linux" version: "2.6.32-31-server" arch: "amd64" Family: 
"unix"


SCM Changes:

Changed: bayard @ Fri 19 Aug 2011 06:19:56 +
Comment: Removing unnecessary connection closing. Switching update with boolean 
param method to private per DBUTILS-78
Files changed:
  
/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryRunner.java
 ( 1159512 )

Changed: bayard @ Fri 19 Aug 2011 06:20:15 +
Comment: Removing unnecessary connection closing per DBUTILS-78
Files changed:
  
/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java
 ( 1159513 )


Dependencies Changes:

No dependencies changed



Build Definition:

POM filename: pom.xml
Goals: clean deploy   
Arguments: --batch-mode -Pjava-1.5
Build Fresh: false
Always Build: false
Default Build Definition: true
Schedule: COMMONS_SCHEDULE
Profile Name: Maven 2.2.1
Description: Default Maven 2 Build Definition (Java 1.5)


Test Summary:

Tests: 0
Failures: 0
Errors: 0
Total time: 0.0





-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Re: [chain] Apache Chain v2 Proof of Concept

2011-08-18 Thread Elijah Zupancic
Simo,

Bricklaying is one of those things that seem simple, but actually can
be a bit complex. So, I hope you are having fun with your project.

I just ran clirr against the 1.3 version and it showed only additions.
So, from its perspective it is backwards compatible. However, for the
one line that is incompatible, I believe that it is incompatible
because of a bug in the existing version. Do you think that it
warrants a deprecated annotation?

Now, I just checked the check-style plugin report and it looks like I
will need to update the patch so that I get 0 check style errors. I
should have that updated this weekend.

Thanks,
-Elijah

On Thu, Aug 18, 2011 at 5:44 AM, Simone Tripodi
 wrote:
> Hi all/Elijah,
> sorry for replying so late but during these days I've been working as
> bricklayer at home, fixing some stuff :P
>
> About the binary compatibility breakage, I have a (maybe silly,
> hopefully not) idea: marking @Deprecated (and justifying why in the
> javadoc) the wrong method and adding the new correct one, if possible
> (take in consideration I'm not 100% familiar with chain so maybe I'm
> just inventing).
>
> That for the purpose to have 100% binary compatibility. Did you try to
> enable the clirr-plugin[1] for maven to see which are the differences
> with the previous chain version?
>
> Many thanks in advance, hope to hear from you soon!!!
> Have a nice day, all the best,
> Simo
>
> [1] http://mojo.codehaus.org/clirr-maven-plugin/
>
> http://people.apache.org/~simonetripodi/
> http://www.99soft.org/
>
>
>
> On Wed, Aug 17, 2011 at 7:06 PM, Matt Benson  wrote:
>> BTW, please don't take the previous response as indicating any
>> negativity on my part.  Feel free to prod us as long as possible, at
>> reasonable frequency.
>>
>> Matt
>>
>> On Wed, Aug 17, 2011 at 12:04 PM, Matt Benson  wrote:
>>> Be patient, while not being so patient that you allow us to forget it.
>>>
>>> Matt
>>>
>>> On Wed, Aug 17, 2011 at 12:01 PM, Elijah Zupancic  
>>> wrote:
 Hi Matt and Simo,

 I've attached the patch to the bug and fixed the issues mentioned with 
 faces.

 What other steps do I need to do now?

 Thanks,
 -Elijah

 On Mon, Aug 15, 2011 at 6:22 AM, Matt Benson  wrote:
> Hi, Elijah--
>
>  I am neither a develop nor even a user of chain, so my comments will
> be high-level.  Firstly, by all means upgrade to whatever JUnit 4
> release version you like, e.g. 4.8.2.  Next, I personally am a big fan
> of Mockito, so no complaints here on that account.  I can't guarantee
> noone else would complain, but [chain] has been fairly unloved for a
> good while.  As for JSF 2.1, is there something this achieves that
> wouldn't be equally well accomplished by simply upgrading to 2.0?
> This would give [chain]'s JSF support (which I personally hadn't
> realized existed) a potentially better combination of
> doing-things-that-couldn't-easily-be-done-with-older-APIs vs. broadest
> possible applicability.
>
> Finally, as you don't seem to be a committer your final submission in
> this regard would be best recommended in the form of a JIRA issue, and
> your patches in (albeit large) patch form.  In addition to this, the
> scope of these changes indicates it best IMO that you submit an
> Individual Contributor License Agreement governing your contributions
> to the ASF.  See http://www.apache.org/licenses/#clas for details on
> how to do this.
>
> Regards and welcome,
> Matt
>
> On Sun, Aug 14, 2011 at 5:13 PM, Elijah Zupancic  
> wrote:
>> I've just finished my proof of concept for an upgrade to Apache chain.
>> I would love to get this into a svn branch. I'm not quite sure what
>> the procedure is to do that, but the code can be found here for
>> review:
>>
>> http://elijah.zupancic.name/projects/commons-chain-v2-proof-of-concept.tar.gz
>>
>> And here is a diff:
>>
>> http://elijah.zupancic.name/projects/uber-diff
>>
>> At a high level, I have incorporated the following features in this
>> proof of concept:
>>
>> * Global upgrade to the JDK 1.5
>> * Added @Override annotations
>> * Upgraded to the Servlet 2.5 API
>> * Upgraded to the Faces 2.1 API
>> * Upgraded to the Portlet 2.0 API
>> * Upgraded the Maven Parent POM version
>> * Added generics support to Command so that Command's API looks like:
>>
>> public interface Command {
>> ...
>>    boolean execute(T context) throws Exception;
>> }
>>
>> * Servlet and Portlet packages now provide Genericized APIs.
>> * All dicey changes have been marked with a comment with my name: 
>> (elijah)
>>
>> More or less the work to updated Chain was straight forward albeit
>> time consuming.
>>
>> If everyone is on board for this update, I would like to upgrade the
>> test cases to use a new version of

Re: [lang?] Converting an array to an Iterable

2011-08-18 Thread Ted Dunning
The array list returned by Arrays.asList does exactly that.

On Thu, Aug 18, 2011 at 12:43 PM, Oliver Heger  wrote:

> Arrays.asList() produces a new List object (I assume, did not look at the
> code). A custom implementation of Iterable could return an iterator which
> directly operates on the array.
>
> Oliver
>
> Am 17.08.2011 23:00, schrieb Dave Brosius:
>
>>  What would this do that java.util.Arrays.asList does not?  - Original
>> Message -From:"Oliver Heger">;oliver.heger@**
>> oliver-heger.de 
>>
>
>
> --**--**-
> To unsubscribe, e-mail: 
> dev-unsubscribe@commons.**apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>


Re: [Vote] Release Commons VFS 2.0

2011-08-18 Thread Oliver Heger

+1

All points I mentioned for the last RC have been addressed. Everything 
looks good!


Oliver

Am 18.08.2011 18:25, schrieb Ralph Goers:

This is a vote to release Apache Commons VFS 2.0.

Changes made since the last candidate:

* Removed the sandbox project from the delivery, except for the web site.
* Updated README.txt to remove the existing text and add very basic build 
instructions.

I have also removed files that shouldn't be present in the Maven repository 
from the staging repo, except for the distribution files which will be moved to 
the standard distribution location and not deployed to the Nexus repository 
when the artifacts are released.

[ ] +1 release it
[ ] +0 go ahead I don't care
[ ] -1 no, do not release it because.

Ralph


Tag: 
https://svn.apache.org/repos/asf/commons/proper/vfs/tags/commons-vfs2-project-2.0/
  (revision 1159220).

Site: http://people.apache.org/~rgoers/commons-vfs/site/


The artifacts have been staged to the org.apache.commons-052 (u:rgoers, 
a:99.180.69.21) repository.

The Maven artifacts are at:

https://repository.apache.org/content/groups/staging/org/apache/commons/commons-vfs2/
https://repository.apache.org/content/groups/staging/org/apache/commons/commons-vfs2-examples/
https://repository.apache.org/content/groups/staging/org/apache/commons/commons-vfs2-project/
https://repository.apache.org/content/groups/staging/org/apache/commons/commons-vfs2-distribution/

and consist of

archetype-catalog.xml
commons-vfs2-examples-2.0-javadoc.jar
commons-vfs2-examples-2.0-sources.jar.asc
commons-vfs2-examples-2.0.pom
commons-vfs2-examples-2.0-tests.jar
commons-vfs2-examples-2.0-tests.jar.asc
commons-vfs2-examples-2.0.jar.asc
commons-vfs2-examples-2.0.pom.asc
commons-vfs2-examples-2.0-javadoc.jar.asc
commons-vfs2-examples-2.0.jar
commons-vfs2-examples-2.0-sources.jar
commons-vfs2-project-2.0.pom.asc
commons-vfs2-project-2.0.pom
commons-vfs2-distribution-2.0-src.tar.gz
commons-vfs2-distribution-2.0-src.tar.gz.asc
commons-vfs2-distribution-2.0-src.zip.asc
commons-vfs2-distribution-2.0-bin.zip
commons-vfs2-distribution-2.0-bin.tar.gz
commons-vfs2-distribution-2.0-bin.tar.gz.asc
commons-vfs2-distribution-2.0-src.zip
commons-vfs2-distribution-2.0-bin.zip.asc
commons-vfs2-2.0.pom.asc
commons-vfs2-2.0-javadoc.jar
commons-vfs2-2.0-tests.jar.asc
commons-vfs2-2.0-tests.jar
commons-vfs2-2.0.pom
commons-vfs2-2.0.jar
commons-vfs2-2.0-sources.jar.asc
commons-vfs2-2.0-test-sources.jar.asc
commons-vfs2-2.0.jar.asc
commons-vfs2-2.0-sources.jar
commons-vfs2-2.0-test-sources.jar
commons-vfs2-2.0-javadoc.jar.asc



-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Re: [lang?] Converting an array to an Iterable

2011-08-18 Thread Oliver Heger
Arrays.asList() produces a new List object (I assume, did not look at 
the code). A custom implementation of Iterable could return an iterator 
which directly operates on the array.


Oliver

Am 17.08.2011 23:00, schrieb Dave Brosius:

  What would this do that java.util.Arrays.asList does not?  - Original Message 
-From:"Oliver Heger">;oliver.he...@oliver-heger.de



-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Re: [Math] "iterator" and "sparseIterator" in "RealVector" hierarchy

2011-08-18 Thread Arne Ploese
I could think of the following extension to RealVector:

  boolean isSparse();
  void setSparse(boolean sparse);
  double calcSparse(double sparseThresholdInPercent);

Explanation:

Default value from isSparse on ArrayRealvector is false and on
OpenMapRealvector is true (set in constructor).

setSparse allows the developer to set a vector/matrix in a known state
(dense|sparse).

calcSparse iterates internally over all entries(ArrayRealVector) or just
reads the value (OpenMapRealVector). If the fillstate is bigger than
sparseThresholdInPercent the field sparse will be set to false otherwise
to true. The actual fillstate will be returned.  

SparseIterator of ArrayRealvector returns only entries != 0. 

If anyone is interested in a draft implementation I can do the work and
add a patch the JIRA MATH-628 (next week). 

Am Mittwoch, den 17.08.2011, 16:39 -0700 schrieb Ted Dunning: 
> On Wed, Aug 17, 2011 at 4:24 PM, Greg Sterijevski 
> wrote:
> 
> > On symmetrics, diagonal, banded and so on, I disagree-as I have made clear
> > in the past. In the case of White standard errors or panel regressions, you
> > typically have long strings of multiplication by diagonals and symmetrics,
> > sandwich products and so forth. There are enough of these types of
> > operations that a math/stat library should support these forms of matrices.
> > isSparse() will not cut it. A symmetric matrix is typically NOT sparse, it
> > is typically dense in these cases. More importantly, the number of
> > operations you save by explicitly recognizing the special structure is not
> > insignificant.
> >
> 
> I agree pretty much for the symmetric case.  The savings for banded matrices
> is surprisingly small and you can have all of those savings as a left
> operand.  It is the right operand where simple sparsity accounts for almost
> everything.
> 
> >
> > > For banded arrays, the economies available beyond simple sparse
> > algorithms
> > > are even more limited.
> > >
> > >
> > I am confused, Ted, since when I suggested that some of the multiplication
> > issues could solved by method overloading, you thought it would not work.
> > Probably a mis-communication on my part.
> >
> 
> No.  What I mean is that when a sparse matrix is the right operand and not
> subject overloading due to dynamic typing, you get most of the advantages of
> the fancy optimizations without any need for anything more than isSparse and
> a sparse iterator.  You don't get all of the benefit, but you do get most of
> it and you get it for a wide variety of left operands.
> 
> 
> > > Symmetric and triangular matrices also have special properties but it is
> > > hard to decide what is really important there.  Many of the special
> > > operations for these kinds of matrix are subject to solving by overloads
> > > instead of indicators since we aren't dealing with binary operations.
> >  For
> > > example, left and right inverse multiplication with triangular matrices
> > is
> > > handled by normal single dispatch and qualifying an argument for real
> > > Cholesky decomposition is specific to the Cholesky decomposition itself.
> > >
> > >
> > While on the discussion of extending RealMatrix in any direction, I would
> > humbly offer that the objects are too complex. Pardon this foolish
> > question,
> > but what are the uses for the methods " double
> > walkInRowOrder(RealMatrixChangingVisitor visitor)" When I think of having
> > to
> > fill in all those methods for any extension, my head spins.
> >
> 
> Exactly.  I think that you shouldn't need that.  The abstract super class
> should have a moderately fancy operation that is limited to handling
> generically sparse and dense matrices reasonably well and dense x dense
> cases really well.  The writer of a new matrix type should not need to know
> about that at all.
> 
> What I was suggesting is that if you have a leftInverseMultiply method that
> solves for x in the system Ax = b, then that method knows the type of A
> because the natural method call is A.leftInverseMultiply(b).  Thus, if A has
> special structure, you get what you need from normal method dispatch.
> 
> It is the cases like A.times(b) or A.plus(b) that will be best supported by
> generic sparsity support in the abstract class.



-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Re: [Math] New method: "addToEntry" in "RealVector"

2011-08-18 Thread Ted Dunning
There is an ongoing discussion about whether the function should accept an
index as well.  The argument for not passing in the index is that it seems
silly for functions like plus, sin and max to get an index.  You just gave
the argument for passing the index.

My preferred solution to this is to have an IndexedFunction type.
 Functions.ABS is just a DoubleFunction.  It is assumed that pretty much all
indexed functions would be defined in-line.

For the case where you are referring to another vector element by a
corresponding index, there are versions of assign which take a vector and a
binary function.  This usually handles the case that you describe, but there
are still corner cases especially where you want to do something to a vector
based on corresponding rows (or columns) of a matrix.

On Thu, Aug 18, 2011 at 10:47 AM, Gilles Sadowski <
gil...@harfang.homelinux.org> wrote:

> Not even saying that the code will become unreadable. One instance where
> I'd perform "addToEntry", the "value" below is computed from a matrix entry
> whose column index is "i". How do you retrieve that from the prototype
> above?
>


[math] semantic change in the 3D line API

2011-08-18 Thread Luc Maisonobe

Hello,

In the current 3.0 development version, the 3D package has been vastly 
expanded. It features several new classes, among which Line, which 
represents a one-dimensional straight line in the three-dimensional space.


For consistency with what is done in other dimensions, and for 
consistency with an upcoming subline class (which was a user request), I 
am going to change the semantics of the constructor:


 Line(Vector3D u, Vector3D v)

Up to now, the first vector was intended to be a random point on the 
line, and the second vector was a direction. From now, the second vector 
will represent a second point in the line, not a direction anymore.


This will allow to have the same kind of constructors for Line and 
SubLine, and it will also match the semantics of the 2D Line class.


Unfortunately, this change is purely semantic and so the constructor 
signature does not change at all, which imply current code will compile 
perfectly but will behave differently. This message is intended to warn 
people about this change that may otherwise go unnoticed.


As this code is still unreleased, it seems appropriate to make this 
change now and have a clean API when 3.0 will be released. This is also 
the reason why this message is sent to the developers list and not the 
users list.


Sorry for the inconvenience.
Luc

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Re: [Math] New method: "addToEntry" in "RealVector"

2011-08-18 Thread Gilles Sadowski
On Thu, Aug 18, 2011 at 08:42:53AM -0700, Ted Dunning wrote:
> I think that an anonymous inner class will do exactly this.
> 
> I use this all the time to add random numbers to  matrix  (in Mahout-ish
> dialect)
> 
> m.assign(new DoubleFunction() {
> double eval(double x) { return x + rand.nextGaussian(); }
> })
> 
> Very handy.

Not really if I have to create several such functions that take parameters
of various type, and certainly not if I'd have to define them inline
everywhere there is an "addToEntry".

Not even saying that the code will become unreadable. One instance where
I'd perform "addToEntry", the "value" below is computed from a matrix entry
whose column index is "i". How do you retrieve that from the prototype
above?


Gilles

> On Thu, Aug 18, 2011 at 4:13 AM, Gilles Sadowski <
> gil...@harfang.homelinux.org> wrote:
> 
> >
> > However this is not what I need. The purpose is to have a shortcut for
> > ---CUT---
> > for (int i = 0; i < n; i++) {
> >  final double value = <...>; // Not a constant.
> >  v.setEntry(i, v.getEntry(i) + value);
> > }
> > ---CUT---
> >

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



[Vote] Release Commons VFS 2.0

2011-08-18 Thread Ralph Goers
This is a vote to release Apache Commons VFS 2.0. 

Changes made since the last candidate:

* Removed the sandbox project from the delivery, except for the web site.
* Updated README.txt to remove the existing text and add very basic build 
instructions.

I have also removed files that shouldn't be present in the Maven repository 
from the staging repo, except for the distribution files which will be moved to 
the standard distribution location and not deployed to the Nexus repository 
when the artifacts are released.

[ ] +1 release it
[ ] +0 go ahead I don't care
[ ] -1 no, do not release it because.

Ralph


Tag: 
https://svn.apache.org/repos/asf/commons/proper/vfs/tags/commons-vfs2-project-2.0/
  (revision 1159220).

Site: http://people.apache.org/~rgoers/commons-vfs/site/


The artifacts have been staged to the org.apache.commons-052 (u:rgoers, 
a:99.180.69.21) repository.

The Maven artifacts are at:

https://repository.apache.org/content/groups/staging/org/apache/commons/commons-vfs2/
https://repository.apache.org/content/groups/staging/org/apache/commons/commons-vfs2-examples/
https://repository.apache.org/content/groups/staging/org/apache/commons/commons-vfs2-project/
https://repository.apache.org/content/groups/staging/org/apache/commons/commons-vfs2-distribution/

and consist of

archetype-catalog.xml
commons-vfs2-examples-2.0-javadoc.jar
commons-vfs2-examples-2.0-sources.jar.asc
commons-vfs2-examples-2.0.pom
commons-vfs2-examples-2.0-tests.jar
commons-vfs2-examples-2.0-tests.jar.asc
commons-vfs2-examples-2.0.jar.asc
commons-vfs2-examples-2.0.pom.asc
commons-vfs2-examples-2.0-javadoc.jar.asc
commons-vfs2-examples-2.0.jar
commons-vfs2-examples-2.0-sources.jar
commons-vfs2-project-2.0.pom.asc
commons-vfs2-project-2.0.pom
commons-vfs2-distribution-2.0-src.tar.gz
commons-vfs2-distribution-2.0-src.tar.gz.asc
commons-vfs2-distribution-2.0-src.zip.asc
commons-vfs2-distribution-2.0-bin.zip
commons-vfs2-distribution-2.0-bin.tar.gz
commons-vfs2-distribution-2.0-bin.tar.gz.asc
commons-vfs2-distribution-2.0-src.zip
commons-vfs2-distribution-2.0-bin.zip.asc
commons-vfs2-2.0.pom.asc
commons-vfs2-2.0-javadoc.jar
commons-vfs2-2.0-tests.jar.asc
commons-vfs2-2.0-tests.jar
commons-vfs2-2.0.pom
commons-vfs2-2.0.jar
commons-vfs2-2.0-sources.jar.asc
commons-vfs2-2.0-test-sources.jar.asc
commons-vfs2-2.0.jar.asc
commons-vfs2-2.0-sources.jar
commons-vfs2-2.0-test-sources.jar
commons-vfs2-2.0-javadoc.jar.asc

Re: [Math] New method: "addToEntry" in "RealVector"

2011-08-18 Thread Ted Dunning
I think that an anonymous inner class will do exactly this.

I use this all the time to add random numbers to  matrix  (in Mahout-ish
dialect)

m.assign(new DoubleFunction() {
double eval(double x) { return x + rand.nextGaussian(); }
})

Very handy.

On Thu, Aug 18, 2011 at 4:13 AM, Gilles Sadowski <
gil...@harfang.homelinux.org> wrote:

>
> However this is not what I need. The purpose is to have a shortcut for
> ---CUT---
> for (int i = 0; i < n; i++) {
>  final double value = <...>; // Not a constant.
>  v.setEntry(i, v.getEntry(i) + value);
> }
> ---CUT---
>


Re: [collections] Iterate over sublists of an original list

2011-08-18 Thread Sébastien Lorber
That's true.

The grouped() method in scala do exactly that.

I agree, these functions are quite useful that's why i sent a mail: to see
if we can integrate them in apache libs


2011/8/18 Matthew Pocock 

> The scala collections library has the grouped() method. From the scaladoc:
>
> defgrouped (size: Int <
> http://www.scala-lang.org/api/current/scala/Int.html>
> ): Iterator<
> http://www.scala-lang.org/api/current/scala/collection/Iterator.html>
> [List<
> http://www.scala-lang.org/api/current/scala/collection/immutable/List.html
> >
> [A]]
>
> Partitions elements in fixed size lists.
> size
>
> the number of elements per group
> returns
>
> An iterator producing lists of size size, except the last will be truncated
> if the elements don't divide evenly.
>
> I'm not suggesting you should jump to scala to use its collections library,
> or even use scala-library.jar from your Java app, but I do find this method
> together with groupBy() one of the more useful bits of functionality. Pity
> something like it isn't supported by other 3rd party collections for Java.
>
> Matthew
>
> On 18 August 2011 13:48, Sébastien Lorber  >wrote:
>
> > Hello
> >
> > Actually if you look at my implementation, i use that List.sublist()
> > method.
> >
> > It's a little pain to use it to split because you must always take care
> of
> > an out of bound...
> > IMHO, people do not really like to play with array/list indexes... If
> they
> > just want to split a big list of a couple of small sublists,
> > they probably do not like to have to deal with calculating the good index
> > positions, they just want the list to be splitted :)
> >
> > I've looked at some guava classes but wasn't able to find anything to do
> > this: a convenient way to split a list
> >
> >
> >
> > 2011/8/18 David Karlsen 
> >
> > > Guava also has a lot of handy classes for working on collections.
> > >
> > > 2011/8/18 Simone Tripodi 
> > >
> > > > Salut Sébastien,
> > > > wouldn't the List#subList(int, int)[1] method be helpful for your
> > > purposes?
> > > > HTH,
> > > > Simo
> > > >
> > > > [1]
> > > >
> > >
> >
> http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html#subList(int
> > > > ,
> > > > int)
> > > >
> > > >
> > > > http://people.apache.org/~simonetripodi/
> > > > http://www.99soft.org/
> > > >
> > > >
> > > >
> > > > On Thu, Aug 18, 2011 at 2:26 PM, Sébastien Lorber
> > > >  wrote:
> > > > > Hello,
> > > > >
> > > > >
> > > > > It's not the first time i have to split a big list of hibernate
> > > entities
> > > > > ID's to sublists of 100 items for exemple so that i could load all
> > > these
> > > > > entities 100 in a single request (with a "where id in ( sublist>")
> > > > >
> > > > > Thus I want to iterate easily on sublists of a list, with the
> > > possibility
> > > > to
> > > > > give the sublist a size...
> > > > > I though i would find the tool in apache collections but i didn't
> > find
> > > > it.
> > > > > Perhaps i've missed the class...
> > > > >
> > > > >
> > > > >
> > > > > If there's no tool to do that yet, i think it would be great to
> make
> > > one
> > > > in
> > > > > apache collections.
> > > > >
> > > > > The kinda simple implementation i use at work is the following:
> > > > > http://pastebin.com/CRitkWTG
> > > > >
> > > > >
> > > > > And you use it like that:
> > > > >
> > > > >// We load vehicles 100 by 100
> > > > > for ( List idSublist : new
> > > > > SublistIterable(allIds,100) ) {
> > > > >List vehiclesSublist =
> > > > vehicleDAO.findByIds(idSublist);
> > > > >// blablabla
> > > > >}
> > > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> > > > For additional commands, e-mail: dev-h...@commons.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > --
> > > David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen
> > >
> >
>
>
>
> --
> Dr Matthew Pocock
> Visitor, School of Computing Science, Newcastle University
> mailto: turingatemyhams...@gmail.com
> gchat: turingatemyhams...@gmail.com
> msn: matthew_poc...@yahoo.co.uk
> irc.freenode.net: drdozer
> tel: (0191) 2566550
> mob: +447535664143
>


Re: [collections] Iterate over sublists of an original list

2011-08-18 Thread Matthew Pocock
The scala collections library has the grouped() method. From the scaladoc:

defgrouped (size: Int 
): 
Iterator
[List
[A]]

Partitions elements in fixed size lists.
size

the number of elements per group
returns

An iterator producing lists of size size, except the last will be truncated
if the elements don't divide evenly.

I'm not suggesting you should jump to scala to use its collections library,
or even use scala-library.jar from your Java app, but I do find this method
together with groupBy() one of the more useful bits of functionality. Pity
something like it isn't supported by other 3rd party collections for Java.

Matthew

On 18 August 2011 13:48, Sébastien Lorber wrote:

> Hello
>
> Actually if you look at my implementation, i use that List.sublist()
> method.
>
> It's a little pain to use it to split because you must always take care of
> an out of bound...
> IMHO, people do not really like to play with array/list indexes... If they
> just want to split a big list of a couple of small sublists,
> they probably do not like to have to deal with calculating the good index
> positions, they just want the list to be splitted :)
>
> I've looked at some guava classes but wasn't able to find anything to do
> this: a convenient way to split a list
>
>
>
> 2011/8/18 David Karlsen 
>
> > Guava also has a lot of handy classes for working on collections.
> >
> > 2011/8/18 Simone Tripodi 
> >
> > > Salut Sébastien,
> > > wouldn't the List#subList(int, int)[1] method be helpful for your
> > purposes?
> > > HTH,
> > > Simo
> > >
> > > [1]
> > >
> >
> http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html#subList(int
> > > ,
> > > int)
> > >
> > >
> > > http://people.apache.org/~simonetripodi/
> > > http://www.99soft.org/
> > >
> > >
> > >
> > > On Thu, Aug 18, 2011 at 2:26 PM, Sébastien Lorber
> > >  wrote:
> > > > Hello,
> > > >
> > > >
> > > > It's not the first time i have to split a big list of hibernate
> > entities
> > > > ID's to sublists of 100 items for exemple so that i could load all
> > these
> > > > entities 100 in a single request (with a "where id in (")
> > > >
> > > > Thus I want to iterate easily on sublists of a list, with the
> > possibility
> > > to
> > > > give the sublist a size...
> > > > I though i would find the tool in apache collections but i didn't
> find
> > > it.
> > > > Perhaps i've missed the class...
> > > >
> > > >
> > > >
> > > > If there's no tool to do that yet, i think it would be great to make
> > one
> > > in
> > > > apache collections.
> > > >
> > > > The kinda simple implementation i use at work is the following:
> > > > http://pastebin.com/CRitkWTG
> > > >
> > > >
> > > > And you use it like that:
> > > >
> > > >// We load vehicles 100 by 100
> > > > for ( List idSublist : new
> > > > SublistIterable(allIds,100) ) {
> > > >List vehiclesSublist =
> > > vehicleDAO.findByIds(idSublist);
> > > >// blablabla
> > > >}
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> > > For additional commands, e-mail: dev-h...@commons.apache.org
> > >
> > >
> >
> >
> > --
> > --
> > David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen
> >
>



-- 
Dr Matthew Pocock
Visitor, School of Computing Science, Newcastle University
mailto: turingatemyhams...@gmail.com
gchat: turingatemyhams...@gmail.com
msn: matthew_poc...@yahoo.co.uk
irc.freenode.net: drdozer
tel: (0191) 2566550
mob: +447535664143


Re: [collections] Iterate over sublists of an original list

2011-08-18 Thread Sébastien Lorber
Hello

Actually if you look at my implementation, i use that List.sublist() method.

It's a little pain to use it to split because you must always take care of
an out of bound...
IMHO, people do not really like to play with array/list indexes... If they
just want to split a big list of a couple of small sublists,
they probably do not like to have to deal with calculating the good index
positions, they just want the list to be splitted :)

I've looked at some guava classes but wasn't able to find anything to do
this: a convenient way to split a list



2011/8/18 David Karlsen 

> Guava also has a lot of handy classes for working on collections.
>
> 2011/8/18 Simone Tripodi 
>
> > Salut Sébastien,
> > wouldn't the List#subList(int, int)[1] method be helpful for your
> purposes?
> > HTH,
> > Simo
> >
> > [1]
> >
> http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html#subList(int
> > ,
> > int)
> >
> >
> > http://people.apache.org/~simonetripodi/
> > http://www.99soft.org/
> >
> >
> >
> > On Thu, Aug 18, 2011 at 2:26 PM, Sébastien Lorber
> >  wrote:
> > > Hello,
> > >
> > >
> > > It's not the first time i have to split a big list of hibernate
> entities
> > > ID's to sublists of 100 items for exemple so that i could load all
> these
> > > entities 100 in a single request (with a "where id in (")
> > >
> > > Thus I want to iterate easily on sublists of a list, with the
> possibility
> > to
> > > give the sublist a size...
> > > I though i would find the tool in apache collections but i didn't find
> > it.
> > > Perhaps i've missed the class...
> > >
> > >
> > >
> > > If there's no tool to do that yet, i think it would be great to make
> one
> > in
> > > apache collections.
> > >
> > > The kinda simple implementation i use at work is the following:
> > > http://pastebin.com/CRitkWTG
> > >
> > >
> > > And you use it like that:
> > >
> > >// We load vehicles 100 by 100
> > > for ( List idSublist : new
> > > SublistIterable(allIds,100) ) {
> > >List vehiclesSublist =
> > vehicleDAO.findByIds(idSublist);
> > >// blablabla
> > >}
> > >
> >
> > -
> > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> > For additional commands, e-mail: dev-h...@commons.apache.org
> >
> >
>
>
> --
> --
> David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen
>


Re: [chain] Apache Chain v2 Proof of Concept

2011-08-18 Thread Simone Tripodi
Hi all/Elijah,
sorry for replying so late but during these days I've been working as
bricklayer at home, fixing some stuff :P

About the binary compatibility breakage, I have a (maybe silly,
hopefully not) idea: marking @Deprecated (and justifying why in the
javadoc) the wrong method and adding the new correct one, if possible
(take in consideration I'm not 100% familiar with chain so maybe I'm
just inventing).

That for the purpose to have 100% binary compatibility. Did you try to
enable the clirr-plugin[1] for maven to see which are the differences
with the previous chain version?

Many thanks in advance, hope to hear from you soon!!!
Have a nice day, all the best,
Simo

[1] http://mojo.codehaus.org/clirr-maven-plugin/

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Wed, Aug 17, 2011 at 7:06 PM, Matt Benson  wrote:
> BTW, please don't take the previous response as indicating any
> negativity on my part.  Feel free to prod us as long as possible, at
> reasonable frequency.
>
> Matt
>
> On Wed, Aug 17, 2011 at 12:04 PM, Matt Benson  wrote:
>> Be patient, while not being so patient that you allow us to forget it.
>>
>> Matt
>>
>> On Wed, Aug 17, 2011 at 12:01 PM, Elijah Zupancic  
>> wrote:
>>> Hi Matt and Simo,
>>>
>>> I've attached the patch to the bug and fixed the issues mentioned with 
>>> faces.
>>>
>>> What other steps do I need to do now?
>>>
>>> Thanks,
>>> -Elijah
>>>
>>> On Mon, Aug 15, 2011 at 6:22 AM, Matt Benson  wrote:
 Hi, Elijah--

  I am neither a develop nor even a user of chain, so my comments will
 be high-level.  Firstly, by all means upgrade to whatever JUnit 4
 release version you like, e.g. 4.8.2.  Next, I personally am a big fan
 of Mockito, so no complaints here on that account.  I can't guarantee
 noone else would complain, but [chain] has been fairly unloved for a
 good while.  As for JSF 2.1, is there something this achieves that
 wouldn't be equally well accomplished by simply upgrading to 2.0?
 This would give [chain]'s JSF support (which I personally hadn't
 realized existed) a potentially better combination of
 doing-things-that-couldn't-easily-be-done-with-older-APIs vs. broadest
 possible applicability.

 Finally, as you don't seem to be a committer your final submission in
 this regard would be best recommended in the form of a JIRA issue, and
 your patches in (albeit large) patch form.  In addition to this, the
 scope of these changes indicates it best IMO that you submit an
 Individual Contributor License Agreement governing your contributions
 to the ASF.  See http://www.apache.org/licenses/#clas for details on
 how to do this.

 Regards and welcome,
 Matt

 On Sun, Aug 14, 2011 at 5:13 PM, Elijah Zupancic  
 wrote:
> I've just finished my proof of concept for an upgrade to Apache chain.
> I would love to get this into a svn branch. I'm not quite sure what
> the procedure is to do that, but the code can be found here for
> review:
>
> http://elijah.zupancic.name/projects/commons-chain-v2-proof-of-concept.tar.gz
>
> And here is a diff:
>
> http://elijah.zupancic.name/projects/uber-diff
>
> At a high level, I have incorporated the following features in this
> proof of concept:
>
> * Global upgrade to the JDK 1.5
> * Added @Override annotations
> * Upgraded to the Servlet 2.5 API
> * Upgraded to the Faces 2.1 API
> * Upgraded to the Portlet 2.0 API
> * Upgraded the Maven Parent POM version
> * Added generics support to Command so that Command's API looks like:
>
> public interface Command {
> ...
>    boolean execute(T context) throws Exception;
> }
>
> * Servlet and Portlet packages now provide Genericized APIs.
> * All dicey changes have been marked with a comment with my name: (elijah)
>
> More or less the work to updated Chain was straight forward albeit
> time consuming.
>
> If everyone is on board for this update, I would like to upgrade the
> test cases to use a new version of JUnit. However, this leads to a few
> questions:
>
> * What version of JUnit should I use?
> * Would it be ok to use Mockito for mocking instead of the home grown
> mocking classes already contained in the project?
>
> Please let me know what you think. Getting this far has been a couple
> weeks worth of on and off work.
>
> Thanks,
> -Elijah
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>

 -
 To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
 For additional commands, e-mail: dev-h...@commons.apache.org


>>

Re: [collections] Iterate over sublists of an original list

2011-08-18 Thread David Karlsen
Guava also has a lot of handy classes for working on collections.

2011/8/18 Simone Tripodi 

> Salut Sébastien,
> wouldn't the List#subList(int, int)[1] method be helpful for your purposes?
> HTH,
> Simo
>
> [1]
> http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html#subList(int
> ,
> int)
>
>
> http://people.apache.org/~simonetripodi/
> http://www.99soft.org/
>
>
>
> On Thu, Aug 18, 2011 at 2:26 PM, Sébastien Lorber
>  wrote:
> > Hello,
> >
> >
> > It's not the first time i have to split a big list of hibernate entities
> > ID's to sublists of 100 items for exemple so that i could load all these
> > entities 100 in a single request (with a "where id in (")
> >
> > Thus I want to iterate easily on sublists of a list, with the possibility
> to
> > give the sublist a size...
> > I though i would find the tool in apache collections but i didn't find
> it.
> > Perhaps i've missed the class...
> >
> >
> >
> > If there's no tool to do that yet, i think it would be great to make one
> in
> > apache collections.
> >
> > The kinda simple implementation i use at work is the following:
> > http://pastebin.com/CRitkWTG
> >
> >
> > And you use it like that:
> >
> >// We load vehicles 100 by 100
> > for ( List idSublist : new
> > SublistIterable(allIds,100) ) {
> >List vehiclesSublist =
> vehicleDAO.findByIds(idSublist);
> >// blablabla
> >}
> >
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>


-- 
--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen


Re: [collections] Iterate over sublists of an original list

2011-08-18 Thread Simone Tripodi
Salut Sébastien,
wouldn't the List#subList(int, int)[1] method be helpful for your purposes?
HTH,
Simo

[1] 
http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html#subList(int,
int)


http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Thu, Aug 18, 2011 at 2:26 PM, Sébastien Lorber
 wrote:
> Hello,
>
>
> It's not the first time i have to split a big list of hibernate entities
> ID's to sublists of 100 items for exemple so that i could load all these
> entities 100 in a single request (with a "where id in (")
>
> Thus I want to iterate easily on sublists of a list, with the possibility to
> give the sublist a size...
> I though i would find the tool in apache collections but i didn't find it.
> Perhaps i've missed the class...
>
>
>
> If there's no tool to do that yet, i think it would be great to make one in
> apache collections.
>
> The kinda simple implementation i use at work is the following:
> http://pastebin.com/CRitkWTG
>
>
> And you use it like that:
>
>        // We load vehicles 100 by 100
>         for ( List idSublist : new
> SublistIterable(allIds,100) ) {
>            List vehiclesSublist = vehicleDAO.findByIds(idSublist);
>            // blablabla
>        }
>

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



[collections] Iterate over sublists of an original list

2011-08-18 Thread Sébastien Lorber
Hello,


It's not the first time i have to split a big list of hibernate entities
ID's to sublists of 100 items for exemple so that i could load all these
entities 100 in a single request (with a "where id in (")

Thus I want to iterate easily on sublists of a list, with the possibility to
give the sublist a size...
I though i would find the tool in apache collections but i didn't find it.
Perhaps i've missed the class...



If there's no tool to do that yet, i think it would be great to make one in
apache collections.

The kinda simple implementation i use at work is the following:
http://pastebin.com/CRitkWTG


And you use it like that:

// We load vehicles 100 by 100
 for ( List idSublist : new
SublistIterable(allIds,100) ) {
List vehiclesSublist = vehicleDAO.findByIds(idSublist);
// blablabla
}


Re: [math] StorelessCovariance

2011-08-18 Thread Patrick Meyer
Thanks for the tip. I was not aware of IntelliJ but I'll certainly look 
into it.


On 8/18/2011 1:27 AM, Ted Dunning wrote:

NetBeans is kind of wasting away for lack of attention.

IntelliJ generally gets these things exactly correct.  SVN, git and mvn are
all mother tongues for it.  There is an excellent community edition and
Apache committers can get a full version.

On Wed, Aug 17, 2011 at 8:09 PM, Patrick Meyer  wrote:


OK, after fidgeting with NetBeans for too long without results, I went with
Phil's suggestion and just used subversion at the command prompt. It was
much easier than trying to configure NetBeans.

I uploaded the patch this evening. It includes two new classes
StorelessCovariance.java and StorelessCovarianceMatrix.**java. I also
included a new test class StorelessCovarianceTest.java.

Interestingly, the one-pass algorithm is slightly less accurate than the
two-pass algorithm. I had to reduce the tolerance from 10E-9 to 10E-7 in
order for tests to pass with the Longley data. The tolerance was not changed
for the Swiss data. It remained 10E-13 for the Swiss data.

The one-pass algorithm is described in a paper by Pebay (2008)
http://prod.sandia.gov/**techlib/access-control.cgi/**2008/086212.pdf

Thanks for everyone's help.

Patrick



On 8/17/2011 12:13 PM, Patrick wrote:


I am workin on the StorelessCovariance per jira MATH-449. However, I'm
having a hard time using subversion via Netbeans. I have successfully
created the new classes and a JUnit test. However, when I run the test I get
the following message,

"caused an ERORR: Absent Code attribute in method that is not native or
abstract in class file org/apache/commons/math/**TestUtils"

Any help would be appreciated. I have a lot to contribute to commons math
but my lack of experience with subversion is really hindering me.

Thanks,
Patrick



--**--**-
To unsubscribe, e-mail: 
dev-unsubscribe@commons.**apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



--**--**-
To unsubscribe, e-mail: 
dev-unsubscribe@commons.**apache.org
For additional commands, e-mail: dev-h...@commons.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Re: [Math] New method: "addToEntry" in "RealVector"

2011-08-18 Thread Gilles Sadowski
On Wed, Aug 17, 2011 at 04:44:22PM -0700, Ted Dunning wrote:
> Are you going to add addAndScale and all the other gazillion common mutators
> as well?

I'd prefer not.  ;-)

> Or should there just be a functional style interface where you say [...]

Cf. "AbstractRealVector.java", line 508 (as already pointed out by
Sébastien).

However this is not what I need. The purpose is to have a shortcut for
---CUT---
for (int i = 0; i < n; i++) {
  final double value = <...>; // Not a constant.
  v.setEntry(i, v.getEntry(i) + value);
}
---CUT---


Gilles

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



[GUMP@vmgump]: Project commons-proxy-test (in module apache-commons) failed

2011-08-18 Thread Gump
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at gene...@gump.apache.org.

Project commons-proxy-test has an issue affecting its community integration.
This issue affects 1 projects,
 and has been outstanding for 44 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-proxy-test :  Apache Commons


Full details are available at:

http://vmgump.apache.org/gump/public/apache-commons/commons-proxy-test/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -WARNING- Overriding Maven settings: 
[/srv/gump/public/workspace/apache-commons/proxy/gump_mvn_settings.xml]
 -DEBUG- (Apache Gump generated) Apache Maven Settings in: 
/srv/gump/public/workspace/apache-commons/proxy/gump_mvn_settings.xml
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: /srv/gump/public/workspace/apache-commons/proxy/pom.xml
 -INFO- Project Reports in: 
/srv/gump/public/workspace/apache-commons/proxy/target/surefire-reports



The following work was performed:
http://vmgump.apache.org/gump/public/apache-commons/commons-proxy-test/gump_work/build_apache-commons_commons-proxy-test.html
Work Name: build_apache-commons_commons-proxy-test (Type: Build)
Work ended in a state of : Failed
Elapsed: 11 secs
Command Line: /opt/maven2/bin/mvn --batch-mode --settings 
/srv/gump/public/workspace/apache-commons/proxy/gump_mvn_settings.xml test 
[Working Directory: /srv/gump/public/workspace/apache-commons/proxy]
M2_HOME: /opt/maven2
-
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.apache.commons.proxy.factory.util.TestMethodSignature
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.apache.commons.proxy.provider.TestConstantProvider
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.apache.commons.proxy.interceptor.TestFilteredInterceptor
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec
Running org.apache.commons.proxy.interceptor.filter.TestPatternFilter
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
Running org.apache.commons.proxy.interceptor.TestSerializingInterceptor
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
Running org.apache.commons.proxy.interceptor.TestInterceptorChain
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running org.apache.commons.proxy.invoker.TestNullInvoker
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
Running org.apache.commons.proxy.provider.remoting.TestBurlapProvider
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
Running org.apache.commons.proxy.exception.TestDelegateProviderException
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.apache.commons.proxy.invoker.TestChainInvoker
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
Running org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory
Tests run: 37, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.158 sec
Running org.apache.commons.proxy.exception.TestProxyFactoryException
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.apache.commons.proxy.interceptor.filter.TestReturnTypeFilter
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.apache.commons.proxy.provider.TestBeanProvider
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec

Results :

Tests in error: 
  testInvalidHandlerName(org.apache.commons.proxy.invoker.TestXmlRpcInvoker)

Tests run: 179, Failures: 0, Errors: 1, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.

Please refer to 
/srv/gump/public/workspace/apache-commons/proxy/target/surefire-reports for the 
individual test results.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 10 seconds
[INFO] Finished at: Thu Aug 18 10:52:16 UTC 2011
[INFO] Final Memory: 24M/58M
[INFO] 
-

To subscribe to this information via syndicated feeds:
- RSS: 
http://vmgump.apache.org/gump/public/apache-commons/commons-proxy-test/rss.xml
- Atom: 
http://vmgump.apache.o

[GUMP@vmgump]: Project commons-javaflow (in module commons-sandbox) failed

2011-08-18 Thread Gump
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at gene...@gump.apache.org.

Project commons-javaflow has an issue affecting its community integration.
This issue affects 1 projects,
 and has been outstanding for 4 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-javaflow :  Commons Javaflow


Full details are available at:

http://vmgump.apache.org/gump/public/commons-sandbox/commons-javaflow/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole jar output [commons-javaflow-*[0-9T].jar] identifier set to 
project name
 -DEBUG- (Apache Gump generated) Apache Maven Settings in: 
/srv/gump/public/workspace/commons-sandbox/javaflow/gump_mvn_settings.xml
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/srv/gump/public/workspace/commons-sandbox/javaflow/pom.xml
 -INFO- Project Reports in: 
/srv/gump/public/workspace/commons-sandbox/javaflow/target/surefire-reports
 -WARNING- No directory 
[/srv/gump/public/workspace/commons-sandbox/javaflow/target/surefire-reports]
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/commons-sandbox/commons-javaflow/gump_work/build_commons-sandbox_commons-javaflow.html
Work Name: build_commons-sandbox_commons-javaflow (Type: Build)
Work ended in a state of : Failed
Elapsed: 11 secs
Command Line: /opt/maven2/bin/mvn --batch-mode --settings 
/srv/gump/public/workspace/commons-sandbox/javaflow/gump_mvn_settings.xml 
package 
[Working Directory: /srv/gump/public/workspace/commons-sandbox/javaflow]
M2_HOME: /opt/maven2
-
[INFO] Scanning for projects...
[INFO] 
[INFO] Building Commons Javaflow (Sandbox)
[INFO]task-segment: [package]
[INFO] 
Downloading: 
http://localhost:8192/maven2/asm/asm-analysis/3.2/asm-analysis-3.2.pom

Downloading: http://localhost:8192/maven2/asm/asm-util/3.2/asm-util-3.2.pom

Downloading: 
http://localhost:8192/maven2/asm/asm-analysis/3.2/asm-analysis-3.2.jar
17K downloaded  (asm-analysis-3.2.jar)
Downloading: http://localhost:8192/maven2/asm/asm-util/3.2/asm-util-3.2.jar
34K downloaded  (asm-util-3.2.jar)
[INFO] [antrun:run {execution: javadoc.resources}]
[INFO] Executing tasks
 [copy] Copying 2 files to 
/srv/gump/public/workspace/commons-sandbox/javaflow/target/apidocs/META-INF
[INFO] Executed tasks
[INFO] Setting property: classpath.resource.loader.class => 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'iso-8859-1' encoding to copy filtered resources.
[INFO] Copying 2 resources to META-INF
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 35 source files to 
/srv/gump/public/workspace/commons-sandbox/javaflow/target/classes
[INFO] -
[ERROR] COMPILATION ERROR : 
[INFO] -
[ERROR] 
/srv/gump/public/workspace/commons-sandbox/javaflow/src/main/java/org/apache/commons/javaflow/bytecode/transformation/bcel/analyser/ExecutionVisitor.java:[57,62]
 org.apache.bcel.generic.Visitor is not public in org.apache.bcel.generic; 
cannot be accessed from outside package

[INFO] 1error
[INFO] -
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] Compilation failure
/srv/gump/public/workspace/commons-sandbox/javaflow/src/main/java/org/apache/commons/javaflow/bytecode/transformation/bcel/analyser/ExecutionVisitor.java:[57,62]
 org.apache.bcel.generic.Visitor is not public in org.apache.bcel.generic; 
cannot be accessed from outside package


[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 10 seconds
[INFO] Finished at: Thu Aug 18 10:50:48 UTC 2011
[INFO] Final Memory: 22M/63M
[INFO] 
-

Re: [Math] New method: "addToEntry" in "RealVector"

2011-08-18 Thread Sébastien Brisard
Hi,
isn't this already implemented as
map(UnivariateRealFunction function)
and
mapToSelf(UnivariateRealFunction function)
?
Also, you might want to check the discussion on JIRA MATH-613, and this thread
http://mail-archives.apache.org/mod_mbox/commons-dev/201107.mbox/%3c20110707083102.714aa14000...@svoboda.polytechnique.org%3E

Best,
Sébastien

2011/8/18 Ted Dunning :
> Credit where it is due: this style of API was a major characteristic of Colt
> and Mahout inherited this style (to our benefit).
>
> On Wed, Aug 17, 2011 at 6:41 PM, Greg Sterijevski 
> wrote:
>
>> Shocking as this may seem! ;-) I like Ted's suggestion. Very clean, an
>> appropriate use of OO and something for which the penalty is not great, but
>> the benefit humongous! +1 for functional/functor approach.
>>
>>
>>
>> On Wed, Aug 17, 2011 at 6:44 PM, Ted Dunning 
>> wrote:
>>
>> > Are you going to add addAndScale and all the other gazillion common
>> > mutators
>> > as well?
>> >
>> > Or should there just be a functional style interface where you say
>> >
>> >   A.assign(Functions.plus(3.0))
>> >
>> > to add 3 to all elements of a matrix or vector?
>> >
>> > That would then allow
>> >
>> >   A.assign(Functions.ABS)
>> >
>> > or
>> >
>> >   A.assign(Functions.times(0.3))
>> >
>> > This allows one method to serve many, many purposes, including those that
>> > are not yet known.
>> >
>> > Similar logic leads to a family of assign methods and also some aggregate
>> > methods.  The resulting flexibility and parsimony is very nice.
>> >
>> > On Wed, Aug 17, 2011 at 3:14 PM, Gilles Sadowski <
>> > gil...@harfang.homelinux.org> wrote:
>> >
>> > > 1. Is it OK to add an "addToEntry" method to "RealVector"? [There is
>> one
>> > in
>> > >
>> >
>>
>

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org