Print an error when attempting to pass an Object or Callable through an RPC

Tested versions
Reproducible in 4.2.2
System information
Windows 11
Issue description
I'm trying to instantiate an object for host and client. Object takes in a custom resource and sets texture based on above resource on _ready. Since Multiplayer Synchronizer does not synchronize resources/objects, I moved _ready code block into an RPC setter function which will set the custom resource in the object (spawned across peers with Multiplayer Spawner) for all peers. The RPC setter takes in a resource as argument. Unexpected behavior resulted: stepping into RPC setter, the passed resource was "null" for client, but not for host, for whom the resource was populated as normal.
Steps to reproduce

Spawn 2 instances in debug
Click "Host" with 1st window. Click "Join" with 2nd window.
Walk players so they face each other.
Hit "Tab" to open inventory, click on any item to grab, hover grabbed item off inventory screen as if to place on level, hit RMB to spawn in level.
Should trigger error.

Minimal reproduction project (MRP)
Relevant code is in _on_inventory_interface_drop_slot_data (spawns object) in world_debug.gd and set_slot_data in pick_up.gd
MRP.zip

The high level multiplayer documentation mentions in passing that

RPCs will not serialize objects or callables.

I believe resources fall under this criteria.

This is indeed not supported: https://github.com/godotengine/godot/pull/74443
Leaving this open, as we should figure out how to print runtime errors to indicate this.

By the way, does this also apply to Signal?

From a quick test with a multiplayer.is_server() if statement, signals do seem to be serialized.
I tested this on 4.2.2


Intermittent Git Smoke Test failures

We are seeing these fail on Linux from time to time. More often recently:
2017-08-16T18:58:44.7605180Z   1) Smoke Test Suite Git verifies current changes are picked up by Git viewlet:
2017-08-16T18:58:44.7644380Z      AssertionError: '1' == 2
2017-08-16T18:58:44.7667470Z       at Context.<anonymous> (out/tests/git.js:40:24)
2017-08-16T18:58:44.7686750Z       at Generator.next (<anonymous>)
2017-08-16T18:58:44.7713700Z       at fulfilled (out/tests/git.js:8:58)
2017-08-16T18:58:44.7736430Z
2017-08-16T18:58:44.7748810Z
2017-08-16T18:58:44.7795930Z   2) Smoke Test Suite Git verifies 'app.js' diff viewer changes:
2017-08-16T18:58:44.7822890Z      Error: the string "Cannot fine app.js in a viewlet." was thrown, throw an Error :)
2017-08-16T18:58:44.7846060Z
2017-08-16T18:58:44.7866750Z
2017-08-16T18:58:44.7891230Z   3) Smoke Test Suite Git stages 'app.js' changes and checks stage count:
2017-08-16T18:58:44.7919180Z      Error: the string "app.js was not found in SCM viewlet" was thrown, throw an Error :)
2017-08-16T18:58:44.7959630Z       at process._tickDomainCallback (internal/process/next_tick.js:135:7)
2017-08-16T18:58:44.7981480Z
2017-08-16T18:58:44.7993650Z
2017-08-16T18:58:44.8015910Z   4) Smoke Test Suite Git stages, commits change to 'app.js' locally and verifies outgoing change:
2017-08-16T18:58:44.8043010Z      Error: the string "app.js was not found in SCM viewlet" was thrown, throw an Error :)
2017-08-16T18:58:44.8067210Z       at process._tickDomainCallback (internal/process/next_tick.js:135:7)
2017-08-16T18:58:44.8092840Z

@chrmarti You mean they often succeed but sometimes fail?

Yes. I should add that I have seen this with the release branch.


Implement "FAB-toolbar" v2 component

Spec reference: https://material.google.com/components/buttons-floating-action-button.html#buttons-floating-action-button-transitions
Motion video mock: https://material-design.storage.googleapis.com/publish/material_v_8/material_ext_publish/0B8v7jImPsDi-NXNEaXZ0Um1yc0k/components-buttons-fab-transition_toolbar_01.webm
[ ] X & Y positions that FAB moves to needs clarification
[ ] Implement Bottom FAB menu component
[ ] Implement Proper transitions between FAB and Toolbar

There are internal motion mocks for these transitions that I can get when it comes time to implement.

Superceded by https://github.com/material-components/material-components-web/issues/36


Auth Construct seems to not allow for use from AppSync (or some other regression from Gen1)

Environment information
System:
    OS: macOS 13.6
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 25.06 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.16.0/bin/yarn
    npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
    pnpm: Not Found
    bun: Not Found
    Watchman: Not Found
  npmPackages:
    @aws-amplify/backend: Not Found
    aws-amplify: ^6.0.2 => 6.0.2
    aws-cdk: Not Found
    aws-cdk-lib: Not Found
    typescript: Not Found

Description
Vanilla auth and the following api definition will not produce a client that can make requests. After investigating the difference between Gen1/Gen2, and well as custom CDK impls and Gen2, it appears to be related to the authRole/unauthRole (and potentially the RoleAttachment RoleMapping configuration).
I'm still working on a high-confidence repro to determine this is an issue in auth, but want to flag ASAP.
Diff between CDK w/ L2 Cognito constructs and L3 Auth construct
Note < is the Auth construct and > are the Cognito construct
7c7,17
<                         "Action": "sts:AssumeRole"
---
>                         "Action": "sts:AssumeRoleWithWebIdentity",
>                         "Condition": {
>                             "StringEquals": {
>                                 "cognito-identity.amazonaws.com:aud": {
>                                     "Ref": "IdentityPoolEC8A1A0D"
>                                 }
>                             },
>                             "ForAnyValue:StringLike": {
>                                 "cognito-identity.amazonaws.com:amr": "authenticated"
>                             }
>                         }
18c28,38
<                         "Action": "sts:AssumeRole"
---
>                         "Action": "sts:AssumeRoleWithWebIdentity",
>                         "Condition": {
>                             "StringEquals": {
>                                 "cognito-identity.amazonaws.com:aud": {
>                                     "Ref": "IdentityPoolEC8A1A0D"
>                                 }
>                             },
>                             "ForAnyValue:StringLike": {
>                                 "cognito-identity.amazonaws.com:amr": "unauthenticated"
>                             }
>                         }
25,52c45
<         "Type": "AWS::Cognito::IdentityPoolRoleAttachment",
<         "Properties": {
<             "RoleMappings": {
<                 "UserPoolWebClientRoleMapping": {
<                     "AmbiguousRoleResolution": "AuthenticatedRole",
<                     "IdentityProvider": {
<                         "Fn::Join": [
<                             "",
<                             [
<                                 "cognito-idp.",
<                                 {
<                                     "Ref": "AWS::Region"
<                                 },
<                                 ".amazonaws.com/",
<                                 {
<                                     "Ref": "AuthUserPool8115E87F"
<                                 },
<                                 ":",
<                                 {
<                                     "Ref": "AuthUserPoolAppClientB43C55DB"
<                                 }
<                             ]
<                         ]
<                     },
<                     "Type": "Token"
<                 }
<             }
<         }
---
>         "Type": "AWS::Cognito::IdentityPoolRoleAttachment"

Initial app definition was a new create-amplify app w/ data definition below.
import { type ClientSchema, a, defineData } from "@aws-amplify/backend";

const schema = a.schema({
  Todo: a.model({
    title: a.string(),
  }).authorization([
    a.allow.public().to(["read"]),
    a.allow.private()
  ]),
});

export type Schema = ClientSchema<typeof schema>;

export const data = defineData({ schema,
  authorizationModes: {
    defaultAuthorizationMode: "AMAZON_COGNITO_USER_POOLS",
    apiKeyAuthorizationMode: {
      expiresInDays: 14
    }
    }
  }
);

And making client requests via iam in the JS lib.

Is the cognito example using IdentityPool?

no.
await client.models.Section.create({
      title: 'New Section',
      lastOrderedAt: currentTimestamp,
      order: order,
    }, {
      authMode: "userPool"
    });
    ``` added the userPool there to see if it would help.

@awsluja i manually edited the roles to sts:AssumeRoleWithWebIdentity and everything is working again
FWIW!

Thanks @cmbrehm , have posted a fix here https://github.com/aws-amplify/amplify-backend/pull/679

Confirmed in latest that this is working now.


Application is getting killed after BIO_FLUSH() function in linux based system

Hi all,
I am using OpenSSL version 0.9.8o 01 June 2010  in my application (written in C++ ). Platform is linux.
After BIO_FLUSH() the application is getting killed. What may be the reason for this ? How can i debug the problem. please help.
Thank you,
Apoorva

Sorry, we no longer support 0.9.8. Please upgrade to a more recent version.

Hi ,
Already this application is in use and we can't upgrade to recent SSL.
Can you please suggest me with any reference links or similar kind of issues. So that i can look into it and found out what is making application to kill.
Thank you,
Apoorva


[3.0.1] Server icon repeated verticaly on sidebar

My Setup

Operating System: Ubuntu 20.04
App Version: 3.0.1
Installation type:  deb

[x] I have tested with the latest version
[x] I can simulate the issue easily

Description

Server icon (svg) is repeated verticaly on the side bar.

Current Behavior

Expected Behavior

Wow. The Window (Fenêtre) menu shows only one server to select?

Yes only one server can be selected, the first one.
And icon to add a server is still clickable.

Still present in 3.0.2.

Please test if the latest release did solve this. If not please reopen the issue or create a new one and tell us. I will be closing this one for now.
Thank you!


Switch consistent hash library + use murmur 3

Switched libraries to simplify code and enable to use of different hash
functions. Using murmur3 because to give a more consistent distribution.
The old code had poor distribution, see https://gist.github.com/paulmach/74bc0a2df4b71bd8d0da#gistcomment-1553321
FYI @mrdmnd @mlerner

Reviewing now.

Seems about right.

Thanks @mrdmnd !!


Centralize password prompt logic for key generation/import functionality

Description
Consolidate password prompt logic to provide better code reuse as highlighted in PR #1050 (importing keypair) and generating keypair cmd/cosign/cli/generate/generate_key_pair.go -> getPassFromTerm(...)
@asraa

also fileExists reuse across key gen and import


Show currently viewed file in PR header

It would be awesome to have the currently viewed file in the header of the PR: (In the white space in the middle)

@shaharmor This was already implemented in #99 then got broken in #264 and fixed again in #274. Apparently it's broken again so I've reopened #264 and will close this "feature request" as a duplicate as it had already been working, but got broken so it's a bug.


[fix](migrate disk) fix tablet disk migrate may lost data

Tablet migrate disk may cause lost data. For example,   suppose the old tablet's version is 10,   it's just publish txn on version 11.  At then comes a migrate disk task. After the old tablet just finish publish txn 11, but before it add rowset( version = 11).  For the migrating task,  the old tablet had no txn now,   so the new tablet will copy the old tablet's data(old tablet's version is still 10).   After copying,  it will delete the old tablet,  and replace it with the new tablet.
So data whose version is 11  will be lost.


Release please

A critical bug concerning service names on windows has been fixed. Please release a patch version so that we can use it.
https://github.com/chef-cookbooks/firewall/commit/dd39b95a712234fcbcd6db053fde3ced6186db2d#diff-836805b7b36b8449cb3588e8b8eb3fc0R63
Thanks,

@axos88 That change was made in July, and our last release was October. The fix should already be available. /CC @snkutlu

It doesn't seem that way: https://github.com/chef-cookbooks/firewall/blob/v2.5.3/libraries/helpers_windows.rb#L63

Ah, I see -- it's dated July 20th, but wasn't merged until later in October. 👍

I've released v2.5.4. Thank you for the ping! :)


How to change JGProgressHUDSuccessIndicatorView color?

HUD.indicatorView = [[JGProgressHUDSuccessIndicatorView alloc] init];
HUD.indicatorView.tintColor = [UIColor greenColor];

nothing happen.

Are you setting this after the HUD is already visible or before showing? A full code example with creation, setup and showing the hud would help.


Use a fixed state hasher in bevy_reflect for deterministic Reflect::reflect_hash() across processes

Objective

bevy_ggrs uses reflect_hash in order to produce checksums for its world snapshots. These checksums are sent between clients in order to detect desyncronization.
However, since we currently use async::AHasher with the std feature, this means that hashes will always be different for different peers, even if the state is identical.
This means bevy_ggrs needs a way to get a deterministic (fixed) hash.

Solution

Add a feature to use bevy_utils::FixedState for the hasher used by bevy_reflect.
Always use bevy_utils::FixedState for initializing the bevy_reflect hasher.

Changelog

bevy_reflect now uses a fixed state for its hasher, which means the output of Reflect::reflect_hash is now deterministic across processes.

It's hard to imagine a case where we wouldn't want this. Why should this be a feature, rather than always enabled?

It's hard to imagine a case where we wouldn't want this. Why should this be a feature, rather than always enabled?

Yeah,  I guess the possibility of DOS attacks through bevy_reflect are pretty far fetched. I guess if anything it should probably an opt-in feature to make it runtime-seeded.
Hard-coding to always use fixed state

Sorry for the noise, still figuring out how the "reviewers" system on github works

bors r+


SecurityError: localStorage is not available for opaque origins when trying to set up Jest

Version
28.1.0
Steps to reproduce
I'm trying to set up Jest with a React Typescript project
I've created the jest.config.ts file and babel.config.js file with everything said in the docs
However on yarn test I get this:
The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
   Consider using the "jsdom" test environment.

   ReferenceError: document is not defined

so when I put testEnvironment: "jsdom" and
 testEnvironmentOptions:{
      URL: "http://localhost:3000"
  }

in jest.config.ts I get this error:
SecurityError: localStorage is not available for opaque origins
I've traversed the whole internet but seems there is no solution there for this issue
How can I solve this? Thanks
Expected behavior
I expect yarn test to work
Actual behavior
Jest is throwing error: SecurityError: localStorage is not available for opaque origins
Additional context
No response
Environment
System:
    OS: macOS 12.3.1
    CPU: (8) arm64 Apple M1
  Binaries:
    Node: 16.15.0 - /usr/local/bin/node
    Yarn: 1.22.18 - ~/Desktop/portal/node_modules/.bin/yarn
    npm: 8.5.5 - /usr/local/bin/npm
  npmPackages:
    jest: ^28.1.0 => 28.1.0

YYMV:  https://jestjs.io/docs/upgrading-to-jest28
For my specific case:
Installing jest-environment-jsdom separately passed this error.

@icegnome thank you so much lad!


ModuleNotFoundError: No module named 'unidecode'

Hello, I seem to have an issue, when trying to load the cog "decancer". This is my traceback:
Traceback (most recent call last):   File "c:\users\lpkea\appdata\local\programs\python\python38\lib\site-packages\redbot\core\core_commands.py", line 171, in _load     await bot.load_extension(spec)   File "c:\users\lpkea\appdata\local\programs\python\python38\lib\site-packages\redbot\core\bot.py", line 1202, in load_extension     lib = spec.loader.load_module()   File "<frozen importlib._bootstrap_external>", line 462, in _check_name_wrapper   File "<frozen importlib._bootstrap_external>", line 962, in load_module   File "<frozen importlib._bootstrap_external>", line 787, in load_module   File "<frozen importlib._bootstrap>", line 265, in _load_module_shim   File "<frozen importlib._bootstrap>", line 702, in _load   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked   File "<frozen importlib._bootstrap_external>", line 783, in exec_module   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed   File "C:\Users\lpkea\AppData\Local\Red-DiscordBot\Red-DiscordBot\data\ocean\cogs\CogManager\cogs\decancer\__init__.py", line 2, in <module>     from .decancer import Decancer   File "C:\Users\lpkea\AppData\Local\Red-DiscordBot\Red-DiscordBot\data\ocean\cogs\CogManager\cogs\decancer\decancer.py", line 9, in <module>     import unidecode ModuleNotFoundError: No module named 'unidecode'
Is there anything wrong with my code? Also, I love your bot Kable and Pheno <3

I found the solution, it was to install the module. Silly me!

Updated requirements was needed in info.json so issue was relevant.
Thanks. stringcase would need to be installed too but that should occur automatically now once you update repo.


Add an option to lower the fps of ambilight?

I thought of this option for users with crappy pc (which includes me)
Generating ambilight images can drop the performance of the pc significantly, which lowers the framerate or the quality of the video.
So, wouldn't it be nice if the user can lower the fps of the ambilight itself, by generating ambilight images less often? Users will be able to regain fps of the video by sacrificing the fps of ambilight.
The fps of ambilight wouldn't have too much impact since the images are blurred anyway. For watching videos that has a static background, it will not have any effect at all. I really hope this could be actually done in future.
Anyway, thanks for this awesome plugin!

I think this would be easy to implement.
But I'm not sure if it would fix the problem completely. For example, if an ambilight image is generated for every 2 seconds, and generating an ambilight image takes 2 frames, it could be possible that the video freezes every 2 seconds for 2 frames.
This might be more annoying than watching a video with a original framerate of 30 fps in 15 fps.
If it doesn't affect the video it would be fine. I'm going to test this.

It seems to have a positive effect on the CPU and GPU usage:

So the fps limiter will be available in 2.33.
You need to enable the advanced toggle that will be release in 2.33 to see the setting.

It is turned off by default because there is a chance that limiting the framerate this way can cause skipped frames.


Validate WAV encoding properties

Bug Report
Reports from downstream package indicate that this library may not be properly encoding wav files as intended.

[ ] Validate the plugin is generating lossless wav encoding.
[ ] Add additional unit tests to safeguard against breaking changes in future.

I found if you passed PCMFormatSize.SixteenBit when using EcdoeToPCM, the output is correct, guess there is something goes wrong in the function EcdoeToPCM
public static byte[] EncodeToWav(this AudioClip audioClip, bool trim = false)
        {
            if (audioClip == null)
            {
                throw new ArgumentNullException(nameof(audioClip));
            }

            // prep data
            var frequency = audioClip.frequency;
            var channels = audioClip.channels;
            var pcmData = audioClip.EncodeToPCM(PCMFormatSize.SixteenBit, trim);

I use EncodeToPCM in the base Audio package and for the OGG encoder as well, but those seem to be ok.
Thanks for the insight. If you have any other input, please share.


id_ease returns non-existing sample IDs in these_samples object.

If non-existing sample IDs are provided, the function warns the user that no such samples are not found in the metadata. The downside is that the functions still retain these sample IDs in the these_samples object in the return from this function. The function should throw a warning about missing samples, but they should also be removed from the returned object.
id_ease(these_samples_metadata=GAMBLR.data::sample_data$meta,
+         these_sample_ids = c("r2d2","c3P0","Luke","Reddy_3812T"))

id_ease: WARNING! The following sample IDs were not found in the metadata:
[1] "r2d2" "c3P0" "Luke"

$this_metadata
  patient_id   sample_id Tumor_Sample_Barcode Sex COO_consensus LymphGen genetic_subgroup EBV_status_inf      cohort pathology reference_PMID
1 Reddy_3812 Reddy_3812T          Reddy_3812T   M           GCB      ST2             <NA>           <NA> dlbcl_reddy     DLBCL       28985567

$these_samples
[1] "r2d2"        "c3P0"        "Luke"        "Reddy_3812T"

Can this be closed @mattssca ?

Yes, I am closing this now.


chore: update opam to > 2.2.0

Context
Currently, using the latest nixpkgs version, one runs into the following error:
error: builder for '/nix/store/w6lsvcalcrgvg0q94g7lbwkj32czlbcq-ocaml4.14.2-opam2nix-0.0.0.drv' failed with exit code 1;
       last 17 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/c8rnybgac5cf4k7y12cdg1s726p6xpj9-im328mqiqsk6171xsiwz1f9lsvvssvi0-source
       > source root is im328mqiqsk6171xsiwz1f9lsvvssvi0-source
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > no configure script, doing nothing
       > Running phase: buildPhase
       > (cd _build/default && /nix/store/7arzbkiccv969d78xy1k2gbwnpz1xfcv-ocaml-4.14.2/bin/ocamlc.opt -w -40 -g -bin-annot -I src/.opam2nix.eobjs/byte -I /nix/store/364s0lc4s1p3351nj9zqd84dv3bybq5k-ocaml4.14.2-opam-state-2.2.0/lib/ocaml/4.14.2/site-lib/opam-state -I /nix/store/4vb2619wcl6pp6ndmbsy864lcvshz1hg-ocaml4.14.2-seq-0.1/lib/ocaml/4.14.2/site-lib/seq -I /nix/store/4z8kwi58zgcfd4n9xqbh01k60lkkvvzr-cmdliner-1.3.0/lib/ocaml/4.14.2/site-lib/cmdliner -I /nix/store/4za2wq73123avscaddy39vq7jiv78vcc-ocaml4.14.2-swhid_core-0.1/lib/ocaml/4.14.2/site-lib/swhid_core -I /nix/store/50fypsqjkrjj605n30vny2y1kbglk4kl-ocaml4.14.2-cstruct-6.2.0/lib/ocaml/4.14.2/site-lib/cstruct -I /nix/store/5587zpf4whn2w63wnw8ga4lxbplhvw84-ocaml4.14.2-opam-format-2.2.0/lib/ocaml/4.14.2/site-lib/opam-format -I /nix/store/6wcnbc8yzsyk8cmsr18hs8a48ydblljq-ocaml4.14.2-uutf-1.0.3/lib/ocaml/4.14.2/site-lib/uutf -I /nix/store/99w1jks5hx3559ghxlqakw5zbf1znj7c-ocaml4.14.2-ocamlgraph-2.1.0/lib/ocaml/4.14.2/site-lib/ocamlgraph -I /nix/store/cczs3ylr93bm3gb5kcjb6dc6j4ly12kp-ocaml4.14.2-re-1.11.0/lib/ocaml/4.14.2/site-lib/re -I /nix/store/cs9crhxsv0zyjbmflhc0d9bdyphy145y-ocaml4.14.2-jsonm-1.0.2/lib/ocaml/4.14.2/site-lib/jsonm -I /nix/store/f08dap5angsm2awk2xi2sh3mad6y2y98-ocaml4.14.2-fmt-0.9.0/lib/ocaml/4.14.2/site-lib/fmt -I /nix/store/iq3iw1pzn62sy1aclfpa5zpqz54wvw4g-ocaml4.14.2-opam-0install-0.4.2/lib/ocaml/4.14.2/site-lib/opam-0install -I /nix/store/jmm7r2ynb5p24k0k611bkl1g8jx0m3zk-ocaml4.14.2-0install-solver-2.17/lib/ocaml/4.14.2/site-lib/0install-solver -I /nix/store/m69fqfjwb9469bbm6j400djhl39h5pmb-ocaml4.14.2-result-1.5/lib/ocaml/4.14.2/site-lib/result -I /nix/store/nj3rcakm56m7vcvfr5svaq0jlg7g7xyj-ocaml4.14.2-zarith-1.14/lib/ocaml/4.14.2/site-lib/zarith -I /nix/store/npbc0gqgwnjis7sxxsgzicr703f13fsl-ocaml4.14.2-hex-1.5.0/lib/ocaml/4.14.2/site-lib/hex -I /nix/store/nylcwamp50gjb3s98wr0inn0r6jkwnjn-ocaml4.14.2-ppx_deriving-5.2.1/lib/ocaml/4.14.2/site-lib/ppx_deriving/runtime -I /nix/store/p3a3b2gibhyrn3xsnwkq2nvczwv1fw4j-ocaml4.14.2-stdlib-shims-0.3.0/lib/ocaml/4.14.2/site-lib/stdlib-shims -I /nix/store/padcq5rldzcaxcsixx0njin2jsiway0m-ocaml4.14.2-sha-1.15.4/lib/ocaml/4.14.2/site-lib/sha -I /nix/store/ph9809xyimif9sqqn1ixv1bh440gh8z9-ocaml4.14.2-spdx_licenses-1.2.0/lib/ocaml/4.14.2/site-lib/spdx_licenses -I /nix/store/pspx7m8z6wc7xcybscjhzwlv1nvai98w-ocaml4.14.2-opam-core-2.2.0/lib/ocaml/4.14.2/site-lib/opam-core -I /nix/store/wrkw2c9kq9ljjp4pj9ny5vic2m7jl65g-ocaml4.14.2-base64-3.5.1/lib/ocaml/4.14.2/site-lib/base64 -I /nix/store/yj19j962g83ncvckg1fzgnfdcfdrnl1c-ocaml4.14.2-opam-file-format-2.1.6/lib/ocaml/4.14.2/site-lib/opam-file-format -I /nix/store/zs5gvjh48x38zcr6zqvgs8bsmxpb6as2-ocaml4.14.2-opam-repository-2.2.0/lib/ocaml/4.14.2/site-lib/opam-repository -I src/nix/.opam2nix_nix.objs/byte -no-alias-deps -open Dune__exe -o src/.opam2nix.eobjs/byte/dune__exe__Solve_0install_command.cmo -c -impl src/solve_0install_command.pp.ml)
       > File "src/solve_0install_command.ml", line 37, characters 25-27:
       > 37 |   match OpamSysPoll.arch () with
       >                               ^^
       > Error: This expression has type unit but an expression was expected of type
       >          OpamStateTypes.gt_variables =
       >            (OpamTypes.variable_contents option Lazy.t * string)
       >            OpamVariable.Map.t
       >
       For full logs, run 'nix-store -l /nix/store/w6lsvcalcrgvg0q94g7lbwkj32czlbcq-ocaml4.14.2-opam2nix-0.0.0.drv'.

The error occurs as the latest version of nixpkgs uses opam 2.2.0, yet opam-nix-integration relies on opam < 2.2.0.
Description
This PR updates opam2nix to use opam 2.2.0. This fixes the error.

This breaks the dev shell and Tezos as well. Seems like it's the same problem for both. "opam2nix" simply doesn't build any more.

I am looking into upgrading the mechanism to produce the boot opam2nix with OCaml 5.2. I think I can fix a few issues if not all related to this PR.

Took some time, but this should be fixed now. Could you verify?


Failed charge webhooks

When dealing with the webhook event after using the stripe test card 4000 0000 0000 0341, I was getting the following error:

Click here to show/hide stacktrace
Internal Server Error: /payments/webhook/
Traceback (most recent call last):
  File "/.../django/core/handlers/base.py", line 149, in get_response
    response = self.process_exception_by_middleware(e, request)
  File "/.../channels/handler.py", line 228, in process_exception_by_middleware
    return super(AsgiHandler, self).process_exception_by_middleware(exception, request)
  File "/.../django/core/handlers/base.py", line 147, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib64/python3.4/contextlib.py", line 30, in inner
    return func(*args, **kwds)
  File "/.../django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/.../django/utils/decorators.py", line 67, in _wrapper
    return bound_func(*args, **kwargs)
  File "/.../django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/.../django/utils/decorators.py", line 63, in bound_func
    return func.__get__(self, type(self))(*args2, **kwargs2)
  File "/.../pinax/stripe/views.py", line 185, in dispatch
    return super(Webhook, self).dispatch(*args, **kwargs)
  File "/.../django/views/generic/base.py", line 88, in dispatch
    return handler(request, *args, **kwargs)
  File "/.../pinax/stripe/views.py", line 200, in post
    message=data
  File "/.../pinax/stripe/actions/events.py", line 30, in add_event
    webhook.process()
  File "/.../pinax/stripe/webhooks.py", line 91, in process
    self.process_webhook()
  File "/.../pinax/stripe/webhooks.py", line 171, in process_webhook
    stripe.Charge.retrieve(self.event.message["data"]["object"]["id"])
  File "/.../pinax/stripe/actions/charges.py", line 99, in sync_charge_from_stripe_data
    customer = models.Customer.objects.get(stripe_id=data["customer"])
  File "/.../django/db/models/manager.py", line 122, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/.../django/db/models/query.py", line 387, in get
    self.model._meta.object_name
pinax.stripe.models.DoesNotExist: Customer matching query does not exist.

This is because the json data returned by the webook contains "customer": null,.
This PR introduces a check to make sure the customer ID is in the JSON data before attempting to get a Customer based on it.
Currently this fails because Charge.customer is not a nullable field. That appears to have already been addressed in #307.

@paltman thank you for the flurry of merges! As this PR is now reduced to a single test case that (due to your merges) now passes, I would understand if you would like to close this without merging -- I'll leave it open for the moment, and in your hands.

More tests the better!
Thanks!


Add new EKS check to ensure they run on a supported Kubernetes version

New feature motivation
Implement a new EKS check to verify that clusters are running on a supported Kubernetes version.
Solution Proposed
This control checks whether an Amazon Elastic Kubernetes Service (Amazon EKS) cluster runs on a supported Kubernetes version. The control fails if the EKS cluster runs on an unsupported version. The latest supported version is the 1.28 so this checks must be configurable adding for now this version as default parameter.
Describe alternatives you've considered
There is no alternative.
Additional context
https://docs.aws.amazon.com/securityhub/latest/userguide/eks-controls.html#eks-2

Hey @puchy22 can I work on this one?
Thanks


Table 'ci_ecom.confirm_links' doesn't exist

INSERT INTO confirm_links (link, for_order) VALUES ('a33ae444a460438dba0fdd5403d32e0a', 1236)

confirm_links.zip
add a table name 'confirm_links ' with two fields link, for_order in your mysql database.
simply download the sql zip file and extract a sql file.
then import the sql file into your database.

@terrauser1 Sorry about this. I add it with commit - https://github.com/kirilkirkov/Shopping-Cart-Solution-CodeIgniter/commit/611a0d545abcde929241491a9e1c5d3a7cedd243
@murad288 Thanks for help


Get all children from given level ?

How can i do if i want to get all children on level 2 ?
(example: http://image.prntscr.com/image/32d056f0e4124ba9b0a6cf69253083cf.png)

@AngryElephant, you should read the docs a couple times over.
Each node in the tree has a real_depth property, so you can query for children with something like:
YourEntity::where('real_depth', 2)->get()

@coreysan @AngryElephant This would get you every entity at level 2, regardless of root. I suspect that would be undesired behavior. If you want to get children of a specific root at level 2 , you could do:
$root->getDescendants()->where('real_depth', 2);

Nice one @ipcoleman :)


PG: Backup

check for valid SQL in backup file?

Also if file has errors the entire file is not backed up?


Add support for generating .well-known/nodeinfo

Was forgotten from previous release.
Refs: #11

Current coverage is 92.68%

Merging #14 into master will increase coverage by +0.06% as of 7b463db

@@            master     #14   diff @@
======================================
  Files           18      18
  Stmts          786     793     +7
  Branches         0       0
  Methods          0       0
======================================
+ Hit            728     735     +7
  Partial          0       0
  Missed          58      58

Review entire Coverage Diff as of 7b463db

Powered by Codecov. Updated on successful CI builds.


Monorepo Progress Updates: Day N+2

Hello Flutter Community!
We will use this issue to communicate further progress.
Day 1 saw the merging of three repositories and then some fast-follow updates to kick the tires on presubmits and the Merge Queue building production artifacts.
Day 2 was landing quick updates to re-add some missing files and make our update scripts aware of multiple origins. It was rough going through the MQ as our PR, which passed all pre-submits, was blocked by infrastructure failures. We were sure our changes would work and so we guided the PR through CI till it landed.
Day N+2: You are here

We've fixed some scheduling errors on the dashboard - backfilling appears to be working.
We've landed our format-the-world PRs
The tree is open.

If you have a PR that was created before the merge, you will run into some problems. We believe these are related to the PR structure on GitHub and are investigating. The work around is:

Create a new PR after the monorepo merge
Run dart format over your changed files
Now's a good time to turn on "auto format on save" in your editor of choice.

If you have any problems with presubmit tests, the merge queue, or generally about the monorepo; please file an issue and use the  label.

Quick question on docs -- will they be migrated to flutter/flutter from flutter/engine/docs?

Update
There is a known race condition in the MQ when building assets which can sometimes lead to the wrong assets being build. See #160704 for more information.


Minor updates for python stuff

Requirements packages should always have a version number
The .gitignore was missing a few things for common workflow

Codecov Report

Merging #6 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #6   +/-   ##
=======================================
  Coverage   75.81%   75.81%
=======================================
  Files           5        5
  Lines         244      244
=======================================
  Hits          185      185
  Misses         59       59

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 a000864...58e6922. Read the comment docs.


Is this required on Windows 10 PCs?

We will be using Windows Upgrade Readiness for our Windows 10 In place Upgrades (e.g. 1607 to 1709).
We are aware that Windows 10 PCs can be configured for telemetry using the built in group policy option.
Do these PC still need to run this script? If so, will they also be required to run it periodically (i.e. every 30 days)?
We are confused as there is a fair bit of contradiction on the internet regarding this.

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

ID: f029a728-1f53-4576-a6ca-8a19a92626e6
Version Independent ID: 85f27ad5-84e2-0787-082f-59d2d66c99b5
Content: Upgrade Readiness deployment script (Windows 10)
Content Source: windows/deployment/upgrade/upgrade-readiness-deployment-script.md
Product: w10
GitHub Login: @jaimeo
Microsoft Alias: greglin

I apologize for the delay.
Yes, you should run the script.
You have to set the diagnostic data levels by using Group Policy, MDM (Intune), or ConfigMgr; then the script verifies that the levels are set as needed for Upgrade Readiness to work, as well as many other useful things like presence of key updates and verifying accessibilty of endpoints. It also starts the inventory scan.
It is useful, though not strictly required, to re-run the script periodically in order to catch any changes in the environment.

@officedocsbot assign @mypil

@immanuelbaker - From our understanding, the issue you raised has been answered by jaimeo. If you feel it hasn't been answered, please re-open this issue.
Thank you for your contribution to make the docs better! Much appreciated!

@officedocsbot close


Design & Plan to add Local Filesystem cloning

Proposal - Local Filesystem Cloning
This proposes adding the ability to clone from files beneath a privileged directory on your filesystem to your local directory.
Current Limitation
The Jupyter ContentManager API is not normally allowed to access anything outside of its base directory. This prevents users from accessing files above the base directory.
Use Case
The use case arises in cases where you want to provide access to content that is not normally available to the Jupyter Contents API.
For example, suppose that you were running JupyterHub for a number of users and had a filesystem of content that all users should have access to in a readonly way.
Workflow option - Rejected
You could display the contents with commuter, but users would then need to download and upload the content to their local server to be able to get an executable copy of the content. You could mount the file system beneath their Jupyter directory which would let you copy the contents. But that could lead to confusion and clutter in the user's filesystem.
Proposed Workflow
File system cloning would allow you to mount the volume at a in a standard location not beneath the users' base dir, and provide a way for users to directly clone that content as a copy into  their local directory. Commuter could then show a clone button that would trigger this API, massively simplifying the workflow needed to go from a readonly to an executable copy of a notebook.
Key Benefit: This allows a similar workflow to be shared by both content hosted on s3 (what bookstore currently supports) as well as content on a filesystem.
^ Edited: The above description was added based on a super helpful suggestion from @willingc
A proposed model for filesystem cloning:
Design

filesystem cloning is disabled by default (any default would potentially pose a security issue)
filesystem cloning will only work for files that are children of a specific base directory (fs_cloning_basedir)
cloning source will be defined using a relative path from the fs_cloning_basedir
we will use the notebook contents manager to handle security policies around the cloning target path
separate validation checks for s3 cloning and fs cloning
create new /api/fs-clone and fs-clone endpoints with relpath query parameter and model key
modify clone.html template to be used by both sets of handlers

Plan

[x] Add traitlet for setting filesystem cloning base directory #155

[x] Add validation check for filesystem cloning; change existing cloning validation to be s3 specific
[x] Add tests for validation checks
[ ] Update Configuration docs

[ ] Create new BookstoreFSCloneHandler and BookstoreFSCloneAPIHandler with relpath and target_path model params

[ ] Update REST API docs
[ ] Create new handler unittests

[ ] Add utility method for handling cloning

[ ] Add fs cloning integration tests

[ ] Success check

[ ] Add unittest to guarantee failure for escaping the base directory
[ ] Update docstrings and method API docs

@chyzzqo2 , does this sound like a good plan?
Replaces #110.

@mpacer Thanks for updating the design and plan. I've added a few headings for readability for devs in the future. :smile:

@willingc Thank you so much for adding the structure — it really does make this much easier to read!

So happy we got through all this so quickly thanks @willingc and @chyzzqo2 for helping make that happen!!


Add rsuite-table

Don't create a pull request to add a library, instead use devarchy.com/react.
Only create a pull request to change the categorization.
Open an issue if you are not sure how to change the categorization to fit a library you want to add.

Thanks for the PR! Any reasons you did a PR instead of using Devarchy?

Closing for now.


Consider removing data route

If we do decide it's better to leave the data route out of this tool, that requires changes in various places:

README.md
rm -r pages/data
rm -r pages/index
promoting contents of pages/software to pages
remove home button, or make pages/index list versions of software.
data variant link near top of page
CITATION.cff description
Need to add "Inspired by data checklist" link to collapsible section
renderer/versions.ts
README.dev.md

FYI 6ab60788d1e2d9780c9dc00c90651418e8228796 is the last commit that has both routes, TODO:  add sha removed all routes except versions of the software checklist.

The software now only has (versions of) the software route. Closing this issue.


Update Topic Open Source Collaboration

Added content to bring readers up to speed on what Open Source means, and the basics of how to use git. The git mini walk through also doubles as a basic git workflow tutorial (it's best to instill best practices from the beginning).

AMAZING pull request! Congratulations @skellet0r !!!
Stellar description!


Refactor Task Commands

Codecov Report

Merging #150 into master will increase coverage by 0.18%.
The diff coverage is 76.92%.

@@             Coverage Diff              @@
##             master     #150      +/-   ##
============================================
+ Coverage     55.56%   55.75%   +0.18%
- Complexity      596      599       +3
============================================
  Files           127      127
  Lines          2462     2468       +6
  Branches        302      302
============================================
+ Hits           1368     1376       +8
+ Misses          979      977       -2
  Partials        115      115

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/trackitnus/model/Model.java
100.00% <ø> (ø)
3.00 <0.00> (ø)

src/main/java/trackitnus/model/ModelManager.java
61.80% <72.72%> (+2.38%)
36.00 <2.00> (+2.00)

src/main/java/trackitnus/logic/LogicManager.java
66.66% <100.00%> (+3.33%)
8.00 <2.00> (+1.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 80d2a47...105b6e4. Read the comment docs.


Mesos 1.1.2

This upgrades us to mesos 1.1.2. We can't go straight to newest because masters in 1.2 onward will no longer accept connections from 0.x slaves, so the upgrade path would be 😭 .
The api and protos objects also change quite a bit, meaning that all of our current task history with MesosTaskInfo, Offer, etc saved in the json will not be readable in the new version unless we write the code to convert it. As an alternative to keeping the pieces in json, which requires Singularity client users to pull in a mesos dep, I would propose we find a way to wrap the data in our own POJO instead (like we have done for much of the rest of the objects)
TODOs

[x] Update to use the versioned api
[x] Figure out the executor situation. Right now there isn't a V1 api implementation of the executor api http://mesos.apache.org/documentation/latest/api-client-libraries/

FYIs

--work_dir flag must be set for all mesos slaves/agents
internally the slave -> agent rename is there, but all apis endpoints and fields still reference slave as they did before for now

Eventual things we should do to keep up with newer features:

executor should honor the kill_policy setting of kill messages
executor shutdown grace period is set in ExecutorInfo
slave -> agent rename
use labels in ExecutorInfo in favor of source

The Fun Stuff
Things that we can explore once we upgrade:

support --http_command_executor
explore use of mesos-native health checks
per container linux capabilities
partition-aware mesos

frameworks can opt-in to the new PARTITION_AWARE capability. If they do this, their tasks will not be killed when a partition is healed. This allows frameworks to define their own policies for how to handle partitioned tasks. Enabling the PARTITION_AWARE capability also introduces a new set of task states: TASK_UNREACHABLE, TASK_DROPPED, TASK_GONE, TASK_GONE_BY_OPERATOR, and TASK_UNKNOWN. These new states are intended to eventually replace the TASK_LOST state.

task groups and nested containers https://github.com/apache/mesos/blob/master/docs/nested-container-and-task-group.md

Updates here:

current code runs and schedules tasks locally. Subscription, offers, framwork messages, etc all working smoothly
When written to json, the new protos objects still conform to the same structure as the old ones. So, while I would like to remove mesos protos from things written to json in zk, it isn't a requirement for upgrading
The executor can be left on the unversioned mesos library binding for now. It can still connect to newer masters with the older library as long as it is running the newer mesos libs underneath
a user for the framework is now required and is used in certain isolator calls. Defaulting this to root, overridable in the yaml config
docker images are using 1.1.1 because mesosphere never published a 1.1.2. Not a large enough difference to build my own

Also /cc @tpetr in case you're interested in the upgrade at all ;)

Next round of updates:

finished refactoring to use the http api via https://github.com/mesosphere/mesos-rxjava . The scheduler lock is still in place, but the addition of observables frees us up to o some more interesting things internally if we want to. But, this means we are free from native mesos lib bindings!
Likely going to leave the protos stuff as-is for now. I'll do some additional tests for backwards compatibility, but looks like we should be all set there.

Remaining TODO on this PR:

[ ] Update the new client so that we will can take a list of mesos master hosts to attempt to connect to. Right now it's just a single one

One additional comment here that would be a future TODO. It seems that the mesos rxjava library could likely be used to subscribe to the executor endpoint as well, even though it is listed as only a scheduler library. That upgrade would be much easier now that the scheduler portion is written, and shouldn't require any major configuration changes in the executor

🚢


[Discussion][Dev] node-sqlite3 does not support worker_threads

While trying to implement scheduled jobs (for auto clear old statistics), I ran into an issue with sqlite crashing in native code. Turns out sqlite3 > 5.0 breaks when running in worker_threads (see node-sqlite3#1381). So here are my options:

Drop the use of worker_threads. For me this isn't ideal. Although there isn't a strong need for running background jobs in another thread for now, any future CPU-intensive work (like generating reports) would benefit greatly from it. It also helps with modularization since we can ensure each background job acquire it's own db connection. But not using threading does have benefit of a more simple implementation.
Switch to better-sqlite3, since I tested it seems to work fine on a worker. From the READMEs it also looks like an all-round better library. Searching the repo I see that the project briefly switched to better-sqlite3 before switching back, but I don't know the reasoning behind. Is there any specific issues users encountered?

22/12/2023
FATAL ERROR: Error::ThrowAsJavaScriptException napi_throw
1: 00007FF7DDA8433F node::SetCppgcReference+15695
2: 00007FF7DD9FEC26 EVP_MD_meth_get_input_blocksize+78566
3: 00007FF7DDA00B1C node::OnFatalError+252
4: 00007FF7DDA3876C napi_fatal_error+156
5: 00007FFE9B2F19D7
6: 00007FFE9B2F1DA6
7: 00007FFE9B3118E5
8: 00007FFE9B30AB67
9: 00007FF7DDA35792 node_module_register+3586
10: 00007FF7DDAEC610 uv_timer_stop+800
11: 00007FF7DDAEC7FA uv_timer_stop+1290
12: 00007FF7DDAE8A7B uv_update_time+491
13: 00007FF7DDAE85F4 uv_run+900
14: 00007FF7DDAB94C2 node::SpinEventLoop+402
15: 00007FF7DD8FAF74 RSA_meth_get_flags+159588
16: 00007FF7DD8F5FA8 RSA_meth_get_flags+139160
17: 00007FF7DDAD6CCD uv_poll_stop+237
18: 00007FF7DEC74590 inflateValidate+153328
19: 00007FFEE6EC26AD BaseThreadInitThunk+29
20: 00007FFEE7CEAA68 RtlUserThreadStart+40
in worker

@allgloryforrobots you are necroposing on an issue which has been closed a long time ago as resolved.
If you want your bug report to not get ignored, writing in an actual issue with full context is the way to go. Currently, your bug report does not hold enough information to debug on


Add pipeline id / pipeline code into input yaml

Currently user needs to specify --pipeline-id at both create-cwl-wes-template AND at start-cwl-wes, should be able to do this just once and --pipeline-id should be an optional cli parameter for start-cwl-wes

Resolved in #252


Need support for $skiptoken and $id system query options

For $skiptoken, OData 4.0 spec states:
<IP_ADDRESS> Server-Driven Paging
Responses that include only a partial set of the items identified by the request URL MUST contain a link
that allows retrieving the next partial set of items. This link is called a next link; its representation is
format-specific. The final partial set of items MUST NOT contain a next link.
The client can request a maximum page size through the odata.maxpagesize preference. The service
may apply this requested page size or implement a page size different than, or in the absence of, this
preference.
OData clients MUST treat the URL of the next link as opaque, and MUST NOT append system query
options to the URL of a next link. Services may not allow a change of format on requests for subsequent
pages using the next link. Clients therefore SHOULD request the same format on subsequent page
requests using a compatible Accept header. OData services may use the reserved system query option
$skiptoken when building next links. Its content is opaque, service-specific, and must only follow the
rules for URL query parts.
OData clients MUST NOT use the system query option $skiptoken when constructing requests.
And for $id in GET request, it states:
11.2.8 Resolving an Entity-Id
To resolve an entity-id, e.g. obtained in an entity reference, into a representation of the identified entity,
the client issues a GET request to the $entity resource which located at the URL $entity relative to
the service root. The entity-id MUST be specified using the system query option $id.
Example 62: return the entity representation for a given entity-id
http://host/service/$entity?$id=http://host/service/Products(0)
A type segment following the $entity resource casts the resource to the specified type. If the identified
entity is not of the specified type, or a type derived from the specified type, the service returns 404 Not
Found.
After applying a type-cast segment to cast to a specific type, the system query options $select and
$expand can be specified in GET requests to the $entity resource.
Example 63: return the entity representation for a given entity-id and specify properties to return
http://host/service/$entity/Model.Customer?
$id=http://host/service/Customers('ALFKI')
&$select=CompanyName,ContactName&$expand=Orders
I would like O.js to support these query options. I think there is $id support when DELETing... but not for GET.

#83 removes any specific there. you can use:
o('http://my.endpoint').get('$entity').query({$id='http://my.endpoint/product/1'})


Number of collections is reported inaccurately

from @markuhen:
There is still something wrong with this. See the images below. In Zoom 1, there are 3 collections displayed with a total of 5 occurrences. In Zoom 2, the same 3 collections with 5 occurrences are displayed, but the number of collections reads 0. This is impossible!

This appears to be fixed.


Latest tagged version is currently broken (3.0.0)

You probably know that, but you need to tag a new version. Just a reminder ❤
This might scare new comers.
Master branch is working just fine. (https://github.com/shipping-docker/vessel/commit/d8e041ce1b14797c927668bcc83ae94cf85f3c7e)

Thanks for the info!

whoops, sorry! fixing that up

Done! Tagged 3.0.1


How to Train on custom Dataset if don't want to crop like dota dataset

How to Train on custom Dataset if don't want to crop like dota dataset

How to prepare dataset for custom dataset & annotation format & which tool to use for annotation.

I have tried two stretegy as of now which is not working:-

I have annotate object in the format of lableme's polygons & try to convert it into the dota txt format, but when I call the split function
it is saving .pkl file for both but inside pickle file bboxes is empty because it is not splitting the object.

this is read data from pickle file  after splitting............................

{'cls': ('ship',),
 'content': [{'gsd': 0.108079065446,
   'ann': {'bboxes': array([], dtype=float32),
    'labels': array([0], dtype=int64),
    'diffs': array([0], dtype=int64)},
   'width': 1166,
   'height': 753,
   'filename': '100000001.bmp',
   'id': '100000001'},

In second approach , i have created the parser to directly convert the annotation from json polygons to .pkl format but again it is not working.

Kindly give suggestion how to prepare dataset for custom., If you will prepare the beautifull docs on that will be great.

You can refer to here to create a custom dataset class.
The only difference is the bboxes should be BboxToolkit defination.
The pipelines can refer to the dota pipeline


Fix skipped tests

fixes #165

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

GitHub release
Atom package

Your semantic-release bot :package::rocket:


[Bug] help me

!python tools/test.py ./configs/swin_transformer/swin-tiny_cats-dogs.py work_dirs/swin-tiny_cats-dogs/latest.pth --metrics=accuracy --metric-options=topk=1
/usr/local/lib/python3.7/dist-packages/mmcv/cnn/bricks/transformer.py:33: UserWarning: Fail to import MultiScaleDeformableAttention from mmcv.ops.multi_scale_deform_attn, You should install mmcv-full if you need this module.
warnings.warn('Fail to import MultiScaleDeformableAttention from '
/content/mmclassification/mmcls/utils/setup_env.py:33: UserWarning: Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
f'Setting OMP_NUM_THREADS environment variable for each process '
/content/mmclassification/mmcls/utils/setup_env.py:43: UserWarning: Setting MKL_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
f'Setting MKL_NUM_THREADS environment variable for each process '
load checkpoint from local path: work_dirs/swin-tiny_cats-dogs/latest.pth
Traceback (most recent call last):
File "tools/test.py", line 243, in
main()
File "tools/test.py", line 170, in main
checkpoint = load_checkpoint(model, args.checkpoint, map_location='cpu')
File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/checkpoint.py", line 563, in load_checkpoint
load_state_dict(model, state_dict, strict, logger)
File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/checkpoint.py", line 80, in load_state_dict
load(module)
File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/checkpoint.py", line 78, in load
load(child, prefix + name + '.')
File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/checkpoint.py", line 75, in load
err_msg)
File "/content/mmclassification/mmcls/models/backbones/swin_transformer.py", line 457, in _load_from_state_dict
*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1372, in _load_from_state_dict
hook(state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
File "/content/mmclassification/mmcls/models/backbones/swin_transformer.py", line 514, in _prepare_relative_position_bias_table
relative_position_bias_table_current = state_dict_model[key]
KeyError: 'backbone.stages.0.blocks.0.attn.w_msa.relative_position_bias_table'

this link
https://drive.google.com/file/d/12Aa88pVrerVGUMOADfW_3cNGymFSXqd_/view?usp=sharing

hello.
l have meet the same problem when use the swin transformer, the config file is  ./configs/swin_transformer/swin-base_16xb64_in1k.py.
The traning is ok but when l do the inference, the error occurred
python tools/test.py ./configs/swin_transformer/swin-base_16xb64_in1k.py ./work_dirs/swin-base_16xb64_in1k/epoch_1.pth --out "result_220422.json"
And l haven't use the pretrained model
/home/heji/code/CVPR2022/mmclassification/mmcls/utils/setup_env.py:33: UserWarning: Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
  f'Setting OMP_NUM_THREADS environment variable for each process '
/home/heji/code/CVPR2022/mmclassification/mmcls/utils/setup_env.py:43: UserWarning: Setting MKL_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
  f'Setting MKL_NUM_THREADS environment variable for each process '
load checkpoint from local path: ./work_dirs/swin-base_16xb64_in1k/epoch_1.pth
Traceback (most recent call last):
  File "tools/test.py", line 243, in <module>
    main()
  File "tools/test.py", line 170, in main
    checkpoint = load_checkpoint(model, args.checkpoint, map_location='cpu')
  File "/home/heji/anaconda3/envs/openmmlab/lib/python3.7/site-packages/mmcv/runner/checkpoint.py", line 563, in load_checkpoint
    load_state_dict(model, state_dict, strict, logger)
  File "/home/heji/anaconda3/envs/openmmlab/lib/python3.7/site-packages/mmcv/runner/checkpoint.py", line 80, in load_state_dict
    load(module)
  File "/home/heji/anaconda3/envs/openmmlab/lib/python3.7/site-packages/mmcv/runner/checkpoint.py", line 78, in load
    load(child, prefix + name + '.')
  File "/home/heji/anaconda3/envs/openmmlab/lib/python3.7/site-packages/mmcv/runner/checkpoint.py", line 75, in load
    err_msg)
  File "/home/heji/code/CVPR2022/mmclassification/mmcls/models/backbones/swin_transformer.py", line 457, in _load_from_state_dict
    *args, **kwargs)
  File "/home/heji/anaconda3/envs/openmmlab/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1127, in _load_from_state_dict
    hook(state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
  File "/home/heji/code/CVPR2022/mmclassification/mmcls/models/backbones/swin_transformer.py", line 514, in _prepare_relative_position_bias_table
    relative_position_bias_table_current = state_dict_model[key]
KeyError: 'backbone.stages.0.blocks.0.attn.w_msa.relative_position_bias_table'

my configfile is
from mmcls.mmcls.datasets.imagenet import ImageNet
_base_ = ['./pipelines/rand_aug.py']

# dataset settings
dataset_type = 'Filelist'
img_norm_cfg = dict(
    mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)

train_pipeline = [
    dict(type='LoadImageFromFile'),
    dict(
        type='RandomResizedCrop',
        size=512,
        backend='pillow',
        interpolation='bicubic'),
    dict(type='RandomFlip', flip_prob=0.5, direction='horizontal'),
    dict(
        type='RandAugment',
        policies={{_base_.rand_increasing_policies}},
        num_policies=2,
        total_level=10,
        magnitude_level=9,
        magnitude_std=0.5,
        hparams=dict(
            pad_val=[round(x) for x in img_norm_cfg['mean'][::-1]],
            interpolation='bicubic')),
    dict(
        type='RandomErasing',
        erase_prob=0.25,
        mode='rand',
        min_area_ratio=0.02,
        max_area_ratio=1 / 3,
        fill_color=img_norm_cfg['mean'][::-1],
        fill_std=img_norm_cfg['std'][::-1]),
    dict(type='Normalize', **img_norm_cfg),
    dict(type='ImageToTensor', keys=['img']),
    dict(type='ToTensor', keys=['gt_label']),
    dict(type='Collect', keys=['img', 'gt_label'])
]

test_pipeline = [
    dict(type='LoadImageFromFile'),
    dict(
        type='Resize',
        size=(512, -1),
        backend='pillow',
        interpolation='bicubic'),
    # dict(type='CenterCrop', crop_size=224),
    dict(type='Normalize', **img_norm_cfg),
    dict(type='ImageToTensor', keys=['img']),
    dict(type='Collect', keys=['img'])
]
# heji
data = dict(
    samples_per_gpu=8,
    workers_per_gpu=4,
    train=dict(
        type=dataset_type,
        ann_file='../data/phase1/trainset_label.txt',
        data_prefix='../data/phase1/trainset/',
        pipeline=train_pipeline),
    val=dict(
        type=dataset_type,
        ann_file='../data/phase1/valset_label.txt',
        data_prefix='../data/phase1/valset/',
        pipeline=test_pipeline),
    test=dict(
        # replace `data/val` with `data/test` for standard test
        type=dataset_type,
        ann_file='../data/phase1/valset_label.txt',
        data_prefix='../data/phase1/valset/',
        pipeline=test_pipeline))

# fp16 = dict(loss_scale=768.)
evaluation = dict(interval=10, metric='accuracy')
# load_from = './weights/swin_base_224_b16x64_300e_imagenet_20210616_190742-93230b0d.pth'

Can you give me the version information?
Try to run pip list | grep "mmcls\|torch\|mmcv".

Can you give me the version information? Try to run pip list | grep "mmcls\|torch\|mmcv".
@Ezra-Yu
mmcls              0.22.1
mmcv-full          1.4.8
torch              1.8.2
torchaudio         0.8.2
torchvision        0.9.2

Can you give me the version information? Try to run pip list | grep "mmcls|torch|mmcv".
@Ezra-Yu
mmcls 0.22.1
mmcv-full 1.4.8
torch 1.8.2
torchaudio 0.8.2
torchvision 0.9.2

pls help me if U can

can you give me link colab MMClassification swin transformer no error. I need this code for graduation essay. help me please @Ezra-Yu

@vothaianh1997  I will check if there is a bug in the code base.
For a quick fix, you can use a lower version of mmcls.
just run
pip uninstall mmcls               # unistall current mmcls
pip install mmcls==0.22.0    # install a lower version of mmcls,

In this way, you can not modify the code in '$MMClassification/mmcls', but the modification of the config files are OK

here is an example to use swin

We have fixed this bug in the latest version. please update mmcls >=v0.23.0.
I will close this PR.

can U create a tutorial like
https://github.com/open-mmlab/mmclassification/blob/master/docs/en/tutorials/MMClassification_python.ipynb
for swin transformer because it new


Problem decoding dumpsys connectivity

Describe the bug
Tmux is showing a constant error for something network related:
Error getting network status
Traceback (most recent call last):
File "/data/openpilot/selfdrive/thermald/thermald.py", line 210, in thermald_thread
network_strength = get_network_strength(network_type)
File "/data/openpilot/common/android.py", line 235, in get_network_strength
out = subprocess.check_output('dumpsys connectivity', shell=True).decode('ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 224: ordinal not in range(128)
How to reproduce or log data
Steps to reproduce the behavior, or a explorer/cabana link to the exact drive and timestamp of when the bug occurred.
Expected behavior
My SSID is "Encrypted Space 2.4GHz". The first space (after Encrypted) is \x20 and the second space for some reason (after Space) is \xC2. Not sure why router did that..
Device/Version information (please complete the following information):

Device: EON Gold
Version: 0.7.4 release2

Additional context
I changed the decoding from ascii to utf8 in /data/openpilot/common/android.p on my own fork and the error seems to have gone away. Any caveats to this?

The fix for this was also proposed in #1385 to address a similar problem.


process undefined

I'm using version 3.13, and I'm on Linux. I'm also transpiling with rollup.
When I run phaser in the browser I get a process is undefined error.
This comes from the environment checks:
if (process && process.versions && process.versions.node)
	    {
	        OS.node = true;
	    }

If the first part of the logic process is changed to typeof process !== 'undefined' that should fix it.
Like:
if (typeof process !== 'undefined' && process.versions && process.versions.node)
	    {
	        OS.node = true;
	    }

This problem can be partially fixed by adding a global to the page like let process = null, but I think it would be better if it were fixed in the phaser code base.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

This must be something that happens in your build process because no mobile or desktop browser throws this error using the dist build. While it could be fixed with a typeof check, that still doesn't get to the root of the problem.

Depending on how you look at it it is the build process, or it's not the build process. It's really more of opinion on what's a viable inclusion of APIs from node that ends up being a part of the build.
There's this code in the built phaser.js file (line 144923 as of today):
// shim for using process in browser
var process = module.exports = {};

A shim can also be inserted using rollup with a prepend, but it feels like something that will potentially make things harder than it's worth down the line. I don't know where that shim comes from. Base rollup doesn't create it because base rollup only transpiles modules.
As I said it can be fixed by adding a global let process = null; so I have it shimmed, and so technically the build works even when the shim is not present in the build. So it's not the build, or it is the build. The error is actually for variables that are not declared within a scope.
<script>
//Fixes process undefined error
let process = null;
</script>

process is shimmed in the dist script (via webpack), but not in the src script.

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.


helm: use IfNotPresent for versioned helm chart release

fixes: https://github.com/envoyproxy/gateway/issues/3183

/retest

/retest


feat: Include prometheus metric help text

Motivation
The prometheus exposition format can include per-metric help text, it was always a TODO to add more useful descriptions for all of the emitted model-mesh metrics.
Modifications
Add text descriptions for each of the published prometheus metrics.
Result
Better discoverability for model-mesh prometheus metrics.
Signed-off-by: Nick Hill<EMAIL_ADDRESS>

/lgtm


[tests] Check that JSON/YAML examples are valid

Improve error reporting in some tasks
Modify examples to be valid for JVRC1/ground combination

In some cases we had two examples, they have been split between JSON/YAML

I don't think we should be referring to robot indices any more especially in logging messages since we deprecated the use of robotIndex in the FSM.

While robotIndex is deprecated in JSON/YAML, it is still the current interface in code. In the places where I've added a check it's meaningless to try to refer to names.

Would it be possible to check whether the samples match the fields defined in the JSON schema. For instance the ExactCubicTrajectory sample was wrong and did not match the sample but the tests would not have caught that.

That's a good point. This PR only validates that the YAML/JSON is well-formed and that loading these files gives you a task of the expected type. To check what you want, I think we could check that the examples satisfy the associated schema but it might not catch every possible mistakes. In particular since we use allOf and that has inconvenient side effects with the noAdditionalProperties property...
For more advanced checking, there's also testMetaTaskLoader that is used to check that tasks properties are completely restored from their on-disk representation.
There's readily available libraries to do this kind of validation that we could integrate in the test for this (possibly a Python library that would be less cumbersome to install)

Shouldn't ComplianceTask support having the force sensor with joints between the surface and sensor as we did for admittance?

I thought about it but I finally opted for leaving this out of this PR.

I don't think it's a good idea to describe orientations as matrices in the samples. Notably I remember that Yili hadn't realized that he could use RPY/quaternions instead, and was converting everything to matrices. IMHO we should try to make the samples as-close as possible to how they tend to be used in practice.

That's a good point. The examples could show a RPY representation and have a comment saying quaternion and matrix are also valid representation. (that's part of the schema description but it can be nested quite deeply)

Sorry about the multiple commits, I hadn't noticed that the testMetaTasksLoader was failing, with good reason (due to a silenced conversion error in trying to load the configuration with default parameters). I fixed it, and added the missing loading tests for PostureTask,BSplineTrajectoryTasks,ExactCubicTrajectoryTask there.

While robotIndex is deprecated in JSON/YAML, it is still the current interface in code. In the places where I've added a check it's meaningless to try to refer to names.

OK. It'll resolve itself in the near future anyways.

I thought about it but I finally opted for leaving this out of this PR.

Yeah, makes sense it's unrelated, just thought I'd point it out for the future ;)

The examples could show a RPY representation and have a comment saying quaternion and matrix are also valid representation.

That's what I was thinking about. I'll take care of it tomorrow morning.

Hop all done.
Converted the sample's rotation matrices to RPY, and made clearer the distinction between world targets and relative targets in trajectory tasks. On that note, I'd like in the future to change the way the target configuration is loaded to be clearer and with a simpler schema by nesting all the world targets under a targetWorld object. That would allow to either have a targetSurface or a targetWorld in the configuration, and the JSON schema would nicely reflect that.

Thanks @arntanguy I'll merge when the actions pass.


What happened to Piskel? No issue, just wondering.

What happened to Piskel? I didn't even realize that it got shutdown, I'm just glad I managed to slip in just before it went completely off the grid.

They shut down the service because of high maintenance costs. But I don't know why offline apps can't be downloaded, given that they are not linked to piskelapp.com. If anyone has the files available, please share them with me.

i'm having the same problems , I can't download the desktop versions

Try this
https://www.piskelapp.com/download

Try #1049. It's not as clean as double clicking a binary but it works.


[BUG]The ECS task or the Opensearch dashboards' docker-compose.yml file doesn't recognize SAML configs

Describe the bug
When connecting a standalone OpenSearch dashboards with the SAML authenticated managed service domain, the SAML configurations are not accepted in the ECS task or in the docker-compose.yml file.
To Reproduce
Steps to reproduce the behavior:

Create a OpenSearch dashboards ECS task or docker-compose.yml file like below

version: '3'
services:
  opensearch-dashboards:
    image: opensearchproject/opensearch-dashboards:2.5.0
    container_name: opensearch-dashboards
    ports:
      - 5601:5601
    expose:
      - "5601"
    environment:
      opensearch.hosts: '["https://vpc-saml-2-3cue34.ap-south-1.es.amazonaws.com"]'
      opensearch.username: 'xxx'
      opensearch.password: 'xxxx'
      opensearch_security.auth.type: "saml"
      server.xsrf.allowlist: ["/_opendistro/_security/saml/acs"]
    networks:
      - opensearch-net
networks:
  opensearch-net:

Expected behavior
When the standalone OSD endpoint is hit, it has to go to SAML application instead it goes to the dashboards home page and requires the customer to enter basic http username and password.

[Untriage]
Hey @madhankb please check the following examples for connecting OSD with SAML
https://opensearch.org/docs/latest/security/configuration/multi-auth/
https://opensearch.org/docs/latest/security/authentication-backends/saml/
https://opster.com/guides/opensearch/opensearch-security/how-to-set-up-single-sign-on-using-openid-connect/
https://www.youtube.com/watch?v=liJO_jOiIF8

I have tried all and it is not working!

Can we triage this and get this fixed please?


How to open a terminal on Mac?

@MSDEVMTL/gab2019-contributors
In lab 3 I explain a few ways to open a terminal on Windows, but I have no clue how to open one with a MAC (sorry Apple I am not a customer of yours). For Linux, we could guess that the user knows.
Does any of you know how macs work, so I could replace TODO: how to do that? by more precise instructions? Thanks

http://bfy.tw/N9vF
😜

And there goes your yearly bonus! Recommending me Google instead of Bing 😮
Found it!

Seriously, I guess I'll do that


Running Sample: Problem with authorising the quickstart application

Expected Behavior

Upon opening the URL in order to authorize the application:
Please visit this URL to authorize this application: https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=758636191562-f91q4r127599gmocnuhj1174emnhts2p.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A36699%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdocuments.readonly&state=IgWTlqLngvyyKOVwFZKmwD7Hu0cjqU&access_type=offline

I choose the google account I want to authorise it under in my browser.

I pass the 'This app isn't verified' warning by choosing 'advanced' and 'Go to Quickstart (unsafe)'

I grant Quickstart permission to:

'View your Google Docs documents'
by pressing 'Allow'

I Confirm my choices:

'You are allowing Quickstart to:
View your Google Docs documents'
by pressing another 'Allow'

I expect the authorisation to complete

Actual Behavior
In step 6. my browser is redirected to:
http://localhost:36699/?state=IgWTlqLngvyyKOVwFZKmwD7Hu0cjqU&code=4/5AH68eJGbKOCELt3-VmALywnAP3_S9SzmJAvi0fgtfcgkjURLLtchfLtS84Lbi7cLYndZxjc8aFFNwC_VqPwrOg&scope=https://www.googleapis.com/auth/documents.readonly
and I receive a browser error:
This site can’t be reachedlocalhost refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
Steps to Reproduce the Problem

Start a remote server with Ubuntu
Connect to it via a single port by ssh
Install python3
Run: pip3 install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
Make sample script according to https://developers.google.com/docs/api/quickstart/python
run the sample script from the command line

Specifications

Python 3.8.5
Linux ubuntu 5.4.0-48-generic #52-Ubuntu SMP Thu Sep 10 10:58:49 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

The sample isn't intended to be run on a remote server unless you're using a remote desktop solution. Localhost is relative -- in this case, you're running the sample, which temporarily acts like a server, remotely by the browser locally. Since there is no server running locally you'll get that error.
Either run the sample locally or use something like chrome remote desktop when accessing your remote server.


add shuffle to splitobs

unfortunately we loose inferrability in some cases, but I think it is convenient to have this and inferrability may improve in future julia versions.
I also reduced the verbosity of some docstrings.

Codecov Report

Merging #43 (dd67c2b) into main (b4e57a2) will increase coverage by 0.15%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
+ Coverage   88.91%   89.07%   +0.15%
==========================================
  Files          13       13
  Lines         379      366      -13
==========================================
- Hits          337      326      -11
+ Misses         42       40       -2

Impacted Files
Coverage Δ

src/splitobs.jl
100.00% <100.00%> (ø)

src/obstransform.jl
83.33% <0.00%> (-0.76%)
:arrow_down:

src/utils.jl
96.72% <0.00%> (-0.16%)
:arrow_down:

src/resample.jl
100.00% <0.00%> (ø)

src/Datasets/generators.jl
100.00% <0.00%> (ø)

src/observation.jl
86.36% <0.00%> (+1.58%)
:arrow_up:

src/folds.jl
95.83% <0.00%> (+3.83%)
:arrow_up:

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 b4e57a2...dd67c2b. Read the comment docs.

All @inferred tests pass on julia 1.6, a few of them fail on 1.7 and most of them fail on nightly


Contact Us today section

Hi...I can't found what is the place where configure the links and text for the contact section in the home, I think than would be very handy for grav newbies if these themes and skeletons include an image indicating what is the respective section...
thank so much...

I am not sure what contact section you mentioned is.
The images which are used in a page are stored in the page's folder. The content is in the MD file of the page. For example, you can find the info of the team members and their images here: https://github.com/tranduyhung/grav-skeleton-x-corporation/tree/master/pages/01.home/_team

Hi...sorry if I did'n explain this well,I've uploaded a reference image... the section than I mean is the orange one with the the interrogation symbols inside...
I did a small example about the visual reference than I told you before...thank you so much

Thank you for the info! The footer is used in all the pages so its data is stored in the theme's configuration: https://github.com/tranduyhung/grav-skeleton-x-corporation/blob/master/config/themes/x-corporation.yaml
It can also be stored in a page and retrieved by the theme. Grav is very flexible.

Hi..thank you for the info..this give me a better understand about how organize the code...I think than it's pretty clear, thank you


Grinding doesnt progress

Hello i get the option to grind and the animation starts, but it doesnt progress, it just eats up the batteries until none are left, its probably something i have done wrong, could you please maybe tell me where i should look to try rectify the problem.
i do get this in my RPT file
17:28:07 Scripting function 'exadserver_fnc_clientrequest' is not allowed to be remotely executed
Thanks very much for releasing these add ons :)

@ryan919  That is the issue, you have missed something in the installation process.
Double check that you have added all the code from the description.ext file and also make sure you have added the BE filters for remoetExec


Feature/add gradle scan plugin

@danielgomezrico trying to find out reason of OOM?

Current coverage is 77.73% (diff: 100%)

No coverage report found for master at 1af1cbf.

Powered by Codecov. Last update 1af1cbf...796a8da

@artem-zinnatullin yeah but tests run, where do you see the OOM?

If it would be deterministic, it wouldn't be such a pain in the ass…

@artem-zinnatullin can you build it until it fails? Im trying closing and reopening the PR but it always pass

sure

@artem-zinnatullin I already saw the failing ones, sorry for that, what Im thinking:
Im seeing this https://circleci.com/gh/artem-zinnatullin/qualitymatters/153 and https://circleci.com/gh/artem-zinnatullin/qualitymatters/174 and looks like the same issue but before gradle scan code was in the repo, maybe OOM is not related to gradle scan?

This feature is already on build.sh


Add default dark mode to config.toml

Adds option to config.toml to set default theme:

Options: "dark", "light", "system"
Default: "system"

Relevant Discord Thread
Python portion works. This prints the config selection, and "system" if left un-configured.
from chainlit.config import config

@cl.on_chat_start
async def main():
    print(config.ui.default_theme)

Does preferredTheme start off as null or undefined? If so, I think the priorities should be slightly adjusted to avoid forcing the server-configured theme. Consider using the following order of precedence:
const theme = preferredTheme ?? serverDefaultTheme ?? defaultTheme;

This change should prioritize the user's preferred theme, then the server-configured theme, and finally the default theme. This approach should also maintain existing user preferences and allow new users to change their theme.


Issue with QnA when a grammatical word is used as a question in kb

I created a KB for acronyms, In that one of the acronym is WAS but when ever I input "was" it is returning "No good match found in KB." but that particular acronym is there. Can anyone suggest any solution? Is it because of "was" is a grammatical word? How to fix this?

@samthrusha123  Please help with the link to the document on which the above document feedback request is created.
In case your query is not related to document content, open a new forum thread in Microsoft Q&A or Stack Overflow as it could be better place to get help on your scenario. These forum community members could provide their expert guidance on your scenario based on their experience. Thanks.

@samthrusha123  Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Q: How to setup @vue/test-utils?

I changed my code to use direct-vuex in actions, browser seems to work without errors, but when I run jest tests, test suite failed to run, cause of typing when I mount component with store
src/unique.blocks/SomeForm/SomeForm.spec.ts:30:19 - error TS2769: No overload matches this call.
      Overload 1 of 3, '(component: VueClass<SomeForm>, options?: ThisTypedMountOptions<SomeForm> | undefined): Wrapper<SomeForm>', gave the following error.
        Argument of type '{ store: { readonly state: { modSomeForm: { iamSelect: { value: IOption | null; data: IData; }; }; }; getters: { modSomeForm: { readonly someValue: IOption | null;
readonly someValues: IOption[]; }; }; commit: { ...; }; dispatch: { ...; }; original: { ...; }; }; localVue: VueConstructor<...>; }' is not assignable to parameter of type 'ThisTypedMountOptions<SomeForm>'.
          Type '{ store: { readonly state: { modSomeForm: { iamSelect: { value: IOption | null; data: IData; }; }; }; getters: { modSomeForm: { readonly someValue: IOption | null; readonly someValues: IOption[]; }; }; commit: { ...; }; dispatch: { ...; }; original: { ...; }; }; localVue: VueConstructor<...>; }' is not assignable to type 'MountOptions<SomeForm>'.
            Types of property 'store' are incompatible.
              Type '{ readonly state: { modSomeForm: { iamSelect: { value: IOption | null; data: IData; }; }; }; getters: { modSomeForm: { readonly someValue: IOption | null; readonly someValues: IOption[]; }; }; commit: { ...; }; dispatch: { ...; }; original: { ...; }; }' is missing the following properties from type 'Store<any>': replaceState, subscribe, subscribeAction, watch, and 3 more.
      Overload 2 of 3, '(component: ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>>, options?: ThisTypedMountOptions<...> | undefined): Wrapper<...>', gave the following error.
        Value of type 'typeof SomeForm' has no properties in common with type 'ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>>'. Did you mean to call it?
      Overload 3 of 3, '(component: FunctionalComponentOptions<Record<string, any>, PropsDefinition<Record<string, any>>>, options?: MountOptions<Vue> | undefined): Wrapper<...>', gave the following error.
        Argument of type 'typeof SomeForm' is not assignable to parameter of type 'FunctionalComponentOptions<Record<string, any>, PropsDefinition<Record<string, any>>>'.
          Property 'functional' is missing in type 'typeof SomeForm' but required in type 'FunctionalComponentOptions<Record<string, any>, PropsDefinition<Record<string, any>>>'.

    30          const wrapper = mount(SomeForm, { store, localVue });
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      src/unique.blocks/SomeForm/SomeForm.spec.ts:30:25
        30      const wrapper = mount(SomeForm, { store, localVue });
                                      ~~~~~~~~
        Did you mean to use 'new' with this expression?
      node_modules/vue/types/options.d.ts:132:3
        132   functional: boolean;
              ~~~~~~~~~~
        'functional' is declared here.

What am I doing wrong?

Hi. Maybe localGetterContext and localActionContext could help. If you don't need to access to rootXxx from action contexts, then localActionContext should help avoiding the circular dependency.

@paleo Thank you, I'll try that. And If I can test actions without mocking, I'll closing the issue.

@paleo Yes, it's working.
In actions.ts just changed to
import { localActionContext } from 'direct-vuex';
const getTypedContext = (ctx: any) => localActionContext(ctx, modSomeForm);

instead of
import { moduleActionContext } from '~/VueApp/store';
const getTypedContext = (ctx: any) => moduleActionContext(ctx, modSomeForm);

And I can remove standard actions mocking!

related: https://github.com/paleo/direct-vuex/issues/29#issuecomment-586256376

With node (jest)
const getTypedContext = (ctx: any) => localActionContext(ctx, modSomeForm);
is ok,
but with browser I have error:
Uncaught (in promise) TypeError: localActionContext is not a function
    at getTypedContext (actions.ts:16)
    at actions.ts:27

Indeed, I forgot to export these new functions as properties of default.
Update and retry please.

v 0.10.4 esm bundle is working, but ie11 (with SystemJS) is not:
Unhandled promise rejection TypeError: Object is not support property or method "localActionContext"
You can try my project on last commit

@paleo, default is good but i configured named imports too (e.g. in VueApp.store.ts)

Just update in importmap.system.json. The tools you use are very weird.

@paleo Sorry for wasting your time, thank you very much!
Just changed importmap.system.json in my project & all working is ok.


Ran cargo fix to remove majority of warnings.

I had to branch off HEAD~1 because main HEAD doesn't seem to be building.
This PR just cleans up some of the warnings present in the code base and makes building a little less noisy.

Great. That looks very good to me :)


esp32s2 idf4.3.1 hanging there  (IDFGH-6419)

Hello,
My project is in production phase now, as observed, sometimes, some devices might be hanging there, no execution and no rebooting and also no core dump, just hanging there.

could you please provide some clues?
shall we use another independent watch dog chip? any recommendations?

Peter

@achao1104 Thanks for reporting. Would you please help provide more details as suggested in the issue template? Information like elf, sdk configuration, backtrace, log outputs, commit ID, hardware and etc. would help us debug further. Thanks.

sorry, there is no more info since it is placed in a very high position.
I just wondering that if you have the similar issues (hanging).
------------------ 原始邮件 ------------------
发件人:                                                                                "espressif/esp-idf"                                                                                @.>;
发送时间: 2021年12月14日(星期二) 上午10:50
@.>;
抄送: "Peter<EMAIL_ADDRESS>主题: Re: [espressif/esp-idf] esp32s2 idf4.3.1 hanging there  (IDFGH-6419) (Issue #8078)
@achao1104 Thanks for reporting. Would you please help provide more details as suggested in the issue template? Information like elf, sdk configuration, backtrace, log outputs, commit ID, hardware and etc. would help us debug further. Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Thanks for sharing the updates, would you please help share any details about use scenario, temperature, altitude etc? Thanks.

@achao1104 Thanks for reporting, will close due to short of feedback, feel free to reopen with more details, thanks.


How to use with last google-libphonenumber package

Hey,
I'd like to use a more recent version of the libphonenumber library, but I just can't figure out how to do this.
Is there any way to use the one from https://github.com/ruimarinho/google-libphonenumber ?
How did you build the libphonenumber.js file under dist/ folder ?
Thanks!

I am having the same issue with the newly added Telco in Egypt which couldn't be validated by this version of google-libphonenumber library. Will really appreciate any suggestion

Hi,
I am also getting the same issue. Will really appreciate any suggestion or solutions.
Thanks.

@benjamindulau @Arshadf @akramAtVenD
Hi, The version of google-libphonenumber has been updated to v8.9.9 in the version of v5.0.7 of react-intl-tel-input, which is as of now the latest version of google-libphonenumber.
Closing this issue as the problem has already been resolved.


Windows: possible to have drag overlay stick around

VSCode
Version 1.5.0-insider
Commit 435df14a684df718c5ec523f9d674e63d1662c37
Date 2016-08-22T08:10:56.602Z
Shell 0.37.6
Renderer 49.0.2623.75
Node 5.10.0
OS Version: Windows 7

Steps to Reproduce:

Open Code to a folder with lots of folders and files
Open 2 explorer windows and place them in front of Code leaving the tree view visible between them
Click and drag a folder between the 2 explorer windows and over the tree view.
Drag back and fourth fairly quickly watching Code gray out and return to normal.
Watch for it to not restore back to normal.
Bring Code into focus.
See that you cannot interact with the Code editor window.
The File Menu bar does continue to work.
Drag a file or folder back over Code to restore functionality.

Sometimes it will reproduce very nicely and other times hardly at all. I think the folder/file structure in the tree view makes a difference. I can only do this with folders and not files and the motion has to be fairly fast. As if it misses the mouse leaving the window event or something like that.
[OK]

Thanks much for the steps, I was waiting for steps to reproduce. Unfortunately I am not able to find a good fix to prevent the gray from showing up in this scenario but I pushed a fix so that the workbench removes the overlay when the mouse moves into the workbench. This fixes the issue with having a non-functional workbench around.

I cannot reproduce anymore.


Couldn't find an option to flip image on RS viewer

I have mounted my RS cam on my car and therefore it was captured upside-down.
Is there a way to use the viewer so it'll flip it?
couldn't find it on the menus or looking it online.
I believe it can be recreated flipped using python, but I am worried about data lost.

Hi @omer-re  The RealSense Viewer tool does not have a flip function.
Images can be flipped using program code.  However, all calibration data and other parameters would need to be updated, as advised at https://github.com/IntelRealSense/librealsense/issues/6023

Hi @omer-re Do you require further assistance with this case, please?  Thanks!

I'd be happy if you can push it to the roadmap as a feature request 🤷♂
@MartyG-RealSense

There is already an existing feature request for rotating the depth frame.  The plan is to do so using a post-processing filter.  It is being considered for implementation into an SDK release next year (2025).

Hi @omer-re  Bearing in mind the information in the comment above, do you require further assistance with this case please?  Thanks!

Case closed due to no further comments received.


Bumps dcos-installer-ui package

High Level Description
Minor bug fixes
Related Issues

DCOS-12870
DCOS-9939
DCOS-14984

Checklist for all PR's

[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[ ] Read the DC/OS contributing guidelines
[ ] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

PLEASE FILL IN THE TEMPLATE ABOVE / DO NOT REMOVE ANY SECTIONS ABOVE THIS LINE
Instructions and Review Process
What is the review process and when will my changes land?
All PRs require 2 approvals using github's pull request reviews.
Reviewers should be:

Developers who understand the code being modified.
Developers responsible for code that interacts with or depends on the code being modified.

It is best to proactively ask for 2 reviews by @mentioning the candidate reviewers in the PR comments area. The responsibility is on the developer submitting the PR to follow-up with reviewers and make sure a PR is reviewed in a timely manner. Once a PR has 2 ship-it's, no red reviews, and all tests are green it will be included in the next train.

For the respective 1.9 branch please see #1347

@mesosphere-mergebot label [Ready For Review]

@jfurrow @MatApple please review this one.

@orlandohohmeier I bumped this to include the latest fixes that landed this morning. Unfortunately I could only do it by adding a second commit as I don't have push access to mesosphere/dcos-installer-ui. Can you please squash and review again.

@MatApple squashed and reviewed

@mesosphere-mergebot bump-ee

@orlandohohmeier , @MatApple  - you could take the above action ^ and run bump-ee again.  The enterprise-pr  status  check is a required for this to get merged.

@mesosphere-mergebot bump-ee


Cannot disable automatic bash autocompletion msg?

I appreciate the feature exists but can it be turned off? I glanced at the codebase and didn't see an option.
I'm building an .exe for Windows and it makes no sense to be offering people Bash completion by default. (Ok, maybe for Cygwin, but still, not something I want in the -h output.)

Make sense to hide the relevant help on windows. About disabling - does it make any harm?
It can be done using runtime.GOOS, no need for options.
Want to submit a pr?

It does no harm by existing, but in terms of the -h output, Windows aside, I personally dislike the choice that the msg is forced all the time anyway.
Just autohiding it on Windows would not satisfy me (plus what if it's running in Cygwin? Then it should display because Cygwin can run Bash but runtime.GOOS would still say it's Windows.)
I was tight on time so unfortunately I bailed on this library for another, sorry.

Fixed by #25
Thanks Jan! Great job!


refactor: rename one-word component name

close #23

@levchak0910 Do we need to rename index.vue file in component folder? like src/components/Article/index.vue to src/components/Article/ArticleDetail.vue ?

Let's make the components folder plain (as you have made previously)
I'm not very comfortable with this, but it's best to stick with the official vue style guide.

@levchak0910  I'll leave the rest to you, my friend

@mutoe ok, thanks)


The FLOPS and param on Inception-ResNet-v1?

@davidsandberg
Thans for you share your FaceNet work.
Now I consider  hardwar . In your FaceNet paper, the  FLOPS is 1.6B on NN2. I wants to know the FLOPS and param on Inception-ResNet-v1. Do you have the information about FLOPS and param on Inception-ResNet-v1?
thank you very much!

same question!


Removed Scarf

Removed Scarf
Patched CV Doc Link on CD Dev Cert

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the CODEOWNERS.
What Type of PR is This?

[ ] Issue
[ ] Feature
[x] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[x] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://65b7b186be077f02d4945bb5--harness-developer.netlify.app