fix: #1899 Language selection breaks app

What
Bug fix https://github.com/openfoodfacts/smooth-app/issues/1899
Screenshot
Language switching works well for languages shown in the language selection widget.
https://user-images.githubusercontent.com/102586132/169636306-54b99bee-74f8-468d-8e80-ef744d72dac7.mov
Part of

https://github.com/openfoodfacts/smooth-app/issues/1899

Codecov Report

Merging #1915 (00c0351) into develop (2ea0da3) will decrease coverage by 0.92%.
The diff coverage is 15.48%.

@@            Coverage Diff             @@
##           develop   #1915      +/-   ##
==========================================
- Coverage     8.86%   7.94%   -0.93%
==========================================
  Files          161     176      +15
  Lines         6623    8161    +1538
==========================================
+ Hits           587     648      +61
- Misses        6036    7513    +1477

Impacted Files
Coverage Δ

...h_app/lib/cards/category_cards/abstract_cache.dart
0.00% <0.00%> (ø)

...p/lib/cards/category_cards/asset_cache_helper.dart
0.00% <0.00%> (ø)

...p/lib/cards/category_cards/raster_async_asset.dart
0.00% <0.00%> (ø)

...oth_app/lib/cards/category_cards/raster_cache.dart
0.00% <0.00%> (ø)

..._app/lib/cards/category_cards/svg_async_asset.dart
0.00% <0.00%> (ø)

...smooth_app/lib/cards/category_cards/svg_cache.dart
0.00% <0.00%> (ø)

...th_app/lib/cards/data_cards/image_upload_card.dart
0.00% <0.00%> (ø)

...es/smooth_app/lib/cards/data_cards/score_card.dart
4.54% <0.00%> (-0.22%)
:arrow_down:

...t_cards/knowledge_panels/knowledge_panel_card.dart
0.00% <0.00%> (ø)

...knowledge_panels/knowledge_panel_element_card.dart
0.00% <0.00%> (ø)

... and 131 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 838e1ff...00c0351. Read the comment docs.


Polish root readme

Supersedes #83
Signed-off-by: Pavol Loffay<EMAIL_ADDRESS>

I will merge as it is trivial change to readme.


[Snyk] Security upgrade org.apache.jena:jena-arq from 4.9.0-SNAPSHOT to 5.2.0

Snyk has created this PR to fix 1 vulnerabilities in the maven dependencies of this project.
Snyk changed the following file(s):

jena-jdbc/jena-jdbc-core/pom.xml

Vulnerabilities that will be fixed with an upgrade:

Issue
Score
Upgrade

Stack-based Buffer Overflow SNYK-JAVA-COMGOOGLEPROTOBUF-8055227
  124
org.apache.jena:jena-arq:  4.9.0-SNAPSHOT -> 5.2.0  No Known Exploit

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Checkmarx One – Scan Summary & Details – 14386f68-192a-43e9-966c-e6ea6d210ae3
New Issues

Severity
Issue
Source File / Package
Checkmarx Insight

Use_of_Cryptographically_Weak_PRNG
/jena-arq/src/main/java/org/apache/jena/sparql/expr/E_Random.java: 34
Attack Vector

Fixed Issues

Severity
Issue
Source File / Package

Host Namespace is Shared
/docker-compose.yaml: 20

Improper_Restriction_of_Stored_XXE_Ref
/jena-iri/src/main/java/org/apache/jena/iri/impl/BuildViolationCodes.java: 35

Improper_Restriction_of_Stored_XXE_Ref
/jena-iri/src/main/java/org/apache/jena/iri/impl/BuildViolationCodes.java: 39

Improper_Restriction_of_Stored_XXE_Ref
/jena-iri/src/main/java/org/apache/jena/iri/impl/BuildViolationCodes.java: 38

Networks Not Set
/docker-compose.yaml: 20


MM-17129: HTTP and attachment size limits

Summary:

Adds a hidden config MaxAttachmentSize, defaults to 10Mb
Limits upload-able attachment size
Limits Jira HTTP response size
Added a convenience type ByteSize to work with size values in config
Includes, and effectively refactors https://github.com/mattermost/mattermost-plugin-jira/pull/248

Tickets:
https://mattermost.atlassian.net/browse/MM-17129
https://mattermost.atlassian.net/browse/MM-17133

@levb Something strange may be going on here. After I deploy the plugin built from this branch lev-MM-17129-attachment-size , the create and attach options disappear from the post menu and when I try to use /jira connect, I get a message in the browser could not get user info for client, err: EOF: Could not parse JSON: unexpected end of JSON input
This occurs on both cloud and server. I have confirmed that reverting to the master version of the plugin resolves the issue.
Can you advise on next steps?

Oh! I took out the config value declaration to hide it, and it hid the default. Will push a fix shortly, @DHaussermann

LGTM barring fixes, will re-review

@DHaussermann try again please?

@levb I bulled down from this repo and rebuilt within the last 10 minutes but am still seeing the same error.
If you're sure it's fixed I can try to repeat this

Testing passed.

Files can still be attached to Jira when Jira ticket is created
Files can now be attached to Jira comment
Files under 10MB can be attached
Files over 10MB can be attached
When Attachment fails on task creation or comment creation, the user who attempted to attach received a DM
Tested on Server and Cloud

LGTM


Incorrect generation for xmlObject when arrays are serialized with XM…

…L serializer.
Closes https://github.com/RSuter/NJsonSchema/issues/777

@Rsuter, do you have any feedback on this? I have been testing it out end to end with NSwag also to see the full result besides the updated Unit tests

Thanks for the PR. Looks good, but to be honest I dont really know the XML feature... did you ensure that you just fixed array handling and didnt break existing stuff?

@RSuter , I have been running it end to end tests with the NJsonSchema incorparated with NSwag and executed our full pipleline and compared the full Swagger spec before and after and the only changes i found is that the ArrayOf* and the Int32 => int seems to work and no other changes.
There were some required parameter changes, but i think you have added that since our last NSwag upgrade....so i feel quite good :-).

Great, when do you think it's possible to get out a new version of NSwag with this change included?

Releasing NJS v9.11.1


Generated files using LabVIEW 32 bit do not work when deploying to LinuxRT

This bug is a little strange so I will do my best to describe the situation.
I have LabVIEW 2021Sp1 32 bit in which we have done most of our development for a server and a client application. LabVIEW 2021 on a LinuxRT target (natively 64bit) seems to work just fine, and we've used it for a long time now. I installed LabVIEW 2023 64bit IDE and updated the Target to LabVIEW 2023. If I try to deploy my application using the previously-generated grpc files in LabVIEW 2023 64bit, the application crashes lvrt; throwing a pointer reference error on the screen.
I regenerated the files using LabVIEW 2023 64 bit and all was well. The problem with that is that I would like to continue using LabVIEW 2021 for right now as our source-code and in that, I am FORCED to use 32bit as RT is not supported in LabVIEW 2021 64bit IDE. What I have had to do to keep that version of LabVIEW is generate using 2021 64bit and using those files, those seem to work fine in LabVIEW 2022 and LabVIEW 2023.
Is it expected that LabVIEW 2021 32bit-generated files would not work in LabVIEW 2022/2023 64bit? That seems odd to me and was confirmed as a little odd by the LabVIEW User Group.
AB#2537790

Thank you for reporting this issue. We're closing it as there has been no response from for an extended period. However, please remember that you can reopen this issue at any time if you have more information to provide or encounter the problem again in the future. We value your input and look forward to any future interaction. Thank you for your contribution.

This version of the HPS API contains the generated gRPC files in labview 2021 32bit. I was trying to use this on LabVIEW 2023 64bit when I realized the issue. It might be challenging to use this code as-is, though. Unfortunately I was not able to get time to make a strippsed-down version of our problem in time.
https://github.com/ni/srdt-volta/releases/download/v0.1.2-rc/ni-hps-17000-client-api_0.1.2-0_windows_all.nipkg
I will leave this closed for now as we have no need to deliver LabVIEW 2021 32bit.


Wired 360 flip

Could someone please take a look at this log, and maybe explain why the drone flips 360.
https://logs.px4.io/plot_app?log=46ebc350-9cb9-4eee-9892-a2f54c2aa4ed
Thank you.

i guess this is not really the right place to ask this question. i will try https://discuss.px4.io/ instead

Hi @mathias-h , your roll rate estimate and set point diverge, (the autopilot wants to roll one direction and the drone rolls the other way).  It looks like the opposite control output from what is required is being applied. Verify your motor rotation directions as a first start and, (as you are doing), continue the discussion on px4 discuss.

I’m pretty sure the motor directions are ok.
The drone flies fine in manual mode.
And just before the flip it flew for about a minute just fine.
But where is the link to the discuss topic:
https://discuss.px4.io/t/quad-destroyed-360-flip-in-altitude-mode/13975


Add note to documentation about Protege sorting issue

See #646. Both Contributing.md and the style guide should note that Protege editors need to:

Do a serialization and commit before editing.
Remove stub definitions added by Protege (skos annotation properties, etc.)

Closing: moved to issue #567.

@rjyounes Is this still open for a reason? The last comment says its being closed.


Implement undo command

Summary of this PR

Implement undo for concrete commands
Add undo stack to model
Add execution status and assertions for all commands

Fixes #109, fixes #110

since I was doing the review face-to-face with you, so forget to leave any review comment but in order to pass the personal goal check I have to so hope you don't mind these late review I know we have already solved everything


Need to add comments

Confusing for others when there's no comments on code

Added comments to the code explaining what is happening


 ECC |
| Fan  Temp  Perf            Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA A100 80GB PCIe           On | 00000000:08:00.0 Off |                    0 |
| N/A   33C    P0               64W / 300W|  44024MiB / 81920MiB |      0%      Default |
|                                         |                      |             Disabled |
+-----------------------------------------+----------------------+----------------------+
|   1  NVIDIA A100 80GB PCIe           On | 00000000:48:00.0 Off |                    0 |
| N/A   32C    P0               61W / 300W|  44032MiB / 81920MiB |      0%      Default |
|                                         |                      |             Disabled |
+-----------------------------------------+----------------------+----------------------+
|   2  NVIDIA A100 80GB PCIe           On | 00000000:88:00.0 Off |                    0 |
| N/A   32C    P0               62W / 300W|  44032MiB / 81920MiB |      0%      Default |
|                                         |                      |             Disabled |
+-----------------------------------------+----------------------+----------------------+
|   3  NVIDIA A100 80GB PCIe           On | 00000000:C8:00.0 Off |                    0 |
| N/A   32C    P0               62W / 300W|  43992MiB / 81920MiB |      0%      Default |
|                                         |                      |             Disabled |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A   1779528      C   /opt/conda/bin/python3.10                 44022MiB |
|    1   N/A  N/A   1779529      C   /opt/conda/bin/python3.10                 44030MiB |
|    2   N/A  N/A   1779530      C   /opt/conda/bin/python3.10                 44030MiB |
|    3   N/A  N/A   1779531      C   /opt/conda/bin/python3.10                 43990MiB |
+---------------------------------------------------------------------------------------+

Information

[X] Docker
[ ] The CLI directly

Tasks

[X] An officially supported command
[ ] My own modifications

Reproduction

trying to download and serve moreh/MoMo-72B-lora-1.8.6-DPO model via TGI (and moreh/MoMo-72B-lora-1.8.67-DPO which is now rank #1)
The generated text is absolutely gibberish. Here is an example prompt that fails in TGI but works fine in `transformers library:

"""<s>[INST] <<SYS>>
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe.  Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.

If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
<</SYS>>

describe about pros and cons of docker system. [/INST]"""

Which results in an never-ending:
,,In,<<,<<,<<,<<,<<,<<,
<<,<<,<<,<<, and, and, and, and, and, and,<<, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and,

Every prompt template, every configuration, results in this repeated tokens/symbols. I think there must be something wrong with the way the model is being loaded or served in TGI. (it seems like a bad tokenizer model, but I don't have enough knowledge to have a look myself)
Expected behavior
This model should work as it does in Hugging Face transformers:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from transformers import pipeline

model_id="moreh/MoMo-72B-lora-1.8.6-DPO"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.float16,
    device_map="auto",
)

pipe = pipeline(
    "text-generation",
    model=model,
    tokenizer=tokenizer,
    max_new_tokens=1024,
    temperature=0.7,
    top_p=0.95,
    repetition_penalty=1.15,
    return_full_text=False,
)

prompt = """[INST] <<SYS>>
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe.  Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.

If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.

<</SYS>>

describe about pros and cons of docker system. [/INST]

Answer:
"""

print(pipe(prompt)[0]['generated_text'])

This model is now rank #1 on the huggingface leaderboard, but it is based on MoMo-72B, which means the same issue of spitting out gibberish:
https://huggingface.co/abacusai/Smaug-72B-v0.1

same same. Tried every prompting method and was unable to get anything but gibberish.

I have tested these 2 models via AutoModelForCausalLM and they work correctly. I don't know what happens to them in TGI, it's like the tokenizer model is being loaded entirely wrong. (so it's not the template, even a wrong template on other model will results in repetition or not ending generations, but never gibberish output).
I don't have enough knowledge to debug this, maybe @Narsil can help


K8SPG-451 add arm support

CHANGE DESCRIPTION
Problem:
Short explanation of the problem.
Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
Short explanation of the solution we are providing with this PR.
CHECKLIST
Jira

[ ] Is the Jira ticket created and referenced properly?
[ ] Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
[ ] Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

[ ] Is an E2E test/test case added for the new feature/change?
[ ] Are unit tests added where appropriate?

Config/Logging/Testability

[ ] Are all needed new/changed options added to default YAML files?
[ ] Are the manifests (crd/bundle) regenerated if needed?
[ ] Did we add proper logging messages for operator actions?
[ ] Did we ensure compatibility with the previous version or cluster upgrade process?
[ ] Does the change support oldest and newest supported PG version?
[ ] Does the change support oldest and newest supported Kubernetes version?

Test name
Status

demand-backup
passed

init-deploy
passed

monitoring
passed

operator-self-healing
failure

scaling
passed

scheduled-backup
passed

self-healing
passed

start-from-backup
passed

telemetry-transfer
passed

users
passed

We run 10 out of 10

commit: https://github.com/percona/percona-postgresql-operator/pull/569/commits/c39674d0d2efe61814583739e3835909d92a1104
image: perconalab/percona-postgresql-operator:PR-569-c39674d0d

Test name
Status

demand-backup
skipped

init-deploy
skipped

monitoring
skipped

operator-self-healing
skipped

scaling
skipped

scheduled-backup
skipped

self-healing
skipped

start-from-backup
skipped

telemetry-transfer
skipped

users
skipped

We run 0 out of 10

commit: https://github.com/percona/percona-postgresql-operator/pull/569/commits/c8fc8960f6b1228eed28c7fc5394584d74f996bf
image: perconalab/percona-postgresql-operator:PR-569-c8fc8960f

Test name
Status

demand-backup
passed

init-deploy
passed

monitoring
passed

operator-self-healing
passed

scaling
passed

scheduled-backup
passed

self-healing
failure

start-from-backup
passed

telemetry-transfer
passed

users
passed

We run 10 out of 10

commit: https://github.com/percona/percona-postgresql-operator/pull/569/commits/b38755d7e54653e00f2613e7594b5d124946714d
image: perconalab/percona-postgresql-operator:PR-569-b38755d7e

Test name
Status

demand-backup
passed

init-deploy
passed

monitoring
passed

operator-self-healing
passed

scaling
passed

scheduled-backup
passed

self-healing
passed

start-from-backup
passed

telemetry-transfer
passed

users
passed

We run 10 out of 10

commit: https://github.com/percona/percona-postgresql-operator/pull/569/commits/b38755d7e54653e00f2613e7594b5d124946714d
image: perconalab/percona-postgresql-operator:PR-569-b38755d7e

Test name
Status

demand-backup
passed

init-deploy
passed

monitoring
passed

operator-self-healing
passed

scaling
passed

scheduled-backup
passed

self-healing
passed

start-from-backup
passed

telemetry-transfer
passed

users
passed

We run 10 out of 10

commit: https://github.com/percona/percona-postgresql-operator/pull/569/commits/857a02fd63f55513098792a842199721aa0cc368
image: perconalab/percona-postgresql-operator:PR-569-857a02fd6


WIP: ENH: Accelerate compute_pnl

The slowest run took 89.38 times longer than the fastest. This could mean that an intermediate result is being cached.
1 loop, best of 5: 25.2 ms per loop

https://gist.github.com/simaki/781e997c8bc0d6b13726259bf33fe342
The slowest run took 1348.47 times longer than the fastest. This could mean that an intermediate result is being cached.
1 loop, best of 5: 2.43 ms per loop

https://gist.github.com/simaki/27f377fd2bcece15b700bde8011198db

Recurrent case (input=[..., "prev_hedge"])
Before:
10 loops, best of 5: 25.5 ms per loop

https://gist.github.com/simaki/f3c7c7ed7d7a8cb26e3e0ab1e5602550
After:
10 loops, best of 5: 18.7 ms per loop

https://gist.github.com/simaki/17d9578fb5f3592f286633c25abffe92


Discuss if we need magazine template for Loop

We need to decide if topic pages are good enough or if we need to create a magazine template. Also relates to magazine templates for equinor.com.

Decided to include news with other news article in global site


Add notes on how to make it work on Windows

:+1: , though I'm not a fan of the password stuff in general. This gives it parity with Linux builders, but it's definitely unsafe to use a box like that if there's any incoming network access to the guest.

Already merged.


Added Contact Us Functionality and social media icons

Added the contact us functionality by which now user can connect to the admin of the page by sending its message through the mail and also added the social media icons.
It resolves issue #30
Its working video,
https://user-images.githubusercontent.com/75881393/125430644-f4cc7bed-3714-4c9b-b6f3-79ffb7193495.mp4

Please @QAZIMAAZARSHAD review this PR before merging any other PR.

@K-jais nice.
Correct a few more things.
Correct footer

Align address properly
Replace the "Thanks" message with "Thanks, Your message was successfully received"
It will be better if instead of this you generate a sweet alert popup message

Correct the navbar and reduce the space between navbar and contact heading


--export does not work with local files

It seems to me that this should be possible:
$ gif-for-cli file://test.json --export test.gif
Processed 24/24 frames...
Exported to:
/home/dtantsur/test.gif

However, the resulting file has no relationship to test.json and is probably a trending gif on your website.

We don't handle JSON input, we should probably output an error instead of using a trending GIF.

Oops, sorry. I think I saw you talking about gif-for-cli compatible with asciinema files, I guess I got you wrong. Anyway, I think the current behavior is wrong.


Fixed typo in line 9

Blobs -> blobs

Haha thanks! Didn’t notice that since I have a case insensitive OS


springboot2.3.12适配 mongoPlus 启动报错

大佬您好，非常感谢您的开源项目，因为我现在适配的项目 springboot 版本比较老，
参照官方文档，排除了老版本的驱动，然后重新引入了新的驱动，运行后报错如下：
2024-12-27 17:45:33.063 [main] WARN  o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.anwen.mongo.config.MongoPlusAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 4; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mongoBaseMapper' defined in class path resource [com/anwen/mongo/config/MongoPlusConfiguration.class]: Unsatisfied dependency expressed through method 'mongoBaseMapper' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mongoPlusClient' defined in class path resource [com/anwen/mongo/config/MongoPlusConfiguration.class]: Unsatisfied dependency expressed through method 'mongoPlusClient' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mongo' defined in class path resource [com/anwen/mongo/config/MongoPlusConfiguration.class]: Unsatisfied dependency expressed through method 'mongo' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoClientFactory' defined in class path resource [com/anwen/mongo/config/MongoPlusConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.anwen.mongo.factory.MongoClientFactory]: Factory method 'mongoClientFactory' threw exception; nested exception is java.lang.NoSuchMethodError: com.mongodb.internal.connection.DefaultClusterFactory.createCluster(Lcom/mongodb/connection/ClusterSettings;Lcom/mongodb/connection/ServerSettings;Lcom/mongodb/connection/ConnectionPoolSettings;Lcom/mongodb/connection/StreamFactory;Lcom/mongodb/connection/StreamFactory;Lcom/mongodb/MongoCredential;Lcom/mongodb/event/CommandListener;Ljava/lang/String;Lcom/mongodb/MongoDriverInformation;Ljava/util/List;)Lcom/mongodb/internal/connection/Cluster;
2024-12-27 17:45:33.065 [main] INFO  o.s.s.c.ThreadPoolTaskScheduler - Shutting down ExecutorService 'taskScheduler'
2024-12-27 17:45:33.071 [main] INFO  o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2024-12-27 17:45:33.075 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -

APPLICATION FAILED TO START

Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
com.mongodb.client.internal.MongoClientImpl.createCluster(MongoClientImpl.java:204)

The following method did not exist:
com.mongodb.internal.connection.DefaultClusterFactory.createCluster(Lcom/mongodb/connection/ClusterSettings;Lcom/mongodb/connection/ServerSettings;Lcom/mongodb/connection/ConnectionPoolSettings;Lcom/mongodb/connection/StreamFactory;Lcom/mongodb/connection/StreamFactory;Lcom/mongodb/MongoCredential;Lcom/mongodb/event/CommandListener;Ljava/lang/String;Lcom/mongodb/MongoDriverInformation;Ljava/util/List;)Lcom/mongodb/internal/connection/Cluster;

The method's class, com.mongodb.internal.connection.DefaultClusterFactory, is available from the following locations:
jar:file:/Users/xxxxx/.m2/repository/org/mongodb/mongodb-driver-core/4.9.0/mongodb-driver-core-4.9.0.jar!/com/mongodb/internal/connection/DefaultClusterFactory.class

The class hierarchy was loaded from the following locations:
com.mongodb.internal.connection.DefaultClusterFactory: file:/Users/chenzhao/.m2/repository/org/mongodb/mongodb-driver-core/4.9.0/mongodb-driver-core-4.9.0.jar

Action:
Correct the classpath of your application so that it contains a single, compatible version of com.mongodb.internal.connection.DefaultClusterFactory
麻烦问下，是我适配的有问题吗？谢谢解答！

截个图给我把，粘贴报错信息，看着有点乱


Added user and role entities.

Added user and role entities, enabled ddl-auto property for hibernate.

I don't know what to write here.

Thanks a lot for the review, fixed mentioned moments.


enhancement: handle ocm event notifications

Description
By now, the sciencemesh part in reva was responsible to notify the invitee that a invitaion happened, in ocis we have a event driven approach.
This PR introduces that and handles those invitation events in the notification service by sending mails.
Related Issue

Fixes https://github.com/owncloud/ocis/issues/9583
Needs: https://github.com/cs3org/reva/pull/4832

How Has This Been Tested?

not at all right now, next step

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[X] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Technical debt
[ ] Tests only (no source changes)

Checklist:

[ ] Code changes
[ ] Unit tests added
[ ] Acceptance tests added
[ ] Documentation ticket raised:

@micbar what about our other services (activitylog, audit, ...), should i add the new event there too?

@micbar what about our other services (activitylog, audit, ...), should i add the new event there too?

Yes, that would be awesome!

@fschade It seems that the audit services also contains translation relevant strings. You therefore need to have a look at https://owncloud.dev/services/general-info/add-translations/ for a how to. This includes the translation setup and the readme addition.


Replace the old eco-score horizontal assets by the new eco-score horizontal assets

Not sure I understand the idea:

what we store in assets are fallback versions of the icons, when we have no or low connectivity, for immediate display
as soon as we download the corresponding icon from the server, we display the server one instead
therefore if https://static.openfoodfacts.org/images/attributes/ecoscore-a.svg hasn't changed, there's no point in storing a different icon in the assets - its display will quickly be overwritten by the server version
and the svg file doesn't look different to me
the svg files should rather be changed on the server first, and then we can download them and put them in the assets

I've opened a server-side issue (and a PR) for this. We'll wait until deployment.
https://github.com/openfoodfacts/openfoodfacts-server/issues/6825


Internationalized errors module

Close https://github.com/jhipster/jhipster-lite/issues/2794

Claimed https://opencollective.com/generator-jhipster/expenses/113637


DomainResponse should expose a type safe payload

DomainResponse has a PayLoad property that represents the actual value of a business operation.
Currently, this property is of type JToken, making it awkward to use as we always have to call the JToken.ToObject method.
https://github.com/Avanade/Liquid-Application-Framework/blob/93f7874f2ead13d3602cc39fc1e9355206217f57/src/Liquid.Domain/Base/Domain/DomainResponse.cs#L25-L28
In my opinion, DomainResponse should have two versions: A base one, without the payload, and a second one with a type safe payload property:
//extra code removed for readability reasons
public class DomainResponse
{
    public JToken Critics { get; set; }
}

public class DomainResponse<TPayload> : DomainResponse
{
    public TPayload Payload { get; set; }
}

Why

Not every business operation returns a value. Some of them just indicates if everything went right (e.g "Successfully saved")
Relying on type safety is always beneficial as we can solve things at compile time, and also makes the code clearer to the developers

What to consider

Since this would be a breaking change, maybe we should introduce a new class, considering that DomainResponse already has a couple of issues (#57, #54, #35)

This is an enhancement but I believe it's major.

@bruno-brant I have found that developers usually tend to abuse exceptions by using them to flow control. I personally am not a fan of this approach as it makes the code very awkward to deal with, frequently resulting in try-catch statements everywhere.
I love the concept of "Exceptions are for exceptional circumstances". Why throw an exception when it's expected to fail (validation is an excellent case for this)?  Not only it would improve performance, but it would make clear to the developer when a method can fail or not.
I'm really into functional programming lately and this one of the core principles of this kind of programming languages: You either have a value or an error code. Do you think we could introduce something like this within Liquid?

Yes, exception abusing is an issue - the stack unwinding process alone will cost precious CPU-time - but I'm not completely sure how to model such returns in a simpler way -  in practice I think people have a hard time writing typed code that can have numerous returns.
One the other hand, if we take even half a step towards something that would lead to more try/catches within Liquid applications, then I would just go back and rethink the whole thing. I think user code should have something between zero and none try/catches.

A result type might be nice - one could, for instance, leverage an Either<T1, T2> type, but I'm sure that's more complex than it sounds; We must remember that one of Liquid's goal is to have a very low learning curve.
We should try and workout some real world cases and generalize from it, what do you think?


Send command to terminal even if nothing is selected.

My keybindings.json

    {
        "key": "alt+l",
        "command": "workbench.action.terminal.sendSequence",
        "args": { "text": "\u000AMdLink \"${file}\" \"${selectedText}\" \u000A" },
        "when": "!editorReadonly"
        //"when": "!editorReadonly && editorLangId == 'markdown'"
    }

It executes a bash script called MdLink with arguments path of the file and the selected text.
This script should do something special when a text is selected. And when nothing is selected, then I want the script to do something general. I know that I can create another keybinding without selectedText variable but its not elegant.
But the shortcut fails if no text is selected. May be its useful to still run the command even if no text is selected.

But the shortcut fails if no text is selected.

Are you saying the command doesn't run at all if there is  no selectedText?  The selectedText should just resolve to the empty string if there is no selectedText.
Do you want to run a different script if there is no selectedText?

You can also use these when clauses:
 "when": "editorHasSelection"
and
 "when": "!editorHasSelection"       // note the negation

Are you saying the command doesn't run at all if there is no selectedText?

Yes

Do you want to run a different script if there is no selectedText?

No. The script internally counts number of arguments and does work accordingly.
I want the command to be passed to terminal irrespective of a string being selected or not.


The check-declarations option is not comprehensive

\RequirePackage[check-declarations]{expl3}
\cs_show:N \bool_set_false:N

tells me that \bool_set_false:N does not check that the variable is already defined. The same probably happens with flags, and perhaps other non-register non-tl data types.

The same happens with read/write streams.


Fix warning when using whenVisible in non ssr environment

When running in development mode (non-ssr), with the whenVisible option, there will be the following error:
TypeError: Failed to execute 'observe' on 'IntersectionObserver': parameter 1 is not of type 'Element'.

Thanks for the fix.
Released as v0.0.6.

Thank you!


Update publishing topic to explain what each of the generated files does

The .NET Core publishing topic should have some content/pointers on what each of the files generated on publish is for:

HelloWorld.deps.json
HelloWorld.dll
HelloWorld.pdb (optional for deployment)
HelloWorld.runtimeconfig.json

Seems related to #2645

@rpetrusha are you also going to cover #2645 as part of this?

@mairaw, no, I wasn't planning to; I was just going to add a list of the generated files and what they're for to this tutorial. runtimeconfig.json probably merits a standalone topic.


Logout route added

Implemented logout route by deleting token from the database.

@sounak07 Always make PR to the develop branch, not to master. Feel free to make another PR

But I selected develop while putting the PR.
I don't know how the PR what made in master.

@sounak07 I think you cloned the master branch, instead of develop branch and made changes in that. Clone the develop branch this time.

What I did is
I fetch the upstream
I merged by master branch with develop branch of upstream
Like git merge upstream/develop
Then I made the changes
Was it a wrong process

@sounak I think you are still in the master branch.
Perform
git checkout develop
to switch to develop branch.
Also please go through the correct steps in Feature Development


Where are miflora sensors data?

Hi,
I just discovered this custom-component and looks great so I want to try it because I want only one component to retrieve al my BLE sensors data. I have two miflora sensors, two LYWSD03MMC (I know they are not supported right now, no problem), and a LYWSD02.
With the LYWSD02 I had no problem. Found it easy and works great.
But with the miflora, I can not find them in States in Dev Tools.  I do not see any new sensor for them or see anything in the logs. Maybe the component is not reading them?
With hcitool lescan command I can see them. I also could retrieve their data with other (python) scripts so I think they work fine.
Is there anywhere I can find some clue about what is happening?

Hello, @goliath888 !
Version 0.6.0 has just been published with support for LYWSD03MMC.
As for MiFlora:

Is this sensor added to the official MiHome or FlowerCare app or something else? For many sensors, BLE ADV messages do not contain actual measurements if they are not added to the official application.

Is this the original MiFlora? I know that there are several types of sensors, very similar to MiFlora, but using different identifiers. For example, VegTrug GrowCare. The steps for implementing support for new sensors are described in the FAQ.

If with point 1 everything is good, then I think that in your situation it is worth making the one indicated in point 2. Turning on debugging and the option report_unknown will give a lot of information about your situation.

Hi,
I only had one of miflora added to the MiHome App, but I just added the other.
They are suppose to be original, at least I bought them as so (but who knows) They work fine in MiHome.
I set debug mode and report_unknown to true, but all I can see in the logs are:

2020-03-08 16:16:41 DEBUG (SyncWorker_13) [custom_components.mitemp_bt.sensor] HCIdump thread: joined
2020-03-08 16:16:41 DEBUG (SyncWorker_13) [custom_components.mitemp_bt.sensor] Spawning HCIdump thread(s).
2020-03-08 16:16:41 DEBUG (SyncWorker_13) [custom_components.mitemp_bt.sensor] HCIdump thread: Init
2020-03-08 16:16:41 DEBUG (SyncWorker_13) [custom_components.mitemp_bt.sensor] HCIdump thread: Init finished
2020-03-08 16:16:41 DEBUG (SyncWorker_13) [custom_components.mitemp_bt.sensor] Starting HCIdump thread for hci0
2020-03-08 16:16:41 DEBUG (Thread-7) [custom_components.mitemp_bt.sensor] HCIdump thread: Run
2020-03-08 16:16:41 DEBUG (SyncWorker_13) [custom_components.mitemp_bt.sensor] HCIdump threads count = 1
2020-03-08 16:16:41 DEBUG (SyncWorker_13) [custom_components.mitemp_bt.sensor] Finished. Parsed: 156 hci events, 1 xiaomi devices.

It only says 1 xiaomi devices...Anything else I could do?

You can go to HA Configuration -> Entities and filter by string mi_ - all entities created by the component will be visible.
MiFlora creates several sensor entities, it should be:

mi_t_ for temperature
mi_m_ for moisture
mi_l_ for luminosity
-mi_c_ for conductivity (fertility)

After enabling debug and report_unknown wait 10 minutes, and drop the entire journal here (it is better to copy-paste into a text file, and attach to the message).
Tell me, how far are these sensors from the host with HA? If possible, try placing them closer to the host for about 10 minutes (temporarily, to make sure that bad reception conditions is not the source of the problem).

Another source of the problem may be other components using bluetooth - for example, various bt-trackers. You can try to temporarily disable them.
In general, it is useful to devote some time to our FAQ - many cases are covered there.

No luck.
Just put the sensor besides the bt host and all the time the same lines I put in the message above. No other process was using the bt.
I guess I should look for other alternatives. But thanks anyway.

Very strange ... I myself use this sensor, and it works without problems, and there are positive feedback from users of this sensor and its analogue. I can advise you to update the component to 0.6.0 (published today) and check for updates for the sensor itself in the MiHome application.
In addition, the last way to clarify the situation is to record a complete dump, as described here - then I can study the situation in great detail.
I remembered another subtlety - the sensors stop sending broadcast packets when a connection is established to them (from the official application or any other, including third-party scripts).

Already updated.
Do not worry. I will try other alternatives first and in case I found nothing I will try that. Thanks for your help


fix: Allow embedded manifests in all commands

What does this PR try to resolve?
This is a part of #12207.
One of the goals is for embedded manifests to be a first class citizen.  If you have a script, you should be able to run tests on it, for example.
This expands the error check from just Cargo.toml to also single-file packages so you can use it in --manifest-path.
This, however, does mean that these can be used in places that likely won't work yet, like cargo publish.
How should we test and review this PR?
By commit.  We introduce tests for basic commands and then implement and refine the support for this.
Additional information
Other information you want to mention in this PR, such as prior arts,
future extensions, an unresolved problem, or a TODO list.

Thanks for the update!
@bors r+

:pushpin: Commit d8583f4a5e120fd7f962ca83dfbb09a56b921edb has been approved by weihanglo
It is now in the queue for this repository.

:hourglass: Testing commit d8583f4a5e120fd7f962ca83dfbb09a56b921edb with merge 4cebd130ebca3bc219180a54f3e26cc1b14a91de...

:sunny: Test successful - checks-actions
Approved by: weihanglo
Pushing 4cebd130ebca3bc219180a54f3e26cc1b14a91de to master...


Pull link product-category

WIP

select category,
    count(*) as nb_cat
from product_category
    group by category
    order by nb_cat desc;


RDKDEV-1011: Upstream change to support HdmiCecSink plugin and add sendWakeupMessage method

Reason for change: Fix the HdmiCecSink one-click wake up issue.
Test Procedure: Ensure that the curl commands return expected responses
Risks: Low
Signed-off-by: lanyujie<EMAIL_ADDRESS>

Internal ticket for tracking https://ccp.sys.comcast.net/browse/RDKCOM-4817

Please resync the private branch

Please resync the private branch

Done

Abandoning these changes since these are only applicable for non-tv platforms.


Extent initial_layout mapping to QasmSimulator

What is the expected enhancement?
initial_layout can be passed to the transpile and execute methods to map the virtual qubits of the relevant QuantumCircuit objects to physical qubits of the specified real backend. However this functionality does not work if backend = QasmSimulator. The mapping of virtual to physical qubits is important when simulating with noise which varies from qubit to qubit. Obviously you can get around this easily by ensuring your virtual qubits implicitly match the appropriate physical qubits in your QuantumCircuit object, so it's not the most pressing enhancement. Nonetheless it would be a good one.

Thanks for reporting this @special-kay . Right now the preset pass managers only run _given_layout if a coupling_map is provided, which is not the case for the simulators. (ref: https://github.com/Qiskit/qiskit-terra/blob/9b03b54/qiskit/transpiler/preset_passmanagers/level1.py#L197 ).
If you are running a simulation with noise, is there a reason not to provide a coupling_map? (Its could be a bug that specifying an initial_layout requires a coupling_map, but we don't check for it.)  If your circuit contains two-qubit gates, and the device you are simulating has less than all-to-all connectivity, the circuit run on the simulator may not be representative of the circuit that would be run on the device (it would be missing swap gates added in the routing stage).

Right - thanks for bringing that to my attention. Yes, the transpilation works properly if a coupling_map is provided.


[CROSSDATA-446] Streaming: JAR with Mesos

This PR moves the straming jar to HDFS in a Mesos environment

Clean history


FE validation for address or email (any 1 is mandatory) not working

Describe the bug in current situation
FE validation for address or email (any 1 is mandatory) not working
Link bug to the User Story
Impact of this bug
Describe the impact, i.e. what the impact is, and number of users impacted.
Chance of Occurring (high/medium/low/very low)
Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?
Steps to Reproduce
Steps to reproduce the behavior:

Add request
Enter only address information and other mandatory fields except email

Actual/ observed behaviour/ results
Save button disabled
Expected behaviour
Save button should be enabled
Steps to Reproduce
Steps to reproduce the behavior:

Add request
Enter all address information and other mandatory fields including email
save the request
open request
remove email and address1

Actual/ observed behaviour/ results
Save button enabled
Expected behaviour
Save button should be disabled as any 1 is mandatory
Screenshots/ Visual Reference/ Source
If applicable, add screenshots to help explain your problem. You an use screengrab.

This bug appears to be fixed - you no longer can go around the validation


status node doesn't work within a subflow.

When a status node is within a subflow, it doesn't seem to work, tested with a debug inside the subflow as well as outputting through an outlet.
Here's an example flow with working and non working cases:
[{"id":"ddd8e164.aabcb8","type":"subflow","name":"Subflow 1","info":"","in":[{"x":220,"y":260,"wires":[{"id":"92293c7b.31f0c"}]}],"out":[{"x":540,"y":260,"wires":[{"id":"cc3c8d89.2d2d9","port":0}]}]},{"id":"cc3c8d89.2d2d9","type":"status","z":"ddd8e164.aabcb8","name":"","scope":["92293c7b.31f0c"],"x":340,"y":140,"wires":[["85b3bfb6.0830b"]]},{"id":"92293c7b.31f0c","type":"function","z":"ddd8e164.aabcb8","name":"","func":"node.status({fill:\"green\",shape:\"dot\",text:\"common.status.connected\"});\nreturn msg;","outputs":1,"noerr":0,"x":350,"y":260,"wires":[[]]},{"id":"85b3bfb6.0830b","type":"debug","z":"ddd8e164.aabcb8","name":"","active":true,"console":"false","complete":"status","x":540,"y":140,"wires":[]},{"id":"5422572e.5d0818","type":"inject","z":"3fa96e9d.f5f722","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":280,"y":200,"wires":[["3bb379a4.9e3726","9ebba4be.36aa58"]]},{"id":"3bb379a4.9e3726","type":"subflow:ddd8e164.aabcb8","z":"3fa96e9d.f5f722","name":"","x":480,"y":200,"wires":[["36417333.7cc3c4"]]},{"id":"36417333.7cc3c4","type":"debug","z":"3fa96e9d.f5f722","name":"","active":true,"console":"false","complete":"true","x":640,"y":200,"wires":[]},{"id":"c97e0d5d.f63ff8","type":"status","z":"3fa96e9d.f5f722","name":"","scope":["9ebba4be.36aa58"],"x":480,"y":380,"wires":[["ba1fec51.bbb43"]]},{"id":"ba1fec51.bbb43","type":"debug","z":"3fa96e9d.f5f722","name":"","active":true,"console":"false","complete":"status","x":680,"y":380,"wires":[]},{"id":"9ebba4be.36aa58","type":"function","z":"3fa96e9d.f5f722","name":"","func":"node.status({fill:\"green\",shape:\"dot\",text:\"common.status.connected\"});\nreturn msg;","outputs":1,"noerr":0,"x":470,"y":260,"wires":[[]]},{"id":"2dd1e89.31d8c18","type":"comment","z":"3fa96e9d.f5f722","name":"Works ! :D","info":"","x":600,"y":260,"wires":[]},{"id":"520a9817.ccede8","type":"comment","z":"3fa96e9d.f5f722","name":"Doesn't work :(","info":"","x":820,"y":200,"wires":[]}]

Update: relevant system info:
18 Oct 16:59:27 - [info] Node-RED version: v0.15.1
18 Oct 16:59:27 - [info] Node.js  version: v4.6.0
18 Oct 16:59:27 - [info] Darwin 16.0.0 x64 LE
18 Oct 16:59:28 - [info] Loading palette nodes
18 Oct 16:59:28 - [info] Dashboard version 2.1.0 started at /ui

Hurray !
Thanks !


failure if no scheduled-docs stanza present

I think that if there is no scheduled-docs key, the extension will fail (though I'm playing around with various things, so I might be misunderstanding). Presumably the behavior should be that the extension will do nothing if it doesn't find a stanza to operate on.

Fixed in https://github.com/qmd-lab/scheduled-docs/commit/a7e191d7a50844e1574a0c6192965380e4bb1680


make tryIgnoringException generic

Hi,
I wasn't looking closely enough and missed a return type mismatch. I made tryIgnoringException generic since there's no requirement on String there.
Thanks!

Good call 👍


[#187609828] Update Github Action tags / AnsibleLint Konfig

@aberresch
requesting review
requesting functional acceptance
requesting merge approval

Review: LGTM
functionally accepted
deployment approved


⚠ Bofrost.es has degraded performance

In 1776e47, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 2017 ms

Resolved: Bofrost.es performance has improved in f5cc14a after 24 minutes.


Fixed:  about page Issue

Related Issues
#428
Proposed Changes
add some left and right   position in     About.html
Additional Information

Any additional information or context

Checklist

[x] Tests
[x] Translations
[x] Documentations

Screenshots

Related Issues
#428
Proposed Changes
add some left and right  position in  About.html
Additional Information

Any additional information or context

Checklist

[x]  Tests
[x]  Translations
[x]  Documentations

Screenshots

hey @AnirudhPanda  Review my new Pr  :)

not adding levels here. should have been done in the previous PR

@AnirudhPanda ,Can you tell me some other which i can work on ( i have experience in Authentication,react,next,backend issues)

Dm me on whatsapp lets talk
7008366872
On Fri, 7 Jul 2023 at 12:35 AM, Nishitbariya @.***>
wrote:

@AnirudhPanda https://github.com/AnirudhPanda ,Can you tell me some
other which i can work on ( i have experience in
Authentication,react,next,backend issues)
—
Reply to this email directly, view it on GitHub
https://github.com/Opentek-Org/opentek/pull/431#issuecomment-1624178212,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APZGUAC555WQAGSDH55RTTTXO4D7RANCNFSM6AAAAAA2A2KIBA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Thanks and Regards,
Anirudh Panda


Request for NewYorker.com audio narration (m4a format)

Checklist

[X] I'm reporting a site feature request
[X] I've verified that I'm running youtube-dl version 2<IP_ADDRESS>
[X] I've searched the bugtracker for similar site feature requests including closed ones

Description

Many articles on newyorker.com have pleasant human-narrated audio for listening. To be able to listen offline, it would be really cool to extend the condenast.py extractor to be able to download these .m4a files. The actual audio file is hosted at https://api.audm.com.
(Sorry if audio formats are out of scope of youtube-dl.)

Example process to get manually audio file
https://www.newyorker.com/magazine/2021/01/18/whats-wrong-with-the-way-we-work
(archive.org link)
At the top of the page, under the header image (for many but not all) articles is this audio box:

Open "Web Developer Console" --> "Network Inspector"

Hit "Play" on the audio box

Search for filetype .m4a

Right-click on entry and select "Copy URL"

Use wget to download .m4a from URL

wget "https://api.audm.com/v6/signed-article-m4a?article-slug=we-work-lepore" -O we-work-lepore.m4a

Thanks for your consideration!

sorry, duplicate of this 2-day old ticket. I've added this text as a comment, in case it helps
https://github.com/ytdl-org/youtube-dl/issues/28043


Fails to turn on stereo module on MacOs

"Backend in rs2_open_multiple(sensor:0x7fd1025a9410, profiles:0x7fd10762b970, count:1):
fail to start streaming. Last Error: Operation timed out"
I got this on my mac after cmake the sdk's from source then using Xcode to build it.
The RGB camera is working.
I got the error when trying to enable the Stereo Module in realsense-viewer.
Console logged this message:
18/09 22:47:02,682 ERROR [0x10a4295c0] (types.h:243) fail to start streaming. Last Error: Operation timed out

Required Info

Camera Model
D400

Firmware Version
<IP_ADDRESS>

Operating System & Version
MacOS Mojave 10.14.6

Kernel Version (Linux Only)

Platform
Mac OS

SDK Version
got latest srcs and built it }

Language
realsense-viewer.

Segment
others

Issue Description
Debug op code: 15
Advanced mode: YES
Product ID = 0B3A
USB type descriptor 3.2
When clicking, Output log is saying "Starting streaming of Depth..." then the error message occurs.

I'm also experiencing this issue on Mac OS, firmware version <IP_ADDRESS>.

@kjacks21 Seen from "Product ID = 0B3A", are you using D435i when get the issue?

@kjacks21 Could you please update if you still need support on this? Thanks!

@RealSenseCustomerSupport No, using D435. I do not currently need support for this. Thanks!

@kjacks21 Thanks for your update! Will close this accordingly.


Creating R/Python split structure

Reorganising structure to start working on the python side. Does this look ok for you @RuthBowyer?

Looks good to me, thanks @crangelsmith


White screen in Chrome

White screen is appeared just in time when a tip must be appeared.
No javascript errors at chrome console.
My Chrome version is 15.0.874.21 beta. I use it under Ubuntu Linux.

Everything is ok. It looks like Google had released the Chrome version with
bug and quickly fixed it.
On Sun, Oct 2, 2011 at 7:18 PM, Craig Michael Thompson <
<EMAIL_ADDRESS>
You're going to have to elaborate a bit more on what the issue is
exactly...
--
Reply to this email directly or view it on GitHub:
https://github.com/Craga89/qTip2/issues/246#issuecomment-2262735


Add support for Gleam

Language
Gleam is a statically typed programming language that can compile to JavaScript and Erlang
import gleam/io

fn main() {
  io.println("hello, computer!")
}

Additional resources
Website: https://gleam.run
Source: https://github.com/gleam-lang/gleam
Tree sitter grammar: https://github.com/gleam-lang/tree-sitter-gleam
VSCode extension (w/ TextMate grammar): https://github.com/gleam-lang/vscode-gleam
It's also supported by Github's linguist (which just uses the VSCode/TextMate grammar)

Here's a quick WIP I whipped up:
Prism.languages.gleam = {
  doc: {
    pattern: /\/\/\/\/?.*/,
    greedy: true,
  },
  comment: {
    pattern: /\/\/.*/,
    greedy: true,
  },
  keyword:
    /\b(use|case|if|external|fn|import|let|assert|try|pub|type|opaque|const|todo)\b/,
  operator: {
    pattern:
      /(<-|->|\|>|<>|\.\.|<=\.?|>=\.?|==\.?|!=\.?|<\.?|>\.?|&&|\|\||\+\.?|-\.?|\/\.?|\*\.?|%\.?|=)/,
    greedy: true,
  },
  string: {
    pattern: /"(?:\\(?:\r\n|[\s\S])|(?!")[^\\\r\n])*"/,
    greedy: true,
    inside: {
      punctuation: /\\./,
    },
  },
  punctuation: /[.\\:,]/,
  number:
    /\b(?:0b[0-1]+|0o[0-7]+|[[:digit:]][[:digit:]_]*(\\.[[:digit:]]*)?|0x[[:xdigit:]]+)\b/,
  boolean: /\b(?:True|False)\b/,
};

I'll need to test on some fuller Gleam example, though.

Here is an updated version of the grammar, though it accepts uppercase characters in function names which Gleam doesn't (need to fix): pastebin.
I see PrismJS isn't accepting PRs at the moment. I'll still fix this up and use it on my pastebin at https://nicd.gitlab.io/t/ in the meantime, so it'll be easy to take into use once v2 is out and it's accepting PRs again.

For anyone that finds theirself here in the mean time, I've published a slightly modified version of the grammar that @Nicd came up with to npm as prismjs-gleam. You can use it via unpkg or whatever npm-CDN you prefer.
Source


Parsing two-digit year 16 with results in 0016 and not 2016

import 'package:intl/intl.dart';
final dateFormat = new DateFormat("d/M/y H:m:s");
print(dateFormat.parse("01/02/16 12:11:12").year);

This code results in a year of 0016 and not 2016. Same thing happens whether I use y or yy in the format. Unfortunately it's tricky to fix this, because you can't even .add 2000 years, because the Duration class only goes up to days!
Other languages make assumptions about two-digit years being 19/20; it probably makes sense to do the same.

Nearly 3 years later I've stumbled across the same issue via the unit tests in my Flutter app. The issue occurs even when using the specific example from the comments in date_format.dart (pattern: "MM/dd/yy", input "01/11/12" ; the resulting year is 0012). This contradicts in the description in date_format.dart (line 202) which states it should resolve to 2012. Needs to be fixed.

A hacky workaround by adding Duration could be:
dateFormat.parse('01/02/16 12:11:12').add(Duration(milliseconds: DateTime(1970 + 2000).millisecondsSinceEpoch));

@altherat That hacky workaround isn't correct since it will change the time. (That is, adding 24 * 60 * 60 seconds to a date might not necessarily be the same as incrementing the day by 1 due to leap seconds, daylight saving, ...).  You'd be better off taking the result of DateFormat.parse and constructing a new DateTime with an adjusted year.

@jamesderlin that would problem but they did not fixed bug for 4 years already the closest to fixed is #125 but it got rejected

I think @jamesderlin was right all along. I used the hacky workaround and after sometime it was giving me a wrong month. So I switched back to adding 2000 in the year as in  var year = (dateFormat.parse("01/02/16 12:11:12").year + 2000)..

I think @jamesderlin was right all along. I used the hacky workaround and after sometime it was giving me a wrong month. So I switched back to adding 2000 in the year as in var year = (dateFormat.parse("01/02/16 12:11:12").year + 2000)..

Please do not unconditionally add 2000.  As I mentioned, such hacks will break when this bug is fixed.  Add 2000 only to 2-digit years.
And yes, a fix is forthcoming.

@jamesderlin, i was just showing how to simply add 2000, of course, there are checks before it arrives to that..

@jamesderlin, i was just showing how to simply add 2000, of course, there are checks before it arrives to that..

Okay, I just don't want people to copy-and-paste that workaround blindly.  I have seen other people also suggest workarounds that omit any checks.

Understood, simple check can be?
    final twoDigitYear = dateFormat.parse("01/02/16 12:11:12").year;
    if(0 <= twoDigitYear && twoDigitYear <= 99){
      year = (twoDigitYear + 2000);
      //..
    }

This is now fixed on master by b1335afc2e72cce096c78aa3b600e8b8424631ab.

@jamesderlin  when will 17.0 show up on pub.dev?

0.17 probably will not be available on pub.dev until package:intl is updated for NNBD.  We're treating this fix as a breaking change.  Changes for NNBD are also expected to be breaking, and we'd like to avoid publishing multiple breaking versions in a short timespan.  I don't know what the timeline is.
In the meantime, yes, you can have your pubspec.yaml file point to the GitHub repository.

A prerelease version of 0.17 is now available.


Release version 0.3.0 and 1.0.0

After merging PR #116 we should finally release version 0.3.0 and test it extensively and fix any occurring issues. Is there anything else we definitely want for a version 1.0.0 afterwards?

Can someone now make a release 0.3.0?

See https://github.com/UB-Mannheim/ocr-fileformat/releases/tag/v0.3.0.

Is there anything else we definitely want for a version 1.0.0 afterwards?

See milestone v1.0.0. Maybe other issues should be added there, too.

As soon as PR #127 is merged, only support for GCV (issue #125) is missing for milestone v1.0.0.

A new release v0.4.0 is now available.

Meanwhile the latest release (from November 2022) is v0.5.0.
Maybe it's time for a new release, either v0.6.0 or finally v1.0.0 (and close this issue then). What do you think, @kba and @zuphilip?

I should have added @bertsky and @jmechnich to my previous question.

I'd recommend going through the open issues once more and deciding/labelling whether any of those are important enough to block a v1.0.
Perhaps Travis CI can be updated and extended (more roundtrip examples with recent converters, #114)?
Also, it looks like some issues are outdated.

Perhaps Travis CI can be updated and extended (more roundtrip examples with recent converters, #114)?

Thanks for noting this. Travis is no longer supported. I'll remove it and replace it by a GitHub action.

I think it's time for a new release, but this list contains issues which I'd like to get fixed before tagging v0.7.0.


SPARKPOST return 401 Unauthorized

Hi everyone,
I'm trying to implement PHP method from instructions in this github to use sparkpost on my website. So I configure the tool from dashboard and all is valid. Now my function in PHP
`
use SparkPost\SparkPost;
use GuzzleHttp\Client;
use Http\Adapter\Guzzle6\Client as GuzzleAdapter;
$httpClient = new GuzzleAdapter(new Client());
$sparky = new SparkPost($httpClient, ['key'=>'**********']);

$promise = $sparky->transmissions->post([
    'content' => [
        'from' => [
            'name' => 'mydomain',
            'email' =><EMAIL_ADDRESS>        ],
        'subject' => 'Test',
        'html' => '
Congratulations, {{name}}!

You just sent your very first mailing!
',
        'text' => 'Congratulations, {{name}}!! You just sent your very first mailing!',
    ],
    'substitution_data' => ['name' => 'Yohan'],
    'recipients' => [
        [
            'address' => [
                'name' => 'Yohan',
                'email' =><EMAIL_ADDRESS>            ],
        ],
    ]
]);

$sparky->setOptions(['async' => false]);
try {
    $response = $sparky->transmissions->get();
    jsonKill(Success($response->getStatusCode(). " " . $response->getBody()));
}
catch (\Exception $e) {
	jsonKill(Error($e->getCode(). " " . $e->getMessage()));
}

`
And the server return
{
    "success": false,
    "data": "401 {\"errors\": [ {\"message\": \"Unauthorized.\"} ]}\n"
}

401 Message Unauthorized. I don't understand why. I contact support who tell me "Please ensure that you are using the EU API end point: https://api.eu.sparkpost.com/api/v1"
But there is nowhere where I can put this line in my code...
for your help, THANK YOU VERY Much !

Hi, So ! I solved problem with support. So, if someone is in the same case, just open file SparkPost.php in vendor/sparkpost/sparkpost/lib/SparkPost and replace
'host' => 'api.sparkpost.com',
by
'host' => 'api.eu.sparkpost.com',
The problem is due to the location of my Spark account in Europe.
PROBLEM SOLVED

Or you could inject the host option when creating the SparkPostobject.
$httpClient = new GuzzleAdapter(new Client());
$sparky = new SparkPost($httpClient, ['key'=>'**********', 'host' => 'api.eu.sparkpost.com']);

That way you wouldn't need to change third party library and also remember to re-apply your change when you upgrade to a newer version of the library.

In case anyone is having the same problem using the node library. I know this is the pho, but is the first in google results.
The solution is to add the param "origin" with the value: "https://api.eu.sparkpost.com:443" like so:
	const client = new SparkPost("YOUR-API-KEY", { origin: "https://api.eu.sparkpost.com:443" });

as stated in the dos: https://github.com/SparkPost/node-sparkpost


How to access RouteDataArgs inside createServerData?

I have simple file route:
├── star-wars
│   ├── [id].tsx
│   ├── index.tsx
│   └── types.ts

and [id].tsx page:
// [id].tsx

import { NavLink, useParams, useRouteData } from "@solidjs/router";
import { createResource, For } from "solid-js";
import { RouteDataArgs } from "solid-start";
import {
  createServerAction,
  createServerData,
  redirect,
} from "solid-start/server";
import { getUser, logout } from "~/db/session";
import { MovieDetails } from "./types";
import fetch from "cross-fetch";

export const routeData = (props: RouteDataArgs) => {
  return createServerData(async (_, { env, request }) => {
    const response = await fetch(
      // `https://star-wars.brillout.com/api/films/${props.params.id}.json` <-- doesn't work
      `https://star-wars.brillout.com/api/films/1.json`
    );
    const movie = (await response.json()) as MovieDetails;
    return movie;
  });
};

export default function Movie() {
  const movie = useRouteData<typeof routeData>();
  return (

Movie Details

      <NavLink href={`/star-wars`}>list</NavLink>

{JSON.stringify(movie(), null, 2)}

  );
}

When user opens /star-wars/4 page, I want server to make API call to https://star-wars.brillout.com/api/films/${props.params.id}.json.
I've tried two ways:

access route's props.params.id and it gives ReferenceError: props is not defined

export const routeData = (props: RouteDataArgs) => {
  return createServerData(async (_, { env, request }) => {
    const response = await fetch(
      `https://star-wars.brillout.com/api/films/${props.params.id}.json`
    );
    const movie = (await response.json()) as MovieDetails;
    return movie;
  });
};

useParams() inside createServerData but it gives Error: Make sure your app is wrapped in a <Router /> on client-side navigation (when user clicks on link to open movie page). Full page open (or browser refresh button on the same movie page) works without an error

export const routeData = (props: RouteDataArgs) => {
  return createServerData(async (_, { env, request }) => {
    const params = useParams();
    const response = await fetch(
      `https://star-wars.brillout.com/api/films/${params.id}.json`
    );
    const movie = (await response.json()) as MovieDetails;
    return movie;
  });
};

How to access router's parameters inside createServerData in a right way, so it works on both full page reload and client-side navigation?

For anyone having the same question, solution is:
export const routeData = (props: RouteDataArgs) => {
  return createServerData(
    () => {
      const source = {
        id: props.params.id,
      };
      return source;
    },
    async (source, { env, request }) => {
      const response = await fetch(
        `https://star-wars.brillout.com/api/films/${source.id}.json`
      );
      const movie = (await response.json()) as MovieDetails;
      return movie;
    }
  );
};


Dimensions not updating on iPad due to screen rotation.

On an iPad (both physical and simulator), the Dimensions are not getting updated correctly after screen rotation.  The same code works just fine on an iPhone.
What is really interesting is that it appears that the Dimensions are getting set on iPad, just one rotation behind.
This was using RN v0.24.0-rc3. (i.e. after https://github.com/facebook/react-native/commit/b653d43e2e9d8a5506818b47d69993328132bbe4)

I'm having the same issue. Is anybody working on this? A solution would be much appreciated. Thanks

This is still broken as of RN v0.31.0

I've just run into this with RN v0.33.0 and RN v0.34.0.

I'm now running into the same issue on an Android 7.0 simulator with RN v0.33.0

Just run into this issue with React Native 0.37.

I tried to reproduce this bug, but it seems to work fine for me.

When I'm rotating the iPad, dimensions are not updated as you can on pictures:

If you want to test it: https://github.com/adrienbataille/test-react-native
Note: It works fine on iPhone
Additional Information
React Native version: 0.39.1
Platform: iOS
Operating System: MacOS - Sierra

I believe my PR here: https://github.com/facebook/react-native/pull/11350 fixes the bug.

+1

still having the issue, the PR looks unmerged

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with Canny! Check out its new home: https://react-native.canny.io/feature-requests/p/dimensions-not-updating-on-ipad-due-to-screen-rotation

i test my react native app on a ipad air MD791NF/A with a 2048 x 1536 screen
with Dimensions.get("window") i get ontScale  480 x  320. what i'm missing ?


Cronvoy: testing - support induced errors through Envoy Mobile filter

The Cronet MockUrlRequestJobFactory must be properly ported, and this involves a mechanism to set the induced error, likely with the help of an Envoy Mobile Filter

The following filters need to be implemented:

MockDataFilter - This is basically a direct response or echo filter
FailedRequestFilter - This fails a request and throws the specified error at the specified phase. The phases are:

Request start
Request readSync
Request readAsync

SslCertErrorFilter - ERR_CERT_DATE_INVALID
ClientCertRequestFilter - This requests for cert from client then proceeds with direct response
HangingReadFilter - SocketTimeout


Created new ms language folder

[x] Have you followed the contributing guidelines?
[x] Have you explained what your changes do, and why they add value to the Guides?

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

Hi, I'm new to GitHub and I decided to translate the opensource.guide to the malay language as a practice on how to use GitHub, is it possible to help explain to me how to properly merge the translation I made into this repository?
If possible some examples of how to resolve the issue of not being able to merge?

How do i fix the "GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data." error?

@KaynenStrife you can ignore that message, it's expected and isn't causing CI to not pass.

Thanks for telling me @mlinksva , sorry if I am making rookie mistakes, but I can't seem to get the merge....
Something about the Post Restore bundler cache.
Am I doing something wrong?

@KaynenStrife apologies, I missed your first question above. When tests pass on this PR I or another maintainer can merge it.
You've probably already seen https://github.com/github/opensource.guide/blob/master/docs/translations.md already, just pointing it out in case. Looking at what other translations have done may also be helpful.
I think what you're referring to as "merge" is actually tests passing. " Post Restore bundler cache" is an informational message, post-tests. The thing to pay attention to is the tests themselves. It looks like there are currently 33 failures, listed above this line. It's not unusual to have a lot of small failures triggered by formatting or other errors which can be hard to figure out but are ultimately small. If the failures listed at the link above don't make sense let me know and I can try to take a closer look.

@mlinksva , what other changes do I need to make?


BP: [FIX] Changed JWT Authentication page to disable ClusterProxyConfigs

Changed JWT Authentication page to disable ClusterProxyConfigs instead of removing

Summary
Backport - Fixes #11462

The original behavior was to remove ClusterProxyConfig in the corresponding namespace if JWTA for that cluster is disabled. This change sets it to disabled instead.
Occurred changes and/or fixed issues

This required changes to excludeFields behavior:
Current behavior: 'metadata.managedFields' is always excluded. If a list of fields to exclude is provided, 'metadata.managedFields' is appended to that list
New behavior: if a list of fields to exclude is provided, we just use it. A new option 'omitExcludeFields' is provided to make it possible to overwrite default exclude fields behavior.
Technical notes summary

Areas or cases that should be tested

JWT Authentication page:

Check that JWTA can be enabled, disabled, and re-enabled for clusters. (covered by existing tests)
Check that ClusterProxyConfig still exists after JWTA has been disabled for a cluster

Areas which could experience regressions

excludeFields change can affect all requests
Screenshot/Video

https://github.com/user-attachments/assets/3f0eab94-634a-4961-ad1f-6c11803d0f65
Checklist

[x] The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
[x] The PR has a Milestone
[x] The PR template has been filled out
[x] The PR has been self reviewed
[x] The PR has a reviewer assigned
[x] The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
[x] The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes

@aalves08 Can this be merged?

I would say so, yes. I don't know why I didn't hit that merge button.
Sorry about that. 🙏
On Mon, Aug 5, 2024, 09:22 Richard Cox @.***> wrote:

@aalves08 https://github.com/aalves08 Can this be merged?
—
Reply to this email directly, view it on GitHub
https://github.com/rancher/dashboard/pull/11574#issuecomment-2268464115,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXK2VTQTAWE2QSIARK2SVNLZP4Y5TAVCNFSM6AAAAABL2KUTA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRYGQ3DIMJRGU
.
You are receiving this because you were mentioned.Message ID:
@.***>


substitute redirects with code transforms

Thanks to Snowpack's WTR plugin for most of this implementation: https://github.com/snowpackjs/snowpack/blob/main/plugins/web-test-runner-plugin/plugin.js
There should be a slight speed increase due to bypassing network requests, but I haven't tested it.  This implementation seems to load fewer files also.

Code was missing a helper function.


pyramid_swagger

Bonjour,
j'ai essayé de créer un projet pyramid en utilisant le tuto suivant: http://docs.pylonsproject.org/docs/pyramid/en/latest/narr/project.html
Puis je voulais intégrer le pyramid_swagger en utilisant le lien suivant http://pyramid-swagger.readthedocs.org/en/latest/configuration.html
j'ai rien obtenu que des erreurs qui finissent pas

Aide svp

Hello,
I tried to create a pyramid project using the following tutorial: http://docs.pylonsproject.org/docs/pyramid/en/latest/narr/project.html
Then I wanted to integrate pyramid_swagger using the following link http://pyramid-swagger.readthedocs.org/en/latest/configuration.html
I got errors

"override this listing.".format(schema_dir, API_DOCS_FILENAME))

pyramid_swagger.ingest.ResourceListingGenerationError: C:/Users/sabrine/Desktop/
MyProjectSwagger/api_docs/api_docs.json has an apis listing. Generating a list
ing would override this listing.

It sounds like you've set pyramid_swagger.generate_resource_listing = true , you can set it  to false and it will use your existing api_docs.json

just for information , I modified only the file developement.ini
and i keep init.py empty
from pyramid.config import Configurator
def main(global_config, **settings):
""" This function returns a Pyramid WSGI application.
"""
should I add these lines?
settings['pyramid_swagger.schema_directory'] = 'C:/Users/sabrine/Desktop/MyProjectSwagger/api_docs'
settings['pyramid_swagger.enable_swagger_spec_validation'] = True
# ...and so on with the other settings...
config = Configurator(settings=settings)
config.include('pyramid_swagger')

http://pyramid-swagger.readthedocs.org/en/latest/configuration.html is just an example showing you what options are available. You don't need to see anything except for schema_directory I think.

so I should only add
pyramid.includes = pyramid_swagger
api_docs.json directory location.
Default: 'api_docs/'
pyramid_swagger.schema_directory = 'api_docs/'
to developement.ini and I don't change the other files of my project?
concerning the json files , I created 2 files: api_docs.json which contains
{
"swaggerVersion": "1.2",
"apiVersion": "1.0",
"apis": [
    {
        "path": "/store"
    }

]

}
and store.json

wainting for your response
Thanks in advance

I followed the steps and I create a new project . I got the error
'must be named {1}'.format(resource_listing, API_DOCS_FILENAME)

pyramid_swagger.ingest.ResourceListingNotFoundError: No resource listing found a
t "api_docs/"\api_docs.json. Note that your json file must be named api_docs.jso
n

Have you created a sample schema in that directory yet? You also might find the quickstart guide helpful http://pyramid-swagger.readthedocs.org/en/latest/quickstart.html

this is my project
I don't know what's the problem
2015-04-29 18:14 GMT+02:00 Scott Triglia<EMAIL_ADDRESS>
Have you created a sample schema in that directory yet? You also might
find the quickstart guide helpful
http://pyramid-swagger.readthedocs.org/en/latest/quickstart.html
—
Reply to this email directly or view it on GitHub
https://github.com/striglia/pyramid_swagger/issues/104#issuecomment-97484745
.

please I'm waiting  your help
2015-04-30 13:34 GMT+02:00 Sabrine Moumni<EMAIL_ADDRESS>
this is my project
I don't know what's the problem
2015-04-29 18:14 GMT+02:00 Scott Triglia<EMAIL_ADDRESS>
Have you created a sample schema in that directory yet? You also might
find the quickstart guide helpful
http://pyramid-swagger.readthedocs.org/en/latest/quickstart.html
—
Reply to this email directly or view it on GitHub
https://github.com/striglia/pyramid_swagger/issues/104#issuecomment-97484745
.

Hi,
how do u do? I HAVE A QUESTION
If it runs coorectly, it should generate a file swagger.json under the
api_docs folder?
2015-04-30 13:35 GMT+02:00 Sabrine Moumni<EMAIL_ADDRESS>
please I'm waiting  your help
2015-04-30 13:34 GMT+02:00 Sabrine Moumni<EMAIL_ADDRESS>
this is my project
I don't know what's the problem
2015-04-29 18:14 GMT+02:00 Scott Triglia<EMAIL_ADDRESS>
Have you created a sample schema in that directory yet? You also might
find the quickstart guide helpful
http://pyramid-swagger.readthedocs.org/en/latest/quickstart.html
—
Reply to this email directly or view it on GitHub
https://github.com/striglia/pyramid_swagger/issues/104#issuecomment-97484745
.

Swagger files will never be generated automatically.  If you have not yet written a full Swagger schema, I'd suggest starting with that task (http://swagger.io/ is a good starting point). Once you are sure you have a valid Swagger schema and a Pyramid application that implements it, I'd be happy to help you get it running under pyramid_swagger.

If i will develop the application , the hole application , what's the goal of pyramid_swagger?
whay should I integrate it?

The documentation summarizes pyramid_swagger's goals: http://pyramid-swagger.readthedocs.org/en/latest/. Mostly, we are focused on enforcing the accuracy of your Swagger schema against requests your application receives.

closed for lack of feedback


issue with the adaptive videos

Hey, for some reason I can not load the adaptive videos that are in the streamQuery given in the stream() method in Youtube class, can it be fixed somehow?

Hi @roeinissim, please provide me JavaTube code and output.

I can't reach my computer right now but I can tell you that I tried with a few videos so far and in each try it gave me a lot of adaptive streams and 1 progressive stream in the stream query, the progressive stream is working fine but it is always in a resolution of 360p, the adaptive streams are taking a lot of time to load in the media player and then after like 1 minute of loading it is only video without sound.

YouTube uses a streaming technique called Dynamic Adaptive Streaming over HTTP (DASH), this implies how streams are provided, in this case, progressive streams provide audio and video in a single file (usually in resolution between 360p and 720p) , while adaptive provides the audio and video in separate files (usually at higher qualities). Adaptive streams are generally larger in quantity than progressive streams, but the audio and video are separate.
To have higher quality videos, you can download the video and then the audio and merge it using ffmpeg for example.
The WEB client that JavaTube currently uses only provides a progressive stream.
ANDROID clients usually offer progressive streams in 360p and 720p resolution, however they can generate various types of errors in certain videos.
To change the client, change the function in Youtube.java:
    private JSONObject getVidInfo() throws Exception {
        if(vidInfo == null){
            vidInfo = setVidInfo();
        }
        return vidInfo;
    }

For
    private JSONObject getVidInfo() throws Exception {
        if(vidInfo == null){
            vidInfo = new InnerTube("ANDROID_MUSIC").player(videoId());
        }
        return vidInfo;
    }

You can check available clients at InnerTube.java
Extra Info: For some reason YouTube provides adaptive streams called OTF for some videos, which need to be downloaded in sequential chunks.

thank you very much for the large explanation!


Change !incorporate to !start

Or some easier/shorter word

Idk.  I like incorporate which could be shortened to !inc  but start is ok too.

I don't know if "start" will ultimately be the word, but I want to have a shorter option than "incorporate"

Imho, inc would be a good short option most people will understand.  A variation could just be !co


[Concurrency] Use #fileID instead of #file so we don't get full paths.

Fixes rdar://93246032.

@swift-ci please smoke test


Suggestion - GetTokenStream

Hi,
I am going through the Lucene 4 Cookbook's example. Not sure how to revise the Java version's codes to C# as shown below.
original code : Line 55, 56
revised code: Line 57, 58

Any suggestion? Thanks.
StringReader reader = new StringReader("Lucene is mainly used for information retrieval and you can read more about it at lucene.apache.org.");
StandardAnalyzer wa = new StandardAnalyzer(luceneVersion);
TokenStream ts = null;

try
{
    ts = wa.GetTokenStream("field", reader);
    OffsetAttribute offsetAtt = ts.addAttribute(OffsetAttribute.class);
    CharTermAttribute termAtt = ts.addAttribute(CharTermAttribute.class);
    //var offsetAtt = ts.AddAttributeImpl(typeof(OffsetAttribute)) as OffsetAttribute;
    //CharTermAttribute termAtt = ts.AddAttribute<CharTermAttribute>();
    ts.Reset();

    while (ts.IncrementToken())
    {
        String token = termAtt.ToString();
        Console.WriteLine("[" + token + "]");
        Console.WriteLine("Token starting offset: " + offsetAtt.StartOffset);
        Console.WriteLine(" Token ending offset: " + offsetAtt.EndOffset);
        Console.WriteLine();
    }
    ts.End();
}

Hi,
I just figured it out:
OffsetAttribute offsetAtt = (OffsetAttribute)ts.AddAttribute<IOffsetAttribute>();
CharTermAttribute termAtt = (CharTermAttribute)ts.AddAttribute<ICharTermAttribute>();

Excellent.  Thanks for posting the answer here.   Welcome to Lucene.NET.
StackOverflow can be a good additional source of info on your Lucene.NET journey: https://stackoverflow.com/questions/tagged/lucene.net
Thank you for taking Lucene.NET for a spin.  It's an amazingly powerful search library. We hope you will find it as wonderful as we do.


Buffer type missing inspect()

TypeScript: 3.3.1
Search Terms: Buffer inspect
The Buffer interface is missing the inspect() function:
https://nodejs.org/docs/latest/api/util.html#util_util_inspect_object_options
buffer.INSPECT_MAX_BYTES#
Added in: v0.5.4
<integer> Default: 50
Returns the maximum number of bytes that will be returned when buf.inspect() is called. This can be overridden by user modules. See util.inspect() for more details on buf.inspect() behavior.

Note that this is a property on the buffer module returned by require('buffer'), not on the Buffer global or a Buffer instance.

I agree that it is not well documented. :)
This is how console.log() prints Buffer
console.log(Buffer.from('abcde')) //  <Buffer 61 62 63 64 65>
console.log(Buffer.from('abcde').inspect()) //  <Buffer 61 62 63 64 65>

Also mentioned in SO:
https://stackoverflow.com/questions/21179524/how-to-convert-node-buffer-to-string-like-console-log-show

Moved to DT


segments_type operations and tests

Need more comprehensive tests and documentation, but operational.

Please squash it all down

Please squash it all down


diagnostics: fix unmatched memory info

Signed-off-by: Zhenchi<EMAIL_ADDRESS>What problem does this PR solve?
Issue Number: close #9532
Problem Summary:
The value of total memory is from quota, while other memory infos are from system. It is improper to divide the quota memory by other system memory infos.
What is changed and how it works?
Use the total memory from system.
Check List
Tests

No code

Release note

Fix unmatched memory information

/cc @breeswish

/cc @breeswish

@crazycs520 PTAL

@crazycs520 PTAL

/run-all-tests

/run-all-tests

/test

/test

/merge

/merge

/merge

/merge


Add NewCloudClient

NewCloudClient allows create client with prepared configuration

Codecov Report

Merging #24 into master will increase coverage by 1.93%.
The diff coverage is 47.36%.

@@            Coverage Diff             @@
##           master      #24      +/-   ##
==========================================
+ Coverage   45.35%   47.28%   +1.93%
==========================================
  Files           8        8
  Lines        1065     1068       +3
==========================================
+ Hits          483      505      +22
+ Misses        489      469      -20
- Partials       93       94       +1

Impacted Files
Coverage Δ

clientconfig/requests.go
14.11% <ø> (+1.77%)
:arrow_up:

services/client.go
45.31% <42.30%> (-4.69%)
:arrow_down:

services/compute.go
61.19% <100.00%> (ø)

services/containers.go
79.55% <100.00%> (ø)

services/ecs.go
44.73% <100.00%> (ø)

services/networking_v2.go
46.05% <100.00%> (ø)

services/vpc.go
64.89% <100.00%> (ø)

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 ab11bc8...70c0cc6. Read the comment docs.


Dark V2 debug toolbar grey looks out of place

Not sure if this was intentional or not but the debug toolbar grey seems to be lighter than everything:

Looks like I had just missed overriding the defaults. Will be fixed via #169177


[Frontend][Feature] Add jamba tool parser

Add JambaToolParser to support tool calling for ai21labs/AI21-Jamba-1.5-Mini and ai21labs/AI21-Jamba-1.5-Large

@K-Mistele do you have time to review this?

@K-Mistele do you have time to review this?

Yes, happy to take a look!

@K-Mistele do you have time to review this?

Yes, happy to take a look!

Ping? Anything I can do to help this getting merged?

@K-Mistele

RE tests - that was my initial thought as well. Problem is even Jamba-1.5-Mini is a pretty large model with ~52B params. It will take a long time to download every time the unittest is run. Moreover, even with quantization it needs an 80GB GPU, and AFAIU tests currently run on L4 GPUs.. so we'll have issues with memory as well. The Jamba-tiny-dev model used for other Jamba tests is a pretrained model and doesn't support tool calling.
Other than the model size issues, the end2end behavior of tool calling is already tested in tool calling tests of other models. Also, that end2end logic hasn't changed in this PR. The only logic this PR adds is the JambaToolParser logic. And conveniently enough (AKA good code design ny you guys), it can be thoroughly tested without initializing a model, as I did in tests/tool_use/test_jamba_tool_parser.py. All it needs is the tokenizer and a raw string treated as the model output.

RE docs - sure! I'll update them soon

@K-Mistele

RE tests - that was my initial thought as well. Problem is even Jamba-1.5-Mini is a pretty large model with ~52B params. It will take a long time to download every time the unittest is run. Moreover, even with quantization it needs an 80GB GPU, and AFAIU tests currently run on L4 GPUs.. so we'll have issues with memory as well. The Jamba-tiny-dev model used for other Jamba tests is a pretrained model and doesn't support tool calling.
Other than the model size issues, the end2end behavior of tool calling is already tested in tool calling tests of other models. Also, that end2end logic hasn't changed in this PR. The only logic this PR adds is the JambaToolParser logic. And conveniently enough (AKA good code design by you guys), it can be thoroughly tested without initializing a model, as I did in tests/tool_use/test_jamba_tool_parser.py. All it needs is the tokenizer and a raw string treated as the model output.
RE docs - sure! I'll update them soon

Sounds good! I didn't realize the model was so big. I will defer to @mgoin @DarkLight1337 then.


Preview doesn't update on setting changes

As the title says, include below watch in BlockTypeGridViewPreviewController.js
$scope.$watch('block.settingsData', function (newVal, oldVal) {
       $scope.setPreview($scope.block);
}, true);

Thanks :)


Job opportunity

Got your reference from one of the social media channels, I would like to discuss a job opportunity with you.. Please let me know if you are open for a change.

Please don't do that.


[Update GitHub Link] Edit Page link shows 404 no page found.

https://velocityx.dev/docs/vxnavigator/getting_started
In the above link, the Edit Page is showing 404. Also, the documentation isn't updated according to the latest versions.

Fixed


Deprecate EUPATH_0000496 and replace by EUPATH_0000594

Revert deprecation of EUPATH_0000594, relabel the term and add definition, definition source, and term editor
https://github.com/VEuPathDB-ontology/VEuPathDB-ontology/issues/194

Did not see replaced by ENVO term for EUPATH:0000368

It is already in the ontology. Might have been changed after checking.

Suggested change: "An information indicates that samples from child or from the mother, or both." -> "Information which indicates that samples are from the child or from the mother, or both." OR "An information content entity which indicates that samples are from the child or from the mother, or both."


22.0.3 symbol error on Scientific Linux release 7.9 (Nitrogen)

Symbol link error after install to non-standard location
This may be a bug but I couldnt find a list of supported platforms. I'm using the University of Cambridge's HPC on one of the older nodes, so may just be an unsupported OS.
I note it works fine on the newer nodes (icelake running Rocky Linux release 8.6 (Green Obsidian) )
Version 22.0.3
To Reproduce
Installed to ~/MOPAC2022 (Home dir replaced by XXXX below.)
~/MOPAC2022/bin/mopac
XXXX/MOPAC2022/bin/mopac: relocation error: XXXX/MOPAC2022/bin/../lib/libmopac.so.1: symbol __kmpc_free, version VERSION not defined in file libiomp5.so with link time reference
On [ Scientific Linux release 7.9 (Nitrogen)] Linux

Is this the release version or the development version (active main branch)?
The Linux installer of MOPAC was producing this problem because I didn't package the right OpenMP library, but that instance was resolved in v22.0.3. Could you run ldd -v ... on the mopac executable and on the libmopac.so library and tell me the contents of ~/MOPAC2022/lib? Is your executable working in the build directory before you run the install step? Are you using an Intel script to set environment variables (e.g. setvars.sh)?
The root of this problem seems to be that CMake finds a version of libiomp5.so on many Linux distributions that is a symbolic link to system libraries rather than the Intel OpenMP library (what it should be). I'm presently sidestepping this problem by using the AUTO_BLAS=OFF CMake option and setting the BLAS, LAPACK, and OpenMP library paths by hand with MOPAC_LINK and MOPAC_LINK_PATH when running the CMake setup. I don't have an automated fix yet, but I'll eventually try some fixes. I think this is technically a subtle bug in CMake's find_package(BLAS), but there might be a way to work around the problem.

I installed the .run from here:
https://github.com/openmopac/mopac/releases/download/v22.0.3/mopac-22.0.3-linux.run
rather than building from source. ldd returns this - I suspect the issue is that its picking up the system installed libiomp5.so rather than the one provided in the install.
    linux-vdso.so.1 =>  (0x00007ffc7bfec000)
    libmopac.so.1 => XXXX/MOPAC2022/bin/./../lib/libmopac.so.1 (0x00002b880eeca000)
    **libiomp5.so => /usr/local/Cluster-Apps/intel/2017.4/compilers_and_libraries_2017.4.196/linux/com                  piler/lib/intel64/libiomp5.so** (0x00002b8814822000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b8814bc6000)
    libm.so.6 => /lib64/libm.so.6 (0x00002b8814de2000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00002b88150e4000)
    libc.so.6 => /lib64/libc.so.6 (0x00002b88152e8000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b88156b6000)
    /lib64/ld-linux-x86-64.so.2 (0x00002b880eca6000)

I tried doing LD_LIBRARY_PATH=../lib ; export LD_LIBRARY_PATH and running mopac again. That lets mopac run OK so I think this is the issue.
The standard login on this system sets LD_LIBRARY_PATH to include the offending folder so I think that's the issue.

Thank you for this additional information, this is a bit different from the previous OpenMP dependency problems that were recently reported. I am setting the RPATH in the MOPAC executable to point to the local versions of the MOPAC and OpenMP shared libraries, but the LD_LIBRARY_PATH seems to be overriding RPATH in the situation you are reporting and using an older version of libiomp5.so on your file system. RPATH is supposed to have higher priority than LD_LIBRARY_PATH, and I'll have to more carefully check that I'm using it correctly.

Ok, I have a more definitive response to this after closer examination. The connection between the MOPAC executable and its shared libraries on Linux is based on a RUNPATH rather than an RPATH. RUNPATH is considered the modern standard on Linux and RPATH is considered deprecated, hence CMake supports the use of RUNPATH, not RPATH. A "benefit" of RUNPATH over RPATH is that it has lower (rather than higher) priority than the LD_LIBRARY_PATH environment variable. This feature makes it easy to use LD_LIBRARY_PATH to force the temporary use of other shared libraries, but it can cause accidents such as what you are experiencing. When this happens, the options are:

Remove the offending paths from LD_LIBRARY_PATH (which might affect other programs)
Add the MOPAC library path earlier in LD_LIBRARY_PATH (which also might affect other programs, but less so)
Use tools like patchelf to replace the RUNPATH in the MOPAC executable and library with an RPATH that will override LD_LIBRARY_PATH (won't affect other programs, but considered to be deprecated)

The problem here is really on Intel's side: they changed the interface to their OpenMP library in the last few years, but they do not comply with the Linux standard of shared library versioning so there are libraries with the same file name floating around that are incompatible with each other and can easily break things.
While I could switch from RUNPATH to RPATH on Linux, I don't think it's a good idea because (1) I'd have to do it by hand because CMake commands can't do it for me, (2) RPATH is considered to be deprecated, and (3) the present behavior is more consistent between Mac and Linux, and there are no alternative commands/behaviors on Mac.

I guess the old school way would be to add a wrapper shell script to launch MOPAC; then you could locally deal with the environment, but that may create other complexity that you probably dont want. Any way thanks for the help.


Virtual Desktop workspace service

High-level requirements

Virtual Desktops is in many cases the entry point into the TRE.
Virtual Desktops can be configured to be access from the Internet over secure channel.
Virtual Desktops can be configured to only be access from a private network.
Ability to provision both Windows and Linux Data Science Virtual Machines.

Add additional base images in case the DSVM image is not desirable.

Single-sign on across resources.
No display blur for the end-user. - Allow for high-resolution - e.g. native resolution of the connecting client.

4K for medical imaging scenarios.
VM display resolution must match client display resolution.

Offer a defined set of Virtual Machine configurations, e.g. Small, Medium, Large and image.
Limit number of VMs to be provisioned per workspace and per user.
End-users should be able to connect to Virtual Desktops from Windows, Linux and Mac OSes.
Ability to control how data is allowed to be moved from/to the VM and the connecting client

Clipboard: one-way / no-way / both-ways
Import and export data from the VM.

Ability to mount user scoped storage across VMs
Ability for end-user to start and stop VMs
Scheduled start and stop of individual VMs

Whole workspace scheduling

Ability to resize VM
Updates management - Ability to pause or reschedule or apply updates to the VM.
Ability to install licensed applications , e.g. Office 365 and Mathlab applications

Azure DevTest Labs provide some of the capabilities listed above, which we should look into in a bit more detail.

Apache Guacamole ticks several of the boxes also.

The ATRE is a highly controlled environment, many 'apps' will need configuring at the 'user' profile level for them to operate properly. For example if a network proxy is used for auditing then the browser, git client, conda, PyCharm, Azure storage explorer will all need to be configured to use it. This can be a big headache users as each time they login to a system they need to remember these configuration changes. We should make this as automated as we can to reduce the cost of adoption.

@iankelly-github good points. We should pre-install everything that a user might need into the VM and have this configured to work seamlessly within the Azure TRE Workspace. TRE Admins are probably the people to provide significant additional customisations. Basically the same experience as managed desktops, not what people love, but people do understand this model at least. We do want to make the TRE user experience great though, so anything we can do to provide flexibility within the constraints of the environment is fantastic!

@iankelly-github  100%. This is an interesting challenge, one way we have approached this is by using common DNS names across workspaces. So have packages.drednsname.com resolve to the package "server" IP address. In certain occasions can "hijack" the DNS name of the public package repo, but SSL can become a challenge.

The following diagram created with @christoferlof  might be a good starting point when thinking about user stories:

I really like the diagram, very useful for brain-storming use cases. Should we capture all suggestions as issues or as 'ideas' under discussions?

@iankelly-github If they are specific to virtual desktops/users creating compute along the lines of the diagram above, continue this chat.
If they are separate feature requests, feel free to create issues and will add them to the backlog, refine, and prioritize.

Thanks for clarifying @marrobi. I just reviewed this issues requirements again and most of the use cases that I immediately thought of are already included :-) The only additional use case would be 'create a snapshot my VM/disks'.

It's worth noting that Azure Virtual Desktop will be a valid alternative to a custom virtual desktop solution for some customers. We should define this in a separate story.