Websockets and SSLHandshakeException ??

Im running Spigot 1.8.7 with:

ProtocolLib v3.6.3-SNAPSHOT
Vault v1.5.3-b37
JSONAPI v5.6.0

It all runs fine with Adminium and i just love it but now I'm trying to make website using jsonapi-v2.js without node.js just Websockets and Vue.js but something is wrong with websocket connection the server is now running locally on osx but after will be moved to ubuntu server online
WebSocket connection to 'ws://localhost:20061/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
I get connection refused not sure is related but in console there is warning about SSL so how i can fix those ??
[10:22:31 INFO]: [JSONAPI] Dynmap cannot be loaded because it depends on a plugin that is not installed: 'dynmap'
[10:22:31 INFO]: [JSONAPI] Remote Toolkit cannot be loaded because it depends on a plugin that is not installed: 'RemoteToolkitPlugin'
[10:22:31 INFO]: [JSONAPI] Dynmap cannot be loaded because it depends on a plugin that is not installed: 'dynmap'
[10:22:31 INFO]: [JSONAPI] Remote Toolkit methods cannot be loaded because it depends on a plugin that is not installed: 'RemoteToolkitPlugin'
[10:22:31 INFO]: [JSONAPI] 384 methods loaded in 7 namespaces.
[10:22:31 INFO]: [JSONAPI] ------[Connection information]-------
[10:22:31 INFO]: [JSONAPI] JSON Server listening on 20059
[10:22:31 INFO]: [JSONAPI] JSON Stream Server listening on 20060
[10:22:31 INFO]: [JSONAPI] JSON WebSocket Stream Server listening on 20061
[10:22:31 INFO]: [JSONAPI] Active and listening for requests.
[10:22:31 WARN]: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[10:22:31 WARN]: 	at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
[10:22:31 WARN]: 	at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1937)
[10:22:31 WARN]: 	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
[10:22:31 WARN]: 	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
[10:22:31 WARN]: 	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1478)
[10:22:31 WARN]: 	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:212)
[10:22:31 WARN]: 	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
[10:22:31 WARN]: 	at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
[10:22:31 WARN]: 	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1050)
[10:22:31 WARN]: 	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1363)
[10:22:31 WARN]: 	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1391)
[10:22:31 WARN]: 	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1375)
[10:22:31 WARN]: 	at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
[10:22:31 WARN]: 	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
[10:22:31 WARN]: 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1512)
[10:22:31 WARN]: 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
[10:22:31 WARN]: 	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
[10:22:31 WARN]: 	at java.net.URL.openStream(URL.java:1038)
[10:22:31 WARN]: 	at com.alecgorge.minecraft.jsonapi.JSONServer.connectionInfo(JSONServer.java:130)
[10:22:31 WARN]: 	at com.alecgorge.minecraft.jsonapi.JSONServer$1.run(JSONServer.java:108)
[10:22:31 WARN]: 	at java.lang.Thread.run(Thread.java:745)
[10:22:31 WARN]: Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[10:22:31 WARN]: 	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)
[10:22:31 WARN]: 	at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:230)
[10:22:31 WARN]: 	at sun.security.validator.Validator.validate(Validator.java:260)
[10:22:31 WARN]: 	at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
[10:22:31 WARN]: 	at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
[10:22:31 WARN]: 	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
[10:22:31 WARN]: 	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1460)
[10:22:31 WARN]: 	... 16 more
[10:22:31 WARN]: Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[10:22:31 WARN]: 	at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:145)
[10:22:31 WARN]: 	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131)
[10:22:31 WARN]: 	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
[10:22:31 WARN]: 	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
[10:22:31 WARN]: 	... 22 more
[10:22:31 INFO]: [JSONAPI] -------------------------------------

try connecting the websocket with ws://localhost:25565/api/2/websocket
that error is unrelated and it means your java certificate store is out of date

Maybe 'cause you are using a certificate allocated for *.alecgorge.com on mcjsonapi.com ?
That is absolutely incorrect.

Plugin doesn't create a connection to that website...
The issue is most likely at the stage where it connects to https://tools.alecgorge.com/ip.php to grab the public IP address. issue is on the users install environment, not in the plugin. (updating the ca certificates file would solve this issue)

I'm having a similar problem here's my last startup console log.
[22:10:58 INFO]: Starting minecraft server version 1.8
[22:10:58 INFO]: Loading properties
[22:10:58 INFO]: Default game type: SURVIVAL
[22:10:58 INFO]: Generating keypair
[22:10:58 INFO]: Starting Minecraft server on <IP_ADDRESS>:25565
[22:10:58 INFO]: This server is running CraftBukkit version git-Bukkit-ee6d0fa (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
[22:10:59 INFO]: [GroupManager] Loading GroupManager v2.1.31 (Phoenix)
[22:10:59 INFO]: [WorldEdit] Loading WorldEdit v6.1;no_git_id
[22:10:59 INFO]: [CoreProtect] Loading CoreProtect v2.11.2
[22:10:59 INFO]: [NBTEditor] Loading NBTEditor v1.2
[22:10:59 INFO]: [OpenInv] Loading OpenInv v2.2.9
[22:10:59 INFO]: [Vault] Loading Vault v1.5.3-b37
[22:10:59 INFO]: [ProtocolLib] Loading ProtocolLib v3.6.3-SNAPSHOT-b142
[22:10:59 INFO]: [JSONAPI] Loading JSONAPI v5.6.0
[22:10:59 INFO]: [RedProtect] Loading RedProtect v5.4.1
[22:10:59 INFO]: [TreeAssist] Loading TreeAssist v5.8.89
[22:10:59 INFO]: [WorldGuard] Loading WorldGuard v6.1
[22:10:59 INFO]: [Essentials] Loading Essentials vTeamCity
[22:10:59 INFO]: [EssentialsSpawn] Loading EssentialsSpawn v2.0.1-b154
[22:10:59 INFO]: [EssentialsGeoIP] Loading EssentialsGeoIP vTeamCity
[22:10:59 INFO]: [EssentialsChat] Loading EssentialsChat vTeamCity
[22:10:59 INFO]: [WorldEditSelectionVisualizer] Loading WorldEditSelectionVisualizer v1.4.2
[22:10:59 INFO]: [Vault] Enabling Vault v1.5.3-b37
[22:10:59 INFO]: [Vault] [Economy] Essentials Economy found: Waiting
[22:10:59 INFO]: [Vault] [Permission] GroupManager found: Waiting
[22:10:59 INFO]: [Vault] [Permission] SuperPermissions loaded as backup permission system.
[22:10:59 INFO]: [Vault] [Chat] GroupManager found: Waiting
[22:10:59 INFO]: [Vault] Enabled Version 1.5.3-b37
[22:10:59 INFO]: [ProtocolLib] Enabling ProtocolLib v3.6.3-SNAPSHOT-b142
[22:10:59 INFO]: [ProtocolLib] Started structure compiler thread.
[22:10:59 INFO]: Preparing level "Ice"
[22:10:59 INFO]: Preparing start region for level 0 (Seed:<PHONE_NUMBER>1)
[22:11:00 INFO]: Preparing spawn area: 51%
[22:11:01 INFO]: Preparing start region for level 1 (Seed:<PHONE_NUMBER>1)
[22:11:02 INFO]: Preparing spawn area: 58%
[22:11:02 INFO]: [GroupManager] Enabling GroupManager v2.1.31 (Phoenix)
[22:11:02 INFO]: GroupManager - INFO - World Found: ice
[22:11:02 INFO]: GroupManager - INFO - World Found: world
[22:11:02 INFO]: GroupManager - INFO - World Found: test
[22:11:02 INFO]: GroupManager - INFO - Superperms support enabled.
[22:11:02 INFO]: GroupManager - INFO - Scheduled Data Saving is set for every 10 minutes!
[22:11:02 INFO]: GroupManager - INFO - Backups will be retained for 24 hours!
[22:11:02 INFO]: GroupManager version 2.1.31 (Phoenix) is enabled!
[22:11:02 INFO]: [Vault][Permission] GroupManager hooked.
[22:11:02 INFO]: [Vault][Chat] GroupManager - Chat hooked.
[22:11:02 INFO]: [WorldEdit] Enabling WorldEdit v6.1;no_git_id
[22:11:03 INFO]: WEPIF: GroupManager detected! Using GroupManager for permissions.
[22:11:03 INFO]: [WorldEdit] Using com.sk89q.worldedit.bukkit.adapter.impl.Spigot_v1_8_R1 as the Bukkit adapter
[22:11:03 INFO]: [CoreProtect] Enabling CoreProtect v2.11.2
[22:11:03 INFO]: CoreProtect version 2.11.2 is enabled!
[22:11:03 INFO]: [CoreProtect] Using SQLite for data storage.
[22:11:03 INFO]: [NBTEditor] Enabling NBTEditor v1.2
[22:11:04 INFO]: [CustomItemsAPI] CustomItemManager initialized.
[22:11:04 INFO]: [NBTEditor] NBTEditor has been enabled.
[22:11:04 INFO]: [OpenInv] Enabling OpenInv v2.2.9
[22:11:04 INFO]: [JSONAPI] Enabling JSONAPI v5.6.0
[22:11:04 INFO]: [JSONAPI] Logging to file: false
[22:11:04 INFO]: [JSONAPI] Logging to console: true
[22:11:04 INFO]: [JSONAPI] IP Whitelist = None, all requests are allowed.
[22:11:04 INFO]: [JSONAPI] Loaded methods.json.
[22:11:04 INFO]: [JSONAPI] Waiting 2.000 seconds to load methods so that all the other plugins load...
[22:11:04 INFO]: [JSONAPI] Any requests in this time will not work...
[22:11:06 INFO]: [JSONAPI] Attempting to use port 20059
[22:11:06 INFO]: [RedProtect] Enabling RedProtect v5.4.1
[22:11:06 INFO]: Redprotect: [All configurations loaded!]
[22:11:06 INFO]: Redprotect: [Language file loaded - Using: EN-US]
[22:11:06 INFO]: Redprotect: [Creating a new data fileplugins/RedProtect//data/data_Ice_nether.backup]
[22:11:06 INFO]: Redprotect: [Data file is blank, Reading from plugins/RedProtect//data/data_Ice_nether.backup]
[22:11:06 INFO]: Redprotect: [Creating a new data fileplugins/RedProtect//data/data_Ice_the_end.backup]
[22:11:06 INFO]: Redprotect: [Data file is blank, Reading from plugins/RedProtect//data/data_Ice_the_end.backup]
[22:11:06 INFO]: Redprotect: [Loaded 13 regions (yml)]
[22:11:06 INFO]: Redprotect: [RedProtect v5.4.1 enabled.]
[22:11:06 INFO]: Redprotect: [Checking for update...]
[22:11:06 INFO]: Redprotect: [No update available.]
[22:11:06 INFO]: Redprotect: [Auto-save Scheduler: Saving yml database every 20 minutes!]
[22:11:06 INFO]: [TreeAssist] Enabling TreeAssist v5.8.89
[22:11:06 INFO]: [TreeAssist] debugging: off
[22:11:06 INFO]: [JSONAPI] Dynmap cannot be loaded because it depends on a plugin that is not installed: 'dynmap'
[22:11:06 INFO]: [JSONAPI] Remote Toolkit cannot be loaded because it depends on a plugin that is not installed: 'RemoteToolkitPlugin'
[22:11:06 INFO]: [JSONAPI] Dynmap cannot be loaded because it depends on a plugin that is not installed: 'dynmap'
[22:11:06 INFO]: [JSONAPI] Remote Toolkit methods cannot be loaded because it depends on a plugin that is not installed: 'RemoteToolkitPlugin'
[22:11:06 INFO]: [JSONAPI] 384 methods loaded in 7 namespaces.
[22:11:06 INFO]: [JSONAPI] ------[Connection information]-------
[22:11:06 INFO]: [JSONAPI] JSON Server listening on 20059
[22:11:06 INFO]: [JSONAPI] JSON Stream Server listening on 20060
[22:11:06 INFO]: [JSONAPI] JSON WebSocket Stream Server listening on 20061
[22:11:06 INFO]: [JSONAPI] Active and listening for requests.
[22:11:06 INFO]: [WorldGuard] Enabling WorldGuard v6.1
[22:11:07 INFO]: [WorldGuard] (Ice) TNT ignition is PERMITTED.
[22:11:07 INFO]: [WorldGuard] (Ice) Lighters are PERMITTED.
[22:11:07 INFO]: [WorldGuard] (Ice) Lava fire is blocked.
[22:11:07 INFO]: [WorldGuard] (Ice) Fire spread is UNRESTRICTED.
[22:11:07 INFO]: [WorldGuard] Loaded configuration for world 'Ice'
[22:11:07 INFO]: [WorldGuard] (Ice_nether) TNT ignition is PERMITTED.
[22:11:07 INFO]: [WorldGuard] (Ice_nether) Lighters are PERMITTED.
[22:11:07 INFO]: [WorldGuard] (Ice_nether) Lava fire is blocked.
[22:11:07 INFO]: [WorldGuard] (Ice_nether) Fire spread is UNRESTRICTED.
[22:11:07 INFO]: [WorldGuard] Loaded configuration for world 'Ice_nether'
[22:11:07 INFO]: [WorldGuard] (Ice_the_end) TNT ignition is PERMITTED.
[22:11:07 INFO]: [WorldGuard] (Ice_the_end) Lighters are PERMITTED.
[22:11:07 INFO]: [WorldGuard] (Ice_the_end) Lava fire is blocked.
[22:11:07 INFO]: [WorldGuard] (Ice_the_end) Fire spread is UNRESTRICTED.
[22:11:07 INFO]: [WorldGuard] Loaded configuration for world 'Ice_the_end'
[22:11:07 INFO]: [WorldGuard] Loading region data...
[22:11:07 WARN]: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[22:11:07 WARN]: at sun.security.ssl.Alerts.getSSLException(Unknown Source)
[22:11:07 WARN]: at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
[22:11:07 WARN]: at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
[22:11:07 WARN]: at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
[22:11:07 WARN]: at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
[22:11:07 WARN]: at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
[22:11:07 WARN]: at sun.security.ssl.Handshaker.processLoop(Unknown Source)
[22:11:07 WARN]: at sun.security.ssl.Handshaker.process_record(Unknown Source)
[22:11:07 WARN]: at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
[22:11:07 WARN]: at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
[22:11:07 WARN]: at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
[22:11:07 WARN]: at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
[22:11:07 WARN]: at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
[22:11:07 WARN]: at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
[22:11:07 WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
[22:11:07 WARN]: at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
[22:11:07 WARN]: at java.net.URL.openStream(Unknown Source)
[22:11:07 WARN]: at com.alecgorge.minecraft.jsonapi.JSONServer.connectionInfo(JSONServer.java:130)
[22:11:07 WARN]: at com.alecgorge.minecraft.jsonapi.JSONServer$1.run(JSONServer.java:108)
[22:11:07 WARN]: at java.lang.Thread.run(Unknown Source)
[22:11:07 WARN]: Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[22:11:07 WARN]: at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
[22:11:07 WARN]: at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
[22:11:07 WARN]: at sun.security.validator.Validator.validate(Unknown Source)
[22:11:07 WARN]: at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
[22:11:07 WARN]: at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
[22:11:07 WARN]: at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
[22:11:07 WARN]: ... 16 more
[22:11:07 WARN]: Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[22:11:07 WARN]: at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
[22:11:07 WARN]: at java.security.cert.CertPathBuilder.build(Unknown Source)
[22:11:07 WARN]: ... 22 more
[22:11:07 INFO]: [JSONAPI] -------------------------------------
[22:11:07 INFO]: [Essentials] Enabling Essentials vTeamCity
[22:11:07 WARN]: ?4Version mismatch! Please update EssentialsSpawn to the same version.
[22:11:07 INFO]: Bukkit version format changed. Version not checked.
[22:11:07 INFO]: git-Bukkit-ee6d0fa (MC: 1.8)
[22:11:07 INFO]: 1.8-R0.1-SNAPSHOT
[22:11:07 INFO]: Using locale en_US
[22:11:07 INFO]: Using locale en_US
[22:11:07 INFO]: [Vault][Economy] Essentials Economy hooked.
[22:11:07 INFO]: Essentials: Using GroupManager based permissions.
[22:11:07 INFO]: [EssentialsSpawn] Enabling EssentialsSpawn v2.0.1-b154
[22:11:07 WARN]: ?4Version mismatch! Please update all Essentials jars to the same version.
[22:11:07 INFO]: [EssentialsGeoIP] Enabling EssentialsGeoIP vTeamCity
[22:11:07 INFO]: [EssentialsGeoIP] This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com/.
[22:11:07 INFO]: [EssentialsChat] Enabling EssentialsChat vTeamCity
[22:11:07 INFO]: [WorldEditSelectionVisualizer] Enabling WorldEditSelectionVisualizer v1.4.2
[22:11:07 INFO]: Server permissions file [] is empty, ignoring it
[22:11:08 INFO]: Done (8.317s)! For help, type "help" or "?"
[22:11:08 INFO]: Starting GS4 status listener
[22:11:08 INFO]: Query running on <IP_ADDRESS>:25565
[22:11:08 INFO]: GroupManager - INFO - Bukkit Permissions Updated!
[22:11:08 INFO]: [Vault] Checking for Updates ...
[22:11:08 INFO]: CONSOLE issued server command: /list
[22:11:08 INFO]: There are 0 out of maximum 24 players online.
[22:11:08 INFO]: [Vault] No new version available

issue is on the users install environment, not in the plugin. (updating the ca certificates file would solve this issue)

^ this

I have the latest Java cacerts file in the latest Java 8 and I'm still getting this error. Are you sure the problem is at our end?

See #442
Oracle removed SHA1 CA root certificates, technically the issue is in the user environment, however this could be resolved JSON-API side by getting a cert which doesn't use certificates signed by a SHA1 root

Technically its most definitely not client side. SHA1 is deprecated and jsonapi should not repeat should NOT be using them!
https://konklone.com/post/why-google-is-hurrying-the-web-to-kill-sha-1
Oracle removing SHA-1 to me says you need to switch to SHA2 certs.


Weighted adjacency graphs

Hi,
I am currently working on a project where we have weighted directed graphs.
I know that the current model support directed graphs, i.e. the neighborhood is defined as the incoming nodes.
However, is it possible to use weighted adjacency graphs? My intuition is saying no, as the edge weights are learned through the attention mechanisms. However, in the associated blog there is a footnote that states that GAT can be trivially extended to include these cases ( https://petar-v.com/GAT/#fn:1 ).
So if it is possible, how would one do this?

Joakim Haurum

Hi Joakim,
Thank you for your issue.
The easiest/most intuitive way to include the weights inside an attentional model is to feed the weights as an additional input to the attention mechanism. One easy way of doing so is adding or multiplying (potentially affine-transformed) weights to the attention coefficients prior to applying softmax.
Hope that helps!
Thanks,
Petar

Thank you for the quick response Petar!
It makes sense, so basically just multiply e_ij with a_ij, where a_ij is the weight of the edge from node j to node i (in my case in the range [0, 1]),
I like the idea of simply multiplying the raw edge weight as it represents an a priori scaling of the connection and generalizes to the standard GAT when a_ij = 1, whereas addition does not have an as nice interpretation.

Joakim


Load forwarding does not account for memory aliasing through TypeData views

Repro:
import "package:expect/expect.dart";
import 'dart:typed_data';
foo() {
  final f64 = new Float64List(1);
  final f32 = new Float32List.view(f64.buffer);
  f64[0] = 1.0;  // lower 32bits are all 0s
  f32[1] = 2.0;  // upper 32bits for 2.0f and 2.0 are the same
  return f64[0];
}
main() {
  for (var i = 0; i < 10000; i++) foo();
  Expect.equals(2.0, foo());
}

This was actually fixed 1 year ago.


Final pred_pose wrong problem

I train DPOD using the repository and create a 3D bounding box by using create_bounding_box function, but the result is total wrong, I don't change the code, is there something wrong.

Whenever you use the Linemod dataset for 6d pose estimation, it is given that you use a train:test dataset ratio of 15:85. That is clearly not enough to train this DPOD network.
The authors used a clever way of in-plane (listed as a next step in the readme) rotation to generate more training data which I'm yet to figure out how they did it.
I'd recommend reading section 3.1 of the paper for more information.
And if you figure out how to do add additional in-plane rotation, please feel free to create a pull request.


修改：     src/caffe2/util/net.cc

forgot to add new operators to trainable_ops or untrainable_ops. :-P

more changes to make model helper more convenient to making predict network.

Hi @breadbread1984, thanks sharing your changes. There are some nice modifications in there, but two things I would prefer to leave out:

the rewrite of toy.cc to use the helper methods. However, I deliberately left the use of model helpers out of that example to show how to do this with just vanilla Caffe2. The same is the case for intro.cc and pretrained.cc.

the trivial function wrappers in model helper. I also considered doing this, but felt it was more confusing than helpful. I find model.predict.AddSoftmaxOp(..) more clear than model.AddSoftmaxOp(..). In short: higher level (multi-operation) model design happens in ModelUtil, and lower level in NetUtil.

Would it be possible to leave these changes out of the pull request?
Thanks again!

sure, I didn't know your target of the project. I thought you wanted to make it as simple as the brew interface of python. Your idea is correct if you want to specify where the operator is created. I am figuring how to prevent the two parts of changes from being merged into the source. I am new to git.


demo

I can't  compile server,
Could you please give me a demo, I want to play the game.
Thanks a lot.

the signalling thread creates its own socket server. and 3 types changed in observer.h.

i couldn't compile using g++ either. the #include <webrtc/api/peerconnectioninterface.h> is missing


Spotbugs support (cherry picking commits, previously #4971)

Purpose

Findbugs is dead - https://mailman.cs.umd.edu/pipermail/findbugs-discuss/2016-November/004321.html. Also there's no JDK 9 compatible version for findbugs - findbugsproject/findbugs#105.

Goals

Switch codebase to use spotbugs - https://spotbugs.github.io/spotbugs-maven-plugin/

Chintana, there some conflicts. Can you fix them please?

@afkham merged with master and fixed the spotbugs plugin. Majority of these issues were due to missing exclusion files


Expose helpful info about available modules from CLI

Once #3118 gets merged we'll have the ability to call arbitrary commands that are specific to custom, non-default modules. As such it would be helpful to have a command that exposes all the available modules (both instance IDs + kinds) so it's easy to figure out which modules can be interacted with in a session.
Furthermore, it might also be worth investigating ways to make the module subcommand smarter such that it can use all the available modules to return more helpful error messages or even have something akin to an autocomplete etc.

I understood some part that we require a new command that list all the modules  available ( default and non-default ) .
If yes, please guide how to start with it.

I think a fedimint module list command would be good, then I'd use fedimint module <module> <command> <args…> for custom module commands. What do you think @dpc, I know you wanted shorter commands, but I think if we keep the shortcuts while allowing arbitrary commands to be called this way that would be ok.

Generally sounds good to me, short is good, but not most important.

There should also be two optional, mutually exclusive flags --federation and --client that display the theoretically supported list of modules of the client and federation respectively, while the normal command only shown the modules supported by both.

I'm no sure if it's necessary. Client knows about modules it doesn't support, so could still list them with some info.
> fedimint-cli module list
{
   "0": {
     "kind": "bazinga",
     "status": "unsupported",
    },
   "1": {
      "kind": "mint"
      "status": "recovery",
      "progress": {
         "complete": 41,
         "total": 666
       }
       /// possibly some other most important fields
    },
    "2": {
       "kind": "wallet",
       "status": "active",
       // possibly more
    }
}

I'm no sure if it's necessary. Client knows about modules it doesn't support, so could still list them with some info.

Good point! I was thinking about making the CLI output human readable by default in the future, but we can make this a future problem. We use JSON everywhere anyway for now.

After deep dive into the code , I have deduced some conclusions , Please do tell what I am missing out ->

There is ServerModuleRegistry struct which contains all the server-related modules ( I think server== federation)
same for ClientModuleRegistry struct containing client-related modules things.
There are functions defined on them in fedimint-core/registry.rs file which can be used to iterate over the modules data.

I'm no sure if it's necessary. Client knows about modules it doesn't support, so could still list them with some info.
means fedimint-cli module list should show all the client unsupported modules .

I'm no sure if it's necessary. Client knows about modules it doesn't support, so could still list them with some info.

@elsirion
please tell what is the final layout of the command?

@dpc's suggestion was to show the union of federation-supported and client-supported modules and just annotate this fact such that a user could filter the output for the modules that are supported by both client and federation (e.g. using jq).

Thanks for clarification.

in json -> what fields other than module kind and moduleInstance ID  do I have to include?

I guess at least a status field would be nice for now, it could be
enum ModuleStatus {
    Active,
    NotSupportedByFederation,
    NotSupportedByClient,
}

for now and later extended to
enum ModuleStatus {
    Active,
    Recovering,
    NotSupportedByFederation,
    NotSupportedByClient,
}

to indicate if it can actually be used. But the whole recovery is a bit in flux right now and that might be a bit too complex for you rn, so let's just do the first three states.

do we require list as compulsory command or not?

NotSupportedByFederation

How can a module be not supported by Federation? If Federation returned it they have to support it, no?

Yeah , I think it must be Supported_by_federation and similar for client one

If it's active or recovering it must have been supported by the client. So AFAICT there are 3 possible state currently: unsupported (by the client), recovering, active.

If modules from client module registry -> client modules -> active = true
clientconfig -> federation modules -> not getting how to find whether , it is client_supported or not ??

enum ModuleStatus - must be strict right?
as have to output all fields .

No idea what you just asked about. :D

To access client-supported modules -> I try to take modules field from the client variable -> as  modules: ClientModuleRegistry which has a function iter-modules  to  get all modules.
But Client struct fields are private and I  found no such function to iterate over modules .

@dpc Why not list modules supported by the client in principle but not the federation?

Good point, I have the opposite problem, I always forget that instances exist and not only kinds :see_no_evil:


All mouse solo actions ignore sends

All mouse solo actions like "toggle play and solo..." will mute the sends (routing) of the current track, regardless of the setting in the preferences.
This is rather counterproductive. Could SWS respect the setting in the preferences or maybe add a second batch of actions "toggle play and solo in-place...."?

@StephanRoemer
Could you test with this SWS version please and let me know if it works as expected?
https://www.dropbox.com/s/vxvv12kdebfrkvj/reaper_sws-x64.dll?dl=0
(note that the .dll name has changed compared to last SWS version)

Wow, it does! Nofish, sooooo awesome! Thank you, thank you, thank you!!!!

Cool, thanks for testing.
It was a rather easy fix actually.
Btw. you can continue using this version if you want until next SWS (beta) gets released officially as it also contains all the other stuff that'll be in there.
https://gist.github.com/nofishonfriday/efc32c9c37953a7ba1abb2701eadddee
You wouldn't get an automatic update notice then but you'll probably spot it in the forum anyway I'd assume. :)

Amazing changes! Thanks nofish, will definitely keep that version in Reaper 😝
Will definitely notice, when the official one gets released, since I'm always watching the forums :)


[Feature Request] Skip performing action if a LSP server is already running for the current language

It appears that I can spawn several LSP processes for the same language if I use a keymap, or the command palette. Only one of these instances is active at a time, so the others in the background are just running cycles until the editor is closed.
Querying the state of a LSP for the current language, and only executing start server if one isn't found, should prevent this from occurring.

I forgot to provide context - this is for the generic-lsp:start-LSP-server command, which I believe is defined [here].(https://github.com/mauricioszabo/generic-lsp/blob/e85c5db3fc0cb7d4ffa5e501c7c588dd56770d52/src/generic_lsp/commands.cljs#L121)


Fix issues and introduce new option 'skipConfigOptimization' in profileSetup.bat

Fix the below issues tracked via https://github.com/wso2/product-apim/issues/7229

Fixes https://github.com/wso2/product-apim/issues/7260 (similar to #7195 )
Fixes https://github.com/wso2/product-apim/issues/7395 - Remove redundant xml config file replacements in profile optimization
Fixes https://github.com/wso2/product-apim/issues/7195 - Issue with TM profile in .bat script (affects any profile)
Fixes https://github.com/wso2/product-apim/issues/7177 - Issue with TM profile in .bat script
Fixes https://github.com/wso2/product-apim/issues/7431 - File replacement error in .bat script

Fixes #7229


build: initial dashboard project

Creates the initial dashboard project using the Angular CLI (minimalistic and only necessary parts)
Updates the deployment script to upload the dashboard inside of Travis

@jelbourn Done. Addressed all your comments.


Replace with regular Hello World Gatsby starter.

This minimal install is fine, but I want to start from the Hello World package and make my own minimal starter.

Fixed with commit 270256d7 on 210728.


Satellite v0 isn't updating with new ldts via SYSDATE in Redshift

Hey all.
I'm realized that satellite v0 isn't updating with new ldts via SYSDATE in Redshift, so while appending rows to satellite v1, it doesn't add new ldts(current system timestamp) as a new row.
Let's say I'm trying to execute dbt run twice at 2024-05-05 00:00:00.000000, 2024-05-05 00:10:00.000000
The result of table that I'm expected at first execution is as below.
# Redshift Table: sat_wallet_v0
hk_wallet hd_wallet ldts ...
1 1 2024-05-05 00:00:00.000000
# Redshift Table: sat_wallet_v1
1 1 2024-05-05 00:00:00.000000

This is the result that I'm expected but it doesn't.
Please check real and expected as below.
# Redshift Table: sat_wallet_v0
hk_wallet hd_wallet ldts ...
1 1 2024-05-05 00:00:00.000000
# Redshift Table: sat_wallet_v1
1 1 2024-05-05 00:00:00.000000
1 1 2024-05-05 00:00:00.000000 << real
1 1 2024-05-05 00:10:00.000000 << expected

Hi @tankim ,
Sorry for the late reply!
In your described scenario, there was no change in the second row, the hashdiff is the same.
Therefore, no new row is loaded into the Satellite v0.
This is the expected Data Vault 2.0 behavior, let me know if I understood something wrong.
Best regards
Tim


who's Marley

Really interested in this lib, the README says

Marley is licensed under the Apache License, Version 2.0

Who's Marley?

https://github.com/guardian/marley also https://en.wikipedia.org/wiki/Jacob_Marley
Also, this is fixed.


 Does not allow 0 to be inputed as an answer option while creating questions.

Summary
 Does not allow 0 to be inputed as an answer option while creating questions.
Can enter 0 as answer while creating questions on CC, shows not test provided.
Cateogry
Select one: BUG
Usage Details

Browser: Chrome
Channel: Not relevant, applicable while crating questions.
Topic/Content Item: Not relevant, applicable while crating questions.

How to reproduce

Try to create question on CC with answers a 0.

Screenshots

Fixed: https://github.com/fle-internal/content-curation/pull/403

@jayoshih @rtibbles This is closed, Thanks!


请问什么时候会发布训练或微调代码？

你们这个项目非常棒，请问什么时候会发布训练或微调代码呢，谢谢！

加一

+1

+3

+4

+5

+6

+7

+8

+10086

Hi! Sorry for the late response. The original codebase already supported task tuning. For completeness, we added the training command for task tuning, as well as two example config files for task tuning. Please try it out and feel free to point out additional problems if any. Thanks a lot for your interest in our project!

Hi! Sorry for the late response. The original codebase already supported task tuning. For completeness, we added the training command for task tuning, as well as two example config files for task tuning. Please try it out and feel free to point out additional problems if any. Thanks a lot for your interest in our project!

You added the training command but without the training script :/ !


HELP

I have type these in my arduino code
[...
FirebaseJson json;
FirebaseJsonArray jsonArr;
jsonArr.addInt(measure);
json.clear().addArray("data", &jsonArr).addInt("timestamp", 0);
...]
The error that I have faced in Arduino are below:
cardio_sender:61:13: error: 'class FirebaseJsonArray' has no member named 'addInt'
cardio_sender:65:16: error: 'class FirebaseJson' has no member named 'addArray'
cardio_sender:68:16: error: 'class FirebaseJson' has no member named 'addInt'
It works when once I have changed the first code from "jsonArr.addInt(measure);" to "jsonArr.add(measure);"
but for the second code "json.clear().addArray("data", &jsonArr).addInt("timestamp", 0); " still occurred error if I change to "json.clear().add("data", &jsonArr).add("timestamp", 0); ".
Can anyone help me to solve it :(

There are many functions removed and added to the FirebaseJson class when you updated from the (too) old version.
You just use add instead of addXXX
  FirebaseJson json;
  FirebaseJsonArray jsonArr;

  jsonArr.add(measure);
  json.clear().add("data", jsonArr).add("timestamp", 0);

Please see the examples for the  FirebaseJson usage.

Hi thanks for reply.
I have try it but still have error :(
Is there any solutions to solve this problem?
On Sat, 6 Jun 2020 at 5:32 PM, mobizt<EMAIL_ADDRESS>wrote:

There are many functions removed and added to the FirebaseJson class when
you updated from the (too) old version.
You just use add instead of addXXX
FirebaseJson json;
FirebaseJsonArray jsonArr;
jsonArr.add(measure);
json.clear().add("data", jsonArr).add("timestamp", 0);
Please see the examples for the FirebaseJson usage.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mobizt/Firebase-ESP32/issues/75#issuecomment-640020671,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AP3OQOELCIOZIIXV5TPZFTDRVIELVANCNFSM4NVZBVMQ
.

Update the library.
Copy and post the error here.

I have change the coding to this [...
FirebaseJson json;
FirebaseJsonArray jsonArr;
jsonArr.add(measure);
json.clear().add("data", jsonArr).add("timestamp", 0);
...]
The error is
[
sketch\cardio_sender.ino.cpp.o:(.literal._Z4loopv+0x3c): undefined reference to `FirebaseJsonArray& FirebaseJsonArray::add(unsigned char)'
sketch\cardio_sender.ino.cpp.o: In function `loop()':
C:\Users\USER\Downloads\cardio_sender/cardio_sender.ino:60: undefined reference to `FirebaseJsonArray& FirebaseJsonArray::add(unsigned char)'
collect2.exe: error: ld returned 1 exit status
]

Please copy all error messages and post them again.

This is the error:
sketch\cardio_sender.ino.cpp.o:(.literal._Z4loopv+0x3c): undefined reference to `FirebaseJsonArray& FirebaseJsonArray::add(unsigned char)'
sketch\cardio_sender.ino.cpp.o: In function `loop()':
C:\Users\USER\Downloads\cardio_sender/cardio_sender.ino:60: undefined reference to `FirebaseJsonArray& FirebaseJsonArray::add(unsigned char)'
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "SD.h"
Used: C:\Users\USER\Documents\Arduino\hardware\espressif\esp32\libraries\SD
Not used: C:\Program
Multiple libraries were found for "WiFi.h"
Used: C:\Users\USER\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi
Not used: C:\Program
exit status 1
Error compiling for board ESP32 Dev Module.

Look like it's not completed error message.
Your installation for ESP32 Arduino Core SDK does not complete or use the outdated installation method.
Remove this folder  C:\Users\USER\Documents\Arduino\hardware\espressif\esp32

Error:
Arduino: 1.8.11 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 115200, None"
sketch\cardio_sender.ino.cpp.o:(.literal._Z4loopv+0x3c): undefined reference to `FirebaseJsonArray& FirebaseJsonArray::add(unsigned char)'
sketch\cardio_sender.ino.cpp.o: In function `loop()':
C:\Users\USER\Downloads\cardio_sender/cardio_sender.ino:60: undefined reference to `FirebaseJsonArray& FirebaseJsonArray::add(unsigned char)'
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "WiFi.h"
Used: C:\Users\USER\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi
Not used: C:\Program
Multiple libraries were found for "SD.h"
Used: C:\Users\USER\Documents\Arduino\hardware\espressif\esp32\libraries\SD
Not used: C:\Program
exit status 1
Error compiling for board ESP32 Dev Module.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

You can remove folder C:\Users\USER\Documents\Arduino\hardware as it was redundant and not necessary.
Follow the install instruction here.
Remove Firebase library and install it again from Library Manager.

Hi, I have reinstalled the ESP32 and the firebase library by following your instruction, but still have the error
This attachment is my arduino coding
ECG_ArduinoCoding.txt
Error:
Arduino: 1.8.11 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 115200, None"
sketch\cardio_sender.ino.cpp.o:(.literal._Z4loopv+0x40): undefined reference to `FirebaseJsonArray& FirebaseJsonArray::add(unsigned char)'
sketch\cardio_sender.ino.cpp.o: In function `loop()':
C:\Users\USER\Downloads\cardio_sender/cardio_sender.ino:60: undefined reference to `FirebaseJsonArray& FirebaseJsonArray::add(unsigned char)'
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "SD.h"
Used: C:\Users\USER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\SD
Not used: C:\Program
Multiple libraries were found for "WiFi.h"
Used: C:\Users\USER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Program
exit status 1
Error compiling for board ESP32 Dev Module.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

The problems still exist because you install some third-party libraries that redundant and conflicts with the core library used in the Firebase library.
I don't know which library causes the problem unless SD.h (found in multiple libraries) at this time.
For sure, you need to remove all libraries in the libraries folder
C:\Users\USER\Documents\Arduino\libraries
Then reinstall Firebase library again.

I have remove all of the libraries in the libraries folder
C:\Users\USER\Documents\Arduino\libraries and reinstall the firebase library but still got the error.
Error:
Arduino: 1.8.11 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 115200, None"
sketch\cardio_sender.ino.cpp.o:(.literal._Z4loopv+0x40): undefined reference to `FirebaseJsonArray& FirebaseJsonArray::add(unsigned char)'
sketch\cardio_sender.ino.cpp.o: In function `loop()':
C:\Users\USER\Downloads\cardio_sender/cardio_sender.ino:60: undefined reference to `FirebaseJsonArray& FirebaseJsonArray::add(unsigned char)'
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "SD.h"
Used: C:\Users\USER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\SD
Not used: C:\Program
Multiple libraries were found for "WiFi.h"
Used: C:\Users\USER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Program
exit status 1
Error compiling for board ESP32 Dev Module.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I try to move the firebase library to C:\Program Files (x86)>Arduino> libraries and still have the error too. There are a lot of the libraries in the C:\Program Files (x86)>Arduino> libraries, Do I need to delete all of them as well? I only deleted all libraries which in C:\Users\USER\Documents\Arduino\libraries

The user library is at C:\Users\USER\Documents\Arduino\libraries which may cause conflicts from bad design libraries.
The Arduino default core library in  C:\Program Files (x86)\Arduino\libraries is ok and don't touch it.
Your error is really strange and missing the useful information for me to investigation
For example
Used: C:\Users\USER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Program <---- it should show the full file path  instead of C:\Program
Your computer user name should not contains space and contains only the Arabic alphabet.
You need to test your Arduino IDE installation, the sketch folder (libraries folder) must not lock by another program for reading and writing e.g Microsoft OneDrive.
If you can install the third party library and successfully compiled, you can install and compile Firebase library too.

I have used another laptop (my SISTER's laptop) to install a new Arduino application and redo all those step.
In the error has shown the useful information that you have mentioned about.
Next, I have solve this error [Multiple libraries were found for "WiFi.h"] by adding the library from the Sketch>Include Library> Contributed Library>WiFi
Library added to solve error: [Multiple libraries were found for "WiFi.h"]:
#include <ETH.h>
#include <WiFi.h>
#include <WiFiAP.h>
#include <WiFiClient.h>
#include <WiFiGeneric.h>
#include <WiFiMulti.h>
#include <WiFiScan.h>
#include <WiFiServer.h>
#include <WiFiSTA.h>
#include <WiFiType.h>
#include <WiFiUdp.h>
This is the Error:
Arduino: 1.8.12 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 115200, None"
sketch\cardio_sender.ino.cpp.o:(.literal._Z4loopv+0x3c): undefined reference to `FirebaseJsonArray& FirebaseJsonArray::add(unsigned char)'
sketch\cardio_sender.ino.cpp.o: In function `loop()':
C:\Users\Teoh WeiTing\Downloads\cardio_sender/cardio_sender.ino:74: undefined reference to `FirebaseJsonArray& FirebaseJsonArray::add(unsigned char)'
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "SD.h"
Used: C:\Users\Teoh WeiTing\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
exit status 1
Error compiling for board ESP32 Dev Module.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I've checked your code and seen that you pass the uint8_t variable to the FirebaseJsonArray add function, jsonArr.add(measure), which does not match the function templates.
For FirebaseJson and FirebaseJsonArray, the integer number, you should use int (uint8_t, uint16_t, uint32_t, and long data types are not supported) and for the floating-point number, you should use double (float data type is not supported).
In your sketch, you have to change from uint8_t measure = 0; to int measure = 0;.

For the conclusion, I have only changed these few codes. Thank god it's able to compile successfully.
Thanks Mobizt for the fast reply!!! I really appreciated to it T_T
[
uint8_t previous_measure = 0;
uint8_t measure = 0;
jsonArr.addInt(measure);
json.clear().addArray("data", &jsonArr).addInt("timestamp", 0);
]
to
[
int previous_measure = 0;
int measure = 0;
jsonArr.add(measure);
json.clear().add("data", jsonArr).add("timestamp", 0);
]