Multiple module twin callbacks being called from cloud.

Deployed OpenVINO: Ready-to-Deploy AI Vision Module from Azure Marketplace as an IoT Edge module.
Once deployed, updated the module twin properties with the URL of the model from customvision.ai
Ran the model for overnight and observed multiple module twin call backs happening from cloud.
Below is the log:
'''
Creating IoT Hub manager
Domain Type: ObjectDetection
Call: Constructor: ObjectDetection.init
Triggering Inference...
Twin callback called with:
updateStatus: COMPLETE
payload: {"desired":{"inference_files_zip_url":"https://irisscuprodstore.blob.core.windows.net/m-b625970ad6d64ba18bfcb653ea50eeaf/0fd98177b5a744edba9fabd1ab1b1c2d.ONNX.zip?sv=2017-04-17&sr=b&sig=DqYkusSk4FU8AYAYTAJ%2FkjTGGg3qeN2RTR7jLODwTFE%3D&se=2020-03-17T12%3A43%3A24Z&sp=r","msg_per_minute":10,"object_of_interest":"ALL","$version":12},"reported":{"$version":1}}
Setting value to https://irisscuprodstore.blob.core.windows.net/m-b625970ad6d64ba18bfcb653ea50eeaf/0fd98177b5a744edba9fabd1ab1b1c2d.ONNX.zip?sv=2017-04-17&sr=b&sig=DqYkusSk4FU8AYAYTAJ%2FkjTGGg3qeN2RTR7jLODwTFE%3D&se=2020-03-17T12%3A43%3A24Z&sp=r from ::  data["desired"]["all_inference_files_zip"]
preparing: /app/./model
found directory cleaning it before copying new files...
Downloading File ::0fd98177b5a744edba9fabd1ab1b1c2d.ONNX.zip?sv=2017-04-17&sr=b&sig=DqYkusSk4FU8AYAYTAJ%2FkjTGGg3qeN2RTR7jLODwTFE%3D&se=2020-03-17T12%3A43%3A24Z&sp=r
Started Inference...
Got it ! File Download Complete !
Setting value to ALL from ::  data["object_of_interest"]
Setting value to 10 from ::  data["msg_per_minute"]
INFO:iot_hub_manager:Restarting inferencing
[ INFO ]  Restarting inferencing
Reading cvexport.config file from model folder
Domain Type: ObjectDetection
Call: Constructor: ObjectDetection.init
Triggering Inference...
Started Inference...
Twin callback called with:
updateStatus: COMPLETE
payload: {"desired":{"inference_files_zip_url":"https://irisscuprodstore.blob.core.windows.net/m-b625970ad6d64ba18bfcb653ea50eeaf/0fd98177b5a744edba9fabd1ab1b1c2d.ONNX.zip?sv=2017-04-17&sr=b&sig=DqYkusSk4FU8AYAYTAJ%2FkjTGGg3qeN2RTR7jLODwTFE%3D&se=2020-03-17T12%3A43%3A24Z&sp=r","msg_per_minute":10,"object_of_interest":"ALL","$version":12},"reported":{"$version":1}}
Setting value to https://irisscuprodstore.blob.core.windows.net/m-b625970ad6d64ba18bfcb653ea50eeaf/0fd98177b5a744edba9fabd1ab1b1c2d.ONNX.zip?sv=2017-04-17&sr=b&sig=DqYkusSk4FU8AYAYTAJ%2FkjTGGg3qeN2RTR7jLODwTFE%3D&se=2020-03-17T12%3A43%3A24Z&sp=r from ::  data["desired"]["all_inference_files_zip"]
preparing: /app/./model
found directory cleaning it before copying new files...
Downloading File ::0fd98177b5a744edba9fabd1ab1b1c2d.ONNX.zip?sv=2017-04-17&sr=b&sig=DqYkusSk4FU8AYAYTAJ%2FkjTGGg3qeN2RTR7jLODwTFE%3D&se=2020-03-17T12%3A43%3A24Z&sp=r
Got it ! File Download Complete !
Setting value to ALL from ::  data["object_of_interest"]
Setting value to 10 from ::  data["msg_per_minute"]
INFO:iot_hub_manager:Restarting inferencing
[ INFO ]  Restarting inferencing
Reading cvexport.config file from model folder
Domain Type: ObjectDetection
Call: Constructor: ObjectDetection.init
Triggering Inference...
Started Inference...
Twin callback called with:
updateStatus: COMPLETE
payload: {"desired":{"inference_files_zip_url":"https://irisscuprodstore.blob.core.windows.net/m-b625970ad6d64ba18bfcb653ea50eeaf/0fd98177b5a744edba9fabd1ab1b1c2d.ONNX.zip?sv=2017-04-17&sr=b&sig=DqYkusSk4FU8AYAYTAJ%2FkjTGGg3qeN2RTR7jLODwTFE%3D&se=2020-03-17T12%3A43%3A24Z&sp=r","msg_per_minute":10,"object_of_interest":"ALL","$version":12},"reported":{"$version":1}}
Setting value to https://irisscuprodstore.blob.core.windows.net/m-b625970ad6d64ba18bfcb653ea50eeaf/0fd98177b5a744edba9fabd1ab1b1c2d.ONNX.zip?sv=2017-04-17&sr=b&sig=DqYkusSk4FU8AYAYTAJ%2FkjTGGg3qeN2RTR7jLODwTFE%3D&se=2020-03-17T12%3A43%3A24Z&sp=r from ::  data["desired"]["all_inference_files_zip"]
preparing: /app/./model
found directory cleaning it before copying new files...
Downloading File ::0fd98177b5a744edba9fabd1ab1b1c2d.ONNX.zip?sv=2017-04-17&sr=b&sig=DqYkusSk4FU8AYAYTAJ%2FkjTGGg3qeN2RTR7jLODwTFE%3D&se=2020-03-17T12%3A43%3A24Z&sp=r
Got it ! File Download Complete !
Setting value to ALL from ::  data["object_of_interest"]
Setting value to 10 from ::  data["msg_per_minute"]
INFO:iot_hub_manager:Restarting inferencing
[ INFO ]  Restarting inferencing
Reading cvexport.config file from model folder
Domain Type: ObjectDetection
Call: Constructor: ObjectDetection.init
Triggering Inference...
Started Inference...
Twin callback called with:
updateStatus: COMPLETE
payload: {"desired":{"inference_files_zip_url":"https://irisscuprodstore.blob.core.windows.net/m-b625970ad6d64ba18bfcb653ea50eeaf/0fd98177b5a744edba9fabd1ab1b1c2d.ONNX.zip?sv=2017-04-17&sr=b&sig=DqYkusSk4FU8AYAYTAJ%2FkjTGGg3qeN2RTR7jLODwTFE%3D&se=2020-03-17T12%3A43%3A24Z&sp=r","msg_per_minute":10,"object_of_interest":"ALL","$version":12},"reported":{"$version":1}}
Setting value to https://irisscuprodstore.blob.core.windows.net/m-b625970ad6d64ba18bfcb653ea50eeaf/0fd98177b5a744edba9fabd1ab1b1c2d.ONNX.zip?sv=2017-04-17&sr=b&sig=DqYkusSk4FU8AYAYTAJ%2FkjTGGg3qeN2RTR7jLODwTFE%3D&se=2020-03-17T12%3A43%3A24Z&sp=r from ::  data["desired"]["all_inference_files_zip"]
preparing: /app/./model
found directory cleaning it before copying new files...
Downloading File ::0fd98177b5a744edba9fabd1ab1b1c2d.ONNX.zip?sv=2017-04-17&sr=b&sig=DqYkusSk4FU8AYAYTAJ%2FkjTGGg3qeN2RTR7jLODwTFE%3D&se=2020-03-17T12%3A43%3A24Z&sp=r
Got it ! File Download Complete !
Setting value to ALL from ::  data["object_of_interest"]
INFO:iot_hub_manager:Restarting inferencing
Setting value to 10 from ::  data["msg_per_minute"]
[ INFO ]  Restarting inferencing
Reading cvexport.config file from model folder
Domain Type: ObjectDetection
Call: Constructor: ObjectDetection.init
Triggering Inference...
Started Inference...
'''
This was repeated multiple times.
What is the reason for multiple module twin call backs from the cloud?

Hi @viharigandrakota, thanks for reaching out. Think we need some more info to help out here. With this info it's hard to say if what you're seeing is a result of the Intel module, Edge service, or something in this Python SDK, so I don't know how to best route this issue yet. Also good to note that it looks like the module makes use of the v1 SDK. Could you please start by filling out this additional info template:
OS and version used: (Windows 10, Ubuntu 15.04, etc. )
Python version: (in a command prompt: python --version )
pip version: (in a command prompt: pip --version )
list of installed packages: ( in a command prompt, from the directory containing your code: pip list )
cloned repo: ( If you are using a cloned sdk repository, in a command prompt: git describe )
Description of the issue:
Has this been reproduced multiple times? Have you worked with this module before? It would also help if you could outline your overall scenario and solution at a high level-- what steps have you taken to get this going, what components are you using & where do they live (edge device, module, hub, etc.)?
Code sample exhibiting the issue:
Can you share the code you're using?
Console log of the issue:
anything else in addition to what you've already provided? Logs from the module/device?

Hi @elhorton ,
Thanks for coming back. and apologies for my delayed response.
Here is the info:
OS and version used : Ubuntu 16.04 on Host machine & docker container
Python version : 3.7
pip version : pip 19.3.1
list of installed packages :
asn1crypto                           0.24.0
azure-iot-provisioning-device-client 1.4.6
azure-iothub-device-client           1.4.6
azure-iothub-service-client          1.4.6
certifi                              2019.9.11
cffi                                 1.11.5
chardet                              3.0.4
Click                                7.0
conda                                4.5.11
cryptography                         2.3.1
decorator                            4.4.1
defusedxml                           0.6.0
Flask                                1.1.1
idna                                 2.7
itsdangerous                         1.1.0
Jinja2                               2.10.3
MarkupSafe                           1.1.1
mkl-fft                              1.0.14
mkl-random                           1.1.0
mkl-service                          2.3.0
networkx                             2.3
numpy                                1.17.2
onnx                                 1.6.0
onnxruntime-openvino                 1.0.0
opencv-python                        <IP_ADDRESS>
pip                                  19.3.1
protobuf                             3.10.0
pycosat                              0.6.3
pycparser                            2.18
pyOpenSSL                            18.0.0
PySocks                              1.6.8
requests                             2.19.1
ruamel-yaml                          0.15.46
setuptools                           41.6.0.post20191030
six                                  1.12.0
test-generator                       0.1.1
typing-extensions                    <IP_ADDRESS>
urllib3                              1.23
Werkzeug                             0.16.0
wheel                                0.33.6
cloned repo : This is an App from Azure marketplace. Please find it here
Description:
This is an application from Azure Marketplace. You can get it as an Azure IoT Edge module on your edge machine. The module twin call back is expected to happen only when the module twin settings are updated in the Azure portal. But it is observed that this call back is happening repeatedly even without the module twin update. You can reproduce this issue by following the instructions in the link that I shared above.
Yes, I observed this multiple times.
High level outline : This is a Ready-to-Deploy AI Vision Module that runs as a IoT Edge module on Edge machine. Once the module gets deployed on the Edge machine as an IoT edge module, the user has to update the module twin settings with the ONNX model url from customvision.ai ( find instructions here) which enforces the module twin callback. **But observed the module twin call back is happening multiple times even after updating the module twin settings only once **.

Thanks @viharigandrakota , a couple pieces of info and some next steps for you.
We cannot further investigate for two reasons:

This module does not appear to be open source, so I'm unable to see if the Intel module is properly implementing the callback. It could be an issue with connection (where the module never gets an ACK so it keeps trying to send). I would encourage you to raise this question on the module's forum: https://software.intel.com/en-us/forums/intel-distribution-of-openvino-toolkit

This module makes use of our deprecated v1 library, which we are no longer supporting. This means that, even if this was an SDK issue, we could not fix it in this scenario. Perhaps you could try programmatically catching the module twin callback after it's first send and suppressing further calls (assuming that the multiple callbacks are not a result of the twin not being initially updated).

Sorry that we can't help any further.

@elhorton Please help us understand more about "module makes use of our deprecated v1 library, which we are no longer supporting" which library are you mentioning. How to move/use latest version of library for this app? - We can test it with new version library and test multiple twin callbacks scenario

Yes, absolutely. We released a v2 Python SDK last year that is built with native python. The previous version of this SDK was a layer over the C SDK, leading it to be unnatural for Python developers and error prone.
You should note that there are breaking changes between the API surfaces from v1 to v2, and this repo has a migration guide to assist. You can also learn more about the v2 SDK from this blog post.

@viharigandrakota, @psakamoori, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey


make fluid warp work with launch upgrade

logger can't find path and kill the game
just remove pathfinding and the files was succesfully created in oxygen not included base directory

Thank you for the fix. I'll try to test and merge it the following days.


updated the base image to support golang and git command

In order to perform rhtap installation with rhtap-cli, it needs to install git and golang

/lgtm


Check network connectivity in e2e test

Try to do some pings / curl requests from within the VM (update expect script). Also try to ping the VM from outside.

This one's important so we don't accidentally kill networking in some PR

Already done in e2e.sh.


Implementation of http://localhost:8080/api/ in Backend

For our backend demo the followin link should works:

http://localhost:8080/api/
Just for dev
Just for geeting stuffs

can you test this issue in your local pc  and tell me if  the implementation works

usually it is http://localhost:8080/ that dev runs the apps locally

usually it is http://localhost:8080/api  for WEB API


I am getting service list nil, when i disconnect & connect again, with out killing the app.

I can able to get services list when i connect firs time with peripheral,then disconnected > connect again, now iam unable to list out any services.

Hey anyone got the solution on this?

#12

Hi @ashokKOMARA , @marcospolanco @jordanebelanger Anyone know, how to resolve this  ?

Hello @kshrikant @ashokKOMARA @marcospolanco @jordanebelanger any update on this ? #39  check this also.

https://developer.apple.com/documentation/corebluetooth/cbperipheral/1518706-discoverservices


No need to try to bind to LDAP server if logout is requested

In src/LDAPAuthController.php

"Solved" with b7e8dd2. The extension does not need to handle logout.


dblite tweaks

use os.replace instead of the dance around os.rename which behaves differently on Windows.
use True/False for flags for clarity.
Fix some PEP8 warnings.
Signed-off-by: Mats Wichmann<EMAIL_ADDRESS>Contributor Checklist:

[X] I have created a new test or updated the unit tests to cover the new/changed functionality.
[X] I have updated CHANGES.txt (and read the README.rst)
[X] I have updated the appropriate documentation

Hmmm, looks like what was supposed to work for Windows doesn't work.  Will look into it.


Cheaphashes

The diff of the PR is showing changes from #87 as well, which should go away if the branch is updated

Nevertheless, it's worth double checking and seeing if you agree with me or not.

I disagree.


Filtering generic "Application processing error" because it's not useful information

Just leads to noise.  See:
https://staging.bequickapps.com/logs/carrier/2009578

👍


Fetching error: UND_ERR_REQ_CONTENT_LENGTH_MISMATCH

There is a (currently closed) issue with the use of Fetch inside NextJS as NextJS wraps the default fetch with its own implementation, which also happens in xior.
Sometimes in build-time and run-time use can generate this type of error:
[11:31:47.257] TypeError: fetch failed
[11:31:47.257]     at Object.fetch (node:internal/deps/undici/undici:11576:11) {
[11:31:47.257]   cause: RequestContentLengthMismatchError: Request body length does not match content-length header
[11:31:47.257]       at AsyncWriter.end (node:internal/deps/undici/undici:10355:19)
[11:31:47.258]       at writeIterable (node:internal/deps/undici/undici:10263:16) {
[11:31:47.258]     code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH'
[11:31:47.258]   }
[11:31:47.258] }

In my case, locally I have not been able to reproduce it, however in a project deployed in Docker is where I have had the problem in run-time use (With a custom Content-Length or not).
The is the issue I mentioned: Nextjs Issue
Xior version: 0.6.1, Next.js version: 15.0.2.

Due to Next.js already fixed the fetch issue, maybe you can check here for Request body length does not match content-length header/UND_ERR_REQ_CONTENT_LENGTH_MISMATCH error:
https://github.com/vercel/next.js/discussions/55410
Also, you can add below code to check the error from which endpoint:
import xior from 'xior'

const http = xior.create();

http.plugins.use((adapter, instance) => {
        return async (config) => {
          try {
            return adapter(config);
          } catch (error: Error) {
            console.log(`${config.method} ${config.url} error:`, error);
            throw err;
          }
        };
      });

Thanks for report this issue!


poc: Custom trigger for button-dropdown

Description

Related links, issue #, if available: n/a
How has this been tested?

Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness

Changes include appropriate documentation updates.
Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
Changes do not include unsupported browser features, see CONTRIBUTING.md.
Changes were manually tested for accessibility, see accessibility guidelines.

Security

If the code handles URLs: all URLs are validated through the checkSafeUrl function.

Testing

Changes are covered with new/existing unit tests?
Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Closing as we decided to not introduce custom triggers at least just yet.


added basic information about default constructors in the index file …

…for methods

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thanks for contributing to the freeCodeCamp repository. Congratulations on your first PR! 🎊
Look forward to more contributions from you! ✈


difftastic: 0.11.0 -> 0.12.0

Motivation for this change
https://github.com/Wilfred/difftastic/compare/0.11.0..0.12.0
https://github.com/Wilfred/difftastic/blob/master/CHANGELOG.md
Things done

Built on platform(s)

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

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

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

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 147764 run on x86_64-linux 1

1 package built:

difftastic


CMOS-297: Better highlight node health status

Previously we would always show a node as "Active" as long as it's not been failed over, even if ns_server considers it to be unhealthy.
Change this so that health status takes precedence over membership, that way the dashboard statuses work like:
All good -> Healthy (current behaviour)
Auto-failed over -> Unhealthy(*)
Manually failed over but still alive -> Failed Over
Added but not rebalanced in -> Pending Rebalance
(*) In this case, we prioritise "it's unhealthy" over "it's been failed over", as IMO that's the critical information - though perhaps it may be better to have this as a separate state ("unhealthy, failed over").

Filed https://issues.couchbase.com/browse/CMOS-335 as a way to possibly update this view faster (currently the upper bound is a minute between the status changing and it getting reflected in the dashboard).


[GOBBLIN-1841] Move disabling of current live instances to the GobblinClusterManager startup

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[ ] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-1841] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-1841

Description

[ ] Here are some details about my PR, including screenshots (if applicable):

The method disableLiveHelixInstances() originally exists in GobblinYarnAppLauncher to disable pre-existing live instances in a Helix cluster. However, there can be an edge case when the GobblinYarnAppLauncher is bypassed due to a lost Application Master, like an automated replacement of the Application Master by Yarn, which will bypass the Azkaban Yarn App Launcher. In such cases, the disableLiveHelixInstances() will be not invoked.
Thus, we moved this method to GobblinClusterManager, which is at the Application Master level, and invokes it at the start stage. In this way, we can guarantee that it won't miss the edge case, and each time these pre-existing live instances can be disabled.
Tests

[ ] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

[ ] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Codecov Report

Merging #3708 (759fa70) into master (51a852d) will decrease coverage by 2.14%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #3708      +/-   ##
============================================
- Coverage     46.97%   44.83%   -2.14%
+ Complexity    10794     2102    -8692
============================================
  Files          2138      411    -1727
  Lines         84132    17746   -66386
  Branches       9356     2163    -7193
============================================
- Hits          39518     7956   -31562
+ Misses        41015     8930   -32085
+ Partials       3599      860    -2739

Impacted Files
Coverage Δ

.../apache/gobblin/cluster/GobblinClusterManager.java
57.52% <100.00%> (+4.25%)
:arrow_up:

... and 1736 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[Bugz 773] - Sit floor bug fix

https://highfidelity.atlassian.net/browse/BUGZ-733

I will give this another test when the changes are made

Whenever @PrestonB1123  has his changes merged, then I can update this again


:bug: Fix: Missing exports from tevm package

Description
Concise description of proposed changes
Testing
Explain the quality checks that have been done on the code changes
Additional Information

[ ] I read the contributing docs (if this is your first contribution)

Your ENS/address:

Current dependencies on/for this PR:

main

PR #892   👈

PR #886

PR #888

PR #889

PR #890

PR #891

PR #887

This stack of pull requests is managed by Graphite.


Get a "Timeout waiting for debugger connection" when attempting to debug under CentOS 7

Environment data

VS Code version: 1.30.1 and 1.30.2
Extension version (available under the Extensions sidebar): Python 2018.12.1
OS and version: 7.5.1804 (kernel x64 3.10.0-862.14)
Python version (& distribution if applicable, e.g. Anaconda): Python 3.4.9
Type of virtual environment used (N/A | venv | virtualenv | conda | ...):  Oravle VM VirtualBox with Windows 10 as host
Relevant/affected Python packages and their versions:
astroid==2.1.0
isort==4.3.4
lazy-object-proxy==1.3.1
mccabe==0.6.1
netifaces==0.10.9
psutil==5.4.8
pylint==2.2.2
six==1.12.0
typed-ast==1.1.1
typing==3.6.6
virtualenv==16.1.0
wrapt==1.10.11

Expected behaviour
After pressing F5 python file starts debugging
Actual behaviour
Get a Timout waiting for debugger connection error
Steps to reproduce:
Open any py file press F5
Running Python: Current File (Integrated Terminal):
{
"name": "Python: Current File (Integrated Terminal)",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"debugOptions": [
"Sudo"
]
},
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
cd /media/sf_Windows_Workspace/nse/sslva-servers ; env "PYTHONIOENCODING=UTF-8""PYTHONUNBUFFERED=1" /usr/bin/python3 /home/hvrensburg/.vscode/extensions/ms-python.python-2018.12.1/pythonFiles/ptvsd_launcher.py --default --client --host localhost --port 45498 /home/hvrensburg/workspace/test_python.py
^CCould not connect to localhost: 45498
Traceback (most recent call last):
File "/home/hvrensburg/.vscode/extensions/ms-python.python-2018.12.1/pythonFiles/lib/python/ptvsd/_vendored/pydevd/pydevd.py", line 1925, in main
debugger.connect(host, port)
File "/home/hvrensburg/.vscode/extensions/ms-python.python-2018.12.1/pythonFiles/lib/python/ptvsd/_vendored/pydevd/pydevd.py", line 484, in connect
s = start_client(host, port)
File "/home/hvrensburg/.vscode/extensions/ms-python.python-2018.12.1/pythonFiles/lib/python/ptvsd/pydevd_hooks.py", line 125, in
_start_client = (lambda h, p: start_client(daemon, h, p))
File "/home/hvrensburg/.vscode/extensions/ms-python.python-2018.12.1/pythonFiles/lib/python/ptvsd/pydevd_hooks.py", line 71, in start_client
sock, start_session = daemon.start_client((host, port))
File "/home/hvrensburg/.vscode/extensions/ms-python.python-2018.12.1/pythonFiles/lib/python/ptvsd/daemon.py", line 211, in start_client
connect(client, addr)
File "/home/hvrensburg/.vscode/extensions/ms-python.python-2018.12.1/pythonFiles/lib/python/ptvsd/socket.py", line 197, in connect
sock.connect(addr)
KeyboardInterrupt

Output from `Console` under the `Developer Tools` panel (toggle Developer Tools on under `Help`; turn on source maps to make any tracebacks be useful by running `Enable source map support for extension debugging`)

Can you please paste your launch.json and settings file?

Closing until further info is provided


[Question] Call JavaScript from Rust

Background
The web and desktop renders are both essentially just webpages. The web target, however, gets compiled to WASM and run directly inside the users browser. This enables usage of tools like wasm_bindgen to run JavaScript code. However AFAIK this is not possible with the desktop renderer since the rust code gets compiled natively and is somehow sending the generated DOM to a native WebView.
Question
I am trying to use a CSS library that requires you to call some JS functions that are added to the window object for certain actions (like opening/closing a modal). Is it possible to use something like wasm_bindgen to be able to call JS from my rust code for the Desktop renderer? I can kinda achieve what I want by dynamically adding/removing <script> tags, but I strongly do not like that approach.

This is somewhat similar to #134 so something that provides access to the Document object, may also lead to a good way to call arbitrary JS.

You can use the use_eval hook to execute Javascript on deskop and web.
https://docs.rs/dioxus-desktop/0.2.3/dioxus_desktop/fn.use_eval.html

Oh cool! It seems like this hooks is all-but undocumented.
Based on the type signature, it seems I can do something like the following?
let eval = use_eval(cx.scope);
eval("do_the_thing()");
eval("do_something_else()");

Yea, like that.
You can also do mulitple lines of JS at once:
let eval = use_eval(&cx);

eval("console.log('1'); console.log('2');");

L

Sweet thanks!
I haven't had the chance to mess with it yet and I'm a bit of a rust noob still, but use_eval returns an Fn not an FnOnce, so presumably it should be safe to call multiple times, right? If not, the type signature should probably be changed to reflect to true contract of use_eval

Yea true, just checked and I was just wrong :D


Develop Embedding[SiliconFlow]

why not register in src/flag_gems/init.py

I suggest implementing performance test as well.
Accuracy tests failed with relative difference equals to 1.0 . What about rebasing on the latest master branch and trying again?

We have verified locally that the problem of unit test accuracy can be solved by pulling the latest code


etcd Proxy reports http error even when curl works fine.

I have a single node etcd server and a second node setup in proxy mode.
On the server I have:
[root@k8master vagrant]# cat /etc/etcd/etcd.conf
ETCD_NAME=default
ETCD_DATA_DIR=/var/lib/etcd
#ETCD_SNAPSHOT_COUNTER="10000"
#ETCD_HEARTBEAT_INTERVAL="100"
#ETCD_ELECTION_TIMEOUT="1000"
#ETCD_MAX_SNAPSHOTS="5"
#ETCD_MAX_WALS="5"
#ETCD_CORS=""

ETCD_INITIAL_CLUSTER_STATE=new
ETCD_INITIAL_ADVERTISE_PEER_URLS=http://k8master:2380
ETCD_LISTEN_PEER_URLS=http://k8master:2380
ETCD_LISTEN_CLIENT_URLS="http://<IP_ADDRESS>:2379,http://<IP_ADDRESS>:4001"
ETCD_ADVERTISE_CLIENT_URLS=http://k8master:2379,http://k8master:4001

Start the server.
[root@k8master vagrant]# service etcd start
[root@k8master vagrant]# netstat -tlpun
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 <IP_ADDRESS>:2380         <IP_ADDRESS>:*               LISTEN      10611/etcd
tcp        0      0 <IP_ADDRESS>:8080          <IP_ADDRESS>:*               LISTEN      9254/kube-apiserver
tcp        0      0 <IP_ADDRESS>:22              <IP_ADDRESS>:*               LISTEN      1112/sshd
tcp        0      0 <IP_ADDRESS>:25            <IP_ADDRESS>:*               LISTEN      2288/master
tcp6       0      0 :::9001                 :::*                    LISTEN      6863/netmaster
tcp6       0      0 :::2379                 :::*                    LISTEN      10611/etcd
tcp6       0      0 :::9999                 :::*                    LISTEN      6863/netmaster
tcp6       0      0 :::22                   :::*                    LISTEN      1112/sshd
tcp6       0      0 :::443                  :::*                    LISTEN      9254/kube-apiserver
tcp6       0      0 :::4001                 :::*                    LISTEN      10611/etcd
udp        0      0 <IP_ADDRESS>:68              <IP_ADDRESS>:*                           759/dhclient
udp        0      0 <IP_ADDRESS>:61218           <IP_ADDRESS>:*                           759/dhclient
udp6       0      0 :::36193                :::*                                759/dhclient
[root@k8master vagrant]# cat /etc/hosts
<IP_ADDRESS>   localhost
<IP_ADDRESS>   k8master

[root@k8master vagrant]# etcdctl member list
ce2a822cea30bfca: name=default peerURLs=http://localhost:2380,http://localhost:7001 clientURLs=http://k8master:2379,http://k8master:4001

On the proxy:
[root@k8node-01 vagrant]# cat /etc/etcd/etcd.conf
ETCD_NAME=default
ETCD_DATA_DIR=/var/lib/etcd
#ETCD_SNAPSHOT_COUNTER="10000"
#ETCD_HEARTBEAT_INTERVAL="100"
#ETCD_ELECTION_TIMEOUT="1000"
#ETCD_MAX_SNAPSHOTS="5"
#ETCD_MAX_WALS="5"
#ETCD_CORS=""

ETCD_INITIAL_CLUSTER=k8master=http://k8master:2380
ETCD_PROXY="on"

Now start the proxy:
[root@k8node-01 vagrant]# service etcd start
Redirecting to /bin/systemctl start  etcd.service
[root@k8node-01 vagrant]# etcdctl member list
ce2a822cea30bfca: name=default peerURLs=http://localhost:2380,http://localhost:7001 clientURLs=http://k8master:2379,http://k8master:4001
[root@k8node-01 vagrant]# etcdctl ls
/registry
/contiv.io
[root@k8node-01 vagrant]# etcdctl member list
ce2a822cea30bfca: name=default peerURLs=http://localhost:2380,http://localhost:7001 clientURLs=http://k8master:2379,http://k8master:4001

However, a few seconds later:
[root@k8node-01 vagrant]# etcdctl member list
unexpected status code 503
[root@k8node-01 vagrant]# !cur
curl http://k8master:2380/members
[{"id":14855829450254237642,"peerURLs":["http://localhost:2380","http://localhost:7001"],"name":"default","clientURLs":["http://k8master:2379","http://k8master:4001"]}]
I can't think of any misconfig here. From the logs on the proxy, it appears that the proxy is trying to access http://localhost:2380 instead of http://k8master:2380.
k8master_etcd.log.docx
k8node-01_etcd.log.docx
[root@k8node-01 vagrant]# etcd --version
etcd Version: 2.1.1
Git SHA: 6335fdc
Go Version: go1.4.2
Go OS/Arch: linux/amd64
I have attached logs from server and proxy. Any input is appreciated.

@jojimt
ce2a822cea30bfca: name=default peerURLs=http://localhost:2380,http://localhost:7001 clientURLs=http://k8master:2379,http://k8master:4001

This is the configuration of the member, the peerURLs is localhost. So the peerURLs is probably wrongly configured.

@xiang90
That's what I initially suspected. However,
ETCD_INITIAL_ADVERTISE_PEER_URLS=http://k8master:2380
is what I have. Is there another param I need to specify?

@jojimt I am in a place that cannot access google storage. You can paste the log for etcd process (especially the bootstrap logging) here or I will take a look next week.

Server logs:
Jan 22 16:04:31 k8master systemd[1]: Starting Etcd Server...
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdmain: setting maximum number of CPUs to 4, total number of available CPUs is 4
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdmain: found invalid file/dir default.etcd under data dir /var/lib/etcd (Ignore this if you are upgrading etcd)
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdmain: the server is already initialized as member before, starting as etcd member...
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdmain: listening for peers on http://k8master:2380
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdmain: listening for client requests on http://<IP_ADDRESS>:2379
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdmain: listening for client requests on http://<IP_ADDRESS>:4001
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdserver: recovered store from snapshot at index 10001
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdserver: name = default
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdserver: data dir = /var/lib/etcd
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdserver: member dir = /var/lib/etcd/member
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdserver: heartbeat = 100ms
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdserver: election = 1000ms
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdserver: snapshot count = 10000
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdserver: advertise client URLs = http://k8master:2379,http://k8master:4001
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdserver: loaded cluster information from store: <nil>
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdserver: restarting member ce2a822cea30bfca in cluster 7e27652122e8b2ae at commit index 13439
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 raft: ce2a822cea30bfca became follower at term 9
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 raft: newRaft ce2a822cea30bfca [peers: [ce2a822cea30bfca], term: 9, commit: 13439, applied: 10001, lastindex: 13439, lastterm: 9]
Jan 22 16:04:31 k8master bash[10611]: 2016/01/22 16:04:31 etcdserver: starting server... [version: 2.1.1, cluster version: 2.1.0]
Jan 22 16:04:32 k8master bash[10611]: 2016/01/22 16:04:32 raft: ce2a822cea30bfca is starting a new election at term 9
Jan 22 16:04:32 k8master bash[10611]: 2016/01/22 16:04:32 raft: ce2a822cea30bfca became candidate at term 10
Jan 22 16:04:32 k8master bash[10611]: 2016/01/22 16:04:32 raft: ce2a822cea30bfca received vote from ce2a822cea30bfca at term 10
Jan 22 16:04:32 k8master bash[10611]: 2016/01/22 16:04:32 raft: ce2a822cea30bfca became leader at term 10
Jan 22 16:04:32 k8master bash[10611]: 2016/01/22 16:04:32 raft: raft.node: ce2a822cea30bfca elected leader ce2a822cea30bfca at term 10
Jan 22 16:04:32 k8master bash[10611]: 2016/01/22 16:04:32 etcdserver: published {Name:default ClientURLs:[http://k8master:2379 http://k8master:4001]} to cluster 7e27652122e8b2ae

Client logs:
Jan 22 16:07:18 k8node-01 systemd[1]: Started Etcd Server.
Jan 22 16:07:18 k8node-01 systemd[1]: Starting Etcd Server...
Jan 22 16:07:18 k8node-01 bash[8370]: 2016/01/22 16:07:18 etcdmain: setting maximum number of CPUs to 4, total number of available CPUs is 4
Jan 22 16:07:18 k8node-01 bash[8370]: 2016/01/22 16:07:18 etcdmain: found invalid file/dir default.etcd under data dir /var/lib/etcd (Ignore this if you are upgrading etcd)
Jan 22 16:07:18 k8node-01 bash[8370]: 2016/01/22 16:07:18 etcdmain: the server is already initialized as proxy before, starting as etcd proxy...
Jan 22 16:07:18 k8node-01 bash[8370]: 2016/01/22 16:07:18 etcdmain: proxy: using peer urls [http://k8master:2380]
Jan 22 16:07:18 k8node-01 bash[8370]: 2016/01/22 16:07:18 etcdmain: proxy: updated peer urls in cluster file from [http://k8master:2380] to [http://localhost:2380 http://localhost:7001]
Jan 22 16:07:18 k8node-01 bash[8370]: 2016/01/22 16:07:18 etcdmain: proxy: listening for client requests on localhost:2379
Jan 22 16:07:18 k8node-01 bash[8370]: 2016/01/22 16:07:18 etcdmain: proxy: listening for client requests on localhost:4001
Jan 22 16:07:48 k8node-01 bash[8370]: 2016/01/22 16:07:48 etcdserver: could not get cluster response from http://localhost:2380: Get http://localhost:2380/members: dial tcp <IP_ADDRESS>:2380: connection refused
Jan 22 16:07:48 k8node-01 bash[8370]: 2016/01/22 16:07:48 etcdserver: could not get cluster response from http://localhost:7001: Get http://localhost:7001/members: dial tcp <IP_ADDRESS>:7001: connection refused
Jan 22 16:07:48 k8node-01 bash[8370]: 2016/01/22 16:07:48 etcdmain: proxy: could not retrieve cluster information from the given urls
Jan 22 16:08:04 k8node-01 bash[8370]: 2016/01/22 16:08:04 proxy: zero endpoints currently available
Jan 22 16:08:04 k8node-01 bash[8370]: 2016/01/22 16:08:04 proxy: zero endpoints currently available

@jojimt From the log, I suspect that when you started etcd member the first time you gave it localhost as advertise peerURL. And you probably changed it later. Note that changing the initial configuration after the first bootstrap will not take any effect. You have to use runtime reconfiguration to change any cluster related configuration even if this is a one member cluster.

Thanks @xiang90.  I will try runtime reconfig. Closing the issue now.

Per https://github.com/coreos/etcd/blob/master/Documentation/runtime-configuration.md, I should use
etcdctl member update
However,
[root@k8master vagrant]# etcdctl member update ce2a822cea30bfca http://k8master:2380
No help topic for 'update'
[root@k8master vagrant]# etcdctl member
NAME:
   etcdctl member - member add, remove and list subcommands

USAGE:
   etcdctl member command [command options] [arguments...]

COMMANDS:
   list         enumerate existing cluster members
   add          add a new member to the etcd cluster
   remove       remove an existing member from the etcd cluster
   help, h      Shows a list of commands or help for one command

OPTIONS:
   --help, -h   show help

Looks like this is not supported yet. Is there another way to clean up and restart? Or is there a newer version I should use?

@jojimt You need to update etcdctl. I think we support it in latest release.

ok will do that.

Yes, I tried with the latest etcdctl and it works great.  @xiang90 you rock!
Closing the issue now.


WIP on Typescript

Goal of the Draft PR
This is a draft on moving the Rive file into Typescript.
The goal of this draft was to get more acquainted with the code. I figured out it could be useful to be shared. Happy to close it if this is already an ongoing work on your side
The current stat
There is still many errors in to file, and missing types.
I tried to keep the code as close as possible to the rive.js is currently, I mainly :

transformed Rive into a class
add "private" keyword for method with "_"
add types
change self by this

Future work
There is still some work I would like to do to deliver an error-free file:

import missing types from rive-canvas somehow.
create a getEvent(name) method to fix missing typings.

For typing reasons I moved each event property into a record and created a private getEvents(name) methods.
I put any for types coming from rive-canvas for now.
Remaining errors come from import/export

Thank you for starting to do this, but we're in the middle of doing much the same task at the moment.
I'd suggest you pause this for the moment while we finish the first pass and then we can review?

sure, no problem :)

And thank you again for starting this; it's great to have more input on our Typescript conversion.


Build

The gperftools is very hard to build. I try many times, and also missing some symbols.
can you support CMake or vcpkg?

I need more details. What OS? If you're building on unix system from source tarballs, it is should be just matter of ./configure && make
As for cmake and other option I personally don't have any plans for them.

os： ubuntu16.04
$ ./configure CXXFLAGS='-fPIC' --enable-libunwind -enable-frame-pointers && make
I'd installed libunwind before.
Error info：
/bin/bash ./libtool  --tag=CXX   --mode=link g++ -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc  -Wno-unused-result -fsized-deallocation  -fno-omit-frame-pointer  -fno-builtin -fPIC -pthread   -o debugallocation_test src/tests/debugallocation_test-debugallocation_test.o libtcmalloc_debug.la -lpthread
libtool: link: g++ -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fsized-deallocation -fno-omit-frame-pointer -fno-builtin -fPIC -pthread -o .libs/debugallocation_test src/tests/debugallocation_test-debugallocation_test.o  ./.libs/libtcmalloc_debug.so -lpthread -pthread
./.libs/libtcmalloc_debug.so: undefined reference to _ULx86_64_init_local' ./.libs/libtcmalloc_debug.so: undefined reference to _Ux86_64_getcontext'
./.libs/libtcmalloc_debug.so: undefined reference to _ULx86_64_get_reg' ./.libs/libtcmalloc_debug.so: undefined reference to _ULx86_64_step'
collect2: error: ld returned 1 exit status
Makefile:3824: recipe for target 'debugallocation_test' failed
make: *** [debugallocation_test] Error 1

Looks like you've installed libunwind in some non-standard path perhaps and then didn't use right flags to feed it to configure/make. Looks like CPPFLAGS are set correctly, not but LDFLAGS.
Comments on issue #528 should help you


does tensorf model actually need blender datasets?

Let's say we want to compare tensorf to instant-ngp and nerfacto using same dataset.
The same ns-process-data output can be used for both instant-ngp and nerfacto -- great.
But tensorf appears to need a Blender dataset which has different format/conventions.
Is there any actual reason?
If it needs method/model-specific parameters, I would expect it to use its own data parser, rather than Blender.
If it doesn't, and the choice was arbitrary, then I would expect behavior more like (instant-ngp and) nerfacto -- perhaps by using the nerfacto dataparser instead of Blender.

You can add nerfstudio-data at the end of the command to use the nerfstudio dataset. It was defaulted to blender because that is the dataset it was tuned to work well on. This is similar to vanilla-nerf which also defaults to the blender dataset.

Got it, thank you.  FWIW, it seems to me that the dataset defines which parser(s) should be used, not the model, so it might be better to keep model behavior uniform, and/or to have the dataparser selected from quickly looking at the data in use.  That could be as simple as path/naming convention when not explicit, e.g. data/blender should use Blender, data\friends should use semantic-nerfw, etc. - in which case nerfstudio would presumably become the default.


Add customer testing kb

@srveit I am helping Christine with this. She mentioned something about you not seeing the changes she made based on your comments, but I can see them. Is github having problems with versioning?


Different info for ManageShard permission on different pages

URL for relevant page?  Chronograf
https://docs.influxdata.com/chronograf/v1.4/administration/managing-influxdb-users/#createdatabase

ManageShard
Permission to copy, delete, and view shards.
Relevant InfluxQL queries: DropShardStatement, ShowShardGroupsStatement, and ShowShardsStatement
Pages in Chronograf that require this permission: NA

URL for relevant page? InfluxDB Enterprise V1.5
https://docs.influxdata.com/enterprise_influxdb/v1.5/features/users/#permissions

Manage Shards
Permission to copy and delete shards

There is one more permission called Copy Shard that is relevant to influx-ctl copy-shardcommand
Since CopyShard is a separate permission then I think:

Remove permission to copy from InfluxDB Enterprise doc. At the same time under Permission to Statement (https://docs.influxdata.com/enterprise_influxdb/v1.5/features/users/) header the correct queries are mentioned:

ManageShardPermission | DropShardStatement,ShowShardGroupsStatement,ShowShardsStatement

Make description for ManageShardpermission in sync between chronograf and influxdb.
DropShardStatement, ShowShardGroupsStatement, and ShowShardsStatement that are mentioned in chronograf are the same as DROP SHARD, SHOW SHARD GROUPS and SHOW SHARDS queries run from using influx command from one of the data nodes. But shard can be managed by using influx-ctl command as well :
https://docs.influxdata.com/enterprise_influxdb/v1.5/features/cluster-commands/#show-shards
https://docs.influxdata.com/enterprise_influxdb/v1.5/features/cluster-commands/#remove-shard
The question is for @timhallinflux : Should influx-ctl show and remove shards be mentioned on the list of permissions?

What products and version are you using? Enterprise InfluxDB V1 .6 (LDAP integrations)
Where did you look before opening the issue? In the current 1.5 documentation

@rbetts - FYI

Also, @timhallinflux , should the following influx-ctl commands be documented for CopyShard Permissions:

copy-shard          Copy a shard between data nodes
copy-shard-status   Show all active copy shard tasks
kill-copy-shard     Abort an in-progress shard copy

keep open


BUG: broken links - check

Summary
There are a lot of broken links throughout the site because of a few layers of Repo reorganisation:
I've looked through:

The main README
applications
community recommendations

The other folders are still to do. You can find ones yourself
or
look at the comments below issue #423 for broken links other people have found
Date Due by
ASAP 🐛
Who can help
Anyone who has access to the repo and can find the files.
Beginners

[ ] Click through the website. If you find a broken link, make a note of where it is and let us know by leaving a comment under this issue, in the box below.

If you want it fixed fast, you can notify Georgia by typing @GeorgiaHCA in the comment and she will get to it ASAP!
Intermediate

[ ] check which links go to a 404
[ ] find the file they're meant to direct to
[ ] replace the broken link with the correct one
[ ] test (the files may be in a private repo which is why they 404) while logged out of github account
[ ] QA test across Chrome, Sarafi, and Firefox

Closing this issue now as the fix has been merged and it is outdated following the repo merge. Thanks so much for your work @96RadhikaJadhav !! It's great to have your contributions


SILGen: Allow concrete constrained extensions to define constructors

Make sure we go through the common code path for constructors,
like we do for methods and everything else, so that we correctly
drop the generic signature in the case where all generic
parameters were made concrete.
This fixes the example from rdar://problem/17821143.

@swift-ci Please smoke test

@swift-ci Please smoke test


Organise miscellaneous properties under state/workspaces

Having 4 properties loosely places is going to become confusing. Better to store them together. What do you think @ningyuansg ?
e.g
Misc
  currentAssessmentId
  currentQuestionId
  currentSubmissionId
  gradingComments

I'm planning on implementing a logout button soon after the user controller is implemented at backend #89.

It makes sense to me that the logout saga action should nuke the session slice of the state
In that case, everything we want to be nuked should be stored in the session, so that we don't need to nuke many things
These properties seem to be something we want to nuke on logout
So probably place them in session

Actually, I think we should nuke

Everything in the state, and make it the defaultState
The localStorage, so that one does not have a token to login with

If not, we would need to nuke the workspaces as well, and in general place a lot of things inside the ISessionState. Is there anything that must be preserved when logging out?

We should preserve the playground state (if logging in does not change this, neither should logging out), and eventually the news and material as well.

Solved after using inheritance for IWorkspaceState, and playground code has been saved.


[Safari] In half-sized window, modals push content wider and nav bar expands

Steps

Go to osf.io on Safari
Make your window take up half the screen (I'm using a 27" Thunderbolt display), or small enough so the user's name is not displayed, only user's the Gravatar
Go to the settings page of any one of your projects
Check off the box of one of the add-ons to select it
Notice the modal that pops up
Click "Cancel" in the modal
Click "Deauthorize" for any add-on
Notice the modal that pops up
Click "Cancel" in the modal
Do the same for the user settings Configure Add-ons

Expected behavior
I expected that nothing in the background would move when the modals pop up.
Actual behavior
The name of my OSF account, "Purple Dinosaur", appears when the modal appears, expanding the nav bar. The content of the page also expands. This may be related to https://github.com/CenterForOpenScience/osf.io/issues/1663, but this does not occur on the latest versions of Chrome, Firefox, or IE.

@jinluyuan this issue has been discussed before: https://github.com/CenterForOpenScience/osf.io/issues/1663
I recommend closing. @sloria @lbanner thoughts?

OK -- yes, close in favor of discussion and approach in #1663

@caneruguz @lbanner This is not the same issue as #1663, though it may be related. This issue only applies to Safari, and the issue is that the content of the page expands.

@jinluyuan the content of the page expands because modals remove scrolling by adding a class to the body. When scrolling is removed, the scroll bar is removed, thus giving the page about 15 more pixels. Normally this shouldn't make the page wider but bootstrap has break points for responsive rules. In your case above the screen grab was taken at a point where the difference of 15-20 pixels switched the view from one size to another hence changing the view dramatically.
I am also confident that this is not a Safari issue but one couldn't replicate it in other browser because one  would need to be at about the exact width for this switch to occur.

@caneruguz This happens on Safari when the user makes the window progressively smaller, right until the user's name disappears from the top nav bar and only the Gravatar is visible. Then opening up a modal causes the content to expand - most notably, the user's name appears once again in the top nav bar. This is due to the scrollbar disappearing, as you say. The window has to be at the right size for this to happen, within a range of about 10 pixels (I measured it), which makes sense given your explanation about the breaking point. This window size is very common for me to use since it is about half the size of the screen on a 27" display.
However, on Chrome and Firefox, this behavior never occurs. The nav bar shifts to the right a little, as reported in #1663, but no matter how close I get to the appropriate window size (where the nav bar changes to only displaying the Gravatar), I cannot replicate the same effect of the content expanding.
This is obviously a minor issue, but I just wonder if there could be a way to make site behave on Safari the same way it does on Chrome & Firefox. Sorry that this is so nit-picky!
I closed my other issue (#2947) that was actually an exact repeat of #1663. I apologize for that one being a repeat.


checking to see if this fixes it

Readability cleanup can be done later, perhaps as part of another PR


RGroupDecomposition GA hangs

Describe the bug
The RGroup decomposition hangs with a small input set when using the Genetic algorithm.  Using the original scoring system doesn't have the issue.
To Reproduce
from rdkit.Chem import rdRGroupDecomposition as rgd
from rdkit import Chem

decomp_params = rgd.RGroupDecompositionParameters()
decomp_params.matchingStrategy = rgd.GA
decomp_params.onlyMatchAtRGroups = False
decomp_params.scoreMethod = rgd.RGroupScore.FingerprintVariance

scaffold = Chem.MolFromSmiles("CC.C(N)C")
mols = [Chem.MolFromSmiles(m) for m in ('NCCOC(C)C', 'PCCONC(N)C', 'SCCOPSCCCl')]

decomposer = rgd.RGroupDecomposition(scaffold, decomp_params)
for mol in mols:
    decomposer.Add(mol)
decomposer.Process()

Expected behavior
Not hanging :)
Screenshots
If applicable, add screenshots to help explain your problem.
Configuration (please complete the following information):

RDKit version: 2021.03
OS: OS/X

@jones-gareth This might be in your court :)

@bp-kelley
This is fixed in master- see https://github.com/rdkit/rdkit/pull/3934 (approved by yourself!).  I don't think that fix made the cut for 2021.03.  I've confirmed that your example code does not hang on a current build from master (Ubuntu 18.04).

Great!  Guess I need to update my builds :)


Fixes to converge to installer charts

This PR addresses the remaining differences with istio/installer charts.
There are still some diffs but these are non-impacting:

we're creating security namespace. Not sure why this is removed in istio/installer
templates contains the same params but the text gets reformatted.
we still have redundant "enabled" and "namespace" fields in a couple of components. These are ignored by helm.

@ostromart: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

operator-test
c2fb49bf0c6b26951a53032007ba62d9fe958870
link
/test operator-test

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ostromart: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

operator-test
c2fb49bf0c6b26951a53032007ba62d9fe958870
link
/test operator-test

operator-lint
18a346632fa8cde04e972d51c7a46cf2671e6bf7
link
/test operator-lint

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ostromart: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

operator-test
c2fb49bf0c6b26951a53032007ba62d9fe958870
link
/test operator-test

operator-lint
18a346632fa8cde04e972d51c7a46cf2671e6bf7
link
/test operator-lint

operator-build
18a346632fa8cde04e972d51c7a46cf2671e6bf7
link
/test operator-build

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ostromart: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

operator-lint
18a346632fa8cde04e972d51c7a46cf2671e6bf7
link
/test operator-lint

operator-build
18a346632fa8cde04e972d51c7a46cf2671e6bf7
link
/test operator-build

operator-test
18a346632fa8cde04e972d51c7a46cf2671e6bf7
link
/test operator-test

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Scalar Functions should be able to support multiple names

Currently, functions annotated with @ScalarFunction annotation take the name of the java method as the Query function name OR you can provide an alternative name.
But there are scenarios, where we may need multiple names for the same function to support third-party tools such as Tableau, Looker etc. . e.g. (CEIL, CEILING), (LOGN, LN) etc.
Currently we can do this by copying the method and just changing the name but that is not a good approach. We should make a small change in the Annotation Processor so that we can specify alternate names as part of annotation itself.
Suggested Changes -
  @ScalarFunction(alias = {"ceil", "ceiling"})
  public static double ceil(double a) {
    return Math.ceil(a);
  }

+1


Not able to exec workspace as laradock user

Hy,
I just wanted to try out laradock. As I'm switching from Homestead and I'm new to docker, I just followed the instructions, without having any deep background knowledge.
If I want to exec the workspace container as non-root user like explained in step 2, I get the following error:
unable to find user laradock: no matching entries in passwd file
I ran the following command
docker-compose exec --user=laradock workspace bash
Does anybody know why this is happening?
Additinal Info:
I'm running Docker native on MacOS 10.11.6

@stefanheimann did you try to rebuild the container and do you have the latest version of laradock?
I've had the same error some time ago but with the latest version of laradock and docker on Ubuntu it work's without any problems.

Just experienced this similar issue today on master.

@prezire
my test is ok.
~/Sites/laradock (master *)$ docker-compose up -d nginx
Creating network "laradock_frontend" with driver "bridge"
Creating network "laradock_backend" with driver "bridge"
Creating network "laradock_default" with the default driver
Creating laradock_docker-in-docker_1 ... done
Creating laradock_workspace_1        ... done
Creating laradock_php-fpm_1          ... done
Creating laradock_nginx_1            ... done
~/Sites/laradock (master *)$ docker-compose exec workspace bash
root@b2765ec3cd52:/var/www# id
uid=0(root) gid=0(root) groups=0(root)
root@b2765ec3cd52:/var/www# exit
~/Sites/laradock (master *)$ docker-compose exec -u laradock workspace bash
laradock@b2765ec3cd52:/var/www$ id
uid=1000(laradock) gid=1000(laradock) groups=1000(laradock),8377(docker_env)
laradock@b2765ec3cd52:/var/www$ exit
~/Sites/laradock (master *)$ git log -n 1
commit d27f4368eec570d0a6a12136cb8476fbc1cb343a (HEAD -> master)
Author: Slava Razum<EMAIL_ADDRESS>Date:   Sat Feb 9 11:06:26 2019 +0200

    Run bash when login by `laradock` via ssh (#1541)
~/Sites/laradock (master *)$


Adding Exchange Union Coin (XUC) token

@miohtama Sorry, can you please provide a support email address and any social media / community / forum links that are active. Thank you.

@tayvano Gladly! Is there an example entry with these or maybe even some documentation what can go there?

We are migrating everything to ethereum-lists repo so you can follow what has been done there if you like. Right now we just set you up a custom response for any users that come to us with questions that we don't have the ability to answer. It's pretty informal. 😊
https://github.com/myetherwallet/ethereum-lists


Changing service CIDR more easier

Summary
The 1.27 feature of launch configurations are nice you can set CIDR for Pods before starting the cluster. But its missing to set the Service CIDR also that would be more important cause when you change Pod CIDR its easy to restart every pod. But Services can't be recreated that easily so you have to manually remove and add every service again. So an Option would be to specifiy the Service Cidr also in launch configurations. Or make it possible to install Microk8s in a stopped state that you can tweak the service CIDR manually before starting for the first time.
Why is this important?
Cause changein Service CIDR is tedious otherwise.
Are you interested in contributing to this feature?
No, sorry not enough time and probably not enough knowledge yet

Hi @kanimaru
Thank you for raising this. Indeed the launch configurations feature is a means of providing "building blocks" instead for people to achieve their desired setup.
I will make sure to update the documentation with such an example. To get started with setting the cluster service CIDR, you can try the following launch configuration (ensure all control plane nodes use this):
---
version: 0.1.0
extraKubeAPIServerArgs:
  --cluster-service-ip-range: <IP_ADDRESS>/16
# add a subject alternate name for the Kubernetes service IP
extraSANs:
  - <IP_ADDRESS>

Note that this setup, enabling the DNS addon will not work as expected, since the addon will try to use the hardcoded address <IP_ADDRESS>. To get around this problem, you can do:
# if enabled already, disable
sudo microk8s disable dns

# update the service IP address on the DNS addon manifest, e.g. to <IP_ADDRESS>
sudo sed -i 's/<IP_ADDRESS>/<IP_ADDRESS>/g' /var/snap/microk8s/common/addons/core/addons/dns/*

# enable DNS, now it will use the new service IP and come up properly
sudo microk8s enable dns

Now that https://github.com/canonical/microk8s-core-addons/pull/181 is merged and released, it is possible to do the following to set the service IP for the CoreDNS service as well:
---
version: 0.1.0
extraKubeAPIServerArgs:
  --service-cluster-ip-range: <IP_ADDRESS>/16
# add a subject alternate name for the Kubernetes service IP
extraSANs:
  - <IP_ADDRESS>
addons:
  - name: dns
    args: [/etc/resolv.conf, <IP_ADDRESS>]


Reset endpoint port info on connectivity revoke in bridge driver

and update it to store. Otherwise after an ungraceful shutdown,
at next boot there will be in store two bridge endpoints with
same port-mapping data. When bridge driver will try to restore
the endpoints, there will be conflicts and a container with
restart policy could fail to start.
It can be related to some of the reports in https://github.com/docker/docker/issues/20486 and in https://github.com/docker/docker/issues/25981
Steps to reproduce:

$ # create two networks and run a container on the second one in lexical order
$ docker network create nwa
11d1f4bc8e5e3c06d3025fb2509869fa8f31e0b428a2185e60a649ab5ede552f
$ docker network create nwb
d84ae082627e45ea3254a86b905a20869a9ca8d910be53c046a8f955991454bc
$
$ docker run -d --name w0 --restart always -d -p 8000:8000 -p 9000:9000 --network nwb busybox top
7b208647007d947855eecd8d43124d1c7f6bebfb2cc68c28db3438ec2602164f
$
$ sudo iptables -t nat -S POSTROUTING | grep dport
-A POSTROUTING -s <IP_ADDRESS>/32 -d <IP_ADDRESS>/32 -p tcp -m tcp --dport 9000 -j MASQUERADE
-A POSTROUTING -s <IP_ADDRESS>/32 -d <IP_ADDRESS>/32 -p tcp -m tcp --dport 8000 -j MASQUERADE
$
$ # connect the container to the first network to trigger the external connectivity change
$ docker network connect nwa w0
$
$ sudo iptables -t nat -S POSTROUTING | grep dport
-A POSTROUTING -s <IP_ADDRESS>/32 -d <IP_ADDRESS>/32 -p tcp -m tcp --dport 9000 -j MASQUERADE
-A POSTROUTING -s <IP_ADDRESS>/32 -d <IP_ADDRESS>/32 -p tcp -m tcp --dport 8000 -j MASQUERADE
$
$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS              PORTS                                            NAMES
7b208647007d        busybox             "top"               About a minute ago   Up About a minute   <IP_ADDRESS>:8000->8000/tcp, <IP_ADDRESS>:9000->9000/tcp   w0
$
$ # now kill docker daemon and restart
$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
$

Logs from daemon start:

ERRO[0002] Failed to start container 7b208647007d947855eecd8d43124d1c7f6bebfb2cc68c28db3438ec2602164f: driver failed programming external connectivity on endpoint w0 (e9deb1c283c0dade7d25e614d1d16d332ae3a1df153ef9942a142bb135017440): Bind for <IP_ADDRESS>:9000 failed: port is already allocated

LGTM

What version of Docker will include this fix?

@davidxia Docker 1.12.3


Add a function which just opens the buffer menu and update docs

Most people want to just open the buffer menu, there should be a function to do that.
Existing keymaps seemed strange, since it just created a menu toggler and discarded it.

For now I will merge this, although I think I am going to refactor the closure out into a table and methods as it is clearly both causing confusion and restricting  what we can do

Thanks for the contribution !


AMS - Model Data

Work on the model data plotting notebooks and use declarative plotting where possible.

Kill the skew-T exercise at the end of this notebook and add a wind barb plotting example/exercise or similar.


(ObjectClosedException) DSRA9110E: ResultSet is closed.

Describe the issue
nl.nn.adapterframework.core.PipeRunException: Pipe [Get records to be processed from database and iterate] msgId [testmessage0ace0850-691f75d3_17a80abe413_-405a] caught exception: (ObjectClosedException) DSRA9110E: ResultSet is closed.
Reporter
Swapnil / jjansenvr

To Reproduce
resultset_closed_log.txt
Screenshots
If applicable, add screenshots to help explain your problem.
Configuration
<pipe name="Get records to be processed from database and iterate" className="nl.nn.adapterframework.jdbc.ResultSetIteratingPipe"
 jmsRealm="jdbc" query="SELECT * FROM COLLECTIONS_RECORDSTORE WHERE TARGET = 'SAP FICO' AND STATUS = 'ToBeProcessed' AND FILTERINGREASON='NONE'  ORDER BY ID"
styleSheetName="xsl/generic/CreateMessage.xsl"
collectResults="false"
ignoreExceptions="true">

Input
Please provide an example of the input message.
Alternatively, provide a Ladybug report.

Environment
Please go to the console of your Frank, click on 'Information' and copy-paste the results here.

Additional Environment

DBMS: [e.g. Oracle, MSSQL, MariaDB, MySql, PostgreSQL]
Browser: [e.g. Chrome, Safari, Edge, Firefox]

Additional Context
Add any other context about the problem here. (f.e. ladybug report / test adapter with larva test)

Could you provide a ladybug report to see what actually happens?

The problem has changed a little but is not solved after 1 iteration the resultset is closed.


C19396: Missing hyperlink due to incorrect redenring

Hello, @Rick-Anderson,
Localization team has reported source content issue that causes localized version to have broken format compared to en-us version.
From the context of this source string, we can assume that writer did not intend this example URL to be rendered as hyperlink, and that text "App Namespace" within brackets {} is expected to be translated.
We found out that OPS is using a Markdig flavor called "Markdig (DocFX)" which does render URL surrounded by space to be rendered as hyperlink.
To avoid this, suggested fix to source string is add an escape char () to part of the URL.
Please review and merge the proposed file change to fix to target versions. If you make related fix in another PR  then share your PR number so we can confirm and close this PR.
Many thanks in advance.
When creating a new PR, please do the following and delete this template text:

Reference the issue number if there is one:
Fixes #Issue_Number

The "Fixes #nnn" syntax in the PR description causes
GitHub to automatically close the issue when this PR is merged.

Hi @carolinacmoravia ... On our repo, the fix is to code-fence the URL. We normally do this ...
(for example, `https://apps.facebook.com/{App Namespace}`).

Hi @guardrex, cc @Rick-Anderson, @carolinacmoravia,
We also considered using inline code syntax for the URL, but in that case, the text "App Namespace" within brackets {} will be locked from localization, so translator will not be able to translate that text.
So if you would like the text "App Namespace" within brackets {} to be translated, then we would proposed to use the escape character within the URL, so it would not be rendered as hyperlink and still be exposed to localization.

I see. We've been code-fencing URLs for quite some time, but perhaps we need a special rule for these URLs that have segments we would like to localize.
On a related note, I wonder about segments of code-fenced commands. I was just working with a few in another topic, where I needed to indicate "service name" and "service path" placeholders, so I composed it the way we normally do ...

`sc create <SERVICE_NAME> binpath= "<SERVICE_PATH>"`

sc create <SERVICE_NAME> binpath= "<SERVICE_PATH>"
If we wanted to localize the parts the reader would replace, we'd drop out of and into code-fencing ...

`sc create <`SERVICE NAME`> binpath= "<`SERVICE PATH`>"`

... which would render as ...
sc create <SERVICE NAME> binpath= "<SERVICE PATH>"
Looks kind'a funky, which begs the question if it should be ...

`sc create <`SERVICE NAME`> binpath= "<`SERVICE PATH`>"`

sc create <SERVICE NAME> binpath= "<SERVICE PATH>"
🤦♂ ... Even if localization would run on those placeholders, they'll never agree to that! :smile: lol
I have a side-question about this pertaining to commands on localized systems: Our friends in Mexico for example ... do they type "sc create ..." or do they type something like "sc crear ..."? Are the command arguments localized?

@guardrex, @Rick-Anderson, cc @carolinacmoravia, @ishasahni1 for visibility,
Command arguments within code block are usually not localized.
It would not look nice to try break up code block to localize parts within code block, so I would recommend to leave code blocks as they are.


chore: change lockfile bot to update comments

This proposed change is to the lockfile bot which comments on pull requests with changes to the lockfile. I propose changing the bot config to update the original comment when the PR is updated, rather than creating new comments, in order to reduce "noise" in the PR comment thread. Open to arguments for keeping it as-is with new comments for each commit!

yeah looks like a bug in their action.yml file, they specify the default as default: 'true', when, if github's own actions are anything to go by, should be default: true.


Add step size to Item floating-point input

Fixes an issue where you are unable to use floating point values as an item's dimensions. The issue occured since the default step size is "1"; as a result, every floating point value was considered invalid. This PR solves this issue by increasing the step count to "0.0001" to match the server's maximum precision.
closes #84

LGTM


Add logging of created and founded file entries

The reason for this logging is for further analysis of NPE
NGPBUG-54679

Better messages could be introduced here...
Also, what about the processFileContent method? It is used mainly in the process. Could some log messages be added there?


Creating your first Google Web Story

Article checklist
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
Preliminary Checks - Formatting and Structure

[x] Does your article follow any of the suggested structure formats? - see example formats
[x] Is your article properly formatted in Markdown? - see Github Markdown guide
[x] Have you used the correct folder and file structure? - see Contribution Guidelines
[x] Is your article over 750 words? - Tool: Wordcounter.net
[x] Have you used our preferred heading structure? - H3 (###) and up
[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.
[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.
[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images
[x] In your PR - add a comment that states "This fixes #(enter your Idea Content Form #)" to link and close your Idea Content (issue) when the PR is merged.

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid -  Grammarly
[x] Please place your article through a 3rd party plagiarism checker? We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide

Contribution guidelines
For first-time contributors and for more details, see Contributing Guidelines
This fixes #1802

@Jethro-magaji Nice article. Just a few minor issues. Could you please go through the above comments. Thanks

Thanks for the corrections, I have made some changes.

@WanjaMIKE I have made all the edits as requested.

Nice article@Jethro-magaji . I have learned a lot about web stories. The article flows well. Keep up.

Nice article@Jethro-magaji . I have learned a lot about web stories. The article flows well. Keep up.

Thanks for the comments and review I appreciate it.

plagiarism check done

just need to preview and published - when repo changes are finalized
NOTE:
Thank you - we are making some changes to the main repo now - and this is delaying a few article from being published as we want to implement the changes 1st - once these are done - we will publish this one asap. Thank you 🚀

https://www.section.io/engineering-education/creating-your-first-google-web-story/


soc: xtensa: add support for specifying the service port

This PR includes adding parameters for supporting:

Specifying the service port for west / twister /hardware map
(This also change the behavior that west flash have to add --pty {host} to show the output immediately.)
Specifying the service port for the cavs server
Add --tool-opt for the west to pass to cavstool
Update the zephyr doc for these changes.
Remove the dependency of netifaces python package.

Details:
Add specifying the port for the remote cavstool remote service.
Ex.
       west flash --remote-host {host}:{port} \
                  --pty {host}:{port}

Specify the port is optional when running west.
And another major change is now we have to specify the remote log
service by --pty to make it output the log message immediately.
Previously it will output directly. Why we make this change is
because this is more close to the behavior we use west flash.
west flash --remote-host=<IP_ADDRESS>:12345

Then get the log by:
soc/xtensa/intel_adsp/cavstool_client.py -s <IP_ADDRESS>:54321

Or doing following command to output log immediately:
west flash --remote-host=<IP_ADDRESS>:12345 --pty=<IP_ADDRESS>:54321

Also add specifying the port and network interface for cavs-server:
cavstool.py -s <IP_ADDRESS>:54321 --r 12345
OR
cavstool.py -s <IP_ADDRESS> -p 54321 --r 12345

Fixes #46865
Fixes #48584
Signed-off-by: Enjia Mai<EMAIL_ADDRESS>PS: this PR is spilt from https://github.com/zephyrproject-rtos/zephyr/pull/46880

Hi @marc-hb , I just re-implement it, according to your suggestion in the https://github.com/zephyrproject-rtos/zephyr/pull/46880. Use the --arguments to do it. Could you please re-review these two PRs, thank you very much!

Rebase and add version information. Now it is ready for SSH port support.

would better provide same port options in server side.
because the server is still listening on fixed port 9999 and 10000, if the port was changed to other ports on client side,  then users need to do a port forwarding to make it works.

Thanks for the review! @marc-hb @chen-png , working on updating it. as you suggested, I think the way of specifying the port such as (INADDR_ANY, port).

Thanks very much @marc-hb, @mbolivar-nordic ! Actually I thought again and again and tried to find better way for supporting the port specifying, now I have two kinds of implementation for it:
Assume remote service host is <IP_ADDRESS>,  req-port=12345 log-port=54321
Specify the port Propose 1
Run by west:
west flash --remote-host=<IP_ADDRESS> --tool-opt="-r 12345 -p 54321"

OR
west flash --remote-host=<IP_ADDRESS> --tool-opt="--port-req 12345 --port-log 54321"

Run by twister:
twister -W --device-testing -p intel_adsp_cavs18 \
--west-flash="--remote-host=<IP_ADDRESS>,--tool-opt=-r 12345" \
--device-serial-pty="/home/user/zephyrproject/zephyr/soc/xtensa/intel_adsp/tools/cavstool_client.py,-s,<IP_ADDRESS>,-r,54321,-l" \
-vv -T tests/kernel/semaphore/semaphore/

Specify the port Propose 2
Run by west:
west flash --remote-host=<IP_ADDRESS>,12345
soc/xtensa/intel_adsp/cavstool_client.py -s <IP_ADDRESS>,54321

OR
west flash --remote-host=<IP_ADDRESS>,12345 --pty=<IP_ADDRESS>,54321

Run by twister:
twister -W --device-testing -p intel_adsp_cavs18 \
--west-flash="--remote-host=<IP_ADDRESS>,12345" \
--device-serial-pty="/home/user/zephyrproject/zephyr/soc/xtensa/intel_adsp/tools/cavstool_client.py,-s,<IP_ADDRESS>,-p,12345,-l" \
-vv -T tests/kernel/semaphore/semaphore/

Any suggestion for these ways of specifying the port? @marc-hb
(I also added --tool-opt for both to extend the parameter for the future)

west flash --remote-host=<IP_ADDRESS>,12345 --pty=<IP_ADDRESS>,54321

The super-standard notation for port numbers is :, please stick to that as much as possible: west flash --remote-host=<IP_ADDRESS>:12345 --pty=<IP_ADDRESS>:54321

west flash --remote-host=<IP_ADDRESS> --tool-opt="-r 12345 -p 54321"

As discussed above, you cannot use whitespace separators inside arguments AND support whitespace in arguments. It leads to very confusing situations like this:
west flash --remote-host=<IP_ADDRESS> --tool-opt="-r 12345 --arg='white space'"

=> tool_opt_args = [   "-r",    "12345",   "--arg='white",   "space'" ] # BAD

The solution shown by @mbolivar-nordic is verbose but it always works:
west flash --remote-host=<IP_ADDRESS> --tool-opt=-r --tool-opt=12345 --tool-opt=--arg='white space'

=> tool_opt_args = [   "-r",    "12345",   "--arg=white space" ] # GOOD

Another thing I want to highlight is that you can see I cannot keep the parameters consistent

Not sure what parsing twister does, I recommend getting it "right" in west first and then worry about twister and consistency later.

twister -W --device-testing -p intel_adsp_cavs18
--west-flash="--remote-host=<IP_ADDRESS>,12345"
--device-serial-pty="/home/user/zephyrproject/zephyr/soc/xtensa/intel_adsp/tools/cavstool_client.py,-s,<IP_ADDRESS>,-p,12345,-l"
-vv -T tests/kernel/semaphore/semaphore/

The length and complexity of such a command line is crying for a configuration file.

The super-standard notation for port numbers is :, please stick to that as much as possible: west flash --remote-host=<IP_ADDRESS>:12345 --pty=<IP_ADDRESS>:54321

This is very important information for me! I got stocked for couple days and feel headache for what to use. If  {host}:{port} is used, all the problem I meet can be solved well. I will use this way.  Thank you! @marc-hb .

would better provide same port options in server side. because the server is still listening on fixed port 9999 and 10000, if the port was changed to other ports on client side, then users need to do a port forwarding to make it works.

Hi @chen-png , I implemented the -i paramater for specifying the network interface and we can specify the log port and req port in both client and server side, could you please help review again? Thanks!

I don't know why the re-request review button doesn't work for me. Excuse me @mbolivar-nordic @marc-hb @chen-png @stephanosio , could you please help re-review again, thank you very much!

The solution shown by @mbolivar-nordic is verbose but it always works

I would be open to reserving/enforcing -O as a short option for --tool-opt if you would find this useful. I've been waiting for someone to complain about the long option before giving it a short option.

Appreciate again for reviewing it so quickly! @marc-hb, and also @mbolivar-nordic :)

Hi @marc-hb, I tried to add the INADDR_ANY you mentioned previous, then did  some update in the documents. Could you please help review again when you get a change? Thank you!

Hi @mbolivar-nordic , @stephanosio , could you please also help review this again when you get a change? Thank you!

Excuse me, @mbolivar-nordic @marc-hb , could you please help to review this again, thank you very much!

Update this PR focus on:

Address the comments from @mbolivar-nordic, adapting to https://github.com/zephyrproject-rtos/zephyr/pull/48581. To use --tool-opt.
Remove the dependency of netifaces package, to fix https://github.com/zephyrproject-rtos/zephyr/issues/48584
Update the doc accordingly.
Rebase to latest code.

Could you please help on reviewing it again? @mbolivar-nordic , @marc-hb , thank you!

Very busy week sorry, will review the next force-push

Excuse me, @mbolivar-nordic , could you please help on reviewing this again? Actually this is blocked some of our internal progress. Thank you so much!

@enjiamai I'm sorry this took so long for me to review. As for the HW pool, from experimenting on APL...
West works!
Twister works!
Really amazing work!!! :rocket: I did a couple pretty mean things - for example, I CTRL+C killed the client in the middle of running a test in a long Twister run, then rehit with West / restarted the Twister run and the server just got right back into it even with a BrokenPipeError on the console. Very impressive!
The only issue is the hardware map. Maybe this is just user error, in which case I'm ready to approve, but when I try to adapt your hardware map example for our hardware pool, I get this:
DEBUG   - Flash command: ['west', 'flash', '--skip-rebuild', '-d', '/home/herbert/zephyr-external/zephyr/twister-out/intel_adsp_cavs15/samples/hello_world/sample.basic.helloworld', '--runner', 'intel_adsp', '--remote-host=<USER>@<HOSTNAME>', '--port-req=<REQ_PORT>', '--port-log=<LOG_PORT>']
DEBUG   - DEVICE: usage: cavstool_client.py
DEBUG   - DEVICE: [-h]
DEBUG   - DEVICE: [-q]
DEBUG   - DEVICE: [-l]
DEBUG   - DEVICE: [-s SERVER_ADDR]
DEBUG   - DEVICE: [fw_file]
DEBUG   - DEVICE: cavstool_client.py: error: unrecognized arguments: --port-log
DEBUG   - -- west flash: using runner intel_adsp

This is my cavs.map file:
   - connected: true
     id: None
     platform: intel_adsp_cavs15
     product: None
     runner: intel_adsp
     serial_pty: "/home/herbert/zephyr-external/zephyr/soc/xtensa/intel_adsp/tools/cavstool_client.py,-s,<USER>@<HOSTNAME>,--port-log,<LOG_PORT>,-l"
     runner_params:
     -<EMAIL_ADDRESS>     - --port-req=<REQ_PORT>
     - --port-log=<LOG_PORT>

Looking a little into it.

 runner_params:
 -<EMAIL_ADDRESS> - --port-req=<REQ_PORT>
 - --port-log=<LOG_PORT>

Yes, this is incorrect and I should also update this after --tool-opt has been added. I got them fixed, thank you!


Community members can review the PR once tests pass. Tag maintainers/contributors who might be interested:
I'm not sure who to tag for chains, maybe @vowelparrot ?

so on one hand this seems reasonable
on the other hand, this may actually weirdly be desirable as LLMs have a limited context length so tough to make work with long strings so this could have actually been saving some stuff...

Sure it could be saving usage, but for me, it's sometimes hallucinating and sometimes it returns the action JSON, like here:

Maybe it's because the truncation is happening in the middle of the text and cutting worlds, for my scenario I do need those values I know they are big but it's a requirement I have, do you think we should add an option like max_char and that is applied on every column and the truncate happens at the end, without truncating word but adding ...? so it's going to be a conscient decision and not a hidden one?

@hwchase17 I'm going to add this truncate feature and make it default to the same as in SQLAchemy so we keep the behavior but the user can decide if they want to change it or not, I've one question is there a good place to put utility functions, I'd like to put that string truncate function in a place that can be reused, utils.py perhaps?

@hwchase17 I've added options to change the "truncation" size and add defaults so the behavior will be almost the same as before, but cleaner and without truncating the chain, let me know if you want any other changes.

@eyurtsev I think I've covered it all, let me know if we need more changes

Hey @eyurtsev do you wanna any other fix in this PR? thanks in advance.

Thanks for pinging me! @wsantos


Verify package version implications

We've bumped the package version to 2.0, but should make sure this won't cause issues elsewhere.

This seems like a good thing to me :+1:
Since scratch-blocks is in the scratch-* club, I don't believe a major version bump will cause any problems or even slow anything down.

Great, thanks! Closing accordingly.


Hi

I Want to Request the Following Reference(s) To Be Archived Publically

Add as many references as you want to be archived in the repository in the following pattern.

ref1
ref2

License approvement aggregation.

[ ] All my mentioned references approve the qualification parameters.

Hi, What do you mean by creating this issue? It's not clear @Parsmadar

I'm closing it as there is no value in keeping it open. :)


"When is Bottlerocket finished booting?"

Path to page with content (do not include domain name):
/en/faq/
What content is incorrect?
A fairly common question (or argument) is when Bottlerocket "finishes" booting. It's confounded by things like boostrap containers.
What should the content say or communicate?
This should be a FAQ item. The answer should be a generic, variant-independent answer (preconfigured.target) as well as more practical one, where bottlerocket becomes 'useful' (multi-user.target).

Related #260


Reorganize Halite Documentation

Reorganize how Halite is documented and switch from using HTML to using
Markdown.

This isn't ready yet, only a few pages have been converted, but I wanted to get some feedback on the approach.

Why make a different .php file for every page of the reference? Why not just use a .htaccess file and one .php file for all of the reference pages. We could just check the filename of the url and then load the appropriate md file inside of the HTML/CSS boilerplate.

This is like what we do with our API endpoints. See:
https://github.com/HaliteChallenge/Halite/blob/master/website/api/web/.htaccess
https://github.com/HaliteChallenge/Halite/blob/master/website/api/web/api.php

Sure, that sounds great. I'll figure out how to make that work.

Might want to switch to a sidebar menu like bootstrap's (scrolls as you scroll, active menu item changes as you scroll), since the pages are so long.
The alternative would be breaking up the long pages.

Also we will probably want to switch to styling that better differentiates the headers.

@Sydriax and I will make passes through the docs this weekend. I'll add in the .htaccess php trick. We hope to merge by Monday.

Are any of the existing pages not converted?

Moved to this PR https://github.com/HaliteChallenge/Halite/pull/321. @nmalaguti to make changes, just PR into that branch.


tooltip appearing behind popup

when calling tooltip on a view inside a PopupWindow, the tooltip appears behind the PopupWindow

I try to use in Modal and get the same effect, the tooltip appear behind Modal.  Is there a solution to this problem?


<IP_ADDRESS>.2

https://ci.appveyor.com/project/jpboyce/cb-cis-windows-2016#L1667

Resolved by 9cc4dbe


Feature/external mmd file

Description
This pull requests adds the ability to read mermaid diagrams from external .mmd files.
To use this feature, you will place mmd files in a subdirectory of your mkdocs docs_dir directory. You can then reference your diagrams in your markdown files by path relative to docs_dir. (Example given in the added test/external_diagram

@maschmi1 Thanks a lot for your contribution! Could I ask you to open an issue and describe the problem you encountered (what are mm files, etc.), and why you solved it this way (the "itch to scratch")?


Mandatory versus optional artefacts

It should be possible to define whether input artefacts are mandatory or optional. If mandatory artefacts are missing the task shouldn't be executed, and an error should be logged instead.

This has been done as part of https://github.com/Project-MONAI/monai-deploy-workflow-manager/issues/52

@jackschofield23 is this done? can we close if so?

Closed


Second link adds "undefined" to link

${1000, 20} is under siege and ${1000, 20}
Gives
The Realms[20] is under siege and Realms[20]undefinedDark Forces are marching as we speak...

fixed with 832c5fd2bbf398aae300584d173203bdaf9b3a43


Question: Get default data from root

Hello all, I want to ask if this is a valid thing to do: http://jsfiddle.net/uehkvw4o/3/
i.e: use data from the parent (or root) as the default for a component.
Is this ok?
data: function () {
        return {
            thevalue: this.root.get('myvalue')
        };
    }

That's a perfectly valid thing to do, as long as you're aware that the two values will not be synced. You'll also want to avoid copying objects and arrays like that unless you are doing a deep clone or slice.

Though valid, this approach breaks encapsulation and causes tight coupling. The component now 1) expects an ancestor exists or knows about an ancestor and 2) expects the ancestor to have a myvalue key.
I would suggest keeping default values to the component themselves.

Also, what @fskreuz said. My answer assumes you're already in a tight coupling situation where the child component is acting as a private member of the root. You'd definitely not want to do this with a generic component.

Thanks @fskreuz and @evs-chris , is there any way to keep them in sync or this is something that it can only be achieved by explicitly passing the data to the component? i.e.
<testcomponent thevalue="{{myvalue}}" />

Will ractive.link() help with this, or am I completely off? :confused:

Passing the data to the component (mapping) will work, as will link. Both do the same thing behind the scenes. using links and mappings will keep the data in sync, because it's the same data, so you can map or link objects and arrays across instances and everything will update appropriately as changes happen.
Note that cross instance linking is only available on edge (0.9) right now.

Still, given the sample code, it's a strange use case to have an ancestor define defaults for a descendant (or in this case, the descendant asking an ancestor what it should default to). @kouts if you don't mind, can we see the rest of the code or at least what this component does? Feels like it's a use case I haven't come across before.

There is a component that uses "hardcoded" keypaths that now must be changed to getting data from outside but if this is not the case then fallback to defaults which they are always present in the root instance. Unfortunately the nature of the development environment does not allow me to update all places this component is used so I figured this as a solution.
It might not be a good idea, but I will try the link feature to see if this works in my case.


HADOOP-19294. NPE on maven enforcer with -Pnative on arm mac

Update maven-enforcer-plugin.version to 3.5.0

this may not be arm-mac specific issue, I face the same issue on an x86 linux machine with JDK 17
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0:enforce (enforce-os) on project hadoop-common: Execution enforce-os of goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0:enforce failed: Cannot invoke "org.apache.maven.model.profile.ProfileActivationContext.getSystemProperties()" because "context" is null -> [Help 1]

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
12m 17s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+0 :ok:
detsecrets
0m  1s

detect-secrets was not available.

+0 :ok:
xmllint
0m  1s

xmllint was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
47m 27s

trunk passed

+1 :green_heart:
compile
17m 40s

trunk passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
compile
16m 15s

trunk passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
mvnsite
25m 36s

trunk passed

+1 :green_heart:
javadoc
9m 59s

trunk passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javadoc
8m 13s

trunk passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
shadedclient
160m 15s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
30m 22s

the patch passed

+1 :green_heart:
compile
17m 22s

the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javac
17m 22s

the patch passed

+1 :green_heart:
compile
16m 24s

the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
javac
16m 24s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
mvnsite
20m  2s

the patch passed

+1 :green_heart:
javadoc
9m 55s

the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javadoc
8m 12s

the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
shadedclient
73m 59s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
754m 59s
/patch-unit-root.txt
root in the patch passed.

+1 :green_heart:
asflicense
1m 44s

The patch does not generate ASF License warnings.

1069m 26s

Reason
Tests

Failed junit tests
hadoop.yarn.server.timelineservice.security.TestTimelineAuthFilterForV2

hadoop.hdfs.server.federation.router.TestRouterClientRejectOverload

Subsystem
Report/Notes

Docker
ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7082/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/7082

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint

uname
Linux e4e978c28e12 5.15.0-119-generic #129-Ubuntu SMP Fri Aug 2 19:25:20 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 01db25a819322771976e2b5cc8338a5bc559e782

Default Java
Private Build-1.8.0_422-8u422-b05-1~20.04-b05

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_422-8u422-b05-1~20.04-b05

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7082/1/testReport/

Max. process+thread count
4048 (vs. ulimit of 5500)

modules
C: . U: .

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7082/1/console

versions
git=2.25.1 maven=3.6.3

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.


[Feature Request] Allow navigation to presentations page on the OSF

Summary
I went to the OSF, tried to get to the presentations page, could not get there without the link.
Expected:

I expect to be able to navigate to the presentations page from the OSF.

I also expect to be able to navigate from osf.io to my individual conference's page.

Actual:

I cannot navigate there unless I have the link.

I cannot navigate there unless I have the link and there are more than 5 presentations in the conference I am attending.

Suggestion:

Add a link under the "Explore" tab that says "Presentations"

Add a link  that says "See All" on the Presentations page that allows you to see all presentations if clicked, placed next to the "Only conferences with at least five submissions are displayed here." text for context.

@jmcarp
@lbanner

It deals with two things, the first one is the main one.

I have no obstacles to this proposal, and think the need for a direct link is there -- labeling with "discuss" as I'd like to hear from Community @saradbowman or @AndrewSallans on proposed solution (?)

It seems like a no-brainer to me, considering how popular the presentation service has been.

I think this is a great idea.
I wonder about what to call it - would "Presentations" convey the right meaning to users?  other options: Presentations and Posters, Conferences, Presentation Hosting?
After all that, I think I vote for Presentations...

This has been reported in https://github.com/CenterForOpenScience/osf.io/issues/1418 and there is also some discussion there!!

@samanehsan Looks like you have a PR on that (#1418) ? Up-to-date? Thanks!

@lbanner, that is a reference to this issue, not a PR!

Ha! Right .... infinity mirrors! :arrows_counterclockwise:

@lbanner I can go ahead and add "Presentations" to the Explore dropdown if that seems like the solution we're going with. I could also easily add it to the footer as well.

Had put/suggested @Ghalko on this one -- BUT -- If you are open and can tackle it, I think that'd be good @caseyrollins -- Unless he :scream: 's