[continuum] BUILD FAILURE: Apache Commons - Commons Math - Default Maven 2 Build Definition (Java 1.5)
Online report : http://vmbuild.apache.org/continuum/buildResult.action?buildId=13014projectId=97 Build statistics: State: Failed Previous State: Ok Started at: Fri 7 Oct 2011 06:23:57 + Finished at: Fri 7 Oct 2011 06:24:23 + Total time: 26s Build Trigger: Schedule Build Number: 496 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_US, platform encoding: UTF-8 OS name: linux version: 2.6.32-31-server arch: amd64 Family: unix SCM Changes: Changed: gregs @ Fri 7 Oct 2011 05:21:17 + Comment: JIRA Math-630 First push of PivotingQRDecomposition Files changed: /commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/PivotingQRDecomposition.java ( 1179935 ) /commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/PivotingQRDecompositionTest.java ( 1179935 ) /commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/PivotingQRSolverTest.java ( 1179935 ) 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
[GUMP@vmgump]: Project commons-math (in module apache-commons) failed
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-math has an issue affecting its community integration. This issue affects 1 projects, and has been outstanding for 17 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - commons-math : The Jakarta Mathematics Library Full details are available at: http://vmgump.apache.org/gump/public/apache-commons/commons-math/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-math-07102011.jar] identifier set to project name -DEBUG- Dependency on junit exists, no need to add for property junit.jar. -INFO- Failed with reason build failed -INFO- Project Reports in: /srv/gump/public/workspace/apache-commons/math/target/surefire-reports -WARNING- No directory [/srv/gump/public/workspace/apache-commons/math/target/surefire-reports] -INFO- Project Reports in: /srv/gump/public/workspace/apache-commons/math/target/test-reports -WARNING- No directory [/srv/gump/public/workspace/apache-commons/math/target/test-reports] -DEBUG- Extracted fallback artifacts from Gump Repository The following work was performed: http://vmgump.apache.org/gump/public/apache-commons/commons-math/gump_work/build_apache-commons_commons-math.html Work Name: build_apache-commons_commons-math (Type: Build) Work ended in a state of : Failed Elapsed: 17 secs Command Line: /usr/lib/jvm/java-6-openjdk/bin/java -Djava.awt.headless=true -Dbuild.sysclasspath=only -Xbootclasspath/p:/srv/gump/public/workspace/xml-xerces2/build/xercesImpl.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar org.apache.tools.ant.Main -Dgump.merge=/srv/gump/public/gump/work/merge.xml -Djunit.jar=/srv/gump/public/workspace/junit/dist/junit-07102011.jar -Dfinal.name=commons-math-07102011 jar [Working Directory: /srv/gump/public/workspace/apache-commons/math] CLASSPATH: /usr/lib/jvm/java-6-openjdk/lib/tools.jar:/srv/gump/public/workspace/apache-commons/math/target/classes:/srv/gump/public/workspace/apache-commons/math/target/test-classes:/srv/gump/public/workspace/ant/dist/lib/ant.jar:/srv/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit.jar:/srv/gump/public/workspace/ant/dist/lib/ant-swing.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-xalan2.jar:/srv/gump/public/workspace/xml-commons/java/build/resolver.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar:/srv/gump/public/workspace/junit/dist/junit-07102011.jar:/srv/gump/public/workspace/junit/dist/junit-dep-07102011.jar - Buildfile: /srv/gump/public/workspace/apache-commons/math/build.xml init: [echo] Commons MATH 3.0-SNAPSHOT [mkdir] Created dir: /srv/gump/public/workspace/apache-commons/math/target [mkdir] Created dir: /srv/gump/public/workspace/apache-commons/math/target/classes [mkdir] Created dir: /srv/gump/public/workspace/apache-commons/math/target/test-classes [copy] Copying 5 files to /srv/gump/public/workspace/apache-commons/math/target/classes compile: [javac] Compiling 625 source files to /srv/gump/public/workspace/apache-commons/math/target/classes [javac] /srv/gump/public/workspace/apache-commons/math/src/main/java/org/apache/commons/math/linear/PivotingQRDecomposition.java:20: cannot find symbol [javac] symbol : class ConvergenceException [javac] location: package org.apache.commons.math [javac] import org.apache.commons.math.ConvergenceException; [javac] ^ [javac] /srv/gump/public/workspace/apache-commons/math/src/main/java/org/apache/commons/math/linear/PivotingQRDecomposition.java:61: cannot find symbol [javac] symbol : class ConvergenceException [javac] location: class org.apache.commons.math.linear.PivotingQRDecomposition [javac] public PivotingQRDecomposition(RealMatrix matrix) throws ConvergenceException { [javac] ^ [javac] /srv/gump/public/workspace/apache-commons/math/src/main/java/org/apache/commons/math/linear/PivotingQRDecomposition.java:65: cannot find symbol [javac] symbol : class ConvergenceException [javac] location: class org.apache.commons.math.linear.PivotingQRDecomposition [javac] public PivotingQRDecomposition(RealMatrix matrix, boolean allowPivot) throws ConvergenceException { [javac]
Re: [Math] Catching RuntimeException
Le 06/10/2011 22:36, Gilles Sadowski a écrit : Hello. Hi Gilles, In the code in the following classes BaseMultiStartMultivariateRealOptimizer BaseMultiStartMultivariateVectorialOptimizer there is a catch(RuntimeException e) This contradicts the statement (in UnivariateRealFunction) stating that user-defined exceptions are never caught by CM. Not really. The exceptions are catch in order to allow a retry, which is the exact purpose of multi-start. If everything fails, the last exception is rethrown. OK. How to deactivate the CheckStyle warning? We can use checkstyle filters. I have fixed these as of r1179947. Thanks for spotting this. Luc Gilles - 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: svn commit: r1179935 - in /commons/proper/math/trunk/src: main/java/org/apache/commons/math/linear/ test/java/org/apache/commons/math/linear/
Le 07/10/2011 07:21, gr...@apache.org a écrit : Author: gregs Date: Fri Oct 7 05:21:17 2011 New Revision: 1179935 URL: http://svn.apache.org/viewvc?rev=1179935view=rev Log: JIRA Math-630 First push of PivotingQRDecomposition Added: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/PivotingQRDecomposition.java commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/PivotingQRDecompositionTest.java commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/PivotingQRSolverTest.java Hello Greg, It seems the files do not have the right subversion properties. Could you check your global subversion settings and make sure [auto-props] is set correctly ? Thanks Luc Added: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/PivotingQRDecomposition.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/PivotingQRDecomposition.java?rev=1179935view=auto == --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/PivotingQRDecomposition.java (added) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/PivotingQRDecomposition.java Fri Oct 7 05:21:17 2011 @@ -0,0 +1,421 @@ +/* + * Copyright 2011 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.commons.math.linear; + +import java.util.Arrays; +import org.apache.commons.math.util.MathUtils; +import org.apache.commons.math.ConvergenceException; +import org.apache.commons.math.exception.DimensionMismatchException; +import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math.util.FastMath; + +/** + * + * @author gregsterijevski + */ +public class PivotingQRDecomposition { + +private double[][] qr; +/** The diagonal elements of R. */ +private double[] rDiag; +/** Cached value of Q. */ +private RealMatrix cachedQ; +/** Cached value of QT. */ +private RealMatrix cachedQT; +/** Cached value of R. */ +private RealMatrix cachedR; +/** Cached value of H. */ +private RealMatrix cachedH; +/** permutation info */ +private int[] permutation; +/** the rank **/ +private int rank; +/** vector of column multipliers */ +private double[] beta; + +public boolean isSingular() { +return rank != qr[0].length; +} + +public int getRank() { +return rank; +} + +public int[] getOrder() { +return MathUtils.copyOf(permutation); +} + +public PivotingQRDecomposition(RealMatrix matrix) throws ConvergenceException { +this(matrix, 1.0e-16, true); +} + +public PivotingQRDecomposition(RealMatrix matrix, boolean allowPivot) throws ConvergenceException { +this(matrix, 1.0e-16, allowPivot); +} + +public PivotingQRDecomposition(RealMatrix matrix, double qrRankingThreshold, +boolean allowPivot) throws ConvergenceException { +final int rows = matrix.getRowDimension(); +final int cols = matrix.getColumnDimension(); +qr = matrix.getData(); +rDiag = new double[cols]; +//final double[] norms = new double[cols]; +this.beta = new double[cols]; +this.permutation = new int[cols]; +cachedQ = null; +cachedQT = null; +cachedR = null; +cachedH = null; + +/*- initialize the permutation vector and calculate the norms */ +for (int k = 0; k cols; ++k) { +permutation[k] = k; +} +// transform the matrix column after column +for (int k = 0; k cols; ++k) { +// select the column with the greatest norm on active components +int nextColumn = -1; +double ak2 = Double.NEGATIVE_INFINITY; +if (allowPivot) { +for (int i = k; i cols; ++i) { +double norm2 = 0; +for (int j = k; j rows; ++j) { +final double aki = qr[j][permutation[i]]; +norm2 += aki * aki; +} +if (Double.isInfinite(norm2) || Double.isNaN(norm2)) { +throw new ConvergenceException(LocalizedFormats.UNABLE_TO_PERFORM_QR_DECOMPOSITION_ON_JACOBIAN, +rows, cols); +
Re: svn commit: r1179928 - in [...]
On Fri, Oct 07, 2011 at 03:20:40AM -, pste...@apache.org wrote: Author: psteitz Date: Fri Oct 7 03:20:39 2011 New Revision: 1179928 URL: http://svn.apache.org/viewvc?rev=1179928view=rev Log: Javadoc fixes. Modified: [...] commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Sinc.java [...] Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Sinc.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Sinc.java?rev=1179928r1=1179927r2=1179928view=diff == --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Sinc.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Sinc.java Fri Oct 7 03:20:39 2011 @@ -21,7 +21,11 @@ import org.apache.commons.math.analysis. import org.apache.commons.math.util.FastMath; /** - * Sinc function. + * Sinc function, defined by precode + * + * sinc(x) = 1 if abs(x) 1e-9; + * sin(x) / x; otherwise + * /code/pre I would not document the first part of the alternative since it is an implementation detail. 1e-9 was chosen just because, with double precision, the function value will be indistinguishable from 1. Strictly speaking it is not part of the definition of sinc. [This part of the implementation could even be removed if it is deemed that we lose more time doing the check than we gain when the user asks the value of points below 1e-9.] Also, there probably should not be a ; after the statements. Regards, Gilles - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: [MATH] Re: Pivoting QR Decomposition: Take Two!
On Thu, Oct 06, 2011 at 07:52:55PM -0500, Greg Sterijevski wrote: If you really think about, all of the decomposition classes should be handled by factories. The decompositions all seem to occur in the constructor. Everything else is derived from those results, so one could argue that the actual decomposition code could be written very procedurally and put into the factory as a static private method. The returned class from the factory would be nothing more than a container of the results and methods to get the data and derivatives of the data. Sorry, but I don't see the logical link between all calculations occur in the constructor and factories. That's why I had been expecting a real example that would clearly show that the current applications of the decomposition classes could be more elegantly and/or efficiently be dealt with in a design based on factories. [But we can/should defer this discussion until after the release of 3.0.] Best, Gilles - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: [MATH] Re: Pivoting QR Decomposition: Take Two!
Hi. Yes, this application would be similar to the ones you nixed. It would be a factory returning an abstract class, with the appropriate methods throwing exceptions (like getRank for the non-pivoting version-as Ted mentions in a later entry in this blog). As Ted asks, what is the issue with this? What I'm asking is: What is the issue with 2 concrete classes (and possibly an abstract base class, if there is some code to share)? The issue is that the different classes are really an implementation detail from the user's point of view. What they care about is rank-revealing or not. They don't really care about pivoting except insofar as they know that is how rank revealing QR is done. OK, then the pivoting implementation should preferrably be in a class named RankRevealingQRDecomposition? It can be done with multiple classes, but just as java collections and now guava provide constructors that hide implementation details but expose user details, I think that this is good practice elsewhere as well. I agree. The question is to identify the interesting specifics. In this case, if getRank() is interesting, it should not be the result of an implementation detail that, if not present, would generate an exception. For example, if you say Maps.newHashMap(), do you *really* care which hash table implementation you get? No. But this case is not the same since the user will choose one or the other implementation based on his knowledge that he will be able to obtain, or not, something from getRank(). Having * one class per implementation, or * 2 implementations in the same class and selecting one or the other by passing a boolean, is exactly the same for the user. For the developer, I contend that it is tidier to separate the algorithms along class boundaries. [As Ted pointed out, the CM design is not based around factories (which is fine IMO until proven otherwise); changing that would require a strong argument and should lead to a complete revision of the basic layout of the library, in order to be consistent. Maybe for 4.0 :-).] Sure. Whatever. (checking out) To stretch the argument, why not create a UniversalDecomposition class with all the methods in it: Because that is just a straw man argument that isn't directed toward making things better. Just because an extreme form isn't right doesn't mean that moving that direction isn't a good idea. To paraphrase, I would like to find a minimum of (x-1)^2. Starting at 0, I could say that moving to 0.5 is good. You could say that the value is much larger at 20 and therefore moving to 0.5 is a bad idea. getCholeskyL() getLuL() getLuU() getLuP() getQrQ() getQrR() getQrH() getSvdU() getSvdS() getSvdV() ... and throw UnsupportedOperationException as necessary? Most of the Java world got past this many years ago. I'd be interested by a pointer. I'm all for CM to be state-of-the-art but it should be done in an orderly fashion lest someone dropping in some months/years from now will not be able to figure out what were the guiding principles in the design. If the design is coherent, it will be easier to modify it globally to adopt a new paradigm. On the other hand, if the library uses mixed coding styles, it will become extremely difficult to figure out why one style was used here and another there, and if it was done on purpose or just on a whim of the programmer. Best regards, 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
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 144 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: 12 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.002 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.004 sec Running org.apache.commons.proxy.interceptor.TestFilteredInterceptor Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 sec Running org.apache.commons.proxy.interceptor.filter.TestPatternFilter Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.apache.commons.proxy.interceptor.TestSerializingInterceptor Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052 sec Running org.apache.commons.proxy.interceptor.TestInterceptorChain Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec Running org.apache.commons.proxy.invoker.TestNullInvoker Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec Running org.apache.commons.proxy.provider.remoting.TestBurlapProvider Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec Running org.apache.commons.proxy.exception.TestDelegateProviderException Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.apache.commons.proxy.invoker.TestChainInvoker Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec Running org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory Tests run: 37, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.164 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.009 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: Fri Oct 07 11:25:05 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:
Re: svn commit: r1179928 - in [...]
On Oct 7, 2011, at 2:59 AM, gil...@harfang.homelinux.org wrote: On Fri, Oct 07, 2011 at 03:20:40AM -, pste...@apache.org wrote: Author: psteitz Date: Fri Oct 7 03:20:39 2011 New Revision: 1179928 URL: http://svn.apache.org/viewvc?rev=1179928view=rev Log: Javadoc fixes. Modified: [...] commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Sinc.java [...] Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Sinc.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Sinc.java?rev=1179928r1=1179927r2=1179928view=diff == --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Sinc.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Sinc.java Fri Oct 7 03:20:39 2011 @@ -21,7 +21,11 @@ import org.apache.commons.math.analysis. import org.apache.commons.math.util.FastMath; /** - * Sinc function. + * Sinc function, defined by precode + * + * sinc(x) = 1 if abs(x) 1e-9; + * sin(x) / x; otherwise + * /code/pre I would not document the first part of the alternative since it is an implementation detail. 1e-9 was chosen just because, with double precision, the function value will be indistinguishable from 1. Strictly speaking it is not part of the definition of sinc. [This part of the implementation could even be removed if it is deemed that we lose more time doing the check than we gain when the user asks the value of points below 1e-9.] Also, there probably should not be a ; after the statements. If it a) makes a difference in the returned result and b) is correct (up to double equality), I think we should leave the check in and document it. We should always document top-coding or other departures from the formulas we define things by. I am fine changing the semicolons (which are being used as punctuation) to commas or even dropping them altogether. Phil Regards, Gilles - 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: [all] releasing IO 2.1
On Fri, Oct 7, 2011 at 2:01 AM, Henri Yandell flame...@gmail.com wrote: wget doesn't seem to like the url. curl is happy to do it, but it doesn't do -r afaik. Here is what I get with wget. How do I make it get the embedded URLs? I don't care if it's curl, wget, or foobar, I just want instructions that work. After figuring out all the Maven nonsense, now this. Sigh. wget -np -r --no-check-certificate https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ --2011-10-07 12:41:31-- https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ Resolving repository.apache.org... 140.211.11.57 Connecting to repository.apache.org|140.211.11.57|:443... connected. WARNING: cannot verify repository.apache.org's certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU= http://certificates.godaddy.com/repo sitory/CN=Go Daddy Secure Certification Authority/serialNumber=07969287': Self-signed certificate encountered. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ` repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/index.html ' [ = ] 27,475 --.-K/s in 0.001s 2011-10-07 12:41:31 (22.9 MB/s) - ` repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/index.html' saved [27475] Loading robots.txt; please ignore errors. --2011-10-07 12:41:31-- https://repository.apache.org/robots.txt Connecting to repository.apache.org|140.211.11.57|:443... connected. WARNING: cannot verify repository.apache.org's certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU= http://certificates.godaddy.com/repo sitory/CN=Go Daddy Secure Certification Authority/serialNumber=07969287': Self-signed certificate encountered. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: `repository.apache.org/robots.txt' [ = ] 86 --.-K/s in 0s 2011-10-07 12:41:31 (2.28 MB/s) - `repository.apache.org/robots.txt' saved [86] FINISHED --2011-10-07 12:41:31-- Downloaded: 2 files, 27K in 0.001s (22.3 MB/s) Gary I used to use the grab_releases.sh script in committers/tools/releases/, but it's based on the Apache web server autoindex and needs changing to work with Nexus' format. Hen On Thu, Oct 6, 2011 at 5:58 PM, Gary Gregory garydgreg...@gmail.com wrote: Hi All, The instruction on https://wiki.apache.org/commons/UsingNexus say: wget -np -r https://repository.apache.org/content/repositories/orgapachecommons-098/org/apache/commons/commons-foo/1.1/ Which for IO 2.1 means: wget -np -r --no-check-certificate https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ When I do that from my home dir on p.a.o I get the index.html and that's it. uh? Are these instructions up to date? -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org JUnit in Action, 2nd Ed: http://goog_1249600977http://bit.ly/ECvg0 Spring Batch in Action: http://s.apache.org/HOqhttp://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org JUnit in Action, 2nd Ed: http://goog_1249600977http://bit.ly/ECvg0 Spring Batch in Action: http://s.apache.org/HOqhttp://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory
Re: [all] releasing IO 2.1
On 7 October 2011 13:44, Gary Gregory garydgreg...@gmail.com wrote: On Fri, Oct 7, 2011 at 2:01 AM, Henri Yandell flame...@gmail.com wrote: wget doesn't seem to like the url. curl is happy to do it, but it doesn't do -r afaik. Here is what I get with wget. How do I make it get the embedded URLs? I don't care if it's curl, wget, or foobar, I just want instructions that work. After figuring out all the Maven nonsense, now this. Sigh. It's easy enough to loop around the non-Maven files in the directory if you cannot get the index parsing to work. Or even use Lynx on p.a.o and browse to the directory, and download from there. If you cannot get it to work, let me know and I can help later (about to be busy). wget -np -r --no-check-certificate https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ --2011-10-07 12:41:31-- https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ Resolving repository.apache.org... 140.211.11.57 Connecting to repository.apache.org|140.211.11.57|:443... connected. WARNING: cannot verify repository.apache.org's certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU= http://certificates.godaddy.com/repo sitory/CN=Go Daddy Secure Certification Authority/serialNumber=07969287': Self-signed certificate encountered. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ` repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/index.html ' [ = ] 27,475 --.-K/s in 0.001s 2011-10-07 12:41:31 (22.9 MB/s) - ` repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/index.html' saved [27475] Loading robots.txt; please ignore errors. --2011-10-07 12:41:31-- https://repository.apache.org/robots.txt Connecting to repository.apache.org|140.211.11.57|:443... connected. WARNING: cannot verify repository.apache.org's certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU= http://certificates.godaddy.com/repo sitory/CN=Go Daddy Secure Certification Authority/serialNumber=07969287': Self-signed certificate encountered. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: `repository.apache.org/robots.txt' [ = ] 86 --.-K/s in 0s 2011-10-07 12:41:31 (2.28 MB/s) - `repository.apache.org/robots.txt' saved [86] FINISHED --2011-10-07 12:41:31-- Downloaded: 2 files, 27K in 0.001s (22.3 MB/s) Gary I used to use the grab_releases.sh script in committers/tools/releases/, but it's based on the Apache web server autoindex and needs changing to work with Nexus' format. Hen On Thu, Oct 6, 2011 at 5:58 PM, Gary Gregory garydgreg...@gmail.com wrote: Hi All, The instruction on https://wiki.apache.org/commons/UsingNexus say: wget -np -r https://repository.apache.org/content/repositories/orgapachecommons-098/org/apache/commons/commons-foo/1.1/ Which for IO 2.1 means: wget -np -r --no-check-certificate https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ When I do that from my home dir on p.a.o I get the index.html and that's it. uh? Are these instructions up to date? -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org JUnit in Action, 2nd Ed: http://goog_1249600977http://bit.ly/ECvg0 Spring Batch in Action: http://s.apache.org/HOqhttp://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org JUnit in Action, 2nd Ed: http://goog_1249600977http://bit.ly/ECvg0 Spring Batch in Action: http://s.apache.org/HOqhttp://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: [math] Add methods opposite() and inverse() to o.a.c.m.FieldElement
+1 to add both of these, though I would suggest one of the following pairs of names: 0) negate, invert 1) opposite, reciprocal 2) additiveInverse, multiplicativeInverse Probably 2) is clearest, but a bit long. I am fine with any of them. Phil Hi, I've created MATH-686 which relates to this proposal. However looking at what's already implemented in the CM library, I found that the best (unsatisfactory) option would be negate()/reciprocal() -- see the ticket. Native english speakers will probably not like that! Are we really that unhappy with this? Sébastien - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: svn commit: r1179928 - in [...]
/** - * Sinc function. + * Sinc function, defined by precode + * + * sinc(x) = 1 if abs(x) 1e-9; + * sin(x) / x; otherwise + * /code/pre I would not document the first part of the alternative since it is an implementation detail. 1e-9 was chosen just because, with double precision, the function value will be indistinguishable from 1. Strictly speaking it is not part of the definition of sinc. [This part of the implementation could even be removed if it is deemed that we lose more time doing the check than we gain when the user asks the value of points below 1e-9.] Also, there probably should not be a ; after the statements. If it a) makes a difference in the returned result and b) is correct (up to double equality), I don't understand what you write here. What I meant above is: For values 1e-9, it does not make a difference at double precision whether the computation is done in full (sin(x) / x) or by assigning 1 directly. I think we should leave the check in Yes, of course; the suggestion to remove it was a mistake (see below). and document it. We should always document top-coding or other departures from the formulas we define things by. I don't see why give a wrong definition since it makes no difference. The definition of sinc is[1]: sinc(x) = sin(x) / x To compute it, care must be taken to not divide by zero, thus the simplest operational definition is[2]: sinc(x) = 1 if x = 0 sin(x) / x otherwise The one in CM is an efficiency improvement (to avoid evaluation of a sine and a division when the result is indistinguishable from the known result). The rationale for the shortcut could be a code comment, but as a user-level comment, it is confusing. Gilles I am fine changing the semicolons (which are being used as punctuation) to commas or even dropping them altogether. Phil [1] http://en.wikipedia.org/wiki/Sinc_function [2] http://mathworld.wolfram.com/SincFunction.html - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: [math] Add methods opposite() and inverse() to o.a.c.m.FieldElement
On Oct 7, 2011, at 6:07 AM, Sébastien Brisard sebastien.bris...@m4x.org wrote: +1 to add both of these, though I would suggest one of the following pairs of names: 0) negate, invert 1) opposite, reciprocal 2) additiveInverse, multiplicativeInverse Probably 2) is clearest, but a bit long. I am fine with any of them. Phil Hi, I've created MATH-686 which relates to this proposal. However looking at what's already implemented in the CM library, I found that the best (unsatisfactory) option would be negate()/reciprocal() -- see the ticket. Native english speakers will probably not like that! Are we really that unhappy with this? Not worth a long argument, but the reciprocal of a fraction is not exactly the same concept as multiplicative inverse in a field. I would be happier about living with that inconsistency than adding another noun/verb inconsistency in the same class. Phil Sébastien - 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: [math] Add methods opposite() and inverse() to o.a.c.m.FieldElement
Not worth a long argument, but the reciprocal of a fraction is not exactly the same concept as multiplicative inverse in a field. I would be happier about living with that inconsistency than adding another noun/verb inconsistency in the same class. Phil Just for my own interest: if I understand correctly, reciprocal is specific to fractions? Is that correct. I'm not sure I understood your last point. Do you suggest we keep what's already there: negate()/reciprocal()? Thanks for these clarifications, Sébastien - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: svn commit: r1179935 - in /commons/proper/math/trunk/src: main/java/org/apache/commons/math/linear/ test/java/org/apache/commons/math/linear/
Will do. My aplogies! -Greg On Fri, Oct 7, 2011 at 3:55 AM, Luc Maisonobe luc.maison...@free.fr wrote: Le 07/10/2011 07:21, gr...@apache.org a écrit : Author: gregs Date: Fri Oct 7 05:21:17 2011 New Revision: 1179935 URL: http://svn.apache.org/viewvc?**rev=1179935view=revhttp://svn.apache.org/viewvc?rev=1179935view=rev Log: JIRA Math-630 First push of PivotingQRDecomposition Added: commons/proper/math/trunk/src/**main/java/org/apache/commons/** math/linear/**PivotingQRDecomposition.java commons/proper/math/trunk/src/**test/java/org/apache/commons/** math/linear/**PivotingQRDecompositionTest.**java commons/proper/math/trunk/src/**test/java/org/apache/commons/** math/linear/**PivotingQRSolverTest.java Hello Greg, It seems the files do not have the right subversion properties. Could you check your global subversion settings and make sure [auto-props] is set correctly ? Thanks Luc Added: commons/proper/math/trunk/src/**main/java/org/apache/commons/** math/linear/**PivotingQRDecomposition.java URL: http://svn.apache.org/viewvc/**commons/proper/math/trunk/src/** main/java/org/apache/commons/**math/linear/** PivotingQRDecomposition.java?**rev=1179935view=autohttp://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/PivotingQRDecomposition.java?rev=1179935view=auto ==**==** == --- commons/proper/math/trunk/src/**main/java/org/apache/commons/** math/linear/**PivotingQRDecomposition.java (added) +++ commons/proper/math/trunk/src/**main/java/org/apache/commons/** math/linear/**PivotingQRDecomposition.java Fri Oct 7 05:21:17 2011 @@ -0,0 +1,421 @@ +/* + * Copyright 2011 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/**licenses/LICENSE-2.0http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.commons.math.**linear; + +import java.util.Arrays; +import org.apache.commons.math.util.**MathUtils; +import org.apache.commons.math.**ConvergenceException; +import org.apache.commons.math.**exception.**DimensionMismatchException; +import org.apache.commons.math.**exception.util.**LocalizedFormats; +import org.apache.commons.math.util.**FastMath; + +/** + * + * @author gregsterijevski + */ +public class PivotingQRDecomposition { + +private double[][] qr; +/** The diagonal elements of R. */ +private double[] rDiag; +/** Cached value of Q. */ +private RealMatrix cachedQ; +/** Cached value of QT. */ +private RealMatrix cachedQT; +/** Cached value of R. */ +private RealMatrix cachedR; +/** Cached value of H. */ +private RealMatrix cachedH; +/** permutation info */ +private int[] permutation; +/** the rank **/ +private int rank; +/** vector of column multipliers */ +private double[] beta; + +public boolean isSingular() { +return rank != qr[0].length; +} + +public int getRank() { +return rank; +} + +public int[] getOrder() { +return MathUtils.copyOf(permutation); +} + +public PivotingQRDecomposition(**RealMatrix matrix) throws ConvergenceException { +this(matrix, 1.0e-16, true); +} + +public PivotingQRDecomposition(**RealMatrix matrix, boolean allowPivot) throws ConvergenceException { +this(matrix, 1.0e-16, allowPivot); +} + +public PivotingQRDecomposition(**RealMatrix matrix, double qrRankingThreshold, +boolean allowPivot) throws ConvergenceException { +final int rows = matrix.getRowDimension(); +final int cols = matrix.getColumnDimension(); +qr = matrix.getData(); +rDiag = new double[cols]; +//final double[] norms = new double[cols]; +this.beta = new double[cols]; +this.permutation = new int[cols]; +cachedQ = null; +cachedQT = null; +cachedR = null; +cachedH = null; + +/*- initialize the permutation vector and calculate the norms */ +for (int k = 0; k cols; ++k) { +permutation[k] = k; +} +// transform the matrix column after column +for (int k = 0; k cols; ++k) { +// select the column with the greatest norm on active components +int nextColumn = -1; +double ak2 = Double.NEGATIVE_INFINITY; +
Re: [all] releasing IO 2.1
On Fri, Oct 7, 2011 at 8:51 AM, sebb seb...@gmail.com wrote: On 7 October 2011 13:44, Gary Gregory garydgreg...@gmail.com wrote: On Fri, Oct 7, 2011 at 2:01 AM, Henri Yandell flame...@gmail.com wrote: wget doesn't seem to like the url. curl is happy to do it, but it doesn't do -r afaik. Here is what I get with wget. How do I make it get the embedded URLs? I don't care if it's curl, wget, or foobar, I just want instructions that work. After figuring out all the Maven nonsense, now this. Sigh. It's easy enough to loop around the non-Maven files in the directory if you cannot get the index parsing to work. Or even use Lynx on p.a.o and browse to the directory, and download from there. If you cannot get it to work, let me know and I can help later (about to be busy). Yes please. :( It's this kind of ridiculous hoop jumping that makes me put this task on the back burner, the one that's in the shed, deep in the woods. Gary wget -np -r --no-check-certificate https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ --2011-10-07 12:41:31-- https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ Resolving repository.apache.org... 140.211.11.57 Connecting to repository.apache.org|140.211.11.57|:443... connected. WARNING: cannot verify repository.apache.org's certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU= http://certificates.godaddy.com/repo sitory/CN=Go Daddy Secure Certification Authority/serialNumber=07969287': Self-signed certificate encountered. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ` repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/index.html ' [ = ] 27,475 --.-K/s in 0.001s 2011-10-07 12:41:31 (22.9 MB/s) - ` repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/index.html ' saved [27475] Loading robots.txt; please ignore errors. --2011-10-07 12:41:31-- https://repository.apache.org/robots.txt Connecting to repository.apache.org|140.211.11.57|:443... connected. WARNING: cannot verify repository.apache.org's certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU= http://certificates.godaddy.com/repo sitory/CN=Go Daddy Secure Certification Authority/serialNumber=07969287': Self-signed certificate encountered. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: `repository.apache.org/robots.txt' [ = ] 86 --.-K/s in 0s 2011-10-07 12:41:31 (2.28 MB/s) - `repository.apache.org/robots.txt' saved [86] FINISHED --2011-10-07 12:41:31-- Downloaded: 2 files, 27K in 0.001s (22.3 MB/s) Gary I used to use the grab_releases.sh script in committers/tools/releases/, but it's based on the Apache web server autoindex and needs changing to work with Nexus' format. Hen On Thu, Oct 6, 2011 at 5:58 PM, Gary Gregory garydgreg...@gmail.com wrote: Hi All, The instruction on https://wiki.apache.org/commons/UsingNexus say: wget -np -r https://repository.apache.org/content/repositories/orgapachecommons-098/org/apache/commons/commons-foo/1.1/ Which for IO 2.1 means: wget -np -r --no-check-certificate https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ When I do that from my home dir on p.a.o I get the index.html and that's it. uh? Are these instructions up to date? -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org JUnit in Action, 2nd Ed: http://goog_1249600977http://bit.ly/ECvg0 Spring Batch in Action: http://s.apache.org/HOqhttp://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org JUnit in Action, 2nd Ed: http://goog_1249600977http://bit.ly/ECvg0 Spring Batch in Action: http://s.apache.org/HOqhttp://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org JUnit in Action, 2nd Ed: http://goog_1249600977http://bit.ly/ECvg0 Spring Batch in Action: http://s.apache.org/HOqhttp://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet!
Re: [DISCUSS] Restyling the commons-skin
It would nice also putting a nice image with the Software Box[1] branded apache with commons components, but this is definitively out of my skills :D Simo [1] http://www.talk-mania.com/blog/wp-content/uploads/2008/10/114.jpg http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Fri, Oct 7, 2011 at 6:33 PM, Simone Tripodi simonetrip...@apache.org wrote: Hi all guys, we already discussed in the past that we would like to have a nice new style for the site, and I would like to take advantage from a discussion born in the incubator ML[1] to renew the discussion, because our commons-fellow Christian Grobmeier came out with nice (IMHO) improvements[2] just adopting a style provided from Twitter[3] (ASL Licensed) called Bootstrap. I just did a 5 minute experiment[4], pasting in one of default template the commons-site HP text, that makes IMHO the commons-site really better. There would be the opportunity to improve the existing skin - that started looking so '90 - and I propose working on a new skin in a separate branch, adopting the bootstrap FW. WDYT? Many thanks in advance, all the best!!! Simo [1] http://markmail.org/message/f5r7mp5lxcc7pep5 [2] http://code.grobmeier.de/incubator-draft-v2/ [3] http://twitter.github.com/bootstrap/ [4] http://people.apache.org/~simonetripodi/commons/ http://people.apache.org/~simonetripodi/ http://www.99soft.org/ - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: [math] Add methods opposite() and inverse() to o.a.c.m.FieldElement
On Oct 7, 2011, at 7:43 AM, Sébastien Brisard sebastien.bris...@m4x.org wrote: Not worth a long argument, but the reciprocal of a fraction is not exactly the same concept as multiplicative inverse in a field. I would be happier about living with that inconsistency than adding another noun/verb inconsistency in the same class. Phil Just for my own interest: if I understand correctly, reciprocal is specific to fractions? Is that correct. Yes. I'm not sure I understood your last point. Do you suggest we keep what's already there: negate()/reciprocal()? Yes, because reciprocate (the natural verb) makes no sense and reciprocal is a standard term for the result. Thanks for these clarifications, Sébastien - 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: [DISCUSS] Restyling the commons-skin
These example are all 1,000 times better than our current look! Great examples :) ApacheDS has also done a nice job: https://directory.apache.org/ Gary On Fri, Oct 7, 2011 at 12:33 PM, Simone Tripodi simonetrip...@apache.orgwrote: Hi all guys, we already discussed in the past that we would like to have a nice new style for the site, and I would like to take advantage from a discussion born in the incubator ML[1] to renew the discussion, because our commons-fellow Christian Grobmeier came out with nice (IMHO) improvements[2] just adopting a style provided from Twitter[3] (ASL Licensed) called Bootstrap. I just did a 5 minute experiment[4], pasting in one of default template the commons-site HP text, that makes IMHO the commons-site really better. There would be the opportunity to improve the existing skin - that started looking so '90 - and I propose working on a new skin in a separate branch, adopting the bootstrap FW. WDYT? Many thanks in advance, all the best!!! Simo [1] http://markmail.org/message/f5r7mp5lxcc7pep5 [2] http://code.grobmeier.de/incubator-draft-v2/ [3] http://twitter.github.com/bootstrap/ [4] http://people.apache.org/~simonetripodi/commons/ http://people.apache.org/~simonetripodi/ http://www.99soft.org/ - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org JUnit in Action, 2nd Ed: http://goog_1249600977http://bit.ly/ECvg0 Spring Batch in Action: http://s.apache.org/HOqhttp://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory
Re: [DISCUSS] Restyling the commons-skin
On Fri, Oct 7, 2011 at 6:50 PM, Gary Gregory garydgreg...@gmail.com wrote: These example are all 1,000 times better than our current look! Great examples :) ApacheDS has also done a nice job: https://directory.apache.org/ Actually I have seen that already before a few months. To be honest, I was unsure if I am still browsing an ASF site ;-) Indeed fantastic too, great Icons they own. Christian Gary On Fri, Oct 7, 2011 at 12:33 PM, Simone Tripodi simonetrip...@apache.orgwrote: Hi all guys, we already discussed in the past that we would like to have a nice new style for the site, and I would like to take advantage from a discussion born in the incubator ML[1] to renew the discussion, because our commons-fellow Christian Grobmeier came out with nice (IMHO) improvements[2] just adopting a style provided from Twitter[3] (ASL Licensed) called Bootstrap. I just did a 5 minute experiment[4], pasting in one of default template the commons-site HP text, that makes IMHO the commons-site really better. There would be the opportunity to improve the existing skin - that started looking so '90 - and I propose working on a new skin in a separate branch, adopting the bootstrap FW. WDYT? Many thanks in advance, all the best!!! Simo [1] http://markmail.org/message/f5r7mp5lxcc7pep5 [2] http://code.grobmeier.de/incubator-draft-v2/ [3] http://twitter.github.com/bootstrap/ [4] http://people.apache.org/~simonetripodi/commons/ http://people.apache.org/~simonetripodi/ http://www.99soft.org/ - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org JUnit in Action, 2nd Ed: http://goog_1249600977http://bit.ly/ECvg0 Spring Batch in Action: http://s.apache.org/HOqhttp://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory -- http://www.grobmeier.de - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: [DISCUSS] Restyling the commons-skin
Like the direction! - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: [DISCUSS] Restyling the commons-skin
Very very nice. Well done Simo (there is a webdesigner inside you). Maurizio Cucchiara On 7 October 2011 18:33, Simone Tripodi simonetrip...@apache.org wrote: Hi all guys, we already discussed in the past that we would like to have a nice new style for the site, and I would like to take advantage from a discussion born in the incubator ML[1] to renew the discussion, because our commons-fellow Christian Grobmeier came out with nice (IMHO) improvements[2] just adopting a style provided from Twitter[3] (ASL Licensed) called Bootstrap. I just did a 5 minute experiment[4], pasting in one of default template the commons-site HP text, that makes IMHO the commons-site really better. There would be the opportunity to improve the existing skin - that started looking so '90 - and I propose working on a new skin in a separate branch, adopting the bootstrap FW. WDYT? Many thanks in advance, all the best!!! Simo [1] http://markmail.org/message/f5r7mp5lxcc7pep5 [2] http://code.grobmeier.de/incubator-draft-v2/ [3] http://twitter.github.com/bootstrap/ [4] http://people.apache.org/~simonetripodi/commons/ http://people.apache.org/~simonetripodi/ http://www.99soft.org/ - 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: [all] releasing IO 2.1
On 7 October 2011 16:44, Gary Gregory garydgreg...@gmail.com wrote: On Fri, Oct 7, 2011 at 8:51 AM, sebb seb...@gmail.com wrote: On 7 October 2011 13:44, Gary Gregory garydgreg...@gmail.com wrote: On Fri, Oct 7, 2011 at 2:01 AM, Henri Yandell flame...@gmail.com wrote: wget doesn't seem to like the url. curl is happy to do it, but it doesn't do -r afaik. Here is what I get with wget. How do I make it get the embedded URLs? I don't care if it's curl, wget, or foobar, I just want instructions that work. After figuring out all the Maven nonsense, now this. Sigh. It's easy enough to loop around the non-Maven files in the directory if you cannot get the index parsing to work. Or even use Lynx on p.a.o and browse to the directory, and download from there. If you cannot get it to work, let me know and I can help later (about to be busy). Yes please. :( It's this kind of ridiculous hoop jumping that makes me put this task on the back burner, the one that's in the shed, deep in the woods. Problem seems to be that the Nexus server has a robots.txt which does not allow downloads from that directory. The following works for me: wget -r -l 1 -np -nH -nd -nv -e robots=off --wait 10 --no-check-certificate URL -r recursive -l 1 1 level -np no parent -nH don't create host directories -nd don't create directories -nv quiet -e robots=off ignore robots.txt --wait 10 wait between retrievals Gary wget -np -r --no-check-certificate https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ --2011-10-07 12:41:31-- https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ Resolving repository.apache.org... 140.211.11.57 Connecting to repository.apache.org|140.211.11.57|:443... connected. WARNING: cannot verify repository.apache.org's certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU= http://certificates.godaddy.com/repo sitory/CN=Go Daddy Secure Certification Authority/serialNumber=07969287': Self-signed certificate encountered. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ` repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/index.html ' [ = ] 27,475 --.-K/s in 0.001s 2011-10-07 12:41:31 (22.9 MB/s) - ` repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/index.html ' saved [27475] Loading robots.txt; please ignore errors. --2011-10-07 12:41:31-- https://repository.apache.org/robots.txt Connecting to repository.apache.org|140.211.11.57|:443... connected. WARNING: cannot verify repository.apache.org's certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU= http://certificates.godaddy.com/repo sitory/CN=Go Daddy Secure Certification Authority/serialNumber=07969287': Self-signed certificate encountered. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: `repository.apache.org/robots.txt' [ = ] 86 --.-K/s in 0s 2011-10-07 12:41:31 (2.28 MB/s) - `repository.apache.org/robots.txt' saved [86] FINISHED --2011-10-07 12:41:31-- Downloaded: 2 files, 27K in 0.001s (22.3 MB/s) Gary I used to use the grab_releases.sh script in committers/tools/releases/, but it's based on the Apache web server autoindex and needs changing to work with Nexus' format. Hen On Thu, Oct 6, 2011 at 5:58 PM, Gary Gregory garydgreg...@gmail.com wrote: Hi All, The instruction on https://wiki.apache.org/commons/UsingNexus say: wget -np -r https://repository.apache.org/content/repositories/orgapachecommons-098/org/apache/commons/commons-foo/1.1/ Which for IO 2.1 means: wget -np -r --no-check-certificate https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ When I do that from my home dir on p.a.o I get the index.html and that's it. uh? Are these instructions up to date? -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org JUnit in Action, 2nd Ed: http://goog_1249600977http://bit.ly/ECvg0 Spring Batch in Action: http://s.apache.org/HOqhttp://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org JUnit in Action, 2nd Ed: http://goog_1249600977http://bit.ly/ECvg0 Spring Batch in Action: http://s.apache.org/HOqhttp://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet!
Re: [all] releasing IO 2.1
On Fri, Oct 7, 2011 at 1:46 PM, sebb seb...@gmail.com wrote: On 7 October 2011 16:44, Gary Gregory garydgreg...@gmail.com wrote: On Fri, Oct 7, 2011 at 8:51 AM, sebb seb...@gmail.com wrote: On 7 October 2011 13:44, Gary Gregory garydgreg...@gmail.com wrote: On Fri, Oct 7, 2011 at 2:01 AM, Henri Yandell flame...@gmail.com wrote: wget doesn't seem to like the url. curl is happy to do it, but it doesn't do -r afaik. Here is what I get with wget. How do I make it get the embedded URLs? I don't care if it's curl, wget, or foobar, I just want instructions that work. After figuring out all the Maven nonsense, now this. Sigh. It's easy enough to loop around the non-Maven files in the directory if you cannot get the index parsing to work. Or even use Lynx on p.a.o and browse to the directory, and download from there. If you cannot get it to work, let me know and I can help later (about to be busy). Yes please. :( It's this kind of ridiculous hoop jumping that makes me put this task on the back burner, the one that's in the shed, deep in the woods. Problem seems to be that the Nexus server has a robots.txt which does not allow downloads from that directory. The following works for me: wget -r -l 1 -np -nH -nd -nv -e robots=off --wait 10 --no-check-certificate URL Thank you! It's now downloading. I'll update the Wiki... Gary -r recursive -l 1 1 level -np no parent -nH don't create host directories -nd don't create directories -nv quiet -e robots=off ignore robots.txt --wait 10 wait between retrievals Gary wget -np -r --no-check-certificate https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ --2011-10-07 12:41:31-- https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ Resolving repository.apache.org... 140.211.11.57 Connecting to repository.apache.org|140.211.11.57|:443... connected. WARNING: cannot verify repository.apache.org's certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU= http://certificates.godaddy.com/repo sitory/CN=Go Daddy Secure Certification Authority/serialNumber=07969287': Self-signed certificate encountered. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ` repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/index.html ' [ = ] 27,475 --.-K/s in 0.001s 2011-10-07 12:41:31 (22.9 MB/s) - ` repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/index.html ' saved [27475] Loading robots.txt; please ignore errors. --2011-10-07 12:41:31-- https://repository.apache.org/robots.txt Connecting to repository.apache.org|140.211.11.57|:443... connected. WARNING: cannot verify repository.apache.org's certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU= http://certificates.godaddy.com/repo sitory/CN=Go Daddy Secure Certification Authority/serialNumber=07969287': Self-signed certificate encountered. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: `repository.apache.org/robots.txt' [ = ] 86 --.-K/s in 0s 2011-10-07 12:41:31 (2.28 MB/s) - `repository.apache.org/robots.txt' saved [86] FINISHED --2011-10-07 12:41:31-- Downloaded: 2 files, 27K in 0.001s (22.3 MB/s) Gary I used to use the grab_releases.sh script in committers/tools/releases/, but it's based on the Apache web server autoindex and needs changing to work with Nexus' format. Hen On Thu, Oct 6, 2011 at 5:58 PM, Gary Gregory garydgreg...@gmail.com wrote: Hi All, The instruction on https://wiki.apache.org/commons/UsingNexus say: wget -np -r https://repository.apache.org/content/repositories/orgapachecommons-098/org/apache/commons/commons-foo/1.1/ Which for IO 2.1 means: wget -np -r --no-check-certificate https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ When I do that from my home dir on p.a.o I get the index.html and that's it. uh? Are these instructions up to date? -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org JUnit in Action, 2nd Ed: http://goog_1249600977 http://bit.ly/ECvg0 Spring Batch in Action: http://s.apache.org/HOq http://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org -- E-Mail:
Re: [DISCUSS] Restyling the commons-skin
I love the ApacheDIrectory skin, I like also the Cocoon[1] one. I am envious because I'm not so deep in design. Anyway, just for the record, this[2] is the sample I kindly borrowed from Bootstrap. As you can notice, I did anything that paste the Commons HP text :P Thanks for the feedback, if there are no objections I would proceed on creating the branch All the best! Simo [1] http://cocoon.apache.org/3.0/ [2] http://twitter.github.com/bootstrap/examples/fluid.html http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Fri, Oct 7, 2011 at 7:00 PM, Maurizio Cucchiara mcucchi...@apache.org wrote: Very very nice. Well done Simo (there is a webdesigner inside you). Maurizio Cucchiara On 7 October 2011 18:33, Simone Tripodi simonetrip...@apache.org wrote: Hi all guys, we already discussed in the past that we would like to have a nice new style for the site, and I would like to take advantage from a discussion born in the incubator ML[1] to renew the discussion, because our commons-fellow Christian Grobmeier came out with nice (IMHO) improvements[2] just adopting a style provided from Twitter[3] (ASL Licensed) called Bootstrap. I just did a 5 minute experiment[4], pasting in one of default template the commons-site HP text, that makes IMHO the commons-site really better. There would be the opportunity to improve the existing skin - that started looking so '90 - and I propose working on a new skin in a separate branch, adopting the bootstrap FW. WDYT? Many thanks in advance, all the best!!! Simo [1] http://markmail.org/message/f5r7mp5lxcc7pep5 [2] http://code.grobmeier.de/incubator-draft-v2/ [3] http://twitter.github.com/bootstrap/ [4] http://people.apache.org/~simonetripodi/commons/ http://people.apache.org/~simonetripodi/ http://www.99soft.org/ - 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 - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: [DISCUSS] Restyling the commons-skin
Yeah ! +1 :-) 2011/10/7 Simone Tripodi simonetrip...@apache.org: Hi all guys, we already discussed in the past that we would like to have a nice new style for the site, and I would like to take advantage from a discussion born in the incubator ML[1] to renew the discussion, because our commons-fellow Christian Grobmeier came out with nice (IMHO) improvements[2] just adopting a style provided from Twitter[3] (ASL Licensed) called Bootstrap. I just did a 5 minute experiment[4], pasting in one of default template the commons-site HP text, that makes IMHO the commons-site really better. There would be the opportunity to improve the existing skin - that started looking so '90 - and I propose working on a new skin in a separate branch, adopting the bootstrap FW. WDYT? Many thanks in advance, all the best!!! Simo [1] http://markmail.org/message/f5r7mp5lxcc7pep5 [2] http://code.grobmeier.de/incubator-draft-v2/ [3] http://twitter.github.com/bootstrap/ [4] http://people.apache.org/~simonetripodi/commons/ http://people.apache.org/~simonetripodi/ http://www.99soft.org/ - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org -- Olivier Lamy Talend : http://talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
[Commons Wiki] Update of UsingNexus by GaryGregory
Dear Wiki user, You have subscribed to a wiki page or wiki category on Commons Wiki for change notification. The UsingNexus page has been changed by GaryGregory: http://wiki.apache.org/commons/UsingNexus?action=diffrev1=25rev2=26 Comment: Document a wget command that actually works today. {{{ wget -np -r https://repository.apache.org/content/repositories/orgapachecommons-098/org/apache/commons/commons-foo/1.1/ }}} + Here is a specific example (used for commons-io 2.1 on 7 October 2011), where you must turn off robots.txt and accept a self-signed certificate: + {{{ + wget -r -l 1 -np -nH -nd -nv -e robots=off --wait 10 --no-check-certificate https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ + }}} + For the curious: + * -r recursive + * -l 1 1 level + * -np no parent + * -nH don't create host directories + * -nd don't create directories + * -nv quiet + * -e robots=off ignore robots.txt + * --wait 10 wait between retrievals + Check the MD5/SHA hashes! Also, change the group to commons. - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
[Commons Wiki] Update of UsingNexus by GaryGregory
Dear Wiki user, You have subscribed to a wiki page or wiki category on Commons Wiki for change notification. The UsingNexus page has been changed by GaryGregory: http://wiki.apache.org/commons/UsingNexus?action=diffrev1=26rev2=27 Comment: Document the UNIX command for changing the group to commons. wget -np -r https://repository.apache.org/content/repositories/orgapachecommons-098/org/apache/commons/commons-foo/1.1/ }}} Here is a specific example (used for commons-io 2.1 on 7 October 2011), where you must turn off robots.txt and accept a self-signed certificate: + {{{ wget -r -l 1 -np -nH -nd -nv -e robots=off --wait 10 --no-check-certificate https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/ }}} - For the curious: + For the curious: + * -r recursive * -l 1 1 level * -np no parent @@ -299, +301 @@ Check the MD5/SHA hashes! - Also, change the group to commons. + Also, change the group to commons: - + {{{ + chown :commons * + }}} = Copy to dist = On people.apache.org, change directory to the distribution directory for your component: - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: svn commit: r1179928 - in [...]
Can you live with r1180315? Phil - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org