Relax .NET SDK version for CLI commands

The latest .NET 3.1 version as of 2021-08-29 is 3.1.412, and this is the version requested since commit 21fc8620f (Try using 3.1.401, 2020-09-01). Consequently, the current dotnet tool runs successfully on 0.10.0 -- however, it does not run on 0.9.12, nor indeed any other revision before that commit.
The default behavior when global.json specifies an SDK version but no roll-forward policy is to use the latestPatch policy. That's true for both .NET Core 2 and .NET Core 3 but only the latter exposes the roll-forward policy for customization.
The .NET SDK version scheme is not semver, so in version 3.1.101 that e.g. the 0.9.12 tag uses, 101 is not a "patch" according to the roll-forward policy. Rather, it is a combined feature and patch, the first digit being the feature. If we restate the .NET version number according to semver's rules it behaves like <IP_ADDRESS> and the default roll-forward policy behaves like 3.1.1.x. It should then be fairly clear why, for revisions before the commit mentioned above, the dotnet tool rejects SDK version 3.1.412.
Despite the .NET version numbering scheme, for Linux Microsoft distributes the SDK at the minor version level [1], not the feature level, so installing a patch level compatible SDK is prohibitively difficult [2].
This has 2 important implications:

The requested .NET version is not exact. If that was the intention, rollForward must explicitly specify disable.
It is at best difficult, at worst impossible, for the same Linux system to build both the stable/0.10.0 and stable/0.9 branches, or in more general terms to build any older revision with a different feature level requirement.

This PR relaxes the roll-forward policy from patch level to feature level, allowing future feature level releases to build this revision in the name of practicality. The patch applies cleanly to master and stable/0.10.x, and is easily adapted to stable/0.9.
I understand the motivation for a strict version but the current configuration is not very pragmatic, and I suspect not completely deliberate. It is probable that some configuration is missing but unclear which exact configuration that would be. I don't use or care about Avalonia and I only ended up in #4082 incidentally, after failing to run dotnet on an older revision for completely unrelated and largely uninteresting reasons. Here is one fix; take it or leave it, but at least understand that 1) the build instructions are inconsistent with the behaviour, and 2) the behaviour is very restrictive.
[1] So 3.1, not 3.1.4.
[2] The installer will also uninstall other "irrelevant" versions. I don't know if that judgment is based on patch level or feature level, but if that is also on feature level, Avalonia basically cannot co-exist with other .NET 3.1 projects.

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

I've proposed it long ago, see:  #4259
There is something wrong with CI so I doubt this PR will be approved and merged.

Copyright License. You grant .NET Foundation, and those who receive the Submission directly or indirectly from .NET Foundation, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license in the Submission to reproduce, prepare derivative works of, publicly display, publicly perform, and distribute the Submission and such derivative works, and to sublicense any or all of the foregoing rights to third parties.
Entire Agreement/Assignment. This Agreement is the entire agreement between the parties, and supersedes any and all prior agreements, understandings or communications, written or oral, between the parties relating to the subject matter hereof. This Agreement may be assigned by .NET Foundation.

Sorry, I contributed in accordance with the MIT license, not the above. Under those terms, this is "Not a Submission."

I've proposed it long ago, see: #4259
There is something wrong with CI so I doubt this PR will be approved and merged.

Ah, I see. I didn't find that from the other issue. I'd say you should still set disable then, though.


Anyway to increase MDSlider size on iOS?

The iOS version of MDSlider is really small. Any way to increase the size of the slider and the draggable bubble?

@butaminas that is per the specs https://github.com/material-components/material-components-ios/tree/develop/components/Slider
But as you can see there there are options to change it. You are welcome to create a PR


<EMAIL_ADDRESS>is vulnerable

Versions
@angular/cli: 1.5.0
Repro steps
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8861
Github just launched a dependency vulnerability check and I found that angular/cli is using a package that is vulnerable.
Please, give a look at this and fix it, please!
Thanks!

Closed by #8535

Are we expecting to have a release soon with this change?


Section: GDB

An introduction to our old friend GDB

[ ] How it works (gdb server vs. client etc.)
[ ] How to run against a compiled rust target
[ ] Common debugging commands
[ ] Useful references

I was wondering if help was still needed to complete this, or if it's a dead project

howdy! i still think it'd be a super helpful resource if you're interested in contributing ^_^

Yes, I would love to contribute (bear in mind, I'm still a beginner on the embedded Rust side of things). I just wanted to help make embedded Rust more accessible to more people.
Any tips on writing this section? How detailed should this be? How abstracted or lower level etc?

I would say let's start with something high-level in line with the TODO items posted above.
You can start by filling in the sections here but please feel free to rename, rearrange and add sections as you see fit.
Once you send a PR we can discuss in detail.


Cannot get multielasticdump to work with custom certificates

ElasticDump version: latest
Elasticsearch version: 6.6.x
Node.js version (note that nodejs v8+ is required for this tool): 8.12

I'm trying to add support for custom certificates to multielasticdump, but I cannot seem to grasp it.
It works fine with elasticdump, but not with multielasticdump (using exactly the same certs).
The error is the usual one, unable to verify the first certificate.
Here's my modified version of multielasticdump:
# truncated for brevity multi-elasticdump

Would be nice to get this working :)

Next time submit a PR 🙂

Right, but it still has an issue that it does not work for one reason or another, and I cannot figure it out by myself.
So is it okay to submit a PR even though it is not working? :)

Yup, easier to review

What flags you need in multi-elasticdump ?

Thanks for your comments, I will create a PR next time!
I need to pass client cert, client key and CA cert for reading from SSL secured Elasticsearch. I just added the same flags elasticdump supports while at it.

It's good when u fill out the section that asks what command are you running. Because we do support aliases etc. I don't necessarily want to add the full set of options to multielastic.

Sorry, I didn't understand.
What I did was that I added: tlsAuth, cert, key, pass, ca, input-cert, input-key, input-pass, input-ca, output-cert, output-key, output-pass and output-ca.
I understand that not all the options are necessary or needed with multielasticdump, but SSL support is definitely useful :)

I added a PR for this with explanation of the issue.

The associated PR is #542 for anyone else ending up here from Google.


remove duplicate "launching" messages

Seems a little redundant. If these are two separate steps then we should clarify them a little more.
-----> Compiled slug size is 2.2M
Build complete.
Launching app.
Launching...
Done, go:v2 deployed to Deis

this is done as part of #290


crypto/boring: Refactor boringcrypto codebase

This patch refactors the boringcrypto implementation in an attempt to
make it more general and abstract away the actual external crypto
backend being used.
This is in effort to enable other external crypto libraries such as
OpenSSL to be used instead.
This approach uses a series of small, targeted and unexported interfaces which represent an "external" crypto library. The initial "external" crypto library is, of course, boringcrypto. The change makes it so the "backend" crypto implementation of the boring package can be swapped out without requiring any new imports throughout the rest of the code base. Calls into the boring package will defer the actual implementation to this "external" crypto library.

This change was broken out of https://github.com/golang/go/pull/43900. I tried to make this CL as small as I could, however going any smaller would result in a CL that would not build, so this is the minimum set of changes that can be merged while still producing a correct build which passes all tests.
Since this is part of a larger effort, and assuming this gets approved eventually, I wonder if it makes sense to create another development branch which will eventually get merged back into dev.boringcrypto once all patches have been merged and the implementation of adding OpenSSL support is complete?
(cc @FiloSottile )

This is a pure refactor and does not include any changes to functionality or behavior, other than introducing the interface indirection.


[dask] Deterministic rank assignment by task key

Alternative to https://github.com/dmlc/xgboost/pull/8018 . Suggested by @jakirkham

@trivialfis Have you decided which of the two alternatives we'd be adopting?

Waiting for others' test results. If this PR works in their environments then I think we will merge this one.

Found some non-deterministic behaviours in this PR, converting it to draft for now.


get OSGi bundles to be uploaded to Maven Central

See https://twitter.com/egonwillighagen/status/1466449019870367748 and replies.
Particularly, check this tweet: https://twitter.com/NewsOsgi/status/1466537898849746956

Implemented in 3.0.9 and now being tested with PathVisio 4.0.


Generic mapped type constrained by a type parameter has different members / index signatures when constraint of that type parameter is a union

TypeScript Version:  master (b2bae85cceb310354f6ba1ac4bcc9d75fe9a6402)

Search Terms: mapped type parameter member index signature constraint constrained union
Code (with noImplicitAny)
function foo1<K extends string>(arg: { [P in K]: string }) {
    // Actual: Error: Element implicitly has an 'any' type because type '{ [P in K]: string; }' has no index signature.
    return arg["test"];
}
function foo2<K extends string | number>(arg: { [P in K]: string }) {
    // Actual: No error
    return arg["test"];
}
function foo3<K extends "foo">(arg: { [P in K]: string }) {
    // Actual: Error: Property 'foo' does not exist on type '{ [P in K]: string; }'.
    return arg.foo;
}
function foo4<K extends "foo" | "bar">(arg: { [P in K]: string }) {
    // Actual: No error
    return arg.foo;
}

Expected behavior: Consistent behavior between foo1 and foo2 and between foo3 and foo4.
Actual behavior: As marked.
Playground Link: link (with noImplicitAny)
Related Issues: None found.
Looks like the cause is that this line in resolvedMappedTypeMembers in the checker is using getApparentType, which changes either string or "foo" to String (which doesn't generate an index signature) but leaves unions alone.  What was the thinking here??
            const keyType = constraintType.flags & TypeFlags.InstantiableNonPrimitive ? getApparentType(constraintType) : constraintType;

I believe this was fixed by #29121. All four examples now produce errors as expected.


Refining CidrAddress.java: add support for network / broadcast / netmask

Adding support for network / broadcast / netmask and proper isInRange(..) resolution: answer yes for only valid IP addresses in subnet and NO for network or broadcast addresses.

I signed it!
On Thu, Nov 10, 2016 at 10:26 AM, googlebot<EMAIL_ADDRESS>wrote:

Thanks for your pull request. It looks like this may be your first
contribution to a Google open source project. Before we can look at your
pull request, you'll need to sign a Contributor License Agreement (CLA).
📝 Please visit https://cla.developers.google.com/
https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll
verify. Thanks.

If you've already signed a CLA, it's possible we don't have your
GitHub username or you're using a different email address. Check your
existing CLA data https://cla.developers.google.com/clas and verify
that your email is set on your git commits
https://help.github.com/articles/setting-your-email-in-git/.
If you signed the CLA as a corporation, please let us know the
company's name.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/googlegsa/library/pull/15#issuecomment-259767715, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJicg1jUoroDr3XTX9uG0n2K6AGrVaoZks5q82G7gaJpZM4Ku-0m
.


blflash: init at 0.3.0

Motivation for this change
Add blflash.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Setting PineCone Jumper (IO 8) to the H Position

[x] dump flash

./result/bin/blflash dump bl602 --port /dev/ttyUSB3
[INFO  blflash::flasher] Start connection...
[TRACE blflash::flasher] 5ms send count 55
[TRACE blflash::flasher] handshake sent elapsed 433.618µs
[INFO  blflash::flasher] Connection Succeed
[INFO  blflash] Bootrom version: 1
[TRACE blflash] Boot info: BootInfo { len: 14, bootrom_version: 1, otp_info: [0, 0, 0, 0, 3, 0, 0, 0, 4c, d1, 15, 42, e8, b4, 1c, 0] }
[INFO  blflash::flasher] Sending eflash_loader...
[INFO  blflash::flasher] Finished 2.579946987s 11.08KB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.257546ms
[INFO  blflash::flasher] Entered eflash_loader
[INFO  blflash] Success

[ ] investigate check mismatch

./result/bin/blflash check bl602 --port /dev/ttyUSB3
[INFO  blflash::flasher] Start connection...
[TRACE blflash::flasher] 5ms send count 55
[TRACE blflash::flasher] handshake sent elapsed 314.617µs
[INFO  blflash::flasher] Connection Succeed
[INFO  blflash] Bootrom version: 1
[TRACE blflash] Boot info: BootInfo { len: 14, bootrom_version: 1, otp_info: [0, 0, 0, 0, 3, 0, 0, 0, 4c, d1, 15, 42, e8, b4, 1c, 0] }
[INFO  blflash::flasher] Sending eflash_loader...
[INFO  blflash::flasher] Finished 2.584864588s 11.06KB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.322493ms
[INFO  blflash::flasher] Entered eflash_loader
[WARN  blflash::flasher] 0 sha256 not match: f667b62e8058abb10d8f3f3f72b51b4d89174f22a0af14013e389482fb77cc14 != c85e11a0083a27f72f6e1bab9b67cac98d5d31ed90b64b78e6e89e070d782c58
[WARN  blflash::flasher] e000 sha256 not match: 52ae9132371db13af48ebcb117693cbce42f1c61d5c18088e019b70cc37b6b5d != da4d2fe7d42a71246b0e84d64665b70ad701435f89716c48e6f23ef55340eaa0
[WARN  blflash::flasher] f000 sha256 not match: 52ae9132371db13af48ebcb117693cbce42f1c61d5c18088e019b70cc37b6b5d != da4d2fe7d42a71246b0e84d64665b70ad701435f89716c48e6f23ef55340eaa0
[WARN  blflash::flasher] 10000 sha256 not match: 1bf92f63889a71326ba8c4c2fc8816010ba51439e09d65397acd66d3b41931f0 != 64173ba3dc0fad76b9e5b9864d08aeef18bed3652371b7109982b29cdfca6fb1
[WARN  blflash::flasher] 1f8000 sha256 not match: 22e317609ca681d8891dd3d681f3292313ae2fc64611facaf1a1c0c7e8f65ac2 != ae42d69b09c2eb134b202b412c00ff175e10b625e2d3c0a2820378bd341926b8

[ ] evaluate flash subcommand

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 111602 run on x86_64-darwin 1

1 package built:

blflash

Successfully flashed a Pinecone – BL602 Evaluation Board.


[PROCS-4568] Split ECS Fargate e2e test

What does this PR do?
Splits off the ECS Fargate core agent tests into their own suite.
Motivation
Flakes in the core agent tests due to improper environment (process agent present when it shouldn't be).
Describe how you validated your changes

Ran the tests
=== RUN   TestECSFargateCoreAgentTestSuite/TestProcessCheck
    suite.go:280: No change in provisioners, skipping environment update
--- PASS: TestECSFargateCoreAgentTestSuite (684.46s)
    --- PASS: TestECSFargateCoreAgentTestSuite/TestProcessCheck (120.39s)
PASS
ok  	github.com/DataDog/datadog-agent/test/new-e2e/tests/process	687.560s

DONE 2 tests in 710.956s
All tests passed

=== RUN   TestECSFargateTestSuite/TestProcessCheck
    suite.go:280: No change in provisioners, skipping environment update
--- PASS: TestECSFargateTestSuite (551.49s)
    --- PASS: TestECSFargateTestSuite/TestProcessCheck (20.30s)
PASS
ok  	github.com/DataDog/datadog-agent/test/new-e2e/tests/process	554.558s

DONE 2 tests in 575.430s
All tests passed

Possible Drawbacks / Trade-offs
Additional Notes

/merge


Fix quoting of semicolon and pipe

Adds these two special characters to be quoted properly before eval. With unit test.

Similar to #142 except not using printf %q (not sure how portable this is), and adds tests. Instead just adds to the existing sed expression.

Awesome, thanks for figuring it out!


Enumerable.Select

In the Wiki there is some documentation about the Enumerable.Select helper. When i try to implement the Example given, an exception is raised: Template references a helper that is not registered. Could not find helper '#Enumerable.Select'
What is the status of the Enumerable.Select helper, will it be implemented or is the documentation on the Wiki not accurate.

Hello @mvroone, it seems that the Wiki is incorrect, the Select is not yet implemented.
I'll take a look how to implement this.

https://github.com/StefH/Handlebars.Net.Helpers/pull/12

@mvroone I did implement the Select, can you please test MyGet version: Handlebars.Net.Helpers.1.1.0-ci-13872?

@StefH I tested the version, seems to be working fine. Had a small issue when nesting selects and the nested collection being null, but that can be solved with an if. So not sure if you consider it to be an issue.

@mvroone Thanks for testing. A new version will be released on NuGet.


help(MatCalendar): using DateRange but range is not displayed, selectChange fires Date instead of DateRange

What are you trying to do?
implementing a date range picker dialog with the calendar component
What troubleshooting steps have you tried?
range is not previewed/displayed, change event returns Date object
Reproduction
We can only help if we can reproduce the problem ourselves.
StackBlitz: https://stackblitz.com/edit/components-issue-wsgnr4?file=src/app/example-component.html
Environment

Angular: 10.0.3
CDK/Material: 10.0.1
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): Windows

The range isn't showing up, because you aren't using the DateRange class. We determine whether to show a range with a foo instanceof DateRange check, here's a working example https://stackblitz.com/edit/components-issue-q9db1k.

@crisbeto thanks it works now 👍
i've noticed this green highlight is there any meaning to it?

The green state is because you're passing in a comparison range through the comparisonStart and comparisonEnd inputs. It shows where the main range and the comparison ranges overlap. There's some more info about it in the docs: https://material.angular.io/components/datepicker/overview#comparison-ranges

@crisbeto is it possible to use their range picker select strategy?
(sorry for the constant pings :( )


Error: Debug Failure. False expression: Check called before binding

Found in telemetry for 2023.4.40, but has been occurring for at least several weeks.
Error: Debug Failure. False expression: Check called before binding    at assert pyright-internal/src/analyzer/sourceFile.ts:1385:8    at check pyright-internal/src/analyzer/program.ts:1317:39    at callback pyright-internal/src/common/logTracker.ts:48:19    at log pyright-internal/src/analyzer/program.ts:1258:32    at _checkTypes pyright-internal/src/analyzer/program.ts:1304:33    at callback pyright-internal/src/common/logTracker.ts:48:19    at log pyright-internal/src/analyzer/program.ts:1258:32    at _checkTypes pyright-internal/src/analyzer/program.ts:1304:33    at callback pyright-internal/src/common/logTracker.ts:48:19    at log pyright-internal/src/analyzer/program.ts:1258:32    at _checkTypes pyright-internal/src/analyzer/program.ts:1304:33    at callback pyright-internal/src/common/logTracker.ts:48:19    at log pyright-internal/src/analyzer/program.ts:1258:32    at _checkTypes pyright-internal/src/analyzer/program.ts:1304:33    at callback pyright-internal/src/common/logTracker.ts:48:19    at log pyright-internal/src/analyzer/program.ts:1258:32    at _checkTypes pyright-internal/src/analyzer/program.ts:1304:33    at callback pyright-internal/src/common/logTracker.ts:48:19    at log pyright-internal/src/analyzer/program.ts:1258:32    at _checkTypes pyright-internal/src/analyzer/program.ts:1304:33    at callback pyright-internal/src/common/logTracker.ts:48:19    at log pyright-internal/src/analyzer/program.ts:1258:32    at _checkTypes pyright-internal/src/analyzer/program.ts:1304:33    at callback pyright-internal/src/common/logTracker.ts:48:19    at log pyright-internal/src/analyzer/program.ts:1258:32    at _checkTypes pyright-internal/src/analyzer/program.ts:1304:33    at callback pyright-internal/src/common/logTracker.ts:48:19    at log pyright-internal/src/analyzer/program.ts:1258:32    at _checkTypes pyright-internal/src/analyzer/program.ts:1304:33    at callback pyright-internal/src/common/logTracker.ts:48:19    at log pyright-internal/src/analyzer/program.ts:1258:32    at _checkTypes pyright-internal/src/analyzer/program.ts:1304:33

This issue has been fixed in prerelease version 2023.6.11, which we've just released. You can find the changelog here: CHANGELOG.md


⚠ SceneTime has degraded performance

In 516e0f6, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 14312 ms

Resolved: SceneTime performance has improved in 7f5a3a5 after 23 minutes.


Macroni emits incorrect locations for macro-expanded code

Macroni currently emits unknown:1:1 as the location for all macro-expanded operations, rendering the warning messages it emits during its analysis phases useless.
The reason for this bug is that Macroni currently uses the vast's default meta generator to get the locations of operations when lowering code for the Safety and Kernel dialects; however, vast's default meta generator does not lower locations which Clang marks as invalid:
loc_t location(const clang::SourceLocation &loc) const {
            if (loc.isValid())
                return location(clang::FullSourceLoc(loc, actx->getSourceManager()));
            return mlir::UnknownLoc::get(mctx);
        }

Unfortunately, the spelling locations of RCU macro invocations are invalid locations.
We could overcome this issue by passing the expanded location of the RCU macro invocations to the meta generator's location() method: except this method is private.
The best way to solve this problem will be to define a new meta-generator which offers a public method for handling macro-expanded locations.
We can't just use Macroni's current metagenerator because that depends on PASTA, and we don't want the Safety and Kernel dialects to depend on PASTA.

Closed by #40


Errors from level 4 to 10 can't be seen

Although we know HackaPanel tries to prevent people from seeing inputs of "hidden input levels" via error messages but it should be handled in another way so that the error can be seen by participants while there is no clue for them to recognize inputs. It's a necessary thing because participants want to know why they have some errors so that they can fix them.

Hello there.
What you say makes security issues and problems cause the inputs of those levels should be hidden and we can not make sure if we open exceptions we can handle it in all languages, and we are preparing to add more programming languages so there is no way doing that.
However we think there is no need doing that because our inputs changing period is specified and there is more than 99% of errors happen before the mentioned levels.

@shahabbasi  what you say is completely wrong. If you have no solution to fix this problem it doesn't mean that there is none! There are many solutions in which showing errors won't cause any trouble and at the same time people can understand why they have some errors in their codes!
Please try to understand that people like me who write down issues don't want to assault what you do in Hacka Panel we only want to improve it so that it can be at its best! If you want I can provide you guys a simple way to fix this issue.
By the way I was experiencing 4 Hacka Team-Up events in which you guys use Hacka Panel and every time I run my codes I need to see why there are only some errors in certain levels so I think it is necessary.


Ci/release assets

The proposed changes rework the release workflow regarding the produced released assets integration.
🎁 Release assets
The release asset generation now relies on Makefile targets generating two binaries for linux/amd64 and linux/arm64 architectures, which are statically linked binaries built using docker buildx capabilities.
The binaries are integrated as release assets and available in raw and in .tar.gz compressed format, along with their corresponding SHA256 checksums. The released assets are listed as below:

okp4d-${version}-linux-amd64
okp4d-${version}-linux-amd64.tar.gz
okp4d-${version}-linux-arm64
okp4d-${version}-linux-arm64.tar.gz
sha256sum.txt

🏭 Release installation
Through their format, pre-compiled binaries can be installed quickly using a oneliner script with:
curl https://i.jpillora.com/okp4/okp4d@$version! | bash

EDIT:
I removed linux/arm64 as it is hanging, we'll try to re-introduce it later..

:tada: This PR is included in version 2.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


VSCode can't open the URL contains apostrophe(')

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.86.1
OS Version: macOS 14.3 (23D56)

Steps to Reproduce:

add comment line:

// https://en.wikipedia.org/wiki/Topological_sorting#Kahn's_algorithm
public void foo() {
}

2. Follow link(cmd + click)

URL detection stops at ' because in programming languages that is often a delimiter for URLs contained in strings.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Order Desc in @Scopes causes a type error

Versions

sequelize: 5.8.1
sequelize-typescript: 1.0.0-beta.2
typescript: 3.4.5

I'm submitting a ...

[x] bug report
[ ] feature request
Actual behavior:

Types of property 'order' are incompatible.
Type 'string[][]' is not assignable to type 'string | Fn | Col | Literal | OrderItem[] | undefined'.
Type 'string[][]' is not assignable to type 'OrderItem[]'.
Type 'string[]' is not assignable to type 'OrderItem'.
Type 'string[]' is missing the following properties from type '[typeof Model, typeof Model, string, string]': 0, 1, 2, 3
Expected behavior:

Shouldn't have any type issue, It matches OrderItem[] and  is a [string, string] so [[string,string]] should be ok, it works outside of @Scopes. I'm not sure what i'm missing or how to solve this.
export type OrderItem =
  | string
  | Fn
  | Col
  | Literal
  | [string | Col | Fn | Literal, string]
  | [typeof Model | { model: typeof Model; as: string }, string, string]
  | [typeof Model, typeof Model, string, string];
export type Order = string | Fn | Col | Literal | OrderItem[];

Steps to reproduce:

@Scopes(() => ({
  test: {
    attributes: ['column'],
    include: [
      {
        model: model,
        where: {column: 0},
      },
    ],
    order: [['column', 'DESC']],
    where: {status: 1},
  },
}))

@blankstar85 Thanks for reporting

Fixes with<EMAIL_ADDRESS>

Thanks!

I m still getting this error running   "sequelize-typescript": "^2.1.5" .


Pass response as argument ?

Is your feature request related to a problem? Please describe.
Every function has a line of &connect_go.Response[svcv1.MethodResponse]{}, this is even harder to write with generic, if pass response as argument, will be easier to write, since connect-go is new, I think this is possible, I see this in go-micro, this makes DX alot better.
https://github.com/asim/go-micro/blob/1cd7cfaa6cbb7d4cd9cba76ae2374469649a81d4/plugins/server/grpc/extractor_test.go#L17-L19
Describe the solution you'd like
Pass response as argument
Describe alternatives you've considered
Also keep response in request like net/http, serverlet
Additional context
Add any other context or screenshots about the feature request here.

I think you just mean to use https://pkg.go.dev/github.com/bufbuild/connect-go#NewRequest and https://pkg.go.dev/github.com/bufbuild/connect-go#NewResponse - an example is at https://github.com/bufbuild/connect-go/blob/main/client_example_test.go#L44


fix(redux-module-activity): clear typing indicator when sending activity

Went ahead and prefixed the activity module as well.

Closes #53


make target catalog build creating a fbc index

Feature Request
The catalog-build target is using SQLIndex, see:
# Build a catalog image by adding bundle images to an empty catalog using the operator package manager tool, 'opm'.
# This recipe invokes 'opm' in 'semver' bundle add mode. For more information on add modes, see:
# https://github.com/operator-framework/community-operators/blob/7f1438c/docs/packaging-operator.md#updating-your-existing-operator
.PHONY: catalog-build
catalog-build: opm ## Build a catalog image.
	$(OPM) index add --container-tool docker --mode semver --tag $(CATALOG_IMG) --bundles $(BUNDLE_IMGS) $(FROM_INDEX_OPT)

https://github.com/operator-framework/operator-sdk/blob/master/testdata/go/v3/memcached-operator/Makefile#L229-L232
Could we change this one to create the mock catalog as a helper to test the bundle with OLM using FBC instead?

c/c @Lance @gallettilance

This issue seems to be a duplicate of https://github.com/operator-framework/operator-sdk/issues/5832

So we can close this on @rashmigottipati


There is a file not exist in this repository

When I used ‘vivado_hls -f script.tcl' , there is an error in the following.
In my mind, you may miss a file that is named 'directives.tcl'.
INFO: [SYN 201-201] Setting up clock 'default' with a period of 10ns. ./LeNet_hls/origin/directives.tcl can't be opened. couldn't read file "./LeNet_hls/origin/directives.tcl": no such file or directory     while executing "source "./LeNet_hls/origin/directives.tcl""     (file "script.tcl" line 18)     invoked from within "source script.tcl"     ("uplevel" body line 1)     invoked from within "uplevel \#0 [list source $arg] "

Please use the complete project in Baidu SkyDrive first. I have updated the invalid link. The problem of missing files I will look for this problem later, but I am currently on the final exam.
链接:https://pan.baidu.com/s/1iFz2Ycfx7YNL-umbLTFpLg 提取码:1bv4


Add (#25582) to bugfixes for 2.48.0 release.

Update CHANGES.md to note the behavior change in the Java bootloader from #25582.
Also note that 2.47.0 has been cut.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @jrmccluskey

Oh. I forgot to rebase before making this, so it didn't include actual master. Fixing this. Thanks!

OK! All fixed up.


net::ERR_UNKNOW_URL_SCHEME

Make all the steps to install this repo on a react-native project, but get the following after authorize the app permissions:

Added the launchTask to the mainActivity in the AndroidManifest.xml, anyone can help me with this?

Got same issue, can share how to fix it?

You also have to add an intent-filter to handle incoming links. Here is a FB example:
       <intent-filter>             <action android:name="android.intent.action.VIEW" />             <category android:name="android.intent.category.DEFAULT" />             <category android:name="android.intent.category.BROWSABLE" />             <data android:scheme="fb904958326237050" />         </intent-filter>


I can not compile a program for Debian 10

I step way to steps make this instruction https://github.com/Genymobile/scrcpy/blob/master/BUILD.md#system-specific-steps
But instead package openjdk-8-jdk i installed package openjdk-11-jdk because version 8 is in the sid branch, and I have buster.
Command meson x --buildtype release --strip -Db_lto=true:
The Meson build system
Version: 0.49.2
Source dir: /tmp/scrcpy
Build dir: /tmp/scrcpy/x
Build type: native build
Project name: scrcpy
Project version: 1.12.1
Native C compiler: cc (gcc 8.3.0 "cc (Debian 8.3.0-6) 8.3.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29)
Dependency libavformat found: YES 58.20.100
Dependency libavcodec found: YES 58.35.100
Dependency libavutil found: YES 56.22.100
Dependency sdl2 found: YES 2.0.9
Configuring config.h using configuration
Program ./scripts/build-wrapper.sh found: YES (/tmp/scrcpy/server/./scripts/build-wrapper.sh)
WARNING: Project targetting '>= 0.37' but tried to use feature introduced in '0.48.0': console arg in custom_target
DEPRECATION: build_always is deprecated. Combine build_by_default and build_always_stale instead.
Build targets in project: 3
WARNING: Project specifies a minimum meson_version '>= 0.37' but uses features which were added in newer versions:
 * 0.48.0: {'console arg in custom_target'}
Found ninja-1.8.2 at /usr/bin/ninja

And ninja -Cx:
ninja: Entering directory `x'
[0/1] Generating scrcpy-server with a custom command.
Downloading https://services.gradle.org/distributions/gradle-5.5.1-all.zip
..................................................................................................................................

Welcome to Gradle 5.5.1!

Here are the highlights of this release:
 - Kickstart Gradle plugin development with gradle init
 - Distribute organization-wide Gradle properties in custom Gradle distributions
 - Transform dependency artifacts on resolution

For more details see https://docs.gradle.org/5.5.1/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type CrossBuildFileHashCache using BuildSessionScopeServices.createCrossBuildFileHashCache().

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 42s
FAILED: server/scrcpy-server
/tmp/scrcpy/server/./scripts/build-wrapper.sh /tmp/scrcpy/server server/scrcpy-server release
ninja: build stopped: subcommand failed.

Also, I do not know where to add stacktrace to display the full log
Help

Are you building from a docker or something?
https://github.com/gradle/gradle/issues/3318#issuecomment-360116187
https://github.com/keeganwitt/docker-gradle/issues/57

I know it's not a direct answer, but you can temporarily add
deb http://ftp.de.debian.org/debian sid main
to /etc/apt/sources.list
and install scrcpy via apt
It worked for me with debian buster in my chromebook

I know it's not a direct answer, but you can temporarily add
deb http://ftp.de.debian.org/debian sid main
to /etc/apt/sources.list
and install scrcpy via apt
It worked for me with debian buster in my chromebook

I know that i can do this, but the problem is that when you install packages in this way, the system may later break down

Are you building from a docker or something?
gradle/gradle#3318 (comment)
keeganwitt/docker-gradle#57

No. As you can see, I run meson

It seems related to java version, but I use openjdk 11 without problems here.
Check for example https://github.com/facebook/react-native/issues/23554


Error while trying to load custom component

Hi, I'm experiencing the similar issue as #1091
I followed the tutorial/example
export LANGFLOW_COMPONENTS_PATH='["/path/to/components"]'
This line ran without any errors but when using the UI there were no custom components available.
And when using the alternative
langflow --components-path /path/to/components
or
langflow run --components-path /path/to/components
It returns with an error
No such option: --components-path

Same problem, it's really confused, hard to deploy, many wired problems....

Is there any update on this?

Hello,
Sorry for the delay. Did you try using the new version? Does the error still persist?

@DepressedSage Hello!
Did you try using the new version? Does the error still persist?

Hi @DepressedSage,
We hope you're doing well. Just a friendly reminder that if we do not hear back from you within the next 3 days, we will close this issue. If you need more time or further assistance, please let us know.
Thank you for your understanding!

Thank you for your contribution! This issue will be closed. If you have any questions or encounter another problem, please open a new issue and we will be ready to assist you.


Update commons to 0.7.1.Final

Update parent to 43
@lucasponce, please review.  NOTE: this includes the pom version update, so if you merge, merge after that one is merged.

There are some strange errors on PersistenceTest area.
These are new and it might be related to changes on the new parent.
I can't merge it until I investigate a little bit the root cause of these errors.
(To discard if those are related to travis).

Travis fails as the branch is not rebased.
I've created #186, once travis is happy I will merge it.
I close this one.


database/sql: shutdown connections gracefully

It would be nice to have a way to ask sql.DB to shutdown its connections gracefully. There's a SetMaxIdleConns() method that can be set to -1 to clear out all idle connections. However, this does not shutdown any active connections gracefully.
Our use-case is due to database credentials being rotated using Vault or AWS's IAM credentials for RDS. In both instances, we are handed dynamically generated usernames and passwords that will be revoked after a certain amount of time. New credentials are then generated.
In order to update the credentials in a given sql.DB instance, we have written a simple wrapper driver that provides the ability to customize the creation of a new connection using the Connector interface via a function hook: https://github.com/Boostport/dynamic-database-config
The only thing that's missing is the ability to signal sql.DB to shutdown all connections gracefully, that is to allow all current queries to complete, but not allow new ones to be scheduled on the current connections and then closing them once the current queries connect. This would then free up connections and force sql.DB to create new connections, which using our driver wrapper would produce connections with the new credentials.

/cc @bradfitz @kardianos

@F21 There is an outstanding CL to be merged next window https://go-review.googlesource.com/c/go/+/258360 that will call "Close" on a Connector.
Would that work for your situation?

@kardianos I think CL258360 requires a call to db.Close() which closes the db for good. For my use-case, I'd like to close all the existing connections in a db gracefully without closing the db itself. Since there are no active connections, db can instantiate new connections with the correct credentials using the wrapper driver we published.

I see. You want to change the connector connection string, then when an old connection comes in to the pool (or is already in the pool), close it.
I agree that this is an important concept a database interface should have. v2 should support this.


'file' option does not exist

while i'm generating the API doc using Artisan Command
php artisan api:docs --name Example --use-version v1 --output-file documentation.txt

its giving error,
  [InvalidArgumentException]
  The "file" option does not exist.

What did I do wrong?

Nothing, I just forgot to update a reference in the command. Fixed now.

Thanks...


eventCorrelationProperty is serialized as EJSON

"meta" : {
  "nameOfMyEventCorrelationProperty" : {
    "EJSON$type" : "Guid",
    "EJSON$value" : "ac3fe7a9-b634-4be4-996c-24a16d151b3d"
    }
 },

Is this really a bug, or would it just be nice to go .toData() for cleaner structure?

Since deserialization works it could demoted to enhancement. But this is the only thing in the commit store serialized as EJSON.

Great, just checking. I'm scoping the 3.1.0 release now, but as this is data-related I'll include it

Great, I agree. It is not a bug but it is important since it changes data in the commit store.

Should this be a string toString() or an object via toData()? If we go with the latter, you'd need to access the value via the value sub-property
myEvent.meta[myCorrelationId].value

whereas with a string it would be the same as now:
myEvent.meta[myCorrelationId]

My preference here is to go to a string as the GUID can be reconstructed just with that one value. Thoughts?

My strong preference is to go with string too.


Update otel-collector-config.yaml

Change from awsprometheusremotewrite(deprecated) to prometheusremotewrite.

awsprometheusremotewrite was deprecated as exporter for ADOT we need to update the workshop to prometheusremotewrite using sigv4auth for authentication.
https://pkg.go.dev/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsprometheusremotewriteexporter


Create JVM Universal Support

This is a draft PR.
Things that are still needed to get a functional version:

[x] Rename packages
[x] Exclude EventSourced and CRDT test implementations
[x] Create sbt build properties
[ ] Create sbt docs properties
[x] Exclude Annotations
[x] Exclude AnnotationBasedCrdtSupport
[x] Exclude AnnotationBasedEventSourcedSupport
[ ] Refactoring public Classes and Interfaces to use native Java types
[ ] Refactoring Reflection Helper to respect the inheritance of basic interfaces in another languages
[ ] Merge java-support 0.5.1 in Master
[ ] Some docs and examples about how to use

Hi @sleipnir, what and in which area do you expect feedback here? Are there any dependencies to other PRs ongoing work being done in parallel?
(Can you please squash "remote-tracking" mentions to get a cleaner history?)

Thank you @marcellanz  for responding, after the children's day holiday next week I intend to resume this and I will answer you in greater detail. I will try to clean the branch

Thank you @marcellanz for responding, after the children's day holiday next week I intend to resume this and I will answer you in greater detail. I will try to clean the branch

Happy holidays! Enjoy the time with the kids Adriano! :)

I will enjoy the children and enjoy my birthday which is tomorrow :D
Thank you @marcellanz

Yes, would be great to have this PR clean to make it easier to review. With this currently being a copy, it's not easy to see the simple repackage and move. There may have been some small changes in java-support too. Could we start with just a rename of the package for these files, then a move to a separate project, before we make any other changes?

I think it would useful to first rename packages within the java-support project — and make sure it's the right separation by having other JVM language supports only use those parts. We can then take it from there.

Yes I agree, renaming the packages was the first thing I did


Conversation scrolls to newest message when unread indicators disappear

Describe the bug
In a conversation with unread indicators at an earlier point in the history, unexpected and confusing scrolling down to the latest message is triggered by the removal of unread indicators. This is not an issue if the window is already scrolled all the way down when that happens, but extremely annoying when you scroll up to see what you missed, and the moment you found it, the unread indicator disappears and you're back at the bottom.
There are two use cases for this and in both cases the behaviour is very annoying: a) I really missed something and I want to know what it was. b) I just want to mark all messages read in order to clear the unread indicators.
The second use case is much more frequent than the first, currently, and this is just a hint that a 'clear all' button at the conversation level (or even globally) would be welcome.
To Reproduce
Steps to reproduce the behavior:

Have a conversation with more messages than fit in your conversation view
open that conversation in an inkognito window - where your unread status is wiped and everything is unread
scroll up a bit to an unread message and wait
the unread indicator is removed and the conversation scrolls to the latest message

Expected behavior
Removing an unread indicator should not be linked with auto-scrolling

we do not have the "unsnap" scrolling behaviour implemented in react yet, what we need to do here is to deactivate the automatic "scrollToBottom" everytime there is a user induced scroll, and activate the autoscroll again if the user scrolls to the bottom of the chat.
affected components: atom-messages.jsx and group-atom-messages.jsx


Travis CI builds failing

Builds for PR #13, issue #12, ~/inc/config.rb:Config cannot find ~/config/config.json. Issue may be with relative filenames.

Should be resolved now. Migrated back from JSON to Ruby.


Consider using/allowing $date (EJSON wrapper) for API Table timestamp values

Currently (v1.0.18) API Table columns of type timestamp accept and produce JSON String values (using ISO-8601 encoding). This is different from Collections where EJSON-wrapping with numeric timestamp like:
{ "$date" : 123005946 }

is accepted and produced.
Questions: should we use or allow EJSON-wrapped values for API Tables as well? There are couple of questions to decide:

Should we accept both notations ("plain" String and EJsonWrapper) or just one -- and if so, which one?
If both are accepted, which one should be produced (returned with "findXxx" commands (if only one accepted that'd be one produced too)
If EJSON-wrapped value accepted, should it accept numeric Timestamp (like Collections), or ISO-8601 String (like current API Table).

These decisions should be based on what makes most sense from client perspective: since API Tables not yet externally released we can still change the notation/representation to use.
EDIT:
Answers: we will work to maximize interoperability with Collections.

Should accept BOTH, for interoperability with Collections (so yes accept ALSO EJSON-wrapped values)
Return "plain" ISO-8601 String representation (same as now, no change)
Accept Timestamp (seconds since Epoch, Java long), same as with Collections, for interoperability.

Allowing { $date: 123456 } would make things a little easier for stargate-mongoose, because that's how stargate-mongoose serializes dates currently: https://github.com/stargate/stargate-mongoose/blob/1713dc9206c5891742aa1fdbf71ea7420a81d003/src/client/serialize.ts#L59-L62.
Someday stargate-mongoose may need a "am I talking to a table or a collection?" option, but it would be great to avoid that if possible. Supporting { $date } would mean we can do dates without knowing table or collection.

@vkarpov15 That's the idea indeed! Thank you for confirming that the change makes sense. I hope to tackle this issue soon.


updated

@rahulnanda24 Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.


MFnDagNode

Just to let you know I'm on this, expect results by next weekend.

This one's a beast! Working on it, but it'll take a wee bit longer than I had hoped.
A few points.

Maya uses anonymous enums in places, and it doesn't seem like we can or want to convert these. Primarily addChild(obj, MFnDagNode::mNextPos) which C++ can convert to an integer, such that you can also pass e.g. 2. If we convert it to a py::enum_ then we'd only be able to pass that enum and no integer.
I've moved documentation to the top of the file, as it was just too horrendous to look at with all these mixed indentations. Doesn't look half-bad now, but I wonder whether there is an even more readable way we could adopt throughout the codebase.

Actually I also touched up parse_headers and added a little guide to the README for future contributors, along with a contributing.md with some lose thoughts on patterns we've mostly followed so far.
So I'll merge this and pick it up on the other side.

Maybe a bit too forward-looking still but Python 3 has IntEnum that behave like (or are?) ints. I know they work great to set Enum attributes in maya.cmds. Not sure if they'd work with C++ bindings like that.
Not sure if that would even work without wrapping the bindings actually, don't know what pybind enables us to do on that regard.


Help understanding Table 1 in paper

Hi there
I am trying to understand Table 1 in the paper -- specifically the "Fine-grained_CUB" and "Composition" columns.
For the Fine-grained_CUB column, can you please point me to the script that was used to obtain these results? I can only find the test_domain.sh (col 1) and test_imagenet.sh (col 2) scripts in scripts/
I also wondered if you could please help me understand test_imagenet_composition.sh. From what I can see, this script is identical to test_imagenet.sh. Can you help me understand the difference.
Thanks in advance
Daniela

Hi Deniela,

Fine-grained CUB requires a lot of engineering efforts to automate the evaluations. Plus it requires too many image generations, which may add some friction. Therefore, we haven't released the scripts to evaluate on CUB. Having said that, if you need it, I can recover the scripts and share them in a separate repository.

Overall, we have two evaluation criteria: 1) Concept Alignment and 2) Composition Alignment. Composition alignment is w.r.t. the reference text (with complex compositions). Now, we have two further categories for Concept Alignment:

Simple concept overfitting, where we have images generated using a simple prompt: "A photo of <V*>"
Composition concept alignment, where we have images generated using the composite prompt: "A photo of [one/two] <V*> at [X/Y/Z location]"

Hence, both have the same evaluation script but only data changes.


Missing param when rendering router-link

When trying to recreate another issue I seem to be having I came across a new one that is kind of related to my original problem. I have a code pen ready to view here
The problem I seem to be having is that when I change the prop TO to v-bind:TO to add some params I get an error that says
[Vue warn] Error when rendering component :
[vue-router] missing param for named route "joke": Expected "number" to be defined
Yet when I remove the colon, not binding the TO prop it loads the data. I hope I am getting my point across. Maybe if someone can explain what I am doing wrong here, it might fix my other problem? Thanks!!!

In your data:
data () {
  return {
    joke: [],
  }
},

In your template:
  <router-link :to="{name: 'joke', params: {number: joke.id}}">{{joke.id}}</router-link>

The joke.id being undefined is the reason why you see the error.
What you can do is to enclose router-link into an appropriate v-if, so that it does not try to render until your async data actually arrives.

That actually does not work either I still get the same error. The odd thing is that if you take away the params inside the router-link it renders fine. Please explain why this does this and how to avoid these problems in real apps using vue-router

Demo: http://codepen.io/anon/pen/LbmQrm?editors=1010

Ok awesome. Can you explain why using a template html element vs a normal div worked?
As I said before I have another problem that sees lots of Vue-warns about the router-link element.

This has nothing to do with template, I just used it for convenience.
You can put v-if directly on router-link, or wrap it in a template or any other element.
As I said, errors like this one happens when the template is trying to access the data that does not (yet) exist.

@simplesmiler that CodePen you linked to has an endless loop that keeps reloading the page. ??


[Backport 2.3] Add 'cert-manager.io/issuer-kind: Issuer' to ingress.yaml in Rancher chart to mitigate https://github.com/jetstack/cert-manager/issues/2533

related to https://github.com/rancher/rancher/issues/26505

Validated in v2.3.8-rc1
Following same steps as in https://github.com/rancher/rancher/issues/26505#issuecomment-629467217:

Certificate becomes valid, signed by Let's Encrypt

kubectl describe ingress -n cattle-system shows the correct, newly expected annotation of issuer-kind=Issuer:

...
Annotations:
  nginx.ingress.kubernetes.io/proxy-send-timeout:     1800
  cert-manager.io/issuer:                             rancher
  cert-manager.io/issuer-kind:                        Issuer
...


#DEC-350

The material design over rides file is overriding the the color of the text boxes this is also overwriting the warning classes

:+1:

:+1:


Update to PostCSS 4.1

It's nifty new messages API is well-suited to linting. If I understand correctly (still have to look into it more), we'd be able to accumulate all the errors and show them all at once to the user, instead of throwing one error at a time.

Duplicate. Whoops.


ESR, Assumption on trustworthy computing platform: explain with example

Referring to https://commoncriteria.github.io/pp/sdn-controller/sdn-controller-esr.html, in Section "Assumptions"
OLD
"* The SDN Controller relies on a trustworthy computing platform for its execution and it is assumed that the platform has not been compromised prior to the installation of the SDN Controller."
CHANGE TO (NEW)
"* The SDN Controller relies on a trustworthy computing platform for its execution and it is assumed that the platform has not been compromised prior to the installation of the SDN Controller. For example, the effectiveness of non-interference and strict information flow control of an SDN controller will typically depend on the effectiveness of an underlying (embedded) operating system or hypervisor to provide non-interference and controlled information flow."
Rationale
For clarity, give an example of some of the security properties (strict information flow control, non-interference) which rely on the underlying platform. (As discussed on our October group call, technically, having strong assumptions is a good thing, as it encourages building modular systems, e.g. using a CC certified OS.)

Thank you for the input. Requesting the Edit Team to apply your input to the ESR below:
To the ESR Edit Team, please do the following changes to the ESR (change is direct quote, credited to HolgerBlasumSYSGO):
OLD:
"The SDN Controller relies on a trustworthy computing platform for its execution and it is assumed that the platform has not been compromised prior to the installation of the SDN Controller."
CHANGE TO (NEW):
"The SDN Controller relies on a trustworthy computing platform for its execution and it is assumed that the platform has not been compromised prior to the installation of the SDN Controller. For example, the effectiveness of non-interference and strict information flow control of an SDN controller will typically depend on the effectiveness of an underlying (embedded) operating system or hypervisor to provide non-interference and controlled information flow."

change made 11/29, will be reflected in latest build


sudo tourbillon run failed

command not found output trying to run tourbillon
juan-pe@bowie:~$ sudo tourbillon run
sudo: tourbillon: command not found
info about system:
$> uname -a
Linux bowie 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$>echo ${DISTRIB_ID}}
Ubuntu
$> echo ${DISTRIB_RELEASE}}
14.04

Try:
sudo -i tourbillon run

worked!


Decide on StoreFrone/Municipality Integration

Host & Frame external sites ( Operate as a Portal )  vs Build Storefront & Municipality pages
Option1 ( Rakeuten.com Model )
Host the Page in HeyBlue App ( like a Frame )
Pros
Delegation
Minimum Integration, Maintenance & Support
Minimum Handshake required
Gives Flexibility for Storefront & Municipalty to keep their existing Look & Feel
HeyBlue does not have to worry about providing Payment mechanisms for the shopping Cart
Cons
StoreFront Existing UI would have to modify their Product Catalog to reflect Points
Option 2
Create StoreFront/Municipality Pages on behalf of the StoreFronts/Municipality
Pros
HeyBlue has the control to create all the UI's
Cons
Will need to get a constant refresh of the Product Catalog ( with Images/videos  ) along with the Inventory
Selling Products is not HeyBlue's Business Model. It is to provide points through Interactions
How do you keep the Inventory of the Product in check.
WIll need to cater to Storefront-specific customization
Not Just the Storefront ... Even the Municipality UI would need to follow the same.
PS : I dont call out Charity here  because we dont want to offer anymore than the list of Charities that the members can donate to. There is no Charity Page to show ... Please confirm

ADR created towards the same


RAG on clinical trial data

RAG on records from clinical trials .gov.

template?

Added, based on use-case shared by some collaborators.


Add warning about node version in GCE sample

As of today the GCE getting started sample uses v8.12.0 of node.  Apparently that is before try/catch is supported so when adding the agent you'll get "SyntaxError: Unexpected } catch {}".  This is resolved by upgrading.

Hi ansky,
Thanks for catching this! At the moment the current preferred approach to address this is to attempt to get the sample itself updated. I currently have https://github.com/GoogleCloudPlatform/nodejs-getting-started/pull/542 open, hopefully we can get traction there.
Thanks,
Jason

Closing this pull request as the source example has been successfully updated via https://github.com/GoogleCloudPlatform/nodejs-getting-started/pull/542.


New vids

Adding back reposted video and adding one new one

Website build
Commit: 1a1d5a0066e3f930d6a5ed701b073348ae463e6c
Circle build number: 611
Website zip: https://611-214003948-gh.circle-artifacts.com/0/tmp/qml_html.zip
Website url: https://611-214003948-gh.circle-artifacts.com/0/_build/html/index.html
Please double check the rendered website build to make sure everything is correct.


Add "allowSyntheticDefaultImports" compiler option

See https://github.com/Microsoft/TypeScript/pull/5577
ntypescript will also need to be updated.

A recent PR that adds options to tsconfig.json : https://github.com/TypeStrong/atom-typescript/pull/725
General guidance is available here : https://github.com/TypeStrong/atom-typescript/blob/cb7f23e26d03e28bd21e65ff5be92cf9581b2a4c/lib/main/tsconfig/tsconfig.ts#L12-L16 :rose:


Fixed: removed unused methods and imports

Related Issues

Closes #
Short Description and Why It's Useful

Screenshots of Visual Changes before/after (If There Are Any)

IMPORTANT NOTICE - Remember to add changelog entry
Contribution and Currently Important Rules Acceptance

[ ] I read and followed contribution rules

Closing as this is mainly to improve the code readability and cleanup, but as this PR is old and now there are multiple changes that has been made resulting in conflicts in this PR, we will pick this code cleanup in near future.


Map for Initial Guess of dxc

Replace the for loops with Casadi maps to match the standard proposed for the initial guess of dxk.

Not necessary. There is no performance difference (it all occurs during the initialization anyway) and the for loops are more readable than another map.


Add price fields to the checkout API

What I'm trying to achieve
A common scenario in an e-commerce API is to return calculated prices for subtotal, total, discountedTotal etc. for product list (cart, checkout, order etc.)
That eliminates price calculation in the clients. I propose to add:

totalPrice both for whole checkout object and checkout item,
subtotalPrice is a price without shipping cost,

Describe a proposed solution
query getCheckout($token: UUID!) {
  checkout(token: $token) {
    token
    id
    totalPrice
    subtotalPrice
    lines {
      edges {
        node {
          id
          quantity
          totalPrice
          variant {
            id
            name
            product {
              id
              name
              thumbnailUrl
              price {
                amount,
                currency
              }
            }
          }
        }
      }
    }
  }
}

Implemented in checkout-2.0 branch - https://github.com/mirumee/saleor/pull/2567/commits/02a5820f980e3d8b089ab429ebc5dc85653ead9c


[SuperEditor] Single tap should bring up toolbar on iOS

Previously, single-tapping would bring up the Cut/Copy/Paste toolbar. Example of expected behavior (from Notes app):
https://github.com/superlistapp/super_editor/assets/6467808/c7837377-1a8c-4255-acfb-58e116fcafed
Now, it's very difficult to bring up the toolbar in super_editor without double-tapping an expanded selection. Very rarely am I able to get it to appear by single-tapping.  The toolbar does appear but in the wrong position.
Here's a demo:
https://github.com/superlistapp/super_editor/assets/6467808/145ccb2a-b25a-438f-91b0-5c307a34fc85

cc @matthew-carroll


Unable to use karma-electron with Xvfb

Trying to run my unit tests headless on a linux box with electron but this doesn't let electron launch in Xvfb. :(

Please make sure you are setting a DISPLAY environment variable that will be shared by Xvfb and karma. Here's the typical Travis CI setup:
https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
and here it is working in this very repo with Travis CI (uses default npm test via Travis CI):
https://github.com/twolfson/karma-electron/blob/5.1.1/.travis.yml#L16-L22
There's also a cleaner variant suggested by Electron's docs:
https://github.com/electron/electron/blob/v1.4.10/docs/tutorial/testing-on-headless-ci.md

I have DISPLAY defined and I can tell the display is configured properly because I can run firefox without an error. but this is what I see when I try karma:
$ ps -a
  PID TTY          TIME CMD
 2511 tty1     00:00:00 bash
13232 pts/1    00:00:00 Xvfb
13336 pts/1    00:00:00 ps

$ echo $DISPLAY
:99.0

$ ./node_modules/.bin/karma start ./karma.config.js --single-run
05 12 2016 11:27:27.981:INFO [karma]: Karma v1.3.0 server started at http://localhost:9876/
05 12 2016 11:27:27.983:INFO [launcher]: Launching browser Electron with unlimited concurrency
05 12 2016 11:27:28.085:INFO [launcher]: Starting browser Electron
05 12 2016 11:27:28.201:ERROR [launcher]: Cannot start Electron

05 12 2016 11:27:28.849:INFO [launcher]: Trying to start Electron again (1/2).
05 12 2016 11:27:28.889:ERROR [launcher]: Cannot start Electron

05 12 2016 11:27:28.910:INFO [launcher]: Trying to start Electron again (2/2).
05 12 2016 11:27:28.947:ERROR [launcher]: Cannot start Electron

05 12 2016 11:27:28.952:ERROR [launcher]: Electron failed 2 times (cannot start). Giving up.

Maybe try running the electron executable directly to see if there's a
better error message? It should be available at
./node_modules/.bin/electron iirc
On Dec 5, 2016 8:30 AM, "Tom B"<EMAIL_ADDRESS>wrote:

I have DISPLAY defined and I can tell the display is configured properly
because I can run firefox without an error. but this is what I see when I
try karma:
$ ps -a
PID TTY          TIME CMD
2511 tty1     00:00:00 bash
13232 pts/1    00:00:00 Xvfb
13336 pts/1    00:00:00 ps
$ echo $DISPLAY
:99.0
$ ./node_modules/.bin/karma start ./karma.config.js --single-run
05 12 2016 11:27:27.981:INFO [karma]: Karma v1.3.0 server started at http://localhost:9876/
05 12 2016 11:27:27.983:INFO [launcher]: Launching browser Electron with unlimited concurrency
05 12 2016 11:27:28.085:INFO [launcher]: Starting browser Electron
05 12 2016 11:27:28.201:ERROR [launcher]: Cannot start Electron
05 12 2016 11:27:28.849:INFO [launcher]: Trying to start Electron again (1/2).
05 12 2016 11:27:28.889:ERROR [launcher]: Cannot start Electron
05 12 2016 11:27:28.910:INFO [launcher]: Trying to start Electron again (2/2).
05 12 2016 11:27:28.947:ERROR [launcher]: Cannot start Electron
05 12 2016 11:27:28.952:ERROR [launcher]: Electron failed 2 times (cannot start). Giving up.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/twolfson/karma-electron/issues/17#issuecomment-264901739,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA3FWLcBSbXMlFhg35iqaRT14nEOa16Lks5rFDwQgaJpZM4LC6lL
.

Sweet! Found out that I needed to install libXss. Did that and it works! Thanks :)

Here is the list of dependencies in Debian (from https://github.com/segmentio/nightmare/issues/224#issuecomment-141575361):
xvfb
libgtk2.0-0
libgconf-2-4
libasound2
libxtst6
libxss1
libnss3
``

Here is a (Dockerfile with the dependencies for CentOS)[https://github.com/nisaacson/aws-lambda-xvfb/blob/master/Dockerfile].


Pixracer boots up already armed

Flashed current master d1b27ab056d35f695b33d1a021d8900a4d69ba61 to my pixracer.
When I plug in the USB cable it boots up already armed. If I disarm from QGC I get the following warning message: "Avionics power low"

changed airframe from "Generic 250 Racer" to "Generic Quad X config" and problems go away

That actually starts the very same script. So I suspect the real fix was the param reset which the airframe change involved.

Are you sure you didn't have the Snapdragon interface extensions loaded here? That would explain what you saw.

I am not sure what you mean with Snapdragon interface extensions? I just changed the parameter CBRK_BUZZER to 782097 to disable the buzzer. The buzzer is still beeping but all my calibrations disappeared. (Radio, sensors etc)

Flashed stable with QGC, configured "Generic Quad X config" and calibrated sensors, everything ok. Now I plugged in USB and connected again 30 min later, Pixracer boots up already armed. I disarm through QGC, constantly get "Avionics power low" and the airframe automatically changed to "3DR DIY Quad"

Pixracer also boots up armed if I power it with 2s lipo battery. However, if I disconnect my RX and pwm to sbus converter it does not.

I'm pretty sure the arming issue is related to your S.BUS converter. The rest sounds like debugging noise and technically impossible.

Yea I also believe that the converter is creating problems, also had super strange issues with APM. You don't happen to know any known issues with converters that can be fixed in SW? I have some last hours tomorrow to fix this

Garbage in, Garbage out. I can only recommend to replace  your gear with something that actually works. A FrSky Taranis is incredibly cheap.


Can't re-enable the cooldown?

After removing the plugin, the cooldown is still gone, what can i do to fix this?

What version of OldCombatMechanics did you have before you uninstalled it?


The sample results of queries using Spark MLlib may be incorrect

Hi,
I used spark_sql (version 2.2) engine to run some queries which use Spark MLlib (e.g q05/q20/q26/q28), the returned results may be different from the sample results, while the results of other queries are correct.
For example, I got Precision: 0.7334727564701049 in q05 and 7 clusters in q26.
I think the API and the implementation of Spark MLlib may have changed since the sample results were generated, but I am not very sure for this.
Moreover, floating-point addition and multiplication are not associative, which may cause different ML results even in the same environment. For example, I ran q20 for twice times and their results differed.

Not only might the implementation has changed. The problem is that the kmeans implementation of Apache Spark is actually dependent on the partitioning of the input data. Hence, the results may differ if you have a different configuration than the reference result set was produced.
For more information on Spark's KMeans implementation see SPARK-21679


[ AGE Inheritance ] Fixed VLE inheritence

Fixed the  getChildren to return only the children of the current edge label.
We were getting all the children in the graph, but now only the one which we are currently searching.

We are getting conflicts because I changed the getChildren Function so that it caters the current Edge Label, and returns the children according to that Edge Label Name.

Changed the getChildren to cater the following situation.
A inherits B
B inherits C.
When we do the query to get all labels connected to A, we were getting only A and B
But now we are getting A, B and C.
//Creating a graph
SELECT create_graph('Testing1');
//Creating Edge Labels with inheritance
SELECT create_elabel('Testing1', 'A');
SELECT create_elabel('Testing1', 'B', ARRAY['A']);
SELECT create_elabel('Testing1', 'C', ARRAY['B']);
//Creating Vertex Labels
SELECT create_vlabel('Testing1', 'Head');
SELECT create_vlabel('Testing1', 'Node');
SELECT create_vlabel('Testing1', 'Tail');
//Adding data
SELECT * FROM cypher('Testing1', $$
CREATE (:Head {id: 1})-[:A]->(:Node {id: 2})-[:B]->(:Node {id: 3})-[:C]->(:Tail {id: 4})
$$) AS (a agtype);
//Query
SELECT * FROM cypher('Testing1', $$
MATCH (a)-[:A*1]->(b)
RETURN a.id, b.id
$$) AS (a_id agtype, b_id agtype);
Result:
a_id | b_id
------+------
1    | 2
2    | 3
Intended Result:
a_id | b_id
------+------
1    | 2
2    | 3
3    | 4
After changing the getChildren function, we get our intended result which is:
a_id | b_id
------+------
1    | 2
2    | 3
3    | 4


Salesforce Platform formatting utilities

Salesforce Platform has components that do not exist in SLDS, but do define the micro-UX/design of Salesforce applications.
Here are the ones I'm aware of
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedAddress/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedDateTime/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedEmail/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedLocation/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedName/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedNumber/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedPhone/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedRichText/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedText/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedTime/documentation
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedUrl/example
These utilities would return React nodes, and therefore could not be used within inputs, but this makes since if you review the View/Edit InputUX pattern. https://github.com/salesforce/design-system-react/issues/1373
"View inputs" are formatted HTML, to edit them, break out or normalize the "the fields" (address becomes street, city, zip, etc.) and put them in a modal or popover.
Would these utilities for helpful to anyone? I'm a little unsure about how to handle internationalization.

@kwilloughby-sf I've been little slow on the uptake. This explains the existence of the View/Edit input UX patterns. View is rich text with links and formatting. Edit is normalized fields separated into "database friendly" data.


Need installation instructions for Windows dependencies

Optional libraries such as OpenExr, Matroska, PFS and EBML are not mentioned in the Readme. Rather than requiring the developer to trawl through the CMake files for information, the ideal installation locations (include/ and lib/ directories) should be listed.

Under 'Compilation and installation', the dependencies of Luma HDRv are listed. VPX, Matroska and EBML are required, but are compiled together with the Luma HDRv libraries if not found on the system. OpenEXR is required to compile encoding and decoding applications, but PFS is optional.

Is a specific version of OpenEXR required? What about GLEW and GLUT for the player application? (GLUT has been deprecated for quite some time!) Is FreeGLUT compatible?

No, the 2.2 versions of OpenEXR should all be ok. I have used both 2.2.0 and 2.2.1. I guess you have encountered some Windows specific issue again.
For GLEW, I'm using versions 1.13.0. I have not tried the 2.X versions, but I assume these should be ok as well. And yes, FreeGLUT is compatible. I'm using FreeGLUT 3.0.0, which seems to be the latest version.


Support for Laravel 11 and PHP 8.3

I cannot install livewire calendar on PHP version 8.2.12

I cannot install livewire calendar on PHP version 8.2.12

There is a fork that works for latest Laravel and Livewire here:
https://github.com/omnia-digital/livewire-calendar


Powershell unable to find dotnet runtime when DOTNET_ROOT is set on Mariner

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
On Mariner, when DOTNET_ROOT is set, the dotnet runtime cannot be found.
The same behavior works without issue when using Ubuntu.
echo $DOTNET_ROOT
dotnet --list-runtimes
pwsh -c "echo Hello"
export DOTNET_ROOT=/tmp/hostedtoolcache/dotnet
dotnet --list-runtimes
pwsh -c "echo Hello"

Expected behavior
From Ubuntu
>
> Microsoft.AspNetCore.App 7.0.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
> Microsoft.NETCore.App 7.0.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
> Hello
> Microsoft.AspNetCore.App 7.0.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
> Microsoft.NETCore.App 7.0.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
> Hello

Actual behavior
From Mariner
>
> Microsoft.AspNetCore.App 6.0.11 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
> Microsoft.NETCore.App 6.0.11 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
> Microsoft.NETCore.App 7.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
> Hello
> Microsoft.AspNetCore.App 6.0.11 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
> Microsoft.NETCore.App 6.0.11 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
> Microsoft.NETCore.App 7.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
> You must install .NET to run this application.
>
> App: /opt/microsoft/powershell/7/pwsh
> Architecture: x64
> App host version: 7.0.3
> .NET location: Not found
>
> Learn about runtime installation:
> https://aka.ms/dotnet/app-launch-failed
>
> Download the .NET runtime:
> https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=mariner.2.0-x64&apphost_version=7.0.3

Error details
No response
Environment data
Name                           Value
----                           -----
PSVersion                      7.3.3
PSEdition                      Core
GitCommitId                    7.3.3
OS                             Linux <IP_ADDRESS>-microsoft-standard-WSL2 #1 SMP Wed Nov 23 01:01:46 UTC 2022
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals

How was PowerShell installed? From a formal package such as https://github.com/PowerShell/PowerShell/releases/download/v7.3.3/powershell-7.3.3-1.cm.x86_64.rpm ?

@rhubarb-geek-nz
It was installed by package mariner manager: tdnf install powershell
Which should be from formal package

I installed using yum and got
Installing:
powershell           x86_64        7.3.3-1.cm       mariner-official-microsoft   112.48M 117946331

My /foo/bar does not exist
$ export DOTNET_ROOT=/foo/bar
$ pwsh
PowerShell 7.3.3
PS /home/bythesea>

Similar runtimes
$ dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.14 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.14 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

yum is just a symlink to tdnf so it doesn't make any difference
I believe the reason why it works in your case is because /foo/bar doesn't exist.
Sorry should mentioned in the description the part of folder creation...

What is in your directory pointed to by DOTNET_ROOT ?
Is it a full copy of the dotnet 7 installation?

It is empty directory

The extended scenario I want to make working: this directory contains dotnet 6 for example, but doesn’t contain dotnet 7. On Mariner it doesn’t work… on Ubuntu it works.
It seems that on Ubuntu powershell looks into default dotnet location as well as inside DOTNET_ROOT. This is the behavior I want also on Mariner.

I suggest that the purpose of DOTNET_ROOT is to tell dotnet where to find its files. PowerShell is built using dotnet, so it does not surprise me that pwsh run looks for the dotnet binaries there.
Generally on UNIX applications don't check for files in lots of places if they have been given an environment variable indicating where they should be. For example with java you can have multiple installations of java, and then you set JAVA_HOME to point to one of the installations to say that is the one you want to use.
The way the dotnet net files are laid out in /usr/share/dotnet is so that you can have multiple versions of dotnet all in that single tree, you don't need to install different versions of dotnet in different directories, the packages already do that for you. Then the version of dotnet-host is the most recent one and it determines the correct dotnet-hostfxr to use for the version of the application you are running.
What version of Ubuntu are you running and where did the dotnet come from?
Now Ubuntu-22:04 is different because the dotnet from the Ubuntu repositories are not in the same directories as that defined by Microsoft.
$ dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.13 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.13 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

This is because these are customised by Ubuntu so actually behave differently.
But your file paths on Ubuntu look like they are in the Microsoft defined location.

Small inconsistency might cause problems...
I am using Ubuntu 22.04.2 LTS. Installed pwsh by package manager.
Using PowerShell 7.3.3

To bring more clarity that it is not a problem that came from the air.
I am trying to solve issue with running ADO pipelines on Linux agent that has pwsh installed.
There is a commonly used task UseDotNet@2 that installs dotnet (for example dotnet6 sdk) into specific directory and sets DOTNET_ROOT value to that directory (different from default).
After that task I run powershell script. On Ubuntu it works as it searches for the runtime both in DOTNET_ROOT and in /usr/share/dotnet/. But on Mariner I receive an error above.

One difference you have is on Ubuntu you only have dotnet 7 whereas on Mariner you have both dotnet 6 and 7

And 7.0.0 is installed and it is looking for 7.0.3

If you installed dotnet-runtime-7.0.3 on Mariner does it fix the problem?

So my theory is that PowerShell actually comes with its own version of the dotnet runtime, but because you set the DOTNET_ROOT it no longer uses that and wants to find it via the environment variable or default location

Interesting...
I ran ( in bash ) ...
echo exit | ( DOTNET_ROOT=/foo/bar strace pwsh ) 2>trace.log

... on both Ubuntu 22.04 and Mariner and only the Mariner trace.log had any mention of /foo
$  grep /foo trace.log
readlink("/foo", 0x7ffdc7b81a90, 1023)  = -1 ENOENT (No such file or directory)

So it looks like they are behaving differently.

And only Mariner had any reference to /usr/share/dotnet
$ grep /usr/share/dotnet trace.log | head
access("/usr/share/dotnet/host/fxr", F_OK) = 0
openat(AT_FDCWD, "/usr/share/dotnet/host/fxr", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
access("/usr/share/dotnet/host/fxr/7.0.3/libhostfxr.so", F_OK) = 0
openat(AT_FDCWD, "/usr/share/dotnet/host/fxr/7.0.3/libhostfxr.so", O_RDONLY|O_CLOEXEC) = 3
access("/usr/share/dotnet/libcoreclr.so", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/dotnet/shared/Microsoft.NETCore.App", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
access("/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.3", F_OK) = 0
readlink("/usr/share/dotnet", 0x7ffdc7b81170, 1023) = -1 EINVAL (Invalid argument)
readlink("/usr/share/dotnet/shared", 0x7ffdc7b81170, 1023) = -1 EINVAL (Invalid argument)
readlink("/usr/share/dotnet/shared/Microsoft.NETCore.App", 0x7ffdc7b81170, 1023) = -1 EINVAL (Invalid argument)

And there Mariner is looking for ...
openat(AT_FDCWD, "/usr/share/dotnet/host/fxr/7.0.3/libhostfxr.so", O_RDONLY|O_CLOEXEC) = 3

like I suggested.

Where as the Ubuntu version is looking straight at it's own copy of dotnet runtime
$ grep libhostfxr.so trace.log
access("/opt/microsoft/powershell/7/libhostfxr.so", F_OK) = 0
openat(AT_FDCWD, "/opt/microsoft/powershell/7/libhostfxr.so", O_RDONLY|O_CLOEXEC) = 3

Interesting. From your logs, it appears that you were trying to open the file /etc/dotnet/install_location_x64 but received a permission denied error due to insufficient permission
openat(AT_FDCWD, "/etc/dotnet/install_location_x64", O_RDONLY) = -1 EACCES (Permission denied)
I tried the following command on Mariner and IT WORKS!
sudo pwsh --version
This suggests that the behavior of pwsh/dotnet may change based on whether the file /etc/dotnet/install_location is empty or inaccessible. If the file is empty, it seems that pwsh/dotnet searches in /usr/share/dotnet first.
I wonder if it is by design or not...

Doesn't seem like a correct behavior though as it works when DOTNET_ROOT is empty...

Usually pwsh is installed as self-contained app. This assumes that .Net Runtime is installed with pwsh and pwsh uses the private dotnet copy (search for other versions is not performed).
If you installed FX pwsh package it is dotnet shared application. It requires dotnet to be installed in order to run it. How searching of installed dotnet is performed are described in https://github.com/dotnet/designs/blob/main/accepted/2020/install-locations.md

Since sudo resolve the issue on Mariner and you use UseDotNet@2 to install dotnet I suggest you report the issue to DevOps pipeline team.

On official dotnet cite they say that dotnet directory has to be in $PATH.
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools

@iSazonov
UseDotNet@2 is used externally to install additional SDKs, so it has nothing to do with issue.
Powershell doesn't seem to be self-contained though... It use dotnet runtime which is installed alongside with pwsh package. I mentioned above that I used package manager to install powershell: tdnf install powershell. Essentially it is installing dotnet-runtime7.0 as a part of installation process.
Indeed, because PowerShell is not self-contained (on Linux) I am facing issues :)

@237dmitry dotnet is inside the path.
Otherwise dotnet command will not be resolved from terminal...
Moreover dotnet command doesn't care about DOTNET_ROOT.
What is interesting that powershell don't care about dotnet from the PATH. It looks into dotnet location stored inside /etc/dotnet/install_location or inside DOTNET_ROOT or inside /usr/share/dotnet (under normal circumstances)

Otherwise dotnet command will not be resolved from terminal...

I don't know what is the directory hierarchy in your dotnet installation. If you have questions like this, then you are doing something wrong. And, executable files can be launched via a symlink... For example, as it is in powershell, which itself temporarily adds $PSHome to $env:PATH for the current session. To run the pwsh executable, you need to link it to a directory in $PATH or add $PSHome to it. Depending on the installation, the environment may differ.

Agree. Issue seems to be in the logic that determines where to search for dotnet runtime.
Thank you, @rhubarb-geek-nz as together with him we found out that difference between Mariner and Ubuntu is permissions model which in Mariner case does not allow reading from /etc/dotnet/install_location as non-root user.
@iSazonov, fix me if I am wrong but PowerShell core is run using "App-contained hosts" and need to know how to find install locations to locate shared frameworks.
@iSazonov, do you know in which repository I can raise an issue on the algorithm which determines where to search for dotnet runtime?

@iSazonov, fix me if I am wrong but PowerShell core is run using "App-contained hosts" and need to know how to find install locations to locate shared frameworks.

It is true for all .Net apps https://github.com/dotnet/designs/blob/main/accepted/2020/install-locations.md

@iSazonov, do you know in which repository I can raise an issue on the algorithm which determines where to search for dotnet runtime?

Since you found sudo resolves the issue this says that dotnet installer has a bug. So I suggest you to report the issue DevOps team which can investigate and fix the issue or report to .Net installer team. You could start with https://learn.microsoft.com/en-us/azure/devops/user-guide/provide-feedback?view=azure-devops

Sorry, I am not catching, how is it connected with Azure DevOps?

Where do you use Mariner?

On Virtual Machine or WSL

I guess Azure team is owner. Nevertheless there is https://github.com/microsoft/CBL-Mariner

Does Azure team own dotnet runtime? :)
Cause issue clearly with algorithm of finding runtime.
Not connected with installation...
Nevertheless thank you for help


Unsolved dependencies

$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for sonata-project/admin-bundle dev-master -> satisfiable by sonata-project/admin-bundle[dev-master].
    - sonata-project/doctrine-orm-admin-bundle dev-master requires sonata-project/admin-bundle ^3.0 -> satisfiable by sonata-project/admin-bundle[3.x-dev].
    - Can only install one of: sonata-project/admin-bundle[dev-master, 3.x-dev].
    - Installation request for sonata-project/doctrine-orm-admin-bundle dev-master -> satisfiable by sonata-project/doctrine-orm-admin-bundle[dev-master].

Yes I saw that. Thanks for addressing it.
The problem is there are so many unresolved dependencies coming from FOSUserBundle ans Sonata Bundle(s) ans Symfony 3. I'm trying to find a way to make it work while having all parties together.
Because in the future chapters we need them.
I wish I could seek other alternatives but unfortunately the book has been published and I can't change anything there...

Hi Soolan, great job for your book.
Here https://github.com/Carteni/my-mava-project there is a "parallel" repo in which each branch name is related to a chapter (i'm on chapter 8 at the moment).
I'm using Symfony ^3.1 version but still remain the known issues with SonataUserBundle (when FOSUserBundle v.2 will be released maybe issues will be resolved).
I hope that this helps.

Thanks man. This is so kind of you.
Guys please use that repo for the time being till I do a major update on mine with a lot of changes (hopefully by the end of this year).


Running show_hids.py - A USB HID not showing in the list

I have a USB barcode scanner connected and it can scan, it shows in the device manager, but does not show in the list of HIDs when running show_hids.py or raw_data.py.  Do you know why this might be? I can see the vendor ID and Product ID in the Event logs -- showing it was started and configured. Any help in understanding would be appreciated. thanks

It might be recognized by the system as a mouse or keyboard and then the HID API may not be able to find it.

You may try HIDAPI and cython-hidapi to see if that helps.

For example, here is the output under my system from pywinusb. You can see that mouse/keyboard are not listed.
Found HID class devices!, writting details...
HID device (vID=0x046d, pID=0xc534, v=0x2901); Logitech; USB Receiver, Path: \\?\hid#vid_046d&pid_c534&mi_01&col02#7&383a3a17&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
...
HID device (vID=0x046d, pID=0xc534, v=0x2901); Logitech; USB Receiver, Path: \\?\hid#vid_046d&pid_c534&mi_01&col03#7&383a3a17&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
...
HID device (vID=0x046d, pID=0xc534, v=0x2901); Logitech; USB Receiver, Path: \\?\hid#vid_046d&pid_c534&mi_01&col04#7&383a3a17&0&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}
...
HID device (vID=0x8087, pID=0x0a1e, v=0x0200); Unknown manufacturer; @input.inf,%hid_wireless_radio_controls%;HID-compliant wireless radio controls, Path: \\?\hid#intc816&col01#3&36a7043c&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
...
HID device (vID=0x046d, pID=0xc534, v=0x2901); Logitech; USB Receiver, Path: \\?\hid#vid_046d&pid_c534&mi_01&col05#7&383a3a17&0&0004#{4d1e55b2-f16f-11cf-88cb-001111000030}
...
HID device (vID=0x8087, pID=0x0a1e, v=0x0200); Unknown manufacturer; @buttonconverter.inf,%btnconv.device%;Portable Device Control device, Path: \\?\hid#intc816&col02#3&36a7043c&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
...
HID device (vID=0x413c, pID=0xb06e, v=0x0101); Unknown manufacturer; @input.inf,%hid_device_vendor_defined_range%;HID-compliant vendor-defined device, Path: \\?\hid#vid_413c&pid_b06e#c&37ff1248&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
...
HID device (vID=0x047f, pID=0xc056, v=0x0210); Plantronics; Plantronics Blackwire 3220 Series, Path: \\?\hid#vid_047f&pid_c056&mi_03&col01#f&39e6f119&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
...

 I understand that there is a limitation for keyboard/mouse under Windows, and that is why libusb HID backend does not support keyboard/mouse. But after testing out HIDAPI, I think it is actually useful.

Unofrtunately the limitation reported by @mcuee also affects smple HIDs built with Arduino Micro (Atmel AVR Atmega32u4).
It would be great to be able to parse these devices too.
I suspect that the first problem is that pywinusb implements only HidD_GetPreparsedData, which is only available for HIDClass devices. Myabe GetRawInputDeviceInfo should be used for simpler dvices

Well, apparently the issue is that for security reasons Windows doesn't allow to access mouse and keybord HIDs.
Might this be the reason pywinusb cannot access mouse and keyboard devices?
https://github.com/signal11/hidapi/issues/247#issuecomment-161152387

by design, pywinusb doesn't use a helper kernel driver only the user space HID API
As you pointed out, HID API excludes r/w access to input and gaming devices, we can only peek to the descriptors using the HW enumeration APIs.


Feature add file

Coverage increased (+0.7%) to 98.855% when pulling ce8795890bcc23d0440a90fa185ee52aede3e62a on feature-add-file into 4a4b11d722de49fc1787ac83cfa972136467bd3b on development.

Coverage increased (+0.7%) to 98.855% when pulling a499b99228571a59e9abd8be4d7b09bf59eee5ea on feature-add-file into 4a4b11d722de49fc1787ac83cfa972136467bd3b on development.


[BUG] Collection secondary content icon alignment issues

Instructions to reproduce

Go to the secondary content example on the materializecss.com collections page
Open your dev tools and change one of the icons from send to remove circle outline

You will see that the icon is no longer right-aligned.

http://www.google.com/design/icons/#ic_remove_circle_outline
The correct ligature is remove_circle_outline, It should work with valid ligatures


removeOnComplete "enough" time?

The documentation indicates that we should 'provide enough time for .remove calls on each job object to complete before your process exits, or job indexes will leak'.
Unfortunately, this doesn't give any indication of how much time enough time might be, or how the cleanup process runs.
Is there a 'rule of thumb' we can follow for how long we should wait?
I'm currently adding some tests on our producer/consumers and sleeping for 5 seconds after my tests have completed.

you can use _.after to ensure all callbacks are called before you exit @ryan-kimber


Morphological-operations-in-image-processing-using-openCV-python

Article checklist
Attention
Our Peer Reviewer and Content Moderator teams do NOT provide any revisions services. All revisions and edits should be completed on your own forked repo (as to not take up room in the queue) in order for our team to review them all in a timely manner.
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.

As a rule of thumb - please be sure to only submit articles (pull requests) that are fully polished and ready to be published. Be sure to go through our resources documents for extra and 3rd party (vetted) resources to help improve overall technical writing.

Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[ ] Have you used the correct folder and file structure? - see Contribution Guidelines

[ ] Is your article properly formatted in Markdown? - see Github Markdown guide

[ ] Have you used our preferred heading structure? - H3 (###) and up

[ ] Does your article follow any of the suggested structure formats? - see example formats

[ ] Is your article over 750 words? - Tool: Wordcounter.net

[ ] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[ ] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[ ] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[ ] Have you included a hero image that is 600x400 pixels, under 300KB in size, and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

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

Technical checks

[ ] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[ ] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[ ] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

This closes #issue-number

Finally, delete the article checklist notes in blockquotes and submit your PR. We look forward to reviewing your article.

index.md

polished previous article as new PR ping me for updates.

Duplicate of #5695 .

polished the article.
On Fri, Jan 14, 2022, 6:05 PM Srishilesh P S @.***>
wrote:

Duplicate of #5695
https://github.com/section-engineering-education/engineering-education/pull/5695
.
—
Reply to this email directly, view it on GitHub
https://github.com/section-engineering-education/engineering-education/pull/6063#issuecomment-1013205823,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AS2SH4AXMYZ3U25MV5PQZLTUWA3UZANCNFSM5L37OPLA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
<section-engineering-education/engineering-education/pull/6063/c1013205823
@github.com>

@section-engineering-education/peer-reviewers
Is anyone available to review this PR?

Hello @samtecinnovator ,
I had a quick glance at your PR. It seems that we have 2 index.md files with several other unwanted files. Please remove them.
Moreover, the article doesn't follow the markdown guidelines like:

The heading does not start with ###
Improper capitalization of letters
Not enough explanation for code snippets
Indentation

I would highly recommend you to take a look at other approved/merged PRs or published articles to see how other authors have formatted them, and how they have structured the flow.
Since there are several revisions to be made, I'll be closing this PR.
Thanks.