Abstract fs

Description
This PR introduces an abstraction for file system access functions. It also provides a serialisation based implementation for target devices. All calls to fopen, fread, fwrite etc file stream functions used in mbed TLS library are changed to mbedtls_fopen, mbedtls_fread, mbedtls_write and so on.
Use of file system calls is guarded under flag MBEDTLS_FS_IO. A default implementation of these flags simply maps them to standard fopen, fread, fwrite etc functions. An alternative user defined implementation can be provided by enabling flag MBEDTLS_FS_IO_ALT.
One alternative implementation is provided in the library that is based on providing access to a host machine's file system over serial interface by serialising above functions. This implementation can be enabled by enabling flag MBEDTLS_SERIALIZE_C in additions to MBEDTLS_FS_IO and MBEDTLS_FS_IO_ALT. This implementation still requires user to implement functions mbedtls_serialize_read and mbedtls_serialize_write for providing platform specific implementation of sending/recving data serially.
In order to test serialised implementation on a host machine serial functions and supporting code is present under MBEDTLS_SERIALIZE_FORK_FRONTEND_C flag. Enable this in the config and do make test. A new test suite test_suite_fs_abstraction is added to test fs abstraction.
Status
READY/IN DEVELOPMENT/HOLD
Requires Backporting

This PR is a new feature\enhancement

Migrations
No API change
Additional comments
Any additional information that could be of interest
Todos

[ ] Tests
[ ] Documentation
[ ] Changelog updated
[ ] Backported

Steps to test or reproduce

Enable flags MBEDTLS_FS_IO, MBEDTLS_FS_IO_ALT, MBEDTLS_SERIALIZE_C and MBEDTLS_SERIALIZE_FORK_FRONTEND_C in config.h
make
make test

@hanno-arm & @gilles-peskine-arm  Please review this.

@AndrzejKurek @k-stachowiak

retest mbedtls

@AndrzejKurek @k-stachowiak dirent abstraction is complete.

@hanno-arm I have incorporated your comments.
@gilles-peskine-arm I am still working on your comments.

@gilles-peskine-arm @hanno-arm all review comments incorporated or replied to. Please re-review.

@gilles-peskine-arm incorporated your code review comments.

@gilles-peskine-arm ready for review.

@hanno-arm Can you please review as well.

@gilles-peskine-arm and @hanno-arm Appreciate your comments. I have replied to or incorporated your comments. Please re-review.

@hanno-arm do you have any further comments on this.

@mazimkhan Could you update the PR description, indicating that SERIALIZE_C is now a sub-option of FS_IO but not FS_IO_ALT?

@mazimkhan Some time has passed, and you might already have explained it to me, but I'm still not totally clear on the following: As far as I understand, whenever the serialization code is to be used, the user has to provide platform-specific code for the serialize_read and serialize_write primitives. For on-host testing of serialization (where library and frontend run on the same system), these are implemented by the code guarded by FORK_FRONTEND_C in a way which forks the frontend program program/host/frontend and realizes serialize_read/write through a pipe to that forked frontend process. I would prefer this test-only part of serialize.c to be a separate compilation unit that is linked into test builds, but which is not part of the library itself. Concretely, the stub could be another source file in the programs/host folder (different from frontend.c - I think in my earlier comments I blurred programs/host/frontend and the fork stub).

@hanno-arm Regarding the placement of the code for on-host testing, I hadn't thought much about it initially, it was just convenient to not have yet another source file. Upon reflection, I have a weak preference to keep it in a single file. It's very similar to the self-tests that we have in many modules.

Hi.
mbedTLS project would not compile in VS 2017.
Severity	Code	Description	Project	File	Line
Error	C1083	Cannot open include file: 'dirent.h': No such file or directory	mbedTLS	mbedtls\include\mbedtls\fsio.h	182

This PR passes release test CI https://jenkins-internal.mbed.com/job/mbedtls-release/371/

retest

@sbutcher-arm @Patater rebased and tested.

@sbutcher-arm @Patater rebased this PR. It is important to merge this PR in order to be able easily review up coming on-target system testing PRs.
This PR has been reviewed and approved before. Only rebase changes have gone in since then.
cc @oliverjharper

@hanno-arm @gilles-peskine-arm I have rebased this PR several times and that has dismissed your approval of it. Would you please have a look again checking that the PR has not changed after the rebase and approve. This PR gate following PRs:
#1929, #1930 and more coming, these implement on-target system testing.

@hanno-arm incorporated your review comments. Jenkins CI is stuck due to some Jenkins issue. But travis CI has passed.

This PR needs rebasing, and then will need re-reviewing and potentially rework.
In Azim's absence, I'll rebase it, therefore making @k-stachowiak a reviewer in my place, and labelling it for rework.

Created branch with approved changes mazimkhan:abstract-fs-23-09-18.
Rebased this PR on ARMmbed:development.

Closing this PR as it mainly relates to on-target testing, which was removed from Mbed TLS in PR #5116 (#4944 for 2.28 LTS), following the announcement in issue #4912 in Sep 2021.
A separate issue (#5595) has been raised as a placeholder, in case we want to come back to it at some point in the future.


Less Whitespace

When we have no heading or no text, or no icon, there is too much whitespace on the card vertically above and below the icons.
Similar to #27 but that is for space between icons. And the vertical space could be tightened up a bit normally anyway.

I think this is because we're using the Lightning Card - we may need to drop the Card component and just build its concept from scratch based on the SLDS documentation.

This is actually a result of "Comfy" vs "Compact" because we are using the "Narrow" variant.
Still a known issue of the card.


Upgrade OpenVINO version to 2023.0.0

Summary

How to test

Checklist

[ ] I have added unit tests to cover my changes.
[ ] I have added integration tests to cover my changes.
[ ] I have added the description of my changes into CHANGELOG.
[ ] I have updated the documentation accordingly

License

[ ] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.
[ ] I have updated the license header for each file (see an example below).

# Copyright (C) 2023 Intel Corporation
#
# SPDX-License-Identifier: MIT

Codecov Report
Patch coverage has no change and project coverage change: -0.02 :warning:

Comparison is base (35d8b4a) 78.86% compared to head (1c7d98b) 78.85%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1036      +/-   ##
===========================================
- Coverage    78.86%   78.85%   -0.02%
===========================================
  Files          239      239
  Lines        27184    27184
  Branches      5418     5418
===========================================
- Hits         21439    21436       -3
- Misses        4480     4481       +1
- Partials      1265     1267       +2

Flag
Coverage Δ

ubuntu-20.04_Python-3.8
78.85% <ø> (ø)

windows-2019_Python-3.8
?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


java.lang.NoClassDefFoundError: org/bytedeco/javacpp/openblas

Issue Description
I built ND4J standalone on OS/X Catalina and am attempting to do some simple standalone testing.
I get an exception as shown.
Please describe your issue, along with:
I built ND4J
I set up a test directory with a simple test. I started copying in whatever jars seemed necessary and wrote a first simple test.
This reproduces the error...
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.factory.Nd4j;
//import org.nd4j.linalg.api.buffer.DataType;
public class ND4J1 {
public static void main(String... args) {
	INDArray x =Nd4j.zeros(3,4);

	// The number of axes (dimensions) of the array.
	int dimensions = x.rank();

	// The dimensions of the array. The size in each dimension.
	long[] shape = x.shape();

	// The total number of elements.
	long length = x.length();

	// The type of the array elements.
	//DataType dt = x.dataType();
}

}
Although currently I am trying to run a different example class with the same result.
Run as...
java -cp .:nd4j-uberjar-1.0.0-SNAPSHOT.jar:nd4j-buffer-1.0.0-SNAPSHOT.jar:nd4j-api-1.0.0-SNAPSHOT.jar:nd4j-native-1.0.0-SNAPSHOT.jar:nd4j-backend-impls-1.0.0-SNAPSHOT.jar:openblas.jar:nd4j-native-platform-1.0.0-SNAPSHOT-macosx-x86_64.jar:nd4j-context-1.0.0-SNAPSHOT.jar:slf4j-api-1.7.25.jar:log4j-1.2.17.jar:openblas-macosx-x86_64.jar:slf4j-log4j12-1.7.5.jar:nd4j-common-1.0.0-SNAPSHOT.jar:javacpp.jar:nd4j-native-api-1.0.0-SNAPSHOT.jar:commons-math3-3.6.1.jar:nd4j-native-1.0.0-SNAPSHOT-macosx-x86_64.jar -Djava.library.path=lib org.nd4j.examples.quickstart.Nd4jEx1_INDArrayBasics
current lib directory...
ls lib
libjnind4jcpu.dylib			libnd4jcpu.dylib			libopenblas_haswellp-r0.3.18.dev.dylib

expected behavior
Test runs

encountered behavior
Exception thrown

Exception in thread "main" java.lang.NoClassDefFoundError: org/bytedeco/javacpp/openblas
at org.nd4j.linalg.cpu.nativecpu.blas.CpuBlas.setMaxThreads(CpuBlas.java:120)
at org.nd4j.nativeblas.Nd4jBlas.(Nd4jBlas.java:35)
at org.nd4j.linalg.cpu.nativecpu.blas.CpuBlas.(CpuBlas.java:15)
at org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory.createBlas(CpuNDArrayFactory.java:94)
at org.nd4j.linalg.factory.BaseNDArrayFactory.blas(BaseNDArrayFactory.java:68)
at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.getEnvironmentInformation(NativeOpExecutioner.java:1251)
at org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner.printEnvironmentInformation(DefaultOpExecutioner.java:652)
at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:6940)
at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:6810)
at org.nd4j.linalg.factory.Nd4j.(Nd4j.java:213)
at org.nd4j.examples.quickstart.Nd4jEx1_INDArrayBasics.main(Nd4jEx1_INDArrayBasics.java:54)
Caused by: java.lang.ClassNotFoundException: org.bytedeco.javacpp.openblas
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 11 more
This seems similar to this issue
https://github.com/eclipse/deeplearning4j-examples/issues/605
Although I'm not quite sure how that was resolved.
Note that to maven build I first had to figure out that I additionally needed javacpp and libnd4j. Since then I have also tried  javacpp-presets and OpenBLAS. There appear to be presets that might have the missing openblas class. But with different packages.
It also seemed to need this changed
<lombok.version>1.18.20</lombok.version>
Version Information
Current downloads of maven related for nd4j, libnd4j and javacpp.
Please indicate relevant versions, including, if relevant:

Deeplearning4j version.                  N/A
platform information (OS, etc)       Mac OS/X Catalina (10.15.7)
CUDA version, if used                     N/A
NVIDIA driver version, if in use.     N/A

Contributing
If you'd like to help us fix the issue by contributing some code, but would
like guidance or help in doing so, please mention it!

This can be closed.
Was attempting build of old version.
Worked with current.


[WIP] Janpio itms on windows

Checklist

[ ] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[ ] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[ ] I've read the Contribution Guidelines
[ ] I've updated the documentation if necessary.

Motivation and Context

Description

          1 Warning

:warning:
Pull Request is Work in Progress

  Generated by :no_entry_sign: Danger


chore: deprecate openshift-image-registry

deprecate openshift-image-registry as it has been moved to https://github.com/redhat-developer/rhdh-plugins/tree/main/workspaces/openshift-image-registry

Please rebase redhat-developer with the latest janus-idp/backstage-plugins changes before merging.

Made the changes! (https://github.com/redhat-developer/rhdh-plugins/releases/tag/%40red-hat-developer-hub%2Fbackstage-plugin-openshift-image-registry%401.10.0)

/approve
/lgtm


Where to buy

Hi, great project
Will it be available for sale soon?

Hi, i am also very interessred!
thx

Hello Everyone, we are working on getting these available for sale by Q1 2017.
For more information check out http://piaq.io or the new, dedicated repo
https://github.com/NationalAssociationOfRealtors/PiAQ


MusicService.get_metadata() failing for Google Play Music

get_metadata fails with the following result. If someone who understands how MusicService works can explain what it should do I would be happy to investigate further to find out why it does not work as expected.
>>> from soco.music_services import MusicService
>>> MusicService.get_subscribed_services_names()
['Google Play Music', 'TuneIn']
>>> gpm = MusicService('Google Play Music')
>>> gpm.get_metadata()
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/soco/music_services/music_service.py", line 151, in call
    result_elt = message.call()
  File "/srv/homeassistant/lib/python3.4/site-packages/soco/soap.py", line 310, in call
    raise SoapFault(faultcode, faultstring, faultdetail)
soco.soap.SoapFault: soap:Client: Invalid credentials in request.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/srv/homeassistant/lib/python3.4/site-packages/soco/music_services/music_service.py", line 682, in get_metadata
    ('recursive', 1 if recursive else 0)]
  File "/srv/homeassistant/lib/python3.4/site-packages/soco/music_services/music_service.py", line 182, in call
    raise MusicServiceException(exc.faultstring, exc.faultcode)
soco.exceptions.MusicServiceException: ('Invalid credentials in request.', 'soap:Client')
>>> tunein = MusicService('TuneIn')
>>> tunein.get_metadata()```

I would like to echo the question raised by @frog32  - I am seeing a very similar error when trying to do the same with the Apple Music service - is this a known issue with music services of this nature?
>>> am = MusicService('Apple Music')
>>> am.get_metadata()
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/soco/music_services/music_service.py", line 151, in call
    result_elt = message.call()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/soco/soap.py", line 310, in call
    raise SoapFault(faultcode, faultstring, faultdetail)
soco.soap.SoapFault: SOAP-ENV:Client.AuthTokenExpired: com.apple.its.commerce.sonos.resource.error.InvalidTokenException

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/soco/music_services/music_service.py", line 682, in get_metadata
    ('recursive', 1 if recursive else 0)]
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/soco/music_services/music_service.py", line 182, in call
    raise MusicServiceException(exc.faultstring, exc.faultcode)
soco.exceptions.MusicServiceException: ('com.apple.its.commerce.sonos.resource.error.InvalidTokenException', 'SOAP-ENV:Client.AuthTokenExpired')

Same issue I am having with the AuthTokenExpired

See here for this issue: https://github.com/SoCo/SoCo/issues/428


chore(deps): alerts

Description
Closes security alerts:

https://github.com/bcgov/nr-spar/security/code-scanning/111
https://github.com/bcgov/nr-spar/security/code-scanning/112
https://github.com/bcgov/nr-spar/security/dependabot/79

Removes stale overrides for ip and postcss
How was this tested?

[ ] 🧠 Not needed
[ ] 👀 Eyeball
[ ] 🤖 Added tests

What gif/image best describes this PR or how it makes you feel?

Thanks for the PR!
Deployments, as required, will be available below:

Frontend
Backend
Oracle-API

Please create PRs in draft mode.  Mark as ready to enable:

Analysis Workflow

After merge, new images are deployed in:

Merge Workflow

Thanks for the PR!
Deployments, as required, will be available below:

Frontend
Backend
Oracle-API

Please create PRs in draft mode.  Mark as ready to enable:

Analysis Workflow

After merge, new images are deployed in:

Merge Workflow

Looking good. Thank you Derek!


Springfield College Pull Request

https://springfield.edu/programs/computer-and-information-sciences

@AlexDavis1604 Thank you for your patience while waiting for a review and processing your request. Pull request merged. Please start applying for JetBrains educational subscription at https://www.jetbrains.com/shop/eform/students in an hour, to allow the changes to propagate through JetBrains systems.


Type error when using Resource.detail() but not when using detailShape()

React version 17.0.1
Concurrent mode no
Rest Hooks version 5.0.5
TypeScript version 4.1.5
Describe the bug
I recieve a type error when using Resource.detail() but not when using detailShape(). The typings indicate that this method is deprecated but I am following along with the Getting Started guide.
Apologies if I have missed this issue being raised already or something glaringly obvious. I did have a good hunt round for this on the Repo.
To Reproduce
Steps to reproduce the behavior:

Set up example on getting started using latest React and rest-hooks.
Observe type error when using const article = useResource(ArticleResource.detail(), { id });
Type error dissapears if method changed to const article = useResource(ArticleResource.detailShape(), { id });

Additional context
TS error recieved
(alias) class ArticleResource import ArticleResource No overload matches this call.   Overload 1 of 17, '(v1: readonly [ReadShape<any, any, any>, any], v2: readonly [ReadShape<any, any, any>, any]): [any, any]', gave the following error.     Argument of type 'Pick<{ schema: SchemaDetail<ArticleResource>; }, never> & Pick<EndpointInstance<(this: EndpointInstance<FetchFunction<any, any, any>, string | { ...; } | Schema[] | SchemaSimple<...> | Serializable<...>, true> & { ...; }, params: any) => Promise<...>, undefined, undefined> & { ...; }, "url" | ... 4 more ... | "getFe...' is not assignable to parameter of type 'readonly [ReadShape<any, any, any>, any]'.   Overload 2 of 17, '(fetchShape: ReadShape<any, any, any>, params: { id: number; }): any', gave the following error.     Argument of type 'Pick<{ schema: SchemaDetail<ArticleResource>; }, never> & Pick<EndpointInstance<(this: EndpointInstance<FetchFunction<any, any, any>, string | { ...; } | Schema[] | SchemaSimple<...> | Serializable<...>, true> & { ...; }, params: any) => Promise<...>, undefined, undefined> & { ...; }, "url" | ... 4 more ... | "getFe...' is not assignable to parameter of type 'ReadShape<any, any, any>'.       Types of property 'type' are incompatible.         Type '"mutate"' is not assignable to type '"read"'.ts(2769)

Can you share the implementation of ArticleResource - including import statements? Note, import { Resource } from '@rest-hooks/rest' in the docs - Resource importing from the @rest-hooks/rest library rather than 'rest-hooks' library.

Thanks a bunch for the prompt @ntucker, It's just copy and pasted from the article. I'll be able to get a codesandbox set up for you later today if that's alright with you.
Here's my Article.ts:
import { Resource } from '@rest-hooks/rest';

export default class ArticleResource extends Resource {
  readonly id: number | undefined = undefined;
  readonly title: string = '';
  readonly content: string = '';
  readonly author: number | null = null;
  readonly tags: string[] = [];

  pk() {
    return this.id?.toString();
  }

  static urlRoot = 'http://test.com/article/';
}

That would be great, thanks @C94P ! Often a full reproduction example isn't needed because it's clear what the problem is - but in this case I just can't reproduce it myself so it would be helpful getting to the bottom of it.

Also can you try the just publish<EMAIL_ADDRESS>version and see if this is still a problem?

Gave the latest release a try and still no luck unfortunately.
I have attempted to set up a codesandbox here but it's throwing errors that the module doesn't exist. I'm afraid that's all I can provide at this point, it's set up exactly the same as my minimal test scenario.
Let me know if you have any other suggestions. Could it be related to the TS or Node version I'm running?

I got this to work in runtime https://codesandbox.io/s/rest-hooks-error-forked-fn7hh?file=/src/resources/article.ts (the api is not real so it throws an error as expected)
However, somethings borked with codesandbox's typescript stuff so it doesn't really show whether typing works correctly.

Can you try running https://github.com/ntucker/anansi/tree/master/examples/typescript ? This is an example that uses a real API.

I happened to come across the same typescript problem recently, with exactly the same symptoms as @C94P. I am on<EMAIL_ADDRESS>and<EMAIL_ADDRESS>with<EMAIL_ADDRESS>I tried to create a codesandbox, but it really seems like their typescript is weird anyway. My same setup on codesandbox could not reproduce this issue however.
I use the useResource hook provided in the rest-hooks package and the Resource implementation from @rest-hooks/rest. Maybe someone else has an idea since detailShape() does not produce any warning (except about the deprecation).

@saaymeen Thanks for sharing! Do you think you can get a reproduction in a sample repo on github that we can clone instead? Maybe with one of the bad Resources and the tsconfig. Would love to be able to figure out what's going on, but I haven't been able to experience this myself so sort of at a loss for now.
Also if you could try using the same shape with useCache() and paste the error - this hook has more readable errors than useResource()

I have a theory...please reopen if this doesn't work

@saaymeen try upgrading to https://github.com/coinbase/rest-hooks/releases/tag/%40rest-hooks%2Fendpoint%401.0.8 and see if it persists

@C94P @saaymeen - if you have time, can you validate release 5.0.15 of rest-hooks? 🙏

@C94P @saaymeen - if you have time, can you validate release 5.0.15 of rest-hooks? pray

Does not seem to resolve the issue for me. I bumped the version on my example repo, but the issue persists. Changing strict to true in tsconfig.json removes the error, but leaving it on false will still trigger it.

@saaymeen 5.0.16 seems to work on the repo now

@saaymeen 5.0.16 seems to work on the repo now

I can confirm that 5.0.16 solves the issue. Thank you lots for your time and dedication!


K.Dᴀᴠɪs: Watch 91\W{0,3}9911\W{0,3}001197

K.Dᴀᴠɪs requests the watch of the watch_keyword 91\W{0,3}9911\W{0,3}001197. See the Metasmoke search here and the Stack Exchange search here.

91\W{0,3}9911\W{0,3}001197 has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Coverage remained the same at 65.093% when pulling 3c22dbfeb0d5f0682c55c49bb785f04d6a10f02e on auto-blacklist-1520490348.527302 into ff9b5f735eb11e6b3d79acc32ba51c64dae2cbb7 on master.

!!/approve


BREAKING CHANGE: affinidi login beta

:tada: This PR is included in version 2.0.0-beta.5 :tada:
The release is available on:

GitHub release
npm package (@beta dist-tag)

Your semantic-release bot :package::rocket:


Cannot start v1.25.1 teslamate container: `GLIBC_2.29' not found

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
Updated to the latest teslamate image (v1.25.1) in Portainer, teslamate container is failing to start.  The rest of the containers within the stack have no issues.
Expected Behavior
No response
Steps To Reproduce
No response
Relevant log output
/opt/app/erts-12.2/bin/beam.smp: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /opt/app/erts-12.2/bin/beam.smp)

Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
v1.25.1

I have the same issue.  Portainer says the container is started, but the logs say:
/opt/app/erts-12.2/bin/beam.smp: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /opt/app/erts-12.2/bin/beam.smp)
Due to this, the web interface does not come up at port 4000.

The same thing happened.
waiting for postgres at database:5432
/opt/app/erts-12.2/bin/beam.smp: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by /opt/app/erts-12.2/bin/beam.smp)

Looking at the Dockerfile, is it possible that the builder and the app images have different versions of glibc? @adriankumpf

For now, downgrade to 1.25 (just for the teslamate container if needed).

Confirmed downgrading only the TeslaMate container to :1.25.0 seems to work fine for the time being.

Kind of a newbie here on docker commands. What commands do I run to downgrade only the Teslamate container?

I'm using Docker on a Synology, but this might translate. I exported the container settings for docker_teslamate_1 (not the entire container, just settings) and then deleted the container. This should create a json file. Edit that to replace teslamate/teslamate:latest with teslamate/teslamate:1.25.0. Then import and select the json file.

Downgrade to 1.25.0 for just the TeslaMate container looks good. Works well without rolling back Grafana or other containers.

Rolled back to 1.25.0

I've same issue.
teslamate container rolled back to 1.25.0, now it's working.

me too Linux ubuntu18 4.15.0-167-generic

Same issue here.

I'm also seeing this. But I actually think it happened before the upgrade itself. Because I tried accessing the Dashboard and couldn't log in at all.
teslamate_1  | /opt/app/erts-12.2/bin/beam.smp: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /opt/app/erts-12.2/bin/beam.smp)
proxy_1      | time="2022-01-12T06:06:44Z" level=error msg="unable to find the IP address for the container \"/root_teslamate_1\": the server is ignored" providerName=docker container=teslamate-root-XxXxXxXxXxXx
database_1   | 2022-01-12 06:06:57.233 UTC [39] LOG:  incomplete startup packet
root_teslamate_1 exited with code 1

For those of you who downgraded just the TeslaMate container, what command did you use? I'm guessing you first have to shut down with docker-compose down, but then what?

I'm also seeing this. But I actually think it happened before the upgrade itself. Because I tried accessing the Dashboard and couldn't log in at all.
teslamate_1  | /opt/app/erts-12.2/bin/beam.smp: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /opt/app/erts-12.2/bin/beam.smp)
proxy_1      | time="2022-01-12T06:06:44Z" level=error msg="unable to find the IP address for the container \"/root_teslamate_1\": the server is ignored" providerName=docker container=teslamate-root-XxXxXxXxXxXx
database_1   | 2022-01-12 06:06:57.233 UTC [39] LOG:  incomplete startup packet
root_teslamate_1 exited with code 1

For those of you who downgraded just the TeslaMate container, what command did you use? I'm guessing you first have to shut down with docker-compose down, but then what?

Edit that to replace in 'docker-compose.yml'
image: teslamate/teslamate:**latest** -> image: teslamate/teslamate:**1.25.0**

and execute update command.
$ sudo docker-compose pull
$ sudo docker-compose up -d

The most likely reason why this is broken is because this line is wrong:
https://github.com/adriankumpf/teslamate/blob/master/Dockerfile#L40
The OS used needs to match that of the elixir:1.13 environment from this line:
https://github.com/adriankumpf/teslamate/blob/master/Dockerfile#L1
I am guessing that the recent push to the elixir repo changed the OS spec required. But I have never been really sure where you get this information from.
(I often have this same problem with my own personal Elixir projects).

Guide for those who doesn't know how to downgrade:

Log in to your Linux-box

Shut down TeslaMate with the command: docker-compose down

Edit the file docker-compose.yml with the command: nano docker-compose.yml

Replace the string that states: image: teslamate/teslamate:latest with image: teslamate/teslamate:1.25.0

Before:

After:

Save the file by pressing Ctrl+X and pressing Y.

Confirm the filename by pressing ENTER

To download the previous 1.25.0 version, use this command: docker-compose pull

When finished, you can start TeslaMate with the command: docker-compose up -d

That's it!

v1.25.2 is out with a fix this error.

Wow, that was fast. Many thanks!

I get error in the logs repeatedly after updating to v1.25.2:
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)

I get error in the logs repeatedly after updating to v1.25.2:
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)

This could be caused by an outdated Docker version. The recent  20.10 does not seem to have this issue.
By the way, v1.25.1 only makes changes to the Grafana image. So if you are only interested in getting those, you can temporarily use the teslamate/grafana:latest tag for Grafana and pin TeslaMate to teslamate/teslamate:1.25.0

I get error in the logs repeatedly after updating to v1.25.2:
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)

This could be caused by an outdated Docker version. The recent 20.10 does not seem to have this issue.
By the way, v1.25.1 only makes changes to the Grafana image. So if you are only interested in getting those, you can temporarily use the teslamate/grafana:latest tag for Grafana and pin TeslaMate to teslamate/teslamate:1.25.0

I get error in the logs repeatedly after updating to v1.25.2:
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)

This is same as using edge edition.

Aborted (core dumped)
clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)

here too

This could be caused by an outdated Docker version. The recent 20.10 does not seem to have this issue.

Running on a RaspberryPi 4 running Raspbian Buster:
$ docker --version
Docker version 20.10.12, build e91ed57
$ docker-compose --version
docker-compose version 1.29.2, build unknown

Have rolled back to 1.25.0 for the time being...

pi@pi4:~/teslamate $ docker -v
Docker version 20.10.12, build e91ed57

I get error in the logs repeatedly after updating to v1.25.2:
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)

This could be caused by an outdated Docker version. The recent 20.10 does not seem to have this issue.
By the way, v1.25.1 only makes changes to the Grafana image. So if you are only interested in getting those, you can temporarily use the teslamate/grafana:latest tag for Grafana and pin TeslaMate to teslamate/teslamate:1.25.0

I get error in the logs repeatedly after updating to v1.25.2:
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)

This is same as using edge edition.

Idem !

20.10.12 works fine on a Raspberry Pi 3 here.
> cat /sys/firmware/devicetree/base/model
Raspberry Pi 3 Model B Rev 1.2
> docker version
Client: Docker Engine - Community
 Version:           20.10.12
 API version:       1.41
 Go version:        go1.16.12
 Git commit:        e91ed57
 Built:             Mon Dec 13 11:45:28 2021
 OS/Arch:           linux/arm
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.12
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.12
  Git commit:       459d0df
  Built:            Mon Dec 13 11:43:45 2021
  OS/Arch:          linux/arm
  Experimental:     false
 containerd:
  Version:          1.4.12
  GitCommit:        7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc:
  Version:          1.0.2
  GitCommit:        v1.0.2-0-g52b36a2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

`cat /sys/firmware/devicetree/base/model
Raspberry Pi 4 Model B Rev 1.1root@teslamate:~/Docker/TeslaMate
docker version
Client: Docker Engine - Community
Version:           20.10.12
API version:       1.41
Go version:        go1.16.12
Git commit:        e91ed57
Built:             Mon Dec 13 11:45:14 2021
OS/Arch:           linux/arm
Context:           default
Experimental:      true
Server: Docker Engine - Community
Engine:
Version:          20.10.12
API version:      1.41 (minimum version 1.12)
Go version:       go1.16.12
Git commit:       459d0df
Built:            Mon Dec 13 11:43:32 2021
OS/Arch:          linux/arm
Experimental:     false
containerd:
Version:          1.4.12
GitCommit:        7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc:
Version:          1.0.2
GitCommit:        v1.0.2-0-g52b36a2
docker-init:
Version:          0.19.0
GitCommit:        de40ad0`

v1.25.2 is out with a fix for this error.

Thanks!  I updated to 1.25.2 and everything looks good so far.

v1.25.2 is out with a fix for this error.

Thanks! I updated to 1.25.2 and everything looks good so far.

Are you on Raspberry Pi 4?

Confirmed that 1.25.2 fails for me here:
$ docker --version
Docker version 20.10.12, build e91ed57
$ docker-compose --version
docker-compose version 1.26.2, build unknown
$ cat /sys/firmware/devicetree/base/model
Raspberry Pi 4 Model B Rev 1.2

As others have reported, the errors are clock related:
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)

The issue appears to be an incompatibility with the version of libseccomp2 installed on Raspbian GNU/Linux 10 (buster).
My guess is that people who it's working for are on Raspberry Pi OS 11 (Based on Debian Bullseye), and those with problems are on 10.
For me, grabbing the backports version of libseccomp2 from https://packages.debian.org/buster-backports/armhf/libseccomp2/download and installing that got 1.25.2 up and running. Other people may be able to do something similar.

Unhappy to report that my TeslaMate will not start after updating.
It is actually hosing my entire Pi. CPU and memory is getting hosed. Trying to pull some of the versions, but typing takes three to five minutes each time.

Thanks everybody for the instructions on downgrading, and the fast response for the fix! I managed to downgrade with no issues, and just updated with the latest, also no issues running latest HassOS in latest VB on a Linux machine.

v1.25.2 is out with a fix for this error.

Thanks! I updated to 1.25.2 and everything looks good so far.

Are you on Raspberry Pi 4?

No, I'm running it on an Intel-based Linux server, so different architecture.  My docker version is 20.10.10, build b485636.

Not to compound or hijack the thread, but here is the error that my logs are throwing:
teslamate_1  | =ERROR REPORT==== 12-Jan-2022::17:12:06.303755 ===
teslamate_1  | erts_poll_wait() failed: eperm (1)
teslamate_1  |
teslamate_1  |
teslamate_1  | =ERROR REPORT==== 12-Jan-2022::17:12:06.303778 ===
teslamate_1  | erts_poll_wait() failed: eperm (1)
teslamate_1  |
teslamate_1  |
teslamate_1  | =ERROR REPORT==== 12-Jan-2022::17:12:06.303792 ===
teslamate_1  | erts_poll_wait() failed: eperm (1)
teslamate_1  |
teslamate_1  |
teslamate_1  | =ERROR REPORT==== 12-Jan-2022::17:12:06.303805 ===
teslamate_1  | erts_poll_wait() failed: eperm (1)
teslamate_1  |
teslamate_1  |
teslamate_1  | =ERROR REPORT==== 12-Jan-2022::17:12:06.303819 ===
teslamate_1  | erts_poll_wait() failed: eperm (1)

Have decided to rollback to 1.25 for the time being.

Unhappy to report that my TeslaMate will not start after updating.
It is actually hosing my entire Pi. CPU and memory is getting hosed. Trying to pull some of the versions, but typing takes three to five minutes each time.
pi@teslapi:~/Documents/teslamate $ docker-compose --version
docker-compose version 1.29.2, build unknown
pi@teslapi:~/Documents/teslamate $ docker --version
Docker version 20.10.6, build 370c289
pi@teslapi:~/Documents/teslamate $ cat /sys/firmware/devicetree/base/model
Raspberry Pi 3 Model B Plus Rev 1.3

similar setup here and same issue. I cannot load teslamate at port 4000.  Grafana on 3000 loads to a login window.
pi@teslamate:~ $ docker-compose --version
docker-compose version 1.29.2, build unknown
pi@teslamate:~ $ docker --version
Docker version 20.10.12, build e91ed57
pi@teslamate:~ $ cat /sys/firmware/devicetree/base/model
Raspberry Pi 3 Model B Plus Rev 1.3


Can't find my a FB Page.

Hello,
atm I don't know why it cant find my FB Page.
https://www.facebook.com/ironesports
I use '@IRONeSports' for the String in the settings. Then I try other pages it works. Do you maybe know the problem?
Thank you

Ok,
I managed it to display the facebook posts on the example site (https://pavelk2.github.io/social-feed-example/ ).
But now I get the following error message ( https://iron-esports.de/test ) :
Uncaught TypeError: Cannot read property 'id' of undefined
Do you know a possible solution for this?


Speed up bootstrap

Issue
The PostgreSQL charm takes 9-10 minutes to start (be in an Active state).
Solution

Avoid the legacy upgrade code execution during the start process (because it's not needed while Patroni is still offline).
Tweak timeouts to avoid differing the events too early (if Patroni is still offline).
Set the primary status message earlier.
Add some debug logs of the time spent since the charm started until it reaches the Active state.
Enabled and fixed a hidden unit test (test_set_primary_status_message). It was not being executed because of indentation in the test function.

Debug logs when using this PR charm (58 seconds from the beginning of the install hook until the workload is ready):
unit-postgresql-0: 19:27:23 DEBUG unit.postgresql/0.juju-log Install start time: 2024-06-24 19:27:23.462350
...
unit-postgresql-0: 19:28:21 DEBUG unit.postgresql/0.juju-log database-peers:1: Active workload time: 2024-06-24 19:28:21.274504

I am merging this to test beta and promote candidate for Mohamed.


Train Code

Hi! Thanks for your awesome work! Do you have any plans of sharing train code?
Thanks!

Thanks for your interest!
Yes, of course! But they won't be release in this repository.
Limited by the licence agreement of some datasets and quoted codes, we may not provide the full training code.
Each essential module and useful tools for training will be released in other repositories of this github account.

Great! Thanks! But what time is it?

@Arthur151  What about for webcam part? We are waiting eagerly


adds new platforms for embedding creation

See master PR: https://github.com/code-kern-ai/refinery-gateway/pull/128

integrated with https://github.com/code-kern-ai/refinery-gateway/pull/136 group


Calculate host scan priority using KEV flag

Tasks
In support of requirement 14: Calculate host scan priority using KEV flag.
Comments
Changes occur here priority_from_kev: https://github.com/cisagov/cyhy-core/blob/79d25173b91c6cd71bd106733f21020c81282e5a/cyhy/db/scheduler.py#L76
References

Epic https://github.com/cisagov/cool-system-internal/issues/107
Story #38
Current Estimated LOE: Approximately 2 hours.

Closed by: cisagov/cyhy-core#64


Banana Pop Cake Editor not working in Chrome

Describe the bug
It is not possible to write something inside of the query editor in Banana Pop Cake under Chrome. In Firefox everything works fine.
To Reproduce
Steps to reproduce the behavior:

Go to the Banana Pop Cake Playground
Click on inside of the query editor
Try to write something.
It does'nt work :(

Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):

OS: Ubuntu 20.04
Browser: Chrome
Version: 89.0.4389.72 (Official Build) (64-bit)

I cannot reproduce this behaviour. Can you clear the page data and try it again? (or try it in a in private window, this should also be clean)

Cache was badly messed up indeed... My bad!


Initialize MemoryExtra with StdRng

Related Rust PR: https://github.com/rust-lang/rust/pull/62158
r? @RalfJung

Please also remove the Default derive from memory::MemoryExtra.

@christianpoveda I planned a bit of refactoring for this new memory.rs file. To avoid conflicts I think I am going to base that on top of your PR here if you don't mind. :)

Go ahead! Happy coding!

@oli-obk I did the "get stuff our of lib.rs" that we talked about.

Closing in favor of https://github.com/rust-lang/miri/pull/799, we need this branch in the miri repo already to land it in rustc synchronously.


BUG: ensured vendored pep440 is imported

This imports the vendored pep440 at the top level
ensuring it is accessible regardless of order.
The problem would arize when Pythran is not importable,
which then skips any _pep440 imports.

Reference issue

No current issue.
What does this implement/fix?

Ensured _pep440 is accessible at the top level setup.py
Additional information

The problem would arise when import pythran triggered an ImportError, in which case the _pep440 was never imported.

@rgommers here it is, I'll update the other thread for comments.

I don't get this, the error is:
Building, see build.log...
Traceback (most recent call last):
  File "/Users/runner/work/scipy/scipy/setup.py", line 38, in <module>
    importlib.import_module('scipy/_lib/_pep440')
  File "/Users/runner/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'scipy/_lib/_pep440'

I just moved that line from a custom cmdclass["build_ext"] to the top level where everybody should have access to it? What am I missing?

I just moved that line from a custom cmdclass["build_ext"] to the top level where everybody should have access to it? What am I missing?

Ah, mysteries of the Python import system. The import_module docs say "Parent packages are automatically imported." - and that doesn't work in the top level. Inside a build command I think distutils/setuptools havedone some of the necessary magic.

I just moved that line from a custom cmdclass["build_ext"] to the top level where everybody should have access to it? What am I missing?

Ah, mysteries of the Python import system. The import_module docs say "Parent packages are automatically imported." - and that doesn't work in the top level. Inside a build command I think distutils/setuptools havedone some of the necessary magic.

Ok, yeah, this was what I did in the force-push, simply added another import statement. Great it worked out...

I may need to backport this for gh-15418 because i.e., linter:
setup.py:237:16: F821 undefined name '_pep440'
setup.py:237:53: F821 undefined name '_pep440'
setup.py:349:16: F821 undefined name '_pep440'
setup.py:349:49: F821 undefined name '_pep440'

Yes, this indeed needs backporting - sorry, I missed the label.

hmm, it was already backported according to my notes

oh, because we are using importlib machinery to do the imports I wonder if the linter is not "smart enough" to parse the equivalent to import


Update Documentation “frequently-asked-question”

Automatically generated by Netlify CMS

👷 Deploy Preview for elastic-yonath-a8509d processing.
🔨 Explore the source changes: 943d9a3fd69e7ad89962d9674e44b01056b9327c
🔍 Inspect the deploy log: https://app.netlify.com/sites/elastic-yonath-a8509d/deploys/61933710e602040007b3b429


Remove css information from javascript

Only classes should be assigned from javascript

I can only think that this is referring to the sidebar-controller? The other js files don't contain any layout information, (apart from perhaps the minichart.js file.. but I think that's standard usage.)

Closed by #255


File manager: Image thumb preview

When it comes to a folder with a bunch of images, it's hard to know wich one is important so currently we need to download all of them in order to find the one we are looking for ... Would it be possible to read the thumb.db file and display the thumbs in the manager in a medium icon view?

Added to #262.


Add Contributor Profile Images in readme.md file

It should be updated all time

Hi, could you please assign this to me.

@prokan468 yes start your work

Please do check out the PR #27 .

Thanks @prokan468


Create initialsex2.py

2nd example for initials.py w/ a signature

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


Track upstream opscon server

Add tracking for ardana-opsconsole-server (recently changed to obscpio generated rather than static tarball: https://build.suse.de/request/show/154848)

trying to remove the merge commit I seem to be moving the wrong direction, may recreate this from scratch


Sign in with Ledger should not add keys

Problem
Currently when "Sign in with Ledger" option is selected, Wallet is asking to "Add Key" to each account that has the key from this ledger.
Expected Behavior
After "Sign in with Ledger", only once need to confirm giving public key to the Ledger, and it finds and opens all accounts that have this and all subsequent (e.g. with different paths) public keys.

@vgrichina What are your thoughts on this?

We have to add keys to be able to connect to contract helper.

@vgrichina I don't understand. How is contract helper in this cast used?
Also I don't understand what key is even added? Like my understanding right now that I exposed my account to attack right now by doing this.

@ilblackdragon as we don't have any way to store metadata about keys on-chain, we have to store it off-chain (i.e. in contract helper). We also need to authorize access to contract helper somehow.

Also I don't understand what key is even added right now? Like my understanding at the moment that I exposed my account to attack by adding a new key.

I agree that it should be special cased on Ledger app side to display meaningful message (kinda similar how we do for full access key) instead of raw info about key.

If this is to inform off-chain service, how about we sign a message with Ledger and send it to contract helper? In a way, it's similar how applications in Ethereum asking to authorize them from the wallet.
This way don't need to send anything extra on-chain, and don't need to create extra key which has unclear expectations to the user at this point.

To implement what you are proposing we'll need to:

have special support in Ledger app and API to sign such custom message
user will still have to confirm some weird stuff when connecting Ledger
the message signed by Ledger will have to be used to obtain another auth token / key (for contract helper)
contract helper will need additional check whether this auth token / key is still valid (e.g. account could have been transferred on chain to somebody else).

It seems that far easier change is just to make a change in Ledger app to make sure that message reads something like. "Allow connection to web wallet" instead of current low level UI.

moving the discussion to #1536


Fix a comment typo in DerivedConformances

While reading through #9004 I noticed that there was a comment typo, so I figured I'd submit a small request to fix it.

@swift-ci please smoke test and merge

Wow, really sorry for the lack of followup here, this totally fell off my radar. Appreciate the merge, thanks!


Clean-up naming in PartitionExpression

Still used "info" which was a left-over from when we had a class called
ReferenceInfo.

Igtm


Lw/threading

Not sure how you feel about adding another dependency, but here's a thought about how backgrounding might be updated to run on linux. Let me know if you'd like to change any implementation details.
Addresses: #1

I also updated the package file to make a dylib. This is convenient for using spm to build modules that can be imported for building in Xcode until better support can be added. Let me know if you'd prefer I move that to a separate PR, it seemed small enough to tack on here.

@LoganWright We're going to accept this later today. As it stands we have a script that fixed some SPM issues for us. This doesn't work with the latest snapshot you're using in Xcode but otherwise works fine.
So we're going to start fixing this script starting in 1-2 hours and after we've fixed that we'll accept your pull request.

We merged your changes in 0.2.3. Thanks!


Reduce number of files

The number of helper files has become unnecessarily large. Many helper functions are short and don't need to be in their own file.
This PR moves small helper functions to the file helpers_smallFunctions.R to clean up the directory R. It also adds/modifies the roxygen docstrings for these helpers.
@thomas-muench If you agree with the changes proposed here, feel free to merge the PR and delete the branch.

Thanks for cleaning up the code; this was indeed a good idea. I will merge this PR.


Support asynchronous (promised-based) custom matchers

For our use case, we'd like to implement custom expressions that make database calls. An example of what we'd like to do (that doesn't work today):
sift.use({
  $existsInDb: async function(expectToExist, name) {
    const existsInDb = !!(await db.users.findOne({ name }));
    return existsInDb === expectToExist;
  }
});

const result = await sift({ $existsInDb: true }, ['bob', 'ben', 'brad']);

FYI: we forked sift.js and implemented async support in https://github.com/mixmaxhq/sift.js/pull/1.

Just starting on this functionality in #157.


Fix bug with failed payments not loading

Failed payments would not load due to there being no balance_transaction in the response from Stripe.

Looks good to me.


[BUG]: "App Archive and Clean Up - Check Approvals and Archive" Error in action "_get_msapp_file_content"

Describe the bug
Flow "Admin | App Archive and Clean Up - Check Approvals and Archive" runs sometimes into Error in action 'Approve_Archive_-_get_msapp_file_content'
Ouputs of this action:
Status Code: 403
Body:
AuthenticationFailedServer failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:cc6eb2fc-201e-0062-4989-5081ad000000
Time:2020-07-02T15:54:32.2647643ZSigned expiry time [Tue, 26 May 2020 00:00:00 GMT] must be after signed start time [Thu, 02 Jul 2020 15:54:32 GMT]
I would say the error appears in 50% of the cases.
Component (please tell us which flow or app you are experiencing issues with):

Center of Excellence - Compliance and Report Components
Version 20.4.2020
Admin | App Archive and Clean Up - Check Approvals and Archive

This is resolved in newer versions of the toolkit. You will need to upgrade.
Thanks for using CoE!

#182

Thanks for your answer. But I'm using Version 1.17 and seems to be the newest version?

Did you chose override when asked about customizations on import? Default is maintain, but you need to chose overwrite.

When you have the new flow, it will have this added re-fetch call

damn. Sorry, you're right.
Thanks very much for that hint!

No problem at all. Thanks for using CoE!


Minor change

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@kaarins PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Fixed a bug that could result in the app being unusable due to a bad …

Fixed a bug that could result in the app being unusable due to a bad auth token.

Added potential fix for google sign in bug (issue #4)
Added update for issue #7 so that speed shows up in the import
Fixed creature type list to match alchemy's internal lists so it shows up properly (issue #8 )
Added in tracker's so HP shows correctly there, however was unable to fully fix the hp not generate bug (issue #9) my testing shows even alchemy srd monsters do not show that when imported
Added skill proficiency, however there is a known bug as I have not been able to determine where D&D beyond stores skill expertise. For now that must be updated manually.


Issue 209: Support rename log

Descriptions of the changes in this PR:

add rename operation in Namespace
add rename operation in LogStreamMetadataStore
implement the rename operation use zookeeper multi operation

/cc @leighst

@jiazhai I added a test case for renaming a locked log.

Thanks for adding the test case. LGTM.


Typescript 4.9 satisfies does not properly enforce enum on SomeJTDSchemaType

Ajv version 8.12.0
Typescript 4.9 allows us to use the satisfies operator, which can be used to enforce the correctness of a schema through SomeJTDSchemaType before sending it to JTDDataType:
const schema1 = { type: 'string' } as const satisfies SomeJTDSchemaType;

type Schema1 = JTDDataType<typeof schema1>;

// No error, Schema1 = string as expected

const schema2 = { type: 'something_else' } as const satisfies SomeJTDSchemaType;

type Schema2 = JTDDataType<typeof schema2>;

// Error on the `satisfies SomeJTDSchemaType`, as expected:
//   Type '{ readonly type: "something_else"; }' does not satisfy the expected type 'SomeJTDSchemaType'.
//   Types of property 'type' are incompatible.
//   Type '"something_else"' is not assignable to type '"boolean" | NumberType | StringType | undefined'.

This feature does not work properly with enum types:
const schema3 = { enum: ['apple', 'banana'] } as const satisfies SomeJTDSchemaType;

type Schema3 = JTDDataType<typeof schema3>;

// Although this should be fine, we have an unexpected error on `satisfies SomeJTDSchemaType`:
//   Type '{ readonly enum: readonly ["apple", "banana"]; }' does not satisfy the expected type 'SomeJTDSchemaType'.
//   Types of property 'enum' are incompatible.
//   The type 'readonly ["apple", "banana"]' is 'readonly' and cannot be assigned to the mutable type 'string[]'.

In fact, in types/jtd-schema.ts:14, we see that SomeJTDSchemaType contains {enum: string[]}, to which readonly [...] cannot be assigned to.
This seems fixable by simply changing the enum type in this file to {enum: readonly string[]}.
Can I open a PR for that?

I don't see any downside to it, should be ok. Thank you.
cc @erikbrinkman

Sorry, I meant that satisfies was added in 4.9, but the bug is reproduced here in 4.9.4, latest typescript version
As this bug is purely related to typescript types, unless I am mistaken, I don't see a place to add relevant tests?
JTDDataType was not really documented in the doc, so I added a presentation with examples the same way it was done for JTDSchemaType; in which I documented the use of satisfies

@epoberezkin Is there anything that still needs to be done to merge this in? It would be a super useful addition.


Added helper for Meteor.isCordova

Usage:
{{#if isCordova}}
  This is Cordova
{{else}}
  This is not Cordova
{{/if}}

Or:
{{#unless isCordova}}
  Not Cordova
{{/unless}}

Thanks but doesnt {{Meteor.isCordova}} work?

Oh, I didn't know. Sorry and thank you!
On Mar 29, 2015 7:11 AM, "Morten N.O. Nørgaard Henriksen" <
<EMAIL_ADDRESS>wrote:

Thanks but doesnt {{Meteor.isCordova}} work?
—
Reply to this email directly or view it on GitHub
https://github.com/raix/Meteor-handlebar-helpers/pull/50#issuecomment-87359358
.

@benjick no problem - I appreciated the pr though - please let me know if {{Meteor.isCordova}} doesn't work


Rk4 solver

Description
Added the fixed-step Runge–Kutta method solver (RK4). The main motivation is that with a manual solver we can then build on with better solvers (which we can then export to C)
Fixes # (not an issue)
Type of change
PR #s 995 was added to CHANGELOG.md

[x] New feature (non-breaking change which adds functionality)
[ ] Optimization (back-end change that speeds up the code)
[ ] Bug fix (non-breaking change which fixes an issue)

Key checklist:

[x] No style issues: $ flake8
[x] All tests pass: $ python run-tests.py --unit
[x] The documentation builds: $ cd docs and then $ make clean; make html

You can run all three at once, using $ python run-tests.py --quick.
Further checks:

[x] Code is commented, particularly in hard-to-understand areas
[x] Tests added that prove fix is effective or that feature works

hi @pmohtat, thank you for the PR! Can you explain a bit more about the reasoning behind adding another implementation of RK4? the scipy solver in pybamm already includes this method. I'm all for implementing better solvers, but I'd be reluctant to add methods we already have

hi @martinjrobins, yes you are correct. But, the main motivation here was code generation (C++) for embedded controllers, simulink, etc. I wrote the integrator using CasAdi functions, so in theory we can use CasAdi's code generation to get the C code. Also, this way we are able to modify the solver freely and add needed functionality (e.g. adding algebraic equations to Rk4)

OK, so the aim is to implement a faster version of rk4 than the scipy one, using casadi code generation? Is the code gen implemented in this pr? Be good to test if this is possible before we merge it in

we have tested the code generation on a separate project. I can add a code generation test in the test_rk4_solver.py.

hi. I have added a test in test_rk4_solver.py. I was able to compile and run the code both from command line and using Matlab's mex function generator.
Let me know if you need more information.

hi. thank you for the feedback, I'll hopefully start addressing them in coming days. I apologies for the many mistakes, I am pretty much a noob when it comes to pybamm and git...
I just want to reiterate that the motivation was code generation first and a new solver second. That's why I started with an easy to implement solver such as RK4.
If code generation is not a feature of interest l completely understand. Also, if you think there is better way to approach this without adding a custom solver let me know or point me in that direction. thanks again and happy to learn and contribute in any capacity!

no worries at all, thank you for all your work contributing to pybamm! I think the code generation would be a good feature, but your solver still needs to conform to the interface established in pybamm.BaseSolver. Looking at the API docs (https://pybamm.readthedocs.io/en/latest/source/solvers/base_solver.html), you can see that the constructor takes atol and rtol as absolute and relative error tolerances to use for the solver. Therefore each solver must satisfy these error tolerances, whatever the specific time-points given to the solver.

Yes, I think this is not far off and will be a really good addition to the pybamm solvers. The main effort would be satisfying the tolerances, as this requires error estimation and interpolation to the points in t_eval. I've previously implemented a RK4(5) method with adaptive time-stepping and interpolation here (https://github.com/martinjrobins/swift-odeint). It's in a different language, but has citations you can read, and I'm happy to answer any questions you have about the algorithm. You can also have a look at the RK methods in scipy (https://github.com/scipy/scipy/blob/v1.4.1/scipy/integrate/_ivp/ivp.py#L157-L664), which have the advantage of being in python!


Fix merge title marker for release branches

Release branch prefix should be removed from source and dest branch
Should use configured release branch prefix, not hard-coded release/

Last one for now. 😬

test failure :(


gopls not downloading on my Mac

I'm trying to download gopls for vscode go extension and it will not work at all. So now my IntelliSense won't work at all.

I believe the error message go install printed is relevant
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions


Separate structures for each repository and service

Merge this after: https://github.com/lf-edge/rol/pull/15
Previously, the services and repositories of the Log and HTTPLog entities did not have separate structures, we add them to unify the code.

Yetus fails without reason.


Increase retry backoff for Storage API batch to survive AppendRows quota refill

After fixing concurrent connections issue (#31710), the only blocker to making Storage API batch scalable is managing AppendRows throughput quota. The Storage API backend sets up this quota by having a short-term (cell) quota and a long-term (region) quota:

short-term quota can take up to 10s to refill
long-term quota is an aggregate of multiple cells and can take up to 10min to refill

It's important to note that all append operations are rejected while a quota is being refilled.
The standard throughput quota is not sufficient for large writes. Large pipeline will typically exhaust the long-term quota quickly, leading to consistent failures for 10 min. With enough failures (10 fails per bundle, 4 failed bundles per Dataflow pipeline), the pipeline eventually gives up and fails.
To deal with this, we can increase the retry backoff so that pipelines can survive long enough until the throughput quota is refilled.
Disclaimer:
Before this change, in the worst case where all append operations fail due to quota error, each bundle will retry for 66 seconds. After 4 bundle failures, a Dataflow pipeline can wait up to 4.4min to fail.
With this change, the worst-case wait time goes up to 5.7min per bundle, and 22.5min per pipeline.

[Before fix] Job writing 20B records: 2024-07-10_14_16_17-4717587713994683558
Eventually hits long-term quota and experiences consistent failure until the pipeline gives up:

[After fix] identical job writing 20B records: 2024-07-10_15_51_42-2248769606448533416
Enough breathing space is created so that the pipeline can survive until the quota cools off:

Throughout a pipeline's lifecycle, the long-term quota can be repeatedly exhausted but the pipeline remains resilient:

R: @Abacn
R: @reuvenlax

R: @Abacn
R: @reuvenlax

@reuvenlax could this be related to the stuckness issue mentioned here?
https://github.com/apache/beam/blob/00bf1c6d03614624480646e32145e183d3042ee6/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/StorageApiWritesShardedRecords.java#L760-L764
https://github.com/apache/beam/blob/00bf1c6d03614624480646e32145e183d3042ee6/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/StorageApiWriteUnshardedRecords.java#L768-L771

Can we do a cherry-pick for this? @jrmccluskey

Turns out managing AppendRows quota actually isn't the last blocker. I tried writing with a much bigger load (2024-07-11_11_13_57-12204862207935920837) and the sink handled all the append operations well but it got stuck at the finalize and commit step:
RESOURCE_EXHAUSTED: Exceeds quota limit subject: bigquerystorage.googleapis.com/write/pending_stream_bytes

Pending stream bytes is a quota placed on PENDING stream types (which is what we use for batch). It's a maximum of 1TB for small regions.
In our finalize and commit step, we finalize each stream one by one then perform a single commit on all of them:
https://github.com/apache/beam/blob/50a3403a4742e1c9e264f57f4411969daeff4642/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/StorageApiFinalizeWritesDoFn.java#L166
For large writes, the aggregate byte size of all streams can easily get over 1TB. Instead, we should probably break this up into multiple commit operations.

Just wondering if is commit once intended. Conversely, if the data is committed and later on the job failed, will it leave partially written data to the sink?

Can we create a new issue to track https://github.com/apache/beam/pull/31837#issuecomment-2223926689? For this PR, can we update CHANGES.md?

Just wondering if is commit once intended. Conversely, if the data is committed and later on the job failed, will it leave partially written data to the sink?

This is a good question, it could be indeed be intentional. I raised a tracker here #31872


Update task-asynchronous-programming-model.md

Summary
Capitalized word and fixed punctuation.

Thanks, @sguitardude. I'll merge your PR now. The update should be live on docs.microsoft.com in the next day or two.


Add more continuous integration checks

[x] CircleCI to run tests
[x] RuboCop checks

[x] RuboCop checks, passing

[x] I'm hoping to also get to Code Climate code coverage as I'd like to try out that feature, but first I need tests running...

I'm hoping to also get to Code Climate code coverage as I'd like to try out that feature, but first I need tests running...

I can't get CircleCI to run code for this yet, but I think that's just because the config isn't in master, and therefore it should work once the changes are merged.


Zip only if export format is app

@Rheeseyb I decided to rather make some modifications, so it will work for .pkg outputs as well. Tried out with none, development and app-store exports.

I'm gonna merge it in and lets see if everything's working as expected.

Good shout! :+1:


Allow opening some PS/CMD tabs as Admin

Description of the new feature/enhancement
Option to open new PowerShell/Cmd tabs with Admin privileges. Currently this is done through the Start Menu or by creating a shortcut to open PS as Admin; this takes multiple steps.
I imagine the new tab menu (v) would list:

Windows PowerShell
CMD
Ubuntu
Windows PowerShell (admin)
CMD (admin)

Proposed technical implementation details (optional)
null

/dup #1032  Thanks for the request!


RFC - Expiry based on passed in function (option during cache creation)

This is a request for comments / brainstorming...
Currently, ttlCache expires items if:

a TTL threshold is met
cache size is met

Would it be too much of an expansion to have a more dynamic expiry to include a passed in function?
For example, the function could check the content of the item and return a bool of whether it should be expired.
This could be configured as an option during cache creation to pass the function. The checks could be done in item.isExpiredUnsafe()
A workaround would be to do this outside of the cache by regularly iterating the cache item and running the function on each item and issuing delete if the criteria is met. However, that expiry logic would be nice to offload to the cache.

How/when would this function be called?
The capacity and TTL checks are rather efficient, i.e., they aren't performed randomly and additional internal queues are used for that. As I see it, the only way this dynamic function could work is if the user provided some duration after which it would be called (or DeleteExpired() would be called by the user). But even then the cache would have to iterate over all the items as no internal queues could be used.
I don't see how this addition could benefit this library, however, I understand that sometimes items need to be dynamically deleted. I think the best way to achieve this would be by using a method that would allow the user to iterate over the items in the cache. We have an issue for that as well: #71

for some reason, the eviction was being done through a timer/scheduled function..which means my idea would have had legs. looking back, it seems to clean itself on accesses.
I think it will be best to have an external cleaning component that accepts the cache as an input and iterate on schedule to clean it.


When using with cmp, expanding a variable with a reference causes breakage in cmp's menu

Description
I was testing with my standard console.log snippet:
snippet l
        console.log('${VISUAL}$1:'${2:, ${VISUAL}$1});

When "fancy" snippets like this are being used, interactions are poor with the cmp menu.
Steps to Reproduce

l to type l. the snippet shows in cmp list
<tab> to move cmp selection down to l snippet
<cr> to expand the l snippet. snippy interaction starts here.
ab loads up cmp completion list filled with ab... entries
<tab> move the selection down to the first of the ab... entries

Typically at this point, cmp selection causes the first result to fill into buffer, e.g. abcd.  Which is great. What happens to cmp's currently-open completion menu, however, isn't great.
Expected Result
Expect cmp's completion list not to be clobbered
Actual Result
cmp's completion list gets clobbered at this point. it was listing the full list of ab... symbols but once the complex snippet expansion happens in response to cmp filling the current tabstop, the completion list now only shows this only one that matches
Additional Context
No response

Alright I wanna say that I solved this 90% satisfactorily via https://github.com/hrsh7th/nvim-cmp/discussions/1685
But I will leave this ticket open for now in order to continue fishing for ideas to make it better. Basically the solution is to detect whenever snippy is still active, and simply cause cmp.select_next_item({ behavior = cmp.SelectBehavior.Select }) to be run instead of the default which allows for bypassing the root problem while not making it much worse in experience.
What I like about it is that it lets me keep the default cmp.SelectBehavior.Insert when a snippet context isn't active, which is most of the time.

The issue only occurred when using cmp's custom completion menu. Mirroring the tabstop seemed to reset the menu.
The solution I found was to check the visibility of the menu (cmp.visible()) and only perform the mirroring if it is not visible. Please let me know if this still does not work for you.

Thanks. As you can see in my follow up comment, I found a way to do pretty much almost exactly what you describe via cmp bind function logic.
I don't think having both would be detrimental but I'll try to mess around with it more when I get a chance. Thanks.

Calling cmp.visible() seems to cause input lag, so I've reverted my commit until a better solution is found.


Spatie\Ray\Client doesn't use Craft settings correctly

Describe the bug
Ray does not seem to work properly when host and port settings are defined as non default values in Craft settings.
For instance, if I set the host parameter as host.docker.internal value, either from the settings panel or in a configuration file, the client still make requests by calling localhost because Spatie\Ray\Client still get default settings values instead of the Craft ones. Hard coding $this->host = 'host.docker.internal'; at the beginning of the getCurlHandleForUrl method make ray behave as expected.
Versions
Ray version: 1.12.0

spatie/craft-ray package version: 1.1.3
Craft CMS version: <IP_ADDRESS>
PHP version: 7.4 (using ddev 1.16.5 web image)

To Reproduce
Steps to reproduce the behavior:

Change host or port plugin settings to something else than localhost and 23517
Make a call to ray, either from a module, plugin or template
Ray does not get the related request and show nothing

Expected behavior
Craft plugin should be able to send Ray requests with custom host and port settings values.
Desktop:

OS: macOS Big Sur
Version 11.2.1

Just ran into this problem too and could not figure out what was going on! I was using the ray.php method for my settings:
<?php

use craft\helpers\App;

return [
    'host' => 'host.docker.internal',
    'port' => 23517,
    'remote_path' => '/var/www/html',
    'local_path' => App::env('RAY_LOCAL_PATH'),
];

And here's what I get when I var_dump($this->settings); inside Spatie\Ray\Ray

Is there any timeline for a fix here? This makes Ray completely unusable when we are using Docker.

Should be fixed in 1.1.4!

@riasvdv Thanks, I will try this ASAP.

Hmm I'm still seeing an issue. For one thing, I realized I was using a config/ray.php which definitely previously worked. But then I updated to config/ray.php and confirmed that the CraftRay.php file is correctly grabbing the settings

Then I threw a var_dump($this->settings) into Spatie\Ray\Ray and the settings are back to the defaults

Having the same issue when using Ray to debug a Plugin. Ray works fine in Twig functions, but I think the Ray Plugin is loaded after the Plugin I'm debugging and loading the default settings.
Dirty quick fix: Changing the id of the Ray Plugin in the plugins table to a lower number.
Or installing Ray as the first Plugin.
Or to reproduce the issue, you can do the opposite.
Note: I'm using Nitro 2, so a Docker setup.

@Diewy You could solve this on your end by putting this in your plugin’s init() method:
use craft\web\Application;
use yii\base\Event;

Event::on(Application::class, Application::EVENT_INIT, function() {
    // your initialization code goes here instead...
});

Move your current initialization code inside the function, and then it will be sure to be executed after all plugins, including Ray, have been instantiated.

Closing for now as there's no way to define plugin load order. If it lands in a future version of Craft, we'll take a look at it again.

@riasvdv hmm, I'm still experiencing the problem I highlighted above within a module (this used to work). Even if I tried latching onto the event:
Event::on(Application::class, Application::EVENT_INIT, function () {
    ray('hello world');
});

I'll take another look at it this week, if you find a solution in the meantime feel free to PR it

The plugin is loaded after any custom modules, so the settings won't be applied in that case.
To fix this, you can add a ray.php file in the root of your project https://spatie.be/docs/ray/v1/configuration/framework-agnostic-php which will allow you to set the host & port settings on the lowest instance of Ray (the framework agnostic PHP version), which will bubble up to the Craft Ray instance

I was using the ray.php file before and that stopped working at some point. So that's when I switched to the craft-ray.php file and still no dice.
So I switched back to the config/ray.php file, and it's still not picking up any of my settings. I dug in a bit and noticed that in Spatie\Ray\Settings\SettingsFactory if I output the $configDirectory it's /var/www/html/vendor/craftcms/cms/src/config which is certainly not right.
Where is it getting that value from?

Not in the config folder, in the actual root of your project

Aha! That makes sense. Thanks, appreciate it.


GraalVM compiled version of Spring Kafka with Protobuf send a invalid Protobuf to Kafka

Spring Kafka 3.1
In the JVM version everything works fine, the issue is just in compiled version.
The code example with all prereqs steps are in :  https://github.com/mmuniz75/producer_poc_graalvm
ps : You need a local Kafka and Schema Registry server before run the steps, all is explained in code example.
Steps to reproduce the issue:

git clone https://github.com/mmuniz75/producer_poc_graalvm.git
cd producer_poc_graalvm
sudo chmod +x gradlew
./gradlew nativeCompile
./plates-producer/build/native/nativeCompile/./plates-producer

The issue is not in consumer is in the producer. Because producer not send the correct protobuf to Kafka consumer it will throw this error :
java.lang.IllegalStateException: This error handler cannot process 'SerializationException's directly; please consider configuring an 'ErrorHandlingDeserializer' in the value and/or key deserializer
        at org.springframework.kafka.listener.DefaultErrorHandler.handleOtherException(DefaultErrorHandler.java:192) ~[na:na]
        at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.handleConsumerException(KafkaMessageListenerContainer.java:1943) ~[na:na]
        at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:1374) ~[na:na]
        at java.base@17.0.9/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[na:na]
        at java.base@17.0.9/java.lang.Thread.run(Thread.java:842) ~[plates-producer.exe:na]
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:807) ~[plates-producer.exe:na]
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.windows.WindowsPlatformThreads.osThreadStartRoutine(WindowsPlatformThreads.java:179) ~[na:na]
Caused by: org.apache.kafka.common.errors.RecordDeserializationException: Error deserializing key/value for partition plates-0 at offset 660. If needed, please seek past the record to continue consumption.
        at org.apache.kafka.clients.consumer.internals.CompletedFetch.parseRecord(CompletedFetch.java:309) ~[na:na]
        at org.apache.kafka.clients.consumer.internals.CompletedFetch.fetchRecords(CompletedFetch.java:263) ~[na:na]
        at org.apache.kafka.clients.consumer.internals.AbstractFetch.fetchRecords(AbstractFetch.java:340) ~[plates-producer.exe:na]
        at org.apache.kafka.clients.consumer.internals.AbstractFetch.collectFetch(AbstractFetch.java:306) ~[plates-producer.exe:na]
        at org.apache.kafka.clients.consumer.KafkaConsumer.pollForFetches(KafkaConsumer.java:1235) ~[plates-producer.exe:na]
        at org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1186) ~[plates-producer.exe:na]
        at org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1159) ~[plates-producer.exe:na]
        at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollConsumer(KafkaMessageListenerContainer.java:1658) ~[na:na]
        at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doPoll(KafkaMessageListenerContainer.java:1633) ~[na:na]
        at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke(KafkaMessageListenerContainer.java:1430) ~[na:na]
        at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:1322) ~[na:na]
        ... 4 common frames omitted
Caused by: org.apache.kafka.common.errors.SerializationException: Error deserializing Protobuf message for id 1
        at io.confluent.kafka.serializers.protobuf.AbstractKafkaProtobufDeserializer.deserialize(AbstractKafkaProtobufDeserializer.java:228) ~[plates-producer.exe:na]
        at io.confluent.kafka.serializers.protobuf.KafkaProtobufDeserializer.deserialize(KafkaProtobufDeserializer.java:84) ~[plates-producer.exe:na]
        at io.confluent.kafka.serializers.protobuf.KafkaProtobufDeserializer.deserialize(KafkaProtobufDeserializer.java:28) ~[plates-producer.exe:na]
        at org.apache.kafka.common.serialization.Deserializer.deserialize(Deserializer.java:73) ~[plates-producer.exe:na]
        at org.apache.kafka.clients.consumer.internals.CompletedFetch.parseRecord(CompletedFetch.java:300) ~[na:na]
        ... 14 common frames omitted
Caused by: org.apache.kafka.common.config.ConfigException: Invalid value java.lang.reflect.InvocationTargetException for configuration Not a valid protobuf builder
        at io.confluent.kafka.serializers.protobuf.AbstractKafkaProtobufDeserializer.deserialize(AbstractKafkaProtobufDeserializer.java:196) ~[plates-producer.exe:na]
        ... 18 common frames omitted

@mmuniz75 ,
Please, consider to edit your comment the way that stack trace becomes readable.
See GH Markdown formatting rules: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax

@mmuniz75 I followed your instructions after cloning the sample app repo, and I see that the native executable works as expected.
Here is more information:
java -version
openjdk version "17.0.9" 2023-10-17 LTS
OpenJDK Runtime Environment GraalVM 22.3.4 (build 17.0.9+11-LTS)
OpenJDK 64-Bit Server VM GraalVM 22.3.4 (build 17.0.9+11-LTS, mixed mode, sharing)

/gradlew nativeCompile
./plates-producer/build/native/nativeCompile/./plates-producer

and I see the following output:
2024-03-05T17:59:58.172-05:00  INFO 74270 --- [   scheduling-1] l.p.p.producer.PlatesCheckerProducer     : Sending 5 plates to topic
Received plate: SIE7D3K
Received plate: SIE7D4K
Received plate: SIE7D5K
Received plate: SIE7D6K
Received plate: SIE7D7K
2024-03-05T18:00:08.174-05:00  INFO 74270 --- [   scheduling-1] l.p.p.producer.PlatesCheckerProducer     : Sending 5 plates to topic
Received plate: SIE7D3K
Received plate: SIE7D4K
Received plate: SIE7D5K
Received plate: SIE7D6K
Received plate: SIE7D7K
...
...

The only change I made in the app was to replace where I run Kafka locally (localhost:9092).
I wonder if you are running into some config issues causing the error.

I was running these: https://github.com/spring-cloud/spring-cloud-stream/tree/main/tools/kafka/docker-compose

at org.graalvm.nativeimage.builder/com.oracle.svm.core.windows.WindowsPlatformThreads.osThreadStartRoutine(WindowsPlatformThreads.java:179)

So, that's on Windows.
Perhaps there is some discrepancy how Protobuf is compiled to native image on different platforms.
I mean I have an experience building native images on Windows, but it always worked same way as on Linux or MacOS.
I'll play with your sample application today.
Note: doesn't look like the problem comes from Spring at all.
We are looking into this just for an academic purpose to learn something ourselves.
Thanks

My dev machine is Windows , sometimes I test in a MACOS and in Ubuntu inside Linux, I will try that.
In fact the our enviroment is Linux so I hope it works well in the real enviriment, going to test that too soon
Thanks for all this tries

Works for me on Windows as well:
2024-03-06T11:55:50.609-05:00  INFO 14796 --- [ntainer#0-0-C-1] o.s.k.l.KafkaMessageListenerContainer    : muniz_local: partitions assigned: [plates-0]
Received plate: SIE7D3K
Received plate: SIE7D4K
Received plate: SIE7D5K
Received plate: SIE7D6K
Received plate: SIE7D7K
2024-03-06T11:56:00.433-05:00  INFO 14796 --- [   scheduling-1] l.p.p.producer.PlatesCheckerProducer     : Sending 5 plates to topic
Received plate: SIE7D3K
Received plate: SIE7D4K
Received plate: SIE7D5K
Received plate: SIE7D6K
Received plate: SIE7D7K
2024-03-06T11:56:10.428-05:00  INFO 14796 --- [   scheduling-1] l.p.p.producer.PlatesCheckerProducer     : Sending 5 plates to topic
Received plate: SIE7D3K
Received plate: SIE7D4K
Received plate: SIE7D5K
Received plate: SIE7D6K
Received plate: SIE7D7K

I tested in Ubuntu and it works , I have the same issue in GRPC just works in Linux, but thats ok this is our env.
Closing the issue, thank you for the effort


MenuXbe child ordering is case sensitive - should it be?

General usability question, right now the ordering of children found via a MenuXbe scan are sorted in a case sensitive way.
For example, given XBEs with titles "Esomething" and "aSomething", the resultant menu will be:

Esomething
aSomething

Rather than what users might expect:

aSomething
ESomething

Is this behavior desired? Given that the sort is only done once it's probably not a performance hit to do something less efficient (like a case insensitive comparison).

I've simply not given it enough thought.
Case sensitivity is not by design, rather by coincidence - would love to have it fixed!

Fixed by #88


Typo in tests/php/Forms/CheckboxSetFieldMultiEnumTest.php

https://github.com/silverstripe/silverstripe-framework/blob/5.0.0-beta1/tests/php/Forms/CheckboxSetFieldMultiEnumTest.php#L14
Causes a warning when running tests:

Warning:       Test case class not matching filename is deprecated
in ./silverstripe-framework/tests/php/Forms/CheckboxSetFieldMultiEnumTest.php
Class name was 'CheckboxSetFieldMulitEnumTest', expected 'CheckboxSetFieldMultiEnumTest'

Could we just rename the class before we tag 5.0.0 stable?

@maxime-rainville you'd need to approve that as it's an API breaking change post beta

Actually nevermind, I just noticed it's a test class. We can do that any time. If it's in CMS 4 we can do it there too.

Yeah ... that's been bugging me. Every time I run test locally, I keep thinking "I should really just rename this class and be done with it".


Fix typo in alias.js

Every time I see this I think it's a typo, but if I'm wrong, my apologies, and please go ahead and disregard this PR.
Changed atomically to automatically in lib/alias.js.

The change is indeed atomic, so this time it's not a typo. Thanks anyways 😃

Good deal, thanks!!


Test : https://github.com/jedisct1/dsvpn

https://github.com/jedisct1/dsvpn
Test tcp and get benchmarks

Not a silver bullet, no good client for android, ios and windows. Openvpn is the best way to go forward.


webidl: translate methods from camelCase to snake_case to match rust style

WebIDL things are generally written in cameCase, which is typical web JS style. Since wasm-bindgen already supports js_name = camelCase annotations for when a rust name and js name don't agree, we can leverage that existing support to automatically make all WebIDL names match rust conventions.

This seemed like a decent issue to start trying to get familiar with the codebase. I took a stab at this at #262.

This should be closed now.

@ohanar FYI, if you add "fixes #1234" to a commit or pull request summary, then when it gets merged the issue will be automatically closed :)


Yaw value question

Hello  Captain.
Do you have any idea that we can get the interneal IMU value such as gyro and  compass. I try to do the velocity control but sometime yaw is messing during the fluctation.
Thank you for your nice library.

I agree.  My suggestion is to go on the parrot development forum and ask them for the data.  I also would like it!  But they need to hear from the users to know that we need it.

I asks one time but I actually do not get any answer from them. Anyway Thank you for answer.
I  am actually use the https://marvelmind.com/ this beacon system with your bebop. I used to use the pixhawk drone but bebop is more small and easy to fly in the indoor scenario.  So I am using this. When I know how to use the github well I will put on the my entire code to make branch. I honestly do not know how to manage my repository.

that is really cool!  They mostly ignore when I ask for more sensor data but I figure that the more of us who ask, the more they know we want it.

Do you think that it is related my question?
http://developer.parrot.com/docs/bebop/#a-name-common-commonstate-sensorsstateslistchanged-a

Maybe?  Is it actually sending that back?  If it is, it is in the dictionary.  I'm saving all things in the common states. I'm just skipping a few and they are not in common (which that is)

Ok I will look into it.


Feature request: Option to disable translations for specific pages

Hey there, thanks a lot for this library! I'm trying to use next-translate in my project. But I run into this error:
next-translate - compiled page: /_error - locale: en - namespaces: common, lay out - used loader: getInitialProp.
Basically, I have some html files that's placed in the public folder. Normally next would serve these html file as static pages, but since I'm using next-translate, I got a "An unexpected error has occurred." error page.
There's another related issue:#565.
Thanks!

Okay, I noted for version 1.1. Thanks @LoganAtCrypto

@LoganAtCrypto maybe you can configure via this feature https://github.com/vinissimus/next-translate/pull/589/files


Scavs: Fix reset message

oops

Travis tests have failed
Hey @whalemer,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
TravisBuddy Request Identifier: 02b40a30-5e57-11e9-b5c0-e1325c5e1c10


Can't change preview image for video

What doesn't work
When the user tries to change the video preview image in Electron app, it produces an error. While this is the only known issue currently, please consider reporting any similar issues with file uploads here.
Reason
This happens because of new traffic transport system installed on #445. The system works via main script. All requests are passed via a transport system located at main scope.
All HTTP requests are trespassed to this transport and before this procedure, they need to be serialized to be able to be passed via IPC messages. This obligates us to create better support for files upload, as currently they are not supported well.
Plans
The issue is not easy to be resolved. So dividing it into next stages:

[x] 1. Exclude requests to trespass that are sending files. They will not work via new traffic system, instead work in the classic way. This is a temporary solution while we will work to support this.
[ ] 2. Add files upload support via new transport system

Still no progress on that. Could be finished in next months


Documentation improvements

Documentation missing
I list here some points which could documented clearer:

[ ] Soft Newlines should be explained and documented better. Especially the reason for them and why they exists. For a long time I thought newlines are forbidden in blocks.
[ ] When handle a command in Editor::handleKeyCommandwith RichUtils.handleKeyCommand it must return handle otherwise some strange behaviour can occur (even if RichUtils.handleKeyCommand seems to work for the most of the things!) - like in: #915. possible solutions:

extend the documentation in https://facebook.github.io/draft-js/docs/advanced-topics-key-bindings.html - with the usage of RichUtils.handleKeyCommand
maybe throw a warning in dev when the return value is not of type DraftHandleValue
maybe it's worth to document this under the pitfall section (if Editor::handleKeyCommand returns not handled even if it was handled then you get something strange)

[ ] List keyBindingFn in Editor component page too
[ ] Custom block wrappers not working as in docs #934 - this.props must not added to the custom block component. Fix in docs.
[ ] In the doc from RichTextEditorUtil, it should ideally explain which commands are handled exactly by handleKeyCommand and how. reference to the method (onDelete, onBackspace etc.)

especially that onTab is not handled, since pressing tab is not a command

[ ] EditorComponent doc page: list onFocus, onBlur

(this issue is WIP)

Thanks for compiling this! I'm labeling it for visibility - I know we have some past and future contributors interested in improving the docs. ✍💡🏁🎉