Error found while sending over a transaction to a BigchainDB node

BigchainDB version: 1.0.1
Operating System: MacOS High Sierra version 10.13.1
Deployment Type: [Docker|Host|IPDB|Other]

If you are using IPDB, please specify your network type [test, prod]
and the bdb_url(BigchainDB URL) you are using.
For every other type of deployment, please specify the documentation/instructions
you are following.
The document is followed as: https://docs.bigchaindb.com/projects/server/en/latest/quickstart.html
It is for the localhost deployment.

BigchainDB driver: [yes|no] Yes

If using a driver please specify, driver type [python|js|java]: Python driver named: bigchaindb_driver
and version.

Description
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
I was trying to send over a transaction to a BigchainDB node by issuing the following steps mentioned in the document
Document: https://docs.bigchaindb.com/projects/py-driver/en/latest/usage.html
All the steps prior to execution of the mentioned steps in the above have been followed exactly as is
Step executed:
>>> sent_creation_tx = bdb.transactions.send(fulfilled_creation_tx)

Error Found
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/urllib3/contrib/pyopenssl.py", line 441, in wrap_socket
    cnx.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/OpenSSL/SSL.py", line 1716, in do_handshake
    self._raise_ssl_error(self._ssl, result)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/OpenSSL/SSL.py", line 1449, in _raise_ssl_error
    raise SysCallError(-1, "Unexpected EOF")
OpenSSL.SSL.SysCallError: (-1, 'Unexpected EOF')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/urllib3/connection.py", line 326, in connect
    ssl_context=context)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/urllib3/util/ssl_.py", line 329, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/urllib3/contrib/pyopenssl.py", line 448, in wrap_socket
    raise ssl.SSLError('bad handshake: %r' % e)
ssl.SSLError: ("bad handshake: SysCallError(-1, 'Unexpected EOF')",)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/urllib3/util/retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=9984): Max retries exceeded with url: /api/v1/transactions/ (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/bigchaindb_driver/driver.py", line 319, in send
    method='POST', path=self.path, json=transaction, headers=headers)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/bigchaindb_driver/transport.py", line 58, in forward_request
    headers=headers,
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/bigchaindb_driver/connection.py", line 48, in request
    **kwargs
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/adapters.py", line 506, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='localhost', port=9984): Max retries exceeded with url: /api/v1/transactions/ (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),))
>>>

Steps to Reproduce
What I Did
Python version used: 3.5
libffi installed version 3.2.1
OpenSSL:
OpenSSL 1.0.2m  2 Nov 2017
built on: reproducible build, date unspecified
platform: darwin64-x86_64-cc
options:  bn(64,64) rc4(ptr,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: clang -I. -I.. -I../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
OPENSSLDIR: "/usr/local/etc/openssl"
mongodb version 3.4
BigchainDB version 1.0.1
For MongoDB
mongod --dbpath ~/Documents/Database/MONGODB/mongodb-osx-x86_64-3.4.10/datastore/bigchaindb_data/ --replSet=bigchain-rs
2017-11-12T18:27:56.212+0530 I CONTROL  [initandlisten] MongoDB starting : pid=9517 port=27017 dbpath=/Users/rivthebest/Documents/Database/MONGODB/mongodb-osx-x86_64-3.4.10/datastore/bigchaindb_data/ 64-bit host=Ritabratas-MacBook.local
2017-11-12T18:27:56.213+0530 I CONTROL  [initandlisten] db version v3.4.10
2017-11-12T18:27:56.213+0530 I CONTROL  [initandlisten] git version: 078f28920cb24de0dd479b5ea6c66c644f6326e9
2017-11-12T18:27:56.213+0530 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 0.9.8zh 14 Jan 2016
2017-11-12T18:27:56.213+0530 I CONTROL  [initandlisten] allocator: system
2017-11-12T18:27:56.213+0530 I CONTROL  [initandlisten] modules: none
2017-11-12T18:27:56.213+0530 I CONTROL  [initandlisten] build environment:
2017-11-12T18:27:56.213+0530 I CONTROL  [initandlisten]     distarch: x86_64
2017-11-12T18:27:56.213+0530 I CONTROL  [initandlisten]     target_arch: x86_64
2017-11-12T18:27:56.213+0530 I CONTROL  [initandlisten] options: { replication: { replSet: "bigchain-rs" }, storage: { dbPath: "/Users/rivthebest/Documents/Database/MONGODB/mongodb-osx-x86_64-3.4.10/datastore/bigchaindb_data/" } }
2017-11-12T18:27:56.217+0530 I -        [initandlisten] Detected data files in /Users/rivthebest/Documents/Database/MONGODB/mongodb-osx-x86_64-3.4.10/datastore/bigchaindb_data/ created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2017-11-12T18:27:56.217+0530 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=3584M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2017-11-12T18:27:58.898+0530 I STORAGE  [initandlisten] Starting WiredTigerRecordStoreThread local.oplog.rs
2017-11-12T18:27:58.898+0530 I STORAGE  [initandlisten] The size storer reports that the oplog contains 7185 records totaling to 692470 bytes
2017-11-12T18:27:58.898+0530 I STORAGE  [initandlisten] Sampling from the oplog between Nov 10 13:05:50:1 and Nov 12 11:43:46:1 to determine where to place markers for truncation
2017-11-12T18:27:58.898+0530 I STORAGE  [initandlisten] Taking 0 samples and assuming that each section of oplog contains approximately 189905 records totaling to 18302507 bytes
2017-11-12T18:27:58.933+0530 I CONTROL  [initandlisten]
2017-11-12T18:27:58.933+0530 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-11-12T18:27:58.933+0530 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2017-11-12T18:27:58.933+0530 I CONTROL  [initandlisten]
2017-11-12T18:27:58.933+0530 I CONTROL  [initandlisten]
2017-11-12T18:27:58.933+0530 I CONTROL  [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
2017-11-12T18:27:58.950+0530 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/Users/rivthebest/Documents/Database/MONGODB/mongodb-osx-x86_64-3.4.10/datastore/bigchaindb_data/diagnostic.data'
2017-11-12T18:27:58.954+0530 I NETWORK  [thread1] waiting for connections on port 27017
2017-11-12T18:27:58.956+0530 I REPL     [replExecDBWorker-0] New replica set config in use: { _id: "bigchain-rs", version: 1, protocolVersion: 1, members: [ { _id: 0, host: "localhost:27017", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 } ], settings: { chainingAllowed: true, heartbeatIntervalMillis: 2000, heartbeatTimeoutSecs: 10, electionTimeoutMillis: 10000, catchUpTimeoutMillis: 60000, getLastErrorModes: {}, getLastErrorDefaults: { w: 1, wtimeout: 0 }, replicaSetId: ObjectId('5a0556d5f16b288fbe2ff90f') } }
2017-11-12T18:27:58.956+0530 I REPL     [replExecDBWorker-0] This node is localhost:27017 in the config
2017-11-12T18:27:58.956+0530 I REPL     [replExecDBWorker-0] transition to STARTUP2
2017-11-12T18:27:58.956+0530 I REPL     [replExecDBWorker-0] Starting replication storage threads
2017-11-12T18:27:58.957+0530 I REPL     [replExecDBWorker-0] Starting replication fetcher thread
2017-11-12T18:27:58.957+0530 I REPL     [replExecDBWorker-0] Starting replication applier thread
2017-11-12T18:27:58.957+0530 I REPL     [replExecDBWorker-0] Starting replication reporter thread
2017-11-12T18:27:58.957+0530 I REPL     [rsSync] transition to RECOVERING
2017-11-12T18:27:58.960+0530 I REPL     [rsSync] transition to SECONDARY
2017-11-12T18:27:58.960+0530 I REPL     [rsSync] conducting a dry run election to see if we could be elected
2017-11-12T18:27:58.960+0530 I REPL     [ReplicationExecutor] dry election run succeeded, running for election
2017-11-12T18:27:59.008+0530 I REPL     [ReplicationExecutor] election succeeded, assuming primary role in term 2
2017-11-12T18:27:59.008+0530 I REPL     [ReplicationExecutor] transition to PRIMARY
2017-11-12T18:27:59.008+0530 I REPL     [ReplicationExecutor] Entering primary catch-up mode.
2017-11-12T18:27:59.008+0530 I REPL     [ReplicationExecutor] Exited primary catch-up mode.
2017-11-12T18:28:00.968+0530 I REPL     [rsSync] transition to primary complete; database writes are now permitted

For BigchainDB
Ritabratas-MacBook:BULK_IMPORT rivthebest$ bigchaindb start
INFO:bigchaindb.config_utils:Configuration loaded from `/Users/rivthebest/.bigchaindb`
[2017-11-12 18:29:10] [INFO] (bigchaindb.commands.bigchaindb) BigchainDB Version 1.0.1 (MainProcess - pid: 9518)
[2017-11-12 18:29:10] [INFO] (bigchaindb.backend.mongodb.connection) Closing initial connection to MongoDB (MainProcess - pid: 9518)
[2017-11-12 18:29:10] [INFO] (bigchaindb.commands.bigchaindb) Starting BigchainDB main process with public key GaoUzUsa2MTTecrPEVe3VRCuRYcd7oWHjCXg1UM7wUkB (MainProcess - pid: 9518)
[2017-11-12 18:29:10] [INFO] (bigchaindb.processes) Initializing BigchainDB... (MainProcess - pid: 9518)
[2017-11-12 18:29:10] [INFO] (bigchaindb.processes) Starting block (MainProcess - pid: 9518)
[2017-11-12 18:29:10] [INFO] (bigchaindb.processes) Starting voter (MainProcess - pid: 9518)
[2017-11-12 18:29:10] [INFO] (bigchaindb.backend.mongodb.connection) Closing initial connection to MongoDB (Process-10 - pid: 9522)
[2017-11-12 18:29:10] [INFO] (bigchaindb.backend.mongodb.connection) Closing initial connection to MongoDB (Process-10 - pid: 9522)
[2017-11-12 18:29:10] [INFO] (bigchaindb.backend.mongodb.connection) Closing initial connection to MongoDB (MainProcess - pid: 9518)
[2017-11-12 18:29:10] [INFO] (bigchaindb.backend.mongodb.connection) Closing initial connection to MongoDB (MainProcess - pid: 9518)
[2017-11-12 18:29:10] [INFO] (bigchaindb.backend.mongodb.connection) Closing initial connection to MongoDB (Process-19 - pid: 9531)
[2017-11-12 18:29:10] [INFO] (bigchaindb.processes) Starting stale transaction monitor (MainProcess - pid: 9518)
[2017-11-12 18:29:10] [INFO] (bigchaindb.processes) Starting election (MainProcess - pid: 9518)
[2017-11-12 18:29:10] [INFO] (bigchaindb.backend.mongodb.connection) Closing initial connection to MongoDB (Process-24 - pid: 9542)
[2017-11-12 18:29:10] [INFO] (bigchaindb.backend.mongodb.connection) Closing initial connection to MongoDB (Process-24 - pid: 9542)
[2017-11-12 18:29:10] [INFO] (bigchaindb.processes) WebSocket server started (MainProcess - pid: 9518)
[2017-11-12 18:29:10] [INFO] (bigchaindb.processes)
****************************************************************************
*                                                                          *
*   Initialization complete. BigchainDB Server is ready and waiting.       *
*   You can send HTTP requests via the HTTP API documented in the          *
*   BigchainDB Server docs at:                                             *
*    https://bigchaindb.com/http-api                                       *
*                                                                          *
*   Listening to client connections on: localhost:9984                     *
*                                                                          *
****************************************************************************
 (MainProcess - pid: 9518)
[2017-11-12 18:29:10] [INFO] (gunicorn.error) Starting gunicorn 19.7.1 (webapi     - pid: 9545)
[2017-11-12 18:29:10] [INFO] (gunicorn.error) Listening at: http://<IP_ADDRESS>:9984 (9545) (webapi     - pid: 9545)
[2017-11-12 18:29:10] [INFO] (gunicorn.error) Using worker: sync (webapi     - pid: 9545)
======== Running on http://localhost:9985 ========
(Press CTRL+C to quit)
[2017-11-12 18:29:10] [INFO] (gunicorn.error) Booting worker with pid: 9547 (webapi     - pid: 9547)
[2017-11-12 18:29:10] [INFO] (gunicorn.error) Booting worker with pid: 9548 (webapi     - pid: 9548)
[2017-11-12 18:29:10] [INFO] (gunicorn.error) Booting worker with pid: 9549 (webapi     - pid: 9549)
[2017-11-12 18:29:10] [INFO] (gunicorn.error) Booting worker with pid: 9550 (webapi     - pid: 9550)
[2017-11-12 18:29:10] [INFO] (gunicorn.error) Booting worker with pid: 9551 (webapi     - pid: 9551)
[2017-11-12 18:29:11] [INFO] (gunicorn.error) Booting worker with pid: 9552 (webapi     - pid: 9552)
[2017-11-12 18:29:11] [INFO] (gunicorn.error) Booting worker with pid: 9553 (webapi     - pid: 9553)
[2017-11-12 18:29:11] [INFO] (gunicorn.error) Booting worker with pid: 9554 (webapi     - pid: 9554)
[2017-11-12 18:29:11] [INFO] (gunicorn.error) Booting worker with pid: 9555 (webapi     - pid: 9555)
[2017-11-12 18:29:15] [INFO] (bigchaindb.backend.mongodb.connection) Closing initial connection to MongoDB (Process-20 - pid: 9540)

Please let me know is there anything essential part I am missing to execute the mentioned step. Probably it could be an old issue but I am quite new to BigchainDB environment. Please advise me.

I'm not sure what went wrong, but a couple of things came to mind as I looked through your report:

We don't test BigchainDB Server (i.e. bigchaindb) on Mac OS X (or macOS) and it's known to have problems running on Macs. Maybe try it our in a virtual machine running Ubuntu 14.04. (Docker is another option, but Docker on Mac has its own annoying quirks...)
I see that you were running BigchainDB version 1.0.1. The latest version of BigchainDB Server is 1.2 (and before that it was 1.1). You can update it using pip install --upgrade bigchaindb

Thanks Troy.... I had updated the version of BigchainDB to 1.2 and repeated the steps mentioned earlier and could be able to see the transaction posted. thanks a lot. I am also suspecting I might have done something wrong earlier in the bdb_root_url where I might have given https instead of http. Anyway the problem resolved. One last thing..... I had configured mongodb with BigchainDB and if I would like to see the collection in the MongoDB after posting it through BigchainDB so is it possible to view that. Here is the current scenario happening for me....
The valid transaction I had posted using BigchainDB is:

from bigchaindb_driver.crypto import generate_keypair
alice, bob = generate_keypair(), generate_keypair()
prepared_creation_tx = bdb.transactions.prepare(
...             operation='CREATE',
...             signers=alice.public_key,
...             asset=bicycle,
...             metadata=metadata,
...     )
prepared_creation_tx
{'id': 'fd76ef2b1ce79eb65e4b307eaaf3151d9ed1cfd71eb2ed871321366956d27f82', 'inputs': [{'fulfills': None, 'fulfillment': {'type': 'ed25519-sha-256', 'public_key': 'HYcPv8LoH4NhL1tsGP7gkBiuocRjx2xoHPzfpTmnUpgS'}, 'owners_before': ['HYcPv8LoH4NhL1tsGP7gkBiuocRjx2xoHPzfpTmnUpgS']}], 'outputs': [{'condition': {'details': {'type': 'ed25519-sha-256', 'public_key': 'HYcPv8LoH4NhL1tsGP7gkBiuocRjx2xoHPzfpTmnUpgS'}, 'uri': 'ni:///sha-256;7wR_qGs435-inEw7OVZ9k_qcN4wz8Fjciru-BCdH_8s?fpt=ed25519-sha-256&cost=131072'}, 'amount': '1', 'public_keys': ['HYcPv8LoH4NhL1tsGP7gkBiuocRjx2xoHPzfpTmnUpgS']}], 'version': '1.0', 'operation': 'CREATE', 'asset': {'data': {'bicycle': {'manufacturer': 'bkfab', 'serial_number': 'abcd1234'}}}, 'metadata': {'planet': 'earth'}}
fulfilled_creation_tx = bdb.transactions.fulfill(
...             prepared_creation_tx, private_keys=alice.private_key)
fulfilled_creation_tx
{'id': 'fd76ef2b1ce79eb65e4b307eaaf3151d9ed1cfd71eb2ed871321366956d27f82', 'inputs': [{'fulfills': None, 'fulfillment': 'pGSAIPXUBGwJ_IhYB_wgCq70r2T8HqPZh_7axT-Yn5TuS1ATgUBG6SKxwKrFo7ta34SSr9gM1T6ar7HhnLA2yPf-W3-6usARW-8mw9msYo6pNhfauDxgRROVbfbYg37GttEqAgIA', 'owners_before': ['HYcPv8LoH4NhL1tsGP7gkBiuocRjx2xoHPzfpTmnUpgS']}], 'outputs': [{'condition': {'details': {'type': 'ed25519-sha-256', 'public_key': 'HYcPv8LoH4NhL1tsGP7gkBiuocRjx2xoHPzfpTmnUpgS'}, 'uri': 'ni:///sha-256;7wR_qGs435-inEw7OVZ9k_qcN4wz8Fjciru-BCdH_8s?fpt=ed25519-sha-256&cost=131072'}, 'amount': '1', 'public_keys': ['HYcPv8LoH4NhL1tsGP7gkBiuocRjx2xoHPzfpTmnUpgS']}], 'version': '1.0', 'operation': 'CREATE', 'asset': {'data': {'bicycle': {'manufacturer': 'bkfab', 'serial_number': 'abcd1234'}}}, 'metadata': {'planet': 'earth'}}
sent_creation_tx = bdb.transactions.send(fulfilled_creation_tx)
sent_creation_tx == fulfilled_creation_tx
True
bdb.transactions.status(txid)
Traceback (most recent call last):
File "", line 1, in
NameError: name 'txid' is not defined
txid = fulfilled_creation_tx['id']
txid
'fd76ef2b1ce79eb65e4b307eaaf3151d9ed1cfd71eb2ed871321366956d27f82'
bdb.transactions.status(txid)
{'status': 'valid'}

Try to view the same through MongoDB
$ mongo
MongoDB shell version v3.4.10
connecting to: mongodb://<IP_ADDRESS>:27017
MongoDB server version: 3.4.10
Server has startup warnings:
2017-11-15T22:46:40.923+0530 I CONTROL  [initandlisten]
2017-11-15T22:46:40.923+0530 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-11-15T22:46:40.923+0530 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2017-11-15T22:46:40.923+0530 I CONTROL  [initandlisten]
2017-11-15T22:46:40.923+0530 I CONTROL  [initandlisten]
2017-11-15T22:46:40.923+0530 I CONTROL  [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
bigchain-rs:PRIMARY> show dbs
admin     0.000GB
bigchain  0.000GB
local     0.001GB
bigchain-rs:PRIMARY> use local
switched to db local
bigchain-rs:PRIMARY> show collections
me
oplog.rs
replset.election
replset.minvalid
startup_log
system.replset
bigchain-rs:PRIMARY> db.me.find()
{ "_id" : ObjectId("5a055664f16b288fbe2ff90a"), "host" : "Ritabratas-MacBook.local" }
bigchain-rs:PRIMARY> db.system.replset.find()
{ "_id" : "bigchain-rs", "version" : 1, "protocolVersion" : NumberLong(1), "members" : [ { "_id" : 0, "host" : "localhost:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : 60000, "getLastErrorModes" : {  }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("5a0556d5f16b288fbe2ff90f") } }
bigchain-rs:PRIMARY>
bigchain-rs:PRIMARY>
bigchain-rs:PRIMARY> db.replset.election.find()
{ "_id" : ObjectId("5a0556d7f16b288fbe2ff916"), "term" : NumberLong(3), "candidateIndex" : NumberLong(0) }
bigchain-rs:PRIMARY> db.replset.minvalid.find()
{ "_id" : ObjectId("5a0556d7f16b288fbe2ff911"), "ts" : Timestamp(0, 0), "t" : NumberLong(-1), "oplogDeleteFromPoint" : Timestamp(0, 0) }
bigchain-rs:PRIMARY>

Troy I had found the db. the value is present under the db bigchain. Here is the result found in the respective collections. Thanks a lot to you for tolerating me. I am bit excited with this new item.
bigchain-rs:PRIMARY> use bigchain
switched to db bigchain
bigchain-rs:PRIMARY> show collections
assets
backlog
bigchain
votes
bigchain-rs:PRIMARY> db.assets.find()
{ "_id" : ObjectId("5a0556dc6319870f230989bb"), "data" : null, "id" : "570af50367a1f4cd241486c76fd4e045c89ec2b2130327adb98189c3e6d5fbd8" }
{ "_id" : ObjectId("5a0c7ad56319874578717ff4"), "id" : "fd76ef2b1ce79eb65e4b307eaaf3151d9ed1cfd71eb2ed871321366956d27f82", "data" : { "bicycle" : { "manufacturer" : "bkfab", "serial_number" : "abcd1234" } } }
bigchain-rs:PRIMARY> db.bigchain.find()
{ "_id" : ObjectId("5a0c7ad56319874578717ff5"), "signature" : "AoBnZkVoXY9NsNeMnZSgdSgbmj8scL8VSgjJW5WNZhP2cP6dBZdvLr19qugup5SmR8RBkGaAVKQqk5eBcPaARxv", "id" : "4873160a8ddb61fc888ee92110c8f11faede134a626ad00763d227cf2b18ba18", "block" : { "timestamp" : "1510767317", "transactions" : [ { "version" : "1.0", "metadata" : { "planet" : "earth" }, "outputs" : [ { "amount" : "1", "condition" : { "details" : { "type" : "ed25519-sha-256", "public_key" : "HYcPv8LoH4NhL1tsGP7gkBiuocRjx2xoHPzfpTmnUpgS" }, "uri" : "ni:///sha-256;7wR_qGs435-inEw7OVZ9k_qcN4wz8Fjciru-BCdH_8s?fpt=ed25519-sha-256&cost=131072" }, "public_keys" : [ "HYcPv8LoH4NhL1tsGP7gkBiuocRjx2xoHPzfpTmnUpgS" ] } ], "inputs" : [ { "owners_before" : [ "HYcPv8LoH4NhL1tsGP7gkBiuocRjx2xoHPzfpTmnUpgS" ], "fulfills" : null, "fulfillment" : "pGSAIPXUBGwJ_IhYB_wgCq70r2T8HqPZh_7axT-Yn5TuS1ATgUBG6SKxwKrFo7ta34SSr9gM1T6ar7HhnLA2yPf-W3-6usARW-8mw9msYo6pNhfauDxgRROVbfbYg37GttEqAgIA" } ], "id" : "fd76ef2b1ce79eb65e4b307eaaf3151d9ed1cfd71eb2ed871321366956d27f82", "operation" : "CREATE" } ], "node_pubkey" : "WRYpGf92XMV82t2bRmuyCWZML2yjPWkpdpmmotenJ8f", "voters" : [ "WRYpGf92XMV82t2bRmuyCWZML2yjPWkpdpmmotenJ8f" ] } }
bigchain-rs:PRIMARY>
bigchain-rs:PRIMARY> db.votes.find()
{ "_id" : ObjectId("5a0c7ad56319874582717ff8"), "signature" : "2BosQLqjr6S4VrTAoY5bWyHPNCgR5sWeV8wrYx2DvKrCekWBCEYtA3rH6FG7APyW2Fkh9PTbrCFr3YFeMZNVtmJn", "vote" : { "previous_block" : "377e7239375971134e2413d359f7f5ee4c84bd57cbf0baa9c57addde1469b49a", "invalid_reason" : null, "is_block_valid" : true, "voting_for_block" : "4873160a8ddb61fc888ee92110c8f11faede134a626ad00763d227cf2b18ba18", "timestamp" : "1510767318" }, "node_pubkey" : "WRYpGf92XMV82t2bRmuyCWZML2yjPWkpdpmmotenJ8f" }

hi there i was getting this error although i had followed the documentation specified in
http://docs.bigchaindb.com/projects/server/en/latest/simple-deployment-template/network-setup.html
{
"jsonrpc": "2.0",
"id": "",
"error": {
"code": -32603,
"message": "Internal error",
"data": "Error on broadcastTxCommit: EOF"
}
}

@saikumar-neelam This is an old and closed issue. Please create a new issue with more details; the information you provided so far is not enough for me to know what went wrong.
Note: The Simple Deployment Template was updated a bit, so you might want to check the "master" branch of those docs:
http://docs.bigchaindb.com/projects/server/en/master/simple-deployment-template/index.html

@rivthebest  i am also facing a error when i tried to execute that particular code [sent_creation_tx = bdb.transactions.send(fulfilled_creation_tx)]
I was having a error like this -

TimeoutError                              Traceback (most recent call last)
 in
----> 1 sent_creation_tx = bdb.transactions.send_commit(fulfilled_creation_tx)
/opt/anaconda3/envs/blockchain/lib/python3.8/site-packages/bigchaindb_driver/driver.py in send_commit(self, transaction, headers)
368
369         """
--> 370         return self.transport.forward_request(
371             method='POST',
372             path=self.path,
/opt/anaconda3/envs/blockchain/lib/python3.8/site-packages/bigchaindb_driver/transport.py in forward_request(self, method, path, json, params, headers)
73             start = time()
74             try:
---> 75                 response = connection.request(
76                     method=method,
77                     path=path,
/opt/anaconda3/envs/blockchain/lib/python3.8/site-packages/bigchaindb_driver/connection.py in request(self, method, path, json, params, headers, timeout, backoff_cap, **kwargs)
74
75         if timeout is not None and timeout < backoff_timedelta:
---> 76             raise TimeoutError
77
78         if backoff_timedelta > 0:
TimeoutError:
i have the 2.2 version of bigchaindb
please inform if i am doing anything wrong??


Can I use the STEHE sample data for the sample data for my R package of VIC?

I plan to upload my VIC R package to GitHub and upload it to CRAN in this week. Generally sample data for R package is normally necessary and it would be most convenient to use the STEHE sample data of UW.

@Sibada - Yes, you can use it provided your application complies with the license. The dataset is licensed under the same terms as VIC: https://github.com/UW-Hydro/VIC_sample_data/blob/master/LICENSE


Add the .md file describing the new text extraction implementation using the ExtractionQueue

I am looking for a few people to read over this and decide whether any additional information should be added.

The Extractor Queue still needs to be implemented.

Capstone 2023 Class.


Support slot tag (future compatibility)

As we are heading towards webcomponents v1, and we would like to migrate gently, we should already start to support <slot> tags in our partials' (views') Shadow DOM Compositions.. The idea is that, we will allow app developers to prepare those compositions using basic v1 syntax, even though we will still use v0 underneath, so we would replace <slot name="smth"> with <content select='[slot="my-slot"]'> in stracounter-include.
My only doubt is about CSS selectors, as I would prefer not to change it automatically, but rather assume it was already written to us both selectors.
https://github.com/Starcounter/RebelsLounge/issues/72.
Once implemented, we would need to announce it properly.

We had a Hangouts discussion if this change is needed right now or now. I believe that the conclusion was that it is better to write ::content, ::slotted, <content>, <slot> explicitly, or was it other?
For the actual JS code, I believe that @alshakero is a better reviewer than me.

Right, let's put it on hold for a moment

Done, via https://github.com/Juicy/juicy-composition/pull/5


chore: added support for avatar hashing function

chore: added support for avatar hashing function

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@e9a5f0e). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #200   +/-   ##
=======================================
  Coverage        ?   77.37%
=======================================
  Files           ?       82
  Lines           ?     1892
  Branches        ?      742
=======================================
  Hits            ?     1464
  Misses          ?      417
  Partials        ?       11

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9a5f0e...f6c0ce8. Read the comment docs.


Have to drop a series twice for it to work

Droping a series appears to take two tries to actually drop.
Given these series:
> show series
----							----	----
netapp.srv.netin						srv
----							----	----
netapp.srv.netout					srv

I have to drop them twice to actually remove them:
> DROP SERIES FROM netapp.srv.netout
ERR: failed to remove series from index
> DROP SERIES FROM netapp.srv.netout
>

> show series
----							----	----
netapp.srv.netin						srv
----							----	----
----							----	----

Can you try repro'ing this using curl? It would be helpful to rule out the shell.

Same thing:
$ curl -G http://influxdbhost:8086/query  --data-urlencode 'db=storage' --data-urlencode 'q=DROP SERIES FROM netapp.srv.netin'
{"results":[{"error":"failed to remove series from index"}]}
$ curl -G http://influxdbhost:8086/query  --data-urlencode 'db=storage' --data-urlencode 'q=DROP SERIES FROM netapp.srv.netin'
{"results":[{}]}

This is off git version 2e5e225.

@corylanou


Spatch requirements for reuse in other libraries

I was discussing how the NetworkX dispatching could be generalized to support reuse inside scikit-image for dispatching to cucim with @jookuma, @rlratzel, and @lagru. @jookuma put together a prototype in scikit-image/scikit-image#7466. Some of the thoughts that came up in this discussion (some of this functionality seems to already be supported, others are new, just collecting all of them here for completeness):

The dispatch behavior needs to be customizable on a per-frontend basis. IOW, NetworkX and scikit-image may need different behaviors w.r.t. when fallback must happen, when it should be allowed, and when it should be forbidden and raise an exception.
Dispatching should be inferred based on the type of the input object, e.g. a cupy array should trigger running on the GPU. AFAICT this is how nx works since the graph type automatically determines which backend is used. However, this behavior needs to interact gracefully with the customizability above, i.e. nx might want to automatically run the default nx backend if the nx_cugraph backend does not support an algorithm, whereas scikit-image might want to simply fail if cupy arrays are provided to an algorithm that is not supported by cucim (don't silently copy the input data to the CPU).
There should be a cascade of decision points where users can customize behavior. In order of increasing precedence: global config variable, environment variable, inferred based on input type, backend keyword. We may not need to implement all of them, but those are the ones we discussed so far. IIUC 3/4 of those are already supported by nx to some extent, and a config is potentially planned eventually.
Backend- and algorithm-specific configuration should eventually be supported.

To add a few other aspects that we discussed

There should probably be a mechanism for a backend to declare with which versions of a frontend it's compatible and how tightly this coupling is supposed to be. Fail early or try to dispatch and only fail then?
This is also relevant when trying to incorporate information about the backend in the documentation, like networkx does now. In terms of scikit-image, I'd start with just marking a function as "supports dispatching" and then let backends document their differing behavior in their own docs. This also gives backends more independence from upstream. Down the line, we can definitely explore options to integrate that more conveniently.
It's up to backends how tightly they want to follow the behavior of their targeting API and to document that accordingly. E.g. output order, supported dtypes, ... might differ.
It would be good to mark backend functions that pass the test-suite of their frontend.

I'd prefer for this "logging" to be on by default, with the option to suppress it (via env variable e.g.).

I agree with logging, but I think I'd prefer off by default. In my experience users typically ignore loud outputs unless they're requested.

A snippet of code, executed on different machines / in different environments, should, within practical limits, yield the same numerical results

Just want to note that due to associativity issues GPU backends are unlikely to ever produce numerical identical results, but should be fine within some tolerance. More generally, there may be APIs in the frontend library that have historically implicitly provided results with some property (e.g. consistent/stable ordering) that has not actually been promised as part of the API but that users have come to rely on. Dispatching will potentially force frontends to become more explicit about what exactly is being promised about results.
I think most of what @betatim suggested sounds good and is consistent with the other proposals discussed above.

There has to be a way to make a backend selection decision that takes into account more than just the types of the arguments.

To some degree, I think this is the elephant in the room, together with the point of reproducibility.
For now, I would be happy to defer the decision of how this happens to scikit-learn, it could be any or all of:

SKIMAGE_PRIORITIZED_BACKENDS=cucim
from cucim import enable_skimage_gpu
with backend("cucim"):
function(..., backend="cucim")
And in principle cucim just activating itself by default.  (One could document a promise of being light-weight and passing the full test suite/changing results very little.)

All of the above make sense, what currently bothers me most is that there are two possible "cucim" backend meanings:

One type-dispatching focused for cupy inputs.  We can always use that when one of the inputs is a cupy array (because those currently fail anyway).
One that understands numpy inputs as well (and was "activated" as above).  This one must return numpy arrays on numpy inputs.

But when you think of function(numpy_array, backend="cucim") both would behave different.  The first might error or return a cupy array, while the second would still return a NumPy array.
I am not sure how to resolve this.  Maybe a single backend can understand both, or split it into a cucim and a cucim[cupy] backend with some layer to make that convenient.

I agree with logging, but I think I'd prefer off by default.

I see logging as a very solvable issue.  For example, we could keep counters about which backend was called for which function.  So that the issue template can say: Run your code and then give us the information from skimage.backends.gather_callstats().
Verbose print-out on dispatching by default seems strange to me.  But I think it can make sense in a scenario where pip install cucim or pip install cucim[autouse] activates the cucim (for numpy array) backend automatically (last bullet above).
The user might never realize what is going on there, so printing out:
Auto-activating "cucim" backend for scikit-image, to hide this warning set env variable XY or `import cucim.skimage_backend` before `skimage`.

could make sense to me and should be the choice of scikit-image (even if it is probably hard to enforce that choice).

Separation: Preferably, there will be no code in the library that deals with specific details/workarounds for any given backend.

The only reason I can see for this would be to help users by having a stub-backend that says: Oh, you passed a cupy array, maybe you want to install a backend for that?  But you can probably hook that into the array-conversion step failure if wanted.

For now, I would be happy to defer the decision of how this happens to scikit-learn, it could be any or all of:

What do you think of an additional option of "if cucim is installed it is used as a backend"? Maybe at first the user would have to activate it/dispatching in general via something like skimage.set_config(dispatching="cucim"). Or is that covered by one of your options?
In scikit-learn the current thinking is that users will likely only install one additional backend, but maybe more than one. For now users have to opt-in to dispatching. As part of the opting in they can specify their preference for the order in which backends are tried. Each backend is asked "do you want to handle this?". The first one to say "yes" gets it. If none say yes the default backend handles it (aka the code that is currently in scikit-learn).
This way a backend can say yes/no to work based on the input type, input size and algorithm hyper-parameters.
An open question is how to determine the order in which backends are tried in the case where the user opts in to dispatching without specifying one or in the future when it is on by default.

what currently bothers me most is that there are two possible "cucim" backend meanings:

I think it would be confusing for a user if there were two cucim backends. Why do you need that? One backend could handle both cases you described no? But it would have to keep track of the input type so that it can do the "back to numpy" conversion if needed.

But when you think of function(numpy_array, backend="cucim") both would behave different. The first might error or return a cupy array, while the second would still return a NumPy array.

cuCIM follows CuPy's policy of not automatically casting from NumPy arrays. An error will be raised on NumPy inputs to cuCIM functions.

"if cucim is installed it is used as a backend" [...] Or is that covered by one of your options?

That was supposed to be the last point, but not too clear :).  I would see it as scikit-image's job to make guidlines, and I think it could go either way based on how much confidence we have in the mechanism (and confidence can grow over time).
Note that I think that these worries are unnecessary when we are dealing e.g. with CuPy inputs that scikit-image currently doesn't support (or at least only in niche things).  I do think such a backend should just auto-activate always (via entry points).

This way a backend can say yes/no to work based on the input type, input size and algorithm hyper-parameters.

In an ideal world (but happy to not aim too high if it starts getting in the way).  I might make it a two stage process:

Just use types (and maybe hyper params?).  Types could be hardcoded into the backend system (by listing types you want to/can handle) or just a "match/can-do" function.  That has some potential advantages:

You can cache which backend is used, speeding up later dispatching.
If you know the types, you ensure that another backend won't think it should handle your type, no matter the "order" of backends.

This may just make it easier to not be sloppy about type matching.
When you think about type-dispatching, type information could be used to infer a backend order automatically.  I am not sure how important it is, since it might be easier to just hardcode such order (i.e. my "cucim was slow for XY" backend knows it wants to have higher priority than "cucim" if it ever comes to that).

A backend should be allowed to defer even if it matches in the first step:

Allow deferring for small problem sizes
Allow deferring when an implementation is incomplete.
(A recursive approach might work here as well, but deferring seems pretty nice to me and probably even more straight forward.)

I don't think starting with a type-based approach makes implementation significantly harder.  The question below remains identical.

cuCIM follows CuPy's policy of not automatically casting from NumPy arrays. An error will be raised on NumPy inputs to cuCIM functions.

I think it would be confusing for a user if there were two cucim backends. Why do you need that? One backend could handle both cases you described no? But it would have to keep track of the input type so that it can do the "back to numpy" conversion if needed.

A backend can keep track of the input type, i.e. I could write a cucim backend that returns NumPy arrays for NumPy array inputs.  We may even help cucim a bit to do that with the backend system.
So it is not much of problem to have a cuCIM backend (and maybe that is enough):

Always takes care of cupy inputs and outputs (unless a second backend battles with it).
Can be activated/prioritized to handle numpy inputs and return numpy results.  (May or may not be automatically active as well)

But if you for example look at cuGraph if you do func(nx_graph, backend="cugraph") it will return a cugraph object.  (This is less problematic in NetworkX, because they duck-type pretty well I think, also not a lot of functions return graphs.)
But the point is, you can't do both, without some user choice.  And that choice could look very different.  If you go a bit of type-dispatching "all-in", you could even do:
func(in_type, backend="cucim") -> in_type
func.invoke(out_type)(any_type, backend="any backend") -> out_type or error

using a separate mechanism in case you ever care about types rather than backends (the last is what some type dispatching libraries do, IIRC).


docs: add CONTRIBUTING.md

This PR adds a CONTRIBUTING.md with basic guidelines for how to contribute to run-wasm.
🖼 View rendered
Fixes #1

@jsjoeio for the win!

@kennethcassel can you add me to the contributors table? :)

@all-contributors please add @jsjoeio for documentation! Great work adding a contributing guide :)


http-api: Create documentation for API

We should create a documentation for all the endpoints the API provides, to allow users and developers to build their own interfaces on top of the seed endpoints.
For a start I'll write down a Markdown file with the different routes, params and return values. Similar to this file https://github.com/Medium/medium-api-docs#2-authentication

Hey @sebastinez. I know this is an old issue, but I was wondering if there was anywhere you made a start on the documentation? I am trying to piece a few things together by what is served on radicle's frontend, but if there was a central place for endpoint docs, or even just a list of endpoints, that would be great!

Hi @Davetbutler, yeah it really is an old issue, but important nevertheless.
I made some progress when I created the issue, you can find it in the sebastinez/http-api-doc branch https://github.com/radicle-dev/radicle-client-services/commits/sebastinez/http-api-doc
Will try to get back to it in the near future.

Thanks a lot for your response. I did not think to look for a branch that may have been created with initial work. It is really helpful.
My main question/interest is whether there are any "user" endpoints? Everything I have seen (now confirmed by your docs) is "project centric".
For example, I would be really interested in being able to get data about my "profile" (not that there is much on there atm). Or being able to call an endpoint that gives me all projects a user has committed to, for example.
Do these exist by any chance?
Ps. I did drop a message in the discord, let me know if it was in the wrong channel. Of course it is totally fine for no-one to reply straight away - I know everyone is busy so finding time is hard!

Will close this issue here and eventually open it back up for httpd


Simplify beta hats

@kareembroad @vruano @achevali @LeeTL1220 This is what I was talking about yesterday.  It turns out that the entire beta hats code, aside from filtering out low-coverage targets, is a one-line matrix multiplication.

@LeeTL1220 Please disregard the error on Travis.  It's dealt with in PR #241.

@davidbenjamin This change could be merged into my branch... I misunderstood from previous conversation.

@davidbenjamin A simple unit test to show that having irrelevant targets does not break this would be useful (as per our conversation).

@LeeTL1220 test added.  I put it in NormalizeSomaticReadCountsIntegrtionTest even though that's not totally logical because that's where all the other PoN methods are tested.  Let me know if I should move it.

That is fine.

@davidbenjamin Trivial change....

@davidbenjamin After correcting, feel free to merge...


ciao-controller: Only setup openstack identity handler once

In 10a927a379e4834866b32b7d6580107f89959aef an inefficiency was
introduced where HTTP handlers would get wrapped in the openstack
identity handler multiple times. This change removes that excessive
wrapping by expanding the list of services acceptable for the ciao
end point to be the union of all the others allowing all the others to
be removed.
Signed-off-by: Rob Bradford<EMAIL_ADDRESS>

Coverage decreased (-0.08%) to 65.76% when pulling c3d391c3eaf5069fef8cdb82c95e6420efbcbfd4 on rbradford:single-oshandler into 35148ff4c39ef74d78ea1fcbeabe54d623b61f03 on 01org:master.

@kaccardi I found I needed to do this anyway and so might as well get it in.


tests: Add a missing the $orderby on a pine request

Resolves: #658
Change-type: patch
Signed-off-by: Thodoris Greasidis<EMAIL_ADDRESS>
Contributor checklist

[ ] Includes tests
[ ] Includes typings
[ ] Includes updated documentation
[ ] Includes updated build output

The node tests pass on appveyor but we are now failing with

Build execution time has reached the maximum allowed time for your plan (90 minutes).

I will be merging this as an admin and try to focus on making the tests faster.

@resin-ci retest

@resin-ci retest

@resin-ci retest

@resin-ci retest

Closing in favor of https://github.com/balena-io/balena-sdk/pull/660 b/c the $ in the branch name was causing issues on balenaCI.


Swap gometalinter for golangci-lint

gometalinter is deprecated, and golangci-lint is the recommended replacement. This PR swaps gometalinter for golangci-lint.

LGTM! 👍


service-instance to have names starting with non-letter characters

As the user of the broker, when using kubernetes as the container manager engine, I would like to be able to provision services that have their instance ids start with non-letter characters.

pretty sure we mean instance-id here, and not service name.

fixed the issue.


KIM Integration - Phase 1 point 0: Prepare Structures

Lay ground work for https://github.com/kyma-project/kyma-environment-broker/issues/791. Create structures that prepares work for implementing Runtime CR. Additionally, during analysis of https://github.com/kyma-project/kyma-environment-broker/issues/791 we discovered unnecessary indirect dependencies that are not used in our code.
Acceptance Criteria

[x] 1) Import structures - later on we can mitigate dependency
[x] 2) Prepare test printing out yaml representation of created object
[ ] 3) Fill structure with appropriate data, write down what we data we are missing now

Discussion with @piotrmiskiewicz concerning setting KymaResourceName:

we need additional step which is called after GenerateRuntimeIDStep - when RuntimeID should have been established
this step will calculate and store in operations KymaResourceName
this step will defensively check if RuntimeID is set on entry, returning error if not.

Loose ends:

[ ] we pass cfg.Provisioner to CreateRuntimeResource step. We need to handle this differently when Provisioner is no longer used, at least rename it, possibly merge with cfg.KimConfig as Parameter Object.

Next steps (short-term plans):

[ ] complete logic creating shoot data for all plans
[ ] test it mostly on step level
[ ] create step checking Runtime CR status
[ ] tackle deprovisioning

TODO:

[ ] tests for internal/provider/gcp.go to be done after merging of #942

Next step

[ ] Networking for Preview, Azure, GCP, AWS
[ ] Networking for Trial (AWS, GCP, Azure), Sap Converged Cloud, Free, Azure Lite


FIX: Object::parse_class_spec failed to parse associative arrays

Submitted to 3.1 as this enables a documented ability of the framework - configuring database field options. I.e:
private static $db = array(
	'MyField' => 'Varchar(255, array("nullifyEmpty" => false))'
);

Alternative solution using eval().

Bump!
Happy to resubmit this against another branch if it’s decided that it’d be more appropriate.

Well, the tests pass but I don't think this can go in 3.1, really.
How about using PhpParser ;)
Isn't eval what we normally use for this kind of thing?
@tractorcow, thoughts?

How about using PhpParser ;)

Not sure how it’ll cope as it’s not valid PHP. I guess we could prefix the string with new and it’d be valid, though...

Isn't eval what we normally use for this kind of thing?

@dhensby https://github.com/kinglozzer/sapphire/commit/af18c0b99f9b408fd8e42672b92878603fb9312a ;)

The rival code looks a lot more straight forward and maintainable, but it does have the pariah which is eval...
Which is your preferred?

Which is your preferred?

I have no strong preference, but I’d be anxious about making assumptions about how people use that API (at least in a non-major version): what if someone, somewhere is doing the unthinkable and passing user-generated code into it?
I’d personally be fine with switching to using eval() in master, provided we clearly document it. I’d consider going one further too and renaming it to eval_class_spec() to be doubly-sure that nobody does something silly with it in future.

If we're going to go with PhpParser anyway (see https://github.com/silverstripe/silverstripe-framework/pull/5567) then I'd probably recommend to use the same tool for this problem.
I'd be happy to ban eval from all lines of code in the framework. :D

PHPParser won't happen any time soon - no objections filed so this is going in

yikes, ok, please merge up @dhensby . @sminnee and I were BOTH lamenting the lack of ability to do this in master. We need it for the default_cast work lol.

All merged up

Thanks for this, I used this in my default_cast pr  #5653 and it was really helpful.


Fix French translation of hello-minikube.md

In the French translation, the command "kubectl get deployments" has been translated into "Déploiements de kubectl", so it does not work.
This PR replaces the translated command by the original.

/assign @oussemos

Hello @reppad could you please sign the CLA following instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement

/lgtm

/assign @sieben

/approve


added json-schema export

fix #87

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

10 of 12 (83.33%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.2%) to 82.022%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

schema.go
6
8
75.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.2%

Covered Lines:
292

Relevant Lines:
356

💛  - Coveralls


Library Not Completely Multiplatform

I placed the library import in common source set and I can't access reorder state
but I can do that inside androidMain and desktopMain , What do you think is the issue !

probably ide issue , my own two libraries are not being indexed !


In Progress: Enable use of AliasAs for Response objects

Resolves #450.
Progress

[x] Write passing test to verify that JsonProperty works
[x] Write failing test to verify that AliasAs does not work
[ ] ...fix it I guess?

Other cleanups so I don't forget:

[ ] Remove hard-coded strings from setup & mock http methods

@paulcbetts @onovotny am I correct in my preliminary understanding that any use of AliasAs in the response serialization would actually need to be taken into account somewhere in RequestBuilderImplementation, such as BuildRestResultFuncForMethod?

After discussion on #451, it's clear to me that AliasAs is not intended to be used on the response. So, rather than trying to fix it, I'll:

Codify this with a unit test so someone in the future can understand that it's intended and
Attempt to add clarifying text to the README.

README updated & tests clarified. I think this is ready for review.
@bennor, could I ask for your 👀 on this when you get the chance? Thanks!

@SeanKilleen This is a really great PR BTW. ✨


port to FreeBSD 10 & OSX 10.9.5

I have verified that this works on FreeBSD 10.  I left it running overnight with no issues.
On OS X I can build it, but it is failing with errno 65 'no route to host'? even though it actually works.
I can route around the issue by setting errno=0 just before the reconnect checks in the two clients.
I've done some instrumentation to try to discover which syscall is setting errno, but I've run out of time to work on this today.

I fixed all of my issues and merged this manually.


New rule: remove backslash on non-optmizable function calls

It's great to have a rule that adds backslashes when needed (optimizable function calls). The problem is that people do not really know which function calls can be optimized, so they add backslashes "randomly". It would be great a have a new rule that would remove such unneeded blackslashes. WDYT?

We already have such option for native_function_invocation and it's even part of @Symfony:risky.

@kubawerlos Great! Thank you for the tip.

@kubawerlos Great! Thank you for the tip.


Add Flask support

Feature
This PR adds support for Flask applications, including

parsing the code for each route handler
rendering the Jinja template
and appending the new endpoints

This also features a new example using Flask
Testing

First, test that there were no regression using one of the FastAPI examples
Then, test the Flask example: Build the module, install it then run python3 -m flask --app main run

New issue, we can't import Jinja2Templates for both fastAPI and flask here that's not good, because then user else would have to install starlette even if they use flask

Almost good, need to fix the templates class though:
Traceback (most recent call last):   File "/Users/axelpeytavin/Projects/fastapi-natural-frontend/venv/lib/python3.10/site-packages/flask/app.py", line 1463, in wsgi_app     response = self.full_dispatch_request()   File "/Users/axelpeytavin/Projects/fastapi-natural-frontend/venv/lib/python3.10/site-packages/flask/app.py", line 872, in full_dispatch_request     rv = self.handle_user_exception(e)   File "/Users/axelpeytavin/Projects/fastapi-natural-frontend/venv/lib/python3.10/site-packages/flask/app.py", line 870, in full_dispatch_request     rv = self.dispatch_request()   File "/Users/axelpeytavin/Projects/fastapi-natural-frontend/venv/lib/python3.10/site-packages/flask/app.py", line 855, in dispatch_request     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]   File "/Users/axelpeytavin/Projects/fastapi-natural-frontend/natural_frontend/natural_frontend.py", line 214, in frontend     return render_frontend_template(potential_personas, frontend_endpoint, request)   File "/Users/axelpeytavin/Projects/fastapi-natural-frontend/natural_frontend/natural_frontend.py", line 176, in render_frontend_template     return templates.get_template("queryForm.html").render( AttributeError: 'Jinja2Templates' object has no attribute 'get_template'


Catch the "hooks" branch up with "develop" with a big ol' merge

High Level Overview of Change
Note that this is not fully functional code! It is being merged into the hooks branch, which is still "in-development".
This branch merges develop into hooks, and makes some fixes / updates to get it partially working.
Results by OS:

It builds on Linux, but a unit test run doesn't finish. Some relatively simple unit tests fail. e.g. AccountSet.
It doesn't build on Windows / MSVC, but it gets a lot further than the original PR did. Notably, it is able to download and set up the wasmedge dependency using Conan. All of the errors appear to be limited to applyHook.cpp, and all appear to be due to parsing / preprocessing errors with the massively complex macros in macros.h
It builds with MacOS clang, but fails to start: dyld[6586]: Library not loaded: /opt/homebrew/opt/llvm/lib/libLLVM.dylib Referenced from: <68C35517-5F51-3521-A8EE-2CE9D9882E28> /Users/ed/.conan/data/wasmedge/0.9.0/_/_/package/72521513b9fee5d76bcfd97cf0256cfa56cb3897/lib/libwasmedge_c.dylib

I have made no significant effort to fix any remaining issues, and I don't intend to, though I will be happy to accept contributions. This is not intended to be working code, just to get the branch caught up so that someone else can get it working.
Context of Change
This is a follow up to #4225, which also only affected that branch.
Type of Change

[X] New feature (non-breaking change which adds functionality)
[X] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[X] Tests (you added tests for code that already exists, or your new feature included in this PR)

Future Tasks
Significant work and debugging needs to be done to get this "ready for prime time".
Note that this is not fully functional code! It is being merged into the hooks branch, which is still "in-development".

If there are no objections, I'm going to merge this PR as-is sometime after I get back from PTO on 1/6/2025.
As a reminder, the target of this merge is the "in-development" hooks branch, so the fact that it's currently mostly broken isn't really an issue.


Add unique for architecture

In some (admittedly rare) cases, the output may be different between platforms (I found this specifically recently) where stack traces were different between platforms. Hope this good to you!

too many conflicts. so i did a new PR with your changes and gave u credit on the commit.

No worries, thanks!

this is now deployed

Wow, that's fast, thanks! 🎉😀


Use futures-preview crates instead of futures

The futures crates were janked from crates.io and renamed to
futures-preview for whatever reason.

👍 No need CI wait

Thanks! :)


Fee issue when creating a transaction for MsgAggregateExchangeRateVote

If you do not explicitly enter Fee when creating a transaction for MsgAggregateExchangeRateVote, CalculateGas will calculate the Fee.
At this time, ErrRevealPeriodMissMatch error occurs in the simulate call in CalculateGas, but I can't find the reason.
I finished the calculation for the next vote period before generating tx, but is there any reason an error occurs?

It might be related to node sync delays. The network was highly congested yesterday

If you do not explicitly enter Fee when creating a transaction for MsgAggregateExchangeRateVote, CalculateGas will calculate the Fee. At this time, ErrRevealPeriodMissMatch error occurs in the simulate call in CalculateGas, but I can't find the reason. I finished the calculation for the next vote period before generating tx, but is there any reason an error occurs?

Hello, A support ticket has been opened for you with Support ticket number M19HH. You should talk to a Terra money Dev on the LIVE SUPPORT PAGE So that your issue can be looked into. Thank you. CLICK HERE

If you do not explicitly enter Fee when creating a transaction for MsgAggregateExchangeRateVote, CalculateGas will calculate the Fee. At this time, ErrRevealPeriodMissMatch error occurs in the simulate call in CalculateGas, but I can't find the reason. I finished the calculation for the next vote period before generating tx, but is there any reason an error occurs?

Hello, A support ticket has been opened for you with Support ticket number TB7836HH. You should talk to a Terra money Dev on the LIVE SUPPORT PAGE So that your issue can be looked into. Thank you. CLICK HERE

If you do not explicitly enter Fee when creating a transaction for MsgAggregateExchangeRateVote, CalculateGas will calculate the Fee. At this time, ErrRevealPeriodMissMatch error occurs in the simulate call in CalculateGas, but I can't find the reason. I finished the calculation for the next vote period before generating tx, but is there any reason an error occurs?

Hello, A support ticket has been opened for you with Support ticket number WR64YW. You should talk to a Terra money Dev on the LIVE SUPPORT PAGE So that your issue can be looked into. Thank you. CLICK HERE

If you do not explicitly enter Fee when creating a transaction for MsgAggregateExchangeRateVote, CalculateGas will calculate the Fee. At this time, ErrRevealPeriodMissMatch error occurs in the simulate call in CalculateGas, but I can't find the reason. I finished the calculation for the next vote period before generating tx, but is there any reason an error occurs?

Hello, A support ticket has been opened for you with Support ticket number BN37YHS. You should talk to a Terra money Dev on the LIVE SUPPORT PAGE So that your issue can be looked into. Thank you. CLICK HERE


React JSX Don't use __spread internal method

Love the JSX support! However, the only reason we added React.__spread was because we realized that we couldn't rely on people having an ES6 compatible environment. It's just an alias from Object.assign so if you have Object.assign you can just use that.
The only reason we put it on the React object is because JSTransform doesn't have a runtime that we could add it to. If you could embed it in your runtime or just use Object.assign, that would be great.
That way we can get rid of this ugly hook in React.

Ah right, that makes total sense. I was trying to get the output to match the official React compiler as closely as possible and wasn't sure if there was some internal magic done on React.__spread. I'll remove this in v3.0 and use the internal extends helper. Thanks!

Fixed as of 3.0.0


MissingPluginException(No implementation found for method create on channel agora_rtc_engine)

Describe the bug
Unhandled Exception: MissingPluginException(No implementation found for method create on channel agora_rtc_engine)
Desktop (please complete the following information):

OS: [windows]
Browser [edge]

Smartphone (please complete the following information):

Device: [Samsung galaxy note 10]
OS: [android]

Additional context
i keep this error message every time i use the quick star example
Unhandled Exception: MissingPluginException(No implementation found for method create on channel agora_rtc_engine)

Hello @AlexXmoe, can you print the flutter doctor? And which version of agora_rtc_engine do you use?

i am using the latest version 5.1.0
flutter doctor
[√] Flutter (Channel stable, 2.10.5, on Microsoft Windows [Version 10.0.19044.1645], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.2)
[√] Android Studio (version 2021.1)
[√] Connected device (2 available)
[√] HTTP Host Availability
• No issues found!

It seems it's duplicated issue https://github.com/AgoraIO/Agora-Flutter-SDK/issues/659

Duplicated. Pls keep track here https://github.com/AgoraIO/Agora-Flutter-SDK/issues/659


Feat/stateful arbitrator

Another restructuring of the API. Now the 3 base level directories in src/ are contractWrappers, abstractWrappers and resourceWrappers. Moved to a directory based structure (i.e. abstractWrappers/arbitrator/index.js instead of abstractWrappers/arbitrator.js).

Arbitrator api now stores the contract instance so that arbitratorAddress never has to be passed. Because of this the functionality is slightly different. Need to pass an arbitrator address when initializing the Kleros api. Or else call kleros.arbitrator.setArbitrator before use of the arbitrator api. We cannot load the contract in the constructor so the address just gets set and then when the first call is made it will check to see if it is loaded and load contractInstance. (There might be an easier way, open to suggestions)

expose contract api's via kleros.contracts... instead of having pinakion and blockhashrng be initialized root level api's.  Only initialized api's are arbitrator and arbitrableContracts

arbitrableContract -> arbitrableContracts throughout the codebase

Pull Request Test Coverage Report for Build 569

83 of 103 (80.58%) changed or added relevant lines in 8 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+2.3%) to 56.532%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/contractWrappers/arbitrator/Arbitrator.js
16
17
94.12%

src/contractWrappers/arbitrator/KlerosPOC/index.js
29
33
87.88%

src/resourceWrappers/Notifications/index.js
12
17
70.59%

src/resourceWrappers/Disputes/index.js
8
18
44.44%

Totals

Change from base Build 566:
2.3%

Covered Lines:
544

Relevant Lines:
895

💛  - Coveralls

I don’t think it’s wrong to use it internally, It’s “private usage”.
On Thu, Mar 29, 2018 at 3:40 PM Sam Vitello<EMAIL_ADDRESS>wrote:

@satello commented on this pull request.
In src/contractWrappers/arbitrator/Arbitrator.js
https://github.com/kleros/kleros-api/pull/114#discussion_r178199893:

}

}

/**

Set a new arbitrator

@param {string} contractAddress - The address of the contract

@param {object} artifact - Contract artifact to use to load contract

@returns {object} contractInstance object

*/
setArbitrator = async (contractAddress, artifact) => {
this.contractAddress = contractAddress || this.contractAddress
this.artifact = artifact || this.artifact
return this._load()
}

getContractInstance = () => this.contractInstance

There is one but its private at the moment this._contractWrapper. It kind
of defeats the purpose of the delegation if its public, as then all those
methods can just be called via arbitrator.contactWrapper...., which maybe
isn't a bad alternative to trying to be tricky with the delegation, but
does require the consumer to have a deeper knowledge of where their calls
live
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/kleros/kleros-api/pull/114#discussion_r178199893, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ASRQaLyykeWsUegGVrgiCsgkbwWM-HMpks5tjWLXgaJpZM4S_leA
.


Ground truth materials

2 freely available possible datasets have already been identified, more are welcome:

Mozilla Common Voice https://voice.mozilla.org/en
CC-0 license
Openslr resources http://openslr.org/resources.php
Each resource has own license ranging from "unrestricted" to "CC-BY-NC-ND 3.0"
Remark: Some of the Openslr data is likely to have been used for training various STT systems, as such it may not always be the most fair indicator

Open questions:

Which ground truth materials might we use for evaluating vendors' solutions? Will we build our own dataset? Or both?
How will we include these resources into our product?

Suggestion: the user of our benchmark should have the choice of which data to use (with a sensible default, following the 'Extensibility', 'Specific over generic' and 'Pragmatism' principles).


Discuss at Collaborator Summit US

See https://github.com/nodejs/summit/issues/36

When is the summit? It's a bit short notice for travel plans.

It is at the end of Node Interactive US. Hope you can make it!
http://events.linuxfoundation.org/events/node-interactive

Thanks - I'm afraid I definitely won't be able to attend.

I didn't buy a ticket, but I do live in Austin.

I'll be in Austin on the 21st and 22nd and can meet up for a drink - just won't be there the following week :-)

I don't think you'll need a NI ticket to attend the collaborator summit, active participants in existing efforts should be able to just show up for that, it's the day following the formal program.

@ljharb let's grab a drink while you're here... lots of good meetup spots around here. I'm happy to make suggestions that are convenient to wherever you're staying.
@rvagg - good to know, thanks!

I won't be in Austin, but @joshgav who I work with will be there and can represent me.

I can't make it either, sadly.

Just ran into @joshgav at NINA. Curious if anyone else here wants to chat about version management while several are gathered in one spot... and if so, when and where. I know @ljharb, @jasongin, and @marcelklehr said they couldn't make it.
cc: @TheAlphaNerd @williamkapke @tjwebb

How about tomorrow early afternoon, say 1:30pm? If that's too late how about today (Wednesday) at about 6pm?

cc @digitalinfinity

It looks like we're going to have a breakout session for this.... not sure about time yet though. @TheAlphaNerd?

Notes from our discussion at #11. Thanks all!


🐞 [Bug]: All the links in the grid3_client package are outdated

Is there an existing issue for this?

[X] I have searched the existing issues

which package/s did you face the problem with?
grid_client
What happened?
All the links in the grid3_client package are outdated, and the steps are hard to follow and very unclear.
https://www.npmjs.com/package/grid3_client
Steps To Reproduce
No response
which network/s did you face the problem on?
Dev, Main
version
2.1.0-rc2
Twin ID/s
No response
Node ID/s
No response
Farm ID/s
No response
Contract ID/s
No response
Relevant screenshots/screen records

Relevant log output
.

update docs
create a new issue to add workflow


Better error reporting for filepath resolution

What's changed?

Add assertion to ensure we resolve to non-empty path result, instead of silently returning None.
Add more descriptive error messaging to the get_representation_path function
Misc. code fixes.

Brilliant, excellent work everyone!


New api does not lookup estimation procedure in task type

http://www.openml.org/api_new/v1/tasktype/1
This retrieves the task type, however, in the estimation procedure the values are not filled properly:
<oml:input name="estimation_procedure">
oml:estimation_procedure
oml:type[LOOKUP:estimation_procedure.type]</oml:type>
oml:data_splits_url
[CONSTANT:base_url]api_splits/get/[TASK:id]/Task_[TASK:id]_splits.arff
</oml:data_splits_url>
<oml:parameter name="number_repeats">[LOOKUP:estimation_procedure.repeats]</oml:parameter>
<oml:parameter name="number_folds">[LOOKUP:estimation_procedure.folds]</oml:parameter>
<oml:parameter name="percentage">[LOOKUP:estimation_procedure.percentage]</oml:parameter>
<oml:parameter name="stratified_sampling">[LOOKUP:estimation_procedure.stratified_sampling]</oml:parameter>
</oml:estimation_procedure>
</oml:input>

Dear Jakob,
This is the task type you're looking at, and serves as a template for the
tasks. If you want to see the values filled in, please see:
http://www.openml.org/api_new/v1/task/1 (or change 1 to your task number)
Cheers,
Jan
2015-10-08 18:30 GMT+02:00 Jakub Šmíd<EMAIL_ADDRESS>
http://www.openml.org/api_new/v1/tasktype/1
This retrieves the task type, however, in the estimation procedure the
values are not filled properly:
oml:estimation_procedure
oml:type[LOOKUP:estimation_procedure.type]/oml:type
oml:data_splits_url
[CONSTANT:base_url]api_splits/get/[TASK:id]/Task_[TASK:id]_splits.arff
/oml:data_splits_url
[LOOKUP:estimation_procedure.repeats]/oml:parameter
[LOOKUP:estimation_procedure.folds]/oml:parameter
[LOOKUP:estimation_procedure.percentage]/oml:parameter
[LOOKUP:estimation_procedure.stratified_sampling]/oml:parameter
/oml:estimation_procedure
/oml:input
—
Reply to this email directly or view it on GitHub
https://github.com/openml/website/issues/29.

Hi Jan,
thanks for the message.
However, there is currently no task type id returned, there is just something like:
[CONSTANT:base_url]api_splits/get/[TASK:id]/Task_[TASK:id]_splits.arff returned, so no means how to perform the lookup.

Oh, I see it now. Thanks for the comment. I thought that TaskType specifies the estimation procedure, but it just specifies that you need to specify one when creating task of that type.

Maybe it would be a nice thing to rename the Estimation procedure in task type to estimation procedure template, so its clear.

Now, there are two entities in oml:
estimation_procedure and estimationprocedure. Its not clear by looking at them which one is a template. Hence the confusion.


Post-Screening: Downloading Excel-file does not work anymore?

I am conducting a review in ASReview and I do not manage to download the results as an excel-File (CSV-file does work).
Before, I had no problems with downloading an excel-file from ASreview,
I thought it might have been because of the big dataset (14.649 articles), but earlier on in the process I downloaded an excel-File already and then it worked. I also waited to see if it just needed time (this was not the case). I also closed ASreview and restarted the computer, did not work either. Another explanation might be that I used the review history button and I changed some classifications because of a reliability analysis I conducted with a colleage (I included articles I first excluded and the other way around). I do not think that is the reason though?
I use Windows and ASreview 0.16.

Hope you can help out!

Dear @AnoukTicheloven, thank you for reporting this issue to us. Luckily you were able to save the .csv file which you can also import in Excel if you would like. But, the excel export should work, so let's do some debugging:
Could you first try to remove the temorary files. Can you then import your exported .csv file into a new project. And can you then try to export an excel file? Please wait for at least 10 minutes since you have a large database (it shoulnd't take this long, but just to be sure). If it still does not work, can you then copy-paste all lines in the CMD as a code block in a reply?
So, all the text in this CMD:

And,
This is a code block

Thanks!

Thank you, after removing the temporary files it worked!

Thanks for letting us know!


Incorrect player state after stall for some medias

For some medias (e.g. SWI helicopter video: https://srgplayerswivod-vh.akamaihd.net/i/41981254/,video,.mp4.csmil/master.m3u8), resuming after the player stalled does not happen well, and the playback state notification to playing is not received. Accordingly, clients will not reflect the current player state.
h2. How to reproduce

Play the above URL with the demo
When the media is playing, use Airplane mode to disconnect the network, then seek to a non-buffered location. The player stalls
Restore the connection. The sound resumes (even subtitles if available), but the video does not. If you wait sufficiently long, video will restart, but not in sync with the audio

If you try the same with the standard iOS player in the demo, the player restarts at the beginning.
For other medias (e.g. Apple demo streams), the behavior for both players is correct, i.e. playback resumes where it was stuck.

With the same SWI media, we have an incorrect behavior if using the seek bar to get to the end (the state is incorrect). With other streams, the behavior is correct.
Is it an encoding issue? Can we improve the situation on our side?

The end-of-stream behavior is fixed by #44.
Tested on iOS 11, the behavior is now correct. This issue can therefore be closed.


Adding Scan Guidance APIs to Graph Explorer Sample Queries Section

Thanks for creating this @vanshisingh. Any chance you can resolve the merge conflicts before we merge this in?

Hi @andrueastman , I have resolved the conflict


[Viewer] Add picture in picture support

We need to have the RTS Video player support and render picture in picture mode. This is a native browser capability, as described here -
https://developer.mozilla.org/en-US/docs/Web/API/Picture-in-Picture_API
A/Cs

[ ] Enabled by default, can be turned off by passing a query param (use the same one as the dashboard)
[ ] If the browser supports picture in picture mode, show the icon. Otherwise hide the icon in the control bar
[ ] For Icons, use this repo https://github.com/millicast/icons/blob/main/icons/pip-fill.svg (active) and https://github.com/millicast/icons/blob/main/icons/pip.svg (inactive)
[ ] When pip mode is active, show this text in the main view - "Showing in Picture in Picture Mode"

Vuejs reference: https://github.com/millicast/vue-viewer-plugin


fix for c++ syntax highlighting

If this is the right fix, then removing codemirror-mode is actually the way to do it. I think there should be no reason to have codemirror_mode defined and the same value as mimetype.

Hi,
This post seems to suggest it could be a bug with CodeMirror:
http://stackoverflow.com/a/19872722/4343686 http://stackoverflow.com/a/19872722/4343686
I think ‘codemirror_mode’ probably should be defined in clingkernel.py. There is code like this in jupyter’s ‘notebook/static/notebook/js/notebook.js’- without the mode setting the default would be unhighlighted text- I don’t see where the mime type comes in.
this.events.on('kernel_ready.Kernel', function(event, data) {
var kinfo = data.kernel.info_reply;
if (!kinfo.language_info) {
delete that.metadata.language_info;
return;
}
var langinfo = kinfo.language_info;
that.metadata.language_info = langinfo;
// Mode 'null' should be plain, unhighlighted text.
var cm_mode = langinfo.codemirror_mode || langinfo.name || 'null';
that.set_codemirror_mode(cm_mode);
});
Admittedly, I have not spent much time looking at the javascript- there don’t appear to be docs for most of the stuff it does. Maybe the jupyter authors have a better answer.
-a

On 9 Sep 2015, at 6:24 p.m., Min RK<EMAIL_ADDRESS>wrote:
If this is the right fix, then removing codemirror-mode is actually the way to do it. I think there should be no reason to have codemirror_mode defined and the same value as mimetype.
—
Reply to this email directly or view it on GitHub https://github.com/minrk/clingkernel/pull/11#issuecomment-138982934.

@aonghus thanks, I was remembering the mime-type logic in the text editor which looks at mime-type, not the notebook UI, which doesn't.


Minigrid: Update DictObservationSpaceWrapper to only modify the observation space "mission" entry or write another wrapper to do so

It really bothers me that the minigrid wrapper for tokenising the observations also modifies the observations space for images. These should be untied.
class DictObservationSpaceWrapper(ObservationWrapper):
    """
    Transforms the observation space (that has a textual component) to a fully numerical observation space,
    where the textual instructions are replaced by arrays representing the indices of each word in a fixed vocabulary.

    This wrapper is not applicable to BabyAI environments, given that these have their own language component.

    Example:
        >>> import miniworld
        >>> import gymnasium as gym
        >>> import matplotlib.pyplot as plt
        >>> from minigrid.wrappers import DictObservationSpaceWrapper
        >>> env = gym.make("MiniGrid-LavaCrossingS11N5-v0")
        >>> obs, _ = env.reset()
        >>> obs['mission']
        'avoid the lava and get to the green goal square'
        >>> env_obs = DictObservationSpaceWrapper(env)
        >>> obs, _ = env_obs.reset()
        >>> obs['mission'][:10]
        [19, 31, 17, 36, 20, 38, 31, 2, 15, 35]
    """

    def __init__(self, env, max_words_in_mission=50, word_dict=None):
        """
        max_words_in_mission is the length of the array to represent a mission, value 0 for missing words
        word_dict is a dictionary of words to use (keys=words, values=indices from 1 to < max_words_in_mission),
                  if None, use the Minigrid language
        """
        super().__init__(env)

        if word_dict is None:
            word_dict = self.get_minigrid_words()

        self.max_words_in_mission = max_words_in_mission
        self.word_dict = word_dict

        image_observation_space = spaces.Box(
            low=0,
            high=255,
            shape=(self.agent_view_size, self.agent_view_size, 3),
            dtype="uint8",
        )
        self.observation_space = spaces.Dict(
            {
                "image": image_observation_space,
                "direction": spaces.Discrete(4),
                "mission": spaces.MultiDiscrete(
                    [len(self.word_dict.keys())] * max_words_in_mission
                ),
            }
        )

    @staticmethod
    def get_minigrid_words():
        colors = ["red", "green", "blue", "yellow", "purple", "grey"]
        objects = [
            "unseen",
            "empty",
            "wall",
            "floor",
            "box",
            "key",
            "ball",
            "door",
            "goal",
            "agent",
            "lava",
        ]

        verbs = [
            "pick",
            "avoid",
            "get",
            "find",
            "put",
            "use",
            "open",
            "go",
            "fetch",
            "reach",
            "unlock",
            "traverse",
        ]

        extra_words = [
            "up",
            "the",
            "a",
            "at",
            ",",
            "square",
            "and",
            "then",
            "to",
            "of",
            "rooms",
            "near",
            "opening",
            "must",
            "you",
            "matching",
            "end",
            "hallway",
            "object",
            "from",
            "room",
        ]

        all_words = colors + objects + verbs + extra_words
        assert len(all_words) == len(set(all_words))
        return {word: i for i, word in enumerate(all_words)}

    def string_to_indices(self, string, offset=1):
        """
        Convert a string to a list of indices.
        """
        indices = []
        # adding space before and after commas
        string = string.replace(",", " , ")
        for word in string.split():
            if word in self.word_dict.keys():
                indices.append(self.word_dict[word] + offset)
            else:
                raise ValueError(f"Unknown word: {word}")
        return indices

    def observation(self, obs):
        obs["mission"] = self.string_to_indices(obs["mission"])
        assert len(obs["mission"]) < self.max_words_in_mission
        obs["mission"] += [0] * (self.max_words_in_mission - len(obs["mission"]))

        return obs

done https://github.com/Farama-Foundation/Minigrid/pull/345


yj: 5.0.0 -> 5.1.0

Description of changes
Changelog: https://github.com/sclevine/yj/releases/tag/v5.1.0
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 214903 run on aarch64-darwin 1

1 package built:

yj


Toolbar > Debug | bug mouse overlay

Godot version
4.0.rc5
System information
Win10, AMD Radeon 6570, 15.201.1151.1008, GLES3
Issue description
https://user-images.githubusercontent.com/54606139/221365890-7bb75953-8f31-47b5-a412-19d7c2774a4d.mp4
Steps to reproduce
https://user-images.githubusercontent.com/54606139/221365890-7bb75953-8f31-47b5-a412-19d7c2774a4d.mp4
Minimal reproduction project
N/A

This may have been reported before, but indeed. Tooltips break hover events on controls (and this is not the only case of that).

Not strictly related to the editor, but adding a label anyway to make it easier to find.

Good day. I won't create another issue because the situations are very similar.
Situation:
In the Project settings, we set the "WINDOWED" mode (mark 1).
We hover the mouse over any component that shows a tooltip (mark 2).
When launching the program through the code, we set the "MAXIMIZED" mode or any "FULLSCREEN" mode (mark 3).
We get a hanging tooltip on our screen, which is removed via ALT+TAB (mark 4).
Sometimes it's unpleasant.

Bisecting this issue shows that it got introduced in #72104

CC @bruvzg

I can confirm the issue still being present in both Godot 4.0.3 stable and 4.1 Beta3.

Godot v4.1.rc2 - Windows 10.0.19045 - Vulkan (Compatibility) - GeForce GTX 550 Ti () - Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz (4 Threads)
On the Anchor presets popup.
Mouse clicking:

Outside a tooltip.

Only closes the tooltip.

On a tooltip

Closes the tooltip
and sends the mouse click to the button under the mouse pointer.

https://github.com/godotengine/godot/assets/13420573/be76fe4b-b2ea-4206-82a7-7adf52e12694
If a button's tooltip is visible when another button is clicked.
Then, the first click on the new button only hides the tooltip.
A second click is required, but if it's too slow and the new button's tooltip appeared.
Then, the second click hid the new button's tooltip.
A third click is required to click the button.
It's likely that the second click is slow because it was unexpected that the first click didn't click the button.
https://github.com/godotengine/godot/assets/13420573/0c246568-bbc0-4b57-a884-e8a258c621b0
Expected
The buttons shouldn't be blocked by a tooltip.
And the tooltips should probably update as soon as the mouse is moved to a new button.
Alternative to a floating tooltip
Instead of a floating tooltip that hides the buttons behind it.

Maybe the anchor presets popup could have an empty text row,
that shows the current tooltip text when the mouse is over a button.
If implemented, then it also could be added to the popup:
Sizing settings for children of a Container node.

The Anchor presets button Set to Current Ratio
and the Sizing settings for children popups check boxes.
Might still need the floating tooltips, since the text is wider than the popup widths.

The problem remains version 4.1, but a little different
https://github.com/godotengine/godot/assets/54606139/193e29c7-2c83-47d0-816b-6fbc62f3882d

The problem still remained in 4.3 dev 5

Fixed in 4.3.beta2


I can't add padding to MGButton

I need to added bottom padding to MGSwipeButton.h
Can you added padding to MGButton when it has background?

I have added topMargin and bottomMargin properties in the new release 1.5.4. Set a bottomMargin value to fix your padding in the image ;)


Expense View UI Creation

Is your feature request related to a problem? Please describe.
The current implementation of the Expense view does not provide a structured way for users to manage their expenses. There’s no easy way to add, edit, delete, or view expenses in an organized manner.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Create a UI for the Expense view that includes a form for entering expense details, a table/grid for viewing all expenses, and filters for sorting and searching expenses. The interface should be intuitive and provide clear validation feedback.
Describe alternatives you've considered
Considered using a single-page layout without filtering options, but it may hinder users with large datasets from efficiently managing their expenses.

Approved

Approved


[Enhancement] prune duplicated columns in partition expr

What type of PR is this：

[ ] bug
[ ] feature
[x] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Refers to: https://github.com/StarRocks/starrocks/pull/7486
To fix following plan. As you can see there are two equal join conjuncts, and one side are duplicated columns.
And fragment 6 output are shuffled by parttion expr 1: p_partkey, 1: p_partkey . It can be optimized to 1:p_partkey
|   27:HASH JOIN                                                                                |
|   |  join op: INNER JOIN (PARTITIONED)                                                                                |
|   |  equal join conjunct: [17: ps_partkey, INT, true] = [1: p_partkey, INT, true]                                                                       |
|   |  equal join conjunct: [29: ps_partkey, INT, true] = [1: p_partkey, INT, true]                                                                       |
|   |  output columns: 1, 3, 18                                                                                |
|   |  cardinality: 80000000                                                                                |
|   |  column statistics:                                                                                |
|   |  * p_partkey-->[-Infinity, Infinity, 0.0, 1.0, 1.0] UNKNOWN                                                                                |
|   |  * p_mfgr-->[-Infinity, Infinity, 0.0, 1.0, 1.0] UNKNOWN                                                                                |
|   |  * ps_partkey-->[-Infinity, Infinity, 0.0, 1.0, 1.0] UNKNOWN                                                                                |
|   |  * ps_suppkey-->[-Infinity, Infinity, 0.0, 1.0, 1.0] UNKNOWN                                                                                |
|   |  * ps_partkey-->[-Infinity, Infinity, 0.0, 1.0, 1.0] UNKNOWN                                                                                |
|   |                                                                                |
|   |----26:EXCHANGE                                                                                |
|   |       cardinality: 2500000                                                                                |
|   |                                                                                |
|   23:EXCHANGE                                                                                |
|      cardinality: 80000000                                                                                |
|                                                                                |
| PLAN FRAGMENT 6(F15)                                                                                |
|                                                                                |
|   Input Partition: RANDOM                                                                                |
|   OutPut Partition: HASH_PARTITIONED: 1: p_partkey, 1: p_partkey                                                                                |
|   OutPut Exchange Id: 26                                                                                |
|                                                                                |

And after pruning, we get following plan, bonus with a global runtime filter
|   26:HASH JOIN                                                                                |
|   |  join op: INNER JOIN (PARTITIONED)                                                                                |
|   |  equal join conjunct: [17: ps_partkey, INT, true] = [1: p_partkey, INT, true]                                                                       |
|   |  equal join conjunct: [29: ps_partkey, INT, true] = [1: p_partkey, INT, true]                                                                       |
|   |  build runtime filters:                                                                                |
|   |  - filter_id = 4, build_expr = (1: p_partkey), remote = true                                                                                |
|   |  output columns: 1, 3, 18                                                                                |
|   |  cardinality: 64800000                                                                                |
|   |  column statistics:                                                                                |
|   |  * p_partkey-->[-Infinity, Infinity, 0.0, 1.0, 1.0] UNKNOWN                                                                                |
|   |  * p_mfgr-->[-Infinity, Infinity, 0.0, 1.0, 1.0] UNKNOWN                                                                                |
|   |  * ps_partkey-->[-Infinity, Infinity, 0.0, 1.0, 1.0] UNKNOWN                                                                                |
|   |  * ps_suppkey-->[-Infinity, Infinity, 0.0, 1.0, 1.0] UNKNOWN                                                                                |
|   |  * ps_partkey-->[-Infinity, Infinity, 0.0, 1.0, 1.0] UNKNOWN                                                                                |
|   |                                                                                |
|   |----25:EXCHANGE                                                                                |
|   |       cardinality: 2500000                                                                                |
|   |                                                                                |
|   22:EXCHANGE                                                                                |
|      cardinality: 64800000                                                                                |
|                                                                                |
| PLAN FRAGMENT 6(F13)                                                                                |
|                                                                                |
|   Input Partition: RANDOM                                                                                |
|   OutPut Partition: HASH_PARTITIONED: 1: p_partkey                                                                                |
|   OutPut Exchange Id: 25                                                                                |

[FE PR Coverage Check]
:heart_eyes: pass : 8 / 8 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/physical/PruneShuffleColumnRule.java
8
8
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 8 / 8 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/physical/PruneShuffleColumnRule.java
8
8
100.00%
[]

@Youngwb I have not thought clearly about this PR.
there might be degraded case. For example [a,a] = [c,d]
assume a has 10 ndv, c has 1 ndv, d has 20 ndv. if we select c as partition expression, there is a hot partition(we get 1 ndv). but if we use [c,d] as partition expression, we get 20 ndv.


Dynamic Steps

Hi,
First of all this is an awesome plugin :)
Is it possible to dynamically change the steps which are shown to the user for example we are looking to do this with around 15 steps in total but the user may only select 3 areas to fill out so ideally we would like them to see just 4 steps so that the process does not look too long.

We ask the user for their contact details
We ask the user to select some categories they want to complete
Depending on select in 2) we will show up to 15 sub steps
Form Finish - Completion screen.

Any pointers on this would be much appreciated.
Thanks Aaron

Dynamically changing steps is not supported, but you can skip them.

Thanks for the reply Christian, I'll have a think to see if there is something else I can do to reduce the steps or just not show them the main problem is there could be 40+ steps which gets reduced down to around 4/5 depending on users initial selection so I need to show a reduced list so users don't get put off with the large qty of steps.
Thanks again Aaron

You could try customizing the step list rendering to hide skipped steps, but 40 steps sounds pretty much. I hope there's no case where a user needs to face them all. :smirk:
Alternatively you could create several more specific flows and prepend a simple form to let the user choose which one to use.


Post on experience of Advanced Python course

Kinda like what Richard did for the RSE course, under the posts/ folder. Just what you learned, experiences, thoughts on the teaching, any new insights or tidbits of knowledge, etc.

@signekb over to you on the advanced course doc.


Tiddly Desktop

Hi - thanks for this plugin, it's really great.
I have ran into an issue when using Tiddly Desktop however (0.0.8 (8)).  If I create a tiddler and add a checkbox using [ ], on trying to save the tiddler, the following error message is produced:
"Uncaught TypeError: Cannot read property '0' of undefined".
I am not sure if this is a tw5-checklist issue or a Tiddly Desktop issue as I do not have this problem using Tiddly Fox or in the beta testing of (what was) the TWEdit iOS app.

Can you please send me the full body of the tiddler causing the issue?
Also, what version of tw5-checklist are you using?

Hi Tony
Any tiddler that I try to use [ ] in seems to have a problem.  Basic example attached which works fine in Firefox but causes problems in TiddlyDesktop if I import it and then try to access it.
I'm using version 0.0.13 of tw5-checklist.
My TiddlyWiki includes a few other plugins which maybe you need to be aware of:
GSD5, GSD5 Tickler plugin, Highlight.js, KaTeX, Markdown parser.
Example.tid.zip

Same issue here.  The plugin works great in a browser but crashes in TiddlyDesktop.  It would be great to fix it.  I really like the plugin.  I'm using version 0.0.14.

I unfortunately do not have the time or knowledge to debug this in TiddlyDesktop. Pull requests are welcome though!

Update on this.
In TiddlyDesktop 0.0.13 & checklist 0.0.14 this no longer happens.
In some scenarios you can lose focus so ticking the box doesn't work, but that is a different issue and not a Checklist issue per se.