maven key cert problem

^M[WARNING] Could not transfer metadata org.familysearch.digitalarchive:prestapequeue:3.1.0-SNAPSHOT/maven-metadata.xml from/to fch (https://mvn.fsglobal.net/content/groups/dev): Error transferring file: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

 

meant “download and install the .pem or .cert file you need”

 

To import into java, cd in an “administrator” command prompt to wherever your java’s cacert file is, then, if it’s a .pem (password is “changeit”)

  1. keytool.exe -importcert -file full/path/to/fch-cacert.pem -keystore cacerts -keypass changeit -storepass changeit
    if it’s a .crt
    keytool -importkeystore -srckeystore /full/path/to/fh-keystore -destkeystore “%JAVA_HOME%\jre\lib\security\cacerts”

maven enunciate woe

the first comment meant “use java 1.6 jdk instead, for some reason that works better”

gave me the clue:

http://maven.40175.n5.nabble.com/Get-quot-java-lang-NoClassDefFoundError-quot-though-the-class-is-in-the-classpath-td4778565.html

ubuntu maven mvn java setup woe

————————————————————
[INFO] Compilation failure
Unable to locate the Javac Compiler in:
/usr/lib/jvm/java-6-openjdk/jre/../lib/tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.

 

meant install the jdk (apt) then

for me

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386

ruby 1.8.x freakiness

Noticed this (surprise me):

>> ‘abc’ + SyntaxError.new()
=> “abcSyntaxError” (works)

>> ‘abc’ + SyntaxError.new(Exception.new)
TypeError: SyntaxError#to_str should return String

I think this may be a cause:

>> Exception.new(Exception.new).to_s
=> #

(doesn’t return a string).

This is somewhat fixed in 1.9 thankfully (you are forced to call #to_s on it the first example doesn’t work)

bitcoin questions

would it be vulnerable to say somebody pretending they have 10,000 computers, then “slowing down” transactions when they come through?

would it be vulnerable to somebody taking a few bitcoins and generating transactions ad nauseum say of 1/million’th of a bitcoin, trying to flood the network?