some questions (/bug?) about commons-vfs2 make me confused.

2020-01-19 Thread Xeno Amess
I'm trying to migrate to commons-vfs2 now severial things I found not quite right / amazing. 1. I tested version 2.6.0 and 2.5.0, and I just start at VSF.getManager() (of cause I have no additional contfigure or something) It said class not found:org.apache.commons.vfs2.provider.webdav.WebdavFil

Re: some questions (/bug?) about commons-vfs2 make me confused.

2020-01-19 Thread Xeno Amess
Right now I'm using something like this to deal with relative files. But I just think there might be a more elegant way... fileSystemManager = new org.apache.commons.vfs2.impl.StandardFileSystemManager(); fileSystemManager.setLogger(null); try { fileSystemManager.init(); fileSystemManager.

Re: [VOTE] Release Apache Commons CSV 1.8 based on RC1

2020-01-19 Thread Alex Herbert
Hi Gary, I raised a few niggles a while back with CSV and the discussion did not receive a response on how to proceed. There is the major bug CSV-248 where the CSVRecord is not Serializable [1]. This requires a decision on what to do to fix it. This bug is still present in 1.8 RC1 as found by

Re: some questions (/bug?) about commons-vfs2 make me confused.

2020-01-19 Thread Rob Spoor
The class was there in release 2.4.1: https://github.com/apache/commons-vfs/blob/rel/commons-vfs-2.4.1/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileProvider.java. In the next release, 2.5.0, it can indeed no longer be found. A bit of investigating showed that the

Re: [geometry] Rename Transform to AffineTransform

2020-01-19 Thread Gilles Sadowski
Hi. Le sam. 18 janv. 2020 à 23:14, Matt Juntunen a écrit : > > Gilles, > > >> There, we can simply sample the user-defined function > > I'm not sure I understand. > > Just an implementation detail. We need to pass some sample points through the > user-defined function in order to construct an eq

Re: some questions (/bug?) about commons-vfs2 make me confused.

2020-01-19 Thread Xeno Amess
The key point is even if I do not wanna use it I must have this class,or VFS.getManager() can never run. IMO this type of class relationship cause the project where hold this class must be added into vfs's pom as a dependency, or just move class VFS into that project aswell. Otherwise we should n

Re: some questions (/bug?) about commons-vfs2 make me confused.

2020-01-19 Thread Xeno Amess
OK I get where is bugged. I will fix it and add a test for that never happen again. Xeno Amess 于2020年1月19日周日 下午11:21写道: > > The key point is even if I do not wanna use it I must have this > class,or VFS.getManager() can never run. > > IMO this type of class relationship cause the project where ho

Re: some questions (/bug?) about commons-vfs2 make me confused.

2020-01-19 Thread Rob Spoor
It seems that when the webdav support was moved to a separate artifact, the developers forgot to update file commons-vfs2/src/main/resources/org/apache/commons/vfs2/impl/providers.xml. This file is used by StandardFileSystemManager to load the default providers. I think this warrants a fix, t

Re: some questions (/bug?) about commons-vfs2 make me confused.

2020-01-19 Thread Xeno Amess
yep that make sense. but I'd rather add a class-check for provider class. there already be a mechanism for making sure if all classes needed for this provider class exist -> if not then just do not add the provider. I will add a similar mechanism for making sure if the provider class itself exist -

Re: [VOTE] Release Apache Commons CSV 1.8 based on RC1

2020-01-19 Thread sebb
What is the use case for needing serialisation? It's a lot of effort to maintain a serialisable class, and it opens the class to deserialisation attacks. On Sun, 19 Jan 2020 at 12:39, Alex Herbert wrote: > > Hi Gary, > > I raised a few niggles a while back with CSV and the discussion did not > r

[VOTE][CANCEL] Release Apache Commons CSV 1.8 based on RC1

2020-01-19 Thread Gary Gregory
I am canceling this RC so we can deal with these issues. Gary On Sun, Jan 19, 2020 at 7:39 AM Alex Herbert wrote: > Hi Gary, > > I raised a few niggles a while back with CSV and the discussion did not > receive a response on how to proceed. > > There is the major bug CSV-248 where the CSVRecor

Re: [VOTE] Release Apache Commons CSV 1.8 based on RC1

2020-01-19 Thread Alex Herbert
> On 20 Jan 2020, at 00:54, sebb wrote: > > What is the use case for needing serialisation? > It's a lot of effort to maintain a serialisable class, and it opens > the class to deserialisation attacks. I don’t have a use case. But the class used to support serialization back to the code tagged

[math]New feature MiniBatchKMeansClusterer

2020-01-19 Thread CT
Hi,  In my picture search project, I need a cluster algorithm to narrow the dataset, for accelerate the search on millions of pictures.   First we use python+pytorch+kmean, with the growing data from thousands to millions, the KMeans clustering became slower and slower(seconds to minutes), then