🐛 Bug Report: @rjsf/core or doc need an update?

📜 Description
hello i was going through this doc and have created a custom extension
// customExtension.ts
import {scaffolderPlugin} from '@backstage/plugin-scaffolder';
import {createScaffolderFieldExtension} from '@backstage/plugin-scaffolder-react';
import { RewardsOrgField, CurrentUserField, rewardsOwnerValidation } from './RewardsOrgField';

export const OwnerExtension = scaffolderPlugin.provide(
    createScaffolderFieldExtension({
        name: 'OwnerExtension',
        component: RewardsOrgField,
        validation: rewardsOwnerValidation,
    }),
);

I see error like below which looks to be searching for FieldExtensionComponentProps but I have FieldProps. From doc it looks like its FieldProps.
packages/app/src/components/scaffolder/CustomExtensions/CustomExtension.ts:17:9 - error TS2322: Type '({ onChange, rawErrors, formData, }: FieldProps<string>) => React.JSX.Element' is not assignable to type '(props: FieldExtensionComponentProps<any, { [key: string]: string | number | boolean | object | any[] | null; }>) => Element | null'.
  Types of parameters '__0' and 'props' are incompatible.
    Type 'FieldExtensionComponentProps<any, { [key: string]: string | number | boolean | object | any[] | null; }>' is not assignable to type 'FieldProps<string>'.
      The types of 'uiSchema['ui:field']' are incompatible between these types.
        Type 'string | Field<any, RJSFSchema, any> | undefined' is not assignable to type 'string | Field | undefined'.
          Type 'ComponentClass<FieldProps<any, RJSFSchema, any>, any>' is not assignable to type 'string | Field | undefined'.
            Type 'ComponentClass<FieldProps<any, RJSFSchema, any>, any>' is not assignable to type 'ComponentClass<FieldProps<any>, any>'.
              Types of property 'propTypes' are incompatible.
                Type 'WeakValidationMap<FieldProps<any, RJSFSchema, any>> | undefined' is not assignable to type 'WeakValidationMap<FieldProps<any>> | undefined'.
                  Type 'WeakValidationMap<FieldProps<any, RJSFSchema, any>>' is not assignable to type 'WeakValidationMap<FieldProps<any>>'.
                    Types of property 'uiSchema' are incompatible.
                      Type 'Validator<UiSchema<any, RJSFSchema, any> | null | undefined> | undefined' is not assignable to type 'Validator<UiSchema> | undefined'.
                        Type 'Validator<UiSchema<any, RJSFSchema, any> | null | undefined>' is not assignable to type 'Validator<UiSchema>'.
                          Type 'UiSchema<any, RJSFSchema, any> | null | undefined' is not assignable to type 'UiSchema'.
                            Type 'undefined' is not assignable to type 'UiSchema'.

17         component: RewardsOrgField,
           ~~~~~~~~~

I am using @rjsf/core version
yarn info @rjsf/core version                                                                                10:21:53 pm
yarn info v1.22.19
5.17.0
✨  Done in 0.34s.

Any help is appreciated. Thanks
👍 Expected behavior
should work as per doc with @rjsf/core
👎 Actual Behavior with Screenshots

when I run yarn tsc it give the above error
👟 Reproduction steps
try doc
📃 Provide the context for the Bug.
No response
🖥 Your Environment
yarn backstage-cli info                                                                                10:46:25 pm
yarn run v1.22.19
$ /Users/jino.jose/rakuten/git/portal/node_modules/.bin/backstage-cli info
OS:   Darwin 22.6.0 - darwin/arm64
node: v18.19.0
yarn: 1.22.19
cli:  0.25.1 (installed)
backstage:  1.22.2
Dependencies:
@backstage/app-defaults                                          1.4.7
@backstage/backend-app-api                                       0.5.10
@backstage/backend-common                                        0.20.1
@backstage/backend-dev-utils                                     0.1.3
@backstage/backend-openapi-utils                                 0.1.2
@backstage/backend-plugin-api                                    0.6.9
@backstage/backend-tasks                                         0.5.14
@backstage/catalog-client                                        1.5.2
@backstage/catalog-model                                         1.4.3
@backstage/cli-common                                            0.1.13
@backstage/cli-node                                              0.2.2
@backstage/cli                                                   0.25.1
@backstage/config-loader                                         1.6.1
@backstage/config                                                1.1.1
@backstage/core-app-api                                          1.11.3
@backstage/core-compat-api                                       0.1.1
@backstage/core-components                                       0.13.10
@backstage/core-plugin-api                                       1.8.2
@backstage/dev-utils                                             1.0.26
@backstage/errors                                                1.2.3
@backstage/eslint-plugin                                         0.1.4
@backstage/frontend-plugin-api                                   0.5.0
@backstage/integration-aws-node                                  0.1.8
@backstage/integration-react                                     1.1.23
@backstage/integration                                           1.8.0
@backstage/plugin-api-docs                                       0.10.3
@backstage/plugin-app-backend                                    0.3.57
@backstage/plugin-app-node                                       0.1.9
@backstage/plugin-auth-backend-module-atlassian-provider         0.1.1
@backstage/plugin-auth-backend-module-gcp-iap-provider           0.2.3
@backstage/plugin-auth-backend-module-github-provider            0.1.6
@backstage/plugin-auth-backend-module-gitlab-provider            0.1.6
@backstage/plugin-auth-backend-module-google-provider            0.1.6
@backstage/plugin-auth-backend-module-oauth2-provider            0.1.6
@backstage/plugin-auth-backend-module-oauth2-proxy-provider      0.1.1
@backstage/plugin-auth-backend-module-okta-provider              0.0.2
@backstage/plugin-auth-backend                                   0.20.3
@backstage/plugin-auth-node                                      0.4.3
@backstage/plugin-catalog-backend-module-github                  0.4.7
@backstage/plugin-catalog-backend-module-scaffolder-entity-model 0.1.6
@backstage/plugin-catalog-backend                                1.16.2
@backstage/plugin-catalog-common                                 1.0.20
@backstage/plugin-catalog-graph                                  0.3.3
@backstage/plugin-catalog-import                                 0.10.5
@backstage/plugin-catalog-node                                   1.6.1
@backstage/plugin-catalog-react                                  1.9.3
@backstage/plugin-catalog                                        1.16.1
@backstage/plugin-events-node                                    0.2.18
@backstage/plugin-github-actions                                 0.6.10
@backstage/plugin-home-react                                     0.1.7
@backstage/plugin-home                                           0.6.1
@backstage/plugin-kubernetes-backend                             0.14.1
@backstage/plugin-kubernetes-common                              0.7.3
@backstage/plugin-kubernetes-node                                0.1.3
@backstage/plugin-kubernetes-react                               0.2.1
@backstage/plugin-kubernetes                                     0.11.4
@backstage/plugin-org                                            0.6.19
@backstage/plugin-permission-common                              0.7.12
@backstage/plugin-permission-node                                0.7.20
@backstage/plugin-permission-react                               0.4.19
@backstage/plugin-proxy-backend                                  0.4.7
@backstage/plugin-scaffolder-backend-module-azure                0.1.1
@backstage/plugin-scaffolder-backend-module-bitbucket            0.1.1
@backstage/plugin-scaffolder-backend-module-gerrit               0.1.1
@backstage/plugin-scaffolder-backend-module-github               0.1.1
@backstage/plugin-scaffolder-backend-module-gitlab               0.2.12
@backstage/plugin-scaffolder-backend                             1.20.0
@backstage/plugin-scaffolder-common                              1.4.5
@backstage/plugin-scaffolder-node                                0.2.10
@backstage/plugin-scaffolder-react                               1.7.1
@backstage/plugin-scaffolder                                     1.17.1
@backstage/plugin-search-backend-module-catalog                  0.1.13
@backstage/plugin-search-backend-module-pg                       0.5.18
@backstage/plugin-search-backend-module-techdocs                 0.1.13
@backstage/plugin-search-backend-node                            1.2.13
@backstage/plugin-search-backend                                 1.4.9
@backstage/plugin-search-common                                  1.2.10
@backstage/plugin-search-react                                   1.7.5
@backstage/plugin-search                                         1.4.5
@backstage/plugin-tech-radar                                     0.6.12
@backstage/plugin-techdocs-backend                               1.9.2
@backstage/plugin-techdocs-node                                  1.11.1
@backstage/plugin-techdocs-react                                 1.1.15
@backstage/plugin-techdocs                                       1.9.3
@backstage/plugin-user-settings                                  0.8.0
@backstage/release-manifests                                     0.0.11
@backstage/test-utils                                            1.4.7
@backstage/theme                                                 0.5.0
@backstage/types                                                 1.1.1
@backstage/version-bridge                                        1.0.7
✨  Done in 0.76s.
👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
No, but I'm happy to collaborate on a PR with someone else

Hey @rr-jino-jose :wave:
Thanks for the issue report. Looks like we're missing some doc updates here, I think that the type you want to be using is this: https://github.com/backstage/backstage/blob/master/plugins/scaffolder/src/components/fields/SecretInput/SecretInput.tsx#L22
If that works for you would you be happy opening up a PR and fixing the docs? :pray:

hey yeah I will try this.
I also tried this way
import {createScaffolderFieldExtension} from '@backstage/plugin-scaffolder-react';

And it looks to be taking it .. the issue i am facing now is for validation. I am bit confused on what type to use for validation. Let me share the sample code
# customExtension.ts

import {scaffolderPlugin} from '@backstage/plugin-scaffolder';
import {createScaffolderFieldExtension} from '@backstage/plugin-scaffolder-react';
import { RewardsOrgField, CurrentUserField, rewardsOwnerValidation } from './RewardsOrgField';

export const OwnerExtension = scaffolderPlugin.provide(
    createScaffolderFieldExtension({
        name: 'OwnerExtension',
        component: RewardsOrgField,
        validation: rewardsOwnerValidation,
    }),
);

From doc it was like this
# RewardsOrgField
import {FieldProps, FieldValidation} from '@rjsf/core';
export const rewardsOwnerValidation = (
    value: string,
    validation: FieldValidation,
) => {
    if (!value) {
        validation.addError(
            'Must set both organization and team value',
        );
    }
};

wonder if you have any hint on what to use for validation? not sure if this is a good candiadate for replacement of fieldValidation ? import { CustomFieldValidator } from '@backstage/plugin-scaffolder-react';

I think that should be changed to @rjsf/utils 👍
https://github.com/backstage/backstage/blob/master/plugins/scaffolder/src/components/fields/RepoUrlPicker/validation.ts#L17

@benjdlambert I did raised a PR to update the fix worked for me
https://github.com/backstage/backstage/pull/23040

@rr-jino-jose going to close this issue as the PR has been merged :tada: thanks!


Es/pricing and tests

Added in < 3 year old pricing logic. Also added tests to test this stuff!
Things to note:

Right now, the pricing logic doesn't handle dynamic types very well. For example, if you had a null rather than an undefined for the age value, you might get a different result. Hopefully, validating the schema would catch some inconsistency like this, but we should be careful and make sure it does.

Nice tests!


[TASK] Release 1.4.1

What's the task? Please describe.
Action items for releasing v1.4.1
Describe the items of the task (DoD, definition of done) you'd like.

Pre-Release

[x] Run e2e regression for pre-GA milestones (install, upgrade) - @yangchiu
[x] Run security testing of container images for pre-GA milestones - @yangchiu
[x] Verify longhorn chart PR to ensure all artifacts are ready for GA (install, upgrade)  @yangchiu

https://github.com/longhorn/longhorn/tree/v1.4.1-rc2 (longhorn/longhorn)
https://github.com/longhorn/charts/tree/v1.4.x (longhorn/charts)

[x] Run core testing (install, upgrade) for GA build from the previous patch and the last patch of the previous feature release (1.4.0 & 1.3.2). - @roger-ryao

Release

[x] Release longhorn/chart from the release branch to publish to ArtifactHub
[x] Release note

[x] Deprecation note
[x] Upgrade notes including highlighted notes, deprecation, compatible changes, and others impacting the current users

Post-Release

[ ] ~Create a new release branch of manager/ui/tests/engine/longhorn instance-manager/share-manager/backing-image-manager when creating the RC1~
[ ] Update https://github.com/longhorn/longhorn/blob/master/deploy/upgrade_responder_server/chart-values.yaml @PhanLe1010
[x] Add another request for the rancher charts for the next release (1.4.2) @rebeccazzzz

Rancher charts: verify the chart is able to install & upgrade - @khushboo-rancher

[x] rancher/image-mirrors update @weizhe0422 (@PhanLe1010 )

https://github.com/rancher/image-mirror/pull/360

[x] rancher/charts dev-2.6 & 2.7 branches for rancher marketplace @weizhe0422 (@PhanLe1010)

dev-2.6: https://github.com/rancher/charts/pull/2478
dev-2.7: https://github.com/rancher/charts/pull/2479

cc @longhorn/qa

Run e2e regression for pre-GA milestones (install, upgrade):
v1.4.1-rc1:
amd64: 5 failures
arm64: 4 failures
amd64 upgrade: 2 failures
arm64 upgrade: 2 failures

Verify longhorn chart PR to ensure all artifacts are ready for GA verified :
For both longhorn/longhorn v1.4.1-rc1/rc2 and longhorn/chart v1.4.1-rc1/rc2:

Fresh install - Pass
Upgrade from v1.3.2 to v1.4.1-rc1/rc2 - Pass
Upgrade from v1.4.0 to v1.4.1-rc1/rc2 - Pass
After install/upgrade to v1.4.1-rc1/rc2, below test items passed

Create a statefulset and write data
Upgrade to v1.4.1-rc1/rc2
Upgrade engine image
Scale down/up workload
Trigger replica rebuilding
Create system backup
Create volume backup and restored
Verify volume data

Uninstall

Run security testing of container images for pre-GA milestones:
v1.4.1-rc1: 82 HIGH, 0 CRITICAL
v1.4.1-rc2: 70 HIGH, 0 CRITICAL

Run core testing for GA build done:
1.4.1 fresh install amd64: 0 failure
1.4.1 fresh install arm64: 0 failure
1.3.2 upgrade to 1.4.1 amd64: 0 failure
1.3.2 upgrade to 1.4.1 arm64: 1 failure

test_basic.py::test_default_storage_class_syncup

1.4.0 upgrade to 1.4.1 amd64: 2 failures

test_basic.py::test_restore_inc
test_basic.py::test_restore_inc_with_offline_expansion[s3]

1.4.0 upgrade to 1.4.1 arm64: 0 failure
After rerunning all the failed cases, the test results showed passed

Please help with the post tasks after the release below. Thanks.

@weizhe0422 Please help with the Rancher chart. @PhanLe1010 will help with review and @rebeccazzzz will coordinate the release.
@PhanLe1010 Please help update upgrade-responder.
@rebeccazzzz Please help with the Rancher chart release request for 1.4.2 and coordinate 1.4.1 in Rancher 2.7.2.

UPDATE: The PR for Rancher Chart has been created as a draft, I will continue to test it myself first and update the results.

After verifying https://github.com/rancher/charts/pull/2479 on v2.7.1 Rancher
Test items:
Set the automatic upgrade of volume to 0

[x] Perform a fresh installation
[x] Perform an uninstallation
[x] Perform an upgrade from v1.2.6 to v1.4.1
[x] Perform an upgrade from v1.3.2 to v1.4.1
[x] Perform an upgrade from v1.4.0 to v1.4.1

What's automatic upgrade volume? Did u mean concurrent engine upgrade instead? @roger-ryao

1.2.6 to 1.4.1 is not required, because the upgrade path is only 1.3.x/1.4.0 to 1.4.1.
However it's good to know it works.

concurrent engine upgrade instead

Hi @innobead :
Yes, I meant concurrent engine upgrade. I copied Set the automatic upgrade of volume to 0 from the Release Testing for v1.4.1 Confluence page. I think I should update it on our Release Testing Confluence page

Ok. Using the precise words/terminology is important for communication 🙂 .

Verified the PR for Rancher chart.
v2.6 - LGTM - https://github.com/rancher/charts/pull/2478#issuecomment-1470809525
v2.7 - Functionality looked fine, however seeing issue in chart versions. - https://github.com/rancher/charts/pull/2479#issuecomment-1470885897


Indicate CIBox version

We should store somehow CIBox version for VagrantBox and CI server.

This would lead us to upgrade path timeline as well

We've decided to use "System Message" in global configuration.

Add cibox_version=$TAG to jenkinsbox.yml for tracking version


IdToken

Hi,
It is more a clarification than the issue.
Is there a way to get Id token during the runtime? Access token can be fetched from cookie but Id token is required to make calls to the AWS API Gateway with Cognito Authorizer and it also can be used to fetch AWS temporary credentials from the Cognito Identity Pool.
Regards,
Andrii

Hi @Brother-Andy,
I see it is set to the session https://github.com/mblackgeo/flask-cognito-lib/blob/main/src/flask_cognito_lib/decorators.py#L108
So you can access it using session.get("user_info") anywhere you need.

Hi @Brother-Andy,
I see it is set to the session https://github.com/mblackgeo/flask-cognito-lib/blob/main/src/flask_cognito_lib/decorators.py#L108 So you can access it using session.get("user_info") anywhere you need.

Thank you.
I checked that variable following the main example. But frankly I don't know how to convert decoded values into a single JWT Id token string that can then be supplied to API Gateway or Identity Pool. Because none of these values cab be used as an actual token.

I'm not sure why you'd need to recreate the JWT; in fact the ID token is asymmetrically signed so it's not technically possible to sign it without access to Cognito's private keys. The call that the plugin makes to the token endpoint returns the id token (as a JWT) which is validated, then decoded and stored in user_info within the session.
There's also the separate userInfo endpoint which you can call with the access token, assuming openid is one of the token scopes (which I think it is by default), if there's something else you need that's not in the id token.

@lokeoke  yes, API Gateway starts to access_token only after I create Cognito resource server with the custom scope and add that scope URL into the API Gateway method setting for the allowed scopes (more on that Integrate a REST API with an Amazon Cognito user pool .  Where with the id_token I can pass it right away in the header to the API Gateway method with Cognito authorizer.
@mblackgeo  i tried to understand different options how I can work with your lib but continue to use id_token instead of access_token. Right now I'm able to make calls to the AWS API Gateway (thanks for the resource server). But I still need to find a way how to get id_token (this long scary string), since my FrontEnd app must have access to the Identity Pool to exchange JWT to AWS temporary credentials and Cognito Identity pool accepts only id_token.

Yes, the library doesn't support getting the id JWT directly at the moment - you could either look at performing the OAuth flow again yourself, or I'd be happy to review a PR if you want to store the raw access token alongside the access token in addition? Could also form part of @lokeoke's request raised #38 to handle refresh tokens

Since release v1.9.0 (after #45) the ID is now also stored!


How get another wallet versions?

how get wallet_v5_r1  / wallet_v5_beta / wallet_v4_r2  / wallet_v3_r2 - etc wallet versions by some wallet?

You can init a wallet like this line
and then provide your version.


Added EtherDelta Smart Contract — Re-Alphabetized List

Added the as-of-current EtherDelta Smart Contract into list. (0x8d12A197cB00D4747a1fe03395095ce2A5CC6819)
Re-Alphabetized the list of contracts.
General clean-up to maintain consistency.

Manually pulled in because it didn't want to merge. Thank you so much!


Accuracy is much low of conv_bn_merged model

I downloaded your merged_model(.deployprototxt & .caffemodel) and evaluated VOC2007 test set.
the accuracy of is 0.003.
Did you also check out this results?

You download a wrong link. I guess you download pelenet_inet_acc7243.caffemodel, It is a classification model rather than detection model.

Where are the object detection pretrained model files(.prototxt &.caffemodel) ??

@ujsyehao , I downloaded peele_voc which is correct detection model on VOC.


Adding to or rearranging tank on a working boiler permanently breaks the boiler.

As title. All steam is lost and tank valve no longer accepts water.  You have to pull it all down and rebuild in a completely separate chunk for it to work again.

This was a clash with another mod. I know how to resolve this and will as soon as I can make commits.


Certificate::from_pem does an unnecessary copy

Version
0.8.3
Platform
no.
Crates
tonic
Description
This line https://github.com/hyperium/tonic/blob/555a8bcf422b6c32ccda78834ec781f8b6f0e564/tonic/src/transport/tls.rs#L21 does an unnecessary copy of the certificate, which in the case of multi-pem root stores may be large. Suggest adding a from_pem_vec-style function that takes ownership of a Vec<u8> instead.

We could add From<Vec<u8>> I would be ok with merging that

Identity takes two Vecs, so added a separate function for that


Vulnerability roundup 91: busybox-1.31.1-x86_64-unknown-linux-musl: 1 advisory [8.1]

search, files

[ ] CVE-2018-1000500 CVSSv3=8.1 (nixos-20.03, nixos-unstable)

Scanned versions: nixos-20.03: 977000f149b; nixos-unstable: 840c782d507. May contain false positives.
Cc @TethysSvensson

This is a duplicate of #94722.


unable to push my changes

I have tried to add a directory with solar data to test for UCDs .
I work with command line
i have cloned ivoa-std/UCDList
I cannot push my changes  , but git status ask me to do it ...
I find it desperately complex for just a mkdir  to share data between 3 people .

On Mon, May 03, 2021 at 07:53:15AM -0700, Mireille LOUYS wrote:

I have tried to add a directory with solar data to test for UCDs .
I work with command line
i have cloned ivoa-std/UCDList
I cannot push my changes  , but git status ask me to do it ...
I find it desperately complex for just a mkdir  to share data between 3 people .

I suppose you're trying to push to master, right?  That's forbidden
by IVOA policies (which I'm not so hot about either).  You are
allowed to push to a branch, though, so:
git checkout -b descriptive-name
git push --set-upstream origin

should do the trick.
[Full disclosure: I'd have preferred to stay on subversion, too,
where this kind of thing looks a lot simpler; on the other hand, git
can do a lot more, so it's worth getting used to it, perhaps
starting with something like
https://devtutorial.io/what-is-git-object-p1141.html]

Thanks @msdemlei, I didn't spot the reason why it didn't work.
However, I have discussed with @loumir offline, and we have decided to proceed a different way.
Let me close this issue.


Straps run in alphabetical order

Proposed change

Straps run alphabetically right now, we need to be able to order them by importance, regardless of alphabetical order

solved


load_dataset  Error reading

Describe the bug
when I use load_dataset to read a txt file  I find  that the number of the samples is incorrect
Steps to reproduce the bug
fr = open('train.txt','r',encoding='utf-8').readlines()
print(len(fr))  # 1199637

datasets = load_dataset('text', data_files={'train': ['train.txt']}, streaming=False)
print(len(datasets['train']))  # 1199649

I also use command line operation to verify it
$ wc -l train.txt
1199637 train.txt

Expected results
please fix that issue
Environment info

datasets version: 1.8.3
Platform:windows&linux
Python version:3.7
PyArrow version:6.0.1

Hi @kg-nlp, thanks for reporting.
That is weird... I guess we would need some sample data file where this behavior appears to reproduce the bug for further investigation...

ok, I found the reason why that two results are not same.
there is /u2029 in the text, the datasets will split sentence according to the /u2029,but when I use open function will not do that .
so I want to know which function shell do that
thanks


Could not install the extension (version 4.1.1)

Anybody meets the same trouble with me?
I have tried update several build agents with the latest extension, v4.1.1, but seems always fails.
Part of the abnormal information was noticed like the following:
5/17/2022 11:15:45 AM - Beginning to install extension to Visual Studio Enterprise 2022...
5/17/2022 11:15:49 AM - Skipping non-applicable package Microsoft.VisualStudio.Debugger.DbgHelp.Win8: The current OS Version '10.0.17763.0' is not in the supported version range '[6.1,6.3]'.
5/17/2022 11:15:49 AM - Skipping non-applicable package Microsoft.VisualStudio.Debugger.Remote.DbgHelp.Win8: The current OS Version '10.0.17763.0' is not in the supported version range '[6.1,6.3]'.
5/17/2022 11:15:49 AM - Skipping non-applicable package Microsoft.VisualStudio.Debugger.Remote.DbgHelp.Win8: The current OS Version '10.0.17763.0' is not in the supported version range '[6.1,6.3]'.
5/17/2022 11:15:50 AM - Skipping non-applicable package Microsoft.VisualStudio.NuGet.PowershellBindingRedirect: The current OS Version '10.0.17763.0' is not in the supported version range '[6.1,6.2)'.
5/17/2022 11:15:50 AM - Skipping non-applicable package Microsoft.Windows.UniversalCRT.Msu.7: The current OS Version '10.0.17763.0' is not in the supported version range '[6.1,6.2)'.
5/17/2022 11:15:50 AM - Skipping non-applicable package Microsoft.Windows.UniversalCRT.Msu.8: The current OS Version '10.0.17763.0' is not in the supported version range '[6.2,6.3)'.
5/17/2022 11:15:50 AM - Skipping non-applicable package Microsoft.Windows.UniversalCRT.Msu.81: The current OS Version '10.0.17763.0' is not in the supported version range '[6.3,6.4)'.
5/17/2022 11:15:51 AM - Skipping non-applicable package Microsoft.Net.4.8.KB5003306: The current OS Version '10.0.17763.0' is not in the supported version range '[10.0.18362,10.0.18363]'.
5/17/2022 11:15:51 AM - Skipping non-applicable package Microsoft.Net.4.8.KB5003304: The current OS Version '10.0.17763.0' is not in the supported version range '[10.0.19041,10.0.19044]'.
5/17/2022 11:15:51 AM - Skipping non-applicable package Microsoft.Net.4.8.KB5003793: The current OS Version '10.0.17763.0' is not in the supported version range '[10.0.20279,10.0.20348]'.
5/17/2022 11:15:51 AM - Skipping non-applicable package Microsoft.Net.4.8.KB5003792: The current OS Version '10.0.17763.0' is not in the supported version range '10.0.21290'.
5/17/2022 11:15:51 AM - Skipping non-applicable package Microsoft.DiagnosticsHub.KB2882822.Win7: The current OS Version '10.0.17763.0' is not in the supported version range '[6.1,6.2)'.
5/17/2022 11:15:52 AM - Skipping non-applicable package Microsoft.Windows.D3DCompiler.Msu.Win7: The current OS Version '10.0.17763.0' is not in the supported version range '[6.1,6.2)'.
5/17/2022 11:15:52 AM - Skipping non-applicable package Microsoft.Net.4.6.FullRedist: The current OS Version '10.0.17763.0' is not in the supported version range '[6.1.1,6.4)'.
5/17/2022 11:15:52 AM - Skipping non-applicable package Microsoft.Ancm.IIS.Msi: Required conditions are not satisfied: IISCoreWebEngineInstalledx64 And IISW3SvcInstalledx64
5/17/2022 11:15:52 AM - Skipping non-applicable package Microsoft.Ancmv2.IIS.Msi: Required conditions are not satisfied: IISCoreWebEngineInstalledx64 And IISW3SvcInstalledx64
5/17/2022 11:15:53 AM - Skipping non-applicable package Microsoft.Azure.PowerShell: Required conditions are not satisfied: Not Powershell5
5/17/2022 11:15:55 AM - Skipping non-applicable package Microsoft.VisualStudio.OfficeDeveloperTools.WindowsIdentityFoundation.Msu: The current OS Version '10.0.17763.0' is not in the supported version range '(,6.2)'.
5/17/2022 11:16:09 AM - Package 'MultilingualAppToolkit.Microsoft.bc7f20d6-73ff-4f4d-8084-eb773575c8a5,version=4.1.1' failed to install. System.IO.IOException: The file 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\Multilingual App Toolkit\Microsoft.Multilingual.Build.BuildTaskTargets.dll' already exists.
at Microsoft.VisualStudio.Setup.Installer.VsixInstaller.g__install|31_1(PackagePart part, Boolean saveExtensionManifest, <>c__DisplayClass31_0& , <>c__DisplayClass31_1& , <>c__DisplayClass31_2& , <>c__DisplayClass31_3& , <>c__DisplayClass31_4& )
Any suggestion?

Additional information with this issue

VS2022 17.1.0 seems will fails to install this extension. After update to the latest version (17.2.1), I can have it installed on my machine (Win10)
But our build agent uses Windows Server 2019, and I can see even I update the VS2022 to the latest version, I will always get error when installing the tool.
Anything we can do to have the extension installed correctly?

Hi,

Verify that the extension is uninstalled.
Then remove the  'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\Multilingual App Toolkit' directory. (This was causing the System.IO.IOException above)
After these two steps, try installing again.


Do not leak 'clone' as a global variable

Hello,
The clone method was leaked as a global variable, I didn't find any reason about that so I suggest to remove it.
Thanks for your work!

Thanks!


Generate predicates for non-root iteration variables as well

This is to fix issue #2249.

Thanks @derisavi


Speech: Connections stay open in ESTABLISHED or CLOSE_WAIT state

OS: CentOS Linux release 7.2.1511 (Core)
Python 2.7.5
google-cloud-speech Version: 0.27.0
Steps to reproduce:
After using the google speech client do:
lsof -p <pid>
or:
netstat -a
and you'll notice that there are some TCP connections still in ESTABLISHED or CLOSE_WAIT state.

The foreign addresses belong to Google. These connections remain open and, if the client is used a lot, will create problems of the type "IOError: [Errno 24] Too many open files". I'm using this inside a cherrypy server, so it actually makes my server hang after a while.
I noticed that some of the connections close themselves after some minutes, but some of them seem to remain there no matter what. I'm wondering if there is a way to close the connections opened by the speech client after finishing a Recognize call.
Code example
def audio_to_text(self, audio_segment, language_code=None,
                      phrases=None, frame_rate=16000, channels=1):
        if language_code is None:
            language_code = self.DEFAULT_LANGUAGE_CODE

        # Add a second of silence
        silence = pydub.AudioSegment.silent(duration=1000)
        audio_segment = silence + audio_segment

        # Change the frame rate if needed
        if (audio_segment.frame_rate != frame_rate):
            audio_segment = audio_segment.set_frame_rate(frame_rate)

        # Change the number of channels if needed
        if (audio_segment.channels != channels):
            audio_segment = audio_segment.set_channels(channels)

        # Sanitize the phrases array
        if phrases:
            phrases = sanitize_phrases(phrases)

        client = speech.SpeechClient(
            credentials=self.google_cloud_credentials())
        audio = types.RecognitionAudio(content=audio_segment.raw_data)
        config = types.RecognitionConfig(
            encoding=enums.RecognitionConfig.AudioEncoding.LINEAR16,
            sample_rate_hertz=audio_segment.frame_rate,
            language_code=language_code,
            speech_contexts=[speech.types.SpeechContext(phrases=phrases, )],
        )

        try:
            response = client.recognize(config, audio)
        except Exception as e:
            print "failed to do audio_to_text: ", e
            return None

        return self.process_result(response, audio_segment)

Btw, this seems somewhat related to #5523 and similar to this 2-year old issue in stack overflow: https://stackoverflow.com/questions/34794516/gcloud-python-close-connection

Seems this should maybe be moved to gRPC, @tseaver?

This issue was moved to grpc/grpc#15990

hello @theacodes, the problem persists and according to @srini100 on https://github.com/grpc/grpc/issues/15990 it's not on the grpc side of things. Anything we can do about it?

If you're only using one client then I'm not sure. It could be requests?

I'm also experiencing the same issue, which is similar to and reported here:
https://github.com/GoogleCloudPlatform/google-cloud-python/issues/5523
I get it on Windows and on Linux using Python 3.6.5. I am using requests module version '2.18.4' and I recently tried upgrading to '2.19.1'. It would appear as though I'm getting the same issue regardless of version. Regarding grpc, seems like I'm using '1.14.1'.

@theacodes at this point, should I create a docker image with a minimal way to reproduce it and share it with you? or would you suggest stop using the library and start hitting the HTTP endpoint directly (is that even possible?)


minecraft-server: 1.14 -> 1.14.3

Also removes older versions from the top level of nixpkgs. They can
still be accessed via minecraft-server-versions. This allows leaving
all-packages.nix alone in future server bumps.
cc @thoughtpolice @tomberek @costrouc — would very much appreciate your input on this because it's a minor breaking change.

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

I have no problem with this being done. But is this pattern being done for other software? For example postgresql has multiple versions in the all-packages namespace. https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L14635

I don't know of any cases where this is done currently. TBH, I think the best option would probably be to remove the older versions from nixpkgs entirely and only have the latest.

@Infinisil and @calbrecht have any thoughts on removing older versions of minecraft server? My thoughts are that older versions are valuable since diferent server versions are entirely different minecraft worlds

Actually, people can always use older versions by using an older nixpkgs version, which is really unproblematic because of how Nix works. So even though only recently these multiple versions have been introduced, I wouldn't mind only having the latest version in the future.

Great point. Sounds good with me to remove the old versions

This pull request has been mentioned on Nix community. There might be relevant details there:
https://discourse.nixos.org/t/howto-setting-up-a-nixos-minecraft-server-using-the-newest-version-of-minecraft/3445/3


parsable interface split

fixes #737
Generation diff
https://github.com/microsoft/kiota-samples/pull/544
TODO
CSharp

[x] test with additional properties disabled
[x] bump abstractions and serialization

Go

[x] add new interface and update parsable
[x] update refiner for new types
[x] update parse node implementation
[x] check the interface extraction code
[x] test with additional properties disabled

Java

[x] add new interface and update parsable
[x] udpate refienr for new types
[x] update parse node implementation
[x] bump abstractions and serialization
[x] test with additional properties disabled

TypeScript

[x] add new interface and update parsable
[x] update refiner for new types
[x] update parse node implementation
[x] bump abstractions and serialization
[x] test with additional properties disabled

Global

[x] add unit tests for usings/interfaces
[x] update documentation
[x] ping php and python teams
[x] update ruby checklist

@baywet
Just to confirm, do you usually have to update the go references after the merge since you need a ref to the merge commit?


Adding "title" to Github Action

Hi,
thanks for a great tool, it works like a charm. There's one thing missing, though - would you be open to adding title to action.yml? I'd be glad to contribute.

https://github.com/jaywcjlove/markdown-to-html-cli/blob/abb0779083ac75815c357eb1bc06c3ac1bf6960a/action.yml#L20-L23
@kubawerlos  Welcome to contribute, add "title", which can be placed in config
https://github.com/jaywcjlove/markdown-to-html-cli/blob/abb0779083ac75815c357eb1bc06c3ac1bf6960a/packages/action/src/action.ts#L34-L46

@kubawerlos thx! Upgrade v4.1.0


Marty edit led.py

It seems that this PR just edits the defaults in config.py. Please leave all defaults the same when creating PRs. As for the other changes, it seems you just add an int cast to fix a bug? Let me know what exactly this PR aims to solve and I can merge it.

Agree, the config file just changes the settings. As you can see the DMA is in original strandtest is 10, also the display looks better without being inverted... I thought the code or neopixels were faulty.
The int() fixes issue 174... When i installed rip_ws281.git i needed a python3 version to run with my other python3 code. the int() fixes the uint32 error.
https://github.com/scottlawsonbc/audio-reactive-led-strip/issues/174

I understand that it might look better in your setup but at the moment Scott prefers to keep the defaults he has set so I intend to follow that precedent. The int cast can be merged as that should solve the issue you mentioned.


add support for 'double click' to stage / unstage changes

If you displays the changes in file tree mode, the double click has been used to fold/unfold selected node.

Therefore, in order to unify operations on different display modes, Space is used as the hotkey for Stage/Unstage behaviour.


MutltiTouchListener  - have one bug.

The code is mistaken in the 67 lines of MutltiTouchListener
view.animate().translationY(0).translationY(0);
The right way ：
view.animate().translationX(0).translationY(0);

view.animate()._translationY(0).translationY(0);
Here are two .translationY（）
If TEXT is dragged to the left or right, it will not move back to the origin.

I tried that change but it didn't do anything. Can you share me a video/gif for this change effect ?

this is gif for this change effect 。 gif
you can see that .
if i use code1 ,The picture is dragged to the edge of the X axis and can be returned.
view.animate().translationX(0).translationY(0); //code 1
if i use code2 ,The picture is dragged to the edge of the X axis  and cannot be returned.
view.animate().translationY(0).translationY(0); //code 2
PhotoEditor libs  use code2. but the photo  is fill width in demo，you not able to detect this problem.
if you set marginLeft/marginRight into PhotoEditorView. you can got it.


Simplify AbstractChannel sub-classes by handle reading in loop.

Motivation:
At the moment we had to handle the looping in each sub-class, we can move the logic to AbstractChannel and so simplify things.
Modifications:
Move looping logic to AbstractChannel
Result:
Easier handling of reading for AbstractChannel sub-classes

This failed because of https://github.com/netty/netty/pull/12728


Develop

Fixes #382

Coverage decreased (-5.3%) to 90.038% when pulling 8d84d41ed75934b4966a8cbf17e2df5456f3ee48 on develop into 4ef6ac32ee2a35cbcaaff5148cfd455f0e61357d on master.

Coverage decreased (-5.3%) to 90.038% when pulling 8d84d41ed75934b4966a8cbf17e2df5456f3ee48 on develop into 4ef6ac32ee2a35cbcaaff5148cfd455f0e61357d on master.


Add support for multiple bots for a single github repo

Expected: Players can maintain a single repository that holds to code for all of their wombats.
Current: Players are required to create separate repos for each wombat.

This is sort of done. We'll create a new task later when we can look at it again.


Level should be documented as lowercase level

Level should be lowercase

@EdB-MSFT
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off

#sign-off


Ignore file dependencies when parsing requirement files

These can't be updated.

Thanks for having a look @Nishnha!
We skip many other cases in Python and we don't log anything (for example, dependencies without specific requirements, or with weird requirement ranges). I believe as long the user does not expect any Dependabot updates for the Dependency, it's fine to not long anything.
It'd also be a bit non standard to log from Python native helper.
So I'll ship this as is, but let me know if you feel strongly about logging this and we can iterate on this 👍.


Are global color overrides possible?

It looks like this is just downloading the respective config files from the other catpuccin repos, but I'm wondering if it would be possible to do global color overrides?
For example if I wanted a darker background color, it would be nice to be able to do that globally like
catppuccin = {
  enable = true;
  flavor = "mocha";
  color_overrides = {
    mocha = {
      base = "#[some other color code]";
    };
  };
};

no; if you want something like that, nix-colors maybe be a better option. these modules are meant to only support themes directly from our other ports


phase plot is confusing to some folks

I will immediately commit some changes to improve the readability of the figure, including coloring the center of the points and moving the first and final year labels closer to those points

Sorry, I failed to properly merge so that recent commit was from an earlier version of the code. Hopefully it won't be too hard to get sorted out.


#1703 allow azkaban to run in foreground (and possibly replacing the bash process)

Issue: #1703
This is useful when running in docker or other containerized environments:

Running in background is only useful if service is supposed to run directly on a machine (either bare metal or cloud instance). If run in background inside a containerized environment, docker daemon would assume it’s already done and thus killing the container.
Simply running it in foreground might not be enough as docker shuts down containers through signals. If we fork the java process as usual, the signals will be received by shell process rather than java, thus the server itself is unable to perform graceful shutdown and will be forcefully killed at the end.

This PR introduces:

allowing user to run azkaban in foreground (-f or --foreground), in which case we will fork the java process as usual but script logs will go to stdout rather than a file. No pid will be written.
in addition to that, user can specify --no-fork such that the java process will replace the shell one, allowing the server to be directly responding to the control signals.
-v will allow user to see the command that will be run by script for debugging purpose
fix the missing _ in web server log file name to make it consistent with others

Discussion: I generally doubt why we need to split the original single script to external/internal. That doesn’t seem to provide much benefit but increases the complexity to modify the launch scripts. Users should be able to control the behavior of the scripts on their own (i.e. if they want to redirect output to somewhere rather than being forced to do so). With that said, that’s outside of the scope of this PR.
TODO: documentation?

@HappyRay @chengren311 Let me know if this makes sense. 1st PR. Not sure whom should be reviewing this or how it should be labeled.

What I meant was, instead of relying on the users to know that no-fork is
advisable when running in a container, can you detect that the script is
running in a container and accordingly set no-fork as a default? That would
stop users from running without no-fork in a container and seeing
unpredictable shutdown behavior.
On Sat, Apr 7, 2018, 11:03 AM Shawn Xu<EMAIL_ADDRESS>wrote:

@xunnanxu commented on this pull request.
In azkaban-common/src/main/bash/internal/startup-shared.sh
https://github.com/azkaban/azkaban/pull/1715#discussion_r179923743:

+#                          the vars won't be correctly exported to the child process, which is why
+#                          it does not attempt to return the value via stdout.
+# args:                    the name of the var to set final command to, the original command
+#---
+function parse_args {

local target_arg="$1"
shift
local final_command=''
for arg in "$@"
do
case "$arg" in

 -f | --foreground)

 # azkaban will run as a foreground process

 export RUN_IN_FOREGROUND='true'

 ;;

 --no-fork)

Hi @ashahab https://github.com/ashahab, hmm I'm not quite sure if you
are proposing something new here or just repeating my suggestion in this
PR. In fact I think "no fork" should be the default option (see new
discussion in #1669 https://github.com/azkaban/azkaban/pull/1669).
HOWEVER, the current default behavior is to run it in background. I don't
want to change that because users might be relying on that behavior already
so it's not something we should be changing in 3.x. This PR just gives
other users (like me) an option to run stuff differently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/azkaban/azkaban/pull/1715#discussion_r179923743, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAqJPdWWIlhlqORTUGfUSYPpluleQIoAks5tmP9XgaJpZM4TCrYT
.

@ashahab I don't think there's a bullet proof way to detect that. On the other hand, user should know what they want. Containerization is just one of the techniques to get an isolated environment ready quickly. What if they just run it directly in a cloud instance using AMI for example?


How do you get that neat highlightin on terminal input text

And those three colored dots. Is that not part of the colorschemes? Where do I get that? That is so cool.

https://github.com/Mayccoll/Gogh/issues/108


Invariant violation : Native component for "RNCardView" does not exist

I keep on running into the same issue on an android react native project
Invariant Violation: Native component for "RNCardView" does not exist

This error is located at:
    in RCTText (at Text.js:548)
    in Text (at Button.js:137)
    in RCTView (at View.js:71)
    in View (at Button.js:136)
    in TouchableNativeFeedback (at Button.js:128)
    in Button (at FormLogin.js:45)
    in RNCardView (at FormLogin.js:21)
    in RCTView (at View.js:71)
    in View (at FormLogin.js:20)
    in FormLogin (at SceneView.js:17)
    in SceneView (at CardStack.js:374)
    in RCTView (at View.js:71)
    in View (at CardStack.js:373)
    in RCTView (at View.js:71)
    in View (at CardStack.js:372)
    in RCTView (at View.js:71)
    in View (at createAnimatedComponent.js:147)
    in AnimatedComponent (at Card.js:12)
    in Card (at PointerEventsContainer.js:39)
    in Container (at CardStack.js:414)
    in RCTView (at View.js:71)
    in View (at CardStack.js:348)
    in RCTView (at View.js:71)
    in View (at CardStack.js:347)
    in CardStack (at CardStackTransitioner.js:66)
    in RCTView (at View.js:71)
    in View (at Transitioner.js:142)
    in Transitioner (at CardStackTransitioner.js:19)
    in CardStackTransitioner (at StackNavigator.js:38)
    in Unknown (at createNavigator.js:13)
    in Navigator (at createNavigationContainer.js:214)
    in NavigationContainer (at registerRootComponent.js:35)
    in RootErrorBoundary (at registerRootComponent.js:34)
    in ExpoRootComponent (at renderApplication.js:35)
    in RCTView (at View.js:71)
    in View (at AppContainer.js:102)
    in RCTView (at View.js:71)
    in View (at AppContainer.js:122)
    in AppContainer (at renderApplication.js:34)

react-native link react-native-cardview didn't solve the issue.
Installing manually (as in the readme) didn't solve the issue. Rebuilding and restarting the server didn't solve the issue.
I've been able to successfully install other libraries (such as maps or textinputlayout).

I have the same issue, and I have done all steps mentioned  in the installation process,  unfortunately it does not work, I keep on receiving this error.
I have react-native "0.53.0"
react-native-cardview: "^1.1.5"
Project made up with react-native init
Any suggestions ?

I posted an answer on my own Stack Overflow so this issue may be closed.

what if i have created a project with init and still getting this same error?

Did you try with v2.0.2?

hi @ArthurAttout , My react, react-native and react-native-cardview's version which I mentioned below are different.
        "react": "16.9.0",
        "react-native": "0.61.5",
        "react-native-cardview": "^2.0.5",

And also getPackages() code which is in MainApplication.java is different than yours. How can I add new RNCardViewPackage()code ?
protected List<ReactPackage> getPackages() {
    @SuppressWarnings("UnnecessaryLocalVariable")
    new RNCardViewPackage();
    List<ReactPackage> packages = new PackageList(this).getPackages();
    // Packages that cannot be autolinked yet can be added manually here, for example:
    // packages.add(new MyReactNativePackage());
    return packages;
}


Update dotnet-developer-projects.md

@tig Looks like you have a set of deletions. Is that intentional?

No. I think I did the merge incorrectly. I just added the Alexa stuff.
-cek
Sent from my mobile contraption. Expect typos, autocorrect errors, brevity, and dangerous driving.

From: Rich<EMAIL_ADDRESS>Sent: 10/30/2015 10:05 PM
To<EMAIL_ADDRESS>Cc: Charlie Kindel (charlie<EMAIL_ADDRESS>Subject: Re: [dotnet] Update dotnet-developer-projects.md (#248)
@tighttps://github.com/tig Looks like you have a set of deletions. Is that intentional?
—
Reply to this email directly or view it on GitHubhttps://github.com/Microsoft/dotnet/pull/248#issuecomment-152696403.

@tig Can you try again? I naturally cannot accept the commit in its current state.

Yes. Next time im at my PC. Sorry.
-cek
Sent from my mobile contraption. Expect typos, autocorrect errors, brevity, and dangerous driving.

From: Rich<EMAIL_ADDRESS>Sent: 10/31/2015 8:08 AM
To<EMAIL_ADDRESS>Cc: Charlie Kindel (charlie<EMAIL_ADDRESS>Subject: Re: [dotnet] Update dotnet-developer-projects.md (#248)
@tighttps://github.com/tig Can you try again? I naturally cannot accept the commit in its current state.
—
Reply to this email directly or view it on GitHubhttps://github.com/Microsoft/dotnet/pull/248#issuecomment-152741570.

Closing due to my screw up.


🐛 [MyElectricalData] Add-on version 0.9.2-3 fails to start

Description
The addon fails to start when config.yaml contains:
offpeak_hours_0: '3H00-8H00;13H30-16H30'
offpeak_hours_1: '3H00-8H00;13H30-16H30'
etc...

I guess it is caused by the semicolon, cf logs.
Reverting to 0.9.2 works fine.
0.9.2-3 can start if the off-peak hours settings are removed.
Reproduction steps
1. Go to 'Settings, Add-ons, MyElectricalData'
2. Click on 'Start'
3. Scroll down to last log line
4. See error

Addon Logs
/.//etc/cont-init.d/99-run.sh: line 16: 13H30-16H30: command not found

Architecture
aarch64
OS
No response

I've tried to push a new version please let me know how it goes

"... config file has an invalid yaml format. Please check the file in /config/myelectricaldata/config.yaml. Errors list above."
still broken on 0.9.2-5

Hello,Same problem on my side.
try to comment offpeak_hour : same result.

same for me, still not fixed with 0.9.2-5

Thanks, I'll check today

Same problem for me : <IP_ADDRESS> is not working
I upgrade to <IP_ADDRESS> and it's ok but after last uptdate (today) to <IP_ADDRESS> the problem apear again so
I downgrade to <IP_ADDRESS> and it's ok again

Should be good with -6


Spawn points hours are displayed incorrectly

Probably not taking into account a D+1 time.

Transferring to Pokemap


Issues with replicas and scaling

Hey guys, I'm trying to get Olric to work in AWS environment and running into some pretty substantial issues. Because of our deployment process we deploy-one then deploy-all. The first node loads a large amount of data, then a second node will come up and successfully attach (using the consul plugin). I can query the data from the new node that is set as the backup and it successfully gets the data, although it seems to emit hundreds of thousands of errors [ERROR] Failed to call get on a replica owner: <ip>: key not found.
Another problem that happens is when I scale up the instances (e.g. 2 instances to 4), I basically get catastrophic errors that kill the service. It always seems to happen the same way.
First error is operation timeout from creating a new DMap. The app seems to restart and be successful the next time.
Second, gob won't register the type gob: name not registered for interface: "*models.Product".

I have it set up with 120 partitions, replica count of 2.
I'm also getting write quorum not reached errors with a quorum count of 1

Sorry, probably missed some useful information:
go v1.15
olric v0.2.0
olric-consul-plugin v0.0.0-20200812193932-b7249b593406

Olric v0.2.0 is an outdated version. You should use v0.3.3. It includes many new features and bug fixes.

I have it set up with 120 partitions, replica count of 2.

Not quite important but partition number should be a prime number. Here is some math: https://medium.com/swlh/why-should-the-length-of-your-hash-table-be-a-prime-number-760ec65a75d1

[ERROR] Failed to call get on a replica owner: : key not found

That's normal. If you don't want to see these kind of messages, you feel free to decrease verbosity level by configuration. Here is the default config:
logging:
  verbosity: 6
  level: "DEBUG"
  output: "stderr"

verbosity: 3 is good enough for most users.
Would you like to explain your deployment scenario? Embedded-member or server-client?

@buraksezer Sorry, for the late reply. Deadlines! Doh, I thought I was using v0.3! We are using it as an embedded-member as we have to have low latency, high availability API, so we wanted the data to be on RAM in easy access. I can try it out with the lower logging and verbosity. I will try out and read up on the why your partitions should be a prime number.

@buraksezer Sorry, for the late reply. Deadlines! Doh, I thought I was using v0.3! We are using it as an embedded-member as we have to have low latency, high availability API, so we wanted the data to be on RAM in easy access. I can try it out with the lower logging and verbosity. I will try out and read up on the why your partitions should be a prime number.

I'm closing this due to lack of the response. Please feel free to open this issue again, if you still have problems.


Error with numerical strings

If the string passed into "encode()" is a number, there's an error occurring on line no. 193.
TypeError: string.replace is not a function
string = string.replace(regexEscape, hexEscape);

If the string passed into "encode()" is a number, there's an error occurring on line no. 193.

If it’s a number then how is it a string?
he.encode(string) expects an actual string, nothing else. If you do need to pass a number to he.encode() (I don’t see why you would ever need to do this, but hey) then use something like he.encode(String(number)).

I'm dealing with "strings" that were coming from external sources (user-entered), which I need to preserve as they are, except for the encoding.

If you do need to pass a number to he.encode() (I don’t see why you would ever need to do this, but hey) then use something like he.encode(String(number)).

I did do that to make sure that even if it is a number, it will be passed in to he as a string, however, I think internally to he it's again getting converted to a number somewhere.
Anyway, I have now changed my calling code to check whether the string received is not a number (isNaN) before passing it on to he. I just think that he should deal with it gracefully and not crash with an error, if it gets input that it doesn't expect considering that it's main application is sanitizing input.
Thanks for your time and work on this great plugin.

I did do that to make sure that even if it is a number, it will be passed in to he as a string, however, I think internally to he it's again getting converted to a number somewhere.

That is not the case.
> he.encode(1) // should throw, since it expects a string
TypeError: undefined is not a function
    at Object.encode (~/projects/he/he.js:192:20)
    at repl:1:4
    at REPLServer.defaultEval (repl.js:116:27)
    at bound (domain.js:254:14)
    at REPLServer.runBound [as eval] (domain.js:267:12)
    at REPLServer.<anonymous> (repl.js:269:12)
    at emitOne (events.js:77:13)
    at REPLServer.emit (events.js:166:7)
    at REPLServer.Interface._onLine (readline.js:195:10)
    at REPLServer.Interface._line (readline.js:534:8)
> he.encode('1') // does not throw
'1'

First, thanks for this library. Great work.
On a generic code, we would have to add "String(something)" to everything, because we don't know what's coming. Seems unnecessary, no?
What about just adding a check on ".encode(x)" like "if not string, return x"?
Thanks

You can handle that in your own code. I’m not going to make all uses of he slower (by adding the additional check everywhere) just because you don’t feel like type-checking your parameters.


Requires "pip install qtstylish" or else the import may fail

PLEASE FILL OUT THE TEMPLATE
Describe the bug
As per subject.
I used this on 2021-07-08:
Under Miniconda + Python 3.8, I used this:
pip install git+https://github.com/adamerose/pandasgui.git

However, in my Python script, when I used from pandasgui import show, it could not import due to missing qtstylish.
The fix was:
pip install qtstylish

Environment
OS: Windows 10
Python: 3.8 (Miniconda)
IDE: PyCharm
Package versions
TO GET ALL RELEVANT PACKAGE VERSIONS, RUN THIS COMMAND IN BASH AND PASTE THE OUTPUT
pip freeze | grep -i "pyqt|pandasgui|plotly|ipython|jupyter|notebook"
EXAMPLE OUTPUT

Note: this is after I fixed the issue with pip install qtstylish.

(py38) S:\>pip freeze | grep -i "pyqt\|pandasgui\|plotly\|ipython\|jupyter\|notebook"
ipython @ file:///D:/bld/ipython_1625028461559/work
ipython-genutils==0.2.0
jupyter-client @ file:///home/conda/feedstock_root/build_artifacts/jupyter_client_1615693636836/work
jupyter-core @ file:///D:/bld/jupyter_core_1612125450516/work
jupyter-server @ file:///home/conda/feedstock_root/build_artifacts/jupyter_server_1624558637735/work
jupyterlab @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_1621368934875/work
jupyterlab-pygments @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_pygments_1601375948261/work
jupyterlab-server @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_server_1622556871679/work
notebook @ file:///home/conda/feedstock_root/build_artifacts/notebook_1621259862661/work
pandasgui @ git+https://github.com/adamerose/pandasgui.git@93487a8c1112f0fe7df4853996c1ae92459fa7be
plotly @ file:///home/conda/feedstock_root/build_artifacts/plotly_1624301569624/work
PyQt5==5.15.4
PyQt5-Qt5==5.15.2
PyQt5-sip==12.9.0
PyQtWebEngine==5.15.4
PyQtWebEngine-Qt5==5.15.2

I faced the same issue.  I could not import show because modules were missing for win32api and qtstylish.
I had to pip install pypiwin32 and pip install qtstylish
It was a long journey for me to get pandasGUI installed, probably because I'm on an older windows 8.1 machine.
To make a long story short, other requirements:

64-bit version of python
I had to install the correct C++ distribution and components for my Windows machine. (Visual Studio 2017 Installer so that I could install Windows 8.1 SDK and others)

I am very impressed by this project, and surprised that this is so new. No alternative like it from what I can see.

Same here.
python -m pandasgui.gui
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details
    __import__(pkg_name)
  File "/tmp/venv/lib/python3.8/site-packages/pandasgui/__init__.py", line 15, in <module>
    from pandasgui.gui import show
  File "/tmp/venv/lib/python3.8/site-packages/pandasgui/gui.py", line 20, in <module>
    import qtstylish
ModuleNotFoundError: No module named 'qtstylish'

fixed it by
 pip install qtstylish
Better add to the requirements :)

Same here, installed with command: pip install pandasgui, trying to execute gives error:
from pandasgui import show
from pandasgui.gui import show
from pandasgui.widgets.navigator import Navigator
import win32api
ERROR: Could not find a version that satisfies the requirement win32api (from versions: none)
ERROR: No matching distribution found for win32api

The above error was solved using the command: pip install pywin32, then  trying to execute gives another error:
from pandasgui.gui import show
import qtstylish

The above error was solved using the command: pip install qtstylish

Should be fixed in 0.2.13


NET/FRR: Added OSPFv3 firewall rules for floating ruleset

Added OSPFv3 firewall rule generation for:

OSPFv3 IPv6 Multicasts

Router Multicasts fe02::5
Designated Router Multicasts fe02::6

OSPFv3 IPv6 Unicast

Link-local network fe80::0/10
Self

It could probably be optimized by:

Rolling up the interfaces as an array of strings, but this needs research
Setting direction as 'both' but not seen in the current code base. Again, research

It was tested on 23.7 using Multicast on Interface with neighbors.

I tried point-to-point and saw these log entries:

So I based the OSPFv3 Unicast rules on these log results. It seems that OSPFv3 always uses local link network addresses.

@mimugmail I'm not against adding more automatic rules, but it might make sense to add a toggle on the Routing->General page to be able to disable these. What do you think?

Both makes sense to me, I remember one guy here was a bit picky cause of too broad auto rules. Would be a good alternative so everyone can use own rules if needed

Let me combine both in that case, merge the new rules and add a toggle for people wanting to craft their own.

@AdSchellevis Would you then do the same for OSPFv2?

@billgertz that would be the idea, yes, one toggle, default enabled which offers the option to prevent the rules of you don't want them.

@AdSchellevis Good idea.  That then makes the change advocated by rudiservo narrowing autogenerated ruleset to the interfaces moot, maybe? For better OSPF security auth should be used. Are you looking for someone to work on the OSPFv3 authentication trailer supported by FRR/QUAGGA?
So I'm willing to make the code more efficient by rolling the rules into a single set rather than one set for each interface. Are the interfaces an array of string? Can we say 'both' for direction rather than stand up a rule for each direction?
Sorry about the book, here.

@billgertz I've merged your code and the optional firewall rules in https://github.com/opnsense/plugins/pull/3537, could you double check before I merge it?

Are you looking for someone to work on the OSPFv3 authentication trailer supported by FRR/QUAGGA?

I'm not sure what it needs, haven't looked at it, if it's a larger change it might be good to discuss the scope before committing code, if it's easy to review, I don't mind spending some time on FRR from time to time.

@AdSchellevis

@billgertz I've merged your code and the optional firewall rules in #3537, could you double check before I merge it?

Sure, need to review the out direction - concerned there may be a mistake in the original OSPF and my copied logic for OSPFv3. The broadcasts are always to the Multicast address never from a Multicast address.

@AdSchellevis Um, in my proposed change:
                $fw->registerFilterRule(
                     1,
                     array(
 			'interface'      => $nterface->interfacename,
                         'ipprotocol'     => 'inet6',
                         'protocol'       => 'ospf',
                         'statetype'      => 'keep',
                         'label'          => 'Pass OSPF6 MULTICAST (autogenerated)',
                         'from'           => 'ff02::5/128',
                         'to'             => 'fe80::0/10',
                         'direction'      => 'out',
                         'type'           => 'pass',
                         'disablereplyto' => 1,
                         'quick'          => true
                     ),
                     null
                 );
                 $fw->registerFilterRule(
                     1,
                     array(
 			'interface'      => $nterface->interfacename,
                         'ipprotocol'     => 'inet6',
                         'protocol'       => 'ospf',
                         'statetype'      => 'keep',
                         'label'          => 'Pass OSPF6 MULTICAST DR (autogenerated)',
                         'from'           => 'ff02::6/128',
                         'to'             => 'fe80::0/10',
                         'direction'      => 'out',
                         'type'           => 'pass',
                         'disablereplyto' => 1,
                         'quick'          => true
                     ),
                     null
                 );

I believe the from and to are switched around. That is the intent is to allow an out bound multicast from the firewall itself. In that case the  from can be (self). I'm going to give this a test. If this is right then the OSPF broadcast out rules are probably fubar'ed as well. Please check my logic.

By the way the Multicast OSPF rule has the similar problem:
                $fw->registerFilterRule(
                    1,
                    array(
                        'ipprotocol'     => 'inet',
                        'protocol'       => 'ospf',
                        'statetype'      => 'keep',
                        'descr'          => 'Pass OSPF (autogenerated)',
                        'from'           => '<IP_ADDRESS>/24', #wrong - should be '(self)'
                        'to'             => $network->ipaddr . '/' . $network->netmask, #wrong - should be '<IP_ADDRESS>/24'
                        'direction'      => 'out',
                        'type'           => 'pass',
                        'disablereplyto' => 1,
                        'quick'          => true
                    ),
                    null
                );

If my logic holds, but I need a double check.

@billgertz ok, there we go, this should be all https://github.com/opnsense/plugins/commit/69499ffc80c2a8819000bb3feca826065925d388

@AdSchellevis Upgraded to OPNsense 23.7.3-amd64 and can confirm both the OSPFv2 (IPv4) and OSPFv3 (IPv6) firewall rule autogeneration is working fine. Thanks again for working on this PR.

@billgertz thanks for confirming and spending your time on this!


How can I get my Referral code and Referral id. If more people is in same name

Discussed in https://github.com/orgs/GSSoC24/discussions/722

Originally posted by MastanSayyad September 17, 2024
Hi everyone! 👋
Welcome to the GSSoC 24 Extended Program! Github discussion
Register Here: Click
If you’re facing any issues with the registration process or have any questions regarding it, feel free to drop your queries in this discussion thread. Our core team will be monitoring this space regularly and will assist you with any problems or doubts you might have.
How to ask your query:

Briefly describe the issue you're facing.
Mention any steps you’ve already taken to try and resolve it.
Provide any relevant screenshots or details if possible.

We’re here to help! Let's work together to get things sorted as smoothly as possible. 🎉
Happy Coding! and keep open sourcing

MUST READ BEFORE ASKING QUERIES:

The referral code field is optional, it is for those who will apply for gssoc extd roles through CAs referred registration links or codes!
Last date for registrations is 25th Sep 2024
Selection emails will be rolled out from 20th Sep 2024 (Tentatively)
Coding Period will start from 1st OCT to 30th OCT
We will have an introductory session soon after all registration is closed and people onboarding!
BE PATIENT AND HAVE AN EYE ON NEWSLETTERS AND LINKEDIN HANDLE

THANK YOU!!
— GSSoC 24 Extended Core Team

@Coding-4All-Shruti If you have more than one name with refrals code then choose any one and use it till the end of the programm


Re-calculation of "width" on progressbar causes minor glitches

I've been playing around with your component, and so far it has worked great. One thing I've noticed is that when the slider has been running for a while, it seems that some calculation hiccup happens, and some graphical glitches happen. Nothing major, and maybe you've already noticed them.

From the tests I've tried, it seems to happen, because you are using "width" to tell the progressbar, how wide it should be. Maybe "transform" would be better?
I have attached some screenshots, for you to see.
I don't have a solution as of now, but I'm trying to see if I can't come up with something,

This looks like a problem with the browser rendering.

I suppose it could be the fault of the rendering engine, but I gather you're not going to look further into this?

I have not encountered you this problem. I do not know what caused it.
What do you mean by transform to replace width, I have no idea. Maybe you can try modifying the source code to solve the problem. If I can, then I update or you submit pr.

Sure, I'll look into it when I get some spare time. Thanks for taking your time to reply to the issue 😄

I got aorund it calling $refs.mySlider.refresh() inside a setTimeout()


Banking-System in C

Is your feature request related to a problem? Please describe.
Many beginners in programming start with C, which is a fundamental and widely used programming language. However, there is a lack of practical and real-world project examples specifically tailored for C learners, leaving them without appropriate resources to apply their knowledge and skills.
Describe the solution you'd like
I suggest creating and providing a simple banking system project implemented in C. This project should cover basic concepts such as data structures, file handling, conditional statements, loops, and functions. It should be well-commented and structured, making it easy for beginners to understand and learn from. Additionally, the project should include clear explanations of the code logic and step-by-step instructions, guiding learners through the implementation process. Providing such a resource will enable beginners to apply their theoretical knowledge in a practical context, enhancing their understanding of programming concepts.
Describe alternatives you've considered
Online Tutorials: While there are online tutorials available, a standalone, well-documented project consolidates learning into a practical, hands-on experience.
Learning Platforms: Some platforms offer interactive coding challenges, but a comprehensive project provides a holistic view of programming concepts.
Additional context
Adding a simple banking system project in C will cater to the needs of beginners and enhance their programming skills. It will serve as a valuable resource for self-learners and educators alike, fostering a better understanding of C programming concepts through real-world application.

@Ishaan28malik could you please assign it to me and label hacktoberfest

Hey i would like to work on this given issue ,I have good knowledge in c programming language, I have  also done some project based on it , So please assign me this task under hacktoberfest23

Please assign it to me and label hacktoberfest2023.

Please assign me this task

hi please assign me this issue!!


SyntaxError: Unexpected token: < (line 132).

Hello,
When I try to get the data with something like =CMC("ETH/USD")
I get this error: SyntaxError: Unexpected token: < (line 132).

+1

I finally tracked down the source of this error.

I finally tracked down the source of this error.
TLDR: Coinmarketcap.com is blocking requests from google apps.
Everybody using this code (or any google docs app like this, including the cryptofinance app) is requesting data from coinmarketcap from one or a small number of shared IPs (e.g. <IP_ADDRESS>). Since the script is running server side, all the requests come from the google cloud servers, not from your local machine. Coinmarketcap.com uses a service called "Cloudflare" to block specific IP addresses, presumably from people who are spamming the API. Since so many people are trying to ping Coinmarketcap using google app scripts like this (and not everyone is being responsible in their use and number of requests), their service has blocked them all. It's not a universal block, it's a limit, so you might get lucky from time to time and get a request through.
Unfortunately, I don't have a fix. I'd love to find a workaround.
Below is the full html code that is returned instead of the json data that is expected by the script. You can see there are a bunch of "<" characters that are not what is expected, which explains the (uninformative) error "SyntaxError: Unexpected token: < (line 132)"
 <!DOCTYPE html>

<title>Access denied | api.coinmarketcap.com used Cloudflare to restrict access</title>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" type="text/css" media="screen,projection" />

Please enable cookies.

          Error
          1015
          Ray ID: 48b3928eaa2f5849 • 2018-12-18 18:08:02 UTC

You are being rate limited

What happened?

The owner of this website (api.coinmarketcap.com) has banned you temporarily from accessing this website.

    Cloudflare Ray ID: 48b3928eaa2f5849
    •
    Your IP: <IP_ADDRESS>
    •
    Performance & security by Cloudflare

Thanks all. This renders the code in this repo useless for the moment, doesn't it?


[CB-8803] Properly fixing the intermittent cleanup issue.

LGTM
Successfully run medic build several times


Sanitize decrypt-propertysource

As discussed in https://github.com/spring-projects/spring-boot/pull/2922 it would be good to mask all properties from the decrypt-propertysource and not only those matching a specific pattern

See https://github.com/spring-projects/spring-boot/issues/6587 too


Instantiating SamlStrategy causes object is not a function error

Hi, I'm trying to use the SamlStrategy in an app and noticed that the app throws an error any time I try to instantiate the SamlStrategy regardless of input options. I made an extremely minimalist example app to show this behavior: https://github.com/CamHenlin/broken-passport-saml-example

You want your SamlStrategy variable to be configured as:
  , SamlStrategy = require('passport-saml').Strategy;
I'll update the doc page to be more explict about that.  If you are looking for examples that show usage, the self-tests are probably a helpful place to start and you could have seen this usage there.


Strip off preceding '.' from layer header names if present.

Summary
This PR fixes a bug where jam create-stack would panic with a nil pointer on some images (e.g. VMware Photon OS). These images have file headers in the format ./etc/... rather than /etc/... so we have to strip off the preceding ..
Use Cases
Support more Operating Systems for stack creation.
Checklist

[x] I have viewed, signed, and submitted the Contributor License Agreement.
[ ] I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
[ ] I have added an integration test, if necessary.
[x] I have reviewed the styleguide for guidance on my code quality.
[x] I'm happy with the commit history on this PR (I have rebased/squashed as needed).

I'm converting this back to draft while I add a unit test. Initially I didn't think it was possible but I found docker images for Photon OS at https://hub.docker.com/_/photon

Ok I'm marking this ready for review again because I can't reproduce this behavior with OSS version of Photon OS - only a proprietary version of Photon, which we can't test against in the OSS.
I feel comfortable with this landing without a test, given that it is a small change and it is backwards-compatible with all existing images.

Yea considering its a backwards compatible change, I'm fine with proceeding without a test


test: restore Function#length property in wrapped mocha test functions when using continuation-local-storage with node 8

See: #550

Why was #550 closed? It had a LGTM. What has changed since #550?

@ofrobots CircleCI had trouble with #550 because I closed and re-opened that PR. So this PR is the same changes on a different branch. I'll merge this when the CI passes.


Argument Null Exception on startup

When starting the table in the editor with an MpfGameLogicEngine component containing a valid machine description attached, the OnInit function in MpfGameLogicEngine.cs throws the following exception:
ArgumentNullException: Value cannot be null.
Parameter name: key
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <51fded79cd284d4d911c5949aff4cb21>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].set_Item (TKey key, TValue value) (at <51fded79cd284d4d911c5949aff4cb21>:0)
VisualPinball.Engine.Mpf.Unity.MpfGamelogicEngine.OnInit (VisualPinball.Unity.Player player, VisualPinball.Unity.TableApi tableApi, VisualPinball.Unity.BallManager ballManager) (at C:/repos/futurebox/reference_and_learning/VisualPinball.Engine.Mpf/VisualPinball.Engine.Mpf.Unity/Runtime/MpfGamelogicEngine.cs:73)
VisualPinball.Unity.Player.Start () (at ./Library/PackageCache/org.visualpinball.engine.unity@0.0.1-preview.130/VisualPinball.Unity/VisualPinball.Unity/Game/Player.cs:177)

The Id property of all switches, coils and lights, is set to null when the game is started. This is also visible in the Inspector.
Before clicking play:

After clicking play:

I am using:

Windows 11 Home 23H2
Unity 2022.3.35f1
VisualPinball.Engine.Mpf 0.0.1-preview.16
Python 3.9.13
Mission Pinball Framework v0.57.1

I tried to track down what causes the ids to be set to null by debugging, but I can't figure it out. Nothing seems to change the ids or replace the switches in the array on the MPF game logic engine, they're just null as soon as the game starts

I found the problem. This commit in the main VPE repository changed the access specifier of the switch, coil and lamp IDs from public to private. This causes Unity to no longer serialize their values. From the Unity documentation:

To use field serialization you must ensure that the field:

Is public, or has a SerializeField attribute

I can think of the following options to fix this:

Option
Downside

Make the properties public again
Violates encapsulation principle, A (bad) design decision made because of an implementation detail of Unity in a project that should not be dependent on it

Add the [SerializeField] attribute to the properties
Introduces a dependency on Unity to the core part of VPE that is not supposed to have third-party dependencies

Make the properties protected, create new subclasses of GameLogicEngineCoil, GameLogicEngineSwitch and GameLogicEngineLamp in the VisualPinball.Unity project and implement Unity's ISerializationCallbackReceiver interface to serialize the protected properties of their respective parent classes
Maintenance burden, increased complexity

I think the downsides of the last option are the least severe.
On top of this, when the machine description is updated via the inspector, the Unity Editor must be notified of the changes for them to be saved with the scene.
I have created pull request #20 in this repository and this pull request in the main VPE repository to implement the proposed changes and solve this issue.

Thanks for this very detailed report and the PR. Getting slowly back into VPE, and your reflections make sense.


Folders looks not good

files look good, unlike folders

That seems like an issue with the shell, not the Terminal theme. On Linux, you would fix this by changing LS_COLORS, e.g. using vivid.

Yes, colors of commands, errors, folders etc, require to configure the shell, not the terminal. For Powershell, you can check https://github.com/Davlind/PSColor which will allow you to define exactly how you want them to appear.

Is it possible to use https://github.com/catppuccin/powershell/ for this purpose? I did not quite understand the instructions given there.


Obtain key of a certain position

Hi all!
I am using hiver version 2.0.4 an I am wonder how do I get the index of a certain element. Actually, I retrieve data from a box and afer that I filtered it (using .where ). Since I am building with the filtered data a ListView.builder, I am not able to delete or update any data in the box since my index inside the ListView is different than the one in the box.
Is there any way to retrieve the key in the box?

Hive stores data in a key-value pair. you can do
var key = curr.keys.firstWhere(     (k) => curr[k] == 'Value', orElse: () => null);


Book type fails in 0.123.0

What version of Hugo are you using (hugo version)?

$ hugo version
hugo version: 0.123.0

Does this issue reproduce with the latest release?
The book type no longer builds when I compare the cache files in 0.123.0 there is just a book.md and no folder as in the 0.122.0 version
ERROR render of "page" failed: "/Users/#/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20230420205746-951c7b6f709d/layouts/_default/baseof.html:11:403": execute of template failed: template: book/single.html:11:403: executing "book/single.html" at <.File.UniqueID>: can't evaluate field File in type *source.File
ERROR render of "home" failed: "/Users/#/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20230420205746-951c7b6f709d/layouts/_default/baseof.html:11:403": execute of template failed: template: index.html:11:403: executing "index.html" at <.File.UniqueID>: can't evaluate field File in type *source.File
Total in 303 ms
Error: error building site: render: failed to render pages: render of "section" failed: "/Users/#/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20230420205746-951c7b6f709d/layouts/_default/baseof.html:11:403": execute of template failed: template: book/list.html:11:403: executing "book/list.html" at <.File.UniqueID>: can't evaluate field File in type *source.File
Using a very simple book layout based on the documentation:
---
title: 🧠 Learn Generative Deep Learning
linkTitle: Generative DL
summary: CSCI 4800 Generative Deep Learning
date: '2021-01-17'
type: book
tags:
  - current
---

{{< figure src="featured.jpg" >}}

{{< toc hide_on="xl" >}}

# CSCI 4800: Generative Deep Learning
## Course Syllabus
### Fall, 2024

I hate to pass the buck, but...
You are more likely to receive an accurate and timely response from the Hugo Blox team:
https://github.com/HugoBlox/hugo-blox-builder/discussions
They also have an active Discord channel:
https://discord.com/invite/z8wNYzb
Wowchemy isn't a thing anymore. They rebranded to HugoBlox, and I have no idea how I would track down the source. For their new stuff they list Hugo version compatibility; you might ask them about compatibility.

Found this for anyone else that runs into this:
https://docs.hugoblox.com/reference/update/
https://discord.com/channels/722225264733716590/1175124420315058176/1175161625179852982


[KYUUBI #6251] Improve kyuubi-beeline help message

:mag: Description
Issue References 🔗

This pull request fixes #6251
Describe Your Solution 🔧
As kyuubi-beeline is derived from Hive beeline, I haven't made extensive modifications to its help message, only adjusting some formatting to enhance its appearance. Below are the specific changes:

Replace jdbc:hive2// with jdbc:kyuubi//.
Replace beeline with kyuubi-beeline.
Capitalize the first letter.
If the comment for a parameter spans multiple lines, add an additional \n at the end of the comment to separate it from the following line.
Append the help information for --python-mode to the front of --help.
Add some examples.
Improved letter indentation.

Here is the whole help message:
$ ./bin/kyuubi-beeline --help
Usage: kyuubi-beeline <options>.

Options:
  -u <database url>               The JDBC URL to connect to.
  -c <named url>                  The named JDBC URL to connect to,
                                  which should be present in beeline-site.xml
                                  as the value of beeline.kyuubi.jdbc.url.<namedUrl>.

  -r                              Reconnect to last saved connect url (in conjunction with !save).
  -n <username>                   The username to connect as.
  -p <password>                   The password to connect as.
  -d <driver class>               The driver class to use.
  -i <init file>                  Script file for initialization.
  -e <query>                      Query that should be executed.
  -f <exec file>                  Script file that should be executed.
  -w, --password-file <file>      The password file to read password from.
  --hiveconf property=value       Use value for given property.
  --hivevar name=value            Hive variable name and value.
                                  This is Hive specific settings in which variables
                                  can be set at session level and referenced in Hive
                                  commands or queries.

  --property-file=<property file> The file to read connection properties (url, driver, user, password) from.
  --color=[true|false]            Control whether color is used for display.
  --showHeader=[true|false]       Show column names in query results.
  --escapeCRLF=[true|false]       Show carriage return and line feeds in query results as escaped \r and \n.
  --headerInterval=ROWS;          The interval between which heades are displayed.
  --fastConnect=[true|false]      Skip building table/column list for tab-completion.
  --autoCommit=[true|false]       Enable/disable automatic transaction commit.
  --verbose=[true|false]          Show verbose error messages and debug info.
  --showWarnings=[true|false]     Display connection warnings.
  --showDbInPrompt=[true|false]   Display the current database name in the prompt.
  --showNestedErrs=[true|false]   Display nested errors.
  --numberFormat=[pattern]        Format numbers using DecimalFormat pattern.
  --force=[true|false]            Continue running script even after errors.
  --maxWidth=MAXWIDTH             The maximum width of the terminal.
  --maxColumnWidth=MAXCOLWIDTH    The maximum width to use when displaying columns.
  --silent=[true|false]           Be more silent.
  --autosave=[true|false]         Automatically save preferences.
  --outputformat=<format mode>    Format mode for result display.
                                  The available options ars [table|vertical|csv2|tsv2|dsv|csv|tsv|json|jsonfile].
                                  Note that csv, and tsv are deprecated, use csv2, tsv2 instead.

  --incremental=[true|false]      Defaults to false. When set to false, the entire result set
                                  is fetched and buffered before being displayed, yielding optimal
                                  display column sizing. When set to true, result rows are displayed
                                  immediately as they are fetched, yielding lower latency and
                                  memory usage at the price of extra display column padding.
                                  Setting --incremental=true is recommended if you encounter an OutOfMemory
                                  on the client side (due to the fetched result set size being large).
                                  Only applicable if --outputformat=table.

  --incrementalBufferRows=NUMROWS The number of rows to buffer when printing rows on stdout,
                                  defaults to 1000; only applicable if --incremental=true
                                  and --outputformat=table.

  --truncateTable=[true|false]    Truncate table column when it exceeds length.
  --delimiterForDSV=DELIMITER     Specify the delimiter for delimiter-separated values output format (default: |).
  --isolation=LEVEL               Set the transaction isolation level.
  --nullemptystring=[true|false]  Set to true to get historic behavior of printing null as empty string.
  --maxHistoryRows=MAXHISTORYROWS The maximum number of rows to store beeline history.
  --delimiter=DELIMITER           Set the query delimiter; multi-char delimiters are allowed, but quotation
                                  marks, slashes, and -- are not allowed (default: ;).

  --convertBinaryArrayToString=[true|false]
                                  Display binary column data as string or as byte array.

  --python-mode                   Execute python code/script.
  -h, --help                      Display this message.

Examples:
  1. Connect using simple authentication to Kyuubi Server on localhost:10009.
  $ kyuubi-beeline -u jdbc:kyuubi://localhost:10009 -n username

  2. Connect using simple authentication to Kyuubi Server on kyuubi.local:10009 using -n for username and -p for password.
  $ kyuubi-beeline -n username -p password -u jdbc:kyuubi://kyuubi.local:10009

  3. Connect using Kerberos authentication with<EMAIL_ADDRESS>as Kyuubi Server principal(kinit is required before connection).
  $ kyuubi-beeline -u<EMAIL_ADDRESS>
  4. Connect using Kerberos authentication using principal and keytab directly.
  $ kyuubi-beeline -u "jdbc:kyuubi://kyuubi.local:10009/default;kyuubiClientPrincipal=user<EMAIL_ADDRESS>
  5. Connect using SSL connection to Kyuubi Server on localhost:10009.
  $ kyuubi-beeline -u "jdbc:kyuubi://localhost:10009/default;ssl=true;sslTrustStore=/usr/local/truststore;trustStorePassword=mytruststorepassword"

  6. Connect using LDAP authentication.
  $ kyuubi-beeline -u jdbc:kyuubi://kyuubi.local:10009/default -n ldap-username -p ldap-password

  7. Connect using the ZooKeeper address to Kyuubi HA cluster.
  $ kyuubi-beeline -u "jdbc:kyuubi://zk1:2181,zk2:2181,zk3:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=kyuubi" -n username

If you have any suggested revisions, I will promptly respond and make the necessary adjustments.
Types of changes :bookmark:

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪
Behavior Without This Pull Request :coffin:
Behavior With This Pull Request :tada:
Related Unit Tests

Checklist 📝

[ ] This patch was not authored or co-authored using Generative Tooling

Be nice. Be informative.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 58.45%. Comparing base (b9c97dd) to head (69f9b3d).
Report is 5 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6300      +/-   ##
============================================
- Coverage     58.45%   58.45%   -0.01%
  Complexity       24       24
============================================
  Files           652      652
  Lines         39607    39645      +38
  Branches       5450     5454       +4
============================================
+ Hits          23153    23175      +22
- Misses        13977    13988      +11
- Partials       2477     2482       +5

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Thanks, merged to master/1.9


lxd/db/cluster: Fixes v19 migration for sqlite 3.37.

SQLite 3.37 introduced a change in which the CHECK constraint is checked
immediately when adding a new column. Since the default value of the
arch is not allowed under the check constraint, this operation fails.
This change creates a new table and copies the data. Tables which have a
node id foreign key must also be recreated (else the data would be
deleted when the original nodes table is deleted).
Closes #9769

@tomponline I think this should work but the unit test for the migration is still failing but I'm struggling to understand why at the moment. Can you spot anything obvious that I'm doing wrong?
If not, no problem - I'll get there eventually!

@markylaing @tomponline is busy waiting for a baby right now ;)

Thanks! I will take a look asap.

@stgraber pretty sure this is sorted now. The unit test for importing the preclustering data was failing because I had missed some foreign key constraints and so dropping tables caused some data loss.

What value is used for existing entries in the nodes table?

Oh I see its dynamic based on the platform, but we don't want it in the schema.

Oh I see its dynamic based on the platform, but we don't want it in the schema.

@tomponline I can put the two sql statements into different tx.Exec calls to make it easier to read?

Its fine I'm just on my phone.
Did you try temporarily disableing using the "PRAGMA ignore_check_constraints=ON; statement https://www.sqlite.org/lang_createtable.html#ckconst

Its fine I'm just on my phone.
Did you try temporarily disableing using the "PRAGMA ignore_check_constraints=ON; statement https://www.sqlite.org/lang_createtable.html#ckconst

I did not unfortunately... I will try that now.

Did you try temporarily disableing using the "PRAGMA ignore_check_constraints=ON; statement https://www.sqlite.org/lang_createtable.html#ckconst

This worked straight away. Thank you @tomponline!

Test failing im afraid: "ERROR: Functions must not start with an empty line: ./lxd/db/cluster/update.go-func updateFromV19(tx *sql.Tx) error {"

Thanks!


Product

HI
i have added new products but its not showing on main screen

when  i create category it creates one then after that it creates sub category

Select the category you want to create a sub-category for before clicking on the "+" button


改了自定义端口，但是还是连接1883端口

windows版本10

Yes, this is a bug, sorry about that, but it has been fixed now, you need to download the installation package again.

Yes, this is a bug, sorry about that, but it has been fixed now, you need to download the installation package again.

thx. where to download the new version?

Thanks for your feedback. If there are no problems, I will close this issue.


Permalink twitter intent update

I was using the wrong twitter share link. Updating it based on [twitter documentation] (https://dev.twitter.com/web/tweet-button/web-intent). Fixes #4204
@DoSomething/front-end

:+1:


EMBEDDED field types don't support inner documents

EMBEDDEDLIST/SET/MAP

It seems that it's supported. So need to test.

EMBEDDEDLIST/SET/MAP don't have ability to select linkedClass - needs to be fixed.


PromQL: short-circuit vector binary ops

In degenerate cases, where one side of an AND, OR, etc., is empty, we can save the effort of building a map.

But it would probably be worth setting rules on how those values may be treated.


pubsub: start subscriber connections quickly again

This PR undoes part of #2055.
Refreshing credentials blocks thread for a period of time.
Previously, each channel has its own credentials,
so starting many channels spams executor with many blocking tasks.
but the downside is we take a long time to fully start:
about 2 minutes on my machine.
Now, all connections share the same credentials,
so refreshing only happens once.
We can start quickly again.
Also rename setLeaseAlarmsExecutorProvider,
since the executor is now also used for polling.

Changes Unknown when pulling 07f1c28edb1d7d6d374b670b1a6cfee92e52f26d on pongad:fix-subscribe into ** on GoogleCloudPlatform:master**.

LGTM


Implement packet coalescing in the local transport

Motivation:
It is much more efficient to process data in batches, and this is true as well for data passing through the local transport, i.e. LocalChannel. Applications often write many small buffers to their channels, but expect to process fewer, larger buffers when receiving data from the network. In fact, when the SslHandler is in the pipeline, we can observe an orders of magnitude difference in performance when coalescing packets into bigger buffers before processing, compared to processing packets individually. The real transports, like NIO and the native transports, all operate like this.
Modification:
The LocalChannel will now inspect incoming messages, and opportunistically coalesce small Buffers into bigger ones before sending them down the pipeline.
Result:
The local transport now sees improved batch processing behaviour.
This is a back port of #13568

Great work @chrisvest


Saving a multiple enum

Hi Thetron,
I just have a simple question, I have an enum with option multiple equal to true. What is the correct way to send the params for autosave?
I mean my form is sending day => [ 'day1', 'day2' ] but the i have error with the validation.

@senorpasajero Thanks for this - I know this response is super late, but this was (kinda) a bug, and will be resolved in the next version (due in the next couple of days). :beers: