Activate the QuestionnaireResponseValidatorDstu3Test again and add tests for missing required items

Remove the Ignore annotation from the QuestionnaireResponseValidatorDstu3Test.
Add tests for handling of missing required items in a QuestionnaireResponse for both DSTU3 and R4.

Coverage decreased (-0.009%) to 73.008% when pulling d01b4d1c9d24f276f0e6152933aba8d53d9dee14 on hdconradi:required-answer-can-be-missing-when-in-progress into 9fd9d196785c7e8bed5c572728341079fa959d17 on jamesagnew:master.


error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Connect Failed     at new createStatusError (/home/hanwenshuo/caliper/node_modules/grpc/src/client.js:64:15)     at /home/hanwenshuo/caliper/node_modules/grpc/src/client.js:583:15

When I tested the merbles example with caliper, I tried to replace its network configuration with two organizations, each with three peers. Or three organizations, each organization has two peers, but there is such a mistake when starting the network.In my previous tests, two organizations and four nodes could run normally.
the error is:
Creating orderer.example.com ... done
bric-go.json -n ./fabric-go.json
TAP version 13
Creating couchdb.peer1.org3.example.com ... done
Creating couchdb.peer0.org3.example.com ... done
Creating peer0.org1.example.com ... done
Creating peer1.org1.example.com ... done
Creating couchdb.peer1.org2.example.com ...
Creating couchdb.peer0.org1.example.com ...
Creating ca.org2.example.com ...
Creating ca.org3.example.com ...
Creating couchdb.peer1.org3.example.com ...
Creating couchdb.peer0.org3.example.com ...
Creating couchdb.peer1.org1.example.com ...
Creating orderer.example.com ...
Creating ca.org1.example.com ...
Creating peer1.org2.example.com ...
Creating peer0.org2.example.com ...
Creating peer0.org1.example.com ...
Creating peer1.org3.example.com ...
Creating peer0.org3.example.com ...
Creating peer1.org1.example.com ...
create mychannel......
ok 1 created mychannel successfully
Sleep 5s......
Join channel......
join mychannel
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Connect Failed
at new createStatusError (/home/hanwenshuo/caliper/node_modules/grpc/src/client.js:64:15)
at /home/hanwenshuo/caliper/node_modules/grpc/src/client.js:583:15
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Connect Failed
at new createStatusError (/home/hanwenshuo/caliper/node_modules/grpc/src/client.js:64:15)
at /home/hanwenshuo/caliper/node_modules/grpc/src/client.js:583:15
not ok 2 TypeError: Cannot read property 'stack' of undefined
operator: error
expected: |-
  undefined
actual: |-
  [TypeError: Cannot read property 'stack' of undefined]
at: process.onetime (/home/hanwenshuo/caliper/node_modules/tape-promise/node_modules/onetime/index.js:22:12)
stack: |-
  TypeError: Cannot read property 'stack' of undefined
      at channels.reduce.then.catch (/home/hanwenshuo/caliper/src/fabric/join-channel.js:215:56)
      at <anonymous>

...
1..2
tests 2
pass  1
fail  1
this is my fabric-go.json
{
"fabric": {
"cryptodir": "network/fabric/config/crypto-config",
"network": {
"orderer": {
"url": "grpcs://localhost:7050",
"mspid": "OrdererMSP",
"domain": "example.com",
"user": {
"key"<EMAIL_ADDRESS>"cert": "network/fabric/config/crypto-config/ordererOrganizations/example.com/users/Admin<EMAIL_ADDRESS>},
"server-hostname": "orderer.example.com",
"tls_cacerts": "network/fabric/config/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt"
},
"org1": {
"name": "peerOrg1",
"mspid": "Org1MSP",
"domain": "org1.example.com",
"user": {
"key"<EMAIL_ADDRESS>"cert": "network/fabric/config/crypto-config/peerOrganizations/org1.example.com/users/Admin<EMAIL_ADDRESS>},
"ca": {
"url": "https://localhost:7054",
"name": "ca-org1"
},
"peer1": {
"requests": "grpcs://localhost:7051",
"events": "grpcs://localhost:7053",
"server-hostname": "peer0.org1.example.com",
"tls_cacerts": "network/fabric/config/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
},
"peer2": {
"requests": "grpcs://localhost:7057",
"events": "grpcs://localhost:7059",
"server-hostname": "peer1.org1.example.com",
"tls_cacerts": "network/fabric/config/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt"
}
},
"org2": {
"name": "peerOrg2",
"mspid": "Org2MSP",
"domain": "org2.example.com",
"ca": {
"url": "https://localhost:8054",
"name": "ca-org2"
},
"peer1": {
"requests": "grpcs://localhost:8051",
"events": "grpcs://localhost:8053",
"server-hostname": "peer0.org2.example.com",
"tls_cacerts": "network/fabric/config/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt"
},
"peer2": {
"requests": "grpcs://localhost:8057",
"events": "grpcs://localhost:8059",
"server-hostname": "peer1.org2.example.com",
"tls_cacerts": "network/fabric/config/crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/tls/ca.crt"
}
},
"org3": {
"name": "peerOrg3",
"mspid": "Org3MSP",
"domain": "org3.example.com",
"ca": {
"url": "https://localhost:9054",
"name": "ca-org3"
},
"peer1": {
"requests": "grpcs://localhost:9051",
"events": "grpcs://localhost:9053",
"server-hostname": "peer0.org3.example.com",
"tls_cacerts": "network/fabric/config/crypto-config/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/ca.crt"
},
"peer2": {
"requests": "grpcs://localhost:9057",
"events": "grpcs://localhost:9059",
"server-hostname": "peer1.org3.example.com",
"tls_cacerts": "network/fabric/config/crypto-config/peerOrganizations/org3.example.com/peers/peer1.org3.example.com/tls/ca.crt"
}
}
},
"channel": [
{
"name": "mychannel",
"config": "network/fabric/config/mychannel.tx",
"organizations": ["org1", "org2", "org3"],
"deployed": false
}
],
"chaincodes": [{"id": "marbles", "path": "contract/fabric/marbles/go", "language":"golang", "version": "v1", "channel": "mychannel", "metadataPath": "src/contract/fabric/marbles/go/metadata"}],
"endorsement-policy": {
"identities": [
{
"role": {
"name": "member",
"mspId": "Org1MSP"
}
},
{
"role": {
"name": "member",
"mspId": "Org2MSP"
}
},
{
"role": {
"name": "admin",
"mspId": "Org1MSP"
}
}
],
"policy": { "2-of": [{"signed-by": 0}, {"signed-by": 1}]}
},
"context": {
"init": "mychannel",
"read": "mychannel",
"transfer": "mychannel",
"query": "mychannel"
}
},
"info" : {
"Version": "1.1.0",
"Size": "6 Peers",
"Orderer": "Solo",
"Distribution": "Single Host"
}
}
this is my config-fabric-go.json
{
"blockchain": {
"type": "fabric",
"config": "benchmark/marbletest/fabric-go.json"
},
"command" : {
"start": "docker-compose -f network/fabric/3-org-2-peer/docker-compose-tls.yaml up -d",
"end" : "docker-compose -f network/fabric/3-org-2-peer/docker-compose-tls.yaml down;docker rm $(docker ps -aq);docker rmi $(docker images dev* -q)"
},
"test": {
"clients": {
"type": "local",
"number": 5
},
"rounds": [{
"label" : "init",
"txNumber" : [500, 500, 500, 500, 500],
"rateControl" : [{"type": "fixed-rate", "opts": {"tps" : 25}}, {"type": "fixed-rate", "opts": {"tps" : 35}}, {"type": "fixed-rate", "opts": {"tps" : 45}}, {"type": "fixed-rate", "opts": {"tps" : 55}}, {"type": "fixed-rate", "opts": {"tps" : 65}}],
"callback" : "benchmark/marbletest/init.js"
},
{
"label" : "read",
"txNumber" : [500, 500, 500, 500, 500],
"rateControl" : [{"type": "fixed-rate", "opts": {"tps" : 50}}, {"type": "fixed-rate", "opts": {"tps" : 60}}, {"type": "fixed-rate", "opts": {"tps" : 70}}, {"type": "fixed-rate", "opts": {"tps" : 80}}, {"type": "fixed-rate", "opts": {"tps" : 90}}],
"callback" : "benchmark/marbletest/read.js"
},
{
"label" : "transfer",
"txNumber" : [500, 500, 500, 500, 500],
"rateControl" : [{"type": "fixed-rate", "opts": {"tps" : 25}}, {"type": "fixed-rate", "opts": {"tps" : 35}}, {"type": "fixed-rate", "opts": {"tps" : 45}}, {"type": "fixed-rate", "opts": {"tps" : 55}}, {"type": "fixed-rate", "opts": {"tps" : 65}}],
"callback" : "benchmark/marbletest/transfer.js"
},
{
"label" : "query",
"txNumber" : [20, 20, 20, 20, 20],
"rateControl" : [{"type": "fixed-rate", "opts": {"tps" : 4}}, {"type": "fixed-rate", "opts": {"tps" : 6}}, {"type": "fixed-rate", "opts": {"tps" : 8}}, {"type": "fixed-rate", "opts": {"tps" : 10}}, {"type": "fixed-rate", "opts": {"tps" : 12}}],
"callback" : "benchmark/marbletest/query.js"
}]
},
"monitor": {
"type": ["docker", "process"],
"docker":{
"name": ["all"]
},
"process": [
{
"command" : "node",
"arguments" : "local-client.js",
"multiOutput" : "avg"
}
],
"interval": 1
my Environment
ubuntu 14.04(64bit)
fabric 1.1.0
nodejs 8.11.4
docker 18.06
docker-compose 1.18.0
This is my first time to ask questions and look forward to a reply.

Have you solved your problem?I have the same problem

no，a person tell me “running many peer containers with couchDB is really resource demanding. In this case, the connection could be lost between the peer and its DB under high (or even smaller) load.
Try to spread your network among different machines and see if the error persists.”maybe you can have a try

In private, I discussed two nodes vx yangyang602112

@wenshuohan  @zsh122958  the problem is like the issue #112 , you can take a look at the issue.
one solution:

docker-compose -f network/fabric-v11/2-org-2-peer/docker-compose.yaml up -d in another shell
remove "start": "docker-compose -f network/fabric-v11/2-org-2-peer/docker-compose.yaml up -d", from config.json
3.node benchmark/simple/main.js

another solution:

change user to root user.

Thank you very much for solving the problem
Now the error is port occupancy let me set it up first
非常感谢您 问题解决啦
现在报错是端口占用 我先设置一下
<EMAIL_ADDRESS>From: houqinghui
Date: 2018-11-06 15:47
To: hyperledger/caliper
CC: zsh122958; Mention
Subject: Re: [hyperledger/caliper] error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (/home/hanwenshuo/caliper/node_modules/grpc/src/client.js:64:15) at /home/hanwenshuo/caliper/node_modules/grpc/src/client.js:583:15 (#204)
@wenshuohan @zsh122958 the problem is like the issue #112 , you can take a look at the issue.
one solution:
docker-compose -f network/fabric-v11/2-org-2-peer/docker-compose.yaml up -d in another shell
remove "start": "docker-compose -f network/fabric-v11/2-org-2-peer/docker-compose.yaml up -d", from config.json
3.node benchmark/simple/main.js
another solution:
change user to root user.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

我使用不同的节点放到不同的服务器上 还是不行
是否我该去了解一下网络配置方面的问题
我应该直接修修改docker-compose.yaml 文件么？
I can't put different nodes on different servers
Should I learn about network configuration
Should I modify the docker-composer. Yaml file directly?
<EMAIL_ADDRESS>From: houqinghui
Date: 2018-11-06 15:47
To: hyperledger/caliper
CC: zsh122958; Mention
Subject: Re: [hyperledger/caliper] error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (/home/hanwenshuo/caliper/node_modules/grpc/src/client.js:64:15) at /home/hanwenshuo/caliper/node_modules/grpc/src/client.js:583:15 (#204)
@wenshuohan @zsh122958 the problem is like the issue #112 , you can take a look at the issue.
one solution:
docker-compose -f network/fabric-v11/2-org-2-peer/docker-compose.yaml up -d in another shell
remove "start": "docker-compose -f network/fabric-v11/2-org-2-peer/docker-compose.yaml up -d", from config.json
3.node benchmark/simple/main.js
another solution:
change user to root user.
―
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@wenshuohan Can you share your callback implementation as a gist, so I can reproduce the problem? Also note, that your chaincode endorsement policy doesn't require a signature from Org3. I don't know whether this is intentional or not.

@aklenik my prolem is same as #205，when I look at the peer2.org1.example.com,there is a error:
2018-11-06 12:23:12.436 UTC [couchdb] handleRequest -> WARN 004 Retrying couchdb request in 125ms. Attempt:1  Error:Get http://couchdb.peer2.org1.example.com:5984/: dial tcp <IP_ADDRESS>:5984: getsockopt: connection refused
2018-11-06 12:23:12.562 UTC [couchdb] handleRequest -> WARN 005 Retrying couchdb request in 250ms. Attempt:2  Error:Get http://couchdb.peer2.org1.example.com:5984/: dial tcp <IP_ADDRESS>:5984: getsockopt: connection refused
2018-11-06 12:23:12.813 UTC [couchdb] handleRequest -> WARN 006 Retrying couchdb request in 500ms. Attempt:3  Error:Get http://couchdb.peer2.org1.example.com:5984/: dial tcp <IP_ADDRESS>:5984: getsockopt: connection refused
2018-11-06 12:23:13.314 UTC [couchdb] handleRequest -> WARN 007 Retrying couchdb request in 1s. Attempt:4  Error:Get http://couchdb.peer2.org1.example.com:5984/: dial tcp <IP_ADDRESS>:5984: getsockopt: connection refused
2018-11-06 12:23:14.315 UTC [couchdb] handleRequest -> WARN 008 Retrying couchdb request in 2s. Attempt:5  Error:Get http://couchdb.peer2.org1.example.com:5984/: dial tcp <IP_ADDRESS>:5984: getsockopt: connection refused

@wenshuohan Take a look at the CouchDB container logs, maybe it couldn't start properly. Or you have misconfigured the admin access to the DB in the peer settings.

@aklenik when I look at the couchdb.peer2.org1.example.com,there is the error:
[error] 2018-11-06T13:26:08.239858Z nonode@nohost emulator -------- Error in process <0.325.0> with exit value:
{database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,407}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,91}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,187}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,134}]}]}

@aklenik when I look at the couchdb.peer2.org1.example.com's docker logs,there is the warning：

WARNING: CouchDB is running in Admin Party mode.
This will allow anyone with access to the
CouchDB port to access your database. In
Docker's default configuration, this is
effectively any other container on the same
system.
Use "-e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password"
to set it in "docker run".

@wenshuohan This seems like a CouchDB issue. Try setting the admin user and password for both the CouchDB and peer containers, as suggested here to avoid Admin Party mode.
If it doesn't solve your problem, then try to set up the network on multiple machines (a 3 org network might be too much for a single machine), or try a Fabric specific forum (RocketChat, mailing list), because this is not Caliper-related.

@coulde you please tell me how to set the admin user and password for couchDB,I I try to modify docker-compose-tls.yaml ,add" - COUCHDB_USER=    - COUCHDB_PASSWORD= "to couchdb.peer0.org1.example.com's environment,but it Report errors

@wenshuohan You have to fill in the values you want to use:
- COUCHDB_USER=admin
- COUCHDB_PASSWORD=adminpw

And don't forget to set the (almost) same for the corresponding peer container:
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=<container_name>:<port>
- CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=admin
- CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=adminpw

@aklenik I do fill in the values：
couchdb.peer2.org2.example.com:
container_name: couchdb.peer2.org2.example.com
image: hyperledger/fabric-couchdb:x86_64-0.4.6
ports:
- 6986:5984
environment:
- COUCHDB_USER=admin
- COUCHDB_PASSWORD=adminpw
DB_URL: http://localhost:5984/member_db
And set same for the corresponding peer container：

CORE_LEDGER_STATE_STATEDATABASE=CouchDB
-CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb.peer2.org2.example.com:5984
- CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=admin
- CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=adminpw

but  it report errors：
docker-compose -f network/fabric/2-org-3-peer/docker-compose-tls.yaml up -d
yaml.parser.ParserError: while parsing a block collection
in "./network/fabric/2-org-3-peer/docker-compose-tls.yaml", line 109, column 7
expected , but found '?'
in "./network/fabric/2-org-3-peer/docker-compose-tls.yaml", line 111, column 7
[Transaction Info] - Submitted: 0 Succ: 0 Fail:0 Unfinished:0
unexpected error, Error: Command failed: docker-compose -f network/fabric/2-org-3-peer/docker-compose-tls.yaml up -d
yaml.parser.ParserError: while parsing a block collection
The line 109 is what i added：

COUCHDB_USER=admin
COUCHDB_PASSWORD=adminpw
and the line 111 is:
DB_URL: http://localhost:5984/member_db
I think this format is clash, but I don't know how to modify it

@aklenik    hey，This is my cofig files
https://gist.github.com/wenshuohan/7996452492060f05ad36e24a51c0dc7b

@aklenik I have removed all DB_URL: http://localhost:5984/member_db lines,the error still existence，docker logs peer2.org1.example.com has error：
2018-11-09 08:58:10.880 UTC [couchdb] handleRequest -> WARN 004 Retrying couchdb request in 125ms. Attempt:1  Error:Get http://couchdb.peer2.org1.example.com:5984/: dial tcp <IP_ADDRESS>:5984: getsockopt: connection refused 2018-11-09 08:58:11.013 UTC [couchdb] handleRequest -> WARN 005 Retrying couchdb request in 250ms. Attempt:2  Error:Get http://couchdb.peer2.org1.example.com:5984/: dial tcp <IP_ADDRESS>:5984: getsockopt: connection refused 2018-11-09 08:58:11.265 UTC [couchdb] handleRequest -> WARN 006 Retrying couchdb request in 500ms. Attempt:3  Error:Get http://couchdb.peer2.org1.example.com:5984/: dial tcp <IP_ADDRESS>:5984: getsockopt: connection refused 2018-11-09 08:58:11.766 UTC [couchdb] handleRequest -> WARN 007 Retrying couchdb request in 1s. Attempt:4  Error:Get http://couchdb.peer2.org1.example.com:5984/: dial tcp <IP_ADDRESS>:5984: getsockopt: connection refused 2018-11-09 08:58:12.767 UTC [couchdb] handleRequest -> WARN 008 Retrying couchdb request in 2s. Attempt:5  Error:Get http://couchdb.peer2.org1.example.com:5984/: dial tcp <IP_ADDRESS>:5984: getsockopt: connection refused 2018-11-09 08:58:14.822 UTC [couchdb] CreateDatabaseIfNotExist -> INFO 009 Created state database _users 2018-11-09 08:58:14.838 UTC [couchdb] CreateDatabaseIfNotExist -> INFO 00a Created state database _replicator 2018-11-09 08:58:14.873 UTC [couchdb] CreateDatabaseIfNotExist -> INFO 00b Created state database _global_change`
docker logs couchdb.peer2.org1.example.com has error：
`[error] 2018-11-09T08:58:13.697758Z nonode@nohost emulator -------- Error in process <0.326.0> with exit value:
{database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,407}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,91}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,187}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,134}]}]}
[notice] 2018-11-09T08:58:13.697780Z nonode@nohost <0.325.0> -------- chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:403) <= mem3_shards:load_shards_from_disk/1(line:378) <= mem3_shards:load_shards_from_disk/2(line:407) <= mem3_shards:for_docid/3(line:91) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134)
`
maybe I should use more computs have a try

@wenshuohan Definitely try it with a smaller network. There is an example dev network in this repo, you can add a CouchDB container to it. If it works that way, then it's a resource issue. If the error still persists, try a Fabric channel/mailing list, maybe others also encountered similar errors.

@aklenik yeah，when my network‘s peers is less than four，such as 2-org-1-peer,2-org-2-peer,and 3-org-1-peer,they all worked well,but when the number is more than 6,such as 2-org-3-peer and 3-org-2-peer or more,it has the error.

VMware Workstation10
ubuntu14.04
memory 4G
processer 1
SCSI 30GB
network adapter NAT
USB controller exits

@wenshuohan  hi,  i have the same error,  i want to know how you the newwork incluing two organizations and four nodes ?   do you just change the fabric.json ?

@houqinghui  I changed notonly fabric.json，but also config.json

@wenshuohan this is the information "peer2": {
"requests": "grpcs://localhost:9057",
"events": "grpcs://localhost:9059",
"server-hostname": "peer1.org3.example.com",
"tls_cacerts": "network/fabric/config/crypto-config/peerOrganizations/org3.example.com/peers/peer1.org3.example.com/tls/ca.crt"
} in Org3,   can you find the file network/fabric/config/crypto-config/peerOrganizations/org3.example.com/peers/peer1.org3.example.com/tls/ca.crt

when i add one peer in org,  i cannot find the certificate file?
@wenshuohan

@houqinghui Key Storage Path in Configuration File

@wenshuohan  do you generate  the centificate and key about org3 by yourself before the test? or that  you just change the config file, then you run the test?

@wenshuohan @houqinghui Is this issue resolved?


Inject templates for ASR datasets

This PR adds ASR templates for 5 of the most common speech datasets on the Hub, where "common" is defined by the number of models trained on them.
I also fixed a bunch of the tags in the READMEs 😎

Wait until #2567 is merged so we can benefit from the tagger :)

thanks for the feedback @lhoestq! i've added the new language codes and this PR should be ready for a merge :)


[WFLY-14950] Use Arrays.toString

Fixes https://issues.redhat.com/browse/WFLY-14950

@bstansberry Hello Brian, tests for this PR passed, PR is approved. Could you please check and merge?

Thanks, @boris-unckel


[BUG] "Approve in Wallet" text in Switch Networks modal overlaps Network name

Describe the bug
The issue happens in the Switch Networks modal, which contains the list of supported networks and prompts the user to change to one of these instead of the selected network in the Wallet client (i.e.: Metamask).
If the user presses one of the networks, in order to change to a supported network, a label with the text "Approve in Wallet" is displayed next to the name of the network when the Metamask prompt opens. When this happens, there may be an overlap between the "Approve in Wallet" text and the network name, depending on its length, and probably the language the user is in.
In this particular case reproduced in the screenshots, the client is in English, the network name is Fantom Testnet, and the overlap exists.
Please note that in a base use case, with officially supported network such as Ethereum (homestead) or Goerli this doesn't happen, since the length of the name doesn't allow the bug to emerge, at least in English.
To reproduce
Using version 1.1.1, add Fantom Testnet as one of the supported networks when initializing the wagmi client with the following code:
{
    id: 4002,
    name: 'Fantom Testnet',
    network: 'Fantom Testnet',
    rpcUrls: {
      default: {
        http: ['https://xapi.testnet.fantom.network/lachesis'],
      },
    },
    nativeCurrency: {
      decimals: 18,
      name: 'Fantom',
      symbol: 'FTM',
    },
    testnet: true,
  }

Or the custom chain declaration for version 1.0.1:
{
    id: 4002,
    name: 'Fantom Testnet',
    network: 'Fantom Testnet',
    rpcUrls: { default: 'https://xapi.testnet.fantom.network/lachesis' },
    nativeCurrency: {
      decimals: 18,
      name: 'Fantom',
      symbol: 'FTM',
    },
    testnet: true,
  }

Then open your application, connect your wallet on a supported network and switch to an unsupported network, i.e.: one that is not present in the configureChains function call. This will trigger the Switch Networks modal from Connect Kit. With the modal open, press the Fantom Testnet option from the options list, and notice that the "Approve in wallet" legend appears (in English localization), overlapping the network name.
Expected behavior
Texts should not overlap, the length of the network should not collide with the Approve in Wallet label.
Screenshots

Environment details
Brave Browser, latest version, running with connectkit 1.1.1 and also tested in connectkit 1.0.1 (same issue).
Additional context
Nothing else.

Good catch @eduardopelitti, I'll have a look into cleaning this up. 😊

A simple solve for this was to hide this text on this particular view due there being no limit to how long a chain name can be. We've kept the highlighted background and the spinner animation, so hopefully that keeps things coherent ✨
Thanks again for pointing this out!


fix #64 (pickle issue)

Hello @sdementen! Thanks for submitting the PR.

In the file box.py, following                are the PEP8 issues :

Line 497:1: W293 blank line contains whitespace

In the file test/test_functional_box.py, following                are the PEP8 issues :

Line 611:5: E303 too many blank lines (2)
Line 615:1: W293 blank line contains whitespace

Coverage increased (+0.7%) to 99.836% when pulling 63ca1a552b58acc4494b0af8e36fa523b053e8e2 on sdementen:patch-1 into f3ec16ea8698ae212c2af8999d80a9e65e297764 on cdgriffith:master.

Coverage increased (+0.7%) to 99.836% when pulling 63ca1a552b58acc4494b0af8e36fa523b053e8e2 on sdementen:patch-1 into f3ec16ea8698ae212c2af8999d80a9e65e297764 on cdgriffith:master.

Coverage increased (+0.7%) to 99.836% when pulling 63ca1a552b58acc4494b0af8e36fa523b053e8e2 on sdementen:patch-1 into f3ec16ea8698ae212c2af8999d80a9e65e297764 on cdgriffith:master.

Hey @sdementen, thanks so much for the find and PR! I need to update it to go into dev so am just putting it in new branch  for a bit, but will have this out hopefully this weekend.
Thanks so much!

 Thank you for this great package!


LTS for this Repo with NIMs on the horizon

Hi
Is there a strategy here that Triton/TensorRTLLM etc continues to sit in parallel with NIMs or will NIMs take over?
Cheers

We will continue supporting the TRT-LLM and TRT-LLM triton backend.


determine optimal compression level

right now it is 4. It is hard coded into valence PacketEncoder. We will have to make our own copy or fork it.
related:

find optimal compression threshold.

Answer yes it is. But it is hard coded into valence PacketEncoder. We will have to make our own copy or fork it.

not sure this is prio right now. probs can do insane compression on the proxies. really just bench/profile and see if we need to worry about this.


Cargo.lock updated when running cargo publish, causing git error

Problem

When running cargo publish, the Cargo.lock file can get updated. For binaries I've been advised to include this in the git repo. Because of this update, cargo publish will give an error saying that Cargo.lock hasn't yet been committed yet, which makes sense since cargo just updated it
Steps

Have Cargo.lock in a git repository, and have it not be excluded
run Cargo publish
cargo will give the error

Possible Solution(s)

A possible solution would be to ignore if Cargo.lock is committed or not. A better solution would be to perform the git check before updating the Cargo.lock file
Notes
While this isn't a high priority bug of any sorts, it definitely is an inconvenience.
Output of cargo version: cargo 1.52.0 (69767412a 2021-04-21)

Hm, that's strange!  I'm uncertain how to reproduce that, as Cargo generates a new Cargo.lock in memory and shouldn't modify the one currently checked out.  Can you put together some reproduction steps or a repository I can check out?  Something like this should work:
cargo new foo
cd foo
cargo generate-lockfile
git add .gitignore src Cargo.toml Cargo.lock
git commit -m test
cargo publish --token xyz

(of course, the last step will fail to actually publish, but there shouldn't be any errors about uncomitted Cargo.lock)

I'm unable to reproduce it on my laptop either, strange enough.
The issue occurred for me on my desktop, running WSL2 (Ubuntu) under Windows 10 Pro, on the following repo: https://github.com/TheDutchMC/GSync

Oh, I can think of one way to reproduce it.  If you modify Cargo.toml, and commit that without running any cargo commands to update Cargo.lock, then it will complain. It does a check to verify that Cargo.lock is up-to-date relative to what is specified in Cargo.toml.  Maybe you updated the version just before publishing?

Thats definitely a possibility yeah!
I imagine people do these version bumps often before releasing (At least, I do), is this intended behaviour, or should we want to allow a difference in package version within the Cargo.lock file?

Yea, that is intentional. We want to make sure that the Cargo.lock is up-to-date before continuing.

Check!
I think it's safe to close this issue then!


Can't start piper

Whenever starting piper from terminal, the following error is thrown:
TypeError: Couldn't find foreign struct converter for 'cairo.Context'

You're missing a dependency, run sudo apt-get install python-gobject-cairo. How did you install Piper?
Also, please open further Piper issues over at the Piper repository.


Make default social media icon NO LINK

On the Wiki...
What happens now:
Every one of these social media icons is a link, whether or not there's an actual link to Facebook, Twitter, FabLabs, or whatever:

Icons that don't link to anything still link to themselves.
What should happen:
Only the icons that actually lead to websites should be links! All the icons without real links should either not have icons (which may be too hard) or should just not be hyperlinks.

assigning to self

marked as fixed

Re-opening, because on IE the cursor still changes to a hand-icon (indicating a link) and links to itself.

Waiting on @chinmayisk  to get back to me on this

@chinmayisk I put some Mako logic into the template so if the API returns an empty string for any of the social media links that icon will disappear. This needs to be reflected in the API or however else those link values are getting passed. Thanks!

yes @albiebrown your mako logic works now i changed a few things in the backend. Now if there is no link the icon does not show up


Optimize user experience for multi branch pipeline

What is version of KubeSphere DevOps has the issue?
v3.3.1
How did you install the Kubernetes? Or what is the Kubernetes distribution?
kubekey
Describe this feature

User need scan the repo first, then show the branch, and is able to run.
Now there is a run on console just after create the multi branch pipeline, user will click the run, and it will show an error.
Additional information
No response

design as follow：

@Bettygogo2021 need-doc


Eror compiling with nginx 1.23.1

Hi there im trying to compile module with nginx 1.23.1 and im getting the folowing output
nginx version: nginx/1.23.1
Debian 10 Buster
just whanna do the dynamic module
./configure --with-compat --add-dynamic-module=./incubator-pagespeed-ngx
    ./incubator-pagespeed-ngx/src/ngx_pagespeed.cc

./incubator-pagespeed-ngx/src/ngx_pagespeed.cc: In function ‘ngx_int_t net_instaweb::{anonymous}::ps_set_cache_control(ngx_http_request_t*, char*)’:
./incubator-pagespeed-ngx/src/ngx_pagespeed.cc:407:36: error: request for member ‘elts’ in ‘r->ngx_http_request_s::headers_out.ngx_http_headers_out_t::cache_control’, which is of pointer type ‘ngx_table_elt_t*’ {aka ‘ngx_table_elt_s*’} (maybe you meant to use ‘->’ ?)
if (r->headers_out.cache_control.elts == NULL) {
^~~~
./incubator-pagespeed-ngx/src/ngx_pagespeed.cc:408:35: error: cannot convert ‘ngx_table_elt_t**’ {aka ‘ngx_table_elt_s**’} to ‘ngx_array_t*’
ngx_int_t rc = ngx_array_init(&r->headers_out.cache_control, r->pool,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/core/ngx_core.h:65,
from src/http/ngx_http.h:13,
from ./incubator-pagespeed-ngx/src/ngx_pagespeed.h:33,
from ./incubator-pagespeed-ngx/src/ngx_pagespeed.cc:26:
src/core/ngx_array.h:32:29: note:   initializing argument 1 of ‘ngx_int_t ngx_array_init(ngx_array_t*, ngx_pool_t*, ngx_uint_t, size_t)’
ngx_array_init(ngx_array_t array, ngx_pool_t pool, ngx_uint_t n, size_t size)
~~~~~~~~~^
./incubator-pagespeed-ngx/src/ngx_pagespeed.cc:415:22: error: cannot convert ‘ngx_table_elt_t’ {aka ‘ngx_table_elt_s**’} to ‘ngx_array_t*’
ngx_array_push(&r->headers_out.cache_control));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/core/ngx_core.h:65,
from src/http/ngx_http.h:13,
from ./incubator-pagespeed-ngx/src/ngx_pagespeed.h:33,
from ./incubator-pagespeed-ngx/src/ngx_pagespeed.cc:26:
src/core/ngx_array.h:27:35: note:   initializing argument 1 of ‘void* ngx_array_push(ngx_array_t*)’
void ngx_array_push(ngx_array_t a);
~~~~~~~~~~~~~^
./incubator-pagespeed-ngx/src/ngx_pagespeed.cc: In function ‘bool net_instaweb::{anonymous}::ps_get_cache_control(ngx_http_request_t, GoogleString)’:
./incubator-pagespeed-ngx/src/ngx_pagespeed.cc:439:74: error: request for member ‘elts’ in ‘r->ngx_http_request_s::headers_out.ngx_http_headers_out_t::cache_control’, which is of pointer type ‘ngx_table_elt_t*’ {aka ‘ngx_table_elt_s*’} (maybe you meant to use ‘->’ ?)
auto ccp = static_cast<ngx_table_elt_t**>(r->headers_out.cache_control.elts);
^~~~
./incubator-pagespeed-ngx/src/ngx_pagespeed.cc:444:59: error: request for member ‘nelts’ in ‘r->ngx_http_request_s::headers_out.ngx_http_headers_out_t::cache_control’, which is of pointer type ‘ngx_table_elt_t*’ {aka ‘ngx_table_elt_s*’} (maybe you meant to use ‘->’ ?)
for (ngx_uint_t i = 0; i < r->headers_out.cache_control.nelts; i++) {
^~~~~
make[1]: *** [objs/Makefile:1342: objs/addon/src/ngx_pagespeed.o] Error 1
make[1]: Leaving directory '/home/crywolfy/kernel/nginx1.23.1/nginx-1.23.1'
make: *** [Makefile:16: modules] Error 2
what im doing wrong ?

If you can explain better, did not understand what to check nginx or pagespeed, with commands will be better, i did try to compile it on nginx 1.23.3 and the same... :(

git master tree is the main git repository branch.
To build from the source code in the master branch for the newer nginx version, you can use something like this:
`sudo apt install git wget -y
NPS_BRANCH=master
PSOL_VER=<IP_ADDRESS>
BUILDING_HOME=/tmp
echo "Downloading ngx_pagespeed src from git and PSOL src from apache ..."
cd $BUILDING_HOME
git clone -b $NPS_BRANCH https://github.com/apache/incubator-pagespeed-ngx.git ngx_pagespeed-${NPS_BRANCH}
cd ngx_pagespeed-${NPS_BRANCH}
wget -v https://downloads.apache.org/incubator/pagespeed/${PSOL_VER}/x64/psol-${PSOL_VER}-apache-incubating-x64.tar.gz
tar -xzvf psol-${PSOL_VER}-apache-incubating-x64.tar.gz
cd /your-nginx-source-code-path
./auto/configure --add-dynamic-module=${BUILDING_HOME}/ngx_pagespeed-${NPS_BRANCH} --with-compat
make modules`

They don't work on me, but this worked flawesly
https://github.com/apache/incubator-pagespeed-ngx/issues/1756#issuecomment-1204517605
Thanks.

It is off topic but I want to mention that by enabling the corefilters level on my testing 2 cpu shared vps,
loader.io test showing the response time has been slowed by almost 100% even with just 100 concurrent connections.
Might be better to use it on vps with at least 4 cores?


Fix magic encoding to avoid utf-8 conflicts

Thanks!
And 8 PRs in a row, that's impressive!

Thanks!


Delay between commands

The update didn't solve the problem here unfortunately.
So, I build this Lovelace interface for controlling my TV and each arrow is a call-service: media_player.play_media which sends directional keys. There is still a 2 sec delay between each call-service.

wait, did u try with key chaining in media_playet.play_media? (example: KEY_1+KEY_5+KEY_2+KEY_ENTER) or with ur lovelace card? (which sends one key at a time)
The initial issue was with key chaining, wasn't it? Maybe I understood it wrongly.

Wait, did u try with key chaining in media_player.play_media? (example: KEY_1+KEY_5+KEY_2+KEY_ENTER) or with ur lovelace card? (which sends one key at a time)
The initial issue was with key chaining, wasn't it? Maybe I understood it wrongly.

I wasn't using key chaining, but just sending media_player.play_media through my arrow keys in Lovelace. And I can't navigate in the menu smoothly because of this delay. I have to wait 2 seconds before I can send another directional key command.

@prbtt what hardware are you running home assistant on? And what version are you running? I tried on my end and it was actually very responsive to sending keys, I could press multiple times within a second and have it responding. Only few times the delay gets bigger for me it seems, but that feels like a similar consistency as an actual IR remote.
I run home assistant as a jail on a FreeNAS server though with a pretty capable CPU vs. e.g. a raspberry Pi. Currently running 0.114.3. I'm wondering if this makes a big difference...
By the way this looks really cool! Do you feel up to sharing this? I would love to give this a try!

@prbtt what hardware are you running home assistant on? And what version are you running? I tried on my end and it was actually very responsive to sending keys, I could press multiple times within a second and have it responding. Only few times the delay gets bigger for me it seems, but that feels like a similar consistency as an actual IR remote.
I run home assistant as a jail on a FreeNAS server though with a pretty capable CPU vs. e.g. a raspberry Pi. Currently running 0.114.3. I'm wondering if this makes a big difference...
By the way this looks really cool! Do you feel up to sharing this? I would love to give this a try!

I'm on a RPI 4b 4GB RAM, Operating system
HassOS 4.14, Supervisor
Version
247
Newest version
247
version | 0.116.4
`cards:

entities:

entity: input_select.input_tv_sala
label: Volume
type: section
entity: media_player.samsung_tv_remote
full_row: true
hide_state: false
icon: 'mdi:volume-source'
name: Volume
step: 1
tap_action:
action: none
type: 'custom:slider-entity-row'
type: entities

default_dismiss: false
default_open: true
icon: 'mdi:circle'
items:

entity: light.pixar
icon: 'mdi:arrow-up'
tap_action:
action: call-service
service: script.tv_up
service_data:
entity_id: script.tv_up
entity: light.pixar
icon: 'mdi:arrow-right'
tap_action:
action: call-service
service: script.tv_right
service_data:
entity_id: script.tv_right
entity: light.pixar
icon: 'mdi:arrow-down'
tap_action:
action: call-service
service: script.tv_down
service_data:
entity_id: script.tv_down
entity: light.pixar
icon: 'mdi:arrow-left'
tap_action:
action: call-service
service: script.tv_left
service_data:
entity_id: script.tv_left
tap_action:
action: call-service
service: media_player.play_media
service_data:
entity_id: media_player.samsung_tv_remote
media_content_id: KEY_ENTER
media_content_type: send_key
type: 'custom:radial-menu'

default_dismiss: false
default_open: true
icon: 'mdi:home'
items:

entity: light.pixar
icon: 'mdi:nothing'
tap_action:
action: call-service
haptic: false
service: media_player.play_media
service_data:
entity_id: media_player.samsung_tv_remote
media_content_id: KEY_UP
media_content_type: send_key
entity: light.pixar
hold_action:
action: call-service
service: media_player.turn_on
service_data:
entity_id: media_player.samsung_tv_remote
icon: 'mdi:power'
show_name: false
size: 100%
state:

color: green
icon: 'mdi:power'
show_name: false
show_state: true
value: 'on'
color: red
icon: 'mdi:power'
operator: default
show_state: true
styles:
card:

width: 80px
height: 90px
'--paper-card-background-color': 'rgba(0, 0, 0, 0.0)'
box-shadow: none
tap_action:
action: call-service
haptic: false
service: media_player.toggle
service_data:
entity_id: media_player.samsung_tv_remote

entity: light.pixar
icon: 'mdi:nothing'
tap_action:
action: call-service
haptic: false
service: media_player.play_media
service_data:
entity_id: media_player.samsung_tv_remote
media_content_id: KEY_DOWN
media_content_type: send_key
entity: light.pixar
icon: 'mdi:keyboard-return'
tap_action:
action: call-service
haptic: false
service: media_player.play_media
service_data:
entity_id: media_player.samsung_tv_remote
media_content_id: KEY_RETURN
media_content_type: send_key
tap_action:
action: call-service
service: media_player.play_media
service_data:
entity_id: media_player.samsung_tv_remote
media_content_id: KEY_HOME
media_content_type: send_key
type: 'custom:radial-menu'
type: 'custom:vertical-stack-in-card'
`

I'm on a RPI 3b+ (HA v0.116.4) and can also confirm a ~2s delay. I was also thinking that HA + hardware could influence this, but i'm not dismissing the fact that it might be an issue on our end as well. I know we use 2x try/catch in the send_command function. I also know that try/catch can indeed add quite some time to logic in many programming languages, but optimising the code is a time consuming task that would require a lot of debugging.. and in the end we might not be able to reduce the time significantly this way.

I did some tests with all try/catch logic commented out and did not see any relevant improvement on the speed. Looking at the code I can't imagine how this could be component issue.. I'm inclined to believe that HA / hardware might actually influence the speed of this a lot..
When I started working on this component the commands were indeed sent much faster, although not much has changed in the code related to sending these keys since then, HA did change a lot since though..

I had a similar issue if I understand it correctly this morning and took a look quick.
I don't know where the delay is coming in, it is somewhere after the first command is run so suspect something around the update of the states that happen after each command, as the first command is immediate and then you get the delay for subsequent commands.  So the command is executed quickly then something happens...
I did see in mediaplayer.py line 884 it is specified with an await for any command key.  So i figured as it is just an update happening after that in the background let me take it out and my keys are very responsive now.
Haven't seen any unexpected issues yet. Image where I removed the await.

Not sure if this is helpful?

TBH, my primary theory is that this has a lot to do with the websocket timeout:
https://github.com/jaruba/ha-samsungtv-tizen/blob/master/custom_components/samsungtv_tizen/websockets.py#L47
But I haven't tested this theory, it's just a hunch..

got the same issue. is there some solution?

@profx5015 Are u also using an RPI as ur HA device?

I'm thinking of reverting my initial changes regarding this, I think they might break more then they fix in the long run..

I'm still running with my change I made where I let the command run asynchronously without waiting for the response.  Been working out great in how I use it, very responsive remote.  no issues yet, but I obviously am not using all the features.
I really see these commands when used as a remote as fire and forget, one way.

@Philip-Hel
I have nothing against ur solution, but that is related only to sending 1 key, which avoids the logic i added for key chaining... Where previously it would await keys, it now just throws them at the TV with a delay.. When initially tested, the delay was too short and it could skip some keys completely, which makes me feel like it's fragile logic... even though i couldn't reproduce it anymore with the last (higher) delay that was set.. maybe i should make the initial logic the default behaviour and add a setting to enable sending keys with a specific delay between them too..
Regardless, I'll make the change you proposed also.

@Philip-Hel i made the change you proposed and published a new version (v1.5.5) if this problem persists we can reopen the issue.

With Philip's modification my commands are now instant! Excellent, thank you very much!!


added spi_get_baudrate() + some consistency changes

new function to query the current baudrate
new helper check whether SPI is busy

consistency changes

return a boolean for functions with a "is; has; can" in name
return unsigned value for number of bytes read/written
some const correctness

Also, frankly I'm not convinced by switching the return values to size_t... generally we haven't been using size_t stylistically (I know that the params were size_t), however where functions do return a value it tends to have the possibility of an error code.

try building kitchen_sink ... there are a bunch of compiler warnings

thanks for the tip. Building this also finds other warnings like unused functions in stdio and a missing delete operator in new_delete.cpp. How do you handle these?

however where functions do return a value it tends to have the possibility of an error code.

In general this is fine. Anyway for these functions currently there are 3 arguments against it.

the function never returns an error (it is automagically included, if the return is != input len)
the documentation doesn't tell anything about possible error code
even if the use case may not exist, providing a size_t len which is larger than int will result in a negative value, which is not expected.

Checking for transfer error is still possible by comparing the return value with the input len, but now without a signed/unsigned mismatch comparison.

a missing delete operator in new_delete.cpp

See #304 ?

try building kitchen_sink ... there are a bunch of compiler warnings

thanks for the tip. Building this also finds other warnings like unused functions in stdio and a missing delete operator in new_delete.cpp. How do you handle these?

hmm; what compiler are you using... i don't see those warnings

however where functions do return a value it tends to have the possibility of an error code.

In general this is fine. Anyway for these functions currently there are 3 arguments against it.
1. the function never returns an error (it is automagically included, if the return is != input len)

2. the documentation doesn't tell anything about possible error code

3. even if the use case may not exist, providing a size_t len which is larger than int will result in a negative value, which is not expected.

Checking for transfer error is still possible by comparing the return value with the input len, but now without a signed/unsigned mismatch comparison.

Yes, i was talking about consistency in the API with other APIs, so this is in general.

yes, but doesn't give you the option of return what error
sure
this is a 32 bit microcontroller; providing a >31 bit value is never going to be valid... this is why size_t wasn't used anywhere really (and when I say anywhere, yes these APIs do use it).

hmm; what compiler are you using... i don't see those warnings

PICO_GCC_TRIPLE defaulted to arm-none-eabi
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
[57/259] Building C object CMakeFiles/kitchen_sink_no_flash.dir/D_/PicoSDK/1.1.2-Git/src/rp2_common/pico_unique_id/unique_id.c.obj
[58/259] Building C object CMakeFiles/kitchen_sink_no_flash.dir/D_/PicoSDK/1.1.2-Git/src/rp2_common/pico_multicore/multicore.c.obj
[59/259] Building C object CMakeFiles/kitchen_sink_no_flash.dir/D_/PicoSDK/1.1.2-Git/src/rp2_common/pico_stdio/stdio.c.obj
FAILED: CMakeFiles/kitchen_sink_no_flash.dir/D_/PicoSDK/1.1.2-Git/src/rp2_common/pico_stdio/stdio.c.obj
D:\2020-q4-major\bin\arm-none-eabi-gcc.exe -DPARAM_ASSERTIONS_ENABLE_ALL=1 -DPICO_AUDIO_DMA_IRQ=1 -DPICO_BIT_OPS_PICO=1 ... lots_of_includes... pico_stdio/stdio.c
D:/PicoSDK/1.1.2-Git/src/rp2_common/pico_stdio/stdio.c:203:13: error: 'stdio_buffered_printer' defined but not used [-Werror=unused-function]

Yes, i was talking about consistency in the API with other APIs, so this is in general.

Ok, so revert?

Yes, i was talking about consistency in the API with other APIs, so this is in general.

Ok, so revert?

yes please, whilst i can see why you might want to, I don't see enough value in changing the API

D:/PicoSDK/1.1.2-Git/src/rp2_common/pico_stdio/stdio.c:203:13: error: 'stdio_buffered_printer' defined but not used [-Werror=unused-function]

Perhaps that function just needs a #if LIB_PICO_PRINTF_PICO wrapped around it? https://github.com/raspberrypi/pico-sdk/blob/develop/src/rp2_common/pico_stdio/stdio.c#L219

ok is reverted. Did you realize that these function in no case return the transferred len? Should I do this with this PR too?

ok is reverted. Did you realize that these function in no case return the transferred len? Should I do this with this PR too?

do you mean in all cases?

ok is reverted. Did you realize that these function in no case return the transferred len? Should I do this with this PR too?

do you mean in all cases?

I mean they return the input length and not what was really sent => wrong docu or wrong implementation?

 But I am sure you heard about bit failures


Add TIDAL link.

Are you willing to maintain this list or can this PR be closed?

Since I am no longer using TIDAL I have no desire to maintain the playlist for it.


Pretrained Weights

Thanks for your great work! Could you provide the pretrained weight using LIVE-Qualcomm dataset? Thanks very much!

@lovekittynine Do you have difficulty in running the training code? If no, you can just run the training code first to train a model on LIVE-Qualcomm dataset (with any exp_id or with your own train-val-test split if you want).

Thanks for your answer! I can't download LIVE-Qualcomm dataset, in this paper, you have provided an impressive result on LIVE-Qualcomm dataset. So, I want to test my own dataset with weights pretrained on LIVE-Qualcomm, maybe it is more suitable for my own dataset. Of course, I have tried pretrained weights with KoNViD-1k, BUT it performs poorly! Thank you very much!

@lovekittynine If you think that your dataset is more similar to the LIVE-Qualcomm dataset, you may want to download it to do more things (Refer to #18).
You should be aware of the discrepancy of data distribution among the datasets, which may cause poor performance in the cross-dataset evaluation setting. This is a common problem for the existing models (including ours). We have extended this work to address this problem to some extent, and the extended work is currently under Major Revision of IJCV Special Issue on Computer Vision in the Wild. We will make this extended work available once it is peer-reviewed.
For now, I have the following two suggestions for you.
First, you can download the LIVE-Qualcomm and utilize this annotated dataset, then analyze the dataset and make your train-val-test split for re-training the VSFA model on the LIVE-Qualcomm, finally, you test the trained model on your own dataset (The model [as well as other VQA models] may also perform poorly on your dataset in such situation if your own dataset has a different distribution in comparison to the trained dataset.). You may try to improve the models (e.g., with the knowledge of domain adaptation).
Second, you can make a more suitable dataset for your application. That is, you collect the videos from your application and annotate their quality scores, then train the VSFA model ( or other models) with your constructed dataset. In this way, I guess you would get better performance for your test application.
For free to drop comments here if you still have any problem (It would be quite easy to get the model weights trained on LIVE-Qualcomm once you have downloaded the dataset).

Thanks very much, I will try it!

Sorry to trouble you again, could you please provide a download link for CVD2014 database (maybe baidu disk link). I have tried many times using the link provided in paper and answers in issue, but it failed!

@lovekittynine See https://github.com/lidq92/VSFA/issues/18#issuecomment-654929656 for the Baidu disk link for downloading CVD 2014.


Feature Request: Add a way of easliy telling which window has focus

I love aerospace so much!!!
I'm currently using JankyBorders for this with a blue border drawn around the active window and nothing drawn around inactive windows and it works well but it would be neat if this could be included in aerospace

Duplicate of #85


NaN written to integer netCDF variables not flagged correctly

This pertains to scipy version 0.17.
When writing data with missing values to an integer netCDF variable, np.nan values are not masked with _FillValue (or missing_value) but turned into the integer representation of np.nan, -2147483648, as demonstrated in this ipython notebook. With float variables, writing NaNs works as expected.
Also, when writing a masked array to either a float or int variable, the mask is dropped (but this might be a different issue).
I can see that there have been recent changes to the missing value handling, but cannot decipher whether they fix any of this.

Also present in master.

The masking features appear to be enabled only if you give the parameter maskandscale=True to the netcdf_file constructor.
Can you perhaps spell out in detail what is the expected output?
Is this the expected behavior your own expectation, or do other netcdf implementations work like that?

Sorry, I had overlooked the maskandscale option.
The behaviour I expect is that the data is represented in the netCDF file as I provided it, i.e. masked values or NaN are masked with some _FillValue (and the data is scaled, too), so it looks right when opened in some netCDF tool like ncdump, ncview, or Panoply.
My particular case is that I want to write originally float-type data to an integer variable that has some scale factor assigned, in order to reduce file size in netCDF3 files.
maskandscale=True brings about that behaviour for most cases.
However, in the following situations, the method does not work and "fails silently", i.e. writes some data where values are not flagged correctly and dummy values appear instead. Please see this new notebook for reference.

Float masked_array to int variable (case 3 in notebook)
Float data with NaN to int variable (case 5 in notebook)
Float data filled with incompatible _FillValue to int variable (case 7 in notebook)

In fact, one additional situation is when the float data with NaN is converted to int before assignment (var[:] = data.filled(np.nan).astype(int)). But this is something numpy should actually be catching, because it is plain wrong (and numpy does catch np.int(np.nan)).
comparison to netCDF4
For comparison, netCDF4 fails in the same situations (see second file in notebook), except one: It does not allow an incompatible _FillValue to be used on int variables.


[webapp] - az appservice plan update - 'NoneType' object has no attribute 'sku'

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az appservice plan update
Errors:
'NoneType' object has no attribute 'sku'
Traceback (most recent call last):
Temp\pip-install-rtk110ve\knack\knack\cli.py, ln 206, in invoke
azure\cli\core\commands\__init__.py, ln 603, in execute
azure\cli\core\commands\__init__.py, ln 661, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 654, in _run_job
Local\Temp\pip-install-rtk110ve\six\six.py, ln 693, in reraise
azure\cli\core\commands\__init__.py, ln 631, in _run_job
azure\cli\core\commands\__init__.py, ln 305, in __call__
azure\cli\core\commands\arm.py, ln 515, in handler
azure\cli\command_modules\appservice\custom.py, ln 1281, in update_app_service_plan
AttributeError: 'NoneType' object has no attribute 'sku'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

az appservice plan update --sku B3 -n AppName -g ResourceName

Expected Behavior
AppService Upgraded
Windows-10-10.0.17134-SP0
Python 3.6.6
Shell: powershell.exe

azure-cli 2.0.70

If you have multiple subscriptions, you will need to set the subscription first, use:
az account set --subscription "YOUR SUB NAME"

Figured it out - needed to pass in the "App Service Plan" name. I was originally passing in "App Service" name.


Figure out what we can expect to use from other teams' APIs

Various promotions will want information from other APIs (e.g. product information, customer information) -- how do we know what we can rely on from these other services?

Seemingly this does not need to impact our design -- can reopen if this becomes a concern during later orchestration work.


Add README.md

I created a readme to better reflect the characteristic of the repository and help people wanting to create a new pack. I hope I described everything correctly?
Cheers

thanks!


Uncaught Error: watch ENOENT

Delete

Got this when trying to open Packages > Remote Edit > Browse Hosts


Touch broken

On iPhone. Regression due to layout change?

Some used magic numbers. https://github.com/microsoft/microcode/commit/1392c162224f00c91e68df1153cddf931b982662


Maintenance

[x] Fix any flow errors in the project
[x] Add flow definitions
[x] Run flow in CI
[x] ucompiler -> babel-cli
[x] upgrade sb-promisify to latest version

LGTM, assuming CI passes.


Documentation about manipulating elements

When evaluating Pylenium we struggled to find out how to manipulate elements, e.g. type some text in an <input>. It seems that Pylenium does not care about this use case at all. After some digging we learned that all we need to do is to use the underlying Selenium WebElement:
py.get('input[name="username"]').webelement.send_keys('admin')
I wonder if this is a deliberate design decision? Does Pylenium encourage using the Selenium APIs? Or is the scope of Pylenium to be a test tool for websites with mostly static content?
In any case I think new users would benefit if the documentation had a section about this topic. What do you think?

Per your example, here is a link from the docs on how to type into a field.
https://elsnoman.gitbook.io/pylenium/element-commands/type
On Thu, Mar 4, 2021 at 4:30 AM Henning Schindler<EMAIL_ADDRESS>wrote:

When evaluating Pylenium we struggled to find out how to manipulate
elements, e.g. type some text in an . It seems that Pylenium does
not care about this use case at all. After some digging we learned that all
we need to do is to use the underlying Selenium WebElement:
py.get('input[name="username"]').webelement.send_keys('admin')
I wonder if this is a deliberate design decision? Does Pylenium encourage
using the Selenium APIs? Or is the scope of Pylenium to be a test tool for
websites with mostly static content?
In any case I think new users would benefit if the documentation had a
section about this topic. What do you think?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ElSnoMan/pyleniumio/issues/162, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHZS6S6I4HGPDUWZHBBWUIDTB5VO5ANCNFSM4YTCKD7A
.

Very helpful indeed, thank you!
Two pairs of eyes did not find this, so I think it should be more prominent, probably in section 4. Writing Tests with Pylenium. But I don't want to encourage pylenium users to send a contact form or something and spam the domain owners. Maybe we should add a new, second example 🤔?

https://elsnoman.gitbook.io/pylenium/
Usually people start with the Home or Welcome page which has two examples and even a setup video that goes through this.
It'd be different if many people were struggling to find .type(), but most people see it on the first page and the videos. However, I do think it would be helpful to have a "Recipes" section for how to do certain things which i think would resolve this issue as well

Added another test example and called out the different Commands like .type() and the Should objects.

Awesome :). You are probably right, I happen to have skimmed past this. The video is great by the way!


Don't force framerate.

Currently Resolve Proxy Encoder will always encode to whatever the set framerate is in proxy_settings. This is a bit silly since Resolve will only link to proxy media with the same timecode and framerate.
instead lets add a criteria to ignore source media with the wrong framerate and inherit proxy framerate from source media by default.

Turns out this was already implemented. We get the final encoding framerate from Resolve's API from GetClipProperty() which returns FPS in a dict.
So why was Resolve refusing to link these files?
It may potentially be that the -copyts flag was not set on the FFmpeg encode function. Timecode usually starts at zero?
So added that.
Potentially Resolve is reporting a rounded human-readable number for FPS?
So instead removed fps as an argument for FFmpeg and added a default setting (disabled by default) to stick to a whitelist of framerates. Also added the -vsync flag to FFmpeg to ensure it handles variable frame rates properly.
Added a list to keep track of source media that has already been seen, so we don't filter it multiple times. This should also mean we don't need to go through the list and make unique at the end too.
https://superuser.com/questions/460332/how-do-set-output-framerate-same-as-source-in-ffmpeg
https://superuser.com/questions/908295/ffmpeg-libx264-how-to-specify-a-variable-frame-rate-but-with-a-maximum/1073260#1073260


[Feature] Add ability to unregister the Twilio VoIP notification

We currently register tokens with Twilio, but we have no way of unregistering them.
I propose a new JS method TwilioVoice.unregister(accessToken) that will call [TwilioVoice unregisterWithAccessToken:deviceToken:completion:]

I'm not sure that's accurate: https://github.com/hoxfon/react-native-twilio-programmable-voice/blob/master/index.js#L98

Good find. The README needs to be updated.


guitarix: fix build

Description of changes
fixes
https://github.com/NixOS/nixpkgs/issues/263512
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 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

[ ] Fits CONTRIBUTING.md.

This is a working workaround. Is there any upstream movement to support 3.11? If not, this is better than marking it broken :P

This is a working workaround. Is there any upstream movement to support 3.11? If not, this is better than marking it broken :P

there is an upstream fix, I've applied it manually.

Built/ran for me


Documentation structure manifest

What this PR does / why we need it:
Using docforge to build documentation bundles for Gardener OSS website documentation versions requires a manifest file for each version, describing the desired documentation structure for that version.
Special notes for your reviewer:
Needs to be merged only with the integration of docforge into the website-generator script.
Release note:
Documentation bundles delivered at gardener.cloud website are now generated, based on a manifest file maintained in the documentation repo - documentation.yaml. At present this change is transparent but as documentation will gradually move to respective repositories, it will be necessary to maintain material that needs to be presented on the website in this "bill-of-material" manifest.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Switched to langchain_tiktoken package

Switched from the tiktoken package to langchain_tiktoken in order to resolve the extremely long build-time release-mode issue.
Original issue:
https://github.com/mvitlov/tiktoken/issues/5
The package owner didn't merge the pull request:
https://github.com/mvitlov/tiktoken/pull/6
So we're using the forked and refactored langchain_tiktoken package instead:
https://pub.dev/packages/langchain_tiktoken

Thanks for your work @orenagiv!
The package looks great. I've just finished the migration of the rest of the packages and fixing some tests.
Do you think we can merge it already?

Thanks @davidmigloz 🙏
Yep 🙂 fine by me!

merged! Thanks again 🚀


Can't import whole folder

[x] I've read the guidelines for Contributing to Roots Projects
[x] This request isn't a duplicate of an existing issue
[x] I've read the docs and followed them (if applicable)
[x] This is not a personal support request that should be posted on the Roots Discourse community

Description
In sage 9 we can import whole sass folder for example
@import 'folder/**/*';
but here in sage 10 it throws error. Is it a bug or it is not even implemented?
Please help me to make it work.
Steps to reproduce

Create a folder in styles directory
Add at least one sass file and put test css code
Import whole folder in styles.scss and see if it works

Expected behavior: I should be able to import whole folder
Actual behavior: It throws error
Reproduces how often: Always
Versions
You can get this information from referencing CHANGELOG.md. Also, please include the OS and what version of the OS you're running.
Additional information
Any additional information, configuration or data that might be necessary to reproduce the issue.

Found a solution! Follow this simple steps:
yarn add import-glob-loader
Change webpack.mix.js on line 19 with this code:
mix.webpackConfig({

     module: {

       rules: [

         {

           test: /.scss/,

           enforce: 'pre',

           loader: 'import-glob-loader'

         }

       ]

     }

   })

   .sass('resources/styles/app.scss', 'styles')

   .sass('resources/styles/editor.scss', 'styles')

   .options({

     processCssUrls: false,

     postCss: [],

   });


Variables in Kotlin: Android Basics with Compose

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-variables?hl=fr&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-1-pathway-1%3Fhl%3Dfr%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-variables#5
In which task and step of the codelab can this issue be found?
Describe the problem
Les noms des variables doivent être en majuscule et commencer par une lettre minuscule.
Steps to reproduce?

Go to... https://developer.android.com/codelabs/basic-android-kotlin-compose-variables?hl=fr&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-1-pathway-1%3Fhl%3Dfr%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-variables#5
Click on...
See error...

Versions
Android Studio version:
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.

Hi @ouiminga
Thank you for reporting this issue.
It is a duplicate that is already scheduled to be fixed so I will be closing this one.
Hope you are enjoying the course!
Regards.


[Travis] Mysterious killed eunit test in couch_replicator_use_checkpoints_tests

Current & Expected Behaviour
In one Travis run (Erlang 19.3) the test module couch_replicator_use_checkpoints_tests failed mysteriously:
  Replication use_checkpoints feature tests
    use_checkpoints: false
      local -> local
        couch_replicator_use_checkpoints_tests:111: should_populate_source...[0.033 s] ok
        couch_replicator_use_checkpoints_tests:118: should_replicate...[0.053 s] ok
        couch_replicator_use_checkpoints_tests:125: should_compare_databases...[0.051 s] ok
        [done in 0.146 s]
    *unexpected termination of test process*
::killed

The couch.log (uploader _id travis-couchdb-237668845-2017-05-30T20:31:25.123334) shows nothing out of the ordinary, though there are some initial failures to load some _local documents when starting up replication.

There's not enough to go on here, and we've only ever seen this issue once.
Reopen if this recurs.


Trials verbosity

Get trials for all members of a voice channel
Respond to command without parameters looking for (IGN) in display name, or whatever display name is if not present
Respond to /c

honestly, i think what's in there is plenty verbose. extra calls, oh well.


Enhancing Layout and Styling for Paragraphs, Images, and Video Embeds on Webpages

Description:
The visual presentation of paragraphs, images, and video embeds on webpages currently lacks proper spacing and takes up the full width of the webpage, without any margin or space on the left and right sides. This issue pertains to multiple breakpoints where the elements, including paragraphs, images, and videos, are affected.
Reason for Change:
Improving the style and layout of paragraphs, images, and video embeds is essential for enhancing the overall user experience. The current lack of spacing and cramped layout negatively impact readability, aesthetics, and user engagement. By implementing appropriate styling changes, we aim to create a more visually pleasing and user-friendly experience.
Current Styling:
Currently, paragraphs, images, and video embeds span the entire width of the webpage, without any margin or spacing on the left and right sides.
Proposed Styling:
The desired styling changes include introducing margins and spacing for paragraphs, images, and video embeds. By providing a defined space on the left and right sides, we can improve the visual separation between elements and create a more balanced layout. The spacing should be consistent across different breakpoints to ensure a cohesive and harmonious design.
Additional Information (optional):
Under gssoc assign this to me

Priority Level (optional):

[] Low
[x] Medium
[ ] High

Timeline (optional):
[Specify any preferred or required timeline for implementing the style change.]
Possible Implementation Approach (optional):
[If you have any suggestions or ideas on how the style change could be implemented, feel free to provide them here.]

Go for it


Tool to help rebuild automate provision requests

@gmcculloug - I added some functionality, didn't change the methods building the base request - I can definitely clean up the code more if you would like. - Hence the [wip]

@syncrou This was a prototype script that I was hoping could help others in creating provision_requests from the Rest API or automate.
It would be great if you can clean it up or modify it however you feel works best.

@miq-bot remove_label wip

@gmcculloug - Added documentation and a couple of small features.

Add the ability to look up any number of the last known MiqRequest ids.
If a request-id cannot be found - the tool will warn the user and show them a command to look up a the last 5 request ids

@gmcculloug - I added the last requested changes.


how to dictate luarocks which compiler to use during compilation

Hi everyone, I've been having some issues lately trying to install/compile rocks.
I've installed/compiled a kind of a big library using clang compiler with omp support. In my system I have many compilers (OSX default clang no openmp support, clang with openmp support, gcc-6, and intel compilers).
The issue is that when I use luarocks every time to install a new package for this library that I'm using it results in compiling the rocks using the default clang compiler without openmp support. How can I configure luarocks to use the clang compiler with openmp support?
Which file should I modify to make luarocks point to the right compiler?

I'm just gonna answer my own comment based on the solution provided here. One thing though that is not clear is how to make those changes permanent in site.config.lua.
Do you add another entry in the table such as
site_config.LUAROCKS_CC=/path/to/gcc
or
site_config.LUA_CC=/path/to/gcc


Basic test for CLI definitions

Adds a rudimentary test which would have given an error for #3038.
Use consistent import and quote style.

could you add also for the LiveQuery definitions?

Yay! Thanks man!


unable to push mmteb scores to model meta due to file size

I patched the model meta with the latest model meta with mteb create_meta --results_folder results/{my model}/{my reivision} --output_path model_card.md --from_existing jina_embeddings-v3.md , this gives me a Readme of 28.9mb, and not able to publish scores to huggingface anymore, have you encountered such error?
jina-embeddings-v3|pr/62 ⇒ git push origin pr/62:refs/pr/62
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 2.72 MiB | 6.58 MiB/s, done.
Total 3 (delta 1), reused 0 (delta 0), pack-reused 0 (from 0)
remote: -------------------------------------------------------------------------
remote: Your push was rejected because it contains files larger than 10 MiB.
remote: Please use https://git-lfs.github.com/ to store large files.
remote: See also: https://hf.co/docs/hub/repositories-getting-started#terminal
remote:
remote: Offending files:
remote:   - README.md (ref: refs/pr/62)
remote: -------------------------------------------------------------------------
To https://huggingface.co/jinaai/jina-embeddings-v3
 ! [remote rejected] pr/62 -> refs/pr/62 (pre-receive hook declined)
error: failed to push some refs to 'https://huggingface.co/jinaai/jina-embeddings-v3'

Yea, the create_meta CLI is quite extensive when working with a lot of datasets. Instead, it might be better to submit the results to submit the results to simply:
https://github.com/embeddings-benchmark/results


DOC:Would u like to add Snake Animation to Readme.md file?

What's wrong with the existing documentation
Ntg , Liked to add snake animation of Contribution graph!
Add ScreenShots
https://github.com/GameSphere-MultiPlayer/Spaceship-escort/assets/154777864/dee077c5-6d1e-40cb-9cd2-824f24c59982
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

/assign


Fix markdown in README to make the space visible

:+1: I just got tripped up here too

Merged. Thanks :)


Merge exceptions

This combines 3 exceptions from both codebases into a single definition. Now without sln changes.
It feels like generally the simplification work I'm looking at has already been done in the netcore codebase, are the netfx and netcore codebases from different times?

@Wraith2 The netcore code base was forked from .NET Framework in 2015 and had a lot of clean up for .NET Core use. New SQL features were mostly added to .NET Framework for a few years. M.D.S was formed from those diverged code bases in the second half of 2018.

It seems like the split is that features are in netfx but cleaner code is in netcore. Neither is overall superior as far as I can see but in general I find that code converges on something close to netcore.
For example in this PR the netcore version of one class was missing a designer serialization attribute even though that attribute is present in netcore and could have been included. Each decision like this takes time to consider and I still might be wrong because there could have been some good reason for the removal.
There are also other questions of intent for this library. Is the netfx version going to need to be able to be hosted in-proc sql server which would require keeping all the CER support code and a couple of Task related workarounds?

It seems like the split is that features are in netfx but cleaner code is in netcore. Neither is overall superior as far as I can see but in general I find that code converges on something close to netcore.

That makes sense to me. The netfx code is very old. The fork to netcore and cleanup was an opportunity to bring the code up-to-date in easy places.

For example in this PR the netcore version of one class was missing a designer serialization attribute even though that attribute is present in netcore and could have been included. Each decision like this takes time to consider and I still might be wrong because there could have been some good reason for the removal.

A large part of the original netcore fork/cleanup was about removing code which could not be supported under netcore. Maybe those attributes were not available in netcore at the time of the fork. (I haven't investigated.)

There are also other questions of intent for this library. Is the netfx version going to need to be able to be hosted in-proc sql server which would require keeping all the CER support code and a couple of Task related workarounds?

I've thought about the same thing. For now, I wouldn't let that hold us back. We aren't currently hosted in-proc and it isn't a current requirement. @saurabh500 Do you have any insight into this area?

Ok. My intention is to unify everything I can without losing anything so if an attribute is supported in all the build targets but not in the netcore codebase I'd probably decide to include it. I'm doing small chunks at to keep things review friendly but eventually it's going to reach a stage where some serious time needs to be put in from the MS side to finish up.

SQL server supports hosting CLR assemblies as UDTs and we should continue to be able to keep the capabilities that are needed for in-proc hosting. E.g. a user can deploy .Net CLR typed based on .Net framework which uses MDS and the expectation would be for sqlclient to work.

@Wraith2
Please resolve conflicts so we can proceed with this PR, thanks!

I'll close this in favour of https://github.com/dotnet/SqlClient/pull/676 which changes at least one of these types and is likely to get merged first, i'll be easier to deal with that large PR without merge conflicts and I can easily revisit this afterwards. /cc @johnnypham

Fair enough, appreciate your thought!


SystemTimeToTzSpecificLocalTimeEx mistakenly documented as being available on Windows 7

Link to article:
https://docs.microsoft.com/en-us/windows/desktop/api/timezoneapi/nf-timezoneapi-systemtimetotzspecificlocaltimeex
Problem:
The article specifies
Minimum supported client | Windows 7 [desktop apps | UWP apps]
but the actual function prototype is only defined for Windows 8 or newer (confirmed that kernel32.dll does not export the function on Win 7)

Hi @richard-linden -- thank you  for letting us know! We'll work on updating the page.


⚠ Bofrost.de has degraded performance

In 1ca58a7, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1488 ms

Resolved: Bofrost.de performance has improved in ab8fe25.


pst.py: replace slow dict check

Replace slow dict check which gets slower with larger PST files.
For a certain 5 GB PST file, this results in a several fold
performance improvement.

Thanks


export to osm xml or .pbf?

Hey @gboeing, any plans to add support for exporting an osmnx network back out to an OSM-based format? Many network modeling platforms expect an OSM-formatted network, so it would be great to be able to load a network with osmnx, use osmnx's geometry simplification capabilities, for example, and export back out to an OSM-supported format to use with a different platform. Do you have any suggestions for accomplishing this kind of workflow in the meantime?

No current plans to add functionality to export back to OSM XML. However, if you end up putting this sort of workflow together for your own purposes, a PR would certainly be welcome. Regarding suggestions, you might want to check out the class here: https://github.com/gboeing/osmnx/blob/master/osmnx/utils.py#L1165

OK cool. I'm gonna take a stab at something in the couple days for my own use and I'll submit a PR if it seems to work reasonably well.

closed by #259


Change summary variable to name variable

Summary variable needs to be changed to the name variable in the database.

Summary variable needs to be changed to the name variable in the database.

The columns in the events table are based on the names of the fields in the calendars. A view could rename the columns to present them as expected by the Alexa skill, or we could rename all the columns in the schema itself, recreate the database from scratch, and update everywhere they are used across the whole project.

To avoid confusion, the name "title" was chosen instead of "name".
To-Do:

[x] Rename column in Database/schema.sql
[x] Rename where used in Scraper/scraper.py
[ ] Rename where used in the Alexa skill

This still needs to be renamed in the Alexa skill (in both CalendarHelper and CalendarConversation).
It should be a simple search and replace, but review the changes before you commit just to be sure.


generator-for-devise-jwt: Implement the generator for devise-jwt

Task Done

Added generators for devise-jwt

@TheZero0-ctrl I hope you also created a new Rails project, tried all configuration options here and made sure this generator is working without issue for each of them as well.

@TheZero0-ctrl I hope you also created a new Rails project, tried all configuration options here and made sure this generator is working without issue for each of them as well.

I have tested and everything works if devise is correctly configure for the api


Does 2.4.10 really support different index type besides brute-force?

I looked into the code, segcore_wrapper always create Growing segment, and growing segment only use brute-force in search?
If it's true, do you have plan to support different index type.

Yes, since sealed segment relies on complex logic such as binlog and compaction, milvus-lite does not integrate, brute-force performs well when the data size is hundreds of thousands, so the support priority for the index is not high.

still hope to support various types of indexing, as the index type is an important concept in vector databases (if not a key concept). Perhaps the implementation could be simplified? :flushed:

We will start work on this once 2.5 is released.
Please hold this for a while


Unable to load/attach multiple TC classifiers from same Bpf

My use-case requires attaching a different TC classifier to various interfaces with shared maps between them. To do this, I've used a single Bpf object and tried loading & attaching to the interfaces. I get a Error: File exists (os error 17) output when loading the program beyond the first. See code below - I'm not sure the eBPF code itself is relevant here.
Is there a correct way to accomplish this, or is this a limitation with TC eBPF attachments?
Kernel version: 5.10.0-20-amd64
Aya version: 0.11.0
use aya::{include_bytes_aligned, Bpf};
use aya::programs::{tc, SchedClassifier};
use aya_log::BpfLogger;
use clap::Parser;
use log::{info, warn};
use tokio::io::AsyncBufReadExt;
use tokio::signal;

mod tap;

#[derive(Debug, Parser)]
struct Opt {
    #[clap(short, long, default_value = "eth0")]
    iface: String,
}

#[tokio::main]
async fn main() -> Result<(), anyhow::Error> {
    let opt = Opt::parse();

    env_logger::init();

    #[cfg(debug_assertions)]
    let mut bpf = Bpf::load(include_bytes_aligned!(
        "../../target/bpfel-unknown-none/debug/bpf-testing"
    ))?;
    #[cfg(not(debug_assertions))]
    let mut bpf = Bpf::load(include_bytes_aligned!(
        "../../target/bpfel-unknown-none/release/bpf-testing"
    ))?;
    if let Err(e) = BpfLogger::init(&mut bpf) {
        // This can happen if you remove all log statements from your eBPF program.
        warn!("failed to initialize eBPF logger: {}", e);
    }

    let mut tap = tap::Tap::new()?;

    update_ifindex(&mut bpf, tap.if_index())?;

    info!("Please admin-up interface {}... Press enter once done.", tap.name());
    wait_for_enter().await;

    tc::qdisc_add_clsact(tap.name())?;
    let _tap_egress_link = {
        let tap_egress_program: &mut SchedClassifier = bpf.program_mut("tap_egress").unwrap().try_into()?;
        tap_egress_program.load()?;
        tap_egress_program.attach(tap.name(), aya::programs::TcAttachType::Egress)?
    };

    tc::qdisc_add_clsact(&opt.iface)?;
    let _phys_ingress_link = {
        // failing in this block
        let phys_ingress_program: &mut SchedClassifier = bpf.program_mut("phys_ingress").unwrap().try_into()?;
        phys_ingress_program.load()?;
        phys_ingress_program.attach(&opt.iface, aya::programs::TcAttachType::Ingress)?
    };

    tokio::task::spawn({
        let mut rx = tap.take_receiver().unwrap();
        async move {
            while let Some(p) = rx.recv().await {
                info!("RX'd packet - len {}...", p.len());
            }
        }
    });

    info!("Waiting for Ctrl-C...");
    signal::ctrl_c().await?;
    info!("Exiting...");

    Ok(())
}

fn update_ifindex(bpf: &mut Bpf, ifindex: u32) -> Result<(), anyhow::Error> {
    let mut ifindex_map = Array::try_from(bpf.map_mut("tc_target_ifindex")?)?;
    ifindex_map.set(0, ifindex, 0).map_err(Into::into)
}

async fn wait_for_enter() {
    let mut reader = tokio::io::BufReader::new(tokio::io::stdin());
    let mut buffer = Vec::new();

    let _fut = reader.read_until(b'\n', &mut buffer).await;
}

Thanks in advance.

Quite surprisingly, I removed tc::qdisc_add_clsact(&opt.iface)?; from my code and it seems to work now. Perhaps there is something global happening with the first invocation of that function for the tap0 interface.

It turns out the clsact qdisc isn't cleaned up on exit of the program. Hopefully this helps people in the future.
After app exits, here is TC state...
$ sudo tc qdisc show
qdisc noqueue 0: dev lo root refcnt 2
qdisc mq 0: dev enp31s0 root
qdisc pfifo_fast 0: dev enp31s0 parent :2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev enp31s0 parent :1 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc clsact ffff: dev enp31s0 parent ffff:fff1

Hi,
I was caught as well by this. There is no automatic cleanup (or maybe in some cases it doesn't happend and I couldn't see a way to undo programatically a call to qdisc_add_clsact).


set language level to 2.0, fixes #93

@zambrovski I think we can release this ... could you pick a random project, locally install & use the 2024.7.0-SNAPSHOT and approve?
I guess we just forgot to change the language level from 1.9 to 2.0 when we migrated to kotlin 2.0.0, as it is the default level anyway.


Great Tool!

Just a note to say that “samply” is a very nice and great tool.
Thanks for what’s obviously a lot of hard work!
eric

Thanks for the feedback!


Can't Open the Editor

So I tried opening the editor by downloading the JulGame repo and going to here JulGame.jl-main\src\editor\Editor\src\ and then running julia Editor.jl and I get this

Did you use the repl? Did you run include("Editor.jl") or julia ./Editor.jl

yes and both got the same error when in the repl.

I'll have to try and recreate this but I'm not sure what's going on here. It might be an environment issue. Is imgui installed to both the project and globally?

Could be OpenGL?
I have looked there, where the error log comes from and I see that they are precisely the ImGui modules that depend on OpenGL.


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-2.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2933

Questions ?
Please refer to the Backport tool documentation


fix: FLAVOR_APP_NAME  is not updating for 'Release-Production' in iOS

Description
I created a new flutter coro project called 'demo', but in the FLAVOR_APP_NAME, it always showtestApp not the name I set before like Demo

Steps To Reproduce

Create a new flutter core project by CLI
Open Runner.xcodeproj under iOS folder
search FLAVOR_APP_NAME under TARGETS Runner

Expected Behavior
Show corresponding app name not a fixed text.

Hi @hyj1204  👋 ! Thanks for opening an issue!
I was able to reproduce this issue using Very Good CLI 0.19.1 .


Expand Application Spotlights

In https://virtual-staging.ieeevis.org/year/2021/events.html

I think I've fixed this now, waiting to see how it looks on the website


Rename crates to use underscores

Description of change
Renames all projects to use underscores for their package and directory names.

identity -> identity_iota
identity-account -> identity_account
identity-account-storage -> identity_account_storage
identity-core -> identity_core
identity-credential -> identity_credential
identity-did -> identity_did
identity-iota -> identity_iota_client
identity-iota-core -> identity_iota_core

NOTE: this excludes the identity-diff and identity-diff-derive packages since those names are already fixed.
Notably, the root package is now named identity_iota. The root module for identity_iota_client (formerly identity_iota) changed from ::iota to ::client.
Updated documentation wherever possible but may have missed something.
Links to any relevant issues
Part of #869.
Type of change

[ ] Bug fix (a non-breaking change which fixes an issue)
[ ] Enhancement (a non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Fix

How the change has been tested
Tests etc. seem to pass locally.
Change checklist

[x] I have followed the contribution guidelines for this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Oh, one minor thing after running the stronghold-nodejs build locally the Cargo.lock of that project change quite a bid. Does that change belong in this PR?


Adding patch for default processing parameters set

@antgonza this adds the patch for adding the default parameters set.

Failures but seems that is something with Travis, restarted the build.

I think the problem is that the patch is waiting for user input.

@antgonza it should be fixed now

No luck ... :weary: seems like you are not testing this locally.

I did tested locally, but there is a specific test case that I did not tested and it is the one happening on Travis. At this point I run out of ideas on how to solve this. Any ideas?? Note that at this point you can ad the default parameters set using the command, so if there are no ideas on how to solve this, use the command to add the default parameter, so this does not block anything...

@josenavas Should we close this?


feat: (Un)ban participants (Frontend Implementation)

Description

This PR includes the frontend implementation of the ban feature implemented in #3770.
Closes #3618.
Changelog

Implemented a button to ban and unban a participant or moderator

Unbans can be found via the "disconnected" filter on the participants list

Added 2 tests to check whether that button exists

A confirmation window to ensure the action is intended

A toast confirms the action

Fixes the backend API to return the correct banned status

Prevents clickthrough on the Dialog Component and adds a custom classname for specific styling

Checklist

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] The light- and dark-theme are both supported and tested
[x] The design was implemented and is responsive for all devices and screen sizes
[x] The application was tested in the most commonly used browsers (e.g. Chrome, Firefox, Safari)

(Optional) Visual Changes

Update:
Role buttons for banned participants are now removed and the participant name is centered.
Additionally the opacity is only reduced (increase from 0.2) to 0.6 to improve readability.

@brandstetterm It is more or less intentional.
IIRC @BenedictHomuth implemented the backend side in such a way that if a participant is banned, a forbidden error is thrown.
If you want to, I can change it to a 404 error, this leads to the 404 page in the frontend too.
For reference this is located in boards.go:123.

@brandstetterm It is more or less intentional. IIRC @BenedictHomuth implemented the backend side in such a way that if a participant is banned, a forbidden error is thrown. If you want to, I can change it to a 404 error, this leads to the 404 page in the frontend too.
For reference this is located in boards.go:123.

jFYI: Yes, we discussed about it and settled with 403 as seen here

So what are you suggesting? I am a teapot? :p


Change color of node icon

Great work. I am sure I will need this in the future. However, I would like to suggest one small things: The node icon should be the same white-grayish color as the other nodes extending from Node, as blue might suggest that it extends from Node2D.

thanks @ThePat02, that makes sense. I'll change the icon color on the next release.


Linux: CMD could not be loaded

Attempting to load a DRM protected video results in  errors stating permission issue.
[40000:1206/093724.862067:ERROR:cdm_module.cc(138)] CDM at /home/nullrequest/.config/Skye/WidevineCdm/4.10.2391.0/_platform_specific/linux_x64/libwidevinecdm.so could not be loaded.
[40000:1206/093724.862293:ERROR:cdm_module.cc(139)] Error: /home/nullrequest/.config/Skye/WidevineCdm/4.10.2391.0/_platform_specific/linux_x64/libwidevinecdm.so: cannot open shared object file: Operation not permitted

It appears there is some regression with the integration between the Chromium sandbox and the Widevine CDM. A temporary solution, at least during development (using this for production is generally not a good idea), would be to disable the sandbox by passing --no-sandbox on the command line.
For completeness, please also provide a few more details about your environment:

Which version of ECS are you using?
Which version of Linux are you using?
Are you using any external sandboxing environment, like firejail or snap?

ECS: v16.0.4+wvcus
Linux: Fedora 35
no external sandbox

I just published v16.0.4+wvcus.1, that fixes this regression. Please try it out, and let me know how it goes!

I am still getting the same errors, it looks like the issue was not fixed
[66389:1207/112622.699439:ERROR:cdm_module.cc(138)] CDM at /home/nullrequest/.config/Skye/WidevineCdm/4.10.2391.0/_platform_specific/linux_x64/libwidevinecdm.so could not be loaded.
[66389:1207/112622.700100:ERROR:cdm_module.cc(139)] Error: /home/nullrequest/.config/Skye/WidevineCdm/4.10.2391.0/_platform_specific/linux_x64/libwidevinecdm.so: cannot open shared object file: Operation not permitted

I just confirmed that it does work on my box with v16.0.4+wvcus.1, again. Are you sure your electron was updated correctly? Please make sure that is the case:
$ grep version node_modules/electron/package.json
  "version": "16.0.4+wvcus.1",

$ shasum node_modules/electron/dist/electron
fbe3fbf348d2024e204e1dd478f58a89929ad212  node_modules/electron/dist/electron

If the issues still persists there is probably something else at play as well. Do you maybe have your home folder mounted as non-executable?

grep version node_modules/electron/package.json

it looks like the issue resolved it self after I removed the downloaded components and restarted


Fix securityconfig path

Description
Resolves #39
Issues Resolved
#39
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Apologies, this includes other changes, removing and recreating with just this change.


Update google-cloud-bigquery to 2.10.8

Updates com.google.cloud:google-cloud-bigquery from 2.10.7 to 2.10.8.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.google.cloud", artifactId = "google-cloud-bigquery" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequest = { frequency = "@monthly" },
  dependency = { groupId = "com.google.cloud", artifactId = "google-cloud-bigquery" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #202.


When I attempt to open magit, I get 'Symbol's function definition is void: prettier-js-mode'

What did you expect to happen?
When I press SPC-g-g I expect to get the magic status buffer open.
What actually happened?
Symbol's function definition is void: prettier-js-mode is printed at the bottom of the emacs window.
Additional details:
I have a standard doom config, I have enable vterm, javascript, c, tmux modules.
SPC-g-g to open magit. In other projects, for example a Vanilla JS project, this opens correctly.
In messages, I get the same error as above along with Doom loaded 198 packages across 39 modules in 0.624s and package cl is deprecated.

Since Doom doesn't install prettier-js-mode, this can only be cause by our private config. Make sure you are installing the package correctly and have run doom sync.