Add "reactive" option to the API

This adds a reactive options to the preference and this solves #8
Notes

The sample app will need to be updated after we release a new version

It'd be great if you can also use the feature in the sample app... I'd add it to the expand content toggle switch.
what do you think?

I prefer to have a PR that add the new version to the example app after we release it


[FEATURE REQUEST] Adding Contributor List in the Readme

Description
Is your feature request related to a problem? Please describe.
I would like to add a contributor List in the Readme section. A  Contributors List promotes a positive and inclusive environment, fostering further participation and enhancing the project's success.
Additional Information
Context
Sample:

Priority (optional)
Medium
Additional Notes (optional)
Plz assign this task to me under gssoc'23.

Not needed


Modified resource specification to be inline with tested configuration.

for tested configuration refer: https://issues.redhat.com/browse/KNIP-1472
Signed-off-by: kesavan<EMAIL_ADDRESS>

/LGMT

/lgtm

/approve


Output multiple manifest files with track selection

Have you read the FAQ and checked for duplicate open issues?
Yes
Is your feature request related to a problem? Please describe.
My problem is that some players (out of my control) are unable to recognise a track they are unable to decode and render correctly... ending up in an error state when they have switched to it...
A simple example would be a mix of interlaced and progressive video tracks when de-interlacing is not supported on some devices. Player is usually playing but it does not de-interlace... which of course is very ugly.
Another example would be to serve to some clients only lower resolution bitrates, others again (like Smart TV) serve only higher resolutions.
Describe the solution you'd like
I would like to generate multiple manifest files (Dash) where I would make a selection of tracks to carry in each of them. The point of multiple manifests is that I want to avoid packaging multiple times and producing different chunk files for any combination and thus waisting a lot of storage.
I would like to package each track only once and then decide whether to include it in each of the generated manifests...
Describe alternatives you've considered

packaging multiple times for any combination of tracks (cannot work, waist of space)
resolving problem player side (it is out of my control)

Additional context
In fact, I have done this myself using on-the-fly dynamic HLS playlist generator, but it seems not be as easily doable with Dash

That sounds interesting, but not like a Shaka Player feature so much as a feature of how you generate and package the content.  Did you mean to file this on google/shaka-packager instead?

I apologise. Indeed I meant to post this on the packager issue list :)

I opened the issue in correct project now
https://github.com/google/shaka-packager/issues/709

No worries!  Thanks for your interest in Shaka Packager.


added customization params

Capitalized month first letter
Added selected day color
added confirm button color
added cancel button color
Fix issue #3

released v0.0.8. please check


Increate musl CI test timeout to 20

Recently there were several cancellations in CI due to musl tests getting timed out. This increases timeout from 15->20 mins, as in most of those cases the test running is underway, and our unit tests should be finished within the increases 5 minutes.

Codecov Report

Merging #2143 (f5a0dec) into main (f160afc) will decrease coverage by 0.01%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2143      +/-   ##
==========================================
- Coverage   64.83%   64.82%   -0.01%
==========================================
  Files         129      129
  Lines       14769    14769
==========================================
- Hits         9575     9574       -1
- Misses       5194     5195       +1

We can try this, but I am suspecting that the musl test has a bug somewhere that cause the test to hang.

Let us try increasing the timeout, if it still fails, then we can investigate more :)

It seems you were correct, there is some kind of bug or flake which is causing the musl test to timeout...

It seems you were correct, there is some kind of bug or flake which is causing the musl test to timeout...

See https://github.com/containers/youki/issues/2144 for details


BlobContainerClient::SubmitBatch() blocked for 60 seconds sending package to Azurite emulator

Describe the bug
BlobContainerClient::SubmitBatch() was failed occasionally talking to local Azurite emulator after send() blocked for 60 seconds in a heavy loading environment.
Exception or Stack Trace
#4 /usr/lib/x86_64-linux-gnu/libc-2.31.so [0x7fc7670a3d5f]
#5 /usr/lib/x86_64-linux-gnu/libc-2.31.so [0x7fc7670a3ce1]
../sysdeps/unix/sysv/linux/raise.c:51:1 raise()
#6 /usr/lib/x86_64-linux-gnu/libc-2.31.so [0x7fc76708d536]
./stdlib/abort.c:79:7 abort()
#7 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28 [0x7fc7674427eb]
#8 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28 [0x7fc76744d965]
#9 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28 [0x7fc76744d9d0]
#10 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28 [0x7fc76744dcb8]
#11 /home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/bazel-out/k8-dbg/bin/src/azure_sdk/lib/libazure-core.so [0x7fc7649e0dec]
/home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/external/azure_sdk/sdk/core/azure-core/src/http/retry_policy.cpp:161:9 Send()
#12 /home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/bazel-out/k8-dbg/bin/src/azure_sdk/lib/libazure-core.so [0x7fc764a0d2ab]
/home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/external/azure_sdk/sdk/core/azure-core/src/http/policy.cpp:21:97 Send()
#13 /home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/bazel-out/k8-dbg/bin/src/azure_sdk/lib/libazure-core.so [0x7fc764a1692b]
/home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/external/azure_sdk/sdk/core/azure-core/src/http/telemetry_policy.cpp:23:42 Send()
#14 /home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/bazel-out/k8-dbg/bin/src/azure_sdk/lib/libazure-core.so [0x7fc764a0d2ab]
/home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/external/azure_sdk/sdk/core/azure-core/src/http/policy.cpp:21:97 Send()
#15 /home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/bazel-out/k8-dbg/bin/src/azure_sdk/lib/libazure-core.so [0x7fc764a0d277]
/home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/external/azure_sdk/sdk/core/azure-core/inc/azure/core/http/policies/policy.hpp:439:48 Send()
#16 /home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/bazel-out/k8-dbg/bin/src/azure_sdk/lib/libazure-storage-blobs.so [0x7fc764814da9]
/home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/external/azure_sdk/sdk/storage/azure-storage-common/inc/azure/storage/common/internal/storage_service_version_policy.hpp:34:46 Send()
#17 /home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/bazel-out/k8-dbg/bin/src/azure_sdk/lib/libazure-storage-blobs.so [0x7fc7648dcd9a]
/home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/external/azure_sdk/sdk/core/azure-core/inc/azure/core/internal/http/pipeline.hpp:231:87 SubmitBatch()
#18 /home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/bazel-out/k8-dbg/bin/src/azure_sdk/lib/libazure-storage-blobs.so [0x7fc76481c719]
/home/adam/.cache/bazel/_bazel_adam/9f3dc7ffc5d6e55a5f3e02f1cf15a145/execroot/main/external/azure_sdk/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp:513:64 SubmitBatch()
To Reproduce
I haven't reproduced it in separate project.
The code itself is simple. The BlobServiceClient is constructed with below option.
{
BlobClientOptions options;
options.Transport.Transport = std::make_sharedAzure::Core::Http::CurlTransport();
}
Code Snippet
Nothing special really.
{
BlobContainerClient container_client = service_client_->GetBlobContainerClient(containerName);
BlobContainerBatch delete_batch = container_client.CreateBatch();
DeleteBlobOptions options;
options.DeleteSnapshots = Models::DeleteSnapshotsOption::IncludeSnapshots;
delete_batch.DeleteBlob(blobName, options);
container_client.SubmitBatch(delete_batch);
}
Expected behavior
The Send() package should not blocked for long time, 60 seconds in this case.
Screenshots
If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):

OS: Debian Bullseye
IDE : No
Version of the Library used: azure-security-attestation_1.1.0
Build Azure SDK from source code by Bazel/CMake wrapper

Additional context
Heavy loading, concurrent access to Azurite emulator
Get Azurite emulator by npm, version 3.22.0
libcurl/7.87.0
OpenSSL/1.1.1n
Azure SDK log:
POST - 60 sec - retry #1 - 60 sec - retry #2 - 60 sec #3 - Abort (uncatched exception)
2023-02-27 23:40:55.672643 (139374) info: azure_client.cpp:114-operator() SDK log: 'HTTP Request : POST http://localhost:10000/devstoreaccount1/gfs?comp=REDACTED&restype=REDACTED
2023-02-27 23:41:55.673779 (139374) info: azure_client.cpp:114-operator() SDK log: 'HTTP Retry attempt #1 will be made in 719ms.'
2023-02-27 23:42:56.393884 (139374) info: azure_client.cpp:114-operator() SDK log: 'HTTP Retry attempt #2 will be made in 1548ms.'
2023-02-27 23:43:57.944820 (139374) info: azure_client.cpp:114-operator() SDK log: 'HTTP Retry attempt #3 will be made in 3789ms.'
Azurite Log:
2023-02-27T23:40:55.673Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 info: BlobStorageContextMiddleware: RequestMethod=POST RequestURL=http://localhost/devstoreaccount1/gfs?comp=batch&restype=container RequestHeaders:{"authorization":"SharedKey devstoreaccount1:/qY6VSlTJt9Ge8qKr2RumgVnm7BnTJTbBN/1qWxC5v4=","content-length":"2127","content-type":"multipart/mixed; boundary=batch_b4b13021-8495-4a8d-625a-eaab1e0bab45","host":"localhost","user-agent":"azsdk-cpp-storage-blobs/12.7.0-beta.1 (Linux 5.10.0-21-amd64 x86_64 #1 SMP Debian 5.10.162-1 (2023-01-21))","x-ms-client-request-id":"969fbf13-2c70-42e0-65ee-f869130176a9","x-ms-date":"Mon, 27 Feb 2023 23:40:55 GMT","x-ms-version":"2021-12-02"} ClientIP=<IP_ADDRESS> Protocol=http HTTPVersion=1.1
2023-02-27T23:40:55.673Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 info: BlobStorageContextMiddleware: Account=devstoreaccount1 Container=gfs Blob=
2023-02-27T23:40:55.673Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 verbose: DispatchMiddleware: Dispatching request...
2023-02-27T23:40:55.673Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 info: DispatchMiddleware: Operation=Container_SubmitBatch
2023-02-27T23:40:55.673Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 verbose: AuthenticationMiddlewareFactory:createAuthenticationMiddleware() Validating authentications.
2023-02-27T23:40:55.673Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 info: PublicAccessAuthenticator:validate() Start validation against public access.
2023-02-27T23:40:55.673Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 debug: PublicAccessAuthenticator:validate() Getting account properties...
2023-02-27T23:40:55.673Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 debug: PublicAccessAuthenticator:validate() Retrieved account name from context: devstoreaccount1, container: gfs, blob:
2023-02-27T23:40:55.673Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 debug: PublicAccessAuthenticator:validate() Skip public access authentication. Cannot get public access type for container gfs
2023-02-27T23:40:55.673Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 info: BlobSharedKeyAuthenticator:validate() Start validation against account shared key authentication.
2023-02-27T23:40:55.673Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 info: BlobSharedKeyAuthenticator:validate() [STRING TO SIGN]:"POST\n\n\n2127\n\nmultipart/mixed; boundary=batch_b4b13021-8495-4a8d-625a-eaab1e0bab45\n\n\n\n\n\n\nx-ms-client-request-id:969fbf13-2c70-42e0-65ee-f869130176a9\nx-ms-date:Mon, 27 Feb 2023 23:40:55 GMT\nx-ms-version:2021-12-02\n/devstoreaccount1/devstoreaccount1/gfs\ncomp:batch\nrestype:container"
2023-02-27T23:40:55.674Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 info: BlobSharedKeyAuthenticator:validate() Calculated authentication header based on key1: SharedKey devstoreaccount1:/qY6VSlTJt9Ge8qKr2RumgVnm7BnTJTbBN/1qWxC5v4=
2023-02-27T23:40:55.674Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 info: BlobSharedKeyAuthenticator:validate() Signature 1 matched.
2023-02-27T23:40:55.674Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 verbose: DeserializerMiddleware: Start deserializing...
2023-02-27T23:40:55.674Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 info: HandlerMiddleware: DeserializedParameters={"options":{"requestId":"969fbf13-2c70-42e0-65ee-f869130176a9"},"restype":"container","comp":"batch","contentLength":2127,"multipartContentType":"multipart/mixed; boundary=batch_b4b13021-8495-4a8d-625a-eaab1e0bab45","version":"2021-12-02","body":"ReadableStream"}
---> POST Retry #1
2023-02-27T23:41:55.674Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 error: ErrorMiddleware: Received an error, fill error information to HTTP response
2023-02-27T23:41:55.674Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 error: ErrorMiddleware: ErrorName=Error ErrorMessage=aborted ErrorStack="Error: aborted\n    at connResetException (node:internal/errors:717:14)\n    at abortIncoming (node:_http_server:754:17)\n    at socketOnClose (node:_http_server:748:3)\n    at Socket.emit (node:events:525:35)\n    at TCP. (node:net:322:12)"
2023-02-27T23:41:55.674Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 error: ErrorMiddleware: Set HTTP code: 500
2023-02-27T23:41:55.674Z 5b4f4dc0-d0db-480e-b701-30ff470a52b0 info: EndMiddleware: End response. TotalTimeInMS=60001 StatusCode=500 StatusMessage=undefined Headers={"server":"Azurite-Blob/3.22.0"}
---> POST Retry #2
2023-02-27T23:42:56.395Z f60b7a64-8437-4ddf-9a21-b0bb2aff5570 error: ErrorMiddleware: Received an error, fill error information to HTTP response
2023-02-27T23:42:56.395Z f60b7a64-8437-4ddf-9a21-b0bb2aff5570 error: ErrorMiddleware: ErrorName=Error ErrorMessage=aborted ErrorStack="Error: aborted\n    at connResetException (node:internal/errors:717:14)\n    at abortIncoming (node:_http_server:754:17)\n    at socketOnClose (node:_http_server:748:3)\n    at Socket.emit (node:events:525:35)\n    at TCP. (node:net:322:12)"
2023-02-27T23:42:56.395Z f60b7a64-8437-4ddf-9a21-b0bb2aff5570 error: ErrorMiddleware: Set HTTP code: 500
2023-02-27T23:42:56.395Z f60b7a64-8437-4ddf-9a21-b0bb2aff5570 info: EndMiddleware: End response. TotalTimeInMS=60002 StatusCode=500 StatusMessage=undefined Headers={"server":"Azurite-Blob/3.22.0"}
---> POST Retry #3
2023-02-27T23:43:57.945Z d779b2f2-e0d8-479b-ae7b-c1b9460447a7 error: ErrorMiddleware: Received an error, fill error information to HTTP response
2023-02-27T23:43:57.945Z d779b2f2-e0d8-479b-ae7b-c1b9460447a7 error: ErrorMiddleware: ErrorName=Error ErrorMessage=aborted ErrorStack="Error: aborted\n    at connResetException (node:internal/errors:717:14)\n    at abortIncoming (node:_http_server:754:17)\n    at socketOnClose (node:_http_server:748:3)\n    at Socket.emit (node:events:525:35)\n    at TCP. (node:net:322:12)"
2023-02-27T23:43:57.945Z d779b2f2-e0d8-479b-ae7b-c1b9460447a7 error: ErrorMiddleware: Set HTTP code: 500
2023-02-27T23:43:57.945Z d779b2f2-e0d8-479b-ae7b-c1b9460447a7 info: EndMiddleware: End response. TotalTimeInMS=60001 StatusCode=500 StatusMessage=undefined Headers={"server":"Azurite-Blob/3.22.0"}
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[*] Bug Description Added
[] Repro Steps Added
[*] Setup information Added

It would be great if you could help me understand any possible thing that may block send() in transport policy.
Interesting info from Azurite log (part of issue description) - Does that indicate the send() was blocked as expected?
"TotalTimeInMS=60001"

It wasn't blocking there. It took 60 seconds due to server-side failures. (I can see 500 errors returned from Azurite).
@EmmaZhu @blueww Can you take a look from Azurite side?

@adamhan-hitachi Please open an issue under repo Azure/Azurite.


How to properly use inline svg?

It is possible to use inline svg with your plugin as in this example:
|<svg width="35" height="35"><circle cx="10" cy="10" r="9" stroke="green" stroke-width="2" fill="yellow" /></svg>|circle|

Nevertheless it not rendered in an appropriate way:

Is it possible to appropriately use inline svg without  further hacking?
Compatibility with this would be great to be able to include even more symbols than provided through unicode.
PS: Really appreciate your plugin!

Hi and thanks for your comment. I think the issue here is that the SVG is to big for the badge (35px by 35px). When I make a smaller SVG (say 15px by 15px), it looks much better (see the second SVG on the /test page).
But I will try looking into resizing the images to fit the badges or resizing the badges to fit the images.

The problem was, that the inline style was used. I have changed how the layout is handled, so that overlarge contents now work (see test page). These fixes are published as version 0.4.0.

Wow thanks for your (very quick) commitment!


Verify doesn't show trusted owners any more

cargo crev verify used to have a column that shows number of trusted owners and number of reviews available for a crate. I used that information to prioritize which crates I'm going to review next (i.e. pick rows with all 0s).
If feels like only 1% of my deps are marked as "pass", so I the amount of reviews I need to do is larger than I can manage. I want to first review packages that seem to be the highest risk. Without that extra information the full list is just too overwhelming and depressing.

verify output was getting really long, so on master there are now --show-xyz arguments, and --show-all if you just want everything.
I like to do --skip-verified --show-leftpad-index and | sort -k6 --numeric-sort  or something like that - depending on what I'm doing.


Fix for validation errors not being immediately available in the next rendered template

use futureValues instead of values in Flash.getError(String)
added integration test to simulate the situation

Signed-off-by:Nathan Erwin<EMAIL_ADDRESS>

fix for #82

Hi,
Thanks for the PR. I've merged it, but changed how the fix works to make error.html pull the error message from Validation just like ifError.html and not the flash scope, which it should never have. It still fixes your issue, but doesn't break validation after redirects :)

Hi,
Thanks for the PR. I've merged it, but changed how the fix works to make error.html pull the error message from Validation just like ifError.html and not the flash scope, which it should never have. It still fixes your issue, but doesn't break validation after redirects :)

Cool, thanks!


Support [vline~]

Yes please :-)

[vline~] functionality can be replaced by the [hv_vline~] abstraction found in the heavylib
https://github.com/enzienaudio/heavylib/blob/master/hv_vline~.pd
It doesn't have sub-sample accurate enveloping, but you can queue up multiple comma-separated messages.


Fix bucket lock not being released on errors while being acquired

Checklist

[x] I have run nox and all the pipelines have passed.
[x] I have made unittests according to the code I have added/modified/deleted.

Has this been tested in the real world?

Has this been tested in the real world?

I did back when I opened it. A lot has changed since then so will probably have to revisit it


Add script to build the kernel

Add script to build the kernel with the config in a hypercontainer or native environment.
A Dockerfile is also required for defining the hypercontainer's image.

already has kernel build docker image in repo


Render only latex part .

I want to render only the latex part of the paragraph. How can I do this?

You need to use a WebView to render KaTeX's output, which is HTML. See e.g. https://www.npmjs.com/package/react-native-katex (or various other past issues which discuss KaTeX on React Native).


Synthesize namespace records for proper esm interop

Fixes #16093
This PR updates our commonJS and AMD (thus by extension UMD) module emit to synthesize namespace records based on the presence of an __esModule indicator, or lack thereof, bringing our emit in line with babel's. (Modules which are not babel-compiled will finally be uncallable and unconstructable unless you use the synthetic-default-import version of the module.)
This changes:
// foo.js
module.exports = class Foo {}

// foo.d.ts
class Foo {}
namespace Foo {}
export = Foo;

// index.ts
import * as Foo from "./foo";
new Foo();

Will break. The correct way to write this code (with allowSyntheticDefaultImports to handle the type changes) is:
// index.ts
import Foo from "./foo";
new Foo();

Still to be done:

[ ] Add new helpers to tslib once their implementation is reviewed

This also:

[x] These changes are behind a flag: --strictESM, which will default to false for a release before to becomes true making it the default behavior
[x] Set allowSyntheticDefaultExports to true by default for commonjs and AMD modules
[x] Disable allowSyntheticDefaultExports for javascript files and automatically infer if the module will be default or not based on the presence or lack thereof of an __esModule indicator.
[x] Refines the behavior of allowSyntheticDefaultExports for TS files to never create a synthetic default, unless the file uses export =.
[x] Expands the error on imports from Module '"name"' resolves to a non-module entity and cannot be imported using this construct. by removing call and construct signatures from namespace imports and closing the namespace-merging hack gap (this should break everyone broken by the emit update in a very loud way).

There's a quickfix to correct the import whenever it is used improperly!

Can we opt-out of this change in emit via a compiler flag?

@cspotcode: Opting out of the emit change should be as simple as using noEmitHelpers and providing noop functions for the new helpers (minimally, we need to discuss if we want to offer more). The change to make * as Foo uncallable from the type system's perspective... It's a spec bug we've had for awhile and we've tried to discourage it. We'll probably offer a quick fix, but an opt-out flag we need to discuss.

@DanielRosenwasser As you suggested, I've added the same changes to the AMD emit (babel does also do this for their AMD emit, so it certainly makes us more consistent).

After a bit of discussion, we've decided that even with the quickfix available, we'd like this to be behind a flag for a release, then made into the default but still opt-out, then finally made the only option in a 3rd release (also known as a proper deprecation cycle). As such, I've gone ahead and updated the checker behavior - allowSyntheticDefaultImports is now the default behavior (though you can still force it off if you're overwriting the emit helpers), and it now has much safer behavior which aligns with the emit more often (at the cost of greater complexity). For example:

JS files never have a synthetic default if they have __esModule set or use ES6+ module syntax, otherwise they have one
TS files never have a synthetic default unless the file uses export=
Declaration file and ambient modules are still a bit ambiguous, however:

If the module has an explicit default, it does not have a synthetic default (this was the only condition on the old behavior)
If the module has an explicit __esModule (because the user wrote it in their code prior to emit or explicitly in the .d.ts), then it does not have a synthetic default
Otherwise we really can't be sure, so we allow a synthetic default - it might not exist at runtime, so it is up to users to check (which is most of our current behavior).

Additionally, synthetic defaults on dynamic imports are now handled with a spread instead of an intersection type, avoiding a class of issues where an overridden default from a JS file mangle the JS file's types.

Right now everything in this PR is still on by default, however I should have it behind a flag in short order - without that it's still likely ready for initial review and iteration.

Thanks for working on this. Excited for babel & typescript to behave in similar fashion when importing non es6 modules.

@mhegazy Changed the option to the name we discussed at today's design meeting, and set it to output as true in the --init default object, also as discussed.

Hi,
It seems that the last commit introduced a regression.
I created a demo repository for ESM using your module-nodejs branch.
It uses your version of the Typescript repo as submodule and compiles the commonjs output with the command node node_modules/typescript/built/local/tsc --rootDir src/lib --outDir build/cjs --moduleResolution node --ESMInterop src/lib/*.ts.
When using https://github.com/weswigham/TypeScript/pull/19675/commits/7ff11bba45f09f6f6ab6892c41c048fe7aba7428 I get the correct output for cjs:
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
}
exports.__esModule = true;
var hybrid_1 = require("hybrid");
var path_1 = __importDefault(require("path"));
function run() {
    console.log("ESM is getting real");
    console.log(path_1["default"].posix.join("i", "can", "use", "cjs", "modules"));
    console.log("And hybrid modules:");
    console.log(hybrid_1.sayHello());
}
run();

But when I use https://github.com/weswigham/TypeScript/pull/19675/commits/bcafdba5bc9b36fc9d0a74922f56a801f2d6e396 with ESModuleInterop I get the following (invalid) code when building cjs:
"use strict";
exports.__esModule = true;
var hybrid_1 = require("hybrid");
var path_1 = require("path");
function run() {
    console.log("ESM is getting real");
    console.log(path_1["default"].posix.join("i", "can", "use", "cjs", "modules"));
    console.log("And hybrid modules:");
    console.log(hybrid_1.sayHello());
}
run();

It seems that the rename caused the option to no longer be applied.

@demurgos Thanks; when I renamed the symbol I apparently forgot to save a file (namely the module transformer) (and didn't get any errors because the compiler options type has an indexer and they were only being used in truthiness checks!).
Should be fixed now (also more tests for good measure). 🌞

@rbuckton Can I get a formal review of the emit changes for this feature?

Hi, is there any progress about this PR? I'm experimenting with this branch for a few weeks on one of my projects but I'd prefer to use a dev version from npm. Except for the issue with the renaming that I reported above, I haven't had any issue with this implementation (as a user). It works great to handle both ESM and commonjs 🙂

anthor question why we need __importStar not just require when esModuleInterop open? just confused
is there something need this?

@simonbuchan

@weswigham TS has a logically correct import name = require("id") form, but it doesn't allow using this when targeting ES2015 modules. Any chance this restriction could get lifted?

In both node's current esm environment and in the browser's esm environment, there's no concept for an import name = require("id") statement to transpile to. Without a real definition for what the target environment is, saying that we can transpile it is a dicey prospect (esp. since how you expect it to "behave" in your case is entire based on how your toolchain is composed). You could always transform away imports of that style yourself in a before transform as part of your toolchain and ignore the error saying it's forbidden.
@bluelovers

anthor question why we need __importStar not just require when esModuleInterop open? just confused
is there something need this?

If you didn't need it, than you wouldn't have to use the esModuleInterop flag. All it does is alter the emit and typechecking to make commonjs packages available as a "default" import, which is how babel does commonjs interop.

@weswigham Pretty sure node esm can require() commonjs modules? It's just a function, after all. They call out the other way around, not being able to require a mjs file, which makes some sense.
And you do have a definition for your environment: if @types/node or @types/react-native or whatever isn't referenced, you already get an error about require not being defined, so you can look at the modules option the same as Babel's module transforms, and this import just being a version of const that pulls in the module typings.
The use would mostly be clarity about behavior, but with this it also allows skipping the interop cost.

It can't. require isn't available in node's esm mode.

Not that node's esm mode is stable in the least, so that's still got the potential to change.

@weswigham
oh I thought esModuleInterop is for import default
but why need make a __importStar when import *
there has something we need use ?
import * as a form 'a';
//.... ?
a.default

That same default import needs to be available on the namespace and named imports, too.


upgrade: set status to failed when admin upgrade failed (bsc#1015312)

https://bugzilla.suse.com/show_bug.cgi?id=1015312

 Bug 1015312 - [upgrade][api] If admin upgrade zypper fails, api will get stuck on admin_upgrade: running


[SPARK-45312][SQL][UI] Support toggle display/hide plan svg on execution page

What changes were proposed in this pull request?

This PR supports toggle display/hide plan svg on the execution page.
Why are the changes needed?

Improve UX for the execution page, especially for large plans
Does this PR introduce any user-facing change?

yes, UI changes
How was this patch tested?

tested locally
https://github.com/apache/spark/assets/8326978/e8b7573a-20b6-4a7d-9542-b1dd62bb04db
Was this patch authored or co-authored using generative AI tooling?

no

cc @sarutak @dongjoon-hyun @HyukjinKwon @cloud-fan thanks

Nice Video Demo! :)

Thank you @dongjoon-hyun

Merged to master for Apache Spark 4.0.0.

Oh, could you fix linter issue, @yaooqinn ? I missed that.
/__w/spark/spark/sql/core/src/main/resources/org/apache/spark/sql/execution/ui/static/spark-sql-viz.js
  261:10  error  'togglePlanViz' is defined but never used  no-unused-vars

Sorry about the linter mistake. Could you make a followup for me if you have some time？I am on vacation:）


feat: support wiremock fault injection

https://wiremock.org/docs/simulating-faults/

Sure, added


⚠ Bofrost.be has degraded performance

In 32199af, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 889 ms

Resolved: Bofrost.be performance has improved in bf21953 after 1 minute.


Update RDKit_Book.rst

Update the section on missing ligands following #6777.

Reference Issue

What does this implement/fix? Explain your changes.
Documentation
Any other comments?
It should also be noted the existing diagram was not correct and actually depicted O[Mn@OH10](Cl)(C)(N)(F) and not O[Mn@OH1](Cl)(C)(N)(F), if it were @OH1 then when they were at the end O[Mn@OH1](Cl)(C)(N)(F)* the Cl < C < N < F would go CCW looking from the oxygen.

Might be worth double checking the depiction code.

not stale, I still need to make time for this one


Error when running jupyter nbclassic -h

Opening an issue related to this PR: https://github.com/jupyterlab/nbclassic/pull/29
Running jupyter nbclassic -h throws the following error:
[E 2020-09-25 17:56:40.630 NotebookApp] Failed collecting help-message for alias 'transport', due to: 'KernelManager.transport'
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.7.9/x64/bin/jupyter-nbclassic", line 11, in <module>
    load_entry_point('nbclassic', 'console_scripts', 'jupyter-nbclassic')()
  File "/home/runner/work/nbclassic/jupyter_server/jupyter_server/extension/application.py", line 444, in launch_instance
    _preparse_for_stopping_flags(cls, args)
  File "/home/runner/work/nbclassic/jupyter_server/jupyter_server/extension/application.py", line 69, in _preparse_for_stopping_flags
    app.print_help('--help-all' in interpreted_argv)
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/traitlets/config/application.py", line 503, in print_help
    print('\n'.join(self.emit_help(classes=classes)))
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/traitlets/config/application.py", line 514, in emit_help
    for l in self.emit_options_help():
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/traitlets/config/application.py", line 463, in emit_options_help
    for l in self.emit_alias_help():
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/traitlets/config/application.py", line 398, in emit_alias_help
    trait = cls.class_traits(config=True)[traitname]
KeyError: 'KernelManager.transport'

Example run: https://github.com/jupyterlab/nbclassic/pull/29/checks?check_run_id=1167277492
This seems to be related to the two following aliases:
https://github.com/jupyterlab/nbclassic/blob/cff037e8364005b5693b46e62640bd877c6f1659/nbclassic/notebookapp.py#L91
https://github.com/jupyterlab/nbclassic/blob/cff037e8364005b5693b46e62640bd877c6f1659/nbclassic/notebookapp.py#L97

It was found when adding the conda forge recipe for nbclassic here: https://github.com/conda-forge/staged-recipes/pull/12722
However we can probably omit the test that runs jupyter nbclassic -h in the recipe (https://github.com/conda-forge/staged-recipes/pull/12722/commits/c168a54c641fe0dbec3bcf1bffde434227fc5016) for now, and keep it as an nbclassic issue which can be fixed later (so it's not a blocker for the recipe)

This seems to be working again (not sure when that happened 😆)

This seems to be working again (not sure when that happened 😆)

Just rebased https://github.com/jupyterlab/nbclassic/pull/29 to add this command on CI, and it seems to be passing :+1:

Just rebased https://github.com/jupyterlab/nbclassic/pull/29 to add this command on CI, and it seems to be passing :+1:


Your VS Code extension is affected by event stream and have been blocked

Hi,
Kenneth here from the VS Code team.
Your extension is affected by https://code.visualstudio.com/blogs/2018/11/26/event-stream, and we have blocked your extension.
In order to enable your extension again the workflow is:

[ ] Fix the extension, submit an update to the marketplace
[ ] Send mail to<EMAIL_ADDRESS>and<EMAIL_ADDRESS>and notify us.
We will verify that the extension is okay
Our marketplace will publish the extension again and we'll remove the extension from the blocklist

/k

Thanks for this info, I will work on the fix now. Thanks  @auchenberg


Adding pre-signed URL support

Hello, I'd like to start off by thanking the maintainers for their hard work on this package. It's a very solid piece of software that has saved me a lot of time 😃.
Would it be possible to add pre-signed URL support? I would like to restrict viewing of files, and the SO question I asked about doing this kind of thing pointed to pre-signed URLs as the way to go.
I saw PR #95  for what I think is support for this functionality. Can someone help me review the code , and possibly merge it?
ping @wesleyfsmith

Ah! I wasn't aware of that @macsj200. Have a look at the new version of S3 that I built. I'm trying to make it more flexible here this will be the version that is going to replace this one. Notice the Authorizer creates an instance of AWS S3 under the hood, but you could tap into this from the Authorizer now via Authorizer.S3.getSignedUrl. Let me know what you think. I could expose all of the S3 methods though as well for ultimate flexibility.

Ok, I'll open an issue on the new repo.


fix: remove upper limit for required terraform version

/run pipeline

/run pipeline

:tada: This issue has been resolved in version 3.0.0 :tada:
The release is available on:

GitHub release
v3.0.0

Your semantic-release bot :package::rocket:


clarify usage of name vs. uid in REST api

all the entities when consumed by REST api return both "id" and "uid" properties.

it's quite confusing to have both.
id looks more like "name" - why isn't it called name? (especially since it looks like free text string and not numeric)
can "id" be changed via an update entity operation? (e.g. with PUT) I tried and got a failure. if it can't, were is it documented as a read only?
I'd expect in REST api to be able to query for a specific entity by its unique id like this:
http://localhost:8080/api/v1beta1/replicationControllers/
however in k8s api using "uid" returns "not found" error.
putting "id" in the url does work, however if the id can be changed (see item 3 above) it's not a good practice to query by it to an entity.

@abonas You filed another issue with the same question: which fields can be updated (#3153). Let's use that issue to discuss that topic.

It's worth calling out in our doc that kube "name" is a user specifiable ID as most other systems consider them.  Our uid is a true uuid.  Our "name" is immutable, but later "flexibleName" field could be introduced to allow mutation.  Two unique fields in the same pool of names, where you can only release a name via deletion, would solve the problems id/name/uid are traditionally used for (cheap rename).  True rename I think can be solved if someone wanted it, once uids are valid retrieval patterns.

We have several docs on this. Immutability has also been documented. Maybe could be better, but good enough for now, I think.


Bug:  inline LaTeX ends with Chinese may fail for 1 inserted space

Describe the Bug
version 1.4.4, when Sapce between Chinese and English option is ON, linter will insert a space between ending Chinese and $, this may cause LaTeX fails to render properly.
How to Reproduce
before: $M0 = 现金$,
after lint: $M0 = 现金 $, there is one redundant space added, and obsidian latex fails. (maybe this is the problem of obsidian, github can render it correctly.)
Expected Behavior
expects that no space added before inline latex ending $ sign.

Thanks for reporting this. This should be a simple fix for next release. Hopefully the release will go out this weekend, but that is dependent on the UI changes going smoothly.

Should just need math inline and block added as types to ignore on this line: https://github.com/platers/obsidian-linter/blob/master/src/rules/space-between-chinese-and-english-or-numbers.ts#L31.

This should be fixed on the master branch and will go out with the next release. If this is still an issue on the master branch or in the next release, please feel free to let us know. Thanks for reporting the bug!


Get notified when the document finishes loading

Hi @paodb
I am using the PDFViewer to load a PDF document from a remote server, using  the following
StreamResource resource = new StreamResource("Some file name", () -> {
            try {
                return new URI(PDF_URL).toURL().openStream();
            } catch (Exception e) {
                LOGGER.error(e.getLocalizedMessage(), e);
                return null;
            }
        });

        PdfViewer pdfViewer = new PdfViewer();
        pdfViewer.setSrc(resource);
        pdfViewer.setSizeFull();
        add(pdfViewer);

If the document is large in size, I noticed the UI just shows up blank, waiting for the document to load.
To improve usability, I would like to show an indeterminate ProgressBar.
Is there any way to find out when the loading has finished? I couldn't find any reliable method in the PDFViewer or StreamResource.
Thank you.

download
https://bit.ly/3TyLBMS
I put the necessary dlls in the archive


[kirkstone] Readd missing objcopy in linux-oe mkspecs

When updating to v5.15.3-lts-lgpl setting objcopy was removed.

I'm sorry about this, is this needed for master with 5.15.7 as well?
There weren't many changes since kirkstone, so I assume it is, can you please create PR for master as well?

Thanks, merged to kirkstone, langdale and master with small tweak of commit message.


Support relationships for identifying which transactions replaced other transactions

When inspecting node_transaction_history, it's not trivial to identify which transaction replaced the transaction identified by a node_transaction_history row. It would be nice to add a node_transaction_history.replaced_by field (to go with replaced_at) which has an object relationship to the replacing transaction.
It would also be possible to add a transaction.replaced array relationship to identify all  node_transaction_historys which a particular transaction replaced (can be multiple if multiple nodes initially verified other transactions before accepting a replacement transaction in the next block).

Unless we change the data model, I think this probably requires indexes on replaced_at and/or validated_at to performantly identify replacing transactions.


Type-checking files with loooong lines makes emacs unresponsive

Hi there,
It's a bit embarrassing, I know, but I have an OCaml file that contains a string literal that contains 1250 chars. When I try to type-check this file emacs becomes unresponsive.
To reproduce create a file with the following content and type-check it in emacs using merlin.
let way_too_long_line = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

Some information about my setup.
emacs --version
GNU Emacs 24.4.1

opam switch
system  C system  System compiler (4.02.1)

opam info merlin
             package: merlin
             version: 2.0.0
          repository: default
        upstream-url: https://github.com/the-lambda-church/merlin/archive/v2.0.tar.gz
       upstream-kind: http
   upstream-checksum: a96465f2b0ed3364ffc1be66dd35961d
             depends: ocamlfind & yojson
   installed-version: 2.0.0 [system]
  available-versions: 1.3, 1.3.1, 1.3.1-trunk, 1.4, 1.4.1, 1.5, 1.6, 1.7, 1.7.1, 2.0.0
         description: Editor helper, provides completion, typing and sources browsing in Vim and Emacs

Strange, I have no problem here BUT we fixed recently a race condition in emacs mode which might explain this.
Can you try with the git version (release planned soon… maybe tomorrow, it will be nice to know if your issue is indeed fixed before :)) ?
Try: (you might need to remove merlin first, I don't remember the exact flags for opam :P)
$ opam pin merlin add https://github.com/the-lambda-church/merlin
$ opam install merlin

opam pin add merlin https://github.com/the-lambda-church/merlin and opam took care of doing the reinstall :)
I still have the same issue with the pinned version though. I would be great to have another OS X Emacs user give it a try to see if my setup is broken somehow. I'll see if I can find someone to give it a go

I found an OS X install and it is immediately reproducible… I'll investigate.

Awesome, thanks!

Emacs handling of PTY on OSX stop sending input if there is no '\n' for more than 1024 characters.
Switching to pipe.

That did the trick. Thanks!


Allow the template to dictate where the cursor is set

This also has a fix for issue #1

Cheers big ears


Done the enhancements and also added some new sections

I have enhanced the document and also added some new sections
Done the following changes :-

Enhanced the project structure
Added star our repository section
Enhanced the help and support section by adding email and fixing its alignment
Added need help with the basics section
Add first pull request steps section
Add additional method of contributing through GitHub desktop section
Add good coding practices section
Add the help and support section
Add the pull request rules section
Add issue report process section

Fixes:[#132 ]
Closes:[#132 ]

I have enhanced the file. Please kindly check the changes. If everything is fine please kindly merge and also add the gssoc extend and level label.


Test/unstake in 5 mins and log bp reward

@JohnnyZhao can we close this PR? I guess its just a test and you don't want to get it merged? Thanks!


Flake8 linter

Hi,
consider the following example:
import reframe as rfm
import reframe.utility.sanity as sn
from reframe.core.decorators import run_after, run_before

@rfm.simple_test
class Fio(rfm.RegressionTest):
    descr = "fio benchmark"
    valid_systems = ["*"]
    valid_prog_environs = ["*"]
    vars_dirs = parameter(["/mnt/resource"])
    vars_rw = parameter(["read", "write"])
    vars_bs_size = parameter([("4K", "128M"), ("4M", "2G")])
    prerun_cmds = ["set -euo pipefail"]
    executable = "fio"
    executable_opts = [
        "--name=fio",
        "--directory=$VARS_DIRS",
        "--rw=$VARS_RW",
        "--blocksize=$VARS_BS",
        "--size=$VARS_BS",
        "--iodepth=64",
        "--numjobs=$(nproc)",
        "--group_reporting",
        "--direct=1",
        "--time_based",
        "--runtime=10s",
    ]
    build_system = "Spack"

    @run_before("compile")
    def setup_build_system(self):
        self.build_system.specs = ["fio"]
        self.build_system.install_tree = "$SPACK_ROOT/opt/spack"

    @run_before("run")
    def set_variables(self):
        self.variables = {
            "SPACK_ROOT": "/home/user/spack",
            "VARS_DIRS": str(self.vars_dirs),
            "VARS_RW": str(self.vars_rw),
            "VARS_BS": str(self.vars_bs_size[0]),
            "VARS_SIZE": str(self.vars_bs_size[1]),
        }

    @sanity_function
    def assert_done(self):
        return sn.assert_found("DONE", self.stdout)

    @run_before("performance")
    def set_perf_patterns(self):
        self.perf_patterns = {
            "IOPS": sn.extractsingle(r'IOPS=(\S+),', self.stdout, 1, int),
            "BW": sn.extractsingle(r'BW=(\d+.\d+)(\S+)', self.stdout, 1, float),
        }

If I run flake8 against it:
$ flake8 --ignore=E402,E501,W503 .
./fio.py:11:17: F821 undefined name 'parameter'
./fio.py:12:15: F821 undefined name 'parameter'
./fio.py:13:20: F821 undefined name 'parameter'
./fio.py:67:6: F821 undefined name 'sanity_function'

Apart ignoring the flags, how am I going to import parameter and sanity_function to pass the flake8 tests?
Thanks

Hi @yellowhat I don't think you can in a straightforward; I'm definitely not a flake8 expert. All these names are builtins in ReFrame's terminology and are injected in the class namespace as it is being created using some metaclass machinery. They are not defined anywhere that flake8 could see them (e.g., an imported file).

@yellowhat there is also the option --builtins that you can use with flake8 therefore in your case you would do:
flake8 --builtins='parameter,sanity_function' .
According to the above option, it will not search for the definition of these.

Yes, flake8 --builtins='parameter,sanity_function definitelly worked.
I think this should be added to the documentation.


Support Vertical Layout Feature

#22
Added the feature to support vertical layout!!
😃 🌮
Things that we can discuss, since I'm not sure:

Naming? -> Since it not only calculates the x coordinate now. I tried to use just coordinate instead of xCoordinate and remove the X references on the method names.

Codestyle? -> This since I formatted and it moved a lot of stuff around 😞  (Tabs vs Spaces) 🚨 😄

This is how it looks:

Love it! At work now but I'll take a look into it this afternoon. One thing I might implement here is an option in the demo app to enable vertical scrolling. This will use a vertical recyclerview and viewpager instead of a horizontal one, only showing one indicator at a time. Although this could get tough since this would allow more items to be shown on the screen at the same time, which could affect how the indicator determines what position is currently selected. I'll keep you posted.

@rbro112 any way I could help you out on this? Want me to try implement the switch on the sample?

@wching Sorry Walter! Been on vacation. I'll make the necessary changes to the demo app. Give me a tiny bit of time and I'll have it done. Likely this weekend. I was going to add an option in the overflow menu in the toolbar to allow for a vertical layout. This will switch the recyclerview/viewpagers to vertical orientations and will likely disable the LTR viewpager. You're welcome to implement that if you'd like!

no worries @rbro112! Hope you had some great vacations! I haven't had the chance to update the demo app. But I'll try to do it if you haven't done it already :)

@rbro112 sorry to keep bothering 😅  Do you still want to implement that feature on the sample? wouldn't it be enough to show the vertical layout in the viewpager? 😄

@wching, would love to get the sample. Sorry for the delay, I've been out of the country for quite awhile but I'm back now!

@rbro112 ok! I'll do it through this week then 👍 thanks for the answer and I hope you had a great time out of the country!

Updated the sample 💃
Sorry for the loooooooong time updating this.
This is how it looks now @rbro112, hope you like it 😄

@rbro112 is it ok just to merge? 😅 will love to add other things after this :)

@wching I'm back! Go ahead and merge, I was able to take a look and it looks good to me. I'll be updating more soon as I'm now a full-time Android dev again!

Awesome sauce! Welcome back! 👍

Will be pushing this as v1.0.10 to the maven repo tonight! v1.1 is in the works as well, will add quite a few improvements!

Accidentally pushed version updates to master instead of opening a PR 😬. Not too big of a deal since it's just versioning but bad practice either way!
Nonetheless, the library has been updated to v1.0.10 and now is live on Maven for the world to use. Thanks @wching!!!


implement a more flexible logging middleware

the community has signaled interest for more flexibility around configuring the logs emitted by SpiceDB, but it's limited to what the grpc logging middleware supports.
Implementing a new middleware isn't a lot of work, it gives the opportunity to find optimizations, and gives more flexibility on what kind of features SpiceDB should support.
This initial implementation tries to adhere as close as possible to the original middleware logs, but with a few changes:

request payloads can be omitted based on an exclusion list
response payloads can be omitted based on an exclusion list
entire methods can be omitted based on an exclusion list (e.g. do not log healthcheck)
time is reported as milliseconds instead of a duration. This makes it easy to craft queries in any log processor based on duration (e.g. which where the requests that took more than 25ms?)

Will reopen when rescheduled


Better Word Count Not Working in Live Preview

Better Word Count Not Working in Live Preview
Steps to Reproduce:
Download the latest build of obsidian, turn off safe mode then download and enable Better Word Count, enable live preview, and make a file. Better word count won't count the words in the file.

Came here to post this same issue. Would love to see a fix for this, I love this plugin and make use of the selected word count on a daily basis!

Same :)

Same for me as well, temporary workaround for anyone who needs to use the tool is to revert to the legacy editor which is available in Settings>Editor>Legacy Editor

Same for me as well, temporary workaround for anyone who needs to use the tool is to revert to the legacy editor which is available in Settings>Editor>Legacy Editor

Thanks for indicating temporary fix. Like others, really would appreciate this working with the new Live Preview

Also doesn't work in Source Mode. As pointed out, it only works in the Legacy Editor.

Also doesn't work in Source Mode. As pointed out, it only works in the Legacy Editor.

Same，OB v0.13.18

Same. It would be nice to get it fixed!

Same, v.0.13.19

Same. v.0.13.21

Same here, v.0.13.21

Not working for me either on mac.

Here's a workaround for Mac (not tested there yet, but works on iOS/iPadOS): https://github.com/lukeleppan/better-word-count/issues/30#issuecomment-1025241909
(Or of course you can copy-paste to — or edit in — another app.)

It's too bad that it doesn't work in the default editor. I personally can't go without Live Preview, it's the best which ever happened with Obsidian. I do can switch to the Source mode however, but not ready to disable Live Preview completely which requires Obsidian restart.
Please, make it work.

Yeah as a student I've been struggling without it too. Sorry for the inconvenience everyone.


fix api_reference

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
How is this PR tested:

[ ] unit test
[ ] e2e test
[ ] other (please specify)

Special notes for your reviewer:
Does this PR introduce a user-facing change?

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

It will be great to remove WORK IN PROGRESS if you have finished these docs.

It will be great to add the version mark, e.g. shifu v0.3.0, at the top of these docs.

It will be great to add the version mark, e.g. shifu v0.3.0, at the top of these docs.

you come to add it , for i dont know where to add it. i try to add some but they are inappropriate

It seems that you didn't modify references/api/deviceshifu-deployment. Is this file up-to-date? @MrLeea-13155bc

It seems that you didn't modify references/api/deviceshifu-deployment. Is this file up-to-date? @MrLeea-13155bc

I don't think this file need to update, for a new feature will not modify deployment file

I will format these files soon.

This PR is now ready to merge.


Fix for #767 + tests.

Issue Number
#767
Overview

[ ]  Fix for #767 + tests. See comment.
[ ]  I have made hints on failures when starting Jormungandr are now part of failure message in stdout. Before there were put on stderr so they were sometimes rendered weirdly.

Comments
Before:
$ cardano-wallet-jormungandr serve --genesis-hash<PHONE_NUMBER>111111111111111111111111111111111111111111111111111111
[iohk.cardano-wallet.serve:Info:ThreadId 4] [2019-10-11 10:19:47.17 UTC] Running as v2019.9.13
[iohk.cardano-wallet.serve:Info:ThreadId 4] [2019-10-11 10:19:47.17 UTC] Wallet backend server starting...
[iohk.cardano-wallet.serve:Info:ThreadId 4] [2019-10-11 10:19:47.17 UTC] Node is Jörmungandr on testnet
cardano-wallet-jormungandr: ErrUnexpectedNetworkFailure (Link {_segments = ["v0","block","1111111111111111111111111111111111111111111111111111111111111111"], _queryParams = []}) (FailureResponse (Response {responseStatusCode = Status {statusCode = 404, statusMessage = "Not Found"}, responseHeaders = fromList [("content-length","0"),("date","Fri, 11 Oct 2019 10:19:47 GMT")], responseHttpVersion = HTTP/1.1, responseBody = ""}))

After:
$ cardano-wallet-jormungandr serve --genesis-hash<PHONE_NUMBER>111111111111111111111111111111111111111111111111111111
[iohk.cardano-wallet.serve:Info:ThreadId 4] [2019-10-14 16:48:54.44 UTC] Running as v2019.9.13
[iohk.cardano-wallet.serve:Info:ThreadId 4] [2019-10-14 16:48:54.44 UTC] Wallet backend server starting...
[iohk.cardano-wallet.serve:Info:ThreadId 4] [2019-10-14 16:48:54.44 UTC] Node is Jörmungandr on testnet
[iohk.cardano-wallet.serve:Alert:ThreadId 4] [2019-10-14 16:48:54.45 UTC] Failed to retrieve the genesis block. The block doesn't exist! Hint: double-check the genesis hash you've just gave me via '--genesis-hash' (i.e.<PHONE_NUMBER>111111111111111111111111111111111111111111111111111111).

bors r+

bors r+

bors r+

bors r+


added new resource in data science

What does this PR do?
Added resource
For resources
Description
Data science course (free)
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Read our contributing guidelines
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction)

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

plz help me with the conflicting file issue

please resolve conflicts.

plz help me with the conflicting file issue

Some ways to solve PR merge conflicts:

Github docs: Resolving a merge conflict on GitHub
Make a upstream master merge
Use Github web based editor to solve it.

Next time, I recomend you create branches instead work on main/master.

plz have a look!


Fix $gte & $lte working like $gt & $lt

$gte should mean greater than or equal to, but now it is just alias of $gt. So it doesn't select equal values. The same problem is with $lte and $lt.

Thanks!


Remove the hardcoded method count for t("")

For the t("") function it should use the the user defined value and not the default value of 2

t("") means settings tag, not the method count. As default method count is 2 unless it is set explicitly.

t(0) or t(TAG,0)

Yes I understand. I've set the method count in my Application class to 0 but t() does not respect that.

can you show me your implementation please?

Hmm I get the issue, yes you are right, that should be a check there.

In my Application class I have:
private void configureLogger(boolean isDebug) {
        Logger.init("Khimera")
                .setMethodCount(1)
                .hideThreadInfo()
                .setLogLevel(isDebug ? LogLevel.FULL : LogLevel.NONE);
    }

Where I want to the logger with the extra tag I have:
Logger.t("App").i(error.getMessage());

I'll fix this issue, indeed this is a bug.

Thanks, great library by the way :)

Thanks! This issue should be fixed with v1.9, I just released a version for that.

Works great, thanks!


How to set English as default language in Edge Options

Hi,
I am looking for an JAVA example how I can set default language (English) for Edge webdriver.
Unfortunately I haven't found example on how to do so in documentation.
EdgeOptions edgeOptions = new EdgeOptions();
WebDriver driver = new EdgeDriver(edgeOptions);

What should I set in edgeOptions to set the language?
Thank you in advance,
Ganna Alieksieienko
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: c37572ac-327b-4497-86aa-117434aafa93
Version Independent ID: 00c6e970-68d3-c53b-dcf1-67a535e482f8
Content: Capabilities and EdgeOptions - Microsoft Edge Development
Content Source: microsoft-edge/webdriver-chromium/capabilities-edge-options.md
Product: microsoft-edge
Technology: devtools
GitHub Login: @MSEdgeTeam
Microsoft Alias: msedgedevrel

@bwalderman could you please take a look at this?

@aalexeyenko, try adding this command line argument:
EdgeOptions edgeOptions = new EdgeOptions();
edgeOptions.addArguments("--lang=en_US")

I'm assuming the lack of response means Brandon's comment was helpful. So I will close this issue now.

Thank you! That was helpful.


bug/Reading File When IO[bytes] file param is passed , not file name

Describe the bug
I am using the partition_pdf function, i give the file (IO[bytes]) object as argument in file param, not filename or url. I am recieving file from some remote source, encoded to base 64, i am converting it to BytesIO() , then give as file, i also update its filename arg (because i need to keep it for record downstream), now according to code and error stack i have mentioned below, there is a function which fetches modify date by directly reading file from fs, which i obviously not present
datetime.fromtimestamp(os.path.getmtime(filename))

So i guess i cant pass file as arg if its not in file system, is this by design, and if yes then how am i supposed to process files fetched from other sources, not necessarily present in my file system
To Reproduce
Just pass a BytesIO() object with file name set, and observe
Expected behavior
Should ideally not throw an error
Below is the stack trace, i also raised a PR if you like to review and merge.
https://github.com/Unstructured-IO/unstructured/pull/2307
Screenshots
  File "/Users/narenderawen/AwenDev/eLLM/eLLM/parsers/pdfparser.py", line 39, in parse
    elements_raw=partition_pdf(
                 ^^^^^^^^^^^^^^
  File "/Users/narenderawen/AwenDev/eLLM/venv/lib/python3.11/site-packages/unstructured/documents/elements.py", line 503, in wrapper
    elements = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/narenderawen/AwenDev/eLLM/venv/lib/python3.11/site-packages/unstructured/file_utils/filetype.py", line 591, in wrapper
    elements = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/narenderawen/AwenDev/eLLM/venv/lib/python3.11/site-packages/unstructured/file_utils/filetype.py", line 546, in wrapper
    elements = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/narenderawen/AwenDev/eLLM/venv/lib/python3.11/site-packages/unstructured/chunking/title.py", line 241, in wrapper
    elements = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/narenderawen/AwenDev/eLLM/venv/lib/python3.11/site-packages/unstructured/partition/pdf.py", line 176, in partition_pdf
    return partition_pdf_or_image(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/narenderawen/AwenDev/eLLM/venv/lib/python3.11/site-packages/unstructured/partition/pdf.py", line 246, in partition_pdf_or_image
    last_modification_date = get_the_last_modification_date_pdf_or_img(
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/narenderawen/AwenDev/eLLM/venv/lib/python3.11/site-packages/unstructured/partition/pdf.py", line 218, in get_the_last_modification_date_pdf_or_img
    last_modification_date = get_last_modified_date_from_file(file=file)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/narenderawen/AwenDev/eLLM/venv/lib/python3.11/site-packages/unstructured/partition/common.py", line 98, in get_last_modified_date_from_file
    modify_date = get_last_modified_date(filename)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/narenderawen/AwenDev/eLLM/venv/lib/python3.11/site-packages/unstructured/partition/common.py", line 84, in get_last_modified_date
    modify_date = datetime.fromtimestamp(os.path.getmtime(filename))
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen genericpath>", line 55, in getmtime
FileNotFoundError: [Errno 2] No such file or directory: '/somepath/filename.pdf'

Environment Info
Please run python scripts/collect_env.py and paste the output here.
This will help us understand more about the environment in which the bug occurred.
Additional context
Add any other context about the problem here.

Hi @narenderAwen, can you provide a code snippet that you're using? I tested partition_pdf with the following code snippet but could not see any errors.
with open("dist/docs/img_1_b64.txt", "r") as f:
    image_b64_str = f.read()
    image_bytesio = BytesIO(b64decode(image_b64_str))
    elements = partition_pdf(
        file=image_bytesio,
        strategy=strategy,
    )

Also running this issue. @christinestraub's code above works because there really is a file at dist/docs/pdf_1_b64.txt on disk to be read. The issue happens when the file is present only in memory and not on disk at all.
In my case I'm trying to use unstructured with Streamlit's file_uploader widget, so I am also interested in understanding this question:

So i guess i cant pass file as arg if its not in file system, is this by design, and if yes then how am i supposed to process files fetched from other sources, not necessarily present in my file system

Aha. In get_the_last_modification_date_pdf_or_img (I happen to be using PDFs) we have:
    if not file and filename:
        last_modification_date = get_last_modified_date(filename=filename)
    elif not filename and file:
        last_modification_date = get_last_modified_date_from_file(file=file)

And in get_last_modified_date_from_file, we have:
    filename = None
    if hasattr(file, "name"):
        filename = file.name

    if not filename:
        return None

    modify_date = get_last_modified_date(filename)

I'm not sure if strictly speaking it's correct to assume that if hasattr(file, "name") passes, this is a file that can be read from local disk. But I don't have a sophisticated enough understanding of Python IO conventions to be sure. In the meantime, you can work around this by dropping the attribute from the file explicitly:
  delattr(file, 'name')
  elements = partition(file=files)

If the filename argument is provided to a partitioner it is assumed you want to read that file from the local filesystem at the path provided. If you provide a file argument (a file-like object like io.BytesIO for example) then that will be used as the source for the document.
In that case, in order to provide a file name for metadata purposes you can assign it to the .name attribute of the file-like object before the partition call, like:
file = io.BytesIO(bytes)
file.name = "path_I_want/in_metadata.pdf"
elements = partition_...(file=file, ...)

Closing this as it seems to be resolved, feel free to reopen if you're still having trouble :)

@scanny I don't think this should be closed.
Maybe I'm misunderstanding what you wrote, but the issue is not from passing in the filename argument. The issue is that even when this is not passed, the presence of the name attribute will cause result in an attempt to read the file as if it exists on disk. E.g., your example code will crash if there is no actual path_I_want/in_metadata.pdf on the filesystem.

Ah, yes, I see it now. Okay, that won't do. I'll pick this one up :)

Yep, sure enough. This reproduces the error:
"""Reproduce error reported in https://github.com/Unstructured-IO/unstructured/issues/2308."""

from __future__ import annotations

import io

from unstructured.partition.pdf import partition_pdf

# -- load from file-like object with name set --
with open("example-docs/DA-1p.pdf", "rb") as f:
    file = io.BytesIO(f.read())
file.name = "_scratch/badda.bang.pdf"

partition_pdf(file=file)

>>> FileNotFoundError: [Errno 2] No such file or directory: '_scratch/badda.bang.pdf'


Use netty-bom to keep the netty-related libraries sync

Netty related libraries  (netty-tcnative-boringssl-static, netty-transport-native-unix-common, netty-transport-native-epoll, netty-transport-native-kqueue, etc.) needs be in sync with netty.version version to avoid incompatibility . The netty-bom(https://github.com/netty/netty/blob/4.1/bom/pom.xml) can help to get correct lib versions every time we bump up netty.version.
Does this PR prevent a zero down-time upgrade? (Assume upgrade order: Controller, Broker, Server, Minion)

[ ] No (Please label as backward-incompat, and complete the section below on Release Notes)

Codecov Report

Merging #8365 (4565f38) into master (360a205) will decrease coverage by 6.74%.
The diff coverage is n/a.

:exclamation: Current head 4565f38 differs from pull request most recent head c6b6250. Consider uploading reports for the commit c6b6250 to get more accurate results

@@             Coverage Diff              @@
##             master    #8365      +/-   ##
============================================
- Coverage     70.81%   64.06%   -6.75%
- Complexity     4264     4267       +3
============================================
  Files          1639     1594      -45
  Lines         85919    84038    -1881
  Branches      12921    12718     -203
============================================
- Hits          60840    53837    -7003
- Misses        20873    26315    +5442
+ Partials       4206     3886     -320

Flag
Coverage Δ

integration1
?

integration2
?

unittests1
66.99% <ø> (+0.03%)
:arrow_up:

unittests2
14.20% <ø> (+<0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

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


kie-issues#49: Stunner - Scrolling outside the editing cell closes the Text Editor losing any change

Closes https://github.com/kiegroup/kie-issues/issues/49
Before:
https://user-images.githubusercontent.com/16005046/208081570-4b789473-8352-4af3-b281-2e8f80c501b4.mov
After:
https://user-images.githubusercontent.com/16005046/208081601-6f3c7458-a0db-4e15-ad02-87cc9e7c7f2e.mov
This PR fixes a very annoying bug that occurs when the user performs a MouseWheel event over the GridTable during a cell editing. After that event, any user change is lost.
To fix it, I simply assigned the same handler used for MouseDown event in DefaultGridLayer class. That handler flushes (save and close) any opened Cell in the canvas. Note that flush method calls the detach method internally, so there's no need to call both flush and destroyResources methods.
With this change, is no longer necessary to register a handler for MouseWheel in DMNGridPanel, thus I removed it.
Unfortunately, the same is not true for Test Scenario: Despite the change applied in DefaultGridLayer, Test Scenario still requires registering the handler for MouseWheel in ScenarioGridPanel. DMN and Scesim have some differences in the panel/grid initialization, so this could explain the difference.
PR contains code smells fixes as well.

Manual checks review

[ ] Confirm changes
[ ] Cancel changes
[ ] Multiple consequent changes
[ ] Switch between multiple expression editors
[ ] Undo
[ ] Monaco editor
[ ] Save file

@tiagobento Can you please approve this and eventually merge it? Thx

@tiagobento Can you please approve this and eventually merge it? Thx


Show the name of a device

On the current deice list you can not recognize the device without looking it up in "objecs" tab of IoBroker:

I would appreciate, if more information is shown here. Maybe configurable table columns.
BR Ralf

You can see that under "ID".

No
Not for the Shellys for example

I would need the name, since the ID of some devices are cryptical:

BR Ralf


Make fields optionally in CreateClusterRequest

Make CreateClusterRequest master field and pool's image field optionally in case of AWS.
Create AWS cluster request body should be something like this:
{
  "name":"awscluster-{{username}}-{{$randomInt}}",
  "location": "eu-west-1",
  "cloud": "amazon",
  "secret_id": "{{secret_id}}",
  "nodeInstanceType": "m4.xlarge",
  "properties": {
        "amazon": {
            "nodePools": {
            	"pool1": {
            		"instanceType": "m4.xlarge",
	            	"spotPrice": "0.2",
	                "minCount": 1,
	                "maxCount": 2
            	}
            }
        }
    }
}

Tasks:

[ ] Make fields optionally
[ ] Update OpenAPI
[ ] Update Postman Collection

closed by: #590


Failed fetching expanded findings

I added the plugin to Backstage, and the "Dependencytrack Metrics" works fine, but for "Dependencytrack Findings" I am getting "Failed fetching expanded findings", it seems that the request against dependency track fails with "Unauthorized access attempt made by API Key ****************************"

Can you check the API Key permissions underneath the Administration > Teams > [Team] section to make sure the API Key has permissions to retrieve the findings?
We ourselves have granted the following permissions to the Team for the API Key we are using:

BOM_UPLOAD
POLICY_VIOLATION_ANALYSIS
PROJECT_CREATION_UPLOAD
VIEW_POLICY_VIOLATION
VIEW_PORTFOLIO
VIEW_VULNERABILITY
VULNERABILITY_ANALYSIS

It seemed I was missing some of the suggested permissions, now on the other hand I am getting into a new issue after corrected the permissions, if I add that card, I am getting: "Missing required config value at 'dependencytrack.baseUrl' in 'app-config.yaml'" and "this.tableContainerDiv.current is null" - the config is there and the "Dependencytrack Metrics" works fine when I remove "Dependencytrack Findings". I wonder if I have something unrelated causing this, and will also update some packages, I come back to this after that.


Notes: Update CSS for hover and ResizingTextArea, add more comments

Style regression on https://github.com/studentinsights/studentinsights/pull/2719; the hover and active CSS styles broke when changing the CSS class names and structure with the hidden element.  This fixes that and also adds in some comments on manual testing.

selfie


Fix installation

After changing deeprank-core's name to deeprank2 (see issue #467), I had to recreate my local environments in order to reinstall the editable version of the newly named deeprank2.
Tests are now failing, both on my MacOS with M1 Chip, and on Snellius (Unix-based OS). Tests are failing using both python 3.9 and python 3.10. I also deleted the folders and cloned again the repos, just in case it was a cache-related issue, but it seems not. What's very weird is that the build actions on the remote work, and tests do not fail at all (see for example here)
I am pretty sure it's an issue due to some dependencies' changes, but I couldn't figure it out yet. The error is always the same, in all tests:
============================================================================================================ short test summary info =============================================================================================================
FAILED tests/test_trainer.py::TestTrainer::test_dataset_equivalence_pretrained - numpy.linalg.LinAlgError: 0-dimensional array given. Array must be at least two-dimensional
FAILED tests/test_trainer.py::TestTrainer::test_fout - numpy.linalg.LinAlgError: 0-dimensional array given. Array must be at least two-dimensional
FAILED tests/test_trainer.py::TestTrainer::test_ginet - numpy.linalg.LinAlgError: 0-dimensional array given. Array must be at least two-dimensional
FAILED tests/test_trainer.py::TestTrainer::test_ginet_class - numpy.linalg.LinAlgError: 0-dimensional array given. Array must be at least two-dimensional
FAILED tests/test_trainer.py::TestTrainer::test_ginet_sigmoid - numpy.linalg.LinAlgError: 0-dimensional array given. Array must be at least two-dimensional
FAILED tests/test_trainer.py::TestTrainer::test_incompatible_pretrained_no_Net - numpy.linalg.LinAlgError: 0-dimensional array given. Array must be at least two-dimensional
FAILED tests/test_trainer.py::TestTrainer::test_incompatible_pretrained_no_test - numpy.linalg.LinAlgError: 0-dimensional array given. Array must be at least two-dimensional
FAILED tests/test_trainer.py::TestTrainer::test_naive - numpy.linalg.LinAlgError: 0-dimensional array given. Array must be at least two-dimensional
FAILED tests/test_trainer.py::TestTrainer::test_no_valid_full_train - numpy.linalg.LinAlgError: 0-dimensional array given. Array must be at least two-dimensional
FAILED tests/test_trainer.py::TestTrainer::test_no_valid_provided - numpy.linalg.LinAlgError: 0-dimensional array given. Array must be at least two-dimensional
FAILED tests/test_trainer.py::TestTrainer::test_sgat - numpy.linalg.LinAlgError: 0-dimensional array given. Array must be at least two-dimensional

So it seems related to a numpy operation called in deeprank2.utils.community_pooling.community_detection. In particular, result = mc.run_mcl(matrix) throws the error, which seems to be caused by the fact that matrix is a 0-dimensional array. That is not true, I checked it and matrix.ndim gives 2 as a result. I already tried to downgrade numpy (and networkx) to the versions we have in the actions, but it didn't solve the issue.

Found, the issue comes from the new scipy release (1.11.2); if I uninstall scipy and reinstall the version which is installed in the actions (1.10.0) everything works.


Custom Action is not working

Rasa Core version:
0.9.8
Python version:
2.7.12
Operating system (windows, osx, ...):
Ubuntu 16.04 LTS
Issue:
I have created a custom action in action.py to make query from csv dataframe
But currently the action is not running supposedly as i am just trying to utter a message from the custom action and its not doing that
It does follows those stories where that custom action is not used
Content of domain.yml file
    actions:

        - action.ActionCheckRestaurants

Content of Action.py
  from rasa_core.actions import Action
  from rasa_core.events import SlotSet

 class ActionCheckRestaurants(Action):
     def name(self):
                           return "action_check_restaurants"

     def run(self, dispatcher, tracker, domain):
                          dispatcher.utter_message("this is a restaurant")
                          return []

Content of stories.yml
  path 2

       greet
             utter_greet
       restaurant_search
             action_check_restaurants
       goodbye
             utter_bye

The bot is working fine without this custom action can anyone give some insight about the issue

Is there a specific error you're getting? Or what happens?

In debug mode it says that no memorized action for this intent So it says nothing.
Apparently there was some issue with the overall setup but i solved it by using the rasa_core restaruntbot example code

@WorldHellow is your problem also solved?


Feature request: get all photos from storage.

https://facebook.github.io/react-native/docs/cameraroll.html#getphotos

related to https://github.com/flutter/flutter/issues/19563

Look there is a Plugin called Storage_Path in Pub.dev : https://pub.dev/packages/storage_path
You can try this Plugin and it will give you not only images , it will give you videos , audio and files (like PDF) too. The downside is that it is only available for Android . But i opened an issue on the plugin to get
it available on ios too. you can check it too : https://github.com/follow2vivek/StoragePath/issues/1.
I hope this might help.

If you want an alternative to the last Solution , you can use the Directory Object from the
dart:io Library and then add a Path to the Directory Object . Here your Path should point
at your images. NOTE : All of your images and Videos are stored in the DCIM Folder . This Folder
stores your Gallery images and videos . So by pointing to the Path , here is an Example :
Directory(“storage/emulated/0/DCIM”).listSync() . The listSync() Method returns the sub directories and paths of the DCIM , which gets the Images and Videos , you can add the
reclusive : named Argument and set it to true , this is displaying the list in a reversed way .
This Path is working for Android. You can search on the web to get the iOS Path , it’s so easy to
find it . If you want to get a specific File Type like Images , you can point to it in your Path . I
added this Solution because this can work for both : iOS And Android. And I think this is a more
flexible way . I hope this might help too.

duplicate of https://github.com/flutter/flutter/issues/16054 closing this issue.


404 to github-pages

Sorry to bother y'all with this, but for some reason the https://analog-devices-msdk.github.io/msdk/ site is down with a 404 error. I recall it was working a few days ago, so not sure if the recent deployment may have broken something.
The other site https://analogdevicesinc.github.io/MAX32xxx-MSDK/ seems to work just fine.

Thanks @remren, we're in the process of a required migration of our repos to the central Analog Devices org.
Unfortunately the migration will break our Github Pages URLs...  We can't keep an older placeholder around because then the repo auto-forwarding after the transfer won't work...  We can't get the old URL because the domain is owned by Github...  So sadly it's an unavoidable break.  We'll be updating all existing URLs in our code/documentation once the migration is complete

Final move is complete.  The new URL is now https://analogdevicesinc.github.io/msdk/


selectpicker('refresh') seems to be ignoring options passed programmatically before

Hi there...
I programmatically create the selectpicker via
$('#myselect').selectpicker({
  liveSearch: true,
  actionsBox: true,
  selectedTextFormat: 'count',
  selectAllText: 'Select all',
  deselectAllText: 'Deselect all',
  countSelectedText: '{0} of {1} items selected'
})

Now, I need to dynamically add and remove options. After doing that, since bootstrap-select does not automatically update the list, I need to call
selectpicker('refresh').
However, when I do that, my previous options are being ignored. Do I really have to destroy and "regenerate" the whole select with the same options again?
Many thanks!
BR,
Alex

Just for your information: When I add the selectpicker class to the select element, and then call the selectpicker function with options and then call selectpicker('refresh'), it works with the options remaining...

Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case (you can use our preconfigured Plunker), and report back with:

your link
Bootstrap version
bootstrap-select version
specific browser and OS details.

If you're not using the latest version of bootstrap-select, please try that as well.

Hi Casey,
sorry for not having respected the contributing guidelines and thanks for getting back to me.
This is the situation I was talking about:
https://plnkr.co/edit/KNOlwyQKbUkHnYyJ
However, in this simpler scenario it's not reproducible, so I guess it's related to my webpack setup together with some deep interactions back and forth, I will have to investigate further in my code... Sorry for having wasted your time!
BR
Alex

Hi,
I have the same problem to refresh options list after a post ajax success.
I've tried plnkr link solution, but it's not working in my case.
I'd like to change list from another argument used in post ajax to get new list.
My ajax query is working and returning a JSON result.
I'm using bootstrap-selectpicker in a custom wordpress plugin.

Jquery is enqueue from wordpress hook. v1.12.4
Popper 1.14.7
Bootstrap 4.3.1
bootstrap-bundle 4.4.1
bootstrap-select 1.13.6

@WiznooDev Unfortunately, if you can't reproduce it, I can't fix it. If you can link me to an example of your issue (using the latest version of bootstrap-select) I can take a look.

@caseyjhol Thanks for your response.

I create my custom plugin wordpress with boilerplate generator https://wppb.me/
I add a custom shortcode for front end with add_shortcode()
I enqueue necessary css and js with wp_enqueue
wp_register_script( 'popper-js', 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js', ['jquery'], NULL, true );
wp_enqueue_script( 'popper-js' );

wp_register_style( 'bootstrap-css', 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css', false, NULL, 'all' );
wp_enqueue_style( 'bootstrap-css' );
wp_register_script( 'bootstrap-js', 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js', ['jquery'], NULL, true );
wp_enqueue_script( 'bootstrap-js' );
wp_enqueue_script( 'jquery-ui-core');
wp_enqueue_script( 'jquery-ui-datepicker' );
wp_enqueue_script( 'jquery-ui-sortable' );
wp_enqueue_style( 'jquery-ui-datepicker-style' , '//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css');
wp_register_style( 'bootstrap-css-select', '//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.16/css/bootstrap-select.min.css', false, NULL, 'all' );
wp_enqueue_style( 'bootstrap-css-select' );
wp_register_script( 'bootstrap-js-bundle', 'https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js', ['jquery'], NULL, true );
wp_enqueue_script( 'bootstrap-js-bundle' );
wp_register_script( 'bootstrap-js-select', '//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.16/js/bootstrap-select.min.js', ['jquery'], NULL, true );
wp_enqueue_script( 'bootstrap-js-select' );
wp_enqueue_script( $this->plugin_name.'-sort-table', plugin_dir_url( FILE ) . 'js/sort-table.js', array( 'jquery' ), $this->version, false );

In DOM, I populate options in select lists with a php array loop, when I tried to render front end, it seems ok. Lists are filled, search is available.

I added JS to get value of first list on change with changed.bs.select event and send an ajax post query to get a JSON containing second list options. On ajax success, I'd like to empty second select list and load on it JSON to recreate options. So in first time I tried to empty second list but it's not working.

jQuery('.selectpicker').on('changed.bs.select', function (event, clickedIndex, isSelected, previousValue)
{
var data = {
list:jQuery(this).parent().attr('data-name'),
field: jQuery(this).attr('id'),
value: this.value,
action : 'change_options',
};
	jQuery.post(ajaxurl, data, function(response) {
		 console.log(response);
		 console.log(data);

		 switch(data.list)
		 {
		 	case 'type':
		 		var row_index = data.field.replace(data.list,'');
		 		jQuery('#product'+row_index).empty();

Do I've to used the other ajax function to work on success case?
BR

Here's what to do after adding/removing, adding various options, properties, attributes, etc. Two lines of code after these steps:
$('#myselect').selectpicker('destroy');
$('#myselect').selectpicker('render');

Hey @artemmm312 ,
doing destroy & render shows updated options, but removes attached working events like, changed.bs.select , etc...


No warning when pressing "Remove Animation"

Godot 2.1.1 stable
When pressing the little trashcan "Remove Animation" in the Animation dock, it deletes selected animation without warning. It is too easy to accidentally remove an animation with hours put into it.
I know it is possible to save the animation as a file, but I think it would be great to have a "Are you sure?" warning, as deleting an animation by accident can be quiet a loss.

I'd rather prefer an undo step for this. "Are you sure?" questions are annoying.

@RayKoopa i am actually not sure about the undo.
I agree that "Are you sure?" questions are annoying, to some extend. For instance if there was a warning when deleting a track it would be annoying because it is something you do often. But deleting a whole animation i wouldn't say happen that often, and a whole animation can be quiet comprehensive.
Just my thoughts.

As long as things can clearly and correctly be made undo, I doubt the usefulness of such messages. Blender for example does it that way. Maybe we should put in a visible Undo button to godot to improve the user about knowing such a feature.

right now it is possible for one to, inadvertently, deletes an animation through a sleepy click (strange things happens in late nights...), better safe than sorry in my opinion.  plus like Keetz said deleting an animation is not a frequent task so I don't think this will become too annoying.

Okay, I guess I can implement this quickly asap.

@RayKoopa i don't think there should be a warning when deleting a track, as it, unlike an animation, is a frequent action and not that big a loss of work. As long as it is possible to undo the track it should be fine.
But talking about tracks i'd like to refer to #7448 :D
That is an example of a really annoying warning as you press the key to create a track many times during the time of creating an animation, and every time you have to press 'confirm' too.

What is even worse that we can detach and effectively nuke built-in scripts on nodes without getting a warning either.
Lot to do with warnings in general...

Fixed by #7648.

detach and effectively nuke built-in scripts on nodes without getting a warning either.

Is this fixed as well? Or need an other issue?


---DRAFT--- Start page

@DonJayamanne I did remove redux, but I left in react to make it easier to debug.

I had a chat with @DavidKutu offline. Great work! I recommended one change, rather than trying to extract the month from the Contribution.md, I recommended just to use Latest Release as the text and use the contents from the first available Enhancement block.
Other than that, this looks good.


chore: improve setup_local_k8s.sh for disconnected cluster

Sometimes kind does not show up in k8s clusters so we need to recreate

this was just wrong


Better source for Swedish data?

Hi,
Amazing project! I actually found about it after I made one based on the exact same principle based on Swedish data for my own needs. I just published the code here.
I'm both frustrated and happy I found your project (as well as name-dataset) because I couldn't find anything when I first looked and felt like I had to write my own code. But now that I've done it, I'm bummed someone implemented it better and with more data. Oh well... 😊
Anyway, I'm reaching out since I saw that you seem to be using newborn data for Sweden. I've been using a different dataset which I think works better. SCB has a list of all the names born by at least two people living in Sweden (first, middle and last names). They can be found on this page (the files called Namnsök 2021 and 2022).
I did the math and this amounts to 98% of the population (e.g. 2% of the population have a unique name and are hence not in this list). So it's way more exhaustive than the lists of newborns, even if you go back a few decades. In total, there are 97386 unique first names to compare with the 1518 in your newborn dataset.
Would you be interested in a PR to use this dataset instead?

Dear Pierre, sure! While we are not actively working on genderComputer, it is great to see that it is still useful :)

@PierreMesure I guess you can use Wikidata
I have been part of adding the named for all Swedish PM people as WD entities with sources and also tried to get ISOF interested in Linked data see Koppla Namnobjekt - ISOF <-> Wikidata?

Wikidata properties for name
see also #129

Lista sv - en

All properties used for Swedish PMs in Wikidata - 510 different properties used

lista swedish = 510 - en

All external properties used for Swedish PMs in Wikidata - 377

lista externa egenskaper swedish - en

Alla externa svenska egenskaper som finns på Svenska PM i Wikidata - 39 stycken

lista externa svenska egenskaper - för svenska riksdagsmän

Alla externa egenskaper som har med Auktoritetsfiler enl. Wikidata - för svenska riksdagsmän

lista egenskaper för auktoritetsfiler

Alla egenskaper som har med namn Q19643892 enl. Wikidata - för svenska riksdagsmän

lista egenskaper som handlar om namn för svenska riksdagsmän

OT Interesting work done with names in Wikidata by OCCRP - see Wikidata and OCCRP
The Organized Crime and Corruption Reporting Project (OCCRP) is using Wikidata to find synonyms for people's names. In this short talk we will present how we use Wikidata's data to support reporting on crime and corruption

youtube video


Does cluster support work?

I see there is a cluster branch but it was last updated 9 months ago. I also see it's been merged into master. So does clustering work? Thanks!

the cluster branch is not working now.
u can use redis cluster proxy like dynomite/codis  before redis/ardb.

@yinqiwen Interesting, thanks for the recommendation.


Feature/extend size option

Shimmer only supports an alternative class of size: small I don't see why this should be the only option. I have updated the modal.ts so that way the string you add for size will be passed as a class name modal--#{size}.
I also removed a depreciated config for typescript.

@JensRavens Could you review this one? :)


Update CI

Changes:

uses nektos/act to run cookiecutter CI
Checks build from source with pypi

Hello @lilyminium! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file tests/setup_cookiecutter.py:

Line 4:80: E501 line too long (108 > 79 characters)

As with #2, I'm just going to merge this to get CI going.


Error in blockReference

For some reason blockReferenceRegex turns the block into an img html tag.
Simple example, created 2 files.
test2.md
erferf erferf erf erf erf erf erfergergergertgwrth wrthg wtrh  ^836863

test.md
![](test2.md#^836863)

After build I get

Quartz Version: 4.3.1
node Version: docker node:20-slim

I realized this only works with Obsidian wiki links, but I don't use them to be more Obsidian independent. Is it possible to support regular markdown links to blocks and headings?

It seems that header links are not supported at all.
Also Russian language is not supported :(

It seems that header links are not supported at all.
Also, conversion is not supported if the note title contains Russian letters :( :(

Cyrillic character support is limited, probably because of some regex matches, for example:
https://github.com/jackyzha0/quartz/blob/v4/quartz%2Fplugins%2Ftransformers%2Fofm.ts#L131
A workaround for that can be implemented similar to this:
https://stackoverflow.com/questions/1716609/how-to-match-cyrillic-characters-with-a-regular-expression
A more permanent solution probably involves using UTF-8 encoding when relevant (either via setting or when a non-English character-set is used.)

This is many separate issues, please file them separately but I don't plan on supporting Obsidian-only features in regular markdown (block references are not a regular markdown feature)

header links definitely work
what is conversion? links to Cyrillic notes work fine

In my opinion, this is a very convenient way to embed notes into each other. Very often you need to insert some piece of another note to convey a thought more accurately and you don’t want to just copy it, since this thought can change in the future. Therefore, I would like it not to disappear in the future and to be supported.

@saberzero1 Thank you very much, your advice was very helpful, I did it like this and everything worked
const blockReferenceRegex = new RegExp(/\^([-_A-Za-z0-9\u0400-\u04FF]+)$/g);


Mute button does't mute video sound

Hello.
This days I set up my first TeleFrame and after some startup problems its working really great. I am just wondering if the Mute button should not turn off the video sound? I know that I can turn on or off the video sound in the TeleFrame configuration, but it would be better that the user could turn it on or off. Is this possible?
My hardware: Raspberry Pi 3 A+, Official 7” Touchscreen Display, WM8960 Audio HAT, Huawei E3531 3G USB stick.
Thanks for any help.

Found out myself:
pi@raspberrypi:~/TeleFrame/js $ git diff renderer.js
diff --git a/js/renderer.js b/js/renderer.js
index c2d9f45..da4c005 100644
--- a/js/renderer.js
+++ b/js/renderer.js
@@ -646,7 +646,7 @@ function loadImage(isNext, fadeTime, goToLatest = false) {
   var $asset;
   if (image.src.split(".").pop() == "mp4") {
     $asset = $("<video/>");
-    $asset.prop('muted',  !config.playVideoAudio);
+    $asset.prop('muted',  !config.playVideoAudio || isMuted);
     $asset.prop('autoplay', true);
   } else {
     $asset = $("<img/>");

Great! Thanks a lot! This obvious functionality should be added to the main branch. Consider a pull request.


GPU acceleration support

Any chance this container is/could be build with support for the nvidia-docker runtime?

And potentially Intel QSV (QuickSync) support

+1

I figured out how to get vaapi gpu support. Potentially other packages work as well. Docker image is built on Alpine. You'll need to find out what packages you need for your specific use case. In mine, it's an Arc A380.

Pass --device=/dev/dri:/dev/dri to the container
Pass variable: INSTALL_PACKAGES = 'mesa-dri-gallium intel-media-driver libva-intel-driver mesa-va-gallium'
Works.

I figured out how to get vaapi gpu support. Potentially other packages work as well. Docker image is built on Alpine. You'll need to find out what packages you need for your specific use case. In mine, it's an Arc A380.

Pass --device=/dev/dri:/dev/dri to the container

Pass variable: INSTALL_PACKAGES = 'mesa-dri-gallium intel-media-driver libva-intel-driver mesa-va-gallium'

Works.

Not to sound ungrateful because I am BERY greatful (knew and tried passing just the driver "path" to the container but didn't realize I also needed to add drivers to the container...
As I was saying not to sound ungrateful but would have been helpful to find out where you found the info on what drivers to add so folks could add as you mention in list of required drivers for their unique drivers  their unique platform. I found details for drivers at; The Alpine Wiki
Enjoy and thanks!