[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 Bui

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

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 arr

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 we

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? --

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). setSp

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 h

[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 consisten

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.next

[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

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 Sado

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 (

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

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

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

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 > ,

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

[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

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

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 alrea

[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

[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 is

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...