ToC in contributing doc

Description
ToC in contributing doc
Type of change

Documentation update

Testing steps
N/A
Checklist

[ ] make before_commit passes
[ ] updated documentation wherever necessary
[ ] added or modified tests if necessary
[ ] updated schemas and validators in insights-data-schemas in case of input/output change

Codecov Report

Merging #478 (7b34d91) into master (a7cb872) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #478   +/-   ##
=======================================
  Coverage   72.14%   72.14%
=======================================
  Files          12       12
  Lines         718      718
=======================================
  Hits          518      518
  Misses        196      196
  Partials        4        4

Continue to review full report at Codecov.

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


launching 3dlayout from edb in 2021R1 doesn't work

Before submitting the issue

[X] I have searched among the existing issues
[X] I am using a Python virtual environment

Description of the bug
in 2021R1, pyaedt.Hfss3dLayout does give error. It failed to execute
Steps To Reproduce
Use pyaedt.Hfss3dLayout with an edb. it will fail in 2021 R1
Which Operating System are you using?
Windows
Which Python version are you using?
3.10
Installed packages
ansys-api-meshing-prime==0.1.1
ansys-meshing-prime==0.2.0
appdirs==1.4.4
bcrypt==4.0.1
certifi==2022.12.7
cffi==1.15.1
charset-normalizer==3.0.1
click==8.1.3
clr-loader==0.2.5
colorama==0.4.6
contourpy==1.0.7
cryptography==39.0.0
cycler==0.11.0
dash==2.8.1
dash-access-manager==0.1.3
dash-bootstrap-components==1.3.1
dash-core-components==2.0.0
dash-daq==0.5.0
dash-html-components==2.0.0
dash-table==5.0.0
dnspython==2.3.0
Flask==2.2.2
Flask-Login==0.6.2
fonttools==4.38.0
grpcio==1.51.1
idna==3.4
imageio==2.25.0
itsdangerous==2.1.2
Jinja2==3.1.2
kiwisolver==1.4.4
MarkupSafe==2.1.2
matplotlib==3.6.3
mongoengine==0.26.0
numpy==1.24.1
packaging==23.0
pandas==1.5.3
paramiko==3.0.0
Pillow==9.4.0
plotly==5.13.0
plumbum==1.8.1
pooch==1.6.0
protobuf==3.20.3
psutil==5.9.4
pyaedt==0.6.45
pycparser==2.21
pymongo==4.3.3
PyNaCl==1.5.0
pyparsing==3.0.9
PyQt5==5.15.8
PyQt5-Qt5==5.15.2
PyQt5-sip==12.11.1
python-dateutil==2.8.2
pythonnet==3.0.1
pytz==2022.7.1
pyvista==0.37.0
pywin32==305
requests==2.28.2
rpyc==5.3.0
scooby==0.7.1
six==1.16.0
tenacity==8.2.0
urllib3==1.26.14
vtk==9.2.5
Werkzeug==2.2.2

@louseph
could you please share the command line you use to open the edb ?
Do you have a chance to use a more recent Aedt version ?
Also please make sure you have the latest Pyaedt package
pip intall pyaedt --upgrade
thanks

PyAEDT requires Ansys Electronics Desktop (AEDT) 2021 R2 or later
https://aedt.docs.pyansys.com/release/0.6/Getting_started/Installation.html

Hi
One correction. The version is 2022 R1
target_aedb= os.path.join(os.getcwd(),'test.aedb')
h3d = Hfss3dLayout(specified_version="2022.1", projectname=target_aedb, non_graphical=non_graphical)
Thanks & Regards,
Lindo Ouseph / Application Engineer
[cid:4818cba2-3d37-4408-92ec-65b40aac4853]
Bangalore / India
@.***  /  www.ansys.comhttp://www.ansys.com/

From: svandenb-dev @.>
Sent: Tuesday, February 14, 2023 12:53 PM
To: pyansys/pyaedt @.>
Cc: Lindo Ouseph @.>; Mention @.>
Subject: Re: [pyansys/pyaedt] launching 3dlayout from edb in 2021R1 doesn't work (Issue #2466)
[External Sender]
@lousephhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flouseph&data=05|01|lindo.ouseph%40ansys.com|aef55117d7cf41ba4c7b08db0e5c6d8d|34c6ce6715b84eff80e952da8be89706|0|0|638119562407298597|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=3BDpVLb06mIWc5ZCQ6wr8rI5uodc5IPbUKXnH2mSm6E%3D&reserved=0
could you please share the command line you use to open the edb ?
Do you have a chance to use a more recent Aedt version ?
Also please make sure you have the latest Pyaedt package
pip intall pyaedt --upgrade
thanks
—
Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpyansys%2Fpyaedt%2Fissues%2F2466%23issuecomment-1429251132&data=05|01|lindo.ouseph%40ansys.com|aef55117d7cf41ba4c7b08db0e5c6d8d|34c6ce6715b84eff80e952da8be89706|0|0|638119562407298597|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=puRqPC84lY2kljT%2FCLEZS%2FNAzer1slRbKCeSh3cJOaA%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAP63274QRJTVQOU4SVCTQPTWXMXITANCNFSM6AAAAAAU3DFCFE&data=05|01|lindo.ouseph%40ansys.com|aef55117d7cf41ba4c7b08db0e5c6d8d|34c6ce6715b84eff80e952da8be89706|0|0|638119562407298597|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=lfeLeCAbQKggihBl7kH3BvQmZyA2PvPwCaDTxMdhuUQ%3D&reserved=0.
You are receiving this because you were mentioned.Message ID: @.***>

@louseph
could you please add your error log here ? I am not able to reproduce your issue.
Thanks

@louseph one thing to check would be if aedt file already exists and maybe if the EDB were saved in an later version (not sure it would a pb but worth to check)

Hi @louseph did you checked this issue ? wanted to know if this can be closed

Hi @louseph  AEDT Fails to import an EDB if the project with a same name exists in the same folder. (Example project.aedb and in the same folder there is project.aedt). this behaviour is reproducible in UI where you would get an error of project existing.
One approach to use could be that if I a project.aedt exists I open that one instead of trying to reimport the edb file

The issue is happening only with 2022 R1.
For 2023 R1, it was working fine
Thanks & Regards,
Lindo Ouseph / Application Engineer
[cid:cc948368-f5a6-487b-a964-8e5c6418e7c0]
Bangalore / India
@.***  /  www.ansys.comhttp://www.ansys.com/

From: Massimo Capodiferro @.>
Sent: Friday, March 17, 2023 1:21 AM
To: pyansys/pyaedt @.>
Cc: Lindo Ouseph @.>; Mention @.>
Subject: Re: [pyansys/pyaedt] launching 3dlayout from edb in 2021R1 doesn't work (Issue #2466)
[External Sender]
Hi @lousephhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flouseph&data=05|01|lindo.ouseph%40ansys.com|fb816601b1f74f0123e508db2657d545|34c6ce6715b84eff80e952da8be89706|0|0|638145930992838191|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=%2BM2E%2FLWzFKmJuD%2BiXV1id%2Bp7dHP2PDUIxFvQnlm7IGU%3D&reserved=0 AEDT Fails to import an EDB if the project with a same name exists in the same folder. (Example project.aedb and in the same folder there is project.aedt). this behaviour is reproducible in UI where you would get an error of project existing.
One approach to use could be that if I a project.aedt exists I open that one instead of trying to reimport the edb file
—
Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpyansys%2Fpyaedt%2Fissues%2F2466%23issuecomment-1472649684&data=05|01|lindo.ouseph%40ansys.com|fb816601b1f74f0123e508db2657d545|34c6ce6715b84eff80e952da8be89706|0|0|638145930992838191|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=Z4d4tU%2Fa6%2FOruhonXpQdkM0j08VQ%2FHw40ylJghi%2FAUw%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAP632755WYKQ23TCGUHTV4DW4NVMBANCNFSM6AAAAAAU3DFCFE&data=05|01|lindo.ouseph%40ansys.com|fb816601b1f74f0123e508db2657d545|34c6ce6715b84eff80e952da8be89706|0|0|638145930992838191|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=CwYB4Dk7fl3r5LLgkQmPkPDQ0v7xDUW9IAsdvlx2SjQ%3D&reserved=0.
You are receiving this because you were mentioned.Message ID: @.***>

@louseph Please could you check if the issue is solved and close the issue?


LBFGS optimization restricted to bounded algorithm

L-BFGS-B optimization algorithm appears to be restricted to using the constrained version algorithm (the "-B" part), which I'm guessing is a little slower than the unconstrained version (not sure if it's just overhead). More importantly, this means that even when the parameters are not bounded at all, Scipy's version has to create vectors of Nonetype, which unnecessarily takes up memory, esp. when models are big (like 50M parameters in my case).
What about making a separate LBFGS algorithm, or having that as an option in the same module?
Reproducing code example:

Sample code to reproduce the problem

Error message:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  ...

Scipy/Numpy/Python version information:

I remember someone else asked the same question at SciPy'19. Seems like a good idea.
In general: new optimization algorithms are always welcome if they add something over the existing local or global optimizers.
I'll close this, because we don't want to keep enhancement requests open as issues. PR welcome I'd say. As a separate algorithm seems better.


README describes the error

yarn dev-check
command can not run
error Command "dev-check" not found.

I have no idea how it is happened. Maybe accidently rolled back changes while preparing to repository split.
Fixed.


Support query prefixes

For @elixir-lang/ecto-adapters,

[x] PG
[x] MySQL
[ ] Mongo
[ ] MSSQL
[ ] SQLite3

Query prefixes allow developers to change the schema or the database a query will run on. Here is the relevant commit: https://github.com/elixir-lang/ecto/commit/5ab34242d393f634074315c9982c73f5a1973bac
The prefix can be found in the query itself and should be considered for all operations (all, update_all, delete_all). Note that insert, update and delete now receive an extra argument too, which is the prefix. Here are the test you change and add to test the relevant changes:
https://github.com/elixir-lang/ecto/blob/5ab34242d393f634074315c9982c73f5a1973bac/test/ecto/adapters/postgres_test.exs

SQLite: https://github.com/jazzyb/sqlite_ecto/commit/980038b1967a2555d728002773a24bbe388e6533

MongoDB: https://github.com/michalmuskala/mongodb_ecto/commit/7323e46d4f6cc8cb2dec7394783dccf9d75c60ae

MSSQL: livehelpnow/tds_ecto@20abb725d3571562626b0a51cd504ebff6438364


TS-4745: Initializes pRecord.failCount in ParentRecord::ProcessParents.

New pull request on behalf of keith2008 to insure that pRecord.failCount is properly initialized.

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/611/ for details.

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/507/ for details.

Fwiw, we should make sure to review and mark a PR for CI build before merging.

Ok, got it.
Thanks
John J. Rushford
From: Leif Hedstrom<EMAIL_ADDRESS>Reply-To: apache/trafficserver<EMAIL_ADDRESS>Date: Thursday, August 25, 2016 at 8:00 PM
To: apache/trafficserver<EMAIL_ADDRESS>Cc: John Rushford<EMAIL_ADDRESS>State change<EMAIL_ADDRESS>Subject: Re: [apache/trafficserver] TS-4745: Initializes pRecord.failCount in ParentRecord::ProcessParents. (#923)
Fwiw, we should make sure to review and mark a PR for CI build before merging.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://github.com/apache/trafficserver/pull/923#issuecomment-242603120, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEVybhygNLP4o2UWcrz8r2d8K_PraQeHks5qjki9gaJpZM4JtTFR.


Stable 2605.6.0 systemd log spam Failed to set up mount unit: Invalid argument

Description
In flatcar 2605.6.0 systemd spams the logs with following message:
Failed to set up mount unit: Invalid argument
The message was not present in that high rate in 2512.3.0
full message:
{"_UID":"0","_SOURCE_REALTIME_TIMESTAMP":"1603701224502087","_SELINUX_CONTEXT":"system_u:system_r:kernel_t:s0","CODE_FILE":"src/core/mount.c","_TRANSPORT":"journal","_PID":"1","_CAP_EFFECTIVE":"3fffffffff","_SYSTEMD_CGROUP":"/init.scope","__REALTIME_TIMESTAMP":"1603701224502791","_SYSTEMD_SLICE":"-.slice","_BOOT_ID":"5969ee0ff941417a816c90b60e0baf44","_SYSTEMD_UNIT":"init.scope","MESSAGE":"Failed to set up mount unit: Invalid argument","__CURSOR":"s=1098623013c143cc8025c60e308f1962;i=1e7f26;b=5969ee0ff941417a816c90b60e0baf44;m=375bef88d5;t=5b28ec9cff607;x=fd0a19da9429b7d4","_HOSTNAME":"kworker-fe-sandbox-iz1-bs003","SYSLOG_FACILITY":"3","CODE_LINE":"1681","PRIORITY":"4","_GID":"0","__MONOTONIC_TIMESTAMP":"237765626069","_EXE":"/usr/lib64/systemd/systemd","_COMM":"systemd","_MACHINE_ID":"35a1b0189c5d4ce09aeaef2fefad86f9","_CMDLINE":"/usr/lib/systemd/systemd --switched-root --system --deserialize 17","CODE_FUNC":"mount_setup_unit","SYSLOG_IDENTIFIER":"systemd"}

Impact
This produces several hundred gbs of logs in our ~250 node clusters
Additional information
The cause seems to be too long paths in mount units which systemd wants to create .mount files for which are too long.
E.g. some mounts on the system are longer than256 like:
/var/lib/rkt/pods/run/25633007-13d0-41ad-8247-99e6755bfd2b/stage1/rootfs/opt/stage2/hyperkube/rootfs/var/lib/kubelet/pods/fd42b544-4b6d-493a-8d2f-6e8fb48f7e11/volumes/kubernetes.io~rbd/pvc-09736f94-fd6f-4a3d-9ff2-63af3ffa7fdd
In systemd 246 rate limiting for these logs was added:
https://github.com/systemd/systemd/pull/15911
It may be good to cherry pick this patch to stable if the mount paths cannot be shortened.

with flatcar 2605 and the newer systemd the message now looks like this:
Failed to generate valid unit name from path '/var/lib/rkt/pods/run/ef7f5aac-2a90-4213-9480-ac6d54e4a696/stage1/rootfs/opt/stage2/hyperkube/rootfs/var/lib/kubelet/pods/198aed74-22d4-4409-b531-ffd07c576362/volumes/kubernetes.io~secret/fluentd-platform-token-nf4hj', ignoring mount point: Invalid argument

and still occurs in pretty high frequency (about 15000 per hour from 60 hosts total)

Seems you are using rkt through kubelet-wrapper to run the kubelet. You can also use the binaries directly, see section 1.2 here: https://suraj.io/post/2021/01/kubeadm-flatcar/ for an example.

With a drop-in unit file (using prefix matching) one can lower the log level, example here for Docker: https://github.com/docker/for-linux/issues/679#issuecomment-1004955357
Closing it now


Improve header wording in create collection

Change wording to : "Create a new collection in index"

Codecov Report

Merging #382 into 2.x will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              2.x     #382   +/-   ##
=======================================
  Coverage   85.89%   85.89%
=======================================
  Files          38       38
  Lines         723      723
=======================================
  Hits          621      621
  Misses        102      102

Continue to review full report at Codecov.

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


[Postgres] - Insert query failing when executed with Postgres

Python version: 3.8
PyPika version: 0.48.8
Psycopg2 version: 2.9.3

Hello! This is my first time using PyPika and I'm trying to create a query for an insert statement but I'm getting this error:
psycopg2.errors.UndefinedTable: relation "cognito_ids" does not exist LINE 1: INSERT INTO "cognito_ids" ("aws_user_id","created_at","updat..

I logged the query to see how it was generated and got this:
INSERT INTO "cognito_ids" ("aws_user_id","created_at","updated_at") VALUES ('e8e4d8e8-020e-4a48-8bec-7be25880c89a','2022-01-11 23:52:06','2022-01-11 23:52:06')
If I execute the generated query using a Postgres GUI client it success, but passing the query to psycopg2 fails, am I missing something? I really appreciate some help!
import psycopg2
from dateutil import tz
from datetime import datetime
from pypika import Table, Query

conn = psycopg2.connect(host=host, database=database,
                        user=username, password=password)

now = datetime.now(tz=tz.UTC)

table = Table('cognito_ids')
q = Query.into(cognito_ids).columns(
                "aws_user_id", "created_at", "updated_at").insert(
                    "e8e4d8e8-020e-4a48-8bec-7be25880c89a",
                    now.strftime("%Y-%m-%d %H:%M:%S"),
                    now.strftime("%Y-%m-%d %H:%M:%S")
            )

cur = db.cursor()

cur.execute(q.get_sql())

cur.close()

Hello 👋
I had a similar issue.
It turns out that table name as a column's names not always can be in quotes.
INSERT INTO cognito_ids (aws_user_id,created_at,updated_at) VALUES ('e8e4d8e8-020e-4a48-8bec-7be25880c89a','2022-01-11 23:52:06','2022-01-11 23:52:06')

Try simply stripping unwanted quotes from your query:
q = str(q).replace('"', "")

I hope you find it this helpful 😃


[BUG]: Updating array field in Firestore database

Angular Version: 4.2.4
Angularfire2 version: 5.0.0-rc.3
Firebase SDK version: 4.6.2
In a particular document when we try to update a particular field of the array type whole of the field is deleted and written again meaning that suppose we have array field containing data something like as shown:
  locations: {     0: India,     1: Australia,     2: USA   }
Now suppose we want to add another location to this array and we pass a value through Update. After update the database will be:
  locations: {     0: Canada   }

Hey @psingl! I'll need a Stackblitz.com example from you in order to properly debug this. Can you reproduce the issue and post the link here?


EXCEPTION_ACCESS_VIOLATION and SIGSEGV with 11.0.1+13

We have a crash in our test system on Linux and Windows on the same code position. Attached are crash dumps for both platforms.
hs_err_pid590.log
hs_err_pid11476.log
The crash is reproducible on our docker based test system of every run of this test.

@Horcrux7 And do you get the same crash if you run the Oracle OpenJDK build from jdk.java.net?  I'm trying to identify if this is an issue with our build process or an OpenJDK upstream bug.

The tests ran before with Oracle JDK 8, which work. Currently we switch to JDK 11 and switch the JDK vendor because known reasons.
I will try to run the test with Oracle JDK 11 and post the result here.
Currently it is confusing where bug reports should be published. In the crash, this site is suggested.

Yes, it crash also with the Oracle JDK: JRE version: OpenJDK Runtime Environment (11.0.1+13) (build 11.0.1+13)

@Horcrux7 Thank you for testing!  That confirms the bug report should be passed upstream (we triage her first).
The place to report this is In the HotSpot group at OpenJDK --> https://mail.openjdk.java.net/mailman/listinfo/hotspot-dev
You can send them your original bug report and the 2 hs files (OpenJDK mailing lists sadly do not support attachments, so I recommend hosting them on Pastebin).  You can mention that this happens on an Adopt build and the Oracle build which should make it clear to them that it's likely an issue at the source.
If you have any troubles with all of this let me know and I'll help!


undefined: "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common".CredentialIface

while I using tdmq API, I encounter the following error:
../../../../../go/pkg/mod/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq@v1.0.298/v20200217/client.go:37:27: undefined: "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common".CredentialIface

it might caused by out dated github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common, newer version of tdmq uses a new feature in common package.

try update to latest version:
go get -u github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common
go get -u github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq


Update dotnet-trace instructions to use dotnet-trace ps command

dotnet-trace has a ps command that can be used to determine the PID of all running dotnet processes on the machine, so all these instructions are outdated/unnecessary.

@sywhang  thanks. This is a big improvement.

cc @IEvangelist


[PrettyBot] Merge prettybot/refs/heads/main to refs/heads/main

This pull request has been created by OctoVersion > PrettyBot in TeamCity. This is an experiment, please reach out to #team-core-platform-requests in Slack if there are any issues.

Will recreate


Mismatch in pytorch model state dictionary

There is a mismatch when loading model checkpoints for the pytorch implementation. Is this related since models were taken from padddle ?
Load model.state_dict, {'missed': [], 'unmatched': ['decoder.denoising_class_embed.weight', 'decoder.enc_score_head.weight', 'decoder.enc_score_head.bias', 'decoder.dec_score_head.0.weight', 'decoder.dec_score_head.0.bias', 'decoder.dec_score_head.1.weight', 'decoder.dec_score_head.1.bias', 'decoder.dec_score_head.2.weight', 'decoder.dec_score_head.2.bias', 'decoder.dec_score_head.3.weight', 'decoder.dec_score_head.3.bias', 'decoder.dec_score_head.4.weight', 'decoder.dec_score_head.4.bias', 'decoder.dec_score_head.5.weight', 'decoder.dec_score_head.5.bias']}
I am trying to finetune the model on a custom dataset, would this impact ?

I am trying to finetune the model on a custom dataset, would this impact ?

This is normal because your dataset and Coco's category are different

I am trying to finetune the model on a custom dataset, would this impact ?

This is normal because your dataset and Coco's category are different

Thank you for the reply, I resolved this through the findings. Basically for a custom training, those layers will be trained from scratch!. Thank you for the wonderful work!


How to create 3D line to connect two nodes?

I'd like to visualize a graph in VR 3D space.
How do I make a line to connect two nodes or 3D objects. Unclear if or how I can use the Polyline for this?

Come to think of it, I guess I could just use a flat box? But kind of hacky...

Hi @kristianmandrup, we do not yet support 3D polylines but using a flat box might work for you. 3D Polylines is in our backlog. Will update this issue when we have more information on when this feature will be added.

Hi @dam00n. Thanks for the quick reply. Hope this feature has somewhat high priority and will land in next release :)
Cheers!


All sensor output to UI

As a gamer I want the car to receive all the available sensor information from TANK so that I can get more data for my competitive skills.
Acceptance Criteria: The car outputs its sensor data to a page on the UI.

[ ] Odometer data (from DistanceCar)

getDistance
getSpeed

[ ] InfraredAnalogSensor data

getMedianDistance
getDistance, for all 4 sensors

[ ] HeadingSensor (Gyroscope)

getHeading

The screen has speed slider, score and timer information.

The screen has speed slider, score and timer information.


Refactor Kubernetes compatibility tables for single source

Where is the problem?
https://docs.konghq.com/kubernetes-ingress-controller/latest/references/version-compatibility/
What happened?
To simplify edit workflows and avoid consuming screen real estate with long-outdated versions, the current versioned Kubernetes compatibility tables only include the 5 most recent KIC versions in columns and one Kong/Kubernetes/Istio version past the end of those KIC versions' compatibility through the latest version.
For example, if the latest KIC version is 2.6, the table columns will show KIC versions 2.2 through 2.6. If the oldest Kong version compatible with KIC 2.2 is Kong 2.0 and the latest Kong version is 2.8, the table rows will show Kong 1.5 (compatible with none of the listed KIC versions) through 2.8.
Limiting the rows is a new change I'd intended to make for the KIC 2.4 release: previously we showed a number of versions past what any listed KIC version was compatible with, which seemed unnecessary. Showing only one version incompatible with any displayed version should be sufficient to demonstrate that neither it nor older versions are compatible with the listed KIC versions.
This approach is easy to manage in plaintext, but does not translate well to the single-source model using {% if_version gte: A.B.x %} directives inline with the table.
What did you expect to happen?
Converting tables into a set of YAML version objects similar to https://github.com/Kong/docs.konghq.com/blob/main/app/_data/tables/plugin_index.yml and generating tables from those objects will allow editors to add new versions easily.
Code of Conduct and Community Expectations

[X] I agree to follow this project's Code of Conduct
[X] I agree to abide by the Community Expectations

Jekyll does have a CSV tabulation guide: https://jekyllrb.com/tutorials/csv-to-table/
We also used to have a JSON-based version for gateway. Maybe still do, but it moved: https://docs.konghq.com/gateway/2.8.x/compatibility/ uses https://github.com/Kong/docs.konghq.com/blob/main/app/_data/tables/compat.json via https://github.com/Kong/docs.konghq.com/blob/main/app/gateway/2.8.x/compatibility.md?plain=1#L25-L27


Rename file before upload

Hello,
I'm trying to rename a file before uploading it. Is it possible?
I tried renaming "file.name" both in "getUploadParams" and in "onChangeStatus" function, but I noticed that it is a readonly field.
Code:

I also tried, in "getUploadParams", to modify the returned value including a new File with the modified name as a property of "fields" object: in this case, in the request there are two files instead of one.
Code:

Request:

Thank you so much!

@NotMyUid Did you solve this?

Hi @mariomurrent-softwaresolutions ,
Solved with the use of a work-around.. I post here the steps we followed in order to rename a file before it has been uploaded.

Step one consists in disabling auto-upload (no-longer use "getUploadParams").
Keep listening for status change, then create a copy of the original file, rename it, and store in a global variable.

Code:

Create a method which uploads the new file to your destination.

Code:

Add a button to your template in order to upload the image, on click event call the method you wrote at step 3.

Hope this helps, best regards :)

@NotMyUid Yeah I found the same stuff. Thx for information. This works like a charm although its a bit hacky


REGEX errors

For some reason I cant restore my backup as it gives a regex error. it might be due to some silly thing that I am missing, but still cant get my head around it.
REGEX+=T(2[0-3]|[01][0-9]):[0-5][0-9]$: not found
this error keeps popping up when I use
$DIR/bin/restore --storage drive1 --time 2021-07-02T15:59 /
what is the mistake in this command?
$DIR/bin/restore --storage drive1 --list does return a list of backups so it should be possible to restore. any clues?

That's a bug.
Normally, I write shell scripts to comply with POSIX so they run correctly on as many shells as possible.  It appears that I let a BASH-ism slip through and the shell on your system doesn't understand it.  That's been corrected.  Running $DEST/bin/update will pull the latest from GitHub and install it.

it working as expected now. thanks a lot


[Feature Request]: Add a mode of LTM

What is your request?
Hello, I have seen that a mode is missing on the tracker. In effect, the last week, the LTM "Lily Leapers Limbo" (Fol'Virevoltes Tropicales in French) was appearing but, the tracker didn't recognize it. Can you add it to allow the tracker to choose it when we play at this mode.
Thanks for reading my message and have a good day :) .
Kind Regards, EnoGame

Will be added in v1.319 (upcoming release)

Ok, thank you for your answer <3 . I will wait for this version so 😅.


Upgrade Drone from 0.x to 1.x

This PR updates the docker-compose definitions used in production (drone-server, drone-agent) as well as the quick documentation related to the infrastructure and common tasks.

Note: the compose files have been deployed earlier today, theses changes sync master with the infrastructure's state.


Issue #000 feat: Sync-tool for coursebatch sync

Codecov Report

Merging #538 into course-batch-jobs will increase coverage by 0.29%.
The diff coverage is n/a.

@@                   Coverage Diff                   @@
##             course-batch-jobs     #538      +/-   ##
=======================================================
+ Coverage                32.29%   32.58%   +0.29%
- Complexity                1236     1243       +7
=======================================================
  Files                      170      170
  Lines                    15074    15074
  Branches                  2392     2392
=======================================================
+ Hits                      4868     4912      +44
+ Misses                    9469     9424      -45
- Partials                   737      738       +1

Impacted Files
Coverage Δ
Complexity Δ

.../ekstep/searchindex/processor/SearchProcessor.java
66.36% <0%> (+0.9%)
99% <0%> (ø)
:arrow_down:

...p/searchindex/elasticsearch/ElasticSearchUtil.java
47.94% <0%> (+4.93%)
52% <0%> (+3%)
:arrow_up:

...dex/transformer/AggregationsResultTransformer.java
100% <0%> (+100%)
4% <0%> (+4%)
:arrow_up:

Continue to review full report at Codecov.

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


Make cargo fetch able to ignore target validation when reading the manifest files

There are some workflows where you don't have yet available the sources from your project target, but you still want to download the dependencies, in order to isolate or optimize your build pipeline.
I was thinking that there is no much benefit from checking targets at all during cargo fetch, so maybe this is a change that would be overall nice to happen.
I can give more details from my real use case (docker), and about why this would be not only good in terms of isolation but also for speeding up the building process. Basically, the reason of the speed up relies on how docker build cache works. If you add a manifest file in an early build step, and you operate over it, you will cache the resulting intermediate image, and the cache will get invalidated only if you modify that manifest file, which is expected to happen not so often. That way, you can add the rest of the sources in a later step, and build them using an environment that is already cached into an intermediate image, so you don't need to rebuild the whole pipeline from scratch every time your code changes.

Seems reasonable to me! When you mention target validation, do you mean how we run the compiler to learn a bit of information? I'm curious what errors you're seeing here.

This is the error of this particular use case:
Sending build context to Docker daemon 5.632 kB
Step 1 : FROM scorpil/rust:1.7
 ---> 1c1705caf03f
Step 2 : WORKDIR /app
 ---> Using cache
 ---> 359515da308b
Step 3 : ADD Cargo.toml /app/Cargo.toml
 ---> Using cache
 ---> a6f0db198d73
Step 4 : RUN cargo fetch
 ---> Running in 02370a42a457
failed to parse manifest at `/app/Cargo.toml`

Caused by:
  no targets specified in the manifest
  either src/lib.rs, src/main.rs, a [lib] section, or [[bin]] section must be present
The command '/bin/sh -c cargo fetch' returned a non-zero code: 101

The workaround is clear there in the nice error description. Creating a fake src/main.rs with just 'fn main() {}' is a possible hack. But defining a [[bin]] section looks a bit better.
In fact, I don't know what is the idiomatic cargo manifest definition, but if it is always recommended to add the [[bin]]/[lib] section, then there is no need to address this change, because the error would be consequence of having an ill-formed cargo manifest file, more than the fetch behaviour. I'm still unsure about the designers intention with this.

Aha! I think I see what's going on here.
These targets, the [lib] and [[bin]] ones, unfortunately can't be ignored. We need to successfully parse the manifest to ensure that we have a list of dependencies to fetch during cargo fetch. If you'd like to just prepopulate the index, however, you could do something like cargo new foo && cargo fetch --manifest-path foo/Cargo.toml perhaps?

This sounds like there's a workaround. Please reopen if this workaround is insufficient!


Adding MSG_NAV_HPPOSLLH for high precision RTK positioning + float64 lon/lat/alt

Changes related to processing HPPOSLLH and converting lat/lon/alt values from int32 to float64
Currently LAT/LON/ALT values come mostly from UBX_MSG_NAV_PVT message, which does not deliver high precision components to _gps_position ORB message (a.k.a. SensorGps.msg).
This PR seeks to add parsing of the MSG_NAV_HPPOSLLH message and delivering high precision components of the coordinates to the PX4 codebase.
It also seeks to replace definitions of lat/lon/alt values in SensorGPS.msg from int32 to float64, which allows to preserve centimeter-level precision delivered by RTK GPS. These fields will be also renamed for clarity.
My code works fine on my rover, removing random jerking  which was caused by low precision "rounding" of the coordinates. With centimeter accuracy my rover (lawnmower) moves smoothly and precisely, which is critical for agricultural vehicles.
I have dual antenna F9P configuration and also take advantage of precise heading (RELPOSNED), as described here: https://github.com/PX4/PX4-GPSDrivers/pull/131
The values are also passed to EKF2 for better estimates and other consumers. That change is handled by the following PR:
https://github.com/PX4/PX4-Autopilot/pull/21678
Note:
This is how the mentioned values look like PX4-Autopilot/msg/SensorGps.msg, used to generate sensor_gps_s structure:
Now (after renaming):
...
float64 latitude_deg		# Latitude in degrees, allows centimeter level RTK precision
float64 longitude_deg		# Longitude in degrees, allows centimeter level RTK precision
float64 altitude_msl_m		# Altitude above MSL, meters
float64 altitude_ellipsoid_m	# Altitude above Ellipsoid, meters
...

Before:
int32 lat			# Latitude in 1E-7 degrees
int32 lon			# Longitude in 1E-7 degrees
int32 alt			# Altitude in 1E-3 meters above MSL, (millimetres)
int32 alt_ellipsoid 		# Altitude in 1E-3 meters bove Ellipsoid, (millimetres)

I will have to trace it if you really want exact answer, but my understanding is that only the main device will compute heading, and send it, while the secondary doesn't do it. I might be wrong. Is it important if it does?
Best Regards,
-- Sergei

From: Beat Küng @.>
Sent: Friday, July 7, 2023 10:59:50 AM
To: PX4/PX4-GPSDrivers @.>
Cc: Sergei Grichine @.>; Author @.>
Subject: Re: [PX4/PX4-GPSDrivers] Adding MSG_NAV_HPPOSLLH for high precision RTK positioning + float64 lon/lat/alt (PR #136)
@bkueng commented on this pull request.

In src/ubx.cpphttps://github.com/PX4/PX4-GPSDrivers/pull/136#discussion_r1256052329:

@@ -803,10 +800,6 @@ int GPSDriverUBX::configureDevice(const GPSConfig &config, const int32_t uart2_b
cfgValset<uint8_t>(UBX_CFG_KEY_CFG_UART1INPROT_NMEA, 0, cfg_valset_msg_size);
cfgValset<uint8_t>(UBX_CFG_KEY_CFG_UART1OUTPROT_UBX, 1, cfg_valset_msg_size);
cfgValset<uint8_t>(UBX_CFG_KEY_CFG_UART1OUTPROT_RTCM3X, 1, cfg_valset_msg_size);

          cfgValset<uint8_t>(UBX_CFG_KEY_MSGOUT_UBX_NAV_RELPOSNED_UART1, 0, cfg_valset_msg_size);

Just to double-check: as it's now enabled on both devices, are you getting this message only on 1 device (the rover)?
—
Reply to this email directly, view it on GitHubhttps://github.com/PX4/PX4-GPSDrivers/pull/136#pullrequestreview-1519215283, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD2LLJPO2UHEP6EUIYUVZX3XPAW7NANCNFSM6AAAAAAZRYXBNQ.
You are receiving this because you authored the thread.Message ID: @.***>


Update firrtl to 1.4-20200603-SNAPSHOT

Updates edu.berkeley.cs:firrtl from 1.4-SNAPSHOT to 1.4-20200603-SNAPSHOT.
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!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "edu.berkeley.cs", artifactId = "firrtl" } ]

labels: library-update

Don't mess with Berkeley dependencies.


I should be allowed to add repo tags to my profile.

Many developers on github dont commit publicaly on all repositories they work. So many developers may know how to woprk on more repositories or technologies than available in their github profile. So users should be able to add these tags by themselves for better search by expertise areas.

@yashsaxena Where should this be put on the profile page?


update SNOMED mapping to include v2 codes

See details related to the development of this mapping in https://github.com/lassoan/SlicerTotalSegmentator/pull/40
@wasserth related to this PR, per discussion with @lassoan in https://github.com/lassoan/SlicerTotalSegmentator/issues/42#issuecomment-1783518201, our understanding is that the actual numeric label used in the segmentation result depends on the specific task, and the column in the mapping document that corresponds to the numeric label may be misleading. Maybe it is better to drop that column altogether?

Thanks for the update. Great work! Yes, the numeric label / ID column can be a bit misleading this way. Probably it is best to remove it. Do you want to update the PR?

Yes, I will update the PR shortly - thank you!

@wasserth done!

Great! Thank you!


Fixes #42 by filtering duplicate keys of metrics and dimensions out o…

…f the request

Coverage increased (+0.02%) to 97.521% when pulling a55d70ef47d3a7f73ae316e57921657accfc99bf on dupe_metrics into 3ad5405c4a1a9409bbfa18889681a6c044991569 on master.


How to generate debug symbols for release builds?

Hi,
Thank you so much for the wonderful project, everything works really fine on my case. I was wondering if there is any input arguments that enables the debug symbols generating? For interpreting the crashing stack traces?
Thank you

ndk-pkg install <PKG-NAME> --build-type=debug

Thank you so much


tests: Bluetooth: tester: Fix sending dummy data over CIS

If there is no data in the ring buffer, send SDU with dummy data.
Fixes: BAP/USR/STR/BV-360-C

Can you elaborate on why?

@Thalley I've created a PTS issue for the test case related to this issue:
https://support.bluetooth.com/hc/en-us/requests/28676
The problem is the PTS expects ISO Data PDUs to be sent, while the Test Specification allows IUT to send Null CIS PDUs instead (just like in our case).
So basically, if PTS wants to receive some data, then it has to instruct Upper Tester to send it.

I'll update this PR with the proper fix for the tester application.
With the test ETS they provided, and the fix, the test is passing for us. The fix will be released in 8.5.2
[mariuszskamra@localhost auto-pts]$ ./autoptsclient-zephyr.py zephyr-master -i <IP_ADDRESS> -l <IP_ADDRESS> -c BAP/USR/STR/BV-360-C --board nrf53 --tty-file /dev/ttyACM0 --debug-logs
(139779131369808) Starting PTS <IP_ADDRESS>:65000 ...
(139779131369808) OK
1/1   BAP     BAP/USR/STR/BV-360-C   PASS           54.486

@mkasenberg please review


Spelling fixes

@scop  how do you find those? manual inspection or you use any tools? you seem pretty good at this.

I use https://github.com/lyda/misspell-check every now and then on various projects when I'm bored :)


DirectX 11?

How'd I port this to dx11? Would the code have to be completely refactored, or could I just use dx11 equivalents?

I'm not interested in this because I have other projects, but you can try changing equivalent functions and running it.


setYaw and setPitch don't work

I use custom controls. setYaw and setPitch don't work when I hold the button! how can I solve this problem?

You're going to have to be a bit more specific. I don't know how you're handling your custom button, but if you're using a click handler, it will only fire once per click.


error: [Peer.js]: sendProposal - timed out after:480000

I just run the latest version of caliper using goleveldb, but it doesn't work.  The command that I used is: npm test -- simple -c benchmark/simple/config.yaml -n network/fabric-v1.1/2org2peergoleveldb/fabric-go.json. Does it used wrong way?
The log as follows:
root@host3:~/gopath/src/github.com/hyperledger/caliper# npm test -- simple -c benchmark/simple/config.yaml -n network/fabric
-v1.1/2org2peergoleveldb/fabric-go.json

<EMAIL_ADDRESS>test /root/gopath/src/github.com/hyperledger/caliper
npm run lint && npm run nyc && npm run e2e "simple" "-c" "benchmark/simple/config.yaml" "-n" "network/fabric-v1.1/2org2peergoleveldb/fabric-go.json"

<EMAIL_ADDRESS>lint /root/gopath/src/github.com/hyperledger/caliper
npx eslint .

<EMAIL_ADDRESS>nyc /root/gopath/src/github.com/hyperledger/caliper
nyc mocha --recursive -t 10000

fixedRate controller implementation
#init
✓ should set the sleep time for a single client if no clients are specified
✓ should set the sleep time for a single client
✓ should set the sleep time for multiple clients
✓ should set the sleep time to zero if 0 tps specified
#applyRateControl
✓ should sleep for the full ammount of time if there is zero elapsed time
✓ should reduce the sleep time based on the elapsed time difference
✓ should not sleep if the elapsed time difference is below the 5ms threshold
✓ should not sleep if the sleepTime is zero
pidRate controller implementation
#init
✓ should set all gain values from constructor options
✓ should set a default sleep if no starting tps is provided
✓ should set logging if showVars option is provided
✓ should not set logging if no log option is provided
#applyRateControl
logging actions
✓ should provide logging if log option is set to be true
✓ should not provide logging if log option is not set
✓ should not provide logging if log option is set to be false
sleep actions
✓ should not modify sleep time if no load error and isolated proportional gain
✓ should reduce sleep time if negative load error and isolated proportional gain
✓ should increase sleep time if positive load error and isolated proportional gain
✓ should not modify sleep time if no integral error and isolated integral gain
✓ should reduce sleep time if negative integral error and isolated integral gain
✓ should increase sleep time if positive integral error and isolated integral gain
✓ should not modify sleep time if no derivative error and isolated derivative gain
✓ should reduce sleep time if negative derivative error and isolated derivative gain
✓ should increase sleep time if positive derivative error and isolated derivative gain
✓ should sleep if above the 5ms threshold
✓ should not sleep if below the 5ms threshold
BatchBuilderFactory implementation
#getBatchBuilder
✓ should error with no batch builders defined
✓ should error if there is no matching family
✓ should error if there is no matching family+version
✓ should alter version v0 to 1.0
✓ should error if unable to import the file
✓ should be able to return a batch builder
32 passing (20ms)
=============================== Coverage summary ===============================
Statements   : 5.67% ( 67/1181 )
Branches     : 7.39% ( 26/352 )
Functions    : 4.42% ( 10/226 )
Lines        : 5.72% ( 67/1171 )

<EMAIL_ADDRESS>e2e /root/gopath/src/github.com/hyperledger/caliper
node ./scripts/test.js "simple" "benchmark/simple/config.yaml" "network/fabric-v1.1/2org2peergoleveldb/fabric-go.json"

info: [bench-flow.js]: ####### Caliper Test ######
info: [bench-flow.js]: Executing command: docker-compose -f network/fabric-v1.1/2org1peergoleveldb/docker-compose-tls.yaml up -d;sleep 3s
Creating network "2org1peergoleveldb_default" with the default driver
Creating orderer.example.com ... done
Creating ca.org2.example.com    ... done
Creating ca.org1.example.com    ... done
Creating peer0.org1.example.com ... done
Creating peer0.org2.example.com ... done
info: [create-channel.js]: Creating mychannel...
info: [create-channel.js]: Created mychannel successfully
info: [create-channel.js]: Sleeping 5s...
info: [join-channel.js]: Joining channels...
info: [join-channel.js]: Joining mychannel...
info: [join-channel.js]: Successfully joined peerOrg1's peers to mychannel
info: [join-channel.js]: Successfully joined peerOrg2's peers to mychannel
info: [join-channel.js]: Successfully joined mychannel
info: [install-chaincode.js]: Installing chaincodes...
info: [packager/Node.js]: packaging Node from /root/gopath/src/github.com/hyperledger/caliper/src/contract/fabric/marbles-norichquery/node
info: [packager/Node.js]: packaging Node from /root/gopath/src/github.com/hyperledger/caliper/src/contract/fabric/marbles-norichquery/node
info: [install-chaincode.js]: Installed chaincode marbles successfully in all peers
info: [packager/Node.js]: packaging Node from /root/gopath/src/github.com/hyperledger/caliper/src/contract/fabric/simple/node
info: [packager/Node.js]: packaging Node from /root/gopath/src/github.com/hyperledger/caliper/src/contract/fabric/simple/node
info: [install-chaincode.js]: Installed chaincode simple successfully in all peers
info: [instantiate-chaincode.js]: Instantiating chaincodes...
error: [Peer.js]: sendProposal - timed out after:480000
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT
at Timeout._onTimeout (/root/gopath/src/github.com/hyperledger/caliper/node_modules/fabric-client/lib/Peer.js:124:19)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)
error: [instantiate-chaincode.js]: Failed to instantiate chaincodes: Error: Failed to send instantiate Proposal or receive valid response. Response null or status is not 200.
at Object.instantiateChaincode (/root/gopath/src/github.com/hyperledger/caliper/src/fabric/e2eUtils.js:353:19)
at
at process._tickCallback (internal/process/next_tick.js:189:7)
error: [fabric.js]: Fabric chaincode install failed: Error: Failed to send instantiate Proposal or receive valid response. Response null or status is not 200.
at Object.instantiateChaincode (/root/gopath/src/github.com/hyperledger/caliper/src/fabric/e2eUtils.js:353:19)
at
at process._tickCallback (internal/process/next_tick.js:189:7)
error: [bench-flow.js]: Error: Error: Failed to send instantiate Proposal or receive valid response. Response null or status is not 200.
at Object.instantiateChaincode (/root/gopath/src/github.com/hyperledger/caliper/src/fabric/e2eUtils.js:353:19)
at
at process._tickCallback (internal/process/next_tick.js:189:7)
info: [demo.js]: [Transaction Info] - Submitted: 0 Succ: 0 Fail:0 Unfinished:0
info: [bench-flow.js]: Executing command: docker-compose -f network/fabric-v1.1/2org1peergoleveldb/docker-compose-tls.yaml down;docker rm $(docker ps -aq);docker rmi $(docker images dev* -q)
Stopping peer0.org1.example.com ... done
Stopping peer0.org2.example.com ... done
Stopping ca.org2.example.com    ... done
Stopping ca.org1.example.com    ... done
Stopping orderer.example.com    ... done
Removing peer0.org1.example.com ... done
Removing peer0.org2.example.com ... done
Removing ca.org2.example.com    ... done
Removing ca.org1.example.com    ... done

@lenoAlex have you solved your problem? the error is "failed to instantiate chaincodes, failed to send instantiate proposal or receive valid response response null or status is not 200"
please run the command again, if the error still appear, please check the version of grpc, make the verison is 1.10.1

@houqinghui the versions of libraries are:
root@host3:~/gopath/src/github.com/hyperledger/caliper# npm list grpc
<EMAIL_ADDRESS>/root/gopath/src/github.com/hyperledger/caliper
├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>deduped
└──<EMAIL_ADDRESS>root@host3:~/gopath/src/github.com/hyperledger/caliper# npm list fabric-client
<EMAIL_ADDRESS>/root/gopath/src/github.com/hyperledger/caliper
└──<EMAIL_ADDRESS>root@host3:~/gopath/src/github.com/hyperledger/caliper# npm list fabric-client
<EMAIL_ADDRESS>/root/gopath/src/github.com/hyperledger/caliper
└──<EMAIL_ADDRESS>root@host3:~/gopath/src/github.com/hyperledger/caliper# npm list fabric-ca-client
<EMAIL_ADDRESS>/root/gopath/src/github.com/hyperledger/caliper
└──<EMAIL_ADDRESS>After running the same command again, the error still appear. And the strange thing is there is only two peers of docker running, as you can seen in logs.
=============================== Coverage summary ===============================
Statements   : 5.67% ( 67/1181 )
Branches     : 7.39% ( 26/352 )
Functions    : 4.42% ( 10/226 )
Lines        : 5.72% ( 67/1171 )

<EMAIL_ADDRESS>e2e /root/gopath/src/github.com/hyperledger/caliper
node ./scripts/test.js "simple" "benchmark/simple/config.yaml" "network/fabric-v1.1/2org2peergoleveldb/fabric-node-tls.json"

info: [bench-flow.js]: ####### Caliper Test ######
info: [bench-flow.js]: Executing command: docker-compose -f network/fabric-v1.1/2org1peergoleveldb/docker-compose-tls.yaml up -d;sleep 3s
Creating ca.org1.example.com ... done
Creating orderer.example.com ... done
Creating ca.org2.example.com    ... done
Creating peer0.org2.example.com ... done
Creating peer0.org1.example.com ... done
info: [create-channel.js]: Creating mychannel...
info: [create-channel.js]: Created mychannel successfully
info: [create-channel.js]: Sleeping 5s...
info: [join-channel.js]: Joining channels...
info: [join-channel.js]: Joining mychannel...
info: [join-channel.js]: Successfully joined peerOrg1's peers to mychannel
info: [join-channel.js]: Successfully joined peerOrg2's peers to mychannel
info: [join-channel.js]: Successfully joined mychannel
info: [install-chaincode.js]: Installing chaincodes...
info: [packager/Node.js]: packaging Node from /root/gopath/src/github.com/hyperledger/caliper/src/contract/fabric/marbles-norichquery/node
info: [packager/Node.js]: packaging Node from /root/gopath/src/github.com/hyperledger/caliper/src/contract/fabric/marbles-norichquery/node
info: [install-chaincode.js]: Installed chaincode marbles successfully in all peers
info: [packager/Node.js]: packaging Node from /root/gopath/src/github.com/hyperledger/caliper/src/contract/fabric/simple/node
info: [packager/Node.js]: packaging Node from /root/gopath/src/github.com/hyperledger/caliper/src/contract/fabric/simple/node
info: [install-chaincode.js]: Installed chaincode simple successfully in all peers
info: [instantiate-chaincode.js]: Instantiating chaincodes...

@lenoAlex Timeout also occurs if there was an error during chaincode instantiation. Please ensure that there are no leftover Docker containers and chaincode Docker images (the end script should take care of this).
Then, while you're waiting for the instantiation (but before the timeout), take a look at the container logs of one of the chaincode containers:
docker logs dev<something> and its corresponding peer.

@lenoAlex i came accross the same question, follow the below steps that solve my problem.

run docker ps  to check the running docker containers.
run docker rm all the docker names to delete the running docker containers.
run the caliper.

Issues #165 gives the answer. Just run npm install -g node-gyp node-pre-gyp before you use command node benchmark/simple/main.js to run the simple test.


livecheck: allow query parameter in electron_builder strategy url

This change allows a query parameter to be passed to a URL to a livecheck block using the electron_builder strategy.
This allows the livecheck in https://github.com/Homebrew/homebrew-cask/pull/109152 to return the correct version, as a query parameter of noCache=true or similar needs to be passed to consistently return the latest version.
There may be a better regex to allow the query parameter in the URL.

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[x] Have you successfully run brew tests with your changes locally?

Review period will end on 2021-07-29 at 01:52:16 UTC.

Review period ended.


"OBJC_CLASS$_DVTTextCompletionInlinePreviewController", referenced from:pen

Undefined symbols for architecture x86_64:
"OBJC_CLASS$DVTTextCompletionInlinePreviewController", referenced from:
l_OBJC$CATEGORY_DVTTextCompletionInlinePreviewController$_FuzzyAutocomplete in DVTTextCompletionInlinePreviewController+FuzzyAutocomplete.o
objc-class-ref in FuzzyAutocomplete.o
ld: symbol(s) not found for architecture x86_64

我遇到的也是这个问题.

the same problem,why

same issue when trying to carthage update with AwesomeCache, fails the build


Enhance kubectl create (Add useful flags from kubectl run e.g. replicas, labels, requests, limits, env, port etc.)

kubectl create is currently too limited. kubectl run gave a-lot flexibility in creating deployments and jobs via command-line.
We can do very little with kubectl create without editing yaml file. In my opinion it was a very bad idea to remove generators in kubectl run without providing similar functionality in kubectl create.
What would you like to be added:
Add the functionality lost as a result of generators removal from kubectl run. We should be able to add labels, replicas, requests, limits or any other functionality that is supported by kubectl run.
Flags required:

replicas
labels
requests
limits
env
port
serviceaccount

Why is this needed:
The current kubectl create is way too limited!! It really hinders what can be done via command-line.
Related issue: https://github.com/kubernetes/kubernetes/issues/88888

Related PRs:
Replicas: https://github.com/kubernetes/kubernetes/pull/91562

@armujahid there's a discussion that needs to be had about enhancing kubectl create/run and their intended goals. I've added it to the agenda for our next SIG-CLI meeting and it would be great to have you join us.
Next meeting is August 12th at 9:00 AM Pacific Time.
https://github.com/kubernetes/community/tree/master/sig-cli#meetings
/priority awaiting-more-evidence

@armujahid are you ok closing this after the SIG-CLI discussion?
As a note of historical reference it was discussed that create/run commands are not going to be expanded to push folks to use other tools and best practices. We will be spinning up a new SIG subproject to attempt to tackle a kubectl generate.
Will link to recording when it's uploaded.

Sure. I would love to contribute to kubectl generate

It's been some time, was anything moved forward on generate or adding resurrecting command line arguments?

Linking https://github.com/eddiezane/kubectl-generate repo. Currently in WIP.


Don't allow bash code blocks in RestructuredText files

Rationale: Bash is not a posix-compliant shell.
Fix: Replace .. code-block:: bash by .. code-block:: sh.
Implementation: add new verb excludeContent to project-config (needs https://github.com/mondeja/project-config/issues/33)

This is beyond of the scope of this project because you can define a code block directive with .. code-block::  foo (note the two spaces after ::), so it must be handled by a RestructuredText linter.


Provide a high-level API to infer multi-qubit Z-moments from data and correct for readout noise

closed by #286


merge when green

[ ] test in nyx-example using a workflow like merge-when-green.yml
[ ] finish todo tests

commit in multiple branches
commit from fork (need to get owner from status.branches; maybe parsing the URL)
commit in multiple prs (probably just try to merge both; it might actually work since one might be downstream of the other)

[ ] cleanup

[x] readContext
[x] merge(ctx)
[x] run -> merge(ctx)

We probably want a debug flag with logging too

@rwjblue okay the issue is that the github actions workflows don't use the status API: they use the checks API.  Our tests were passing because we were using the status api.
So we'll want to update the merge logic to compare status ∪ checks


Binery input to VA baseline rule config in ARM

Handel binery input to config VA baseline rule in ARM-template

@Sannadiana : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@DavidTrigano Could you review this pull request? Thanks.
In Microsoft Docs internal quality criteria, using "ARM" to refer to "Azure Resource Manager" is not supported, except to refer to an element in the UI or to a tool name, like ARMClient.

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.


feat: serialize momento vector index  metadata values to json

Description:
To support a wider range of expected metadata values, we now serialize these values to JSON when storing in Momento Vector Index. Specifically, in the add method, values are dumped as JSON strings using json.dumps. During the search operation, we deserialize them using json.loads.
Testing:
We updated the integration tests to exercise this new behavior.
Maintainers:
@baskaryan who reviewed the original MVI PR.
Twitter handle:
@momentohq for Momento Vector Index vector store introduction

Need to retool on my end.


Provide an API tho introspect the cluster state

In order to communicate liveness and readiness to the Kubernetes cluster, I would like to have some visibility into the olric cluster health.
For example:
If the current node can't communicate with the requested number of nodes to satisfy WriteQuorum I want to mark the current node as not ready in terms of Kubernetes so it stops receiving traffic from clients, or even as not live to get the pod restarted.

I am closing this issue due to a lack of interest.


Each time upon entering an existing or new world, I got this in the output of my crafting grid

Asm conflict?

It can be taken out and placed, but if I leave it there, next time when I open my inventory it dissappears

Does this occur with only AR, libvulpes, and buildcraft?
The only ASM I do is intercepting block changes and I do not modify the crafting system whatsoever.

yes

Forge version?

tested with 1492 and 1566, both the same

Investigating

Appears to be some strangeness with the recipe


Update tutorial.step_04.md

Fixed file reference from app.js to app.ng.js (file was renamed since tutorial step 2.4).

@AlmightyR thank you for that!
but we are about to release<EMAIL_ADDRESS>which doesn't require ng.js anymore...

@Urigo Oh, I didn't know that! And by all means, thank you for your efforts on the API! I'm kinda new to web-dev, and I'm absolutely loving it compared to the other APIs I've tried. You guys are my heroes!


error when convert pytorch model to Torch Script

I'm trying to convert .pth file to trace file, and relate code is:
    import torch
    from ops.models import TSN

    this_weights = "./model/TSM_RGB_resnet50_shift8_blockres_avg_segment8_e25.pth.tar"
    net = TSN(25, 8, 'RGB',
              base_model='resnet50',
              consensus_type='avg',
              img_feature_dim=256,
              pretrain='imagenet',
              is_shift=True, shift_div=8, shift_place='blockres',
              non_local=False,
              )
    checkpoint = torch.load(this_weights)
    checkpoint = checkpoint['state_dict']

    base_dict = {'.'.join(k.split('.')[1:]): v for k, v in list(checkpoint.items())}
    replace_dict = {'base_model.classifier.weight': 'new_fc.weight',
                    'base_model.classifier.bias': 'new_fc.bias',
                    }
    for k, v in replace_dict.items():
        if k in base_dict:
            base_dict[v] = base_dict.pop(k)

    net.load_state_dict(base_dict)

    net.eval()

    data = torch.ones(1,3,8,224,224)
    traced_script_module = torch.jit.trace(net,data)
    traced_script_module.save("torch_script_eval.pt")

but it give me waring and error：
/home/zhongzhiwei/video_analyze/temporal-shift-module/ops/temporal_shift.py:43: TracerWarning: Converting a tensor to a Python index might cause the trace to be incorrect. We can't record the data flow of Pyth
on values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  out[:, :-1, :fold] = x[:, 1:, :fold]  # shift left
/home/zhongzhiwei/video_analyze/temporal-shift-module/ops/temporal_shift.py:44: TracerWarning: Converting a tensor to a Python index might cause the trace to be incorrect. We can't record the data flow of Pyth
on values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  out[:, 1:, fold: 2 * fold] = x[:, :-1, fold: 2 * fold]  # shift right
/home/zhongzhiwei/video_analyze/temporal-shift-module/ops/temporal_shift.py:45: TracerWarning: Converting a tensor to a Python index might cause the trace to be incorrect. We can't record the data flow of Pyth
on values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  out[:, :, 2 * fold:] = x[:, :, 2 * fold:]  # not shift
Traceback (most recent call last):
  File "model_convert.py", line 97, in <module>
    traced_script_module = torch.jit.trace(net,data)
  File "/home/zhongzhiwei/anaconda3/envs/tsm/lib/python3.6/site-packages/torch/jit/__init__.py", line 636, in trace
    var_lookup_fn, _force_outplace)
  File "/home/zhongzhiwei/anaconda3/envs/tsm/lib/python3.6/site-packages/torch/nn/modules/module.py", line 487, in __call__
    result = self._slow_forward(*input, **kwargs)
  File "/home/zhongzhiwei/anaconda3/envs/tsm/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in _slow_forward
    result = self.forward(*input, **kwargs)
  File "/home/zhongzhiwei/video_analyze/temporal-shift-module/ops/models.py", line 286, in forward
    output = self.consensus(base_out)
  File "/home/zhongzhiwei/anaconda3/envs/tsm/lib/python3.6/site-packages/torch/nn/modules/module.py", line 487, in __call__
    result = self._slow_forward(*input, **kwargs)
  File "/home/zhongzhiwei/anaconda3/envs/tsm/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in _slow_forward
    result = self.forward(*input, **kwargs)
  File "/home/zhongzhiwei/video_analyze/temporal-shift-module/ops/basic_ops.py", line 46, in forward
    return SegmentConsensus(self.consensus_type, self.dim)(input)
RuntimeError: Attempted to trace SegmentConsensus, but tracing of legacy functions is not supported

Hi, are you using the most up-to-date code? I have modified function SegmentConsensus to be using nn.Module. It should be more compatible.

Ok, I will try the new code. thanks!


Save pending configuration with board

Interesting thing that trips me up when I edit runJavascript node: I can hit Command+Save and save the board while I am inside of the editor, but that will not save the current edits. So I found that I lose my edits like this:

I open the code config editor
Make some changes
Hit Command + Save
Hit Update in the code config editor
Reload
Changes were not saved.

Not sure what the solution is... maybe on Command + Save, we always first automatically update the config?
Originally posted by @dglazkov in https://github.com/breadboard-ai/breadboard/issues/3055#issuecomment-2344323710

Trying this approach: if a config is open and the user hits Cmd/Ctrl + S, we process the config change and save the file. The toast message indicates we've saved the board and config.


April Carto Rebase

Maybe we can just rename https://github.com/splashblot/dronedb/issues/8 ? /cc @jjmata

But the milestone specific comments would be lost.  I'd rather keep it like this.

Starting this early in hopes of completing if before next milestone begins.  In general it would be a good idea to always start a new milestone with a fresh Carto rebase.

Every month we should:

[ ] Fast-forward the master branch to pick up latest changes
[ ] Read NEWS.md in all relevant repos (here and here and here and here as well ... probably more) and adjust as necessary
[ ] Pick up any necessary changes to config files (app_config.yml and here and here as well)
[ ] Rebase the tileo branch
[ ] Rebase any other bits that we are working on but have not made the tileo branch yet (tileo-devops tends to have stuff "in progress" that hasn't been merged to tileo yet)
[ ] Deploy the sucker to alpha.tileo.co and test some of the sample data visualizations! ✌
[ ] Promote "the build" to beta.tileo.co (when that exists 😈)

Taken care of the first couple of "mindless" tasks (rebase of master and tileo branches ...)  Testing and making other things work now.

Rolled back to v2.89.0 of Windshaft-cartodb to make things easier, but started working on a Docker image as well:

https://github.com/splashblot/docker-Windshaft-cartodb

This is probably as far as I'll get into this for this milestone.  Closing and moving open sub-tasks to next month ...


Doesn't auto complete basic built-in JS

Hey there,
I might be doing something wrong, but I followed the instructions to a 'T' for installing and getting up and running, and auto complete is working, but only for more obscure or seemingly random stuff.
Example, from your instructions suggests document.addEv should autocomplete for document.addEventListener(), but if you look the screenshot provided, it doesn't even want to autoocomplete document, let alone addEventListener:

Any ideas why this might be happening? Why does it not seem to have the full set of javascript available?

Sounds like you aren't loading the browser defs. Create a .tern-project file with {"libs": ["browser"]} in it.


Create example phenotypic inputs for no-session-layer BIDS case

At the moment, we have tests which check that:

A custom PhenotypicSession called ses-unnamed is created by the bagel pheno command when it receives a phenotypic TSV with missing session column values
A custom ImagingSession called ses-unnamed (that has pipeline metadata) is created by the bagel derivatives command when it receives a proc status TSV w/ missing session column values
The session file path stored by bagel bids for a BIDS subject missing a session layer points to the BIDS subject directory (i.e., instead of inserting a fake session directory layer)

What we don't have:

A test of the bagel bids command that checks that when a BIDS directory with no session layer is provided, the output JSONLD file contains at least one ImagingSession called ses-unnamed, where the file path for the session still points to the subject directory

This would test, explicitly, that ses-unnamed ImagingSessions are correctly created from BIDS datasets without sessions, and that the same sessions still have accurate paths to the data. At the moment, the combination of existing tests can be argued to test this implicitly.
To be able to create the above test, we would need:

A BIDS dataset with no session layer (e.g., ds001 or eeg_ds000117 from `bids-examples)
A custom phenotypic JSONLD to provide as input to bagel bids, that includes all subjects in the BIDS dataset above
In order to generate 2., we would need to create:
a. a new valid phenotypic TSV with all subjects in the missing-session-layer BIDS dataset
b. a corresponding valid Neurobagel data dictionary JSON

Add to tests/data:

[ ] example_no_session.tsv
[ ] example_no_session.json

@surchs I'm rereading this issue I created (quite a while ago) and would like a second opinion on whether this is still worth addressing.
What gives me pause is the potential overhead related to adding these new examples: we will either need a test that runs both the bagel pheno and bagel bids commands, which seems kind of complex, or a new example JSONLD corresponding to another bids-examples dataset (one missing sessions) that we will have to maintain.
Wdyt? Do you think the intended handling of missing sessions in BIDS data is sufficiently covered by existing tests?


Support for XLM-RoBERTa

if I use XLM-RoBERTa instead of BERT, all I need is to change model_name_or_path to "xlm-roberta-base" or Do I need to do something else?

Hey @r1ckC139 ,
If you do that, please make sure that the model and tokenizer are loaded properly.
I'd love to hear whether it went successfully.

Hi @oriram,
Thanks for your quick response, I pre-trained spider with my own dataset (in Vietnamese), so all Wikipedia Vietnamese page is just about 1.5 million pages, and after chunking all page to 100word-passages I have 1.5 GB of pre-trained data, I only have one  A100 80G GPU (in your paper you guys use eight GPU). Based on your experience with spiders, can you suggest to me some important hyperparameters like batch size, learning rate and training steps with the hardware I have? I'd like to tell you if my work is successful.

I'd use the largest batch size I can for as many training steps as I can.
Regarding batch size, I guess it depends on the model so perhaps play around and see how the training loss behaves :)

Hi @oriram
if I use roberta, it must be fairseq_roberta, it seems like DPR doesn't support hf_roberta, do you have any way to use hf_roberta model? Another question, In your paper, you said you use only one encoder for both query and context, but DPR uses two separate encoders, so in pre-trained you use only one, and in fine-tune stage you use two encoders like DPR, am I right?

I think it should be pretty simple to implement a hf_roberta model.
You are right, we are using shared weights during pretraining and untie the weights during fine-tuning. However, there is little to no difference between the two modes at fine-tuning. The only reason we did that is to be consistent with DPR's setting.

Hi @oriram,
I'd like to tell you about my work (pre-trained spider with hf xlm-roberta for Vietnamese), it works but the performance is slightly lower than bm25, I guess this result is because of the lower pre-trained dataset than English, and I need to tune the hyperparameters. Anyway thanks for your help, maybe I can release my code for pre-trained spider for another language that's not English.

Hi @r1ckC139 ,
Sorry for missing your message.
Did you pretrain for long enough?

@oriram i set update_steps up to 200000, i used 2 A100 80G and i took about 2 days

I see..
I think in that case, you might want to check if during the training process the model even improved.
If so, it might be the case that the batch size is not large enough.


[e2e]: go schedule main noldflags-multi-uses slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/4060461855
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.schedule.main.noldflags-multi-uses.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.schedule.main.noldflags-multi-uses.slsa3.yml
Trigger: schedule
Branch: main
Date: Wed Feb  1 03:04:26 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/4070758746
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.schedule.main.noldflags-multi-uses.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.schedule.main.noldflags-multi-uses.slsa3.yml
Trigger: schedule
Branch: main
Date: Thu Feb  2 02:53:45 UTC 2023
Tests are passing now. Closing this issue.


Logger is not passed required parameter

We should either not log the token and remove %s or log the token.

Thank you for your contribution. That's merged, polished, and backported now.


some gwas studies inaccessible in API due to apostrophes in study name

Hello,
There seems to be a syntax error being raised when querying api.wenglab.org with gwas studies that contain apostrophes (for example, Crohn's disease) in which the study name as it is output exactly by {gwas(assembly:GRCh38){studies {name}}} will raise a syntax error if you then try to query that study specifically, for example
query {gwas(assembly: GRCh38) {
    study(study: "de_Lange_KM_28067908_Crohn's_disease") {
      topCellTypes {
        expID
        fdr
        pval
      }
    }
}}

in which the above example returns the error "message": "syntax error at or near \"s_disease\"",. This renders any study in which the name was stored with an apostrophe inaccessible via the API no matter what sort of escape character is used. Would it be possible to remove special characters from study names?

 [weng-lab/SCREEN] some gwas studies inaccessible in API due to apostrophes in study name (Issue #141)


Add command to test support of frameworks

Some frameworks might want to test their Accio support on a CI. As of now, there is no command to test if a framework itself is Accio compatible, the only solution is a workaround where one would need to create a Package.swift file which includes the framework to be tested. This is no good solution for a CI, therefore Accio should provide an internal way of testing Accio installation of a framework.
Note though, that in practice a framework that supports SwiftPM and Carthage will always also support Accio. But projects bundling resources can't have real SwiftPM support at the moment, therefore adding a command for testing Accio support definitely is needed for those projects.

I would suggest to add a new accio doctor command which scans the current project directory for possible issues like missing support and outputs helpful informations on how to solve the issue or suggest a auto-fixit if possible.

@mrylmz Great idea! But please open a new issue for that and list the different errors you would want to help out with initially. It should be developed separately from this.

As for the naming of this feature, I suggest the following:

accio supports ios to check if the current framework supports building for iOS
accio supports ios,tvos to check if the current framework supports building for iOS & tvOS
accio supports which does exactly the same like accio supports iOS,tvOS,macOS,watchOS would

@mrylmz Any progress on this issue? Feel free to create a [WIP] PR if you're not finished yet so I could continue on your work if needed.

@mrylmz ping :)

Its been a while since my last progress now... feel free to continue the work on the branch work/16-support-command

Closing this, as Accio is now deprecated.


[turborepo] dependsOn does not wait for all ^ tasks to complete before starting tasks without ^ prefix

What version of Turbopack are you using?
1.7.0
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
In our case, the project build hierarchy is that every project depends on its parent being first generate(d) followed by build.
Logically, this should be:
"build": {
  "dependsOn": [
    "^generate",
    "^build",
    "generate"
  ],
  "outputs": [
    "dist/**"
  ]
},

However, it seems that the generate task (#3 entry) starts before all of the ^generate and ^build tasks complete.
And because generate (#3 entry) depends on all generate and build of parents completing first, it fails.
In short, there appears to be no way to say:

first generate all parents workspace
then build all parents workspace
then generate current workspace
then build current workspace

at least not in one command.
Using multiple commands, I am able to do it:
pnpm turbo generate --filter=foo^...
pnpm turbo build --filter=foo^...
pnpm turbo generate --filter=foo
pnpm turbo build --filter=foo

However, this approach requires that we do not define any dependencies in turbo.json.
Expected Behavior
Expecting all dependencies to first be generated, then built, then the current workspace to be generated and then built.
To Reproduce
N/A
Reproduction Repo
No response

Turns out it was a false-positive.
This may help others https://www.loom.com/share/e94695a2c9fe417ea9271bf48fa0d832


fix(prometheus): capture templated route name for metrics

Adding new extraction function for prometheus metrics to avoid high cardinality issue in prometheus, eg having metrics GET /v1/users/{id} is preferable over GET /v1/users/1, GET /v1/users/2,GET /v1/users/3
More info about prometheus high cardinality
https://grafana.com/blog/2022/02/15/what-are-cardinality-spikes-and-why-do-they-matter/

related to #3532

@all-contributors please add @evstratbg for prometheus cardinality fix

@all-contributors please add @evstratbg  for 🚧

https://github.com/all-contributors please add @evstratbg for maintenance

@all-contributors please add @evstratbg for infra

@all-contributors, please add @evstratbg for code


Various interface/include fixes

I fixed a few interface/compatibility bugs here and there; the most prominent one is the incorrect "non-const copy constructor" of your std::thread implementation, which should be a move constructor (this triggered some errors in my codebase).
Also, in headers other than mingw.thread.h there are some missing includes, which probably went unnoticed because other versions of the mingw toolchain already include them in some other common header.

Thanks, applied.


Lint JavaScript source code

Why was this change made?
Avoid bikeshedding and focus PR review on substance.
How was this change tested?

[x] CI
[x] Ran H2 integration tests in stage
[x] Did some manual tests in stage

@ndushay 💬

i came, i stared at the "files" screen while scrolling at maximum speed, I approved.

"You missed a quote..." 😆
Thanks for the review!


[FEATURE]: adding grad_norm logging in training process

Describe the feature
I have been using the colossalai framework for my project and I noticed that there is no way to obtain the grad_norm after the backward pass during training. For example, the optimizer ZeroOptimizer calculates the grad_norm using the _calc_global_norm method in the step() method and then clips the grad_norm. If I want to separately obtain the grad_norm, I have to call _calc_global_norm again, which results in unnecessary additional calls. However, in PyTorch, the logic of clip_grad_norm() and optimizer.step() are decoupled, and this issue does not exist.
I would like to request the addition of a logging mechanism for the grad_norm during the training process. This could be achieved using the logging module or TensorBoard. This would make it easier to monitor the training process and ensure that the gradients are within the desired range.

Hi @pluiez
I'll add this feature, when I am available.

Is it available now? thx


Failure on scanning localhost

The DNS check is breaking when you attempt to scan localhost (and likely anything else that the DNS server can't resolve).
It fails with this error:
/Users/adamcaudill/yawast/yawast scan http://localhost:4000
error: Invalid URL (DNS result has no information for localhost). Use --trace to view backtrace

This is working as expected now, calling it fixed.


Allow to fetch redirected URL from new static_map endpoint

Closes #4234

@juanignaciosl CR please
@matallo  You can now do directly:
Carto::StaticMapsURLHelper.new.url_for_static_map(request, @visualization, map_width, map_height)  to avoid the 302 and get the final url

Frontend tests were OK :+1: (details)

/cc @javisantana

thanks!

LGTM


Add registry image source

Adds the oci-registry / registry image source, enabling the ability to pull images directly from a registry (not through the docker daemon). This brings with it the requirement to provide credentials in the form of username/password or token.
What this PR does NOT bring in yet it credential helpers for common registries (see #65 ):

ECR (via https://github.com/awslabs/amazon-ecr-credential-helper)
GCR (via https://github.com/GoogleCloudPlatform/docker-credential-gcr)
ACR (via https://github.com/Azure/acr-docker-credential-helper)

Addresses https://github.com/anchore/grype/issues/264

righto @alfredodeza , we can revisit the timeout value for talking to the docker daemon (re: https://github.com/anchore/stereoscope/pull/64#discussion_r611905521)


Invalid face-down cards are playable

If a face-down card has been played and it's an "invalid" card you can keep playing your other face-down cards.

I fixed this in a new version if anyone is still interested. I also made the bot capable of playing multiple cards. The refreshed version uses XState 5 and is a vercel/nextjs 15 app.
If anyone is interested the code is at https://github.com/robreiss/zhithead2 you can play it at https://zhithead2.vercel.app/


docs: update with Filecoin mainnet, remove ETH Goerli

Summary
Mentions of Filecoin Mainnet being unsupported have been removed. There was also a mention of an ETH Goerli heltbot table instead of Sepolia.
Context
N/A
Implementation overview
N/A
Implementation details and review orientation
N/A
Checklist

[x]  Are changes backward compatible with existing SDKs, or is there a plan to manage it correctly?
[x]  Are changes covered by existing tests, or were new tests included?
[x]  Are code changes optimized for future code readers, commenting on problematic areas to understand (if any)?
[x]  Future-self question: Did you avoid unjustified/unnecessary complexity to achieve the goal?

Note: it looks like staging doesn't have all of the changes currently in main, so I'm pointing to main here. Lmk if I should adjust that.

@dtbuchholz: looks good!, i have one small question. its seems okay to merge directly in the main after the staging is merged since it is a small change in the docs imo

cool, sgtm. i can wait til that happens and then merge this to main


【iOS8】Image form server can`t render correctly on iOS8~ help.

Description
Image form server can`t render correctly, looks like render error.
Additional Information
iOS8.1 are looks like this. can`t render correctly。

Here are the normal edition on iOS10

Code like this
<Image source={{ uri: avatar }} style={styles.ios.userImage}/>

progress log loaded alwalys bigger than total bytes .

React Native version: [0.36]
Platform: iOS8.1]
Operating System: [MacOS]

That's weird. What sort of testing have you done to determine this only reproduces on 8.1 devices, versus let's say a server side or network issue?

@hramos We track the data content length, and found the image data " _data"  field length is bigger than the response`s expectedContentLength so that the image will not render correctly .looks like the URLSession work wrong.

@hramos This is a hybrid Project.

Closing this issue because it has been inactive for a while. If you think it should still be opened let us know why.


Can't get MPD to display at all on my polybar

I've been running polybar for a few years but I've been using Clementine with a script/module specifically for Clementine.  And using playerctl in the bar.
Now I'm running mpd w/cantata, all working fine.
But I can't get the mpd module to display anything.
Was it working before?
no

Did you also experience this bug in an earlier version of polybar (yes/no/don't know)?
no
If no, what was the last version where this worked correctly?

Here's the relevant part of my mpd.conf:
audio_output {
  type    "httpd"
  name    "MUB Stream"
  encoder   "vorbis"    # optional
  port    "8000"
# quality   "5.0"     # do not define if bitrate is defined
# bitrate   "128"     # do not define if quality is defined
  format    "44100:16:1"
  always_on       "yes"     # prevent MPD from disconnecting all listeners when playback is stopped.
  tags            "yes"     # httpd supports sending tags to listening streams.
}

And the relevant part of my polybar config:
[module/mpdnew]
type = internal/mpd
host = <IP_ADDRESS>
port = 6600
interval = 1
; Available tags:
;   <label-song> (default)
;   <label-time>
;   <bar-progress>
;   <toggle> - gets replaced with <icon-(pause|play)>
;   <toggle-stop> - gets replaced with <icon-(stop|play)>
;   <icon-random>
;   <icon-repeat>
;   <icon-repeatone> (deprecated)
;   <icon-single> - Toggle playing only a single song. Replaces <icon-repeatone>
;   <icon-consume>
;   <icon-prev>
;   <icon-stop>
;   <icon-pause>
;   <icon-next>
;   <icon-seekb>
;   <icon-seekf>
;format-online = <icon-prev> <icon-seekb> <icon-stop> <toggle> <icon-seekf> <icon-next>  <icon-repeat> <icon-random>  <bar-progress> <label-time>  <label-song>
format-playing = ${self.format-online}
format-paused = ${self.format-online}
format-stopped = ${self.format-online}

; Available tags:
;   <label-offline>
; Default: ""
format-offline = <label-offline>

; Available tokens:
;   %artist%
;   %album-artist%
;   %album%
;   %date%
;   %title%
; Default: %artist% - %title%
label-song = 𝄞 %artist% - %title%

; Available tokens:
;   %elapsed%
;   %total%
; Default: %elapsed% / %total%
;label-time = %elapsed% / %total%

; Available tokens:
;   None
label-offline = 🎜 mpd is offline

; Only applies if <icon-X> is used
icon-play = ⏵
icon-pause = ⏸
icon-stop = ⏹
icon-prev = ⏮
icon-next = ⏭
icon-seekb = ⏪
icon-seekf = ⏩
icon-random = 🔀
icon-repeat = 🔁
icon-repeatone = 🔂
icon-single = 🔂
icon-consume = ✀

; Used to display the state of random/repeat/repeatone/single
; Only applies if <icon-[random|repeat|repeatone|single]> is used
toggle-on-foreground = #ff
toggle-off-foreground = #55

; Only applies if <bar-progress> is used
bar-progress-width = 45
bar-progress-indicator = |
bar-progress-fill = ─
bar-progress-empty = ─

format-online = <icon-prev> <icon-seekb> <icon-stop> <toggle> <icon-seekf> <icon-next>  <icon-repeat> <icon-random>  <bar-progress> <label-time>  <label-song>

Polybar Log
$ polybar -l info top
notice: Parsing config file: /home/mylinuxusername/.config/polybar/config
* Created ipc channel at: /tmp/polybar_mqueue.121125
* Environment var ${MONITOR} is undefined, using defined fallback value "HDMI-1"

* Loaded monitor HDMI-1 (1920x1080+1920+0)
* Bar geometry: 1920x35+1920+0; Borders: 4,4,4,4
notice: pulseaudio: using default sink alsa_output.usb-Alesis_iO4-00.analog-surround-40
* Starting application
* Starting module/i3
* Starting module/filesystem
* Starting module/openweathermap-simple
* Starting module/backlight-acpi
* Starting module/pulseaudio
* module/openweathermap-simple: Invoking shell command: "~/.config/polybar/myScripts/openweathermap-simple.sh"
* Starting module/mpdnew
* Starting module/memory
* Starting module/cpu
* Starting module/updates
* Starting module/wlan
* Starting module/bluetooth
* Starting module/battery
* Starting module/temperature
* Starting module/date
* Starting module/powermenu
* Entering event loop (thread-id=1)
* Eventqueue worker (thread-id=11)
* Configured DPI = 96x96
notice: Loaded font "RobotoMono Nerd Font:pixelsize=10" (name=RobotoMono Nerd Font, offset=0, file=/usr/share/fonts/TTF/Roboto Mono Nerd Font Complete.ttf)
notice: Loaded font "SauceCodePro Nerd Font:pixelsize=10" (name=SauceCodePro Nerd Font, offset=0, file=/usr/share/fonts/TTF/Sauce Code Pro Nerd Font Complete.ttf)
* Bar window: 0x0a00002
* Environment var ${TRAY} is undefined, using defined fallback value ""
error: Disabling tray manager (reason: Invalid position "")
* module/i3: Rebuilding cache
* module/filesystem: Rebuilding cache
* module/openweathermap-simple: Rebuilding cache
* module/backlight-acpi: Rebuilding cache
* module/pulseaudio: Rebuilding cache
* module/mpdnew: Rebuilding cache
* module/mpdnew: Hiding module since queue is empty

Environment:

WM: i3
Distro: arch
Output of polybar -vvv:

$ polybar -vvv
polybar 3.5.5

Features: +alsa +curl +i3 +mpd +network(libnl) +pulseaudio +xkeyboard

X extensions: +randr (+monitors) +composite +xkb +xrm +xcursor

Build type: Release
Compiler: /usr/bin/c++
Compiler flags: -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -Wextra -Wpedantic -O3 -DNDEBUG
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now

I assume polybar is consistent with the output of the mpc command while cantata shows completely different songs?
I guess, it is most likely that there are two mpd instances. Maybe one is running as root and one as a normal user?
I'm closing this, since it isn't related to polybar.

I just returned to this and figured it out.  Sorry for the trouble.
Since I didn't see much displayed at all I assumed it was the MPD module, but I found that there was a gap in my understanding of polybar fonts.  Specifically I had to use gucharmap, test-fonts.pl, and install 3 fonts (I chose ttf-symbola, noto-fonts-emoji, and siji-git) to get everything displaying, after which everything seems to be working.


opentofu: patch plugins to use opentofu plugin registry

Patch opentofu's plugins so as to use its own registry, rather than Terraform's, as per @yajo's comment at https://github.com/NixOS/nixpkgs/issues/283015#issuecomment-2009610478.
closes #283015.
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/)
25.05 Release Notes (or backporting 24.11 and 25.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

[x] Fits CONTRIBUTING.md.

@aanderse thanks! i rebased it now ✌

@mjm hm, i'm not sure how to proceed to fix that - pinging maintainers @nickcao @zowoq as well.

I think I've got a fix, will open a PR.

This broke the passthru.test.

@zowoq how might i run that to reproduce?

nix-build -A opentofu.tests.opentofu_plugins_test
https://logs.ofborg.org/?key=nixos/nixpkgs.358522&attempt_id=c5800818-2dba-43f2-8519-47fd392397e5

sorry for the mistake @zowoq, thanks for pointing it out... and thanks for fixing @KiaraGrouwstra!


Automated cherry pick of #9651

Cherry pick of #9651 on release-6.3.
/cc  @AshishDhama
NONE

Will try to auto merge this PR once all tests and checks are passing. This might take up to an hour.

Trying to auto merge this PR.

Pull Request successfully merged
SHA: ce2e40dc318df72466a66f8314ac83c6183478c3


integrations: Add a webhook integration for Front.

This would be a great project for a new contributor.
We have a guide for writing webhook integrations at http://zulip.readthedocs.io/en/latest/integration-guide.html#webhook-integrations.
Front is at frontapp.com.

@zulipbot claim

@zulipbot abandon

Hey @rishig i want to do this ...but it's my first time so i need a little guidance.I know python and read about webhook integration from the docs..I'm hoping this can be my first contribution to zulip as you wrote that it's good for beginners..

@zulipbot claim

Great, and welcome! https://github.com/zulip/zulip-gci/blob/master/tasks/webhook-integrations.md might be helpful as well.

I'm not getting exactly what info i need to show up in my view.py...

I'd recommend starting with the hello world example in the link I posted. Let's also move this to chat.zulip.org #"development help" stream, where more people will see it.

I've been through hello world example...but the fixture there was small and concise so it was pretty understandable that which info is to be extracted from it...but in case of front the json file is very big as compared to helloworld and i'm being confused...
Thnx BTW...

@Rishabh570 Are you still working on it?

@sagar-kalra Yes...sorry for delay, got some error to be fixed...

Yes...working on it..about two or three days i need at max cuz my exams are coming.

yes...working on it...opened up a WIP PR #7245 ..it will done within this week

Working...Actually delay is happening due to my exams in 1st and 2nd week of Dec..But will try to manage time for it..!!!

Little busy...but will get it done soon...!

I'm done working on it...PR is #7245

Pinging @alenavolk, if you find this interesting since you are working on its bot

Good catch @shubhamdhama; forgot that I had opened an issue. Assigning Alena.


[R4R]fix audit issue about slashing function in TssStakingSlashing

Goals of PR
Core changes:

fix audit issue

Related Issues:

#1116

require(tssManager == msg.sender,"TssStakingSlashing: tss manager address is zero");
Incorrect error message


luaposix build failed: required symbol 'crypt' not found in any of libc, libcrypt

OS: NixOS 24.05
Lua: 5.4.6
Luarocks: 3.11.0
Installing https://luarocks.org/luaposix-36.2.1-1.src.rock

luaposix 36.2.1-1 depends on lua >= 5.1, < 5.5 (5.4-1 provided by VM: success)
/nix/store/60djkmpzmyv5r2w77p855b58mpgxc1cm-lua-5.4.6/bin/lua build-aux/luke package="luaposix" version="36.2.1" PREFIX="/home/komo/Projects/null/lua_modules/lib/luarocks/rocks-5.4/luaposix/36.2.1-1" LUA="/nix/store/60djkmpzmyv5r2w77p855b58mpgxc1cm-lua-5.4.6/bin/lua" LUA_INCDIR="/nix/store/60djkmpzmyv5r2w77p855b58mpgxc1cm-lua-5.4.6/include" CC="clang" LD="clang" CFLAGS="-O2 -fPIC" LIBFLAG="-shared" LIB_EXTENSION="so" OBJ_EXTENSION="o" INST_LIBDIR="/home/komo/Projects/null/lua_modules/lib/luarocks/rocks-5.4/luaposix/36.2.1-1/lib" INST_LUADIR="/home/komo/Projects/null/lua_modules/lib/luarocks/rocks-5.4/luaposix/36.2.1-1/lua"
luke: fatal: required symbol 'crypt' not found in any of libc, libcrypt

Error: Failed installing dependency: https://luarocks.org/luaposix-36.2.1-1.src.rock - Build error: Failed building.

Might related to #343

The issue resolved by installing libxcrypt, but this still is an unintended behavior.

Thanks for the report and the solution!
It's unfortunate that nixOS doesn't provide the crypt APIs in a standard library.  I've never heard of libxcrypt on any other UNIX, and I'm not sure even libcrypt is used on any modern UNIX.  I guess that means that it doesn't follow POSIX and provide the prototypes for crypt and encrypt in unistd.h?  Or is unistd.h standard, but provides proper function prototypes, but calls to crypt make the compiler fall over?
Can you show me the SYNOPSIS section of the nixOS crypt manpage please?

SYNOPSIS
       #include <crypt.h>

       char *
       crypt(const char *phrase, const char *setting);

       char *
       crypt_r(const char *phrase, const char *setting, struct crypt_data *data);

       char *
       crypt_rn(const char *phrase, const char *setting, struct crypt_data *data, int size);

       char *
       crypt_ra(const char *phrase, const char *setting, void **data, int *size);

Also about missing libcrypt, it was explained in NixOS 22.11 release notes.

Software that uses the crypt password hashing API is now using the implementation provided by libxcrypt instead of glibc’s, which enables support for more secure algorithms.

That's all very non-standard, so I'm not surprised that luaposix is unable to find all the right pieces.  I recommend that you rename libxcrypt.so to libcrypt.so, so that other package builds don't all need to be taught an extra location for the library that provides the crypt() APIs.
In the mean time, I'd accept a patch to lukefile to make it fallback to libxcrypt if both libc and libcrypt fail to compile a test program that calls crypt.  The syntax is pretty self explanatory, but boils down to changing library='crypt' to libraries={'crypt', 'xcrypt'} (from memory, so please test it).

Afaik, libxcrypt is compiled as libcrypt.so. So it's not necesarry to patch lukefile. But adding a notice about missing libcrypt would be useful. E.g checking any news about your OS deprecation notice of the libc's crypt in favor of libxcrypt.

So, seems like everything is working as expected then? The error message from luke already described the problem:
luke: fatal: required symbol 'crypt' not found in any of libc, libcrypt

Yes, pretty much.


Informative logging results to be available in app

##Motivation
There is currently no way as far as I know, to verify properly that the app is really sending and receiving tokens in all situations, e.g. when phone is on Battery Saver, Sleep mode etc.
Since the app was tested only on a small subset of devices in a small subset of use case, it's necessary to be able to verify by the interested public at large that the app is doing its job properly under all circumstances and report bugs when this is not the case.
##Suggestion
Please add a way to see communication logs under settings in some sort of way. For example, a time stamp every hour with summary info on how often beacons were sent and how often beacons were read (not how many were seen, just to check that it's running properly). In addition, it'd be good if the logs mentioned if connection to the server is working as expected.
I feel very unsure about whether the app is doing its job properly. In normal usage, many possible bugs are not visible at all. Since one doesn't expect to be positive or be in contact with other positive people.

#518

Dear @corneliusroemer , we discussed this with the dev team, and there currently is no way of doing this from the application end. Sending and receiving Beacons is handled entirely by the ENF and there is no way for the app to provide the information you want to present.
As it affects both apps, I'll move this issue to the documentation repository and label it as backlog. If the ENF API provides the information at one point, Product Management and the UX team can re-evaluate if and how to display this information.


fix HTTP header

change an to a

This change is

Hey @jianglingxia, thanks for the PR - but technically the "an" is correct in this case, although counterintuitive. This specific case isn't covered in the Kubernetes style guide, but according to http://blog.apastyle.org/apastyle/2012/04/using-a-or-an-with-acronyms-and-abbreviations.html its quite reasonable use of "an" vs. "a" in front of a consonant.