Fix block being passed to dry_initializer_initialize

Describe the bug
Hello. :wave: I'm getting multiple warnings in my console when using Dry Initializer due to a block being passed to __dry_initializer_initialize__ when it shouldn't.
This is showing up because Ruby 2.4.1 issues warnings when you pass a block that isn't used. See Feature #15554.
To Reproduce
I don't have a great way, at the moment, to reproduce this since the warning seems to be indirectly triggered via Dry Schema because I'm not requiring Dry Initializer directly. Regardless, you'll want to ensure the following is enabled for your environment:
export RUBYOPT="-w -W:deprecated -W:performance -W:experimental"

I would expect the Dry Initializer test suite to be issuing these warnings too if warnings are enabled?
Expected behavior
I'd expect to not see this warning show up:
/Users/bkuhlmann/.cache/frum/versions/3.4.1/lib/ruby/gems/3.4.0/gems/dry-initializer-3.1.1/lib/dry/initializer/mixin/root.rb:11: warning: the block passed to '__dry_initializer_initialize__' defined at (eval at /Users/bkuhlmann/.cache/frum/versions/3.4.1/lib/ruby/gems/3.4.0/gems/dry-initializer-3.1.1/lib/dry/initializer/config.rb:112):2 may be ignored

My environment

Affects my production application: YES
Ruby version: ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [arm64-darwin24.2.0]
OS: macOS 15.2

Thanks for reporting, I saw it too and I'll take a closer look today. It's either justified or not. In the later case we'll have to silence this warning with a monkey patch I'm afraid. The problem is there's no way know if a method yields a block or not if doesn't appear in the parameters. And even if it does appear it would be more costly than just ignoring the warning.

Hmm, __dry_initializer_initialize__ doesn't yield a block so this warning seems justified. If we change the signature of Root#initialize to *, ** it'll help with referencing the correct source of the warning, I'll do this in main now.

Thanks! Yeah, only forwarding positional and keyword parameters resolves this issue nicely. I also applied this patch locally and ran it across multiple projects and don't see any issues. My console is clean now. Would be nice to release a patch next if you don't see any further complications.


error until complete new installation

error.txt
Description
complete new installation, see file
Version Number

Steps to Reproduce

Step 1
Step 2
Step 3
Step 4

Expected Behavior

Actual Behavior

Only KkthnxUI Enabled

Additional Information

Error Log

Can you check and see if this is fixed?


Hide secrets

This PR adds a new option during print settings call, to hide/show the secrets, replacing them with '*****'. #1524

Coverage increased (+0.02%) to 71.538% when pulling 807651ff6988d7d4c2cc4fff666315350d90b86e on luchiago:feat/hide-secrets into 3d4a7d3f36357f1dac93ed79ce82751c6d4a0a1e on django-extensions:master.

please do not run black and isort in this PR, even though I love both tools it makes reviewing a PR much harder due to unrelated changes.

I can remove the commit where I did, rebase, and send again. Is there another change to make in this PR?

please do not run black and isort in this PR, even though I love both tools it makes reviewing a PR much harder due to unrelated changes.

@trbs I can remove the commit where I did, rebase, and send again. Is there another change to make in this PR?

You can make it into a separate PR for this file and I will merge it.

please do not run black and isort in this PR, even though I love both tools it makes reviewing a PR much harder due to unrelated changes.

@trbs I can remove the commit where I did, rebase, and send again. Is there another change to make in this PR?

You can make it into a separate PR for this file and I will merge it.

Sure. I will finish the adjustments here and send this PR

While looking at your pull request I did some cleanup in print_settings as that was needed and should make implementing your PR a lot cleaner.
Regretfully this does mean you will need to rebase....
(If you do not want to do this I can understand that and I can implement hide secrets directly on top of my most recent changes, but I would hate to see you lose attribution in git for your work !)

@trbs No problem at all! I'll rebase it


[AutoPR containerregistry/resource-manager] [Do not merge] Swagger and Examples for the new Scoped tokens feature of Azure Container registry

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/5543

Build output:

dist/com.microsoft.azure.containerregistry.v2018_09_01/azure-mgmt-containerregistry-1.0.0-beta-sources.jar
dist/com.microsoft.azure.containerregistry.v2018_09_01/azure-mgmt-containerregistry-1.0.0-beta-javadoc.jar
dist/com.microsoft.azure.containerregistry.v2018_09_01/azure-mgmt-containerregistry-1.0.0-beta.jar
dist/com.microsoft.azure.containerregistry.v2018_09_01/azure-mgmt-containerregistry-1.0.0-beta.pom

Build output:

This PR has been merged into https://github.com/Azure/azure-sdk-for-java/pull/3165


Extend schemas to resolve suggestions url language

What is the context of this PR?
This adds new transform to help resolving suggestions urls language for NISRA schemas. It needs merging before this schemas PR and after validator PR.
How to review
Two unit tests has been added to support this and reach 100% test coverage.
Checklist

[ ] New static content marked up for translation
[ ] Newly defined schema content included in eq-translations repo

 [C] Extend schema build process to resolve suggestions URL language (M)

I think there was some misunderstand, as this PR isn't needed. The idea was to resolve the suggestion URL at build time as we know what they should be for a given region/language. In the schemas repo, after the build and translation phase, we need to resolve the suggestion URLs.

I think there was some misunderstanding, as this PR isn't needed. The idea was to resolve the suggestion URL at build time as we know what they should be for a given region/language. In the schemas repo, after the build and translation phase, we need to resolve the suggestion URL, therefore, there is no placeholder for runner to map, the values should already be resolved.

I was wondering about this :smile:


Add the auto refresh setting

Describe your suggested feature
The moment you enter a manga on feed, this one auto-refreshes without you pulling the top of the entry.
Other details
Could be added on advanced settings or the browse section.
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 0.16.3.
[X] I will fill out all of the requested information in this form.

Feeds? Are you sure this and #322 shouldn't be on the fork's repo instead?


svg_elt "path" get's rendered without attributes

The following code:
svg_elt "svg" [
svg_elt  ~a:[ clip_rule "evenodd"; d "M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z"; fill_rule "evenodd" ] []
]

gets rendered as:
<svg><path></path></svg>

while I expected the path to look like: <path fill-rule="evenodd" d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z" clip-rule="evenodd"></path>

How are clip_rule, d and fill_rule defined?

let clip_rule = str_prop "clip-rule"
let fill_rule = str_prop "fill-rule"
let fill = str_prop "fill"
let viewBox = str_prop "viewBox"
let xmlns = str_prop "xmlns"
let d = str_prop "d"

I'm not very familiar with SVG, but I suspect these must be defined as attributes, not as DOM properties.  Can you try with attr instead of str_prop?


com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.invoke.MethodType not found

I'm trying to compile but this exception shows up. I'm not sure whether it's really a bug in Java compiler or in this plugin. Could you please tell me how to retrieve more information?
...
:mobile:generateDebugResValues UP-TO-DATE
:mobile:generateDebugResources UP-TO-DATE
:mobile:mergeDebugResources UP-TO-DATE
:mobile:processDebugManifest UP-TO-DATE
:mobile:processDebugResources UP-TO-DATE
:mobile:generateDebugSources UP-TO-DATE
:mobile:compileDebugKotlin UP-TO-DATE
:mobile:compileDebugJavaWithJavac
An exception has occurred in the compiler (1.8.0_74). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.invoke.MethodType not found

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mobile:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

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

BUILD FAILED

Total time: 1.47 secs

Besides your plugin, I'm using Kotlin (1.0.1-2)
Thank you very much

Not sure why it happened and there is no library stacktrace. Could you use the same kotlin version to permissionsdispatcher?

I just managed to compile with JDK 7 so it's possibly not related to Kotlin. However, how would I set the Kotlin version explicitly for permissionsdispatcher?

No I mean please use 1.0.0 ver to your app.

Seems problem with gradle-retrolambda
https://github.com/evant/gradle-retrolambda/issues/86
https://github.com/evant/gradle-retrolambda/issues/120


Update Mono.Security API.

We should land this one first:
https://github.com/mono/mono/pull/5509

done in master


Support the global_custom_queries option in init_config

What does this PR do?

Motivation

Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached

Closing this PR since it's still a draft, feel free to re-open it if needed 🙂


/api/v1/exchangeInfo

Coverage decreased (-0.2%) to 62.925% when pulling 538ad7bab028c2b0ee0f7d20173a33210944ff23 on santacruz123:master into 306808dc4dec47905cbf616b6c4525cad3ce561c on aarongarvey:master.

Is this a sanctioned route?  Their docs don't mention it(unless I'm just looking in the wrong place).

Aha, they have moved the official docs into github and it is covered!  Time to look through those docs to make sure everything is up to date.


Change patch path during live patching of systemVMs

Description
This PR updates the location where the new software packages are temporarily copied during live patching.
This will allow livePatching of ACS 4.14, however versions <= 4.13 will not be supported for live patching due to the change in JDK version

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[ ] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan package

@Pearl1594 a Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6328 (SL-JID-1487)

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 3321

smoke tests have been initiated

Trillian test result (tid-4062)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 38315 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6328-t4062-kvm-centos7.zip
Smoke tests completed. 94 look OK, 1 have errors
Only failed tests results shown below:

Test
Result
Time (s)
Test File

test_01_verify_ipv6_network
Failure
380.37
test_network_ipv6.py

test_02_verify_ipv6_network_redundant
Failure
581.74
test_network_ipv6.py

Trillian test result (tid-4063)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 40160 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6328-t4063-xenserver-71.zip
Smoke tests completed. 94 look OK, 1 have errors
Only failed tests results shown below:

Test
Result
Time (s)
Test File

test_01_verify_ipv6_network
Failure
474.77
test_network_ipv6.py

test_02_verify_ipv6_network_redundant
Failure
717.79
test_network_ipv6.py

Trillian test result (tid-4065)
Environment: kvm-ubuntu20 (x2), Advanced Networking with Mgmt server u20
Total time taken: 41172 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6328-t4065-kvm-ubuntu20.zip
Smoke tests completed. 94 look OK, 1 have errors
Only failed tests results shown below:

Test
Result
Time (s)
Test File

test_01_verify_ipv6_network
Failure
408.11
test_network_ipv6.py

test_02_verify_ipv6_network_redundant
Failure
580.05
test_network_ipv6.py

Trillian test result (tid-4064)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server 7
Total time taken: 53138 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6328-t4064-vmware-67u3.zip
Smoke tests completed. 93 look OK, 2 have errors
Only failed tests results shown below:

Test
Result
Time (s)
Test File

test_01_verify_ipv6_network
Failure
494.20
test_network_ipv6.py

test_02_verify_ipv6_network_redundant
Failure
736.59
test_network_ipv6.py

test_01_deploy_vm_on_specific_host
Error
3603.64
test_vm_deployment_planner.py

test_02_deploy_vm_on_specific_cluster
Error
2.34
test_vm_deployment_planner.py

test_03_deploy_vm_on_specific_pod
Error
23.83
test_vm_deployment_planner.py

test_04_deploy_vm_on_host_override_pod_and_cluster
Error
3602.97
test_vm_deployment_planner.py

test_05_deploy_vm_on_cluster_override_pod
Error
3.33
test_vm_deployment_planner.py

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6328 (SL-JID-1494)


Run preprocess.py

File "preprocess.py", line 85, in mp_handler
process_video_file(vfile, args, gpu_id)
File "preprocess.py", line 50, in process_video_file
dirname = vfile.split('/')[-2]
IndexError: list index out of range

应该是路径的问题吧 可以检查一下

Thank you very much. It is indeed a path related issue, and the Windows system has encountered quite a few problems running these things.


Cannot deploy qwen2 gguf embedding model

LocalAI version:

localai/localai:v2.20.1-cublas-cuda12-ffmpeg
Environment, CPU architecture, OS, and Version:

Linux ip-172-31-24-204 6.5.0-1024-aws #24~22.04.1-Ubuntu SMP Thu Jul 18 10:43:12 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Describe the bug

Planning to deploy qwen2 embedding model, test with the flowing request:
{
    "input": "Your text string goes here",
    "model": "gte-qwen2-7b-instruct-gguf"
}

model config v1

backend: sentencetransformers
name: gte-qwen2-7b-instruct-gguf
parameters:
  model: KeyurRamoliya/gte-Qwen2-7B-instruct-GGUF
embeddings: true

error msg v1

{
    "error": {
        "code": 500,
        "message": "could not load model (no success): Unexpected err=OSError(\"KeyurRamoliya/gte-Qwen2-7B-instruct-GGUF does not appear to have a file named config.json. Checkout 'https://huggingface.co/KeyurRamoliya/gte-Qwen2-7B-instruct-GGUF/tree/main' for available files.\"), type(err)=<class 'OSError'>",
        "type": ""
    }
}

Ok, this seems to be some error about the hugging face model repo, so I downloaded the gguf file, placed it in the models directory

model config v2

backend: sentencetransformers
name: gte-qwen2-7b-instruct-gguf
parameters:
  model: gte-qwen2-7b-instruct-q8_0.gguf
embeddings: true

error message v2

{
    "error": {
        "code": 500,
        "message": "could not load model (no success): Unexpected err=OSError(\"sentence-transformers/gte-qwen2-7b-instruct-q8_0.gguf is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'\\nIf this is a private repository, make sure to pass a token having permission to this repo either by logging in with `huggingface-cli login` or by passing `token=<your_token>`\"), type(err)=<class 'OSError'>",
        "type": ""
    }
}

I have even created a folder sentence-transformers and move the gguf file into it, but the error is the same...
To Reproduce

Expected behavior

Logs

Additional context

@ensean did you tried installing any qwen model from the model gallery instead? You can also run any models in the gallery ( https://models.localai.io ) with:
local-ai run <model_name>

For instance to run qwen2:
local-ai run qwen2-7b-instruct

Check also: https://localai.io/docs/getting-started/models/#examples


Build(deps-dev): Bump @types/node from 17.0.4 to 17.0.5 (#2276)

Pull request opened by the merge tool on behalf of #2276

Merged in a336568a3421d05d00c6c24a13bdbb1f091d89e3


Add option for supported image file extensions

Add option (https://github.com/deoostfreese/Parvus#options) to make the hardcoded supported images file extensions
customizable:
https://github.com/deoostfreese/Parvus/blob/d3acb3b73059469ea4ab8291eb370fb2f88f89c4/src/js/parvus.js#L298

In case anyone comes across this and is looking to get Parvus working with URLs that don't end in .jpg/.png/.svg/etc, try this:
const prvs = new Parvus({
  fileTypes: /.*/i
})

Here's a related issue from a different gallery/lightbox library.

Thanks for making Parvus! 👏


Compatible with pandas

Last month, pandas upgraded from 0.19 to 0.20. And they release a warning : "Panel is deprecated and will be removed in a future version". However, your pydatastream package will output in pandas when the output is 3-dimension. Therefore, I am wondering whether you will follow up pandas.
Thank you so much.

Good point! I've updated it and starting version 0.5.0 (https://github.com/vfilimonov/pydatastream/commit/fcb6dbb3ab535f0487de969734dd8a57a0197010) method fetch() will return MultiIndex instead of Panel
I've never liked Panels anyway. ;-)


Add save and navigation functionality

Save last 10 user entered expressions into a file and then let user navigate through it by using up and down keys in command line.

I'm pretty sure this already happens in windows command prompt straight-up, but not on other consoles, so if you want to do this generally, I imagine you'll need to use special characters other than up and down.
A good place to start would be making an array with size 10 and an accompanying index that says which index is the "newest" entry. That way, every new command would be written into index+1 and would overwrite the oldest entry:
     | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |   |   |    index=7
=>   | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |   |    index=8
=>   | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |    index=9
=>   |10 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |    index=0
=>   |10 |11 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |    index=1
=>   |10 |11 |12 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |    index=2

That'd be an easy way to KNOW you have 10 expressions. From there, setting a curindex variable and using commandHistory[curindex] for the default calculator value would probably work.

Ohh ohk


Lab05 Level 5 Issue

Summary
Honestly I am a bit confused with how to do the recursion, I don't rly gets the calling of 2 flat maps as seen in my code below. Also, my output of the log statements are incorrect and I am not very sure why
Description:
As seen in the screenshot, the statements come out from adding 5 to base case instead of the opposite, and there is a "space" generated too. I think this could be due to my toString method but I don't know how to change it without affecting the correctness of my other levels
Code Snippets
Screenshots

Any help is appreciated, thank you!

hiii, in order for the string to come in ascending order, the string needs to be added after the sum(n - 1) method call. so u just have to swap the order of calling the first and second factory methods.
so this is what i did:
return Log.<Integer>of(n).flatMap(x -> sum(n - 1).flatMap(y ->  Log.<Integer>of(x + y,  "adding " + x)));

Ohh i understand, thank you @huangtian666


Release binary

For machines that don't have the utilities / time / memory to build from scratch - I took the liberty of compiling this for linux x86-64 (Ubuntu 16.04), confirmed it runs on a machine without stack or GHC.
jl.tar.gz

That's cool @charles-cooper! I was thinking of setting up some automation to build these on git tags for distributions, via travis releases https://docs.travis-ci.com/user/deployment/releases/

https://github.com/chrisdone/jl/releases

That was quite the turnaround time!


API-12695 force authn

Temporary use of forceAuthn flag to enable the LoginGov IDP via the auth request

This is for login.gov testing in prod prior to activation

This is a draft PR with an alternative approach in mind us

Recommend closing in favor of https://github.com/department-of-veterans-affairs/lighthouse-saml-proxy/pull/376.
This works approach would technically also work so good to have alternatives.


License

Hello @rssh and @alisa-rend,
I wasn't able to find a license in the project.
scala-gopher was supposed to be open source or is it a proprietary software?
What are the restriction in using and expanding it?

Yes, it's open source.
License default is Apache [http://www.apache.org/licenses/LICENSE-2.0].
If you prefer other OSS-compatible license, tell me.
Thanks for notice, I will add reference to docs.

Thanks @rssh


Memory issues in training loop

Detailed Description

I am running on a slightly down sampled dataset with spatial dimensions 448x448. The shape of my input tensor is (None, t = 7, c = 75, w = 112, h = 112) and output tensor shape (None, t=60, c = 51, w = 28, h = 28). I have implemented a version that works with pytorch-lightning for parallelization and would be happy to share if anyone wants. I got the following parameters:
Downsampler (same as paper): 1.6 M parameters
Temporal encoder (hidden = 384): 6.6M parameters
Temporal Aggregation (4 layers, heads=8, num_dims=2): 4.7M parameters
But when I run a single training epoch this with batch_size = 1 on an NVIDIA A100 GPU, I get the error:
"RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 39.59 GiB total capacity; 36.22 GiB already allocated; 6.19 MiB free; 37.53 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF". When I reduce the lead times this error disappears (this is the bottleneck)."
Possible Implementation

The issue is that the effective batch size with this training loop is 60*batch_size. The paper only does one random lead time per sample, which now makes sense to me. This solves the memory issue by allowing effective minimum batch size to be lower than 60. I am however not certain how to implement this since the training step is automated by the pytorch-lightning module. A quick fix would be to generate 60 different copies of the input tensor, encode them with all 60 different lead times and pair them with an output tensor of shape t=1 instead of t=60. However I see some potential issues with this solution because it's very inefficient memory wise since we would have 60 nearly identical input tensors.

Yeah, based off the discussion you had, I think changing the default forward pass to take in which lead time makes the most sense, would reduce memory issues quite a lot. Sharing your training code would be great! Would love to see how that is working, and I'll try to get one written up this week too

I've started making my training script, and changed MetNet and MetNet2 to only do one lead time per forward pass in #20

BTW, my model summary is like below: (does this make sense? Why the most parameters are in the "DownSampler" layer?)
======================================================================
Layer (type:depth-idx)                        Param #
MetNet                                        --
├─MetNetPreprocessor: 1-1                     --
│    └─PixelUnshuffle: 2-1                    --
│    └─CenterCrop: 2-2                        --
├─Dropout: 1-2                                --
├─TimeDistributed: 1-3                        --
│    └─DownSampler: 2-3                       --
│    │    └─Sequential: 3-1                   1,596,640
├─ConditionTime: 1-4                          --
├─TemporalEncoder: 1-5                        --
│    └─ConvGRU: 2-4                           --
│    │    └─ModuleList: 3-2                   248,960
│    │    └─RNNDropout: 3-3                   --
│    │    └─ModuleList: 3-4                   --
├─Sequential: 1-6                             --
│    └─AxialAttention: 2-5                    --
│    │    └─ModuleList: 3-5                   8,256
├─Conv2d: 1-7                                 3,333
Total params: 1,857,189
Trainable params: 1,857,189
Non-trainable params: 0

Sorry for post again. I just try to post it clear

Layer (type:depth-idx)                        Param #
MetNet                                        --
├─MetNetPreprocessor: 1-1                     --
│    └─PixelUnshuffle: 2-1                    --
│    └─CenterCrop: 2-2                        --
├─Dropout: 1-2                                --
├─TimeDistributed: 1-3                        --
│    └─DownSampler: 2-3                       --
│    │    └─Sequential: 3-1                   1,596,640
├─ConditionTime: 1-4                          --
├─TemporalEncoder: 1-5                        --
│    └─ConvGRU: 2-4                           --
│    │    └─ModuleList: 3-2                   248,960
│    │    └─RNNDropout: 3-3                   --
│    │    └─ModuleList: 3-4                   --
├─Sequential: 1-6                             --
│    └─AxialAttention: 2-5                    --
│    │    └─ModuleList: 3-5                   8,256
├─Conv2d: 1-7                                 3,333
Total params: 1,857,189
Trainable params: 1,857,189
Non-trainable params: 0

Hi Hinode,
You can play around with the hyper parameters of the network in the metnet model file. Right now you are using hyper parameters is much smaller than the original paper.
The downsampler they have 286 input channels, 160 kernels --> 256 kernels --> 256 kernels --> 256 kernels. This leads to n_parameters: (33286+1)160 + (33160+1)256 + 2(33*256+1)*256 = 1,968,480
I am not certain how to calculate the parameters for the ConvLSTM (ConvGRU in our case) and the axial attention blocks. But default in this model is significantly less than original paper. When I try to initialize with their hyper parameters I get something very far from 225M parameters:
| Name                 | Type                      | Params
0 | image_encoder | TimeDistributed   | 2.0 M
1 | ct                       | ConditionTime     | 0
2 | temporal_enc    | TemporalEncoder | 6.6 M
3 | temporal_agg    | Sequential            | 9.4 M
4 | head                  | Conv2d                 | 197 K
18.2 M    Trainable params
0             Non-trainable params
18.2 M    Total params
72.960    Total estimated model params size (MB)

Hi @ValterFallenius, interesting. Based on your analysis, the model looks quite different from the original paper.

@ValterFallenius regarding your initial error message,
"RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 39.59 GiB total capacity; 36.22 GiB already allocated; 6.19 MiB free; 37.53 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF". When I reduce the lead times this error disappears (this is the bottleneck)."
The reason is someone else was also using/occupying your GPU at the same time when you were testing it. So the 37.53 GiB reserved. Whenever the GPU is released, the error message is gone.

@Hinode I dont think someone else was using the GPU, rather the backprop kept gradients for a batch size that was too big, effectively 60 as I mentioned.
I just realised another thing, assuming the authors number of 225M parameters is correct, then obviously something is missing in this model. I was wondering if perhaps the self.head instead is a fully connected layer instead of the 1x1 cnn? What do you think  @jacobbieker @Hinode ?

I reached out to author Casper again, he was very helpful and answered the following questions (in code blocks):
"Dear Valter,
1. I have implemented a model very similar to yours in collaboration with Open Climate Fix at https://github.com/ValterFallenius/metnet/tree/lightning. I have tried to completely replicate your model by using the specified parameters, however I am not able to replicate the same amount of parameters (225M) as your model. I am wondering what I'm missing in my implementation, here are my parameters:
I'm not sure what the exact source of the difference is. However most plausible explanation is a difference in the transformer as the vast majority of the parameters reside here. Our heads were small MLPs as far as I remember (I'm not at google anymore so do not have access to the source code). Anyway i do not think it should make a huge difference in performance, the exact parameter count and you should be able to get to 95% of the performance with an order of magnitudes smaller model.
2. Did you do anything to prevent class imbalance. In my data 0-1mm rain/h bins stands for more than 99.9% of all data points, did you have the same property in your training data?
Our data was also severely skewed. We discarded samples with a number of pixels with precipitation below a certain threshold - like 5 for an example, during training.
3. How did you normalize your data? When you normalize your data with zero-mean and unit variance, do you do that sample by sample or on the entire dataset? I mean, which one of the following do you do?
The first option will not work. The second one should be fine, albeit using some percentile range instead of std is more stable to outliers. However we simply scaled our inputs with fixed constants to bring them into reasonable ranges. Anything beyond that harmed performance in the end.
4. This last question you can ignore if you don't have time for it. My network doesn't seem to be able to train properly but I am having a hard time finding the bug. I am trying to run it like you suggested on a small subset of the data, with only a single lead time and much fewer hidden layers but it doesn't train well. The pytorch model compiles and doesn't report any bugs but the network still won't reduce the error even when run repeatedly on the same training sample . If you can spare the time, full details are available at https://github.com/openclimatefix/metnet/issues/22.
If the plot is showing log loss the number seems too high e.g. your probability mass on the correct class is on average exp(-1.77) ≈ 1e-77, just prediting no-rain all the time should give you something much better. However one thing to note is log-loss changes after the first few hundred updates are usually super small. Most likely you have a sign error in the loss or not updating the params as the grads are not zero? I can't really help beyond that.
Good luck ironing out the bugs :)
Casper"

@Hinode I dont think someone else was using the GPU, rather the backprop kept gradients for a batch size that was too big, effectively 60 as I mentioned.
I just realised another thing, assuming the authors number of 225M parameters is correct, then obviously something is missing in this model. I was wondering if perhaps the self.head instead is a fully connected layer instead of the 1x1 cnn? What do you think @jacobbieker @Hinode ?
EDIT: Fully connected would be way too big...

This is the exact question that I want to find out. I do need to dive deeper into the model structure.

std

Thanks for sharing Casper's reply. It sounds like the MetNet will end? Since he left google ...

@Hinode I dont think someone else was using the GPU, rather the backprop kept gradients for a batch size that was too big, effectively 60 as I mentioned.
I just realised another thing, assuming the authors number of 225M parameters is correct, then obviously something is missing in this model. I was wondering if perhaps the self.head instead is a fully connected layer instead of the 1x1 cnn? What do you think @jacobbieker @Hinode ?
EDIT: Fully connected would be way too big...

If you look at the MetNet init:
class MetNet(torch.nn.Module, PyTorchModelHubMixin):
def init(
self,
image_encoder: str = "downsampler",
input_channels: int = 12,
sat_channels: int = 12,
input_size: int = 256,
output_channels: int = 12,
hidden_dim: int = 64,
kernel_size: int = 3,
num_layers: int = 1,
num_att_layers: int = 1,
forecast_steps: int = 48,
temporal_dropout: float = 0.2,
**kwargs,
):
The num_att_layers =1. But in the original paper, there are 8 axial attention layers. So, @jacobbieker , how should the user customize the values? Any instructions? Thanks.

If you look at the MetNet init:
class MetNet(torch.nn.Module, PyTorchModelHubMixin): def init( self, image_encoder: str = "downsampler", input_channels: int = 12, sat_channels: int = 12, input_size: int = 256, output_channels: int = 12, hidden_dim: int = 64, kernel_size: int = 3, num_layers: int = 1, num_att_layers: int = 1, forecast_steps: int = 48, temporal_dropout: float = 0.2, **kwargs, ):
The num_att_layers =1. But in the original paper, there are 8 axial attention layers. So, @jacobbieker , how should the user customize the values? Any instructions? Thanks.

They use 8 layers like you say, but they also have a different implementation.  Casper's reply mentions that each head in the attentions layers were small MLPs. I dont know exactly the details but the number of heads is also 16 in the original paper, not 8 like the standard inout is here. To run it with original settings you do num_att_layers=8 and and heads=16 in the MetNet.py file.
However still I think this model varies from the orginal paper a bit, since our parameters don't add up despite using their hyperparameters. But again, this should not be an issue...

I agree that this is not an issue. But how do the users set 8 axial attention layers (4 x-direction and 4 y-direction.色separate one another)?

I agree that this is not an issue. But how do the users set 8 axial attention layers (4 x-direction and 4 y-direction.色separate one another)?

That would be with
self.temporal_agg = nn.Sequential(
            *[
                AxialAttention(dim=hidden_dim, dim_index=1, heads=4, num_dimensions=2)
                for _ in range(num_att_layers)
            ]
        )

in the metnet.py
The axial attention implementation I use here is here: https://github.com/lucidrains/axial-attention for more details on how it should work.


[SPARK-15680][SQL] Disable comments in generated code in order to avoid perf. issues

What changes were proposed in this pull request?
In benchmarks involving tables with very wide and complex schemas (thousands of columns, deep nesting), I noticed that significant amounts of time (order of tens of seconds per task) were being spent generating comments during the code generation phase.
The root cause of the performance problem stems from the fact that calling toString() on a complex expression can involve thousands of string concatenations, resulting in huge amounts (tens of gigabytes) of character array allocation and copying.
In the long term, we can avoid this problem by passing StringBuilders down the tree and using them to accumulate output. As a short-term workaround, this patch guards comment generation behind a flag and disables comments by default (for wide tables / complex queries, these comments were being truncated prior to display and thus were not very useful).
How was this patch tested?
This was tested manually by running a Spark SQL query over an empty table with a very wide schema obtained from a real workload. Disabling comments brought the per-task time down from about 16 seconds to 600 milliseconds.

Test build #59676 has started for PR 13421 at commit 0b6a190.

Test build #59676 has finished for PR 13421 at commit 0b6a190.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/59676/
Test FAILed.

Test build #59683 has started for PR 13421 at commit db46241.

Test build #59683 has finished for PR 13421 at commit db46241.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/59683/
Test FAILed.

Merged build finished. Test FAILed.

Jenkins, retest this please.

Test build #59689 has started for PR 13421 at commit db46241.

LGTM pending tests.

Test build #59689 has finished for PR 13421 at commit db46241.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/59689/
Test PASSed.

OK this isn't great, but I'm going to merge it first.

Merging in master/2.0.


Missing overloads of RDSAuthTokenGenerator.GenerateAuthTokenAsync

Describe the bug
Overloads of GenerateAuthToken:
public static string GenerateAuthToken(string hostname, int port, string dbUser)
public static string GenerateAuthToken(RegionEndpoint region, string hostname, int port, string dbUser)
public static string GenerateAuthToken(AWSCredentials credentials, string hostname, int port, string dbUser)
public static string GenerateAuthToken(AWSCredentials credentials, RegionEndpoint region, string hostname, int port, string dbUser)

Overloads of GenerateAuthTokenAsync (only one):
public static async System.Threading.Tasks.Task<string> GenerateAuthTokenAsync(AWSCredentials credentials, RegionEndpoint region, string hostname, int port, string dbUser)

Expected Behavior
Should be able to use the same behaviours for both async and sync.
Current Behavior
As the async overload requires an AWSCredentials object, we currently need a work-around in order to generate an auth token in an async context without providing credentials (as they should be fetched from the environment)
await Task.Run(() => RDSAuthTokenGenerator.GenerateAuthToken(region, options.Host, options.Port, options.Username));

Reproduction Steps
Look in RDSAuthTokenGenerator.cs
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.RDS 3.7.301.10
Targeted .NET Platform
.NET 8
Operating System and version
MacOS 13.6.2

Converting this to feature request since the ask here is to add overloads for async versions to match with sync versions for better developer experience. Needs review with the team.


Last gathering time in SQL query

Is it possible to pass scrape interval into SQL query? It would be useful to get information for last <scrape_interval> seconds.
For example, query may look like this:
SELECT COUNT(*) FROM <TABLE> WHERE <TABLE>.TIME > NOW() - <scrape_interval>

You would have to hardcode said value into your queries, as Prometheus does not provide it to SQL Exporter. The only information Prometheus does provide is the scrape timeout (in the form of a X-Prometheus-Scrape-Timeout-Seconds header), but that is different from the scrape interval. (They are equal by default, at 10 seconds each, but they can be tweaked independently.)


Fixed a vulnerability in the encryption service.

Fixed a vulnerability in the encryption service where the initialization vector (IV) was reused for each account data's data.
The fix requires an upgrade of the user data bundle to be sure everything gets re-encrypted to fix the vulnerability.
Retro-compatibility is supported.

Ping @connor4312


Noticing no difference

I have confirmed that nothing is changing in queries. By using "clockwork" I determined the paginators aggregate query is still running exactly the same, query hasn't changed at all.

From digging in to your code, i determined it was the group by statement (which i determined wasn't necessary anyway) that needed to be removed. its working now, thanks!!!


Duration not working

Unable to install Duration: showing me E404.

If you are referring to the Duration component from the demo app, the demo app is not included in the package. You will have to copy it over into your project.

Thanks for your response.Could you, however, be as kind as to direct me to
where I can copy it?
On Fri, Nov 16, 2018 at 10:56 AM Pete Cook<EMAIL_ADDRESS>wrote:

If you are referring to the Duration component from the demo app, the
demo app is not included in the package. You will have to copy it over into
your project.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/CookPete/react-player/issues/506#issuecomment-439341814,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ajb7108LPzdV6QYy9tH570iJMgXBoITeks5uvovGgaJpZM4X4Ovz
.

https://github.com/CookPete/react-player/blob/master/src/demo/Duration.js


Enhance formatting, fix fixed errors logs, update mocha tests

When If or Else brackets are fixed,trigger another rule lint & fix only with Indentation rules so CodeNarc recalculate them correctly
New option nolintafter: When format or fix is called, a new lint is performed after the fixes to update the error list. If you just want the updated source code and do not care about the error logs, use this parameter to improve performances
Manage correctly options failonerror, failonwarning and failoninfo
Mocha tests updates:

Add stats on calls to CodeNarc (globalThis.codeNarcCallsCounter and globalThis.codeNarcCalls, activated if globalThis.codeNarcCallsCounter is set to 0 before calling NmpGroovyLint)
Factorize test classes common code in module helper/common.js
Use a smaller groovy file for test classes when not impacting the tests quality

Codecov Report

Merging #16 into master will increase coverage by 0.51%.
The diff coverage is 97.84%.

@@            Coverage Diff             @@
##           master      #16      +/-   ##
==========================================
+ Coverage   93.19%   93.70%   +0.51%
==========================================
  Files          43       43
  Lines        1146     1208      +62
==========================================
+ Hits         1068     1132      +64
+ Misses         78       76       -2

Impacted Files
Coverage Δ

src/groovy-lint-rules.js
95.00% <ø> (ø)

src/index.js
0.00% <0.00%> (ø)

src/options.js
100.00% <ø> (ø)

src/rules/ElseBlockBraces.js
90.32% <ø> (ø)

src/rules/IfStatementBraces.js
83.33% <ø> (ø)

src/rules/SpaceAroundOperator.js
100.00% <ø> (ø)

src/codenarc-factory.js
97.07% <95.23%> (+0.12%)
:arrow_up:

src/config.js
77.00% <100.00%> (-0.23%)
:arrow_down:

src/groovy-lint-fix.js
99.21% <100.00%> (+0.06%)
:arrow_up:

src/groovy-lint.js
100.00% <100.00%> (ø)

... and 2 more

Continue to review full report at Codecov.

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


HTTP templates:  the outputs always get overridden with result

Pre-requisites

[X] I have double-checked my configuration
[X] I have tested with the :latest image tag (i.e. quay.io/argoproj/workflow-controller:latest) and can confirm the issue still exists on :latest. If not, I have explained why, in detail, in my description below.
[X] I have searched existing issues and could not find a match for this bug
[ ] I'd like to contribute the fix myself (see contributing guide)

What happened? What did you expect to happen?
In Http templates, the output always gets overridden with result.
Below workflow only prints result only and not any other values passed. More details mentioned here https://github.com/argoproj/argo-workflows/discussions/13950#discussioncomment-11404302) https://github.com/argoproj/argo-workflows/pull/13953
Expected Output:
Received message: <IP_ADDRESS>
URL: https://httpbin.org/get
Received Output:
Received message: {{steps.get.outputs.parameters.result}}
URL: {{steps.get.outputs.parameters.url}}
Version(s)
v3.6.0
Paste a minimal workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: http-output-parameters-
spec:
  entrypoint: main
  templates:
  - name: main
    steps:
    - - name: get
        template: http-get

    - - name: print
        template: print-message
        arguments:
          parameters:
          - name: message
            value: "{{steps.get.outputs.parameters.result}}"
          - name: url
            value: "{{steps.get.outputs.parameters.url}}"

  - name: http-get
    http:
      url: https://httpbin.org/get
    outputs:
      parameters:
      - name: result
        valueFrom:
          jsonPath: '{.origin}'
      - name: url
        value: "https://httpbin.org/get"

  - name: print-message
    inputs:
      parameters:
      - name: message
      - name: url
    script:
      image: alpine:3.7
      command: [sh, -c]
      source: |
        echo "Received message: {{inputs.parameters.message}}"
        echo "URL: {{inputs.parameters.url}}"

Logs from the workflow controller
kubectl logs -n argo deploy/workflow-controller | grep ${workflow}

Logs from in your workflow's wait container
kubectl logs -n argo -c wait -l workflows.argoproj.io/workflow=${workflow},workflow.argoproj.io/phase!=Succeeded

https://github.com/argoproj/argo-workflows/blob/1f304ba6780ee043ea5ecd74e06787bcba298f8f/workflow/executor/agent.go#L260
HTTP template does not support setting outputs parameters, this issue should be considered a feature.

@jswxstw That's not documented anywhere AFAICT, and there's no warning or validation error when submitting the example workflow, so I'd consider this to be a bug.

@jswxstw That's not documented anywhere AFAICT, and there's no warning or validation error when submitting the example workflow, so I'd consider this to be a bug.

@MasonM  Indeed, parameters are quite complex, as the fields within it are not applicable to all templates. The documentation provides some introduction, but it is not particularly clear.


32 bit update

32 bit request to update the latest, ok?

There now seem to be 32-bit binaries available at https://github.com/Nifury/ungoogled-chromium-binaries/releases (thank you very much! 🙂).
This means the issue can be closed, right?


Add special case for abs(b - p*z**q) in the meijerint table

Special case for a = -1 in abs(b - p*zq)(-a) (use limit a->-1)

[Current coverage][cc-pull] is 89.41%

Merging [#178][cc-pull] into [master][cc-base-branch] will increase coverage by +12.63%

@@             master       #178   diff @@
==========================================
  Files           354        354
  Lines         86574      86575       +1
  Methods           0          0
  Messages          0          0
  Branches      21575      21575
==========================================
+ Hits          66472      77410   +10938
- Misses         5561       6135     +574
+ Partials      14541       3030   -11511

9 files (not in diff) in sympy/vector were modified. more

Partials -99
Hits +99

10 files (not in diff) in sympy/utilities were modified. more

Misses +1
Partials -368
Hits +367

3 files (not in diff) in sympy/tensor were modified. more

Misses +2
Partials -365
Hits +363

5 files (not in diff) in sympy/stats were modified. more

Misses +3
Partials -98
Hits +95

9 files (not in diff) in sympy/solvers were modified. more

Misses +296
Partials -930
Hits +634

12 files (not in diff) in sympy/simplify were modified. more

Misses +1
Partials -590
Hits +589

3 files (not in diff) in sympy/sets were modified. more

Misses +3
Partials -198
Hits +195

4 files (not in diff) in sympy/series were modified. more

Partials -60
Hits +60

3 files (not in diff) in ...ympy/printing/pretty were modified. more

Misses +3
Partials -274
Hits +271

19 files (not in diff) in sympy/printing were modified. more

Misses +2
Partials -537
Hits +535

[][cc-pull]

Powered by Codecov. Last updated by 8cea7c4
[cc-base-branch]: https://codecov.io/gh/skirpichev/omg/branch/master?src=pr
[cc-pull]: https://codecov.io/gh/skirpichev/omg/pull/178?src=pr


chore: extract only tflint file

PR o'clock
Description
Fix CI error with pre-commit
Checklist

[x] README.md has been updated after any changes to variables and outputs. See https://github.com/terraform-aws-modules/terraform-aws-eks/#doc-generation

Hi @ArchiFleKs !
A similar fix we have already applied for terraform-docs where sometimes multiple files were present in a zip archive and it broke CI sometimes.
This PR is safe to merge but it won't fix anything unless tflint put more files into zip, so merging for the future generations anyway :)


fix: coffee options

:tada: This PR is included in version 1.6.1 :tada:
The release is available on:

v1.6.1
v1.6.1
GitHub release

Your semantic-release bot :package::rocket:


Create Nemascan proxy module + script

All comments should be fixed.

Removed hardcoded Git & container information in #291.


Add initial support for PostgreSQL

Closes #600
As title stated :)
A quick run with docker-compose -f docker-compose.postgresql.yml up and testing with a local docker client pushing to local registry doesn't show any errors so hopefully i didn't miss anything.
cc @thaJeztah @endophage

Thanks! I'll leave code-review to the notary team, but I like PostgreSQL, so 😍

@dqminh thank you for adding this feature!  Could you please rebase?  I think you're hitting a linter CI issue that we addressed a few days ago.
We should have a testing infrastructure for postgres if we choose to support it - I think a good starting point would be adding a case to buildscripts/integrationtest.sh if you don't mind :)

@riyazdf i cant get the integration test to pass in my local environment. Is there any special tricks ?
Here is part of the build failure with rethinkdb as an example:
signer_1     | successfully reached and updated RethinkDB
signer_1     | {"level":"info","msg":"Version: 0.3, Git commit: 2a49e9a","time":"2016-08-17T11:10:27Z"}
signer_1     | {"level":"debug","msg":"Trusting 2 certs","time":"2016-08-17T11:10:27Z"}
signer_1     | {"level":"debug","msg":"Default Alias: timestamp_1","time":"2016-08-17T11:10:27Z"}
signer_1     | {"level":"debug","msg":"attempting to connect user signer to host rdb-proxy.rdb","time":"2016-08-17T11:10:27Z"}
signer_1     | {"level":"debug","msg":"Trusting 1 certs","time":"2016-08-17T11:10:27Z"}
server_1     | trying to contact RethinkDB for 30 seconds before failing
server_1     | {"level":"info","msg":"Version: 0.3, Git commit: 2a49e9a","time":"2016-08-17T11:10:26Z"}
server_1     | {"level":"debug","msg":"Trusting 1 certs","time":"2016-08-17T11:10:26Z"}
server_1     | {"level":"info","msg":"Using remote signing service","time":"2016-08-17T11:10:26Z"}
server_1     | {"level":"info","msg":"Using rethinkdb backend","time":"2016-08-17T11:10:26Z"}
server_1     | {"level":"debug","msg":"attempting to connect admin to host rdb-proxy.rdb","time":"2016-08-17T11:10:26Z"}
server_1     | {"level":"debug","msg":"Trusting 1 certs","time":"2016-08-17T11:10:26Z"}
client_1     | make: Entering directory '/go/src/github.com/docker/notary'
client_1     | pkcs11 import was not found anywhere without a build tag, yay
client_1     | + /go/src/github.com/docker/notary/bin/notary
server_1     | {"level":"debug","msg":"creating user server for db notaryserver","time":"2016-08-17T11:10:29Z"}
server_1     | successfully reached and updated RethinkDB
server_1     | {"level":"info","msg":"Version: 0.3, Git commit: 2a49e9a","time":"2016-08-17T11:10:29Z"}
server_1     | {"level":"debug","msg":"Trusting 1 certs","time":"2016-08-17T11:10:29Z"}
server_1     | {"level":"info","msg":"Using remote signing service","time":"2016-08-17T11:10:29Z"}
server_1     | {"level":"info","msg":"Using rethinkdb backend","time":"2016-08-17T11:10:29Z"}
server_1     | {"level":"debug","msg":"attempting to connect user server to host rdb-proxy.rdb","time":"2016-08-17T11:10:29Z"}
server_1     | {"level":"debug","msg":"Trusting 1 certs","time":"2016-08-17T11:10:29Z"}
server_1     | {"level":"info","msg":"Starting Server","time":"2016-08-17T11:10:29Z"}
server_1     | {"level":"info","msg":"Enabling TLS","time":"2016-08-17T11:10:29Z"}
server_1     | {"level":"info","msg":"Starting on :4443","time":"2016-08-17T11:10:29Z"}
client_1     | + client
client_1     | make: Leaving directory '/go/src/github.com/docker/notary'
server_1     | {"go.version":"go1.6.3","http.request.host":"notary-server:4443","http.request.id":"695d2c85-9e5b-43e1-bb0b-05a6f52e3b55","http.request.method":"GET","http.request.remoteaddr":"<IP_ADDRESS>:54948","http.request.uri":"/","http.request.useragent":"curl/7.38.0","level":"info","msg":"metadata not found: You have requested metadata that does not exist.","time":"2016-08-17T11:10:39Z"}
client_1     | {"errors":[{"code":"METADATA_NOT_FOUND","message":"You have requested metadata that does not exist."}]}
server_1     | {"go.version":"go1.6.3","http.request.host":"notary-server:4443","http.request.id":"695d2c85-9e5b-43e1-bb0b-05a6f52e3b55","http.request.method":"GET","http.request.remoteaddr":"<IP_ADDRESS>:54948","http.request.uri":"/","http.request.useragent":"curl/7.38.0","http.response.contenttype":"application/json; charset=utf-8","http.response.duration":"442.864µs","http.response.status":404,"http.response.written":104,"level":"info","msg":"response completed","time":"2016-08-17T11:10:39Z"}
client_1     | Traceback (most recent call last):
client_1     |   File "buildscripts/testclient.py", line 371, in <module>
client_1     |     run()
client_1     |   File "buildscripts/testclient.py", line 361, in run
client_1     | building a new client binary
client_1     | ---
client_1     | ---- Initializing a repo, adding a target, and pushing ----
client_1     |
client_1     | $ /go/src/github.com/docker/notary/bin/notary -c cmd/notary/config.json -d /tmp/tmpnPDD4Q_main init 809bb49b202f401a90735179ad4345cf
client_1     | No root keys found. Generating a new root key...
client_1     |
client_1     | * fatal: client is offline
client_1     |
client_1     |     Tester(repo_name, Client(server, username_passwd)).run()
client_1     |   File "buildscripts/testclient.py", line 302, in run
client_1     |     test_func(tempfile, tempdir)
client_1     |   File "buildscripts/testclient.py", line 157, in basic_repo_test
client_1     |     self.client.run(["init", self.repo_name], self.dir)
client_1     |   File "buildscripts/testclient.py", line 140, in run
client_1     |     raise CalledProcessError(retcode, command, output=output)
client_1     | subprocess.CalledProcessError: Command '['/go/src/github.com/docker/notary/bin/notary', '-c', 'cmd/notary/config.json', '-d', '/tmp/tmpnPDD4Q_main', 'init', '809bb49b202f401a90735179ad4345cf']' returned non-zero exit status 1
integrationrethink_client_1 exited with code 1
Aborting on container exit...
Makefile:130: recipe for target 'integration' failed

For mysql, it's either this or it timed out when trying to reach the server.

@dqminh This is just a stab in the dark... It looks like the signer connected ok with the DB but the server failed to do so immediately after, so could you increase the connection timeout here:  https://github.com/docker/notary/blob/master/migrations/migrate.sh#L14 and here: https://github.com/docker/notary/blob/master/migrations/migrate.sh#L39 to maybe 60, and see if that helps at all?

Actually ignore my comment.  :(

Could you instead change:  https://github.com/docker/notary/blob/master/buildscripts/testclient.py#L100 to say
self.client = [binary, "-D", "-c", "cmd/notary/config.json"]

This should hopefully print out debug output for the client so we can see why it can't connect with the server, although the client debug logs and the actual client output may be slightly out of sync.

client_1     | time="2016-08-17T21:22:13Z" level=error msg="could not reach https://notary-server:4443: Get https://notary-server:4443/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
client_1     | time="2016-08-17T21:22:13Z" level=info msg="continuing in offline mode"

So it looks like something is probably wrong with DNS inside my VM. Amazingly enough when i tried it with Docker for Mac it works 😵
Going to continue with the thing that works until i have more time to figure out the DNS situation :/

jenkins, test this please

LGTM!  Thank you adding this!

Thank you for updating the postgres database setup. I realize I probably seem like I'm being unreasonably pedantic, but as a maintainer, we are responsible for all the code in the repo, including that contributed by external contributors who may not be available in the future to make changes. As such, we have to make conscious efforts to reduce variation, which is unnecessary complexity, so we can mentally stay on top of all the necessary complexity.
We're taking a look at why the ineffassign checks are suddenly failing. I have some time already scheduled tomorrow afternoon to do some related style housekeeping so I'll open a PR to fix those assuming we don't find some other reason ineffassign started raising errors.

@dqminh thanks for your work on this!
Could you please rebase? I think that should handle the unrelated CI issues :)

Thanks for your contribution @dqminh ! It seems need a rebase here :)

@dqminh sorry we're taking a while to merge this. If you want to enable the new GH feature that lets maintainers modify your branch we'll happily do the last rebase and work out any failures so we can get it merged.

FYI, https://github.com/blog/2247-improving-collaboration-with-forks

@endophage @HuKeping i already did that :p not sure if how its reflected on your side though.

Hmmm, yeah, not seeing anything on my end. I guess I have to just try and push and see if it works.

LGTM, pending CI

LGTM, pending CI

Thank you for following up on this @HuKeping!  Thanks for your patience @dqminh!

LGTM

Thank you for your work on this @dqminh !


No sound on iOS WKWebView

As title says Tone.js wont play a sampled sound on a cordova iOS app in WKWebView mode.
The sound works fine on any other platform, on web (desktop), Android (browser and app) and even on iOS in the browser. But not in the iOS app.
I've tried the solution to start the audio on user input but it still does not work. Due to a closed repo I have no way of giving you code to reproduce the issue.
You can test out the app here > https://web.sonid.app or download Sonid in play store/app store.
I hope someone can help me out.
Thanks!

The app works fine for me! Make sure that your device is not on silent
There is a trick to get Web Audio to come out of a muted device on iOS by also starting an HTMLAudioElement at the same time, though in my experience it doesn't work very reliably.

You really have sound on the iPhone app? v0.6.3? on which iOS version?
My iPhone 11 with latest iOS has no sound...actually i forgot to mention it does have sound when I am running the devserver (vue/nodejs) aswell but not when built :S sound is on.

I'm testing on an iPhone 11 with the latest iOS. As i said, i had to turn the phone off silent with the rocker switch in order to get any sounds, but once i did that, it works fine when testing the page "Naturals 1".

ow okay.. very weird then it has no sound for me, but thanks a lot for testing!

I know it hasnt anything to do with tonejs but would you know any other reason sound is not working for me on the same device and versions as youve tested it..?

Can you test if other web audio websites work for you? Like the Tone.js examples or Ableton's Learning Synths

The ToneJs examples are working fine but, to be clear, my app works fine when used in browser version (web.sonid.app) but I have no sound when using the cordova WKWebView app version! (found here: https://apps.apple.com/us/app/sonid/id1490221762?ls=1) Did you tryout the web or app version?

oh i see, sorry for my misunderstanding. No i didn't test out the downloaded app, only tested in the browser.
Check out this issue's comment to see if those permissions do anything for you.

I am unsure of what damage this could do to other working app parts (even on other devices)
<meta http-equiv="Content-Security-Policy" content= "default-src 'self' ws: data: gap: https://ssl.gstatic.com 'unsafe-eval' 'unsafe-inline'; child-src 'self' blob: * ; style-src 'self' 'unsafe-inline' http://fonts.googleapis.com/; font-src *; media-src 'self' blob: data: ">

I still havent found a solution for this :S

sorry to hear that. Seems like it's a Web Audio + WKWebView issue. You've probably tried searching Cordova's forums. Have you created an issue with them?

I have ran into this issue as well.
What's weird is that synths do work, but it's impossible to play any audio that was loaded with a buffer - any mp3 files.
This is really frustrating, don't think it's an issue with Tone though...

I still have this issue. Please re-open.

Might help someone, after a LONG time of having this problem i found that what caused it was that i was trying to access the caches object which for some reason does not exist within the WKWebView....
Not sure why it doesn't exist there since it does exist in Safari, and not sure how we should otherwise cache mp3 files.

How did you find out and do you have a solution?

What solved it for me was checking if the app is running within a WKWebView and if so, load the samples without caching them using the 'caches' object.
After that everything was working properly, and tears of joy ran down my eyes.
I was still getting warning from xcode though, and was surprised to see they had nothing to do with whether the samples were really playing or not...

And how do I load the samples without caching them? :/

what so you mean? loading samples doesn't have anything to do with caching them, just load them regularly.
If you havent used the caches object than there's probably something else causing the bug...

After all this time ive found a solution. I dont completely understand why but with this plugin things started working > https://github.com/globules-io/cordova-plugin-ios-xhr


Enable processing queue split policy by domainID

What changed?
Change feature flag for enabling different kinds of split policy to be ones filtered by domainID.

Why?
so that we can only enable split policy for certain domains, in case most of them get split

How did you test it?
Will test on staging2

Potential risks
N/A, disabled by default

Coverage decreased (-0.4%) to 66.95% when pulling e92284f73d42f88fd61d1e102c6fb00720f62187 on yycptt:enable-split-by-domain into 63e8bacf5e9811801dc8d94098b341553c242ad5 on uber:master.


Scala 2.13.0-M4

well I think we can also change the value inside the build.sbt and travis-ci

What do you mean? I have changed build.sbt
https://github.com/playframework/twirl/blob/ec2cafe1b6c959fd74b5ffd796260ce07198eb8b/.travis.yml#L5-L9

well nvm, but you could try to use the newest interplay which already has the scala version defined.


Add manifest versions to the history result

Issue: https://issues.redhat.com/browse/JBEAP-27348
Upstream: #21

Thanks @spyrkob


[gRPC]Add observability support for grpc services

Purpose
This PR is to add observability support for gRPC services
Fixes #13409

Closing the PR due to changes in observability feature with jballerina migration. We will reopen this once we migrate observability to jballerina


Log participant begins speaking, participant stops speaking

As an experimenter, I want to log the times that participants begin and end speaking, so that I can display to participants a dial indicating how much of the time they have been speaking for so far, and also save outcome measurements like the number of turns taken, the length of each turn, how much each person spoke over the course of the conversation, how many people were participating, etc.
In our discussion with Daily tech reps, they indicate that the client-side API exposes events when a speaker starts and stops talking. We should be able to tap into this and append to an speaking time event log on the player object, so that after the fact we can reconstruct the whole history of when each player was talking by extracting events from all player objects.
We should also have a flag for whether a player is speaking currently, to help with the live meter. We'll probably need to compute the total conversation time when we get a player-stops-talking event, and save it to the player object, and then to display the meter to the participant, also will need to add the amount of time since they started talking.
This will happen in client/src/components/VideoCall.jsx.
This is going to require looking through the daily docs and finding out how to write a function similar to:
    callFrame.on("track-started", (event) => {
      // Why are these not triggering correctly???
      if (event.participant.local) {
        if (event.track.kind === "video") {
          player.set("videoEnabled", true);
          console.debug("player video started");
        } else if (event.track.kind === "audio") {
          player.set("audioEnabled", true);
          console.debug("player audio started");
        }
        console.debug("track-started", event);
      }
    });

except instead of "track-started" it fires on whatever callback is associated with the player speaking or stopping.
If it turns out we cant do this qwiht a daily callback we may neet to take volume off the microphone level.

Meeting event called "active speaker change" and "active speaker mode change"?
Track started also tracks audio - what does it do?
Can we get live volume levels from somewhere?
What does active speaker change and callbacks do?
Millie has looked at some of this too. Michael and MIllie will do some partner programming.
What gets logged in the callback.
empirica has "append"
player.append("key", value")

key should be something like "participantSpeakingEvents", event should be something like
{
type: "start" | "stop"
timestamp: Date.now()
cumulative: currentCumulative + elapsed in this speaking chunk
}

Hi @gumillie222,
The last notes I have on this issue are that you have it working using the speaker change callback - can you give me an update in this issue just so we can track status, and your progress on using the "volume" information instead of the callback?

ran into this issue

James said we might need to npm install a new library. Will try that in a new branch later.

Client page successfully loaded after I npm installed the daily-react library, but the following error is showing:

I've tried to debug it for a bit but couldn't figure it out. @JamesPHoughton do you have any idea why?

hooks are tricky, there are some very particular rules about when you can call them. Here are the official docs on hooks, but it's a tricky subject, which means lots of people have good youtube videos explaining it.


Uncaught TypeError: Cannot read property 'title' of undefined

Hi, I am getting this error with the API version of using the library:

Uncaught TypeError: Cannot read property 'title' of undefined

I am using the code from the example:
    Spotlight.show([{         title: "Image 1",         description: "This is a description.",         src: "gallery/london-1758181.jpg"     },{         title: "Image 2",         description: "This is a description.",         src: "gallery/sea-1975403.jpg"     },{         title: "Image 3",         description: "This is a description.",         src: "gallery/newport-beach-2089906.jpg"     }]);

the image path doesn't matter for now.

Everything works when I use the attributes, but I need to set it up with JS.
If I console.log the Object, I see its properties:
autofit: ƒ bb(a) close: ƒ eb(a) fullscreen: ƒ Za(a) goto: ƒ Z(a) init: ƒ Qa() menu: ƒ kb(a) next: ƒ W() play: ƒ ab(a) prev: ƒ $a() show: ƒ (a,b) theme: ƒ Na(a) zoom: ƒ nb(a)

did you manage to solve the problem? i got the same

maybe y'all got it solved, but it just happened to me..
Alright, it depends on how and when you inject script. Spotlight adds a div with class "pane" on "DOMContentLoaded" which is referenced and undefined in the function which raises the exception. Obviously you'll have to take care of the script injection yourselves.
I fixed it in the (current master) bundled version like this:
Search for
P&&V(!1);K.parentNode.removeChild(K);

and change it to
P&&V(!1);K.parentNode&&K.parentNode.removeChild(K);

then, when you're ready to start the script, just call Spotlight.init like this
    let spotlightScript = document.createElement('script');
    spotlightScript.src = "/scripts/spotlight.bundle.js";
    spotlightScript.async = true;
    spotlightScript.onload = () => Spotlight.init();

same , chris answer didnt help

did you manage to solve the problem? i got the same

Is there any solution as I'm faing the same error! PLEASE Help

Hi, I am getting this error with the API version of using the library:

Uncaught TypeError: Cannot read property 'title' of undefined

I am using the code from the example:
 Spotlight.show([{ title: "Image 1", description: "This is a description.", src: "gallery/london-1758181.jpg" },{ title: "Image 2", description: "This is a description.", src: "gallery/sea-1975403.jpg" },{ title: "Image 3", description: "This is a description.", src: "gallery/newport-beach-2089906.jpg" }]);

the image path doesn't matter for now.

Everything works when I use the attributes, but I need to set it up with JS.
If I console.log the Object, I see its properties:
autofit: ƒ bb(a) close: ƒ eb(a) fullscreen: ƒ Za(a) goto: ƒ Z(a) init: ƒ Qa() menu: ƒ kb(a) next: ƒ W() play: ƒ ab(a) prev: ƒ $a() show: ƒ (a,b) theme: ƒ Na(a) zoom: ƒ nb(a)

Is there any solution as I'm haing the same error! PLEASE Help

@web56
No, I switched to another lib

The programmatic usage was slightly broken. The focus was basically on the markup-only paradigm. That all is now fixed/improved in the new version >= 0.7.0.


Web "Exception: Unknown Error"

Describe the bug
This code:
class PDFWidget extends StatelessWidget {
  final String path;
  final Future<PdfDocument>_page;
  late final PdfControllerPinch _controller;

  PDFWidget({
      required
    String this.path,
    Key? key
  }):
      _page = path.startsWith('http')
        ? PdfDocument.openData(InternetFile.get(path)) : PdfDocument.openAsset(path),
      super(key: key) {
        _controller = PdfControllerPinch(document: _page);
      }

  @override
  Widget build(BuildContext context) {
    return PdfViewPinch(controller: _controller);
  }
}

works fine on desktop and mobile, but all I see where the pdf should be in web is "Exception: Unknown Error".
To Reproduce
Steps to reproduce the behavior:

Set up assets with a pdf
Render the above object with a suitable asset path.

Expected behavior
The pdf should display.
Additional context
MacOS M1.
Flutter (Channel stable, 2.10.3, on macOS 12.2.1 21D62 darwin-arm, locale en-US)
• Flutter version 2.10.3 at /opt/homebrew/Caskroom/flutter/2.2.1/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 7e9793dee1 (7 days ago), 2022-03-02 11:23:12 -0600
• Engine revision bd539267b4
• Dart version 2.16.1
• DevTools version 2.9.2

Same problem here

@gisborne @DevFauche
please

Re-check installation guide. Runned or not command flutter pub run pdfx:install_web in project dir
is have file web/index.html same code:
https://github.com/ScerIO/packages.flutter/blob/546ada85da994d1273f9208357ebda7a1f6435be/packages/pdfx/example/web/index.html#L35-L43
If code not exist add manually
Target host requires CORS policy. For example:

// Not works. www.africau.edu not support CORS for any hosts
   PdfControllerPinch(
      document: PdfDocument.openData(
        InternetFile.get(
          'http://www.africau.edu/images/default/sample.pdf',
        ),
      ),
    );

 // Works, proxy add header with CORS awailable for XHR request anywhere
    PdfControllerPinch(
      document: PdfDocument.openData(
        InternetFile.get(
          'https://api.codetabs.com/v1/proxy/?quest=http://www.africau.edu/images/default/sample.pdf',
        ),
      ),
    );

@gisborne @DevFauche Please re-check installation guide.

Runned or not command flutter pub run pdfx:install_web in project folder
is have file web/index.html same code:
https://github.com/ScerIO/packages.flutter/blob/546ada85da994d1273f9208357ebda7a1f6435be/packages/pdfx/example/web/index.html#L35-L43
If code not exist add manually

Target host requires CORS policy. For example:

// Not works. www.africau.edu not support CORS for any hosts
   PdfControllerPinch(
      document: PdfDocument.openData(
        InternetFile.get(
          'http://www.africau.edu/images/default/sample.pdf',
        ),
      ),
    );

 // Works, proxy add header with CORS awailable for XHR request anywhere
    PdfControllerPinch(
      document: PdfDocument.openData(
        InternetFile.get(
          'https://api.codetabs.com/v1/proxy/?quest=http://www.africau.edu/images/default/sample.pdf',
        ),
      ),
    );

The code in point one helped me to get the package working on web. Thanks. (I am only trying to load from assets directory)

The command flutter pub run pdfx:install_web did not do anything in my project, but the output of the command showed "success"

Also seeing this - running the above command got me this:
[Modify web/index.hml by addition pdfjs]
Already installed, operation aborted
pub finished with exit code 2

In my case, the PDF is rendering fine in a local build but gives me a 404 when deployed. I also checked my index.html and it has the script lines added in your above comment. Any updates or things to try @SergeShkurko ?


Shift+Tab unindent issue in Python

Using the official Python demo: https://codemirror.net/mode/python/
Paste in this code:
    if 1:
        p = 1
    if 2:
        p = 2

Select all text then try Shift+Tab to unindent it.
I expected this:
if 1:
    p = 1
if 2:
    p = 2

But got this:
if 1:
    p = 1
    if 2:
        p = 2

This issue is also described here: https://github.com/LightTable/Python/issues/41

Shift-tab doesn't unindent by default (ctrl/cmd-[ does). Shift-tab auto-indents, and since python indentation isn't unambiguous from source, that may change the code.

OK I see, thank you for the explanation.


feat(dapp-console-api): delete app endpoint

#296  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tremarkley and the rest of your teammates on  Graphite


Fixes #5735 : ContentType name encoding in Lists

Do you think we could have an ActionLink taking an IHtmlString and would not encode it when rendered?

Either this or not use ActionLink when the text is localized, but render a link and use Url.Action

I implemented ActionLink with IHtmlString linkText.
Also done the same with RouteLink

Much better, right ?


Add view transitions when switching themes

Describe the feature in detail (code, mocks, or screenshots encouraged)
Skeleton v3 doc is powered by Astro, and Astro but-ins View Transitions. This means we can use that feature directly：https://docs.astro.build/en/guides/view-transitions/.
like this:

What type of pull request would this be?
New Feature
Provide relevant links or additional information.
https://docs.astro.build/en/guides/view-transitions/.

I just implemented this. The circle growing animation like the one in the screenshot didn't end up looking very good so I added a line sweep instead
screen.webm
@endigo9740 Should I move forward with a pull request or skip this feature?

@Niceadam no, we're leaving these types of features until the site design is closer to finalized. Feel free to note how you achieved this here or link to a repo that showcases the process though. My plan is to revisit documentation after we complete our current pass through components.

Alright, leaving the changes here, modify to taste. The new inline script for sites/next.skeleton.dev/src/components/docs/ThemeSwitch.astro:
<script is:inline>
    const elemSelect = document.getElementById('themesList');
    const lsTheme = localStorage.getItem('theme') || 'cerberus';

    // Init
    elemSelect.value = lsTheme;
    document.body.dataset.theme = lsTheme;

    // Change Theme
    function changeTheme(event) {
        const selectedTheme = event.target.value;
        document.body.dataset.theme = selectedTheme;
        localStorage.setItem('theme', selectedTheme);
    }

    // Change Handler
    async function onChangeHandler(event) {
    if (!document.startViewTransition || window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
        changeTheme(event);
        return;
    }

    await document.startViewTransition(() => {
         changeTheme(event);
    }).ready

    const { top, left, width, height } = event.target.getBoundingClientRect();
    const x = left + width / 2;
    const y = top + height / 2;
    const right = window.innerWidth - left;
    const bottom = window.innerHeight - top;
    const maxRadius = Math.hypot(
      Math.max(left, right),
      Math.max(top, bottom),
    );

    document.documentElement.animate(
      {
        clipPath: [
          `inset(0px 100% 0px 0px)`,
          `inset(0)`,
        ],
      },
      {
        duration: 500,
        easing: 'ease-in-out',
        pseudoElement: '::view-transition-new(root)',
      }
    );
	}

    // Listeners
    elemSelect.addEventListener('change', onChangeHandler);
</script>

and add this in app.css
::view-transition-old(root),
::view-transition-new(root) {
	animation: none;
	mix-blend-mode: normal;
}


⚠ Bofrost.at has degraded performance

In cbc379d, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1533 ms

Resolved: Bofrost.at performance has improved in e2294c1 after 20 minutes.


Operation cancelled when trying to run samples.

i'm trying to run the sample to extract text from speech using the Speech SDK samples (tried both quick start & samples.console) but for some reason the operation is cancelled.
The error response I get when I specify "useast" for region:
The request was canceled. Did you update the subscription info?
Connection failed (no connection to the remote host). Please check network connection, firewall setting, and the region name used to create speech factory.
Disconnected from the target VM, address: '<IP_ADDRESS>:53696', transport: 'socket'
The error response I get when I specify "eastus" and "global" for region:
The request was canceled. Did you update the subscription info?
WebSocket Upgrade failed with an authentication error (401). Please check the subscription key or the authorization token, and the region name.
I copied the subscription key from the Azure portal but I am not sure if the region i'm passing is correct for East US. I tried with "useast", "eastus" and "global" but no luck.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: efae7ff6-5557-221f-7539-5d2d1883127d
Version Independent ID: 4b868e15-0248-635c-aa2f-d591bbc77d65
Content: About the Cognitive Services Speech SDK - Microsoft Cognitive Services
Content Source: articles/cognitive-services/Speech-Service/speech-sdk.md
Service: cognitive-services
GitHub Login: @v-jerkin
Microsoft Alias: v-jerkin

I also made sure that the input file I used is a mono with 16kHz as well.

@vhothur Hi, the subscription key is not your Azure subscription ID, it's the key you generated when you created your service. The location of your service should be the one when you created your service, you can check it in your overview panel. Please see the attached.

Thanks @YutongTie-MSFT for helping.
@vhothur - please take the subscription as described from the Azure portal. The corresponding region name in the Speech SDK is "eastus", please see https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/regions.
Can  you double-check you are using a Speech subscription in Azure (named just "Speech", or "Speech (preview)" if you used it previously).
There's also a troubleshooting page (https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/troubleshooting) to help with validating your subscription key from the shell (using cUrl or Powershell).
Hope that helps, Mark

Cool - glad that it works for you now!

ops - #please-close


"Module not found: Error: Can't resolve './locale'" warning when building with Ant Design components

I'm sorry to risk opening a ticket here for this when I'm not 100% sure it's an issue with react-querybuilder 🙇 please feel free to close if this isn't your problem!
I'm encountering a warning
WARNING in<EMAIL_ADDRESS>1941:6-40
Module not found: Error: Can't resolve './locale' in '/home/afasih/Documents/my-app/node_modules/@react-querybuilder/antd/dist'

when building my react-querybuilder project, and as my CI (continuous integration) treats warnings as errors, I'm looking for how to fix this.
Reproduction steps
npx create-react-app my-app --template typescript
cd my-app
npm i --save react-querybuilder @react-querybuilder/antd @ant-design/icons antd

In App.tsx, replace the body with

import { antdControlElements } from "@react-querybuilder/antd";
import { QueryBuilder, RuleGroupType } from "react-querybuilder";
import "react-querybuilder/dist/query-builder.css";
import "antd/dist/antd.compact.css";

const fields = [
  { name: "firstName", label: "First Name" },
  { name: "lastName", label: "Last Name" },
];

const App = () => {
  const [query, setQuery] = useState<RuleGroupType>({
    combinator: "and",
    rules: [],
  });

  return (
    <QueryBuilder
      fields={fields}
      query={query}
      onQueryChange={(q) => setQuery(q)}
      controlElements={antdControlElements}
    />
  );
};

Then run npm run start
(This actually might produce some other warnings too, but the one I'm encountering in my application is the Module not found: Error: Can't resolve './locale'.)
Discussion
Searching the web shows that this surfaced in ~2020 due to an issue with Moment: cf.,

https://github.com/ant-design/ant-design/issues/23823 and
upstream https://github.com/moment/moment/issues/5472

These appear to have been fixed upstream, but I noticed that react-querybuilder's Ant package uses Ant 4.17.3 from about six months ago (in package.json) and, I know it's a stretch but I wonder if the antd bundled with this package is somehow either installing an old Moment, or if there's some other explanation/workaround?
Thanks for your help!

I'm inclined to think this is not an issue with RQB, since antd is actually a peer dependency and not a hard dependency. When you do
npm i --save react-querybuilder @react-querybuilder/antd @ant-design/icons antd

you get the latest version of all those packages. On top of that, even the antd entry in devDependencies for @react-querybuilder/antd uses a caret, so 4.17.3 is just the minimum version. The actual antd version currently used in development is 4.21.3 (see yarn.lock).
I tried to recreate your situation in this CodeSandbox, but it doesn't throw any errors.

Thanks for checking @jakeboone02! So I want to emphasize that this is a warning and not an error (even though the body of the message claims it's an error)—our CI builds our app just fine but like many CI systems treats warnings as errors and my ops team would prefer to keep that level of strictness.
And you can actually verify the warning by downloading the CodeSandbox (screenshot included if helpful, I had to DuckDuckGo to find it :P), unzipping the zip, and running
npm i
npm run start

and seeing the following:
Compiled with warnings.

Module not found: Error: Can't resolve './locale' in '/home/afasih/Downloads/codesandbox-rbq/node_modules/@react-querybuilder/antd/dist'

<snip, unrelated issues with source maps for less files>

WARNING in<EMAIL_ADDRESS>1951:6-40
Module not found: Error: Can't resolve './locale' in '/home/afasih/Downloads/codesandbox-rbq/node_modules/@react-querybuilder/antd/dist'

I'm trying to see if CodeSandbox shows compiler warnings in the web app and failing :(
Again, it's totally conceivable that this is not a react-querybuilder problem! And indeed the yarn.lock has a very new version of Moment so that connection might be erroneous. Curious if you can think of any reasons for npm to complain like this? If not please feel free to close and I'll report back when I find a fix!
CodeSandbox download zip screenshot

Full compiler output for completeness
Compiled with warnings.

Module not found: Error: Can't resolve './locale' in '/home/afasih/Downloads/codesandbox-rbq/node_modules/@react-querybuilder/antd/dist'

Failed to parse source map: 'webpack://antd/./components/config-provider/style/index.less' URL is not supported

Failed to parse source map: 'webpack://antd/./components/icon/style/index.less' URL is not supported

Failed to parse source map: 'webpack://antd/./components/locale-provider/style/index.less' URL is not supported

Failed to parse source map: 'webpack://antd/./components/time-picker/style/index.less' URL is not supported

Failed to parse source map from '/home/afasih/Downloads/codesandbox-rbq/node_modules/react-querybuilder/src/query-builder.scss' file: Error: ENOENT: no such file or directory, open '/home/afasih/Downloads/codesandbox-rbq/node_modules/react-querybuilder/src/query-builder.scss'

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

WARNING in<EMAIL_ADDRESS>1951:6-40
Module not found: Error: Can't resolve './locale' in '/home/afasih/Downloads/codesandbox-rbq/node_modules/@react-querybuilder/antd/dist'

WARNING in ./node_modules/antd/dist/antd.compact.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/antd/dist/antd.compact.css)
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map: 'webpack://antd/./components/config-provider/style/index.less' URL is not supported

WARNING in ./node_modules/antd/dist/antd.compact.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/antd/dist/antd.compact.css)
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map: 'webpack://antd/./components/icon/style/index.less' URL is not supported

WARNING in ./node_modules/antd/dist/antd.compact.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/antd/dist/antd.compact.css)
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map: 'webpack://antd/./components/locale-provider/style/index.less' URL is not supported

WARNING in ./node_modules/antd/dist/antd.compact.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/antd/dist/antd.compact.css)
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map: 'webpack://antd/./components/time-picker/style/index.less' URL is not supported

WARNING in ./node_modules/react-querybuilder/dist/query-builder.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/react-querybuilder/dist/query-builder.css)
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/home/afasih/Downloads/codesandbox-rbq/node_modules/react-querybuilder/src/query-builder.scss' file: Error: ENOENT: no such file or directory, open '/home/afasih/Downloads/codesandbox-rbq/node_modules/react-querybuilder/src/query-builder.scss'

webpack compiled with 6 warnings

Here's one solution: I noticed in https://github.com/react-querybuilder/react-querybuilder/blob/74409f72e3a5e072533a086a03cabe3f7b2dbb7b/packages/antd/vite.config.js#L20
that you explicitly tell Rollup to treat certain imports as external so I thought to add moment to that:
diff --git a/packages/antd/vite.config.js b/packages/antd/vite.config.js
index 6cea4e6..aadeb99 100644
--- a/packages/antd/vite.config.js
+++ b/packages/antd/vite.config.js
@@ -17,7 +17,7 @@ export default defineConfig(({ mode, command }) => {
         formats: ['es', 'cjs'],
       },
       rollupOptions: {
-        external: ['react', 'react-querybuilder', 'antd', '@ant-design/icons'],
+        external: ['moment', 'react', 'react-querybuilder', 'antd', '@ant-design/icons'],
       },
       sourcemap: true,
     },

So one result is your dist files drop in size since moment is famously heavyweight:

old:

dist/index.es.js   125.13 KiB / gzip: 29.07 KiB
dist/index.cjs.js   63.70 KiB / gzip: 21.06 KiB

new:

dist/index.es.js   8.68 KiB / gzip: 2.46 KiB
dist/index.cjs.js   5.08 KiB / gzip: 2.09 KiB

The second result is, if I copy packages/antd/dist/*.js* (from my clone of react-querybuilder) to the downloaded CodeSandbox directory, overwriting those in codesandbox-rbq/node_modules/@react-querybuilder/antd/dist (where codesandbox-rbq is where I placed the contents of the zip file from CodeSandbox), the above recipe works successfully—I just see some irrelevant warnings related to LESS/SCSS which are readily fixed, and more importantly, no warning about unable to import ./locale.
What do you think? This is definitely outside my area of expertise but I think, given you're already telling Rollup that Ant and React etc. are external, it seeeeems reasonable to treat Moment as the same? Especially given that Ant is going to install Moment itself.
Hopefully it's ok to open a PR with this and see how tests fare?


Position Tracking Unity

I want to be able to track head position. For example, when I move head forward the camera should move forward too and so on.
I see trackPosition attribute in CardboardHead but it seems doesn't work properly. I try to print out Cardboard.SDK.HeadPose.Position but it always return (0.0, 0.0, 0.0) or just (0.0, 0.0, 0.1). Am I missing something?

TrackPosition is there because at some point in the future the Cardboard SDK will be used on a device like Tango that supports full position and orientation tracking.  On current phones, there is no positional tracking sensor, so the setting has no operational effect.

Ah ok, got it. Thanks!


Firefox sometimes shows native cell selection borders when dragging over a table

Firefox has its own (buggy) cell selection feature, which it appears can't be turned off completely. This sometimes causes blue borders to appear on cells when selecting.
We tried using -moz-user-select to suppress this by disabling selection for cells over email, which almost works, but even if you re-enable selection for child nodes, the margin at the sides of the cells remains unselectable, and clicking there won't place a cursor.
TinyMCE and CKEditor appear to have some workaround for this, but I haven't been able to find it.

I believe the workaround is to use execCommand to turn them off. Btw, this is a point we need to bring up in the editing taskforce.

See here https://github.com/ckeditor/ckeditor-dev/blob/fc149eeb4b92ba9ea64c6becee9e0ddff906097f/plugins/wysiwygarea/plugin.js#L554-L558

Here's a relevant bug report. Maybe we can get some traction on this: https://bugzilla.mozilla.org/show_bug.cgi?id=1289673


Template update v2.0.1

Update to nf-core tools template v2.0.1

PR checklist

[x] This comment contains a description of changes (with reason).
[x] If you've fixed a bug or added code that should be tested, add tests!

[x] If you've added a new tool - have you followed the pipeline conventions in the contribution docs
[x] If necessary, also make a PR on the nf-core/bcellmagic branch on the nf-core/test-datasets repository.

[x] Make sure your code lints (nf-core lint .).
[x] Ensure the test suite passes (nextflow run . -profile test,docker).
[x] Usage Documentation in docs/usage.md is updated.
[x] Output Documentation in docs/output.md is updated.
[ ] CHANGELOG.md is updated.
[x] README.md is updated (including new tool citations and authors/contributors).

This is a huge PR again, to ease a bit the review, I'd like to say that modifications to R and python scripts that come shipped with the pipeline are strictly only to fix trailing spaces and indentation 4 spaces formatting, in accordance to the new editorconfig settings

The rest of the files have also only been strictly modified to adhere to the new template.

Thanks a lot for your review @FriederikeHanssen , just fixed all your points!


Remove back-merge nonsense from mark-new-version.sh

This won't be compatible with
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/design/versioning.md,
and it hit a conflict with deleted files.


Bump cryptography to 43.0.0

What and why?
Bumps cryptography to 43.0.0 to address a vulnerability in a lower version.
Also updates the ignores and bumps other vulnerable packages:

urllib3
flask-cors
requests

How to test?
Check secure message works after the version bumps.
Jira
https://jira.ons.gov.uk/secure/RapidBoard.jspa?rapidView=1493&projectKey=RAS&view=detail&selectedIssue=RAS-1206

/deploy wilkia