Does not support multiple target libraries

Prebuild does not support multiple target libraries.
As far as I understand the code (see https://github.com/mafintosh/prebuild/blob/220ad17da0a96bcefb1c8aee06e1fa6769e2d8a0/build.js#L20-L28),
only the first target.node will be packed.
I have tested prebuild with LWIP, an image processing module (see https://github.com/antoinepairet/lwip) and only lwip_decoder.node is part of the binary archive. It skips lwip_encoder.node and lwip_image.node

I am willing to help solve this issue :-)

I guess it comes down to:

Build callback should return an array of files.
Pack should take this array and make an archive.


Possible path finding performance degradation

There have been some reports of path finding being slower after the merge of probability based pathfinding #2802. This issue exists to log investigations that have been done on this potential issue.

So far I haven't been able to see any performance degradation. Setup of the test that I ran:

Modify lncli to pass through a source parameter for queryroutes
Modify lnd to log extra path finding statistics.
Build a list of testnet nodes:
lncli --network=testnet describegraph | jq ".nodes[].pub_key" -r > testnet_nodes.txt
Run v0.6.1-beta on testnet and sync the graph.
Run cat testnet_nodes.txt | head -n50  | xargs -I % lncli --network=testnet queryroutes % 300000  --num_max_routes=1 --source=038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9. This executes queryroutes requests to the first 50 nodes in the graph.
Run queryroutes --source=138863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a64001 --num_max_routes=1 --amt=500000 038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9. The source pubkey does not exist. This will trigger an exploration of the full graph in order to find a path that doesn't exist. This is the worst case path finding performance.
Upgrade to v0.7-beta
Run the same tests again

Results:
pathfindingperf.txt
There seem to be no significant difference between the releases.

I usually get longer findPath calls than this.  Two notes:

Doesn't queryroutes not include probability based path finding (#3221) ?
I noticed when I did this for my path finding efficiency branch, it helped to ignore the disabled edge check here.  A lot of the path finding attempts in your log have edges = nodes explored = 1 which probably means a path isn't being found and thus the very small time measurement.
https://github.com/lightningnetwork/lnd/blob/a6e77811b1578f5d48191d0b9a5d4cbf895626f5/routing/pathfind.go#L386-L388

QueryRoutes indeed does not use mission control yet, but probabilities are taken into account (although it is just the default probability of 1). There could have been a regression in those changes.
One thing that is different when using SendPayment is that the default probability is 0.95. I changed that manually, but it didn't make a difference.
I'll park this issue until more specific information comes up.

I do see slightly higher time for 0.7, but it's probably not enough to warrant anybody sending you a report - perhaps it's an edge case.  Ignoring the disabled check + choosing a different, less connected source 038d142dd1fe429daa2ca975f651a6559fb90ddc254d242f7f1fd33c1264958fc4, and finding paths to the first 300 nodes yields the below graph (purple = 0.7)

Recently did a $20 payment to a node I dont have a channel with on my 0.8.0beta-rc2 node running with neutrino on Odroid XU4.:
It took:
real	3m11.608s
user	0m0.242s
sys	0m0.072s
I don't know if the timeout got increased, but I'm happy I dont have to retry payments over and over, and I can just wait for it.
1.5 sat payments fees and 3 minute confirmation still >> the blockchain.


Add python support for multipart forms

Example script, produces code that has no body - note that -F option is used instead of  --data to send multiple parts:
var curlconverter = require('curlconverter');
curlIn = 'curl https://upload.box.com/api/2.0/files/content -H "Authorization: Bearer ACCESS_TOKEN" -X POST -F attributes='{"name":"tigers.jpeg", "parent":{"id":"11446498"}}' -F<EMAIL_ADDRESS>var script = curlconverter.toPython(curlIn);
console.log(script);

I've deployed basic support for multipart forms in 1.0.4. It is kind of brittle but will work for now.


feat: initial config and airflow layer from gentropy

Please wait for the PR not in draft state before review. I tagged you all to see the link to the new codebase


IDE autocompletion issues

Currently Idea IDEs complain about the usage of some of the functions included in the BaseValidator, marking them as unresolved.
It also does not provide very useful autocompletion for many functions, especially those provided by the formifly context.
TODO:
Investigate and fix

Most likely related to this: https://youtrack.jetbrains.com/issue/WEB-26724
We'd have to ship the uncompiled code for this workaround to work but I guess it's a decent tradeoff considering the bundle size would not actually be impacted

Also ObjectValidator.fields and ArrayValidator.of should have properties declared in their class jsdoc block that tell IDEs that these fields contain either objects or arrays of other validators


Issue 148

should repair markdown display issue

@ckouder note that I did push a small fix to package-lock.json -- there were some random bits removed that caused runtime breakage.  Interestingly it still seemed to parse.  Anyway, just make sure to pull my latest on development.

@ckouder note that I did push a small fix to package-lock.json -- there were some random bits removed that caused runtime breakage.  Interestingly it still seemed to parse.  Anyway, just make sure to pull my latest on development.

Yeah the pull request I submitted has already pulled and merged development branch I need to check out whether the radon bits are coming from...


Testing: non-error output

I discussed this with @connor4312 on https://github.com/microsoft/vscode/issues/122208#issuecomment-884517411, but now I have a concrete need.
Go has benchmarks. Benchmarks (in Go) are defined and run in much the same way that tests are. Tests are defined with func TestXxx(*testing.T) and benchmarks are defined with func BenchmarkXxx(*testing.B); tests are run with go test -run='^TestXxx$' and benchmarks are run with go test -bench='^BenchmarkXxx$'. So it is natural for benchmarks to be exposed along side tests in the testing API.
Given a benchmark:
func BenchmarkFoo(b *testing.B) {
    for i := 0; i < b.N; i++ {
        Foo("bar")
    }
}

Running this benchmark will produce something like the following:
goos: linux
goarch: amd64
pkg: example.com/foo
cpu: Intel(R) Core(TM) i9-10850K CPU @ 3.60GHz
BenchmarkFoo
BenchmarkFoo-20   123456  123.4 ns/op  123 B/op  12 allocs/op
PASS
ok  	example.com/foo	6.313s

For running benchmarks with the testing API to be meaningful, the user needs to see the results of the benchmark (the second BenchmarkFoo line). Previously, I could attach an info message to a test that passed. That capability was removed in the finalized testing API.

appendOutput may now take an additional location and TestItem to associate with
https://github.com/microsoft/vscode/blob/943036686e8d761ea56666a702c882ebcffe68ae/src/vs/vscode.proposed.d.ts#L1793-L1803

Tomorrow I'll polish things a bit and have clicking on the output open the test output and select the line in a terminal.

To clarify, calling appendOutput with a test item will associate output with that item in addition to appending it to the raw output? As opposed to the old appendMessage which IIRC associated output with a test item instead of appending it to the raw output.

That's correct @firelizzard18

I'm trying to think of how best to use appendOutput(output, location, testItem) and failed(testItem, testMessage[s]). Given these APIs, I think it's going to be kind of messy. The extension has to consume 'events' produced by go test -json and produce calls to the testing API. Given this test:
func TestFoo(t *testing.T) {
	// produces output
	t.Log("Hello world")

	// produces output and marks the test as having failed
	assert.Equal(t, 1, 2)
}

This is what I have to work with:
{"Time":"2021-08-11T18:40:31.483381884-05:00","Action":"run","Package":"foo","Test":"TestFoo"}
{"Time":"2021-08-11T18:40:31.483455845-05:00","Action":"output","Package":"foo","Test":"TestFoo","Output":"=== RUN   TestFoo\n"}
{"Time":"2021-08-11T18:40:31.483460908-05:00","Action":"output","Package":"foo","Test":"TestFoo","Output":"    foo_test.go:9: Hello world\n"}
{"Time":"2021-08-11T18:40:31.483465236-05:00","Action":"output","Package":"foo","Test":"TestFoo","Output":"--- FAIL: TestFoo (0.00s)\n"}
{"Time":"2021-08-11T18:40:31.483467643-05:00","Action":"fail","Package":"foo","Test":"TestFoo","Elapsed":0}
{"Time":"2021-08-11T18:40:31.483471215-05:00","Action":"output","Package":"foo","Output":"FAIL\n"}
{"Time":"2021-08-11T18:40:31.483559559-05:00","Action":"output","Package":"foo","Output":"FAIL\tfoo\t0.001s\n"}
{"Time":"2021-08-11T18:40:31.483597857-05:00","Action":"fail","Package":"foo","Elapsed":0.001}

{ Action: 'run' | 'pass' | 'fail', Test: 'TestFoo' } become calls to started, passed, or failed, respectively. Previously, { Action: 'output', Test: 'TestFoo' } became a call to appendMessage. In addition, for all output events, even when Test is missing, become calls to appendOutput. This ensures that the test output terminal shows the same output as running go test directly, for the most part.
Please note, the failure event does not give a reason for failure. The underlying Go test infrastructure does not make any association between a test failing and a reason why it failed. There are various methods that produce output and fail the test, such as *testing.T.Fatal, but they simply call *testing.T.Log (or Logf) followed by *testing.T.Fail (or FailNow). Thus, in order to provide a failure message in the call to failed, I have to remember messages as they are produced.
In order to preserve the one-to-one correspondence between the test output terminal and directly running go test in a terminal, I need to call appendOutput for each message, in the order that the messages arrived. In addition, I want the user to see failure messages for tests that failed. I see three ways of doing this:

I can call appendOutput as events come in, passing a test item and location when appropriate. Once the test has completed, if the test failed, I can then call failed with the output for that test.

Pros: output shows up in the test output terminal as it is produced.
Cons: failed tests will have duplicate output, because each message for that test will be passed to appendOutput and failed

I can store all of the output events in an array and only process them once all tests have completed. Then I call failed for each failed test, with the output for that test, and I call appendOutput for each output event, but I do not pass the test item for output events for failed tests.

Pros: each output message is only attached to each test once, with failed for tests that failed and appendOutput for tests that did not.
Cons: the user sees nothing in the test output terminal until after all tests have completed.

Don't use appendOutput, except for benchmark stats :frowning_face:

The only good resolution I can think of is adding a severity parameter to appendOutput (or isError: boolean) - I would likely append all output (with a corresponding test item) as an error, and call failed with an empty array of messages.

I think approach (1) is the recommended way here. I view the new functionality not as an alternative way to append messages to a certain test, but rather a way to annotate test runners' standard output--which should usually be streamed in anyway--with metadata about how it was generated. This is in contrast to the failure TestMessage which is rich, well-structured diagnostic information that the user can dig into.

/verified
Docs look good to me.


Text Widgets use more horizontal space during flutter test than they should

Steps to Reproduce

Build a widget that contains a Text widget that doesn't have much room before it would overflow
Write a Widget Test for this widget
Run test with both flutter test and flutter run test/file_name.dart

flutter test will fail with a RenderFlex overflow, flutter run test/file_name.dart will pass.
Minimal reproducible sample here: https://github.com/MisterJimson/flutter-text-scaling-widget-tests
Single commit that demonstrates the bug: https://github.com/MisterJimson/flutter-text-scaling-widget-tests/commit/f17c50bb6edf94e4e8f09e3f35f71bc3f416ba7b
Workaround
Change textScaleFactorTestValue to workaround until this is fixed.
 final TestWidgetsFlutterBinding binding =
        TestWidgetsFlutterBinding.ensureInitialized();
    if (Platform.environment.containsKey('FLUTTER_TEST')) {
      binding.window.textScaleFactorTestValue = 0.49;
    }

//do test

Logs
[✓] Flutter (Channel beta, v1.5.4-hotfix.2, on Mac OS X 10.14.4 18E226, locale en-CA)
    • Flutter version 1.5.4-hotfix.2 at /Users/jrai/dev/flutter
    • Framework revision 7a4c33425d (4 weeks ago), 2019-04-29 11:05:24 -0700
    • Engine revision 52c7a1e849
    • Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/jrai/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/jrai/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 35.3.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.34.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.0.2

[✓] Connected device (1 available)
    • iPad Air 2 • B03E7C5C-5D9B-4024-AEBF-DD55BF378439 • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)

Following up for latest stable release, this is still the same on  v1.7.8+hotfix.4. The same workaround works.

I've also discovered the value needed to workaround is not always 0.49 as I previously thought. The value seems to be different for different contents of the text. Sample is updated to demo this.

This is not a bug, the flutter tester uses the Ahem font by default. This font is a bit wider than normal because all the characters are square. see https://github.com/Kozea/Ahem.
If you want to depend on a particular font size in tests, an approach you could take is loading it yourself. see https://github.com/flutter/flutter/issues/17700 for more details


When scan QR code from airgap vault after some time wallet qr scanner is stop working

Describe the bug
I started to scan QR code from airgap vault and after some time wallet qr scanner is stop working:
To Reproduce
Steps to reproduce the behavior:

Create multisig vault using imported airgap account as 1st signer
Propose a Tx
Scan qr code from airgap wallet
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: MacOS
Browser FF
Version 130

Additional context
reproducible on dev branch

https://github.com/user-attachments/assets/02acb64e-06b1-49fd-b830-cf2c9accb645

Also reproducible in Chrome browser:

fixes by #3333


Upgrade to Java 17 and Spring Boot 2.6.1

Also, prepare for testing with 3.0.0 snapshots!

Fixed with issue #26


FIDO authentication is not working for business apps

Describe the issue:

$subject
FIDO authentication with the sample React app prints the following error log in the IS terminal.
[2023-09-06 16:28:58,020] [bb7b9adb-0747-488c-ac86-e2e516072e61] ERROR {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler} - Authentication failed exception! Assertion failed while finishing the assertion to retrieve the assertion result.

How to reproduce:

Sign into the console
Create an application using the Single Page App template
Add FIDO2 to the first step in the sign in flow in the sign-in method
Sign into my account as a business user and register a passkey.
Configure the sample React app with the configs of the created application
Try to sign in to the react app using the 'Sign in with Passkey' option
You will be prompted to select a key. As soon as the key is selected, you are redirected back to the login screen.

Expected behavior:

Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: IS 6.2.0-alpha4
OS: Mac
Database: H2
Userstore: [e.g., LDAP, JDBC]

Optional Fields
Related issues:

Suggested labels:

Issue could not be reproduced in the latest distributions.


HOPSWORKS-479 Kagent not reporting number of GPUs on machine correctly

Make sure there is no duplicate PR for this issue

Please check if the PR meets the following requirements

[ ] Adds tests for the submitted changes (for bug fixes & features)
[ ] Passes the tests
[ ] HOPSWORKS JIRA issue has been opened for this PR
[ ] All commits have been squashed down to a single commit

Post a link to the associated JIRA issue

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Other information:

https://github.com/hopshadoop/hops-testing/pull/55/files


site upstream_updates returns Up-to-date, but Dashboard shows available updates

This doesn't happen with all sites, but seeing it with one of my sites:
 $ terminus site --site=terminus-demo-2 upstream_updates
+-----------------------------------------------+------------+
| Upstream                                      | Status     |
+-----------------------------------------------+------------+
| git://github.com/pantheon-systems/drops-7.git | Up-to-date |
+-----------------------------------------------+------------+
[ari@ink:~/Projects/pantheon-cli ] $ curl --silent http://dev-terminus-demo-2.pantheon.io/CHANGELOG.txt | grep 7.38
[ari@ink:~/Projects/pantheon-cli ] $ curl --silent http://dev-terminus-demo-2.pantheon.io/CHANGELOG.txt | grep 7.37
Drupal 7.37, 2015-05-07

Deleted code cache and looks good. Closing.

@ari-gold do you think this is related to #306 ?


Move onboarding folder into Authentication folder

🗃 Github Issue Or Explanation for this PR. (What is it supposed to do and Why is needed)
No issue
✅ Checklist

[ ] Github issue details are up to date for people to QA.
[ ] I have tested all my changes.

🕵♂ Notes for Code Reviewer
Onboarding is part of the authentication flow
👯♀ Paired with
"nobody"

large removes/addings due a file indentation


Add a simple command-line regex tester

This makes it easier to experiment with the behavior of our current regex implementation.

@swift-ci Please test

@swift-ci Please test


can't load a config file created by libconf

Hi,
I'm having issues with libconf.load()'ing a file that I created using libconf.dump(). A small snippet that reproduces the issue:
import libconf
t1 = {}
t1["test"] = []
pset = {}
pset["param1"] = "x";
t1["test"].append(pset)
t1["test"].append(pset)
s = libconf.dumps(t1)
lc = libconf.loads(s)

I get libconf.ConfigParseError:
libconf.ConfigParseError: Unexpected token u'{' in '', row 3, column 5; expected: (']',)
Any help or workaround would be greatly appreciated!

Python-libconf maps Python Lists to Libconfig Arrays and Python Tuples To Libconfig Lists. The idea behind this was to match Python syntax to Libconfig syntax:

Python List [] <-> Libconfig Array []
Python Tuple () <-> Libconfig List ()

The catch is that Libconfig Array elements must be scalar values of the same type. I.e. [1,2,3] is valid, but [1,2,true] is not, neither is [{key: "value"}] since the element is not a scalar type but a group. This is the issue you're seeing.
I feel that there is a bit of friction around this Python Tuple <-> Libconfig List mapping, but I don't have a great idea on how to resolve it. A simple solution would be to validate the "scalar values of constant type" constraint in dumps(). I don't want to go too deep into output validation, but this seems to be a common enough issue to warrant a fix.
What's your opinion?

I see.. yeah, I suppose you would need to check if all elements in the list are scalar values, and then decide whether to write as a LibConfig Array or List.
Personally, I don't like using tuples since I'm also using json.loads/dumps, and the json library doesn't support natively support tuples.


kube-down.sh seems to delete master too early

After my aborted attempt to create a 1,000 node cluster (by cluster/kube-up.sh) and only getting as far as 73 or so machines I decided to tear down the cluster with cluster/kube-down.sh. This process failed with the error at the end of this transcript about not being able to detect the master node. Furthermore, many of the nodes have not been deleted. Now, I am going to write a script that goes through and deletes all the instances etc. that match kubernetes-minion-* since I can't bear the thought of manually deleting so many resources.
You can see the transcript at https://gist.github.com/satnam6502/eac1e34a4f7f6f57d0f2 since it is too long to include in an issue.
For the the build I used HEAD was at f57c072e4a1b37a107b2a1113f9b03344a1a5b39 (last commit at 13:34 Thu 20 Nov 2014).

We still delete the master first (https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cluster/gce/util.sh#L691) but since there haven't been any complaints about ordering lately I'm going to close this. Please reopen if you continue to run across this issue.


ExperimentalDecorators error when using unknown compilerOptions key

I'm getting the ExperimentalDecorators error on all my components as soon as I use a compiler option unknown to the plugin.
I'm using the new lib property, but bug appears for any invalid property name.
I tried using typescript_tsdk but it didn't make any difference (Both typescript.js and tsc.js have lib defined as a valid option).
The ExperimentalDecorators error may be a side effect of something else but I didn't noticed any other error even in the console.

the error is caused by the server failing to parse the config file, and considering it invalid. so it assumes it does not exist (this should behave better in the next release). setting typescript_sdk should make it work though.. what version of typescript@next did you use?

Well sorry I tried again and setting typescript_tsdk works.
I've probably been using the wrong settings file.
I may suggest an update to the readme.md, it does not states which settings file to use (Plugin).
Now the issue was more about the fact that an unknown property makes the server fail but if you say it will behave better in next release this means this issue is already addressed.


Possible memory leak in Prediction module?

We are using apollo 5.0 (current commit 1e2c22cdd1a8ea6515afae1abe18360f8220e1f8) and it seems that there is a memory leak in Prediction module. If we use it for long time (f. e. 30 min) memory leak is about several Gb, and it's size depends on number of obstacles in perception data.
I tried to find some possible mistakes in code and there is no call for ObstaclesContainer::Clear() function in prediction_component if we don't use offline mode. Is it necessary to clear it?

Hi @ShepelIlya ,
Thanks for your message. ObstaclesContainer::Clear() function clears all obstacles stored inside. For online process, this function is not necessary because we use an LRU cache to store the obstacles, it automatically deletes the very old obstacles which have not been updated for a long time.

Ty @ivbelkin for pull request, now leak is gone.


acceptance criteria

[ ] add SQL data to .env file
[ ] connection is initiated via sequelize
[ ] database is created & seeded using schema & seed commands
[ ] database is built off of sequelize models
[ ] sequelize models are synced to MySQL database when server.js is run
[ ] API GET routes for categories, products, or tags return the appropriate data as formatted JSON data (use insomnia)
[ ] API POST, PUT, and DELETE routes are able to create, update, and delete data in the database (use insomnia)

database models;
Category

[ ] id (integer, not null, primary key, auto-increment)
[ ] category_name (string, not null)

Product

[ ] id (integer, not null, primary key, auto-increment)
[ ] product_name (string, not null)
[ ] price (decimal, not null, validates that value is decimal)
[ ] stock (integer, not null, default value = 10, validates that value is numeric)
[ ] category_id (integer, foreign key referencing Category id field)

Tag

[ ] id (integer, not null, primary key, auto-increment)
[ ] tag_name (string)

ProductTag

[ ] id (integer, not null, primary key, auto-increment)
[ ] product_id (integer, foreign key referencing Product id field)
[ ] tag_id (integer, foreign key referencing Tag id field)

Associations;

[ ] A Category can have many Products associated with it
[ ] A Product can only belong to one Category
[ ] A Product can have many Tags, and a Tag can be attached to many Products

[ ] The above association is built of the ProductTag object

walkthrough video;

[ ] show the database being initialized via the schema file in the MySQL CLI
[ ] show the database being seeded via npm run seed in git bash shell
[ ] server is started in git bash shell
[ ] get routes for returning all categories, products, and tags are tested in insomnia
[ ] get routes for returning an individual category, product, and tag are tested in insomnia
[ ] post routes for adding a category, product, and tag are tested in insomnia
[ ] put routes for updating a category, product, and tag are tested in insomnia
[ ] delete routes for deleting a category, product, and tag are tested in insomnia


Animating CompositionPropertySet values

I have a sample UWP application in which the MainPage contains a CanvasAnimatedControl (from Win2d) and a button. I have two CompositionPropertySets - propSet containing a scalar Angle and animPropSet containing a scalar RotationAngle.
Now, whenever the value of the scalar Angle changes, I need to animate the scalar RotationAngle to that value.
Here is the code
Random random = new Random();
CompositionPropertySet propSet;
CompositionPropertySet animPropSet;

private void MainPage_Loaded(object sender, RoutedEventArgs e)
{
    propSet = _compositor.CreatePropertySet();
    propSet.InsertScalar("Angle", 0f);

    var angleAnimation = _compositor.CreateScalarKeyFrameAnimation();
    angleAnimation.InsertExpressionKeyFrame(1f, "props.Angle");
    angleAnimation.SetReferenceParameter("props", propSet);
    angleAnimation.Duration = TimeSpan.FromMilliseconds(1000);

    animPropSet = _compositor.CreatePropertySet();
    animPropSet.InsertScalar("RotationAngle", 0f);

    animPropSet.StartAnimation("RotationAngle", angleAnimation);
}

private async void AnimatedCanvasCtrl_OnDraw(ICanvasAnimatedControl sender, CanvasAnimatedDrawEventArgs args)
{
    var angle = 0f;
    animPropSet.TryGetScalar("RotationAngle", out angle);
}

private void Button_OnClick(object sender, RoutedEventArgs e)
{
    var finalvalue = (float)(random.Next(60, 190) % 360);

    propSet.InsertScalar("Angle", finalvalue);
}

Whenever the button is clicked, the value of the scalar Angle changes to a random value. But the value of the scalar RotationAngle does not change.
Also, since the AnimatedCanvasCtrl_OnDraw method gets called 60 times per second, I was hoping that calling the TryGetScalar method on animPropSet will give me the intermediate values of the animation. But this is also not happening.
I am trying to avoid writing my own algorithm for animating from one value to another and reuse the animation logic provided in Composition to get the intermediate animation values.
It would be great if you could tell me if this is possible or do I have to implement my own animation logic.

Hey @ratishphilip, sorry for the late reply, but let me try answer your question(s):
To start, you are correct that based on the above code, the value of RotationAngle will not change to the new value of Angle on each button click. This is because you called StartAnimation for your KeyFrame Animation on RotationAngle when the main page loads. This means that when the main page loads, the animation gets run for a 1 second duration and then stops. Thus afterwards when the button is clicked, there is no active animation on RotationAngle. You have a couple of options:

If you want to use KeyFrame Animations, instead of calling StartAnimation when the main page loads, call it when the value of angle changes (probably on the button click event).
Instead of attaching a KeyFrameAnimation to RotationAngle, attach an ExpressionAnimation. Note that with this model, the value of RotationAngle will change "instantly" to the new value instead of interpolating to new over the 1 second duration that you get with KeyFrames. However, ExpressionAnimations don't stop, so once you start it on RotationAngle, it will always change to the value calculated by the Expression. In this case the Expression would be the same as the content in the ExpressionKeyFrame.

To your other question about querying the value of RotationAngle. If the value of RotationAngle is currently being animated, the value will not be updated until that animation completes - so you will not be able to query the intermediate values. The best way to know when to query the value when the animation completes is to put the KeyFrame Animation in a batch and listen for the BatchComplete events. When that event fires, query the value of RotationAngle.
Hope this helps!

@patsiu
Thanks for the reply.
The only goal for this entire code was to obtain the intermediate values of a Scalar, which is being animated, during the animation. :)
I just wanted to know if it was possible to harness the internal animation engine of Composition to generate the intermediate values for me, so that I can use them in my calculations, instead of writing my own animation logic.
It seems that now I have to implement my own animation logic.

@ratishphilip ok thanks for clarifying. Our team has talked about different ways for developers to obtain the intermediate values of animating properties, but there are some perf implications to most of the models. We're continuing to explore this problem, but unfortunately won't have anything in the short term.

@patsiu
Hope to see some great solution to this in the near future.
Thanks.


DPL-1003 Sample Prep - Create an RNA stock plate from Extraction LIMS

User story
As a User (Lynda) of the Sample Prep team, I WANT the ability to create RNA Stock Plate in Samples Extraction LIMS AS currently I can only create Stock Plate even if RNA Kit is selected
Refer to slides 3 and13-to-16 for details from the refinement sessions,
https://docs.google.com/presentation/d/1UvMcZhYmTwj2yqSXtp6Tv_d-s8hFX152OGH7_JF4Y7A/edit#slide=id.g292a0708915_0_150
Current limitation in Extraction LIMS:
Using Samples Extractions LIMS =SamplesExtraction 2.2.0  (outside SeqScape) we input the pre-extracted barcode

Select correct kit
Select instrument or manual
Generate the necessary barcode
Only stock barcode plate can be created which is DNA even if RNA kit is selected

Who are the primary contacts for this story
Lynda D.
Who is the nominated tester for UAT
Lynda D.
Acceptance criteria

[ ] Confirm whether I can create a RNA tube or plate downstream to export into SeqScape from RNA Kits,
QiAcube and
QiaSymphony

Dependencies
This story is blocked by the following dependencies:

#<issue_no.>
sanger/#<issue_no.>

References
This story has a non-blocking relationship with:

[#<issue_no.>
sanger/#<issue_no.>](https://github.com/sanger/sequencescape/issues/3970)

Additional context

This is for recording what was done for UAT setup:

The branch for renaming the RNA Stock Plate to Stock RNA Plate to match the name in Sequence was deployed to UAT.
A simple step type to create a Stock RNA Plate and transfer it to Sequencescape was created, using the UI
The step type was added to four activity types for RNA extraction, using the UI

Step Types: Create Stock RNA Plate
https://uat.samples-extraction.psd.sanger.ac.uk/step_types/124
Activity Types: QIAcube DNA & RNA extraction
https://uat.samples-extraction.psd.sanger.ac.uk/activity_types/2
Activity Types: QIAcube RNA Only extraction
https://uat.samples-extraction.psd.sanger.ac.uk/activity_types/4
Activity Types: QIAsymphony based on QIAcube RNA
https://uat.samples-extraction.psd.sanger.ac.uk/activity_types/8
Activity Types: Manual extraction
https://uat.samples-extraction.psd.sanger.ac.uk/activity_types/9

Need to discuss in light of retirement of Sample Extraction LIMS proposed by PSD


Installing Qt on macOS has started to fail

Installing Qt using the GitHub action on macOS started to fail around August 1st 2022.
When I install Qt I now get the following error:
Run jurplel/install-qt-action@v3
  with:
    version: 5.15.2
    target: desktop
    install-deps: true
    cache: false
    cache-key-prefix: install-qt-action
    setup-python: true
    set-env: true
    tools-only: false
    aqtversion: ==2.1.*
    py7zrversion: ==0.19.*
Run actions/setup-python@v4
  with:
    python-version: 3.6.x - 3.11.x
    token: ***
    update-environment: true

Successfully set up CPython (3.10.5)
Error: Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/Users/runner/work/TeamTalk5/TeamTalk5/action'. Did you forget to run actions/checkout before running your local action?

Here's an example of a successful workflow: Success
Here's an example of a failing workflow: Fail

+1 ,also encounter this error .

Use v2 of the action, it seems v3 is not yet ready.

the v2 does not support qt6


We are sorry, your Cognitive Services resource is unavailable.

Unable to chat in the openai playground when I have added my own data. Getting then above error message in the health section of the openai resource

@mike-j-b Apologies for the late reply. Thanks for reaching out to us and reporting this issue. This seems like a transient issue. Could you please check and let us know if you are still seeing the same issue ? Awaiting your reply.


Update countryside stewardship grant schema

These changes reflect those made in specialist publisher. No documents of this type have been published yet, so there are no concerns about migrating data.
See https://github.com/alphagov/specialist-publisher/pull/403

:+1:


command not found : GET.metrics

I built the maven project and put it into plugins directory
and start server successfully but I can't see anything in the server management(which is the features of ee)
and I saw error message : command not found GET.metrics
what is the problem and how can I solve it?

![Screen Shot 2023-07-14 at 10 25 21 AM](https://github.com/SAP/orientdb-enterprise-agent/assets/71862201/7b24cd9b-fc39-4eaa-af1f-300bfb90f148)

it was version issue thks


TAXIICollectionSource should capture HTTP errors

Wrap calls to get_object and get_objects, catch an HTTP 404 or other errors, and return None or an empty list as appropriate.

Yep, it looks like it got done. Thinking about this more, though, do we really want to return an empty list for any HTTP error? I can understand for a 404, but if the authentication is bad (401, 403), or there's a problem on the server (5xx), do we want to alert the user to that somehow?

I'm not sure what you mean by "Graceful API warning response", but I agree that it probably wouldn't be my first choice.
On one hand I don't want to introduce a bunch of custom exceptions, but on the other hand I don't think returning HTTPErrors from requests is the best option either. On the third (?) hand, maybe this is something best handled in the taxii-client, rather than just calling raise_for_status() there (1, 2).
I'm open to suggestions. @emmanvg  @clenk do you have ideas?

In general, I am okay with returning a special value (e.g. None or empty list) which indicates not-found, instead of raising an exception.  Especially if these not-found conditions are routine and normal, as it can make caller code simpler.  But the spec looks like it defines 404 as meaning either not-found, or access-denied, which makes it ambiguous.  The spec keeps saying for 404s: "... does not exist or the client does not have access ...".  And I wouldn't want to confuse an access-denied error with a not-found error.
Perhaps what the spec intended was to say that it is legal for a TAXII server to make it appear to clients as if the requested resource does not exist, when the client doesn't have permission to access it.  The client is still intended to interpret 404's as not-found, in which case the status is effectively unambiguous from the client's point of view.
Would an exception which indicates a 404 status occurred, carry any substantively different information, than an empty list or None, which was documented to mean that the requested resource was not found?
For other types of errors, I think exceptions make sense.  But it sounds like Greg is uncomfortable with passing Requests' HTTPError through to higher level software layers.  I think it is probably okay for taxii-client to raise HTTPError.  But python-stix2 is designed around more abstract sources/sinks, and users may use different sources and sinks or combinations of them, and one could argue that the source/sink interfaces should be defined with consistent predictable exception types.  Users shouldn't have to guess at what exceptions a source or sink might throw.  Maybe some higher-level exception classes are called for; the lower-level exceptions (e.g. network, disk I/O, etc) could be retained as the "cause" of the higher-level exceptions?

Sorry for the other duplicate report, I thought I searched for "error" but apparently not.
I can tell you as a user, it was very confusing to me when I made a request, in particular with a filter, and the response was an empty list. It took me awhile to track back from the collection being empty, to maybe the filter is wrong, to I just had the wrong URL. Returning None would let me differentiate between an empty set (filtered everything out, collection is empty) and a mis-typed URL...raising an error would also work.
In the TAXII spec, you're right that the intent of the spec was that in cases where the client was unauthorized you could either explicitly say that via the unauthorized status or you could just pretend it didn't exist to avoid giving away info about what collections exist or don't by calling it not found.

I'm OK with TAXII servers that return a 404 when they want to pretend that a resource doesn't exist. GitHub does that for private repos and other URLs.
I think I was a bit too ambitious with the original description. For a 404 error on /objects/<guid>, I think returning None makes sense. If /objects returns an error (for query/get_objects), we should probably raise an exception. If query returns no results, then return an empty list. We may want to check some of the required metadata for a Collection passed into TAXIICollectionDataSource, to see if the Collection URL is valid (for the provided name/password), and then raise an error even before the call to query.

So, summarizing:

get() | get_object() | /objects/ -> return None on 404 bc either way user cannot get object

query()/all_version() | get_objects() | /objects -> return errors as exceptions, return [] if no results

@Greg, youre proposing to check the supplied collection instance to see if its valid? Shouldnt that be an initialization (or lazy) check within the TAXII Client, not in the DataSource.  If not, would calling Collection.refresh() (https://github.com/oasis-open/cti-taxii-client/blob/master/taxii2client/init.py#L432) suffice?

I think that's right for the error conditions. Does that seem reasonable?
Because Collection loads its attributes lazily, you can construct a TAXIICollectionSource, pass in a Collection and not realize it's a non-existent URL until you call get or query, which seems non-intuitive. We can call refresh(), but it might be more straightforward to check can_read of the Collection in TAXIICollectionSource.__init__ and can_write in TAXIICollectionSink.__init__, which will detect the 404 as well as the permission error.

Closed by #181


Exchange repository test

Closes #64

Coverage increased (+0.4%) to 90.547% when pulling 9036148d7047f552aaa4da259b46fa6e6b3f9bec on exchange-repository-test into 8db3addfcc6568b26d54c322d2e43fad6bdb0a9b on main.


Dw index

Hackathon Git Labs Project PR 🎉🎉
👉 Please remove the below and replace with your own values, leaving the headers where they are. 👈
PR contains:

add DaveWatters profile page.
add community/DaveWatters/
add community/DaveWatters/index.html
add community/DaveWatters/style.css

Breaking changes

None

Screenshots

None

Looks good Dave, merged!


Support to_enum objects as collections

Support collection objects that respond to to_enum.

Étienne had mentioned he wasn't on board with the API here - truth be told there's kind of no winning with introducing the ability to build a collection that has knowledge about enumerators / cursors into the gem. 😅  Right now the thing the gem does well is keeping things simple with its #collection API.
For V1, in the interest of shipping CSV as a feature and not getting blocked, it's probably best to keep the changes to support custom enums inside Core only and override build_enumerator to handle a BackgroundQueue::GCSCsvEnumerator collection. I'm concerned we'll be going around in circles again if we try to nail an API for the gem.
Sorry for getting things sidetracked here Gannon!

Ah. My mistake. Thanks for clarifying 🙇


Update to newest Swift

Any chance of updates this? The auto updater in xCode doesn't seem to be able to handle it.

I would also like to see an update. And I've been trying to do it myself. This code is worth saving!!


Extend CodeQL scan with security-and-quality queries

This PR contains a change in the codeql-analysis.yml file to run extended suite of CodeQL scan (sequirity-and-quality)
It runs the scan only on the production code.
Additionally, this PR solves some alerts found by CodeQL with severity: Error/Critical, Medium,High/Warning.
Alerts with severity Low/Note were suppressed.
1 High severity alert Log injection in LoggingMonitor was suppressed as false positive.
The CodeQL scan found also 2 types of issues (see the failing build check) that require more input:

Hard-coded default password property value.
https://github.com/agera-edc/DataSpaceConnector/security/code-scanning/218?query=ref%3Arefs%2Fpull%2F10%2Fmerge

6 alerts for the topic: Use of a potentially broken or risky cryptographic algorithm
https://github.com/agera-edc/DataSpaceConnector/security/code-scanning/217?query=ref%3Arefs%2Fpull%2F10%2Fmerge

Regarding the 2 above, we’d like to discuss them and align with Jim and Paul if we’d like to create the follow up issues to solve them.

Good work @Izzzu , added my feedback.

nit: is it possible to suppress warnings via a code annotation?

no, it's not possible at the moment: https://github.com/github/codeql/issues/7294#issuecomment-985496463

nit: is it possible to suppress warnings via a code annotation?
I'll add info about it to the ADR in the next PR, together with information about queries customization


Fix active option on non empty filtertext

how to test:
Enter a non empty text in the input to have at least two options in the dropdown, press the down arrow once, the active option should be the second option in the filtered options.
Try it for a default dropdown, and with the dropdown having the supportSingleCustomOption option
demo: https://rawgit.com/coveo/react-vapor/fix-active-option-on-non-empty-filtertext/docs/index.html

Codecov Report

Merging #336 into master will decrease coverage by 0.08%.
The diff coverage is 69.23%.

@@            Coverage Diff             @@
##           master     #336      +/-   ##
==========================================
- Coverage   99.77%   99.69%   -0.09%
==========================================
  Files         142      142
  Lines        3543     3551       +8
  Branches      818      823       +5
==========================================
+ Hits         3535     3540       +5
- Misses          8       11       +3

Impacted Files
Coverage Δ

...mponents/dropdownSearch/DropdownSearchReducers.tsx
94.35% <69.23%> (-1.51%)
:arrow_down:

Continue to review full report at Codecov.

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

Are you able to fix the drop in coverage?


Add files via upload

:x: Validation status: errors

File
Status
Preview URL
Details

rd/christian-buckley.yml
:x:Error

Details

rd/dan-hermes.yml
:x:Error

Details

rd/laurence-liew.yml
:x:Error

Details

rd/mihai-tataran.yml
:x:Error

Details

rd/gianpaolo-santopaolo.yml
:x:Error

Details

rd/reza-rad.yml
:x:Error

Details

rd/amit-bansal.yml
:x:Error

Details

rd/rene-schulte.yml
:x:Error

Details

rd/eran-stiller.yml
:x:Error

Details

rd/david-rodriguez.yml
:x:Error

Details

rd/joel-oleson.yml
:x:Error

Details

rd/mamadou-bah.yml
:x:Error

Details

rd/mateusz-kozlowski.yml
:x:Error

Details

rd/oren-novotny.yml
:x:Error

Details

rd/stacia-varga.yml
:x:Error

Details

rd/sebastian-fyda.yml
:x:Error

Details

rd/eduardo-pires.yml
:x:Error

Details

rd/nicki-borell.yml
:x:Error

Details

rd/udi-dahan.yml
:x:Error

Details

rd/nishith-pathak.yml
:x:Error

Details

rd/ritesh-modi.yml
:x:Error

Details

rd/maarten-eekels.yml
:x:Error

Details

rd/jen-stirrup.yml
:x:Error

Details

rd/dipti-chhatrapati.yml
:x:Error

Details

rd/stefan-denninger.yml
:x:Error

Details

rd/huan-li.yml
:x:Error

Details

rd/stefano-tempesta.yml
:x:Error

Details

rd/esteban-garcia.yml
:x:Error

Details

rd/paula-januszkiewicz.yml
:x:Error

Details

rd/patricio-cofre.yml
:x:Error

Details

rd/igor-abade.yml
:x:Error

Details

rd/stan-schultes.yml
:x:Error

Details

:x:Error

Details

rd/christian-buckley.yml

[Error] Unable to load file: christian-buckley.yml via processor: Profile: christian-buckley.yml is not in supported format: (Line: 18, Col: 18, Idx: 608) - (Line: 18, Col: 19, Idx: 609): While parsing a block mapping, did not find expected key.

rd/dan-hermes.yml

[Error] Unable to load file: dan-hermes.yml via processor: Profile: Validation against "https://dotnet.github.io/docfx/schemas/v1.0/schema.json#" failed:
Invalid type. Expected String but got Null. Path 'facebook'.
Invalid type. Expected String but got Null. Path 'twitter'.
Invalid type. Expected String but got Null.

[Error] christian-buckley.yml is not in supported format: (Line: 18, Col: 18, Idx: 608) - (Line: 18, Col: 19, Idx: 609): While parsing a block mapping, did not find expected key.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Health and Wellness View / Components

Overview
This PR adds a "Health and Wellness Dashboard" with supporting components for display of EHR data.  This is primarily just a port of some of our existing components into MyDataHelpsUI.  I had started this for a project already and figured it made sense to finish it because we are often customizing this screen.
Components added here are:

LabResultsSummary
LabResultWithSparkline (used by LabResultsSummary)
HealthPreviewSection (for displaying summary of meds, immunizations, reports etc.)
ExternalAccountsLoadingIndicator (a spinner for while accounts are being refreshed)

None of the "drilldown" views are included here; they are hosted separately on hw.careevolutionapps.com and this just links to them.
This should enable us to include this as a tab under "app layout" in MyDataHelps Designer.

Security
REMINDER: All file contents are public.

[x] I have ensured no secure credentials or sensitive information remain in code, metadata, comments, etc.

[x] Please verify that you double checked that .storybook/preview.js does not contain your participant access key details.
[x] There are no temporary testing changes committed such as API base URLs, access tokens, print/log statements, etc.

[x] These changes do not introduce any security risks, or any such risks have been properly mitigated.

Describe briefly what security risks you considered, why they don't apply, or how they've been mitigated.
Checklist
Testing

[x] MyDataHelps iOS app
[x] MyDataHelps Android app
[x] MyDataHelps website

Documentation

[X] I have added relevant Storybook updates to this PR as well.
[ ] If this feature requires a developer doc update, tag @CareEvolution/api-docs.

Consider "Squash and merge" as needed to keep the commit history reasonable on main.
Reviewers
Assign to the appropriate reviewer(s). Minimally, a second set of eyes is needed ensure no non-public information is published. Consider also including:

Subject-matter experts
Style/editing reviewers
Others requested by the content owner

Thanks for the review @greinard


Fix the Chicken and Egg problem when deploying on OpenShift

When running on OpenShift, allow the controller to start without a connection to OrgBook.
When a connection is established, auto-register the issuer.
Resolves the issue of having to start/restart the controller and agent multiple times to complete the setup.

@parc-jason


gccgo: alloc space keeps on increasing even with a simple go program using grpc

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.10 gccgo (GCC) 8.0.1 20180305 (experimental) aix/ppc
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
OS: AIX 7.2
relevant go env flags:
GOARCH="ppc"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build337480888=/tmp/go-build -gno-record-gcc-switches -funwind-tables"
What did you do?
I have a simple grpc server and a client with makes request frequently. The program can be found here. Please create a dir and extract the contents of the tar file to it. Make sure that $GOPATH is exported correctly. Execute ./run.sh.
What did you expect to see?
The DATA RES section should be stable in terms of memory usage
What did you see instead?
For a program running days, this memory bloats up to 5-6 GB and then the system freezes. Surprisingly the program does not crash. For this particular example, following is the pprof output at the start of the program and hew seconds later:
At the start of the program:
 go tool pprof --alloc_space http://<IP_ADDRESS>:50048/debug/pprof/heap
Fetching profile from http://<IP_ADDRESS>:50048/debug/pprof/heap
Saved profile in /home/cohesity/pprof/pprof.<IP_ADDRESS>:50048.alloc_objects.alloc_space.inuse_objects.inuse_space.013.pb.gz
Entering interactive mode (type "help" for commands)
(pprof) top
15364.38kB of 18436.46kB total (83.34%)
Showing top 10 nodes out of 30 (cum >= 512.03kB)
      flat  flat%   sum%        cum   cum%
 3584.45kB 19.44% 19.44% 13316.25kB 72.23%  google_golang_org_grpc.Server.serveStreams
 3072.35kB 16.66% 36.11%  3072.35kB 16.66%  golang_org_x_net_http2_hpack.Decoder.parseFieldIndexed
 1536.52kB  8.33% 44.44%  1536.52kB  8.33%  google_golang_org_grpc_transport.decodeState.processHeaderField
 1536.14kB  8.33% 52.77%  4608.77kB 25.00%  google_golang_org_grpc_transport.http2Server.operateHeaders
 1536.12kB  8.33% 61.10%  1536.12kB  8.33%  golang_org_x_net_context.WithDeadline
 1536.05kB  8.33% 69.44%  9731.80kB 52.79%  google_golang_org_grpc_transport.http2Server.HandleStreams
 1024.06kB  5.55% 74.99%  1024.06kB  5.55%  google_golang_org_grpc_transport.loopyWriter.run
  514.63kB  2.79% 77.78%   514.63kB  2.79%  golang_org_x_net_http2_hpack.Decoder.parseFieldLiteral
  512.04kB  2.78% 80.56%  1024.05kB  5.55%  google_golang_org_grpc.Server.sendResponse
  512.03kB  2.78% 83.34%   512.03kB  2.78%  golang_org_x_net_trace.FromContext

A few minutes later:
 go tool pprof --alloc_space http://<IP_ADDRESS>:50048/debug/pprof/heap
Fetching profile from http://<IP_ADDRESS>:50048/debug/pprof/heap
Saved profile in /home/cohesity/pprof/pprof.<IP_ADDRESS>:50048.alloc_objects.alloc_space.inuse_objects.inuse_space.014.pb.gz
Entering interactive mode (type "help" for commands)
(pprof) top
125.01MB of 171.64MB total (72.84%)
Dropped 7 nodes (cum <= 0.86MB)
Showing top 10 nodes out of 58 (cum >= 4.50MB)
      flat  flat%   sum%        cum   cum%
   23.50MB 13.69% 13.69%    86.52MB 50.41%  google_golang_org_grpc_transport.http2Server.HandleStreams
      23MB 13.40% 27.09%   109.52MB 63.81%  google_golang_org_grpc.Server.serveStreams
      17MB  9.91% 37.00%       17MB  9.91%  golang_org_x_net_http2_hpack.Decoder.parseFieldIndexed
   12.50MB  7.28% 44.29%       13MB  7.58%  google_golang_org_grpc_transport.decodeState.processHeaderField
   10.50MB  6.12% 50.40%       55MB 32.05%  google_golang_org_grpc..1google_golang_org_grpc.Server.serveStreams..func2
       9MB  5.24% 55.65%        9MB  5.24%  google_golang_org_grpc_transport.controlBuffer.put
    8.50MB  4.95% 60.60%       13MB  7.57%  golang_org_x_net_context.WithTimeout
    8.50MB  4.95% 65.55%       40MB 23.31%  google_golang_org_grpc.Server.handleStream
       8MB  4.66% 70.21%    31.50MB 18.35%  google_golang_org_grpc.Server.processUnaryRPC
    4.50MB  2.62% 72.84%     4.50MB  2.62%  golang_org_x_net_trace.FromContext

In server.go, you have
  // This call enables profiling of goroutine blocks for pprof.
  // https://software.intel.com/en-us/blogs/2014/05/10/debugging-performance-issues-in-go-programs
  runtime.SetBlockProfileRate(1)

Do you still observe the memory growth if you remove that?


Not using latest official plex image, instead hard-coded: plexinc/pms-docker:<IP_ADDRESS>6-7eb2c8f6f

Is there a reason to keep using plexinc/pms-docker:<IP_ADDRESS>6-7eb2c8f6f rather than the latest?

Go for latest, I'll update the values later this week to match what I have in my homelab. I'm reluctant to use :latest since it's a bad practice in general, but I think it might make things easier to set up initially regardless of my reservations 😆


feat: handle urls and support widget rendering in markdown

This is an alternative implementation of rendering widgets in markdown. The original implementation by @elliotBraem and relevant discussion can be found in https://github.com/NearSocial/VM/pull/87
In this implementation, we proposed a more generic design with onURL handler that will process the URLs in the markdown, with the assumption that the widget src and props can be parsed from a URL format such as:

bos://mob.near/widget/Profile?accountId=root.near
bos://near.social/#/mob.near/widget/Profile?accountId=root.near

As a more generic design, in theory, it allows components to customize how they'd like to process the URLs, not only for widgets.
You can preview and test the implementation in my gateway: https://openweb.build/write

URL
In this implementation, we follow the URL definition in rfc3986, which matches the below pattern:
scheme://authority/path?query#fragment

onURL Handler
When using the Markdown native component in your own BOS component, you can implement the onURL function to process the URLs in markdown.
function onURL({ url, scheme, authority, path, query, fragment })

Below is an example of implementing widget render in component:
const renderWidget =
  props.renderWidget ??
  // URL pattern: scheme://authority/path?query#fragment
  (({ url, scheme, authority, path, query }) => {
    // widget URL now allows "bos" and "near" schemes
    if (url && ["bos", "near"].includes(scheme) && authority && path) {
      const location = authority + path;
      const segments = location.split("/");
      if (segments && segments.length >= 3) {
        const src = segments.slice(segments.length - 3).join("/");
        const props = {
          ...{ markdown: props.text },
          ...(query ?? {}),
        };
        return (
          <Embedded className="embedded-widget">
            <Widget key={url} src={src} props={props} />
          </Embedded>
        );
      }
    }
    // If not a valid widget URL, return the original URL
    return url;
  });

return (
  <Wrapper>
    <Markdown
      text={props.text}
      onMention={renderMention}
      onURL={renderWidget}
    />
  </Wrapper>
);

The complete source code can be found on GitHub or on BOS.
With onURL handler, developers can create markdown wrapper components with URL renders that can parse and re-render all kinds of links including videos, images, games, NFTs, SBTs, widgets, code, data, and almost everything that can be specified with a URL.
Schemes
We have discussion around which scheme ("bos://" or "near://") is preferred for widget URL, and we think a community vote and more discussion are needed to make the decision.
In this implementation, we have no restriction on scheme when parsing the URL, which gives components (and gateways) the freedom to decide which URLs they want to handle, how to parse the URLs, how to render the widgets, and more.
Security
It's worth attention that allowing processing all URL patterns without limitation will bring security concerns (e.g. phishing, or fake link) especially for https:// and http://. We may only allow whitelisted URL schemes. This is not yet included in the current implementation, but can be added.
In my testing, components can replace original links with fake links, so it's dangerous to allow modifying https:// and http:// link. And we do require testing from more parties, before we release this feature.

Discussion

Besides the widget URL pattern, @elliotBraem also proposes the {{mob.near/widget/Profile?accountId=root.near}} syntax. We recommend a community vote to decide the best format for rendering widgets in markdown.
If we prefer the widget URL pattern, which schemes should we support? (we can also continue the discussion here) Do we need a scheme whitelist to limit the URL schemes or patterns that components can handle?

Any other questions or comments are welcome.

I am in full support of this; I think it’s a much more flexible solution and lends itself well to other embeddings such as YouTube, Spotify, and more (as the sharddog gateway is doing).
I’m excited to start using it and see what the community makes of it


Fix template names

Coverage increased (+0.04%) to 82.134% when pulling cc2a275e1f8eaffec02e5cbe6e4df9f0dd5cccf3 on fix/eventtypecreate into 9f95a3528e2584c75f0abce86cf875ffe8fe663e on main.


Sql-run also for Oracle

Hi Cédric,
do you plan to extend the sql-run feature to work also with other databases as for example with Oracle?
It would be really great, because currently we have to use exe-run with powershell script executing a sql script and the whole thing is quite ugly. Thank you.
Regards,
Tomas

Hello Tomas,
The code to execute a SQL script on SQL Server is really specific to SQL Server. I'm definitively not planning to support the same code for Oracle. But, I can create an extension point and let other developers create an extension for Oracle. Tell me if interested.


Output valid sanitized HTML instead of XHTML

Fixes conversion of

 ->
 which isn't valid HTML5.
I need to write some unit tests for this still but wanted to run this by the devs first.

definitely needs tests


Drop support for Node 14

Node 16 is LTS now so that should be our minimum supported version.

I've noticed that react-dev-utils will require Node 16 too. Will it apply only to versions 12.x?
Currently, the package.json in react-scripts mentions "react-dev-utils": "^11.0.4". Shouldn't it be a 12.x version instead?
The webpack.config.js uses ForkTsCheckerWarningWebpackPlugin that isn't included in "react-dev-utils": "^11.0.4".


Spam or truth? There is only one way to find out. Look into the sources yourself.

tari-project/tari#2904

tari-project/tari#2893

tari-project/tari#2892

tari-project/tari#2859

tari-project/tari#2972

tari-project/tari#2971

tari-project/tari#2970

tari-project/tari#2969


Unable to use source_security_group_id with security_group_rules

Found a bug? Maybe our Slack Community can help.

Describe the Bug
The objects in security_group_rules must match one another perfectly or else Terraform complains: https://github.com/hashicorp/terraform/issues/26265
Expected Behavior
Able to actually create security group rules.
Steps to Reproduce
Use anything but cidr_blocks in security_group_rules:
  security_group_rules = [
    {
      type                     = "egress"
      from_port                = 0
      to_port                  = 0
      protocol                 = -1
      cidr_blocks              = ["<IP_ADDRESS>/0"]
      description              = "Allow all outbound traffic"
    },
    {
      type                     = "ingress"
      from_port                = local.container_port
      to_port                  = local.container_port
      protocol                 = "tcp"
      source_security_group_id = local.alb_security_group
      description              = "Enables incoming ALB traffic."
    }
  ]

Screenshots
If applicable, add screenshots or logs to help explain your problem.
Environment (please complete the following information):
Terraform v1.0.1
on darwin_amd64
+ provider registry.terraform.io/hashicorp/aws v3.51.0
+ provider registry.terraform.io/hashicorp/external v2.1.0
+ provider registry.terraform.io/hashicorp/github v3.0.0
+ provider registry.terraform.io/hashicorp/local v2.1.0
+ provider registry.terraform.io/hashicorp/null v3.1.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/hashicorp/template v2.2.0

Additional Context
Add any other context about the problem here.

Also, shouldn't these have been updated in the PR that made the switch to security_group_rules?

https://github.com/cloudposse/terraform-aws-ecs-alb-service-task/blob/master/main.tf#L445
https://github.com/cloudposse/terraform-aws-ecs-alb-service-task/blob/master/main.tf#L530

You may want to use the older v0.56.0 while the security group module has completed it's refactoring.
The 0.57.0 and 0.58.0 are pre-releases.

I ran into this issue while working on the PR I put in around the same time. I based the PR on master rather than 0.56.0 and hit on this in testing. The branch I'm actually using was rebased on to 0.56.0.
Filed this to point out that there are significant showstopping bugs present in those pre-releases.

Obsoleted by #155


Scope stock/user management to admin's associated facilities

This issue can probably be closed since the associated pull request was merged.

Oh thanks!  Yes!


the encoding declaration in @types/crawler

Issue Description
In the tutorial of Crawler

I cannot assign a null value to CrawlerRequestOptions, when following the tutorial as below:

Trouble-shooting
encoding defined in @types/crawler
    interface CrawlerRequestOptions {
        encoding?: string | undefined;
    }

The implementation for encoding in file lib/crawler.js

Suggestion
Solution 1 (Recommended)
Change the encoding declaration in @types/crawler as below
    interface CrawlerRequestOptions {
        encoding?: string | undefined | null;
    }

Solution 2
Change the implementation of handling encoding as below:
Crawler.prototype._doEncoding = function (options, response) {
	var self = this;

	if (!options.encoding) {
		return;
	}

	if (options.forceUTF8) {
		var charset = options.incomingEncoding || self._parseCharset(response);
		response.charset = charset;
		log('debug', 'Charset ' + charset);

		if (charset !== 'utf-8' && charset !== 'ascii') {// convert response.body into 'utf-8' encoded buffer
			response.body = iconvLite.decode(response.body, charset);
		}
	}

	response.body = response.body.toString();
};

Hi guy, I think this should be a bug of type inference in typescript. I don't like typescript, also suggest you no to use it.


[tool_crash] StateError: Bad state: No context with the running Dart application.

Command
flutter run

Logs
StateError: Bad state: No context with the running Dart application.
#0      RemoteDebuggerExecutionContext.id (package:dwds/src/debugging/execution_context.dart:55:7)
<asynchronous suspension>
#1      AppInspector._getExtensionRpcs (package:dwds/src/debugging/inspector.dart:538:20)
<asynchronous suspension>
#2      AppInspector._initialize (package:dwds/src/debugging/inspector.dart:97:34)
<asynchronous suspension>
#3      AppInspector.initialize (package:dwds/src/debugging/inspector.dart:160:5)
<asynchronous suspension>
#4      ChromeProxyService.createIsolate (package:dwds/src/services/chrome_proxy_service.dart:216:18)
<asynchronous suspension>

[✓] Flutter (Channel stable, 2.10.0, on Microsoft Windows [Version 10.0.19043.1466], locale en-US)
    • Flutter version 2.10.0 at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5f105a6ca7 (2 days ago), 2022-02-01 14:15:42 -0800
    • Engine revision 776efd2034
    • Dart version 2.16.0
    • DevTools version 2.9.2

[!] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at C:\Users\ItsAb\AppData\Local\Android\sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.9)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.32106.194
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code, 64-bit edition (version 1.63.2)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.34.0

[✓] Connected device (2 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19043.1466]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 98.0.4758.81

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 5f105a6ca7a5ac7b8bc9b241f4c2d86f4188cf5c
Plugins
flutter_config-1.0.8
geolocator-8.1.0
geolocator_android-3.0.2
geolocator_apple-2.0.1
geolocator_web-2.1.4
geolocator_windows-0.1.0

Duplicate of #95916


[WFLY-15289] Revisiting Elytron permissions in MDBRoleTestCase, RunAsPrincipalTestCase, RunAsTestCase, RunAsEjbMdbTestCase, RunAsMDBUnitTestCase and LegacyCompliantPrincipalPropagationTestCase

Issue: https://issues.redhat.com/browse/WFLY-15289

@darranl Please review.

@khermano Please update your commit to change the JIRA number, and update the title of this PR as well. (The PR title becomes the merge commit message, so that becomes a secondary way to navigate between the git history / JIRA issue / PR discussion.)

Of course, I apologize for overlooking it and for the delay.


ConvertToHtml have an issue with Strict Open XML Files

ConvertToHtml have issue with Strict Open XML Files
...
XElement htmlElement = WmlToHtmlConverter.ConvertToHtml(wDoc, settings);
Generate Null reference exception, But if document is in TRANSITIONAL DOCX format all works fine.

Closing all issues as this repo is being archived and will no longer be maintained by Microsoft. The project is licensed for continued use and development by forking to your own repo.


Optimize "foo in 1..10" expressions

Automatically convert ast for foo in 1..10 from:
binaryNode{operator: "in",
    left:  nameNode{name: "foo"},
    right: binaryNode{operator: "..",
        left:  numberNode{value: 1},
        right: numberNode{value: 10}}}

To:
binaryNode{operator: "and",
    left: binaryNode{operator: ">=",
        left:  nameNode{name: "foo"},
        right: numberNode{value: 1}},
    right: binaryNode{operator: "<=",
        left:  nameNode{name: "foo"},
        right: numberNode{value: 10}}}

Done in f7bcbfa4384325ec1b3909f4874cffaeb7e412e1


Fix version comparison on platform_version

Description
The supported platform check should be using .to_i instead of comparing to the original string value.
Issues Resolved
(none)
Check List

[ ] A summary of changes made is included in the CHANGELOG under ## Unreleased
[x] New functionality includes testing.
[x] New functionality has been documented in the README if applicable.

Ping me again when you've written a CHANGELOG.

:facepalm: Changelog added @damacus

Released as: 7.2.1


about the training and the eval

when i finish the training, i see the config
To get the prediction error and predicted Hamiltonians on the twisted structures:

Unzip the file Bismuth_twisted.zip.
Find the configuration file Bismuth_eval.ini. Read the descriptions of the input variables in this configuration file.
These variables need to be modified by yourself: trained_model_dir, output_dir, processed_data_dir, save_graph_dir.
Run the command: /path/to/deephe3-eval.py Bismuth_eval.ini to evaluate the trained model.
When finished, hamiltonians_pred.h5 will be produced under the folders of each structures under output_dir. There will be a test_result.h5 file and src folder under output_dir, which can be analyzed using deephe3-analyze.py.'

I want to know the processed_data_dir  is different from the training  of processed_data_dir?
could you tell me?  thanks

In the prediction step, the goal is to get the predicted Hamiltonians of the twisted structures which are not in the training set. Therefore the processed_data_dir in this step should be the folder containing structures from Bismuth_twisted.zip.

thanks，I have geted the result , now how can I  ues the hamiltonians_pred.h5 and  info.json to compare with the  hamiltonians.h5 and how to plot the energy  photo  in the paper.

You can use the inference utility of DeepH-pack to get the band structure and plot them. Please refer to this link.

thanks, I have finished the The entire process foe deepH,   but I see the inference.ini
[basic]
OLP_dir = /data/run01/scv7f2x/software-scv7f2x/DeepH-pack/example/work_dir/olp/5_4
work_dir = /data/run01/scv7f2x/software-scv7f2x/DeepH-pack/example/work_dir/inference/5_4
structure_file_name = POSCAR
task = [5]
sparse_calc_config = /data/run01/scv7f2x/software-scv7f2x/DeepH-pack/example/work_dir/inference/5_4/band.json
trained_model_dir = /data/run01/scv7f2x/software-scv7f2x/DeepH-pack/example/work_dir/trained_model
restore_blocks_py = True
[interpreter]
julia_interpreter = /data/home/scv7f2x/run/julia-1.6.6/bin/julia
[graph]
radius = 9.0
create_from_DFT = True
I don‘t know where is the band.json for the deepH-E3 and  I only got the info.json and the hamiltonians_pred.h5.
Please tell me how to modify the inference.ini to plot the figure.
thanks again

When you diagonalize the Hamiltonian using DeepH-pack, you will get openmx.Band file under work_dir, containing the band structure information in OpenMX format. This script takes in information from openmx.Band to plot the band structure. You need to put this script under work_dir and run python3 plot_band.py -u <plot_upper_limit> -d <plot_lower_limit>.


Add enough reporting to understand failure patterns

It will be wise to have sufficient reporting in the CLI to understand failure patterns with a growing user base.

Must set correlation ID with server logs #992
Should emit tool classification errors.
Should emit service classification errors. #2101

Is this good to close now?


Add view to frontend - solve page

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 1

See the complete overview on Codacy


Use dev branch and redirect to it.

This change is

@stbof Can you amend your commit and force-push? Retrying the build in Netlify did not properly sync the status to GitHub.


Determine how to implement NuGet auto-restore for MSBuild-based .NET Core projects

The next step is to take a new OmniSharp build.


COCO training and evaluation

Do anyone successfully train on coco and reach the paper accuracy? (refinedet 320 VGG: 29.4)
Can somebody provide the coco evaluation code? I want to train coco myself but I can't run evaluation. Thanks!

You can use the published code https://github.com/dd604/refinedet.pytorch.git for coco training and evaluation.


Migrating blobstore to Minio result in TLS exception

Currently trying to migrate blobstore to Minio. I have a dedicated minio server whose API is available under a non TLS secured URL.
After trying to migrate via
flynn -a blobstore env set BACKEND_MINIO="backend=minio endpoint=minio.custom.domain:9000 bucket=flynnblobstore access_key_id=key_id secret_access_key=access_key" DEFAULT_BACKEND="minio"`

The blobstore web crashes with Get https://minio.custom.domain:9000/flynnblobstore/?location=: remote error: tls: internal error.
I guess this is expected as the minio server is not served via https. However, I wonder if flynn would accept a self-signed certificate of if it has to be one from a thrusted CA.

@n0daft you need to set insecure=true to disable TLS:
flynn -a blobstore env set BACKEND_MINIO="backend=minio \
  endpoint=minio.custom.domain:9000 \
  bucket=flynnblobstore \
  access_key_id=key_id \
  secret_access_key=access_key \
  insecure=true" DEFAULT_BACKEND="minio"

Thanks for the quick answer. Haven't realized that this is possible. Will try it later.

Worked like a charm. Also the migrate command afterwards. Although I'm not sure if it copied all blobs:
The logs seem to have a counter of some sort
2017/04/26 09:26:02 [36/177] Moving /slugs/images/56444861d9f496768c40100a0c11d0b7b27a622e9376664bef7e7725ff6b2188.json (7af3cf2a-0674-4126-beb4-f8169008403a, 563 bytes) from postgres to minio
2017/04/26 09:26:06 [37/177] Moving /ed89c17c-0073-44c3-a26b-7f94a533fcad-cache.tgz (50b49409-ac14-4b9d-934c-a1afbadb5d04, 130804657 bytes) from postgres to minio
2017/04/26 09:26:06 [38/177] Moving /slugs/images/4535971fd89b053b8b8805f14610d8eadefc8e3a2d4ecc178ec55d88045c5d45.json (c9ed9d61-deb6-48d3-aad0-0ff178c87706, 563 bytes) from postgres to minio

After 38 the command was finished. No exception. The /177 just made me curious if there is more that could be migrated. What does the /177 stand for?

Something is definitely strange. I started the command again:
flynn -a blobstore run /bin/flynn-blobstore migrate --delete
After some successful migration movement log entries the command just aborts. No error logs no nothing. Its just like I ctrl+c it, except I don't.

This could be the same as #4025, try:
flynn -a blobstore run --limits memory=2GB /bin/flynn-blobstore migrate --delete

Although experiencing the same behavior with --limits memory=2GB it definitely helped: the process was able to move 55 blobs this time. On previous attempts a max of around 20 moves were reached. Does the memory has to be bigger than the total size of all blobs to move?

BTW: After the blobstore process is aborted its state is marked as 'done':
$ flynn-host ps -a
flynn1-6c659665-b6c2-4a24-80b9-932af8c87ad2  done     7 minutes ago      blobstore

Also there are no logs to find for the given process id via flynn-host log $JOB_ID.

I ran the command again for the last 50 blobs with a limit of 4GB. According to htop the process reached a memory peek of 2.3GB which also explains why the previous execution with a limit of 2GB suddenly aborted.
Long story short: Printing an error when 'flynn run' runs out of memory (as you suggested) would be a great help.


DateTimezone attribute as string

Hi, i'm having strange problems with Monolog\Logger::addRecord.
Sometimes when i write a log system returns a fatal error:
Warning: DateTime::createFromFormat() expects parameter 3 to be DateTimeZone, string given in /var/www/<project>/vendor/monolog/monolog/src/Monolog/Logger.php on line 316

Fatal error: Call to a member function setTimezone() on boolean in /var/www/<project>/vendor/monolog/monolog/src/Monolog/Logger.php on line 320

No one extends the class or apply a reflection.
Project runs on php 5.6 with OPcache enabled
Thanks a lot

The problem was a misconfiguration of opcache (interned_string_buffer too low)


[video_player] Timed metadata support

Can you add the ability to handle metadata for m3u8 videos?
I need to implement live streaming functionality that will support timed metadata cues (via ID3 tags) to display ads or other content on a specific time.
As far as I understand we need to pass onMetadata callback from Android and metadataCollector from iOS

We're looking forward to this as well!


[Blob] Content-Encoding property missing from blob list items

Which service(blob, file, queue, table) does this issue concern?
blob
Which version of the Azurite was used?
v3.19.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
dockerhub or github (self build)
What's the Node.js version?
v14.17.0
What problem was encountered?
Some properties are missing compared to Azure in the blob items in the response for the blob list endpoint. E.g. Content-Encoding.
The API spec lists these properties as included.
This "inconsistency" with Azure causes a problem for e.g. minio azure gateway which expects Content-Encoding to be present.
Steps to reproduce the issue?

Run azurite with blob store enabled
Create a container (publicly accessible, for the sake of simplicity) and upload a file into it. E.g. an empty txt file.
Make a GET request to list the contents of that container
http://<IP_ADDRESS>:10000/devstoreaccount1/public/?comp=list&restype=container
Look at the properties.
To the same for a production blob storage account on Azure.
Compare the properties of the Blob item. Azure includes <Content-Encoding/> and <Content-Language/>.
Azurite does not.

Have you found a mitigation/solution?
I think the solution is somewhere in the XML serializer and/or the mapping for the BlobProperties. But that code is generated from the swagger specs (which I cannot find) with a private generator, as stated in the readme. I could explicitly add the properties empty/undefined in the listBlobHierarchySegment function. But they are removed somewhere in the serializer.

@roelarents
From the swagger spec in link
<Content-Encoding/> and <Content-Language/> are not required in the list blob responds. (only Etag and LastModified are required.)
So Azurite will only add them when they really have value.
We have discussed a similar issue for "Content-MD5" with server team before, and get :
"I think, empty element or absence of element should mean the same. Clients should be resilient while parsing XML response."
That issue is for JS SDK, and finally JSD SDK is fixed to handle this kind of responds.
So this looks a client issue which can't handle the absence of these optional properties.
Would you like to contact the client team to fix the client side?

Thanks for pointing to the swagger spec and the similar issue. You are right. So I'll close this issue. The client in question (minio azure gateway) unfortunately abandoned that functionality recently so I cannot change it there. But that's not your problem :). We'll find a workaround or other solution.


The implementation of the opendir function appears to be faulty.

#include <dirent.h>
#include <stdio.h>
#include <errno.h>

int main(int argc, char **argv) {
  DIR *d;

  char * target = ".";
  if (argc == 2) {
      target = argv[1];
  }
  struct dirent *dir;
  d = opendir(target);
  if (d) {
    while ((dir = readdir(d)) != NULL) {
      printf("%s\n", dir->d_name);
    }

    printf("errno: %d\n", errno);
    closedir(d);
  }

  return(0);
}

This is a source code first mentioned in wasmtime issues NO.2493.
My project files are as follows:
wasmtime-2493.zip
Steps to Reproduce
iwasm ls.wasm --dir=./testfolder -- testfolder | wc -l

The final result is 0. However, the execution result in wasmtime is 203.

@abc767234318 wasmtime supports passing --dir=xxx and -- arguments to wasm app, which are resolved as wasmtime's arguments but not app's, so here command:
wasmtime test.wasm --dir=./testfolder -- testfolder | wc -l
is equal to command:
wasmtime --dir=./testfolder -- test.wasm testfolder | wc -l
Note that it is a little tricky, not sure what it will occur if the wasm app also accepts --dir=xxx and -- as its arguments. And iwasm doesn't support these usages. The similar command for iwasm should be:
iwasm --dir=./testfolder test.wasm testfolder | wc -l
And the result is the same as the result of wasmtime.

@wenyongh Thank you very much for your answer. This is my mistake.


Sample gallery with extension type, Closes #219

🎯 Aim
Adding an extra filter to Sample gallery so that we can filter on the extension type. Filter can only be visible when extension type is selected 'Component Type'
📷 Result

✅ What was done

[X] Added Extension filter dropdown
[X] Added functionality so that extension filter is only visible when extension is selected in the Component Type dropdown
[X] Added filter functionality so that samples get filtered based on selected value in extension dropdown
[x] Added filter functionality so that samples don't get filtered when extensions dropdown has selected values  but extension is not selected in component type dropdown

🔗 Related issue
Closes: #219

Awesome 👏👏👏👏 I will review it ASAP 🤩
You Rock 😍

@nicodecleyre the implementation looks ok but when testing it locally it seems like it is a bit inconsistent with the rest of filters and some behavior is still buggy
Please check below recording for more context.
PR.test.mp4

it seems the selected extension type filter are not pointed out in the text box and the checkbox are not marked
the picked option are not shown in the tag below as other filters
when we 'clear all' the extension gets unselected but the extension type select gets not hidden

Thx @Adam-it, indeed a bit inconsistent like you said. Did a couple of changes and tested. Seems to work fine on my end.
Let me know if you find other bugs 🙏


Copy / paste toggles share the same foreign key and should be unique, so that lead to bugs and wrong behaviours

Hello, and first, thanks for your work!
Description
When you copy / paste a toggle, the pasted block is created with the same foreign key (fk), so is not unique, and that's leading to wrong behaviours, like wrong child items count, and toggling both of the blocks when you click on one of them.
Environment

Plugin version : "editorjs-toggle-block": "^0.3.5"
Editor.js version: 2.23.2
Plugins you use with their versions: "@editorjs/checklist": "1.3.0", "@editorjs/code": "2.7.0", "@editorjs/delimiter": "1.2.0", "@editorjs/editorjs": "2.23.2", "@editorjs/embed": "^2.5.3", "@editorjs/header": "2.6.2", "@editorjs/image": "2.6.2", "@editorjs/inline-code": "1.3.1", "@editorjs/link": "2.5.0", "@editorjs/link-autocomplete": "^0.0.0", "@editorjs/list": "1.6.2", "@editorjs/marker": "1.2.2", "@editorjs/paragraph": "2.8.0", "@editorjs/quote": "2.4.0", "@editorjs/raw": "2.3.0", "@editorjs/table": "2.0.1", "@editorjs/warning": "1.2.0",
Device, Browser, OS: Chrome Windows

Current behavior
As you can see, copy/pasted toggle blocks dont have unique foreign keys:
(so when I click on the first toggle, it open both of the toggles...)

But the biggest problem is for the items count, it seems to sum all the fk items, but as they are not unique, the count is wrong.
So here for example I have two toggles with one block inside (a paragraph), so the items count should be 1.
But because the toggles share the samed fk, the items count is 2...

Expected behavior
Any toggle block should have a unique foreign key
Additional context
Used in Strapi admin with https://github.com/melishev/strapi-plugin-react-editorjs
Thanks for your time!

Hi @maximelebreton, thanks for submitting this issue!
We'll review and notify you as soon as it is resolved.

Hi there, @maximelebreton 👋🏻 The bug was fixed in the version 0.3.10, thanks for reporting!
Thank you @juliansg022 for addressing this issue 👏🏻


Selected 3 Phases - only charging with 3.7 kW

Describe the bug
When connecting the vehicle ( C-class) - and selecting "Now" and "3-phases" - the vehicle is still charging with 3.7 kW.
Steps to reproduce

Connect the vehicle to the wallbox
Select 3 phases

...
Configuration details
network:
  # schema is the HTTP schema
  # setting to `https` does not enable https, it only changes the way URLs are generated
  schema: http
  # host is the hostname or IP address
  # if the host name contains a `.local` suffix, the name will be announced on MDNS
  # docker: MDNS announcements don't work. host must be set to the docker host's name.
  host: 192.168.1.xxx
  # port is the listening port for UI and api
  # evcc will listen on all available interfaces
  port: 7070

interval: 10s # control cycle interval

# database configuration for persisting charge sessions and settings
# database:
#   type: sqlite
#   dsn: <path-to-db-file>

# sponsor token enables optional features (request at https://sponsor.evcc.io)
sponsortoken: xxx

# telemetry enables aggregated statistics
#
# Telemetry allows collecting usage data (grid and green energy, charge power).
# Data is aggregated, no individual charging sessions are tracked. The collected,
# anonymous data can be retrieved using https://api.evcc.io.
#
# See https://github.com/evcc-io/evcc/pull/4343 or details.
#
# For time being, this is only available to sponsors, hence data is associated with
# the sponsor token's identity.
#
# telemetry: true

# log settings
log: debug
levels:
  site: error
  lp-1: error
  lp-2: error
  cache: error
  meter: debug
  db: error

# modbus proxy for allowing external programs to reuse the evcc modbus connection
# each entry will start a proxy instance at the given port speaking Modbus TCP and
# relaying to the given modbus downstream device (either TCP or RTU, RS485 or TCP)
modbusproxy:
  #  - port: 5200
  #    uri: solar-edge:502
  #    # rtu: true
  #    # readonly: true

# meter definitions
# name can be freely chosen and is used as reference when assigning meters to site and loadpoints
# for documentation see https://docs.evcc.io/docs/devices/meters
meters:
  - name: grid1
    type: custom # IR-Lesekopf Tasmota
    power:
      source: mqtt
      topic: test
      timeout: 3600s
      scale: 1
  - name: pv3
    type: custom
    power: # power (W)
      source: mqtt
      topic: test
      timeout: 3600s
      scale: 1

  - name: aux1
    type: custom
    power:
      source: mqtt
      topic: mercedes/test
      timeout: 3600s
      scale: 1
# charger definitions
# name can be freely chosen and is used as reference when assigning charger to vehicle
# for documentation see https://docs.evcc.io/docs/devices/chargers
chargers:
  - name: wallbox
    type: template
    template: go-e-v3
    host: <IP_ADDRESS> # IP-Adresse oder Hostname

  - name: poolwp
    icon: heatpump
    type: custom
    enable:
      source: mqtt
      topic: setHeatpump/enable
    enabled:
      source: mqtt
      topic: setHeatpump/enabled
    status:
      source: mqtt
      topic: setHeatpump/status
    soc:
      source: mqtt
      topic: setTemperature/temperature
    maxcurrent: # set charger max current (A)
      source: mqtt
      topic: setHeatpump/maxcurrent
    features:
     - integrateddevice
     - heating

# vehicle definitions
# name can be freely chosen and is used as reference when assigning vehicle to loadpoint
# for documentation see https://docs.evcc.io/docs/devices/vehicles
vehicles:
  - name: EQB
    type: template
    template: mercedes
    title: EQB
    capacity: 66
    user: user
    region: EMEA
    accessToken: xxxxxxxx
    refreshToken: xxx.xx
    vin: xxxx
    mode: pv

  - name: C-Klasse
    type: template
    template: mercedes
    title: C-Klasse
    user: xxxxx.com
    region: EMEA
    capacity: 24
    accessToken: xxxxx
    refreshToken: xx.xx
    vin: xxxx

# site describes the EVU connection, PV and home battery
site:
  title: Home # display name for UI
  meters:
    grid: grid1 # grid meter
    pv: pv3 #Theoretical PV Meter

  residualPower: # additional household usage margin
  prioritySoc: # give home battery priority up to this soc (empty to disable)
  bufferSoc: # ignore home battery discharge above soc (empty to disable)
  maxGridSupplyWhileBatteryCharging: # ignore battery charging if AC consumption is above this value
  smartCostLimit: # set cost limit for automatic charging in PV mode

# loadpoint describes the charger, charge meter and connected vehicle

loadpoints:
  - title: Garage # display name for UI
    charger: wallbox
    mode: minpv # charge mode (off, now, minpv, pv)
    enable:
        threshold: 0
        delay: 1m
    disable:
        threshold: 0
        delay: 1m
    guardduration: 2m
    priority: 2
    phases: 0

  - title: Pool
    charger: poolwp
    meter: aux1
    phases: 1
    mincurrent: 2 #Verbrauch ca. 500W
    maxcurrent: 5
    mode: pv
    priority: 1
    enable:
      threshold: 0
      delay: 10m
    disable:
      threshold: 0
      delay: 15m # Laufzeit mindestens 15 Minuten
    guardduration: 15m # Pause mindestens 15 Minunten
# tariffs are the fixed or variable tariffs
tariffs:
  currency: EUR # three letter ISO-4217 currency code (default EUR)
  grid:
    # either static grid price (or price zones)
    type: fixed
    price: 0.2506 # EUR/kWh

    # # or variable via tibber
    # type: tibber
    # token: "476c477d8a039529478ebd690d35ddd80e3308ffc49b59c65b142321aee963a4" # access token
    # homeid: "cc83e83e-8cbf-4595-9bf7-c3cf192f7d9c" # optional if multiple homes associated to account

    # # or variable via awattar
    # type: awattar
    # region: de # optional, choose at for Austria
  feedin:
    # rate for feeding excess (pv) energy to the grid
    type: fixed
    price: 0.08 # EUR/kWh
  planner:
    # planner tariff can be used for target charging if not grid tariff is specified
    # GrünStromIndex (Germany only) or ElectricityMaps provide CO2 intensity forecast

    type: grünstromindex
    zip: 753xx

    # type: electricitymaps
    # uri: <uri>
    # token: <token>
    # zone: DE

# mqtt message broker
mqtt:
  broker: <IP_ADDRESS>:1883
  topic:
  user: mqtt
  password: lalala

# influx database
influx:
  # url: http://localhost:8086
  # database: evcc
  # user:
  # password:

# eebus credentials
eebus:
  # uri: # :4712
  # interfaces: # limit eebus to specific network interfaces
  # - en0
  # certificate: # local signed certificate, required, can be generated via `evcc eebus-cert`
  #   public: # public key
  #   private: # private key

# push messages
messaging:
  events:
    start: # charge start event
      title: Charge started
      msg: |
        Wallbox {{.title}} started charging {{.vehicleTitle}} in {{ toString .mode | upper }} mode.
        --------------------------
        evcc Status {{printf `(%d-%02d-%02d %02d:%02d:%02d)` now.Year now.Month now.Day now.Hour now.Minute now.Second}}
        Netz-Leistung: {{round (divf .gridPower 1000) 3 }} kW
        Solar-Leistung: {{round (divf .pvPower 1000) 3 }} kW
        Eigenverbrauch: {{round (divf .homePower 1000) 3 }} kW
        {{if .batteryConfigured}}Batteriespeicher-Status: {{round (divf .batteryPower 1000) 3 }} kW ({{.batterySoc }} %){{end}}
    stop: # charge stop event
      title: Charge finished
      msg: |
        Wallbox {{.title}} finished charging {{.vehicleTitle}}
        with {{round (divf .chargedEnergy 1000) 2 }} kWh in {{.chargeDuration}}.
HomeAssistant Add-on
Nightly build

[X] I have verified that the issue is reproducible with the latest nightly build

Version
0.131.8

[lp-1 ] DEBUG 2024/12/02 17:28:35 charge currents: [15.7 0 0]A
Es wird nur einphasig geladen.
Es gibt kein Phasenumschalt-Kommando.
Das ist doch ein PHEV; kann der dreiphasig laden?


Adding Tether family to the list

I need to extract the private key of my Gold Tether (XAUT) wallet from a recovery phrase, so may I know if it could be possible to add the Tether family to the coin list?

For the first sight XAUT seems to be a token on the ETH chain. But the website says you have to have an account on their system for KYC purposes. What wallet are you using and why would such a centralized bank-like entity not help you getting to your assets?

My wallet is Trust Wallet. They provide only a recovery phrase for any account. I would like to use Tether and Gold Tether and extract their private keys.

Trust Wallet uses standard BIP44 derivation for its addresses. So most probably you can choose ETH as a coin and you will see the same addresses generated as in your wallet. I strongly suggest you to download bip39-standalone.html from https://github.com/iancoleman/bip39/releases/latest and enter your recovery phrase on an offline machine that you can wipe before it gets online again.

Yes, I found the private key. Thank you so much for your help.


Update to Rails 5

Rails 4 is still supported, but at some point we'll want to upgrade.

@awead I'm going to put this as an after PCDM.  We really need to get this code base into production.


Support for Visual Studio project files

I've created an npm module called csproj2ts that will interrogate a Visual Studio project file (.csproj or .vbproj) for its TypeScript configuration.  I propose updating grunt-ts to use this library to allow using the config inside a project.  Here is a minimalist gruntfile using this proposed functionality:
module.exports = function(grunt) {
  grunt.initConfig({
    ts: {
      default : {
        vs: 'myproject.csproj'
      }
    }
  });
  grunt.loadNpmTasks("grunt-ts");
  grunt.registerTask("default", ["ts"]);
};

This will allow a very smooth transition to using grunt-ts for users of Visual Studio.  The main benefit is that these users can simply use the Visual Studio TypeScript build properties UI to control how grunt-ts compiles their project.  Plus they get easy access to build configuration items not yet implemented in the Visual Studio UI (such as noEmitOnError).
The integration with Task Runner Explorer extension in VS 2013 should be really nice (see http://www.hanselman.com/blog/IntroducingGulpGruntBowerAndNpmSupportForVisualStudio.aspx).  Integration with Grunt is built-in to VS 2015, so no extension is required.
Another example (rest of file is same as above):
  default : {
        vs: {
            project: 'myproject.csproj',
            config: 'Release',  //or 'Debug', etc - the VS config to poll for settings.  Blank uses default.
            ignoreFiles: false, //if you prefer to only use the settings, you could set true
            ignoreSettings: false //if you prefer to only use the files, you could set to true
        }
      }

Details:
vs will not be usable with files.
Any settings in vs will be overwritten by any corresponding settings specified in the gruntfile; an exception is src which will be appended to.
Feedback welcome.  I am working on implementing this now.

:+1: you :metal:

This is PR #215.  Let's discuss there.  I will need some help.

Implemented in 4.0.0 and 4.0.1.