Skip to content

Instantly share code, notes, and snippets.

request -> {
mySQLClient.getConnection(res -> {
if (res.succeeded()) {
SQLConnection connection = res.result();
// Got a connection
connection.query("SELECT 0", result ->
request.response().end("Got response " + result.result().getNumRows()));
} else {
java.lang.UnsupportedOperationException: datum parameter is not supported
at org.osgeo.proj4j.parser.Proj4Keyword.checkUnsupported(Unknown Source) ~[proj4j-0.1.0.jar:?]
at org.osgeo.proj4j.parser.Proj4Keyword.checkUnsupported(Unknown Source) ~[proj4j-0.1.0.jar:?]
at org.osgeo.proj4j.parser.Proj4Parser.parse(Unknown Source) ~[proj4j-0.1.0.jar:?]
at org.osgeo.proj4j.CoordinateSystemFactory.createFromParameters(Unknown Source) ~[proj4j-0.1.0.jar:?]
at org.osgeo.proj4j.CoordinateSystemFactory.createFromName(Unknown Source) ~[proj4j-0.1.0.jar:?]
public static boolean isSupported(String var0) {
return supportedParameters().contains(var0);
}
public static Set supportedParameters() {
if (supportedParams == null) {
supportedParams = new TreeSet();
supportedParams.add("a");
supportedParams.add("rf");
supportedParams.add("f");
@oshai
oshai / 2-way-sync.sh
Created October 13, 2020 22:52
2-way-sync
#!/bin/bash
set -e
echo 'commit all uncommited files'
ssh $P "cd $PROD_DIR; git add --all . ; git diff-index --quiet HEAD || git commit -m \"chore: periodic jenkins commit\""
echo 'check for additional changes'
ssh $P "cd $PROD_DIR; git diff --exit-code || 'git ls-files --other --directory --exclude-standard | sed q1'"
cd $I_WORK_DIR
echo "pull from $P"
git pull --rebase origin master:master
echo 'pull from $G'
created root /var/folders/f9/c2brg7yx24gftgpb49rpf3jw00p91s/T/kobalt-test7487693100456251204
created projectInfo file /var/folders/f9/c2brg7yx24gftgpb49rpf3jw00p91s/T/kobalt-test7487693100456251204/src/main/kotlin/A.kt
__ __ __ __ __
/ //_/ ____ / /_ ____ _ / / / /_
/ ,< / __ \ / __ \ / __ `/ / / / __/
/ /| | / /_/ / / /_/ // /_/ / / / / /_
/_/ |_| \____/ /_.___/ \__,_/ /_/ \__/ 1.1.8
Regular compilation time: 205 ms
Parallel build starting