Syndicate reinforcement refactor

About the PR

Modified boots on Syndicate human reinforcement to start with a throwing knife instead of a combat knife.
In addition, I tried to give them a more "subterfuge" angle: they spawn with an additional 4 chameleon clothing pieces (jumpsuit/backpack/gloves/headset), a voice mask, agent ID, and the silenced Cobra.
Why / Balance

Resolves #27809 , but adds some more items than just the throwing knife to give the reinforcements more "flare".
Additional items include:

Voice mask: The reinforcement won't be on the manifest, so this should help disguise that fact.
Agent ID: Reinforcement can copy agent's existing accesses to get around easier.
Chameleon clothes: Basic blending in, standard operative jumpsuit sticks out like a sore thumb.
Cobra: Silenced, so it should be easier to help the agent eliminate a target without drawing suspicion.

Technical details

N/A, just YAML stuff
Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

N/A
Changelog

:cl:

add: Syndicate reinforcements now come with an agent ID and some chameleon clothes.
tweak: Syndicate reinforcements now come with a Cobra by default instead of a Viper.

isnt this like 12 tc worth of shit + a buddy for 16 tc

You’ve got shuttle event changes on this branch
also this is a pretty significant buff for reinforcements and TC economy

@Golinth my bad, that was unintentional, from another PR, will fix

closing this because branch is dirty with other stuff, will make another pr at a later date

closing this because branch is dirty with other stuff, will make another pr at a later date

You could had rebased or cherry picked to fix this i think

LETTTS GOO
oh wait it's closed  NOOOOOOOOOOOOOO
anyway good changes!!


Apply the data-active attribute when a Tabbable is in the :active state

Explain the motivation for making this change and try to link to an open issue for more information.
Provides a selector hook to style a Tabbable's active state. Works around Firefox's behavior to not apply the :active pseudoselector if preventDefault() is called on the mouseevent which would otherwise cause it to be applied. See #432.
Does this PR introduce a breaking change?
No

Codecov Report

Merging #445 into master will increase coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #445      +/-   ##
==========================================
+ Coverage    95.3%   95.33%   +0.02%
==========================================
  Files          94       94
  Lines        1427     1436       +9
  Branches      446      447       +1
==========================================
+ Hits         1360     1369       +9
  Misses         67       67

Impacted Files
Coverage Δ

packages/reakit/src/Tabbable/Tabbable.ts
91.35% <100%> (+1.08%)
:arrow_up:

Continue to review full report at Codecov.

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

Thanks for the PR @folz! 😊
I'll carefully review this and check if there aren't better alternatives. In the meantime, you can use the experimental reakit system feature to achieve the same result: https://codesandbox.io/s/reakit-system-modifying-internal-behavior-mnq8d

Oh, I didn't know about the system feature. That looks promising for my use case, I'll explore it some. Thanks!

That's still undocumented and may change in the future, but for now you can use these packages as references:

https://github.com/reakit/reakit/tree/master/packages/reakit-system-palette
https://github.com/reakit/reakit/tree/master/packages/reakit-system-bootstrap

(closing as I think the system extension serves my needs and this doesn't need to be in core)


How can I add my own template?

We're using Bitbucket for some projects and the template would need to be slightly different than what is used in Github.
Or does this go in a pull request?

Please read the docs

All available command line parameters can be listed using CLI : conventional-changelog --help.

Yes you can without the need of a PR
If you believe the docs is not clear, send a PR :)


Cleanup some test and coverage configuration

Add tox, pytest and pytest-xdist to the test deps
Update the coverage report configuraion in the pyproject.toml
Switch the coverage source to the package name for easier troubleshooting when running `coverage run --debug trace"
Remove all coverage files from the tox venv (.coverage and .coverage.xxx)
Enable xdist and add necessary .pth file for xdist forks to start coverage collection

This is out of date based on the better config in ADE and ADT, will revise at some point in the future


Subnet creation with custom node CIDR [Upstream PR]

Task
Merge the subnet creation with custom CIDR PR upstream.
Background
Giant Swarm's build of CAPG has support to create subnets with a custom CIDR. This feature is being contributed upstream, but is still unavailable because there are some issues with the build pipeline.
Resources

Upstream PR.

The PR was merged upstream. We still need a CAPG release with the change.


Bokeh version

change requirements with recent version of bokeh

@msalvaris  I added the requirements in this commit https://github.com/Azure/fast_retraining/pull/48/commits/85766847a367292f0ec00904c7ae13bac8fcf672


Automatic Rounding

Is it possible to make the price automatically round instead of saying "only use 5 decimal digits" or whatever the warning is. I am fine with only 5 places but it takes me longer to manually round and I am sure there is an easy rounding function that can be implemented.

@a7hybnj2 can you please provide an example of where you are running into this issue?

I think...I was copying and pasting price per part data from, lcsc into the supplier cost fields. Lcsc provided the price out to more decimal places than InvenTree would accept.

Aha, I see - should be fixed in https://github.com/inventree/InvenTree/pull/669


Does sealer support containerd and does not use docker, which can improve resource utilization

Does sealer support containerd and does not use docker, which can improve resource utilization

@xiaofan-linux , we will support containerd in the next release.

link to  issue #778


"(live test)" link should sometimes use https

https://github.com/tabatkins/bikeshed/blob/77332301562e2ce812c013f8fa6debde320dd06e/bikeshed/wpt/wptElement.py#L74
See logic in https://github.com/web-platform-tests/wpt.fyi/blob/master/webapp/components/test-runs.html#L74
Also, could consider using web-platform-tests.live instead of w3c-test.org, I think the former has higher chances of being maintained.

Nice, fixed in df73ddac, both for scheme and new url.


[$250] Submit Expense - Inconsistent Error Messages for Password Protected PDFs on Mweb and Android

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.86-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause - Internal Team
Action Performed:

On Android: Sign in with Expensify > FAB > Submit Expense
Add an amount and attach a password-protected PDF
On Mweb: Repeat the above steps
Observe the error messages

Expected Result:
The error message should be consistent for the same password-protected PDF across both platforms
Actual Result:
Different error messages appear for password-protected PDFs on Mweb and Android
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/6106ce5a-5d16-4611-8b18-a9f646403ade

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01a71dc36f6e73ac8e
Upwork Job ID:<PHONE_NUMBER>201940772
Last Price Increase: 2024-07-05

Issue OwnerCurrent Issue Owner: @s77rt

@CortneyOfstad  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

Proposal
Please re-state the problem that we are trying to solve in this issue.
Inconsistent Error Messages for Password Protected PDFs on Mweb and Android
What is the root cause of that problem?
The root cause is that we are handling errors concerning password protected pdf files for native apps here. That is because password protected pdf error is not caught by the validation put here for native devices. Hence 'Attachment error' message is displayed because of the default error key attachmentPicker.attachmentError.
https://github.com/Expensify/App/blob/f618a94c486b80aebab584c52288a7013ffad64a/src/components/MoneyRequestConfirmationList.tsx#L1237-L1238
For web, we handle password protected pdf here
https://github.com/Expensify/App/blob/f618a94c486b80aebab584c52288a7013ffad64a/src/pages/iou/request/step/IOURequestStepScan/index.tsx#L216-L219
What changes do you think we should make in order to solve the problem?
Change web error message key to attachmentPicker.attachmentError here
https://github.com/Expensify/App/blob/f618a94c486b80aebab584c52288a7013ffad64a/src/pages/iou/request/step/IOURequestStepScan/index.tsx#L216-L219
What alternative solutions did you explore? (Optional)
Change native platform error message to attachmentPicker.wrongFileType here
https://github.com/Expensify/App/blob/f618a94c486b80aebab584c52288a7013ffad64a/src/components/MoneyRequestConfirmationList.tsx#L1237-L1238

Sorry was OoO!
I think this may be more BE (tied to design) so going to get confirmation!

Asked here

Bumped the thread in design again 👍

Alright, confirmed with the Design Team that we want Invalid file type to be the main error across the board!

@Krishna2323 @etCoderDysto @cretadn22 Thank you for the proposals. The inconsistency we are having concerns both the error message being different as well as the timing of the verification phase (scan vs confirmation page). Can we add support to pdf verification on the scan step on native to be consist with web and then remove the one in the confirmation page?

@Krishna2323 @etCoderDysto @cretadn22 bumps on the above ^^^^ thank you!

@CortneyOfstad I'm on it

@etCoderDysto The pdfjsLib does not support rendering on native but I would assume that reading just a buffer of bytes to tell if the file is password protected or not should work fine. Have you tried reading the document?

@etCoderDysto The pdfjsLib does not support rendering on native but I would assume that reading just a buffer of bytes to tell if the file is password protected or not should work fine. Have you tried reading the document?

I haven't tried that. I will try it and get back to you!

Still waiting on proposals

@cretadn22 Your proposal will only change the text error but still keep the inconsistency where on web the validation is done on the scan page while on native it's done on the confirmation page.
I would prefer doing one of the following:

Make the pdfjs library work on native (only for checking if the pdf is password protected and not rendering)
Extend react-native-pdf as you mentioned

@cretadn22

Upon further investigation into react-native-pdf, I found that it doesn't offer a direct API specifically for checking password protection.

There is an exported PdfManager that we can use to load the file without rendering.

@CortneyOfstad Let hold this on https://github.com/Expensify/App/pull/44778

Sounds good — thanks @s77rt!

Deployed to production! Going to close 🎉


Not able to reproduce results

The graconet model does not converge when training on the OPA dataset. I am following the training directions described, but I am not able to reproduce the baseline results. After one epoch of training the FID is ~41 and after 11 epochs of training the FID is ~71.
Both Placenet and Terse seem to be working as expected, but the graconet model doesn't converge. Is anyone else able to reproduce the baseline results? Are there different parameters I should use, or is there something else wrong with the code? Thanks!

The adversarial loss may increase the training difficulty, you can try replacing adversarial loss with classification loss (using fixed SOPA as binary classification model). Additionally, I recommend FOPA https://github.com/bcmi/FOPA-Fast-Object-Placement-Assessment, which is more stable and effective.


Wish for a way to test non-public APIs

Flutter treats all public identifiers as part of its public API and strives to guarantee backward compatibility for every public identifier that is introduced to the framework.
As private identifiers (e.g "_foo") are only accessible from the same library they are typically not accessible from tests which are a different library.
This means that every identifier that we want to directly use in a test has to be public, and we need to commit for always keeping the framework compatible with it.
Current workaround (using library parts)
One example where this made us use a dirty workaround is the animated_icons library: We need some support of vector animations, but we did not yet have the time to properly design the API and format for it.
We wanted to implement vector animation support, as an internal implementation detail, without committing to keep supporting the current API.
But we did want to test the implementation.
What we ended up doing is implementing an animated_icons library that is made of parts, and re-define the same library using the same parts in the test file so it can access the private identifiers.
This workaround is not ideal as:

Parts are generally discouraged by the Dart community, and are not well supported by the analyzer, and the coverage tool.

Due to missing analyzer features (see b/71583889) we had to disable the test in some environments.
Due to coverage tool issues, we are limited with what can be imported in the test (see https://github.com/dart-lang/coverage/issues/194)
We need to maintain a double list of all file parts (one in the real library definition and the other in the test file)

Setting the parts structure takes some extra code and effort, and it's not always "worth it" for smaller things. Which ends up with us sometimes choosing between making something public just for testing it or testing at a less granular level (or not testing) it.

How about this: the test folder structure should reflect the implementation folder structure. If both structures match, then a test file is seen as if it was an extension of the implementation file, hence they are from the same library and the test file can see the whole implementation file, as if they were the same file.


Make docker entrypoint mvn clean test for all docker images

Per the discussion on the meeting of the 29th of may, the published docker images should all have the entry point mvn clean test . This should mean that instead of running 4 containers to reproduce we can simply run 2 (one before and one after dependency update) and check the logs to see at which step the process failed.

This is fixed with #69.


Output Bubble Prof diagrams in CircleCI

Outputs BubbleProf diagrams when the stress test is run in circleCI. Hopefully these will help us get a better understanding of performance.
Example: https://41194-209829093-gh.circle-artifacts.com/0/stress-test-1-payment.html

It was showing me a failing prepare step but it looks ok here: https://app.circleci.com/pipelines/github/statechannels/statechannels?branch=profiling
It seems to be pointing to a canceled build.


fix: remove scrollbar

before

after

not sure. but it would be good to set overflow-auto so that by default scrollbar wont appear but will be useful if content overflows.

Yes, but I don't know where this card needs to be scrolled.

there is a case: you can try https://npm-stat.link/vue?count=100


Notebook showNotebookDocument / Active/Visible Editor tests failures

https://dev.azure.com/monacotools/Monaco/_build/results?buildId=146750&view=logs&j=672276a2-8d3a-5fab-615d-090c51352f92&t=c55167a9-8752-5898-67fa-9d7c918c61b3&l=412
1) Notebook Editor
       showNotebookDocment:
     Error: Timeout of 60000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (D:\a\1\s\extensions\vscode-api-tests\out\singlefolder-tests\notebook.editor.test.js)
      at listOnTimeout (internal/timers.js:554:17)
      at processTimers (internal/timers.js:497:7)

  2) Notebook Editor
       Active/Visible Editor:
     Error: Timeout of 60000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (D:\a\1\s\extensions\vscode-api-tests\out\singlefolder-tests\notebook.editor.test.js)
      at listOnTimeout (internal/timers.js:554:17)
      at processTimers (internal/timers.js:497:7)

I think every Windows integration test run (Firefox) is failing:
Notebook Editor
    1) showNotebookDocment
    - notebook editor has viewColumn
    - Opening a notebook should fire activeNotebook event changed only once
Playwright ERROR: HTTP status 504 for https://a2382879-790f-4a81-9c4e-a1e73efae79c.vscode-webview.net/insider/69df0500a8963fc469161c038a14a39384d5a303/out/vs/workbench/contrib/webview/browser/pre/index.html?id=81a414af-caa4-4826-8318-043c5162477a&swVersion=3&extensionId=&platform=browser&vscode-resource-base-authority=vscode-resource.vscode-webview.net&parentOrigin=http%3A%2F%2Flocalhost%3A9888&purpose=notebookRenderer
    2) Active/Visible Editor
    √ Notebook Editor Event - onDidChangeVisibleNotebookEditors on open/close (9084ms)
Playwright ERROR: HTTP status 504 for https://470909a4-736f-4b91-8135-17ab3317fd45.vscode-webview.net/insider/69df0500a8963fc469161c038a14a39384d5a303/out/vs/workbench/contrib/webview/browser/pre/index.html?id=5603453b-0566-4462-8202-c8fd2e4b914d&swVersion=3&extensionId=&platform=browser&vscode-resource-base-authority=vscode-resource.vscode-webview.net&parentOrigin=http%3A%2F%2Flocalhost%3A9888&purpose=notebookRenderer
    3) Notebook Editor Event - onDidChangeVisibleNotebookEditors on two editor groups
  Notebook API tests
    - correct cell selection on undo/redo of cell creation
Playwright ERROR: HTTP status 504 for https://feba333d-c20a-45e9-975c-c1390f069e95.vscode-webview.net/insider/69df0500a8963fc469161c038a14a39384d5a303/out/vs/workbench/contrib/webview/browser/pre/main.js
Request Failed https://feba333d-c20a-45e9-975c-c1390f069e95.vscode-webview.net/insider/69df0500a8963fc469161c038a14a39384d5a303/out/vs/workbench/contrib/webview/browser/pre/main.js NS_ERROR_CORRUPTED_CONTENT
    4) editor editing event
Playwright ERROR: HTTP status 504 for https://851b48b9-17f3-45e5-85dc-5004cbddff10.vscode-webview.net/insider/69df0500a8963fc469161c038a14a39384d5a303/out/vs/workbench/contrib/webview/browser/pre/main.js
Request Failed https://851b48b9-17f3-45e5-85dc-5004cbddff10.vscode-webview.net/insider/69df0500a8963fc469161c038a14a39384d5a303/out/vs/workbench/contrib/webview/browser/pre/main.js NS_ERROR_CORRUPTED_CONTENT
    5) edit API batch edits
    √ edit API batch edits undo/redo (2468ms)
Playwright ERROR: HTTP status 504 for https://4e05962c-b6b5-46ff-9e9c-65faf01b0a36.vscode-webview.net/insider/69df0500a8963fc469161c038a14a39384d5a303/out/vs/workbench/contrib/webview/browser/pre/main.js
Request Failed https://4e05962c-b6b5-46ff-9e9c-65faf01b0a36.vscode-webview.net/insider/69df0500a8963fc469161c038a14a39384d5a303/out/vs/workbench/contrib/webview/browser/pre/main.js NS_ERROR_CORRUPTED_CONTENT
    6) #98841, initialzation should not emit cell change events.
Playwright ERROR: HTTP status 504 for https://c0831949-8b55-4c25-8bf6-524e5eb2385d.vscode-webview.net/insider/69df0500a8963fc469161c038a14a39384d5a303/out/vs/workbench/contrib/webview/browser/pre/index.html?id=596bba91-cf8c-4f5c-91ab-b3bdcac3573a&swVersion=3&extensionId=&platform=browser&vscode-resource-base-authority=vscode-resource.vscode-webview.net&parentOrigin=http%3A%2F%2Flocalhost%3A9888&purpose=notebookRenderer
    7) notebook open
Playwright ERROR: HTTP status 504 for https://dc69b307-aba8-49f0-b1ae-c1f22bbe1ec3.vscode-webview.net/insider/69df0500a8963fc469161c038a14a39384d5a303/out/vs/workbench/contrib/webview/browser/pre/index.html?id=bdd5f0ea-268d-453c-9097-9f4bf24eec6e&swVersion=3&extensionId=&platform=browser&vscode-resource-base-authority=vscode-resource.vscode-webview.net&parentOrigin=http%3A%2F%2Flocalhost%3A9888&purpose=notebookRenderer
    8) notebook cell actions
Playwright ERROR: HTTP status 504 for https://c47008fc-faa7-4cbf-9175-41d858c394c7.vscode-webview.net/insider/69df0500a8963fc469161c038a14a39384d5a303/out/vs/workbench/contrib/webview/browser/pre/fake.html?id=567871a0-8f5a-4888-956e-501289625e9d

Maybe related to a webview change @mjbvz

Skipped via https://github.com/microsoft/vscode/commit/bb39ae82cfdea744117aca693691a5ec13390036#diff-d5db4d2e295f803a58c5e7babea3494703197438818dba084d398f6d7f4ab5b8R47

The function has been tested by multiple tests so I'm going to remove this skipped test.

Reopening as these just failed on main: https://dev.azure.com/monacotools/Monaco/_build/results?buildId=182533&view=logs&j=9833cdaa-2e92-5f8d-56a8-239fd18fd628&t=9bc48eac-eb66-52c8-7250-d6490c5f3a15&l=409


Unable to update registry crates-io

Problem
OS: Debian testing
Rustc version:  rustc 1.59.0-nightly
cargo version: cargo 1.59.0-nightly
I am not able to build any rust project with cargo. It doesn't matter whether I have cargo/rustc installed by rustup or via apt. Switching from stable to nightly didn't resovel the issue either. All attemps at building throw the following error:

$ cargo build
    Updating crates.io index
error: failed to get `bytes` as a dependency of package `onenote_parser v0.3.0 (/home/user/onenote.rs)`

Caused by:
  failed to load source for dependency `bytes`

Caused by:
  Unable to update registry `crates-io`

Caused by:
  failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  an unknown git error occurred; code=NotFound (-3)

Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
No response

If possible, can you ZIP up the contents of ~/.cargo/registry/index/github.com-1ecc6299db9ec823/ and post it here or somewhere?  Afterwards, I think you can delete that directory and it should help.

Zip file:
github.com-1ecc6299db9ec823.zip
deleting the whole registry folder didn't resolve the error.

Hm, that's strange!  This seems suspicious that this would be reported now, as we just squashed the index a few days ago (2021-12-21T00:22:52).  Unfortunately the zip file doesn't show much, as it is just an empty repo.
Perhaps you can help debug this a little?  Can you show the output of git config -l? Be sure to remove anything that is private.  Another thing that might help is to set the environment variable CARGO_LOG=trace and run cargo fetch and post the output.
Can you show the output of nslookup github.com?  As a very unlikely guess, maybe the squash corrupted one of github's caches.
Can you clone the index using the git cli? Try setting the environment variable CARGO_NET_GIT_FETCH_WITH_CLI=true and run cargo fetch and see if it succeeds.

git config -l show up empty. Setting the environment variable and running cargo fetch gets me the same error (same goes for log).
nslookup github.com
Server:		<IP_ADDRESS>
Address:	<IP_ADDRESS>#53

Non-authoritative answer:
Name:	github.com
Address: <IP_ADDRESS>

Hm.  CARGO_LOG=trace should have enabled logging. I would expect a few dozen log lines that look like this:
2021-12-25T16:28:40Z TRACE cargo::core::registry] clear_lock
[2021-12-25T16:28:40Z TRACE cargo::core::registry] register_lock: foo v0.1.0 (/root/foo)
[2021-12-25T16:28:40Z TRACE cargo::core::registry]      -> toml v0.5.8
[2021-12-25T16:28:40Z TRACE cargo::core::registry] register_lock: serde v1.0.132
[2021-12-25T16:28:40Z TRACE cargo::core::registry] register_lock: toml v0.5.8
[2021-12-25T16:28:40Z TRACE cargo::core::registry]      -> serde v1.0.132
[2021-12-25T16:28:40Z DEBUG cargo::ops::resolve] attempting to prefer foo v0.1.0 (/root/foo)
[2021-12-25T16:28:40Z DEBUG cargo::ops::resolve] attempting to prefer serde v1.0.132
[2021-12-25T16:28:40Z DEBUG cargo::ops::resolve] attempting to prefer toml v0.5.8
[2021-12-25T16:28:40Z DEBUG cargo::core::registry] load/missing  /root/foo
[2021-12-25T16:28:40Z DEBUG cargo::core::registry] loading source /root/foo
[2021-12-25T16:28:40Z DEBUG cargo::sources::config] loading: /root/foo
[2021-12-25T16:28:40Z TRACE cargo::core::source::source_id] loading SourceId; /root/foo
[2021-12-25T16:28:40Z TRACE cargo::ops::cargo_read_manifest] read_package; path=/root/foo/Cargo.toml; source-id=/root/foo
[2021-12-25T16:28:40Z TRACE cargo::util::toml] read_manifest; path=/root/foo/Cargo.toml; source-id=/root/foo
[2021-12-25T16:28:40Z TRACE cargo::core::registry] locking summary of foo v0.1.0 (/root/foo)
[2021-12-25T16:28:40Z TRACE cargo::core::registry]      toml/^0.5/registry `crates-io`
[2021-12-25T16:28:40Z TRACE cargo::core::registry]      first hit on toml v0.5.8
[2021-12-25T16:28:40Z TRACE cargo::core::dependency] locking dep from `toml` with `^0.5` at registry `crates-io` to toml v0.5.8
[2021-12-25T16:28:40Z DEBUG cargo::core::resolver] initial activation: foo v0.1.0 (/root/foo)
[2021-12-25T16:28:40Z TRACE cargo::core::resolver] activating foo v0.1.0 (/root/foo)
[2021-12-25T16:28:40Z DEBUG cargo::core::registry] load/missing  registry `crates-io`
[2021-12-25T16:28:40Z DEBUG cargo::core::registry] loading source registry `crates-io`
[2021-12-25T16:28:40Z DEBUG cargo::sources::config] loading: registry `crates-io`
[2021-12-25T16:28:40Z TRACE cargo::core::source::source_id] loading SourceId; registry `crates-io`
[2021-12-25T16:28:40Z DEBUG cargo::sources::registry] skipping update due to locked registry
[2021-12-25T16:28:40Z DEBUG cargo::sources::registry] attempting query without update
[2021-12-25T16:28:40Z TRACE cargo::sources::registry::remote] acquiring registry index lock
[2021-12-25T16:28:40Z DEBUG cargo::sources::registry::index] slow path for "to/ml/toml"
[2021-12-25T16:28:40Z DEBUG cargo::sources::registry] falling back to an update
[2021-12-25T16:28:40Z DEBUG cargo::sources::registry::remote] updating the index

And CARGO_NET_GIT_FETCH_WITH_CLI=true should have given a different output, as it doesn't use the internal git library. The error posted in the original comment only comes from the internal library.
Can you make sure to delete the ~/.cargo/registry directory before running the commands?

I did delete the registry beforehand. Then I ran the commands like this:
~/test$ CARGO_LOG=trace
~/test$ cargo fetch
    Updating crates.io index
error: failed to get `bytes` as a dependency of package `test v1.0.0 (/home/user/test)`

Caused by:
  failed to load source for dependency `bytes`

Caused by:
  Unable to update registry `crates-io`

Caused by:
  failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  an unknown git error occurred; code=NotFound (-3)

test is a hello world program. I still get the same error.

~/test$ CARGO_LOG=trace
~/test$ cargo fetch

Ah, in most shells just typing a variable on a separate line like that doesn't "export" it so that programs like cargo can see it. You either have to place it all on one line:
CARGO_LOG=trace cargo fetch

or export it:
export CARGO_LOG=trace
cargo fetch

ah ok, my bad. log trace is attached. It seems to work with CARGO_NET_GIT_FETCH_WITH_CLI=true
log_trace.txt
.

I have the same issue on PowerPC Debian with a brand new install. CARGO_NET_GIT_FETCH_WITH_CLI=true fixed things for me as well.

I had this too, but have an issue with my ssh-agent and it wasn't loading the key. I was able to run ssh -T<EMAIL_ADDRESS>to test the auth and prompt for the passphrase for my key. Then a cargo run completed successfully without this error.
I was able to figure this out because of this thread/issue and export CARGO_LOG=trace. Thanks!

Related https://github.com/rust-lang/cargo/issues/7662

I'm currently experiencing this in CI. Running cargo with CARGO_NET_GIT_FETCH_WITH_CLI=true solves the issue for me.
It can be reproduced as follows:

podman run --rm -it quay.io/ansible/alpine3-test-container:2.0.2 /bin/bash
In there, run apk add cargo
In there, run /usr/bin/cargo install helloworld

The image hasn't changed for around a year, and this only started happening roughly a week ago (between July 26th and 27th). The package version of cargo (cargo-1.44.0-r0) never changed.
I know this is a quite old version, but maybe this helps figuring out what's going on. (This does not happen with newer versions of the CI image, for example with quay.io/ansible/alpine3-test-container:4.4.0.)

I ran into the same trouble, and I solved it following the guide here. Hope my experience will help:
I added the line 'export CARGO_NET_GIT_FETCH_WITH_CLI=true' to '~/.bashrc', and used the bash command 'source ~/.bashrc'. But this didn't work for my case.
After googling, I noticed that I should edit another file to make it work.
Then I added the line to '/etc/profile' with 'sudo', and 'source' it. Finally, this worked!
I don't really know why, since most of my local '$PATH' variables are in '~/.bashrc' with 'export', and they all work well.
It seems that '/etc/profile' has more privilege when the system is loading environment variables.

I ran into the same trouble, and I solved it following the guide here. Hope my experience will help:
I added the line 'export CARGO_NET_GIT_FETCH_WITH_CLI=true' to '~/.bashrc', and used the bash command 'source ~/.bashrc'. But this didn't work for my case. After googling, I noticed that I should edit another file to make it work. Then I added the line to '/etc/profile' with 'sudo', and 'source' it. Finally, this worked!
I don't really know why, since most of my local '$PATH' variables are in '~/.bashrc' with 'export', and they all work well. It seems that '/etc/profile' has more privilege when the system is loading environment variables.

Could you please specify what do you mean by "source" it?
I ran into the same issue and cannot fix it after trying all the solutions here.

Hi, ScottLinnn. I added the line "export CARGO_NET_GIT_FETCH_WITH_CLI=true" to "/etc/profile". Then, I used the bash command "source /etc/profile". Use "sudo" if necessary. Hope this helps.

Non of above works for me, remove the cache solved my problem
rm -rf ~/.cargo/registry/cache

Thank you, sweihub! This solved my problem too!

I was able to solve the problem after long hours
First you need to resolve the network problem allowing the system to reach full 100%.
Using the external git system is more stable than using the one that is build in
export CARGO_NET_GIT_FETCH_WITH_CLI=true
Add this to your ~/.bashrc file and restart the terminal
This will switch to the external git
Now increase the GIT Timeouts for slower connections
git config --global http.lowSpeedLimit 1000
git config --global http.lowSpeedTime 60
this will make GIT be very patient when downloading and dont stop easily on timeots
Delete cache-inconsistencies
Once your download is reaching 100% but still failing you have to delete everythin in
cd ~/.cargo/registry
enter into this folder and use rm -rf * to delete all files and subfolders there
Once the folder is completely empty run
cargo build-bpf
This will then finally work

The date and time were wrong on my machine (WSL on Windows 11), and setting these to the correct values completely fixed this issue for me.


Using with DropBlock

Hello, Firstly, I really appreciate to publish good paper and open the source code!
My question is, as I write on the title, what can be happen if I use CutMix with DropBlock?
Do you think that it is helpful? or there can be some interference between to techniques?

@Seojii
We didn't try CutMix+DropBlock so it is hard to say it would work well or not before we observe the results.
But with my experience of using CutMix+Cutout, which is somewhat similar to CutMix+DropBlock, the performance was not better than using CutMix.
My conjecture is that Cutout or Dropblock are kinds of regional dropout and CutMix implicitly includes the regional dropout concept, therefore, those kinds of combinations would be not much effective.


Impossible to create a server from the API

I try to post the following JSON data to the endpoint /api/admin/servers but every time i do it says "An unhandled exception occured while attemping to add this server. Please try again."
Here is the JSON data:
{     "name": "api test",     "user_id": "1",     "location_id": "1",     "memory": "1024",     "swap": "0",     "node_id":"0",     "allocation_id":"2",     "disk": "5000",     "cpu": "0",     "io": "500",     "service_id": "1",     "option_id": "1",     "auto_deploy": "true",     "startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}",     "env_SERVER_JARFILE":"server.jar",     "env_VANILLA_VERSION":"latest" }
EDIT: If you need my code let me know and I will be glad to push my latest to my repo.

You need to actually provide the error logs, not the data you're passing. I can't possibly guess what is wrong without a log.

It was missing a description key and value in the JSON. It is not documented in the API.


(#565) Update prow linter to validate env vars

#565 https://github.com/aws/eks-anywhere/issues/565

Added new EnvVar check to linter
Moved hard coded JobConstants to config/job-constants.yaml

@abhay-krishna @vignesh-goutham  @jaxesn @ndeksa @danbudris
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The only env var listed in the task to check was ARTIFACTS_BUCKET. To add others in the future we simple need to add it to the env list in the job-constants.yaml

The only env var listed in the task to check was ARTIFACTS_BUCKET. To add others in the future we simply need to add it to the env list in the job-constants.yaml

Can we also add support for the env vars here?

@abhay-krishna yes! Thanks for the additional vars!

Some more here with some overlap.

@abhay-krishna So the values for TEST_ROLE_ARN env var in eks-anywhere/eks-anywhere-e2e-presubmits.yaml and eks-anywhere/eks-anywhere-e2e-cleanup-periodics.yaml are different. I'm working under the assumption that we are trying to enforce a consistent value for all the env vars listed in job-contants.yaml. With that said, which TEST_ROLE_ARN value is the correct one for us to enforce? Or If they should be different values which env var do you want to rename? And if we rename it I assume there are some down stream jobs that we would have to update to reflect the new name as well. Please let me know your thoughts.

Some more here with some overlap.

I pushed the additional vars, but one of them has an inconsistent value in 2 different job files. Please see my other comment for more details so we can take appropriate action.


Docs and examples #341

closes #341 , closes #335 , closes #116

Fast forwarding this since it's mostly tutorial material and some cosmetic changes.


2024-11-19T08:47:19+01:00 ERROR: failed to build: exit status 1

Issue
We got this error and no stack trace
2024-11-19T08:47:19+01:00 unable to invoke layer creator
2024-11-19T08:47:19+01:00 unable to contribute application layer
2024-11-19T08:47:19+01:00 unable to resolve artifacts
2024-11-19T08:47:19+01:00 unable to find any built artifacts for pattern(s):
2024-11-19T08:47:19+01:00 target/quarkus-app/lib/
2024-11-19T08:47:19+01:00 target/quarkus-app/*.jar
2024-11-19T08:47:19+01:00 target/quarkus-app/app/
2024-11-19T08:47:19+01:00 target/quarkus-app/quarkus/
2024-11-19T08:47:19+01:00 Timer: Builder ran for 32.916921417s and ended at 2024-11-19T07:47:19Z
2024-11-19T08:47:19+01:00 ERROR: failed to build: exit status 1

if we build the following project
git clone https://github.com/redhat-buildpacks/java-buildpack-example
cd java-buildpack-example
// Start podman rootless
// Change within the code => ".withDockerSocket("/run/user/501/podman/podman.sock")" with your socket path
mvn package exec:java

Full gist: https://gist.github.com/cmoulliard/f86fa812a665c14bff627e054d83d7ff#file-gistfile1-txt-L2943
@BarDweller

We got this error and no stack trace

Such an error was due to a missing maven plugin part of the sample project. I fixed it.
Nevertheless, we got now another error due to permissions issue on unlinkat /workspace/.git: permission denied
2024-11-19T10:14:51+01:00 Found artifacts: [/workspace/target/quarkus-app/lib /workspace/target/quarkus-app/quarkus-run.jar /workspace/target/quarkus-app/app /workspace/target/quarkus-app/quarkus]
2024-11-19T10:14:54+01:00   Removing source code
2024-11-19T10:14:54+01:00 unable to invoke layer creator
2024-11-19T10:14:54+01:00 unable to remove /workspace/.git
2024-11-19T10:14:54+01:00 unlinkat /workspace/.git: permission denied
2024-11-19T10:14:54+01:00 Timer: Builder ran for 49.975483411s and ended at 2024-11-19T09:14:54Z

Ok to close this one ?


RadSideDrawer integration

Anyone succeeded in integrating RadSideDrawer with nativescript-angular, (I’ve tried everything here in terms of general setup: https://github.com/tjvantoll/nativescript-template-drawer)… just doesn’t display anything.
component:
import {Component} from 'angular2/core';
import {registerElement} from 'nativescript-angular/element-registry';

registerElement('Drawer', () => require('nativescript-telerik-ui/sidedrawer'));

@Component({
  selector: 'app',
  templateUrl: './app.component.html'
})
export class AppComponent {}

app.component.html:
<Drawer:RadSideDrawer>
  <Drawer:RadSideDrawer.mainContent>
    <StackLayout>

    </StackLayout>
  </Drawer:RadSideDrawer.mainContent>
  <Drawer:RadSideDrawer.drawerContent>
    <StackLayout class="container">

    </StackLayout>
  </Drawer:RadSideDrawer.drawerContent>
</Drawer:RadSideDrawer>

No errors in console at all. App launches just fine. (no exceptions. nothing. normal log)
Displays absolutely nothing. Just a white screen app. Very puzzling.

I should mention I've also tried this just for kicks. Tried several things to no avail.
component:
import {Component} from 'angular2/core';
import {registerElement} from 'nativescript-angular/element-registry';

registerElement('RadSideDrawer', () => require('nativescript-telerik-ui/sidedrawer').RadSideDrawer);

@Component({
  selector: 'app',
  templateUrl: './app.component.html'
})
export class AppComponent {}

app.component.html:
<RadSideDrawer>
  <RadSideDrawer.mainContent>
    <StackLayout>

    </StackLayout>
  </RadSideDrawer.mainContent>
  <RadSideDrawer.drawerContent>
    <StackLayout class="container">

    </StackLayout>
  </RadSideDrawer.drawerContent>
</RadSideDrawer>

Same thing. Just white app. I thought maybe it needed some height/width so I tried adding height="100%" and width="100%" on several nodes but still nothing. Stumped.

I feel like I should have a play. It certainly needs the register element.
'<RadSideDrawer.mainContent>' ... would that need a directive ... maybe. Take a look at:
tab views

@matt4446 good thinking... I'll try that when I get the chance.

Using directives does fix it. I have a working implementation with this:
@Directive({
    selector: 'RadSideDrawer'
})
export class RadSideDrawerDirective {
    public drawer: RadSideDrawer;

    constructor(private element: ElementRef) {
        this.drawer = element.nativeElement;
    }
}

@Directive({
    selector: '[mainContent]'
})
export class RadSideDrawerMainDirective {

    constructor(
        private owner: RadSideDrawerDirective,
        private templateRef: TemplateRef,
        private viewContainer: ViewContainerRef
    ) {
    }

    ngOnInit() {

        const viewRef = this.viewContainer.createEmbeddedView(this.templateRef);
        //Filter out text nodes, etc
        const realViews = viewRef.rootNodes.filter((node) =>
                            node.nodeName && node.nodeName !== '#text')

        if (realViews.length > 0) {
            this.owner.drawer.mainContent = realViews[0];
        }
    }
}

@Directive({
    selector: '[drawerContent]'
})
export class RadSideDrawerContentDirective {

    constructor(
        private owner: RadSideDrawerDirective,
        private templateRef: TemplateRef,
        private viewContainer: ViewContainerRef
    ) {
    }

    ngOnInit() {

        const viewRef = this.viewContainer.createEmbeddedView(this.templateRef);
        //Filter out text nodes, etc
        const realViews = viewRef.rootNodes.filter((node) =>
                            node.nodeName && node.nodeName !== '#text')

        if (realViews.length > 0) {
            this.owner.drawer.drawerContent = realViews[0];
        }
    }
}

with a view like this:
<RadSideDrawer>
  <RadSideDrawer.mainContent *mainContent>
    <StackLayout class="container">

    </StackLayout>
  </RadSideDrawer.mainContent>
  <RadSideDrawer.drawerContent *drawerContent>
    <StackLayout class="container">

    </StackLayout>
  </RadSideDrawer.drawerContent>
</RadSideDrawer>

The * is very important.
I can clean this up and create a plugin? Or does the core team want to integrate this into nativescript-angular ?

In part this works... still have a little issue with drawerContent... but looks like this will work.

I created pretty much the same thing but it didnt work. I wonder what is significantly different.
Copy and paste code time. :+1:

Yeah maybe paste it here, lemme see what the difference is.

exactly the same now (including the template)
I added some logging and the significant parts are hit:
this.owner.drawer.mainContent = realViews[0];
this.owner.drawer.drawerContent = realViews[0];
I just end up with a big blank page. It is either the directives (maybe I've not assigned them to the components correctly) or it is page-router-outlet ... hmmm
Maybe I'll test it without the page-router-outlet tomorrow.
seeing as the code is reached it probably has nothing to do with the directives.
Sleep is needed now ;-)

Ok so the implementation is not quite right yet. Maybe @hdeshev or @vakrilov may know.
It looks like the layout containers like StackLayout are not included and ends up with just a Label.
You can see in this demo that the layout containers are not present:

This occurs with a view setup like this:
<RadSideDrawer id="drawer">
  <RadSideDrawer.mainContent *mainContent>
    <StackLayout class="container">

    </StackLayout>
  </RadSideDrawer.mainContent>
  <RadSideDrawer.drawerContent *drawerContent>
    <StackLayout class="drawer-content">

    </StackLayout>
  </RadSideDrawer.drawerContent>
</RadSideDrawer>

And using the directive setup like this:
import {ElementRef, Directive, Input, TemplateRef, ViewContainerRef} from "angular2/core";
import {TabView, TabViewItem} from "ui/tab-view";
import {RadSideDrawer} from 'nativescript-telerik-ui/sidedrawer/sidedrawer';

@Directive({
    selector: 'RadSideDrawer'
})
export class RadSideDrawerDirective {
    public drawer: RadSideDrawer;

    constructor(private element: ElementRef) {
        this.drawer = element.nativeElement;
    }
}

@Directive({
    selector: '[mainContent]'
})
export class RadSideDrawerMainDirective {

    constructor(
        private owner: RadSideDrawerDirective,
        private templateRef: TemplateRef,
        private viewContainer: ViewContainerRef
    ) {
    }

    ngOnInit() {

        const viewRef = this.viewContainer.createEmbeddedView(this.templateRef);
        //Filter out text nodes, etc
        const realViews = viewRef.rootNodes.filter((node) =>
                            node.nodeName && node.nodeName !== '#text')

        if (realViews.length > 0) {
            this.owner.drawer.mainContent = realViews[0];
        }
    }
}

@Directive({
    selector: '[drawerContent]'
})
export class RadSideDrawerContentDirective {

    constructor(
        private owner: RadSideDrawerDirective,
        private templateRef: TemplateRef,
        private viewContainer: ViewContainerRef
    ) {
    }

    ngOnInit() {

        const viewRef = this.viewContainer.createEmbeddedView(this.templateRef);
        //Filter out text nodes, etc
        const realViews = viewRef.rootNodes.filter((node) =>
                            node.nodeName && node.nodeName !== '#text')

        if (realViews.length > 0) {
            this.owner.drawer.drawerContent = realViews[0];
        }
    }
}

The problems occurs somewhere with this:
const viewRef = this.viewContainer.createEmbeddedView(this.templateRef);
        //Filter out text nodes, etc
        const realViews = viewRef.rootNodes.filter((node) =>
                            node.nodeName && node.nodeName !== '#text')

        if (realViews.length > 0) {
            this.owner.drawer.drawerContent = realViews[0];
        }

This looks very cool, but I think it would be better and more angular-friendly if we get rid of the RadSideDrawer.mainContent tags. I was thinking about possible ways to integrate components having multiple templates, and the best I came up with was something like:
<RadSideDrawer id="drawer">
  <template #main>
    <StackLayout class="container">

    </StackLayout>
  </template>
  <template #drawer>
    <StackLayout class="drawer-content">

    </StackLayout>
  </template>
</RadSideDrawer>

Of course, that would require that we create a component for the RadSideDrawer selector and manage templates there.
We are thinking of using the same approach for other components exposing multiple templates like the RadListView, for example.

@hdeshev I like your suggestion.
I'm trying to find a way forward on this to implement right away and curious if there's any specific implementation details I need to make your suggestion work?   Similar to directives approach above or if there's sample code you could point me to I could try?  Thank you.

I'd be willing to help create a separate module (maybe nativescript-telerik-ui-ng) which would contain all the telerik-ui components for angular consumption. Would need just a couple pointers and help with the first 1 (this one) or 2 to get me started.  That way it keeps these custom (3rd party lib) components out of nativescript-angular.

@NathanWalker, this will be done by the telerik-ui team. They will focus on this after their initial release at the end of March. If you want them earlier you are more than welcome to do so, but please be in sync with @ginev who is leading that team internally, so that we can later reuse your work :).

Sounds good @valentinstoychev thanks!

For anyone who stumbles on this thread from a google search make sure to check out the UI for {N} documentation at http://docs.telerik.com/devtools/nativescript-ui/Controls/Angular/SideDrawer/getting-started, as well as the samples in https://github.com/telerik/nativescript-ui-samples-angular/tree/release/sdkAngular/app/sidedrawer.

i added tns create my-app --ng & done tns plugin add nativescript-telerik-ui
this is my app.component.ts
`
import { Component, ViewChild, ChangeDetectorRef } from "@angular/core";
import { RadSideDrawerComponent, SideDrawerType } from "nativescript-telerik-ui/sidedrawer/angular";
@Component({
selector: "my-app",
templateUrl: "app.component.html"
})
export class AppComponent {
@ViewChild(RadSideDrawerComponent)
public drawerComponent: RadSideDrawerComponent;
private drawer: SideDrawerType;
public pages: Array;
constructor(
    private _changeDetectionRef: ChangeDetectorRef) {
    // List all pages here
    this.pages = [
        { name: "Home" },
        { name: "About" },
        { name: "Contact" }
    ];
}

ngOnInit() {
    this.drawer = this.drawerComponent.sideDrawer;
    this._changeDetectionRef.detectChanges();
}

public openDrawer() {
    console.log("drawer called...........................", JSON.stringify(this.drawer));
    this.drawer.toggleDrawerState();
}

}
`
app.component.html

but i am getting errors on load and clicking the side drawer icon :

JS:     at /data/data/org.nativescript.myapp/files/app/tns_modules/zone.js/dist/
zone-node.js:532:18
JS:     at ZoneDelegate.invokeTask (/data/data/org.nativescript.myapp/files/app/
tns_modules/zone.js/dist/zone-node.js:314:38)
JS:     at Object.NgZoneImpl.inner.inner.fork.onInvokeTask (/data/data/org.nativ
escript.myapp/files/app/tns_modules/@angular/core/src/zone/ng_zone_impl.js:44:41
)
JS:     at ZoneDelegate.invokeTask (/data/data/org.nativescript.myapp/files/app/
tns_modules/zone.js/dist/zone-node.js:313:43)
JS:     at Zone.runTask (/data/data/org.nativescript.myapp/files/app/tns_modules
/zone.js/dist/zone-node.js:214:48)
JS:     at drainMicroTaskQueue (/data/data/org.nativescript.myapp/files/app/tns_
modules/zone.js/dist/zone-node.js:432:36)
JS: Unhandled Promise rejection: Cannot read property 'sideDrawer' of undefined
; Zone: angular ; Task: Promise.then ; Value: TypeError: Cannot read property 's
ideDrawer' of undefined
JS: Error: Uncaught (in promise): TypeError: Cannot read property 'sideDrawer' o
f undefined
JS: EXCEPTION: TypeError: Cannot read property 'sideDrawer' of undefined
JS: STACKTRACE:
JS: TypeError: Cannot read property 'sideDrawer' of undefined
JS:     at AppComponent.ngOnInit (/data/data/org.nativescript.myapp/files/app/ap
p.component.js:15:43)
JS:     at DebugAppView.View_AppComponent_Host0.detectChangesInternal (AppCompo
nent.template.js:29:81)
JS:     at DebugAppView.AppView.detectChanges (/data/data/org.nativescript.myapp
/files/app/tns_modules/@angular/core/src/linker/view.js:243:14)
JS:     at DebugAppView.detectChanges (/data/data/org.nativescript.myapp/files/a
pp/tns_modules/@angular/core/src/linker/view.js:348:44)
JS:     at ViewRef.detectChanges (/data/data/org.nativescript.myapp/files/app/t
ns_modules/@angular/core/src/linker/view_ref.js:131:65)
JS:     at /data/data/org.nativescript.myapp/files/app/tns_modules/@angular/core
/src/application_ref.js:435:84
JS:     at Array.forEach (native)
JS:     at ApplicationRef_.tick (/data/data/org.nativescript.myapp/files/app/tns
modules/@angular/core/src/application_ref.js:435:38)
JS:     at ApplicationRef._loadComponent (/data/data/org.nativescript.myapp/fil
es/app/tns_modules/@angular/core/src/application_ref.js:406:14)
JS:     at /data/data/org.nativescript.myapp/files/app/tns_modules/@angular/core
/src/application_ref.js:393:19
JS: EXCEPTION: TypeError: Cannot read property 'sideDrawer' of undefined
JS: ns-renderer: ERROR BOOTSTRAPPING ANGULAR
JS: ns-renderer: Cannot read property 'sideDrawer' of undefined
JS:
JS: TypeError: Cannot read property 'sideDrawer' of undefined
JS:     at AppComponent.ngOnInit (/data/data/org.nativescript.myapp/files/app/ap
p.component.js:15:43)

Hi @sarvagayatri it looks like the error you are experiencing is caused by an bug in the zone.js which is part of the Angular 2 library. Here is the logged issue for reference. To resolve the issue simply change the "zone.js": "^0.6.21" in the devDependencies to "zone.js": "0.6.17".
We are working with the Angular team to resolve this breaking change caused by the zone.js package, in the mean while we are upgrading any project templates that use Angular 2.0.0 to not depend on the latest versions of zone.js.

I have done this command before the tns run android
npm install<EMAIL_ADDRESS>Or else i got some "timers" exception

How can I implement expandable (Nested) side drawer in android and ios using RadSideDrawer ?

@srnaik What do you mean by "nested", in order to use the RadSideDrawer in {N} + Angular you can follow the short introduction article here.

@VladimirAmiorkov Thank you responding to my question, I have already referred to the article that you have posted and I could able to implement the side drawer with the help of that article. My question is that  I would like to add child elements inside every side-drawer item. Please refer to the below piece of code.

Here, how can I add "Primary nested Item -1" & "Primary nested Item -1" as child elements inside "Primary" ?
P.S. The piece of code that I have written is to give you an idea of Nested feature that I am trying to achieve, I hope it was helpful.

@VladimirAmiorkov Thank you responding to my question, I have already referred to the article that you have posted and I could able to implement the side drawer with the help of that article. My question is that  I would like to add child elements inside every side-drawer item. Please refer to the below piece of code.
**<StackLayout class="sideStackLayout">

</StackLayout>**

Here, how can I add "Primary nested Item -1" & "Primary nested Item -2" as child elements inside "Primary" ?
P.S. The piece of code that I have written is to give you an idea of Nested feature that I am trying to achieve, I hope it was helpful.

@VladimirAmiorkov This is what I would like to achieve in side-drawer using RadSideDrawer, but I am unable to  do so. Please suggest me the correct approach.

@srnaik You can accomplish what you want to do by using a container element instead of a label element, you can use a StackLayout for example, create the "Primary" label inside the StackLayout and then add the other two labels, if you want to make them look different you can create a style (CSS class) for the "Primary" label and then another style for the "nested" labels by applying a margin-right (as example).

Thanks @viniciodeltoro , that was helpful !

Hi @viniciodeltoro,
I have another question related to wrapping the long text in the Label field. I am trying to wrap a long text in the side-drawer, but it is getting truncated,  I tried using style = "word-wrap: break-word;width:125px" css property for label, but even then I am not able to wrap the text to the next line.
Please let me know your thoughts on wrapping the text in sidedrawer

Hi @srnaik. You have to use the 'textWrap' property in the label, I believe it doesn't work if you try to add it in your CSS class. Your label code will be something like this.

Thank @viniciodeltoro , That worked :-)

I'm also having the same issue as @sarvagayatri using  "zone.js": "~0.8.2", any way to resolve this?

@chrillewoodz Our NativeScript UI sdk examples are currently using the ^0.6.21 version of zonejs without any issues, you can check out all of the package.json dependencies here. Is there a particular reason for using the ~0.8.2 version over ^0.6.21 in your project?

@VladimirAmiorkov That's what the cli created. Seems odd that after 6 months the bug still remains in zonejs..

@chrillewoodz You can track the status of the zonejs issue here.  Could you share with me which version of NativeScript (tns --version) are you using?

@VladimirAmiorkov I'm using 2.5.3.

Im getting this error
JS:     at PageRouterOutlet.activateOnGoForward (file:///data/data/org.nativescript.MyAppTest/files/app/tns_modules/nativescript-angular/router/page-router-outlet.js:150:57) JS:     at PageRouterOutlet.activateWith (file:///data/data/org.nativescript.MyAppTest/files/app/tns_modules/nativescript-angular/router/page-router-outlet.js:139:18) JS:     at ActivateRoutes.placeComponentIntoOutlet (file:///data/data/org.nativescript.MyAppTest/files/app/tns_modules/@angular/router/bundles/router.umd.js:4584:16) JS:     at ActivateRoutes.activateRoutes (file:///data/data/org.nativescript.MyAppTest/files/app/tns_modules/@angular/router/bundles/router.umd.js:4565:26) JS:     at file:///data/data/org.nativescript.MyAppTest/files/app/tns_modules/@angular/router/bundles/router.umd.js:4501:58 JS:     at Array.forEach (native) JS:     at ActivateRoutes.activateChildRoutes (file:///data/data/org.nativescript.MyAppTest/files/app/tns_modules/@angular/router/bundles/router.umd.js:4501:29)
any idea? thanks

I have tested this and it works fine with this in package.json:
"@angular/animations": "~4.1.0",
"@angular/common": "~4.1.0",
"@angular/compiler": "~4.1.0",
"@angular/core": "~4.1.0",
"@angular/forms": "~4.1.0",
"@angular/http": "~4.1.0",
"@angular/platform-browser": "~4.1.0",
"@angular/router": "~4.1.0",
"nativescript-angular": "~3.0.0",
"nativescript-ng2-fonticon": "^1.3.4",
"nativescript-telerik-ui": "^2.0.1",
"nativescript-theme-core": "~1.0.2",
"reflect-metadata": "~0.1.8",
"rxjs": "~5.3.0",
"tns-core-modules": "~3.0.0",
"zone.js": "~0.8.2",
"email-validator": "^1.0.7",
"nativescript-iqkeyboardmanager": "1.0.1",
"nativescript-social-share": "~1.3.2",
"nativescript-unit-test-runner": "^0.3.3"
But when I set this versions...
"@angular/animations": "~4.2.3",
"@angular/common": "~4.2.3",
"@angular/compiler": "~4.2.3",
"@angular/core": "~4.2.3",
"@angular/forms": "~4.2.3",
"@angular/http": "~4.2.3",
"@angular/platform-browser": "~4.2.3",
"@angular/router": "~4.2.3",
"nativescript-angular": "next",
"nativescript-ng2-fonticon": "^1.3.4",
"nativescript-telerik-ui": "^2.0.1",
"nativescript-theme-core": "^1.0.4",
"reflect-metadata": "^0.1.8",
"rxjs": "^5.4.0",
"tns-core-modules": "next",
"zone.js": "^0.8.11",
"email-validator": "^1.0.7",
"nativescript-iqkeyboardmanager": "1.0.1",
"nativescript-social-share": "~1.3.2",
"nativescript-unit-test-runner": "^0.3.3"
It doesn't show the drawer.
Thanks


Can't connect - stuck on uPnP? (raspberry pi)

Installed using the 'go get' method, and running directly as root from the gocode/bin directory for testing.
Another host on this network (different hardware) works fine, but when I try to run from my raspberry pi, it seems to get stuck on uPnP stage:
root@raspberrypi:/home/pi/gocode/bin# ./meshbird --loglevel info join
2016/10/28 13:44:08 INF [main] state restored, &{Secret:0x1086b3c0 ListenPort:53252 PrivateIP:<IP_ADDRESS>}
2016/10/28 13:44:08 INF [local] initializing net-table service
2016/10/28 13:44:08 INF [local] initializing listener service
2016/10/28 13:44:08 INF [listener] listening on 53253 port
2016/10/28 13:44:08 INF [local] running "net-table" service
2016/10/28 13:44:08 INF [local] initializing discovery-dht service
2016/10/28 13:44:08 INF [local] initializing iface service
2016/10/28 13:44:08 INF [local] running "listener" service
2016/10/28 13:44:08 INF [local] running "discovery-dht" service
2016/10/28 13:44:08 INF [local] initializing UPnP service
2016/10/28 13:44:08 INF [local] initializing http-service service
2016/10/28 13:44:08 INF [local] running "http-service" service
2016/10/28 13:44:08 INF [local] running "iface" service
2016/10/28 13:44:08 INF [local] running "UPnP" service
2016/10/28 13:44:19 ERR [public PRIVATE:1233] unable to dial, i/o timeout
2016/10/28 13:44:19 INF [net-table] unable connect PRIVATE:1232 err: i/o timeout
2016/10/28 13:44:19 ERR [public PRIVATE:53253] unable to dial, i/o timeout
2016/10/28 13:44:19 INF [net-table] unable connect PRIVATE:53252 err: i/o timeout
2016/10/28 13:44:19 ERR [public PRIVATE:13359] unable to dial, i/o timeout
2016/10/28 13:44:19 INF [net-table] unable connect PRIVATE:13358 err: i/o timeout
2016/10/28 13:44:19 ERR [public PRIVATE:59199] unable to dial, i/o timeout
2016/10/28 13:44:19 INF [net-table] unable connect PRIVATE:59198 err: i/o timeout
2016/10/28 13:44:22 ERR [public PRIVATE:16104] unable to dial, i/o timeout
2016/10/28 13:44:22 INF [net-table] unable connect PRIVATE:16103 err: i/o timeout
^C2016/10/28 13:44:53 INF [local] stopping...

('PRIVATE' is my home router's public IP removed)

New version 2.0 released.


chore: support tools target for arm64

Support Macs, and fixes some broken links.

/approve
/hold
let's sort which we want to merge first between this and #566

/lgtm


Sorter Blocks

A block with a GUI with 3 output sides and 1 input side. Would be used to sort items to different conveyors so automation and automated storage would become better. Sorters would also allow transporting several items on one conveyor without dealing with the issue of splitting the items properly apart later.

Closed, since conveyors have been removed.


SimpleClient download call is blocking [need info]

Using the following code, based off of the code in the cli package. Code blocks on client.downloadTorrentAsync. Similar issue for client.downloadTorrentAsync despite the fact that the file is downloaded successfully. The torrents were created using code similar to what's given in cli package as well. Any ideas what I'm doing wrong here?
public static void main(String[] args) {
        ArrayList<String> torrentFiles = new ArrayList<>();
        Arrays.stream(args).filter(arg -> arg.contains(".torrent")).forEach(tor -> torrentFiles.add(tor));

        try {
            SimpleClient client = new SimpleClient();
            Inet4Address iPv4Address = getIPv4Address(null);
            for (String tor : torrentFiles) {
                System.out.println("Starting download for " + tor);
                client.downloadTorrentAsync(tor, "/home/scratch/test/torrent_test/", iPv4Address);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }

    }

    private static Inet4Address getIPv4Address(String iface)
            throws SocketException, UnsupportedAddressTypeException,
            UnknownHostException {
        if (iface != null) {
            Enumeration<InetAddress> addresses =
                    NetworkInterface.getByName(iface).getInetAddresses();
            while (addresses.hasMoreElements()) {
                InetAddress addr = addresses.nextElement();
                if (addr instanceof Inet4Address) {
                    return (Inet4Address) addr;
                }
            }
        }

        InetAddress localhost = InetAddress.getLocalHost();
        if (localhost instanceof Inet4Address) {
            return (Inet4Address) localhost;
        }

        throw new UnsupportedAddressTypeException();
    }

Are you sure that code blocks on client.downloadTorrentAsync invocation? You don't stop simple client instance. Executor services are creating there and they will hold java process.

Yes as I'm using a for loop to start download for all torrents passed in. It only outputs the first sout statement

Well, I came in this morning and ran the code and it did not get stuck....very weird given I just pressed play on the IDE. I have no idea what happened...sorry for the trouble


Use snake case when locating wasm files - makes cargo odra so much

easier

Summary by CodeRabbit

Refactor

Improved naming convention consistency by automatically converting input names to snake_case.

Not needed, as we are dropping name from contract section of Odra.toml


Disable provisioning should redirect to Browse page

leaving it on the management page creates a potential problem if the user hits reload which would send the post again and disable  the new containers if they are already deployed.

This was included in v3.2.9


GW crashes when zerotierbridge is defined without a cidr

Create a gateway where one of the nics has a zerotierbridge but doesn't have a cidr.
The following crash occurs in ays:
Traceback (most recent call last):
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/tmp/actions/gateway/632d6f1466167f549f5c935444249cf3.py", line 130, in install
    j.tools.async.wrappers.sync(service.executeAction('start'))
  File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/tools/async/Wrappers.py", line 12, in sync
    return loop.run_until_complete(coro)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/lib/Service.py", line 673, in executeAction
    return await self.executeActionJob(action, args)
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/lib/Service.py", line 698, in executeActionJob
    result = await job.execute()
  File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/tmp/actions/gateway/632d6f1466167f549f5c935444249cf3.py", line 241, in start
    ip.addr.delete(nicname, nic['config']['cidr'])
KeyError: 'config'

Does it needs a cidr, or should the code be more robust

It doesnt require it, it could be you are bridging something that gets its ip from dhcp, we could read the ip from the interface instead

can't verify due to
https://github.com/zero-os/0-orchestrator/issues/487

Software Version
d627d44ef4a6e9c49e6b9c6d30f571773a366fe5


How can I run both dev and production servers in the same time?

If I start the production server I get no errors in chrome console, but after I start the same server but in development mode I get a lot of 404 errors in chrome console probably because the dev server builds some files again. How can I run both in the same time without the dev server changing production server files?
My server script:
const https = require('https')
const fs = require('fs')
const express = require('express')
const { Nuxt, Builder } = require('nuxt')
const app = express()
const host = process.env.HOST || 'localhost' //<IP_ADDRESS>
var port = process.env.PORT || 2096
var cluster = require('cluster')
var os      = require('os')
var num_processes = os.cpus().length

// Import and Set Nuxt.js options
let config = require('../nuxt.config.js')
config.dev = !(process.env.NODE_ENV === 'production')
if(config.dev) {
  num_processes = 1;
}

const options = {
    key: fs.readFileSync('/server/ssl/cert.key'),
    cert: fs.readFileSync('/server/ssl/cert.crt')
}

if (cluster.isMaster) {
  // This stores our workers. We need to keep them to be able to reference
  // them based on source IP address. It's also useful for auto-restart,
  // for example.
  var workers = [];

  // Helper function for spawning worker at index 'i'.
  var spawn = function(i) {
    workers[i] = cluster.fork();

    // Optional: Restart worker on exit
    workers[i].on('exit', function(code, signal) {
      logger.info('Respawning worker.');
      spawn(i);
    });
  };

  // Spawn workers.
  for (var i = 0; i < num_processes; i++) {
    spawn(i);
  }
} else {
  async function start() {
    // Init Nuxt.js
    const nuxt = new Nuxt(config)

    // Build only in dev mode
    if (config.dev) {
      const builder = new Builder(nuxt)
      await builder.build()
        .then(listen)
        .catch((error) => {
          console.error(error)
          process.exit(1)
        })
    } else {
      listen()
    }

    function listen() {
      // Listen the server
      https
        .createServer(options, nuxt.render)
        .listen(port)
      console.log('Server listening on https://' + host + ':' + port) // eslint-disable-line no-console
    }
  }
  start()
}

And the chrome console after I start the dev server:

I duplicated the project, one for dev server and one for production server. For the dev server project I changed srcDir to the production server directory so I can change only the production server files. For now looks like there are no more errors.
Is there a better way to do it?

You can't run both servers at the same time because they'll override the files created by each process.


Add os kernel version on playbooks/precheck.yml

When creating a cluster, if choosing to use cilium as the network plugin, cilium requires a system kernel version of >= 4.9.17. Therefore, it is necessary to check the kernel version of the nodes in advance during node inspection, so that users can be given more friendly tips when choosing cilium mode.
https://github.com/kubean-io/kubean/blob/7638a75694b8ab95f9711a1ef44987c52a83b7d5/playbooks/precheck.yml#L77

https://github.com/kubernetes-sigs/kubespray/blob/master/roles/network_plugin/cilium/tasks/check.yml#L23-L30

/kind feature


Issue 32 clear convo

Description
Cleaned up the way I was handling some of the clear conversation logic.
How Has This Been Tested (If the pull request for bug_report or feature_update) ?

Manual and unit testing

There is probably more I could unit tests around in the middleware logic, but that could also come with the middleware refactor since there will probably be some rework of the tests as well.

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Documentation change (explaining changes or adding document)

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

Additional context
na
Important Note
Closes [REQUEST] - clear conversations #32

Codecov Report

Merging #40 (46de250) into main (f5f7eb5) will decrease coverage by 7.48%.
The diff coverage is 40.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##             main      #40      +/-   ##
==========================================
- Coverage   98.57%   91.10%   -7.48%
==========================================
  Files           5        5
  Lines         211      236      +25
==========================================
+ Hits          208      215       +7
- Misses          2       18      +16
- Partials        1        3       +2

Impacted Files
Coverage Δ

src/slack/conversation.go
83.67% <38.46%> (-16.33%)
:arrow_down:

src/slack/middleware.go
88.37% <41.17%> (-11.63%)
:arrow_down:

closes #32


sso: 'Unknown error while trying to accept login'

To replicate:

Install v0.2.4-r3 from the official release
observe --customerid<PHONE_NUMBER>12 --site observeinc.com login<EMAIL_ADDRESS>--sso
Open the hyperlink it gives me
Click on the 'Accept' button (pictured below)

This pops up below the login request:

The CLI login command does not react at all.

We just released a new version, v0.3.0-rc1, which includes some RBAC updates both in the tool and on the back end -- could you try that version and see if this is fixed?


Dart Syntax Highlighting issue with as keyword.

(Original issue 970 created by caffinatedmonkey on 2014-03-25T22:06:42.373920+00:00)
There seems to be an issue with the Dart lexer. For example, in the following code, as should not be highlighted anywhere. Strings don't seem to have an issue but function names, library names and variable names do.
#!dart

library ast;

void asthat();

var tt = 'as';
var assa = 'error';

Here is the pygments demo: http://pygments.org/demo/304303/?style=monokai

(Original issue 970 last updated on 2014-04-14T16:38:17.805904+00:00)
(Issue automaticaly closed due to status in Bitbucket: resolved)

(Original comment by birkenfeld on 2014-04-14T16:38:17.795706+00:00)
Closes #970: fix overly zealous recognition of "as" as an operator.
→ <<cset 4bd01fd50e81>>


ecobee stopped working

Home Assistant release with the issue:

0.104.2
Last working Home Assistant release (if known):
Not sure - within 2 updates, and I track the latest pretty closely.
Operating environment (Hass.io/Docker/Windows/etc.):

Ubuntu 18.04.3LTS with venv for home assistant. Installed via pip3.
Integration:

https://www.home-assistant.io/integrations/ecobee
Description of problem:
Integration stopped working -- very few messages in log:
2020-01-18 16:48:55 ERROR (MainThread) [homeassistant.setup] Setup failed for ecobee: Unable to import component
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
ecobee:
  api_key: hunter2

Traceback (if applicable):

Additional information:

Some new info in logs:
Feb 14 11:30:07 localhost hass[30648]: 2020-02-14 11:30:07 ERROR (MainThread) [homeassistant.setup] Setup failed for ecobee: Unable to import component: cannot import name 'ECOBEE_API_KEY' from 'pyecobee' (/usr/local/hass/hap37/lib/python3.7/site-packages/pyecobee/init.py)

Have you set the integration up via configuration - integrations menu? Haven’t used configuration.yaml for several releases now...

No - I use configuration.yaml; I'll try pulling it from there and doing in GUI.

How does one delete an integration? I removed from configuration but it's still showing as configured. There's a trash bin icon at top right of the integration page which does nothing.

More info - when I try to delete the config from the trash bin, I get the following output in log:
Feb 14 11:50:19 localhost hass[1023]: 2020-02-14 11:50:19 ERROR (MainThread) [aiohttp.server] Error handling request Feb 14 11:50:19 localhost hass[1023]: Traceback (most recent call last): Feb 14 11:50:19 localhost hass[1023]:   File "/usr/local/hass/hap37/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start Feb 14 11:50:19 localhost hass[1023]:     resp = await task Feb 14 11:50:19 localhost hass[1023]:   File "/usr/local/hass/hap37/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle Feb 14 11:50:19 localhost hass[1023]:     resp = await handler(request) Feb 14 11:50:19 localhost hass[1023]:   File "/usr/local/hass/hap37/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl Feb 14 11:50:19 localhost hass[1023]:     return await handler(request) Feb 14 11:50:19 localhost hass[1023]:   File "/usr/local/hass/hap37/lib/python3.7/site-packages/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware Feb 14 11:50:19 localhost hass[1023]:     return await handler(request) Feb 14 11:50:19 localhost hass[1023]:   File "/usr/local/hass/hap37/lib/python3.7/site-packages/homeassistant/components/http/ban.py", line 72, in ban_middleware Feb 14 11:50:19 localhost hass[1023]:     return await handler(request) Feb 14 11:50:19 localhost hass[1023]:   File "/usr/local/hass/hap37/lib/python3.7/site-packages/homeassistant/components/http/auth.py", line 135, in auth_middleware Feb 14 11:50:19 localhost hass[1023]:     return await handler(request) Feb 14 11:50:19 localhost hass[1023]:   File "/usr/local/hass/hap37/lib/python3.7/site-packages/homeassistant/components/http/view.py", line 123, in handle Feb 14 11:50:19 localhost hass[1023]:     result = await result Feb 14 11:50:19 localhost hass[1023]:   File "/usr/local/hass/hap37/lib/python3.7/site-packages/homeassistant/components/config/config_entries.py", line 103, in delete Feb 14 11:50:19 localhost hass[1023]:     result = await hass.config_entries.async_remove(entry_id) Feb 14 11:50:19 localhost hass[1023]:   File "/usr/local/hass/hap37/lib/python3.7/site-packages/homeassistant/config_entries.py", line 603, in async_remove Feb 14 11:50:19 localhost hass[1023]:     unload_success = await self.async_unload(entry_id) Feb 14 11:50:19 localhost hass[1023]:   File "/usr/local/hass/hap37/lib/python3.7/site-packages/homeassistant/config_entries.py", line 703, in async_unload Feb 14 11:50:19 localhost hass[1023]:     return await entry.async_unload(self.hass) Feb 14 11:50:19 localhost hass[1023]:   File "/usr/local/hass/hap37/lib/python3.7/site-packages/homeassistant/config_entries.py", line 271, in async_unload Feb 14 11:50:19 localhost hass[1023]:     component = integration.get_component() Feb 14 11:50:19 localhost hass[1023]:   File "/usr/local/hass/hap37/lib/python3.7/site-packages/homeassistant/loader.py", line 266, in get_component Feb 14 11:50:19 localhost hass[1023]:     cache[self.domain] = importlib.import_module(self.pkg_path) Feb 14 11:50:19 localhost hass[1023]:   File "/usr/local/hass/hap37/lib/python3.7/importlib/__init__.py", line 127, in import_module Feb 14 11:50:19 localhost hass[1023]:     return _bootstrap._gcd_import(name[level:], package, level) Feb 14 11:50:19 localhost hass[1023]:   File "<frozen importlib._bootstrap>", line 1006, in _gcd_import Feb 14 11:50:19 localhost hass[1023]:   File "<frozen importlib._bootstrap>", line 983, in _find_and_load Feb 14 11:50:19 localhost hass[1023]:   File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked Feb 14 11:50:19 localhost hass[1023]:   File "<frozen importlib._bootstrap>", line 677, in _load_unlocked Feb 14 11:50:19 localhost hass[1023]:   File "<frozen importlib._bootstrap_external>", line 728, in exec_module Feb 14 11:50:19 localhost hass[1023]:   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed Feb 14 11:50:19 localhost hass[1023]:   File "/usr/local/hass/hap37/lib/python3.7/site-packages/homeassistant/components/ecobee/__init__.py", line 5, in <module> Feb 14 11:50:19 localhost hass[1023]:     from pyecobee import ECOBEE_API_KEY, ECOBEE_REFRESH_TOKEN, Ecobee, ExpiredTokenError Feb 14 11:50:19 localhost hass[1023]: ImportError: cannot import name 'ECOBEE_API_KEY' from 'pyecobee' (/usr/local/hass/hap37/lib/python3.7/site-packages/pyecobee/__init__.py)

Update -- I removed the ecobee related entries from .storage/core.* and kicked the server.
Now when I try to add ecobee from the gui using the + on integrations page, I get
Feb 14 11:59:32 localhost hass[2714]: 2020-02-14 11:59:32 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading config flow for integration ecobee: cannot import name 'ECOBEE_API_KEY' from 'pyecobee' (/usr/local/hass/hap37/lib/python3.7/site-packages/pyecobee/__init__.py) Feb 14 11:59:44 localhost hass[2714]: 2020-02-14 11:59:44 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading config flow for integration ecobee: cannot import name 'ECOBEE_API_KEY' from 'pyecobee' (/usr/local/hass/hap37/lib/python3.7/site-packages/pyecobee/__init__.py)

I have a feeling this is related to the wrong pyecobee being installed. The correct python package is called python-ecobee-api. Can you stop the server, access the HA venv, or get a shell in Docker, and do pip uninstall pyecobee, pip uninstall python-ecobee-API, then restart? Should prompt HA to reinstall the correct pyecobee.

That worked -- thanks!


Using TypeScript paths/baseUrl to alias imports makes patterns not work

Description
In my NextJS app, I use TypeScript's paths configuration so that src/* files are referred to as @/*. I want to handle all local imports with absolute paths this way, but Panda patterns seem to break when referring to its imports like that. Some simple styles provided by css() work, but when I try to use the hstack() pattern for example, it inserts the classes but the necessary CSS isn't included in the stylesheet.
this happens both when using a paths config, but also just when using baseUrl - absolute imports don’t seem to lead to the corresponding CSS to be included when importing patterns.
Link to Reproduction
https://github.com/osdiab/nextjs-panda-css-paths-repro/
Steps to reproduce

set up a NextJS app
set up Panda
set up a value in paths in tsconfig.json that points to styled-system directory
try using hstack() importing there
it doesn't work
switch it to a relative import
now it works

JS Framework
NextJS TS
Panda CSS Version
0.5.0
Browser
Chrome
Operating System

[X] macOS
[ ] Windows
[ ] Linux

Additional Information
Realized it here: https://github.com/chakra-ui/panda/discussions/867#discussioncomment-6311287
Wrong guess at the cause here: https://github.com/chakra-ui/panda/discussions/847

@astahmer @segunadebayo i tried updating the version of panda in the above example and that doesn't fix it. It looks like #834 was included in the last push so is it safe to say that the fix didn't actually fix the repro case? Thanks

no, that #834 actually was kinda related but didn't fix your case (and the current last public version published, 0.6 doesn't contain those changes anyway)
on the other hand the PR #868 does fix your issue, thank you for the minimal repro


vsr: remove dead code

I think this entire block became dead code after https://github.com/tigerbeetle/tigerbeetle/pull/1552, as now view headers are guaranteed to include an op from our log.

No, this is very much not dead, see the code around
                        // Transition from normal status, but the SV headers were part of the next
                        // wrap, so we didn't install them to our journal, and we didn't catch up.
                        // We will reuse the SV headers as our DVC headers to ensure that
                        // participating in another view-change won't allow the op to backtrack.


Followed every step but didn't worked

I followed every step from the manual installation but step 3 didn't worked (Start Nodepad++. You should see Plugins > Emmet menu item.) I can't see Emmet in the plugin menu item.

From my experience:

It doesn't work in a 64-bit version, use the 32-bit version instead
You have to install PythonScript first (available in package admin)
If it still doesn't work, try putting EmmetNpp.dll into the EmmetNpp folder

@ArtyIF thank you for your post. Your experience has drawn me to the same conclusion that at the moment Emmet plugin doesn't work with NPP 64-bit. I have NPP 64-bit v.7.9.1 and Emmet plugin is not on plugin manager list. While installing manually, if Python Script Plugin is installed first, and Emmet plugin unzipped to NPP plugins folder, it doesn't work unless EmmetNPP.dll is moved inside EmmetNPP folder, however, when moved and NPP is started, dialog pops up "Cannot load 32-bit plugin. EmmetNPP.dll is not compatible with the current version of Notepad ++".


chore(deps): update dependency prometheus to v3

fixes #150

TESTS:

https://github.com/arukiidou/docker-otel-lgtm/pull/7

Acceptance Tests / acceptance-tests (push) passeed

Thanks!


Support streams.

Streams  like > https://www.youtube.com/watch?v=K9rBhVX13h4 (or any other for the matter) display a spinning circle and a looking for streams message. After a while it displays a message saying no video streams available.

Hi, Yes I have the same pb. with https://www.youtube.com/watch?v=OjKssG-YniM.
youtube-dl does not complain about copyright and both Jolla browser and WebCat can play this stream.
@ApostolosB : Can you edit your title to be more precise to help YTPlayer developpers ?
Something like: 'Some Youtube streams cannot be played because "No streams:!" is found'
There are a lot a lot streams that cannot be played, can you guys look into it ?


Multi-gpu training error: semaphore_tracker

Thank you for your contribution. When I used 4 GPUs to train: CUDA_VISIBLE_DEVICES=0,1,2,3  bash scripts/dist_train.sh 4  --cfg_file cfgs/kitti_models/pv_rcnn.yaml    --batch_size 8  --epochs 80.   I encountered the following error:
UserWarning: semaphore_tracker: There appear to be 65 leaked semaphores to clean up at shutdown.  After the error occurred, individual GPUs(not all 4Gpus) were 100% occupied, but the training progress bar did not move. This problem confuses me. Do you have any other good suggestions? Thx
My environment is rtx 2080ti 11G*4
pytorch1.5.1
python3.6.9(python3.8 the same error)
spconv 1.2
CUDA 10.0.1

1

Thank you for your contribution. When I used 4 GPUs to train: CUDA_VISIBLE_DEVICES=0,1,2,3 bash scripts/dist_train.sh 4 --cfg_file cfgs/kitti_models/pv_rcnn.yaml --batch_size 8 --epochs 80. I encountered the following error:
UserWarning: semaphore_tracker: There appear to be 65 leaked semaphores to clean up at shutdown. After the error occurred, individual GPUs(not all 4Gpus) were 100% occupied, but the training progress bar did not move. This problem confuses me. Do you have any other good suggestions? Thx
My environment is rtx 2080ti 11G*4
pytorch1.5.1
python3.6.9(python3.8 the same error)
spconv 1.2
CUDA 10.0.1

Thank you for your contribution. When I used 4 GPUs to train: CUDA_VISIBLE_DEVICES=0,1,2,3 bash scripts/dist_train.sh 4 --cfg_file cfgs/kitti_models/pv_rcnn.yaml --batch_size 8 --epochs 80. I encountered the following error:
UserWarning: semaphore_tracker: There appear to be 65 leaked semaphores to clean up at shutdown. After the error occurred, individual GPUs(not all 4Gpus) were 100% occupied, but the training progress bar did not move. This problem confuses me. Do you have any other good suggestions? Thx
My environment is rtx 2080ti 11G*4
pytorch1.5.1
python3.6.9(python3.8 the same error)
spconv 1.2
CUDA 10.0.1

Setting workers to 0 ( --workers 0) is effective，the training speed is very slow

Hi! Is there any other solution? I met the same problem.


Update fs2-core to 1.0.4

Updates co.fs2:fs2-core from 1.0.3 to 1.0.4.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention @scala-steward in the comments below.
Have a nice day!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [{ groupId = "co.fs2", artifactId = "fs2-core" }]

Closing this one thanks to https://github.com/scalaz/scalaz-zio/pull/800


I want to contribute!

Hi! I'm new to open source contributions, would love to contribute to this project 😄 . I have experience in React, typescript, html and css.
Accidentally created an issue on the wrong account but closed it

Hi there @brnguyenn !! 👋🏻  First of all, sorry for the late response.
Thanks for your interest in helping stop analyzing. Your contributions are all welcome here and I'm sure we will build together a valuable tool.
Would you be interested in working on the issue https://github.com/bancodobrasil/stop-analyzing-embed/issues/76? If so, please comment there and I'll assign it to you. Don't worry, if you need any assistance, we got you covered.


Import of toponyms

Provide a functions to import toponyms (i.e. fill the toponyms table in the database)
These functions do not have to have API or any interface except for CLI, so that developers could fill the database when they need, and update the database similarly

[ ] Find somewhere all the data about Indonesia toponyms and their nesting
[ ] Provide the functions for Database
[ ] Test the functions

3 storypoints


TABL: Deserializing GTT - popup makes no sense

demo repo
https://github.com/abapGit-tests/TABL_GTT.git
This message while creating a GTT makes no sense, as the GTT doesn't exist.
It only appears when then GTT already existed earlier in the system.

Seems that the nametab used for existence check still contains the GTT.

Maybe we should call DD_NAMETAB_DELETE after deleting TABL objects?

that sounds dangerous 🚨
after the existence check it should hit https://github.com/abapGit/abapGit/blob/c05af1163f9ff035cdc70caf33df94965c7a6a38/src/objects/zcl_abapgit_object_tabl.clas.abap#L784 ? and in there I think its possible to do the same as https://github.com/abapGit/abapGit/pull/4075#issuecomment-717385249

Don't know if it's that dangerous.
Yeah, we could do probably the same, but I think it would be much more cleaner if existence check returns the right result. I guess this is source for other bugs too.

hmm, yea

Since we rely on nametab, I think calling DD_NAMETAB_DELETE is the way to go (after successful DDIC deletion). Might need the same for DTEL actually.

I tried to reproduce but the following works without issues (1.101.0):

New repo https://github.com/abapGit-tests/TABL_GTT.git
Pull
Uninstall
Pull
Uninstall

After uninstall, calling DD_GET_NAMETAB_HEADER returns NOT_FOUND.
Am I missing some step?


Use Nginx with meteor-up

Hi,
I would like use Nginx with Meteor for create redirect 301 IP to www.domaine.com. But, docker use port 80 and i don't know if i can edit this for use this port only with Nginx.
Do you have any idea for fix this ?
Thank you !

You can use something like this:
upstream index {
  server <IP_ADDRESS>:8080;
}

server {
  listen       80;
  server_name  domain.com;
  charset     UTF-8;
  location / {
    proxy_pass              http://index;
    proxy_redirect          off;
    proxy_set_header        Upgrade $http_upgrade;
    proxy_set_header        Connection "upgrade";
  }
}

You can then use 8080 in your mup.js. Your app shall then run at 8080, while nginx will proxy it to domain.com.

Here is an example of the Nginx config I use for proxing to Node/Ruby/Python apps.
server {
	listen 80 default_server;
	listen [::]:80 default_server;

	server_name mydomain.com www.mydomain.com mydomain-old.com www.mydomain-old.com;
    return 301 https://mydomain.com$request_uri;

#######
    # For LetsEncrypt this location block is added to the default nginx server block.
	location ~ /.well-known {
		allow all;
	}
#######

}

# Redirect various URL's to the one URL I want to use
server {
	listen 443 ssl;
	listen [::]:443 ssl;

	server_name www.mydomain.com mydomain-old.com www.mydomain-old.com;

	return 301 https://mydomain.com$request_uri;
}

server {
	listen 443 ssl http2 default_server;
	listen [::]:443 ssl http2 default_server;

	server_name mydomain.com;

	ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem;
	ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem;

    # This snippet is defined below
	include snippets/strong-ssl.conf;

	location / {
        	proxy_pass http://localhost:3000;
        	proxy_http_version 1.1;
        	proxy_set_header Upgrade $http_upgrade;
        	proxy_set_header Connection 'upgrade';
        	proxy_set_header Host $host;
        	proxy_cache_bypass $http_upgrade;
	}

}

# Server blocks for test.mydomain.com
server {
	listen 443 ssl http2;
	listen [::]:443 ssl http2;
	server_name www.test.mydomain.com;
	return 301 https://test.mydomain.com$request_uri;
}

server {
	listen 443 ssl http2;
	listen [::]:443 ssl http2;

	server_name test.mydomain.com;

	ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem;
	ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem;

	include snippets/strong-ssl.conf;

	location / {
		proxy_pass http://localhost:4000;
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection 'upgrade';
		proxy_set_header Host $host;
		proxy_cache_bypass $http_upgrade;
	}
}

The include snippets/strong-ssl.conf; is referencing a snippet in /etc/nginx/snippets:
# from https://cipherli.st/
# and https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_ecdh_curve secp384r1;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
ssl_stapling on;
ssl_stapling_verify on;
resolver <IP_ADDRESS> <IP_ADDRESS> valid=300s;
resolver_timeout 5s;
# Disable preloading HSTS for now.  You can use the commented out header line that includes
# the "preload" directive if you understand the implications.
#add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains";
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;

ssl_dhparam /etc/ssl/certs/dhparam.pem;

Setup guide Reverse proxy
Setup guide secure nginx with Let's Encrypt


How to find the openpoints in github?

Hi @guochengqian
How to git clone openpoints?
Thanks

Hi it should work now
Use this to pull the submodule
https://github.com/guochengqian/PointNeXt/blob/4d4a8da39f701650a3f656531ef42edf43670803/install.sh#L16

@guochengqian
It occurs the errors like this.
git clone git@github.com:guochengqian/PointNeXt.git
Cloning into 'PointNeXt'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

@whuhxb
this is because your ssh is not set up correctly.

@guochengqian
I have set mannually. In addition, how to set the CUDA_VISIBLE_DEVICE=1 in the main python file?

hi @whuhxb
thank you for your interest.
sorry, I cannot solve your personal concerns, since it is not related to our research.
Try to google for this kind of technical question.
cheers

@guochengqian
OK. I have set it manually.

usually people prefer set CUDA_VISIBLE_DEVICES in commandline. but if you prefer in the code, you can set os.environ to a specific GPU devices

@guochengqian
OK. Thanks a lot.


RegEx to find package ID does not work for multiple domains in a single package

RegEx to search for package ID does not work in my sitiation.
See following image of my Strato UI:

There are two domains under one package. And in HTML I see data-sortValue="xxx.me". However if I need to update second doman (xxx.online), it will never find it.
HTML for this kind of UI looks like this:
1234567

xxx.me

xxx.online

                alle anzeigen

                weniger anzeigen

            <button type="button" class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-expanded="false">

            </button>
            Dropdown fuer Aktionen

                        Ihr Paket

                        Domains verwalten

                        E-Mails verwalten

                        Domains bestellen

                        Paket upgraden

                        Paket kündigen

Okay, thanks for mentioning this.
The cID is 1 for both domains, right?
Could you maybe have a look at the page for setting txt-records and post the source of the relevant bits?
Are there any clues on how they are distinguished if it’s not via cID?

I dug a little further into the structure of strato packages.
It seems as cID is the identifier of the package, not the domain (as I do have two domains listed, but each in their own package that wasn't too obvious to me).
The page for changing txt-records only depends on the cID and the vhost i.e. the domain name: /apps/CustomerService?sessionID=xxx&cID=1&node=ManageDomains&action_show_txt_records&vhost=zzz.de
As the web scraping part is the most vulnerable to UI changes anyway, it might be a good idea to just let the user feed the correct cID into this tool.
What do you think?

@FlixMa Yeah, I think just giving a user a way to provide cid would be easier and less succeptible to bugs.

Isn't this already fixed in the project this project is based on?
https://github.com/FlixMa/certbot-dns-strato/blob/3148d6dc696983cdea0f36ff5792cb3a87db9c8f/certbot_dns_strato/dns_strato.py#L220

Yes it seems so. Thanks!
https://github.com/Buxdehuda/strato-certbot/blob/dd640807a11267360c0df6d8105c90701e6db796/certbotstratoapi.py#L140

I just published version 0.2.2 on pypi. Please have a look if this fixes the issue and report back :-)


fixing rpm generation issue with addb plugin binary

On centos vm, if we enable addb plugin build, rpm build shows failure with below message,

To fix this, we need to set '%_binaries_in_noarch_packages_terminate_build 0' macro value.
Signed-off-by: Sachitanand Shelake<EMAIL_ADDRESS>Problem Statement

Problem statement

Design

For Bug, Describe the fix here.
For Feature, Post the link for design

Coding
Checklist for Author

[ ] Coding conventions are followed and code is consistent

Testing
Checklist for Author

[ ] Unit and System Tests are added
[ ] Test Cases cover Happy Path, Non-Happy Path and Scalability
[ ] Testing was performed with RPM

Impact Analysis
Checklist for Author/Reviewer/GateKeeper

[ ] Interface change (if any) are documented
[ ] Side effects on other features (deployment/upgrade)
[ ] Dependencies on other component(s)

Review Checklist
Checklist for Author

[ ] JIRA number/GitHub Issue added to PR
[ ] PR is self reviewed
[ ] Jira and state/status is updated and JIRA is updated with PR link
[ ] Check if the description is clear and explained

Documentation
Checklist for Author

[ ] Changes done to WIKI / Confluence page / Quick Start Guide

Tested this changes within container as well as on vm.
both are working and able to generate rpm.

Tested the deployment with below images,
https://eos-jenkins.colo.seagate.com/job/GitHub-custom-ci-builds/job/generic/job/custom-ci/6488/
cortx-docker.colo.seagate.com/seagate/cortx-rgw:2.0.0-6488-custom-ci
cortx-docker.colo.seagate.com/seagate/cortx-data:2.0.0-6488-custom-ci
cortx-docker.colo.seagate.com/seagate/cortx-control:2.0.0-6488-custom-ci
https://eos-jenkins.colo.seagate.com/job/Cortx-Automation/job/RGW/job/setup-cortx-rgw-cluster/6043/ (Successfull)

So it was tested on RockyLinux and not CentOS?
Yes,our cortx deployment uses RockyLinux to build all the rpms. hence we missed it during testing.
Make sure it doesnt break for RockyLinux now!
Yes I have tested on both environment. and its working for both OS.