SQL statement "root"."postUserIdId" = ?" should be "root"."userId" = ?"

I have a separate but potentially related issue regarding DataStore.  I have put a message out in discord https://discord.com/channels/705853757799399426/707328996995760179/717494199875797092 if you have a minute would you mind checking?
In summary, when I use self.users?.posts?.count the output fails (I have tested and the data exists online 1:m posts
Here is the output:
no such column: root.postUserIdId in "select   "root"."id" as "id", "root"."createdTimestamp" as "createdTimestamp", "root"."imageUrl" as "imageUrl",   "root"."text" as "text", "root"."updatedTimestamp" as "updatedTimestamp", "root"."userId" as "userId" from Post as root where 1 = 1   and "root"."postUserIdId" = ?" Fatal error: The operation couldn’t be completed. (SQLite.Result error 0.): file /Users/development/Documents/Development/AWS/FullStackSocial/Pods/Amplify/Amplify/Categories/DataStore/Model/Collection/List+LazyLoad.swift, line 96 2020-06-02 22:47:50.150875+0100 FullStackSocial[45576:1966345] Fatal error: The operation couldn’t be completed. (SQLite.Result error 0.): file /Users/development/Documents/Development/AWS/FullStackSocial/Pods/Amplify/Amplify/Categories/DataStore/Model/Collection/List+LazyLoad.swift, line 96
Model (note that I added userId and no connection to Post):
`type User @model {
id: ID!
fullName: String!
emailAddress: String
bio: String
profileImageUrl: String
isFollowing: Boolean
following: [UserFollowing] @connection (keyName: "following", fields: ["id"])
followers: [UserFollowers] @connection (keyName: "followers", fields: ["id"])
isEditable: Boolean
posts: [Post] @connection(keyName: "posts", fields: ["id"])
createdTimestamp: Int!
updatedTimestamp: Int
}
type UserFollowing @model @key(name: "following", fields:["userId"]) {
id: ID!
userId: ID!
}
type UserFollowers @model @key(name: "followers", fields:["userId"]) {
id: ID!
userId: ID!
}
type Post @model @key(name: "posts", fields:["userId", "createdTimestamp"], queryField: "postsByCreatedtimestamp" )  {
id: ID!
userId: ID!
text: String
imageUrl: String
createdTimestamp: Int!
updatedTimestamp: Int
}`
Originally posted by @mickeysox in https://github.com/aws-amplify/amplify-ios/issues/483#issuecomment-637830265

from @drochetti
"it seems to be a bug, in the SQL statement where it says and "root"."postUserIdId" = ?" it should be and "root"."userId" = ?" as per your schema"
https://discord.com/channels/705853757799399426/707328996995760179/717500699419607201

I can confirm this is a duplicate of #512


Check if cached manifest matches configured platform

Added a guard for #2655. Basically checks if a previously cached manifest doesn't match the configured platform. If so, raise an error with an actionable message.

Updates CHANGELOG in jib-core, jib-maven-plugin, and jib-gradle-plugin.

Also, there was a warning that pullBaseImages sometimes returns a mutable list and other times immutable, so I've addressed it by always returning an immutable list.
.../jib/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/PullBaseImageStep.java:217: warning:
[MixedMutabilityReturnType]
This method returns both mutable and immutable collections or maps from different paths. This may be confusing for users of the method.
  private List<Image> pullBaseImages(

In the meantime, I will continue to do some actual end-to-end tests.

LGTM

In the meantime, I will continue to do some actual end-to-end tests.

Works well. If I change a platform while offline, it shows the error message to re-run Jib online once, which resolves the cache issue. When using a digest, it uses the cached manifest if the platform matches (as usual); and it goes out to pull the manifest if it mismatches.


Error upon connecting to cluster on Windows

Describe the bug
When attempting to connect to a cluster on Windows require the following error message
F0103 14:46:21.817744 53236 main.go:82] failed to initialize proxyexec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"
goroutine 1 [running]:
k8s.io/klog/v2.stacks(0x1)
C:/Users/runneradmin/go/pkg/mod/k8s.io/klog/v2@v2.60.1/klog.go:860 +0x8a
k8s.io/klog/v2.(*loggingT).output(0x2dfff40, 0x3, 0x0, 0xc000212af0, 0x1, {0x25c5de7, 0x20}, 0x2e00e20, 0x0)
C:/Users/runneradmin/go/pkg/mod/k8s.io/klog/v2@v2.60.1/klog.go:825 +0x686
k8s.io/klog/v2.(*loggingT).printDepth(0x2dfff40, 0x0, 0x0, {0x0, 0x0}, 0x0, {0xc00013a2c0, 0x2, 0x2})
C:/Users/runneradmin/go/pkg/mod/k8s.io/klog/v2@v2.60.1/klog.go:608 +0x1c7
k8s.io/klog/v2.(*loggingT).print(...)
C:/Users/runneradmin/go/pkg/mod/k8s.io/klog/v2@v2.60.1/klog.go:590
k8s.io/klog/v2.Fatal(...)
C:/Users/runneradmin/go/pkg/mod/k8s.io/klog/v2@v2.60.1/klog.go:1490
main.main()
D:/a/lens-k8s-proxy/lens-k8s-proxy/main.go:82 +0x725
goroutine 36 [syscall]:
os/signal.signal_recv()
C:/hostedtoolcache/windows/go/1.17.13/x64/src/runtime/sigqueue.go:169 +0x98
os/signal.loop()
C:/hostedtoolcache/windows/go/1.17.13/x64/src/os/signal/signal_unix.go:24 +0x19
created by os/signal.Notify.func1.1
C:/hostedtoolcache/windows/go/1.17.13/x64/src/os/signal/signal.go:151 +0x2c
proxy exited with code: 255
To Reproduce
Steps to reproduce the behavior:

Connect to added cluster.

Expected behavior
Be able to connect to configured cluster.
Screenshots

Environment (please complete the following information):

Lens Version:
OS: [Windows]
Installation method (e.g. snap or AppImage in Linux): Used installer from OpenLens, also built myself.

Logs:
When you run the application executable from command line you will see some logging output. Please paste them here:
F0103 14:46:21.817744 53236 main.go:82] failed to initialize proxyexec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"
goroutine 1 [running]:
k8s.io/klog/v2.stacks(0x1)
C:/Users/runneradmin/go/pkg/mod/k8s.io/klog/v2@v2.60.1/klog.go:860 +0x8a
k8s.io/klog/v2.(*loggingT).output(0x2dfff40, 0x3, 0x0, 0xc000212af0, 0x1, {0x25c5de7, 0x20}, 0x2e00e20, 0x0)
C:/Users/runneradmin/go/pkg/mod/k8s.io/klog/v2@v2.60.1/klog.go:825 +0x686
k8s.io/klog/v2.(*loggingT).printDepth(0x2dfff40, 0x0, 0x0, {0x0, 0x0}, 0x0, {0xc00013a2c0, 0x2, 0x2})
C:/Users/runneradmin/go/pkg/mod/k8s.io/klog/v2@v2.60.1/klog.go:608 +0x1c7
k8s.io/klog/v2.(*loggingT).print(...)
C:/Users/runneradmin/go/pkg/mod/k8s.io/klog/v2@v2.60.1/klog.go:590
k8s.io/klog/v2.Fatal(...)
C:/Users/runneradmin/go/pkg/mod/k8s.io/klog/v2@v2.60.1/klog.go:1490
main.main()
D:/a/lens-k8s-proxy/lens-k8s-proxy/main.go:82 +0x725

goroutine 36 [syscall]:
os/signal.signal_recv()
C:/hostedtoolcache/windows/go/1.17.13/x64/src/runtime/sigqueue.go:169 +0x98
os/signal.loop()
C:/hostedtoolcache/windows/go/1.17.13/x64/src/os/signal/signal_unix.go:24 +0x19
created by os/signal.Notify.func1.1
C:/hostedtoolcache/windows/go/1.17.13/x64/src/os/signal/signal.go:151 +0x2c

proxy exited with code: 255

Kubeconfig:
Quite often the problems are caused by malformed kubeconfig which the application tries to load. Please share your kubeconfig, remember to remove any secret and sensitive information.
apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: DATA+OMITTED
  name: arn:aws:eks:us-east-1:xxxxxxxxx:cluster/seam-eks-development
contexts:
- context:
    cluster: arn:aws:eks:us-east-1:xxxxxxxxx:cluster/seam-eks-development
kind: Config
preferences: {}
users:
- name: arn:aws:eks:us-east-1:xxxxxxxxx:cluster/seam-eks-development
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1alpha1
      args:
      - --region
      - us-east-1
      - eks
      - get-token
      - --cluster-name
      - seam-eks-development
      command: aws
      env:
      - name: AWS_PROFILE
        value: saml
      provideClusterInfo: false

Additional context
Add any other context about the problem here.

@dcole-gsn I found this stackoverflow question about this error
Short answer:

Just change v1alpha1 to v1beta1:
diff ~/.kube/config-backup ~/.kube/config
691c691
<             apiVersion: client.authentication.k8s.io/v1alpha1
---
>             apiVersion: client.authentication.k8s.io/v1beta1

@dcole-gsn I found this stackoverflow question about this error
Short answer:

Just change v1alpha1 to v1beta1:
diff ~/.kube/config-backup ~/.kube/config
691c691
<             apiVersion: client.authentication.k8s.io/v1alpha1
---
>             apiVersion: client.authentication.k8s.io/v1beta1

Hi bolshoytoster,
Thanks for the link, I had seen that. Tentatively, it seems the issue for me was related to an outdated aws cli version. I updated aws cli from 1.25.55 to 2.9.12 and that seemed to resolve the issue.
From my limited understanding aws cli 1.x should be fine, but updating it resolved the issue.
Sorry for wasting peoples time.
Kind regards.


feat[file]: add s3 functionality

Configure S3 endpoint, bucket, base path, credentials
Upload file to S3
Get file from S3
delete file from S3

PS: Please bear in mind that I've never used NestJS before, so I'm not sure if everything is best practice, but it works. Don't hesitate to tell me what I should change or update.

Thank you @m-mattia-m :) I’ll try to review the PR as soon as I can. Since I’ll be on vacation next week and have a lot going on, it may take me some time to review and test it fully.

Additionally, I would suggest to create a separate S3 file service as the methods in the file service get a bit too complicated when both S3 and local file storage are handled.

No worries :)
I can see what you mean by "a bit too complicated" :D. I will create a separate service for the S3 functionality. Yes you are right, large files are failing during the upload. I've never tested it with large files which I should have done. I will implement this feature in a few weeks but I have also much going on :).

@m-mattia-m Sure, take your time :)

FYI: I fixed the chunking problem and split the file service into a local and a S3 service. Consider that I need to refactor these changes, but I will do that in a few days. If you have time, I would appreciate it when you could test the changes if you can find any issues.

@stonith404 I updated the code a bit, and I hope it's fine. Don't hesitate to tell me what I should change or update. :)

I noticed two things that I will change/implement in a few weeks when I have more time.

When you try to open the preview for a PDF that is larger than 10Mb (chunk size), an error occurs (it downloads the file (without the correct name and type extension) instead of displaying the content in the PDF viewer).
If you change the storage provider during runtime, the backend searches in the new location where it can't find these files that were uploaded before the storage change, so I will add a location: s3, local to each file.

Thanks for the changes!
Sure, take your time. I think it would be sufficient to add the provider information to the share, instead of adding it to every file.
When these two issues are fixed it should finally be ready to merge :)

I fixed the two issues I mentioned before. Now everything should work :).

That would be great. :)

Great, thanks again for your contribution!

hi @m-mattia-m I just filed a bug report as I can use S3 buckets and upload, but impossible to delete the files from the shares.

#705


main.go:12: make Rest Address configurable.

The puzzle 5-66cbafe8 from #5 has to be resolved:
https://github.com/kerelape/gophkeeper/blob/8f3176921e60b1af7bcb0b0e826f328e31b738aa/cmd/server/main.go#L12-L12
The puzzle was created by @kerelape on 28-Aug-23.
role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

The puzzle 5-66cbafe8 has disappeared from the source code, that's why I closed this issue.


Feat memory sanitizer

add memory sanitizer to github actions

@gocarlos please review changes and confirm

AFAIU this pull request is obsoleted by #159


[Feature] delete row, delete column

Hi. @shuaicj .
There are useful vscode's vasic editor features!
Use box selection to select and delete column.
Use shift+delete to delete row.
https://code.visualstudio.com/docs/editor/codebasics#_column-box-selection
This extention does not implement features they can be done by vscode's basic features. It is policy of this extention.

Hi. @shuaicj .
There are useful vscode's vasic editor features!
Use box selection to select and delete column.
Use shift+delete to delete row.
https://code.visualstudio.com/docs/editor/codebasics#_column-box-selection
This extention does not implement features they can be done by vscode's basic features. It is policy of this extention.


【AT】add undo log manager-delete func

What would you like to be added:

Why is this needed:

pls assign to me

pls assign to me

looking forward your contribution


valueerror when using someone's code on machine learning

I like to learn about LSTMs, and following the code on that has worked for others, but not for me at https://machinelearningmastery.com/time-series-prediction-lstm-recurrent-neural-networks-python-keras/#comment-433162.
As soon as I typed the following line:
model.fit(trainX, trainY, epochs=100, batch_size=1, verbose=2)
I get a series of valueerrors - this is the cut-down version of the error output.
TypeError: c_compile_args() takes 1 positional argument but 2 were given
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Python34\lib\site-packages\theano\tensor\blas.py”, line 443, in _ldflags
t0, t1, t2 = t[0:3]
ValueError: need more than 1 value to unpack
During handling of the above exception, another exception occurred:
lots of files from the Theano package were mentioned (cut out of the edit)
ValueError: (‘The following error happened while compiling the node’, forall_inplace,cpu,scan_fn}(Elemwise{maximum,no_inplace}.0, Subtensor{int64:int64:int8}.0, IncSubtensor{InplaceSet;:int64:}.0, IncSubtensor{InplaceSet;:int64:}.0, Elemwise{Maximum}[(0, 0)].0, Subtensor{::, int64:int64:}.0, InplaceDimShuffle{x,0}.0, Subtensor{::, int64:int64:}.0, Subtensor{::, :int64:}.0, InplaceDimShuffle{x,0}.0, Subtensor{::, :int64:}.0, Subtensor{::, int64:int64:}.0, InplaceDimShuffle{x,0}.0, Subtensor{::, int64:int64:}.0, Subtensor{::, int64::}.0, InplaceDimShuffle{x,0}.0, Subtensor{::, int64::}.0), ‘\n’, ‘The following error happened while compiling the node’, Dot22(, ), ‘\n’, ‘invalid token “=” in ldflags_str: “-LC:openblas -lopenblas;gcc.cxxflags = -shared -Ic:ming64winclude -Lc:python34libs -lpython34 -DMS_WIN64″‘)
This occurs even when I uninstalled Theano and successfully reinstalled using the git method on my Windows PC using the git/bash/mingw program:
pip install git+https://github.com/Theano/Theano.git#egg=Theano
source "bleeding edge installation" at http://deeplearning.net/software/theano/install_windows.html
Any idea please.
Thank you,
Anthony from Sydney

Hi!
This issue isn't related to a bug/enhancement/feature request or other accepted types of issue.
To ask questions, please see the following resources :

https://keras.io/
https://keras.io/#support
https://gitter.im/Keras-io/Lobby

Thanks!
If you think I made an error, please re-open this issue.

I'm just a user. So how do I know whether the error output is a bug in keras or something else?  Or in other words, why cannot this be answered in this forum.
Thank you, merci
Anthony from Sydney


Pass extracted params to route data function

Currently only the path is passed to the data function.
Component.render(Router, {
    data: (path) => {
        // path == 'entry/1234'
    },
    element: '#container',
    path: '/entry/:id(\\w+)?',
    component: Entry
});

However, I'd like to use the id in a request to an external db, but I don't want to manually parse the path for the id. I can retrieve the route and then use the extractParams method, but it feels verbose.
Component.render(Router, {
    data: (path) => {
        const params = Router.router().findRoute(path).extractParams(path);
    },
    element: '#container',
    path: '/entry/:id(\\w+)?',
    component: Entry
});

It would be nice to have the extracted params passed to the data function as the second argument.

Good suggestion, will do.


wrong output written

If I am wrong, sorry, I am not the best with JS but trying one of these, I got a different output:
https://github.com/denysdovhan/wtfjs?ref=HackerTabExtension#is-this-multiple-inheritance
I got this: F(0) []
Not this: F []

I've tested this with Node.js v9,v10,v11,v12,v14.
I've got F [] with v9,v10,v11.
And I've got F(0) [] with v12,v14.
So there must be some changes with Node.js 12 (V8 7.4)

The questions seem to be answered.


(PUP-2628) Add members to groups instead of full list for Windows

Previously, if you wanted to use the group resource you needed to specify the
entire list of members as the windows provider ignored the auth_membership
setting and was always the authoritative list. This ensures that the windows
provider respects the auth_membership setting.

CLA signed by all contributors.


Unable to pull PHP packages from ondrej repo

Sail Version
1.27.3
Laravel Version
10.10
PHP Version
8.1
Operating System
Windows (WSL)
OS Version
11
Description
Upon starting the sail containers with sail up the laravel container displays an error message.
It's not able to pull packages from the ondrej PPA.

Is this a sail issue or with my docker config?
Steps To Reproduce
Write the following in the terminal to reproduce the same result.
sail up

Seems to be a hiccup I think. We haven't had any other reports so far. I suggest you try again at a later time.


Add tailscale into the base image

Some useful bits:

https://github.com/ublue-os/bling/blob/4a5f00b07a2437553b620c1a4fbd4a4eef865d84/modules/rpm-ostree/README.md?plain=1#L17
https://tailscale.com/kb/1050/install-fedora/
https://github.com/ublue-os/bazzite/blob/f4f08cbb2a1168ae337ae629ccc70d6f97618a4a/Containerfile#L54

Done in #30


Notifications - Google Chat Webhook integration

Is it a duplicate question?
Nope.
Is your feature request related to a problem? Please describe.
Google Chat Notifications
Describe the solution you'd like
Google Chat natively supports webhooks, but unfortunately the webhook structure of this repo doesn't fit the supported message structure for Google Chat: https://developers.google.com/chat/how-tos/webhooks
Describe alternatives you've considered
Already tried different ways to integrate Google Chat also using a middle layer and webhooks, without any luck.
Additional context
None.
Thanks

You can use apprise.
https://github.com/caronc/apprise/wiki/Notify_googlechat


Add test cases

In order to ensure that code changes (refactoring) don't change functionality, add test cases for regression testing.

I agree. However, I would like to finish/polish the code first. Probably a week or so, then I am happy to accept any PR doing this. :)


implement deletion of message queues

This is the corresponding PR to Genie's implementation of message queues for websockets, which ensures cleaning of the MESSAGE_QUEUE dictionary.

This change is probably not necessary. Instead we may be able to remove the purgers. I'll make this a draft PR for the time being.


Anaconda Install not detecting dependencies

I tried anaconda install caffe2 as per the official documentation. However, since glog, gflag, leveldb, cuda and cudnn were all installed with conda install they are not detected by cmake. But dependencies related to python such as protobuf is detected during cmake.
 So if you're on Ubuntu, you'll want to follow:
https://caffe2.ai/docs/getting-started.html?platform=ubuntu&configuration=compile#required-dependencies
And for cuda and cudnn:
https://caffe2.ai/docs/getting-started.html?platform=ubuntu&configuration=compile#optional-gpu-support
It does seem like you're doubling up when you use both conda and apt-get to install the "same" package, but they're different levels of installation. Beware that as packages such as brew, pip, and conda get updated by their maintainers things like protobuf aren't necessarily the same version.
conda install protobuf != pip install protobuf != brew install protobuf


Replace HashValue with HashCode

We've introduced the use of Guava's HashCode a while ago, then moved to our own HashCode implementation for performance reasons, but we never managed to remove HashValue. This PR finishes that work.

@bot-gradle test QFL please.

OK, I've already triggered QuickFeedbackLinux build for you.

@bot-gradle test QFL please.

OK, I've already triggered QuickFeedbackLinux build for you.

@bot-gradle test QFL please.

OK, I've already triggered QuickFeedbackLinux build for you.

@bot-gradle test QF please.

OK, I've already triggered QuickFeedback build for you.

@bot-gradle test RFM.

OK, I've already triggered ReadyForMerge build for you.

@bot-gradle test and merge please.

OK, I've already triggered a build for you.


Correct schema for network-traffic http-request-ext request_header

The STIX2.1 standard states for network-traffic http-request-ext
request_header:

The corresponding value for each dictionary key MUST always be a list
of type string to support when a header field is repeated.

The JSON schema now adheres to that specification.
Closes #152

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

Can we merge this even though the CLA isn't signed?

The email address used to create the commit doesn't match the email address of the github.com account. If there's a way to check the list of people who signed the CLA, you could see if the github.com account signed it.


Check empty todo body

Autogenerated by antoniouaa/wingman
Line: 43 in wingman\github.py

This works


Support up to 3 options in SegmentedSwitch

The formerly binary switch has been updated by design to allow up to 3 options.

SegmentedSwitch supports an arbitrary number of options since we use a @ViewBuilder there.


ci fixes

Signed-off-by: kumarabd<EMAIL_ADDRESS>Description
This PR fixes #202
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

This PR gets us closer to passing tests, but has a failed test in it, yet.

This PR gets us closer to passing tests, but has a failed test in it, yet.

yes the test bit is not figured yet. This is just for the docker build. The test doesn't break any of the functionalities btw.

Ok, given that, let's proceed.
On Sat, Apr 10, 2021 at 11:37 AM abishek @.***> wrote:

This PR gets us closer to passing tests, but has a failed test in it, yet.
yes the test bit is not figured yet. This is just for the docker build.
The test doesn't break any of the functionalities btw.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/layer5io/meshery-istio/pull/203#issuecomment-817167253,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABZYKEDYYZWSD4K2YTCTZYLTIB5GNANCNFSM42WE4EXA
.


Adding support for alternative FW HB-LC-Sw2PBU-FM

This patch adds support for the alternative FW HB-LC-Sw2PBU-FM (for Homematic device HM-LC-Sw2PBU-FM).
See [https://github.com/jp112sdl/Beispiel_AskSinPP/tree/master/examples/HB-LC-Sw2PBU-FM].
The alternative FW adds the possibility to use the remotes/buttons independently from the switches/relais.

There's something broken with this PR, as there's nothing to merge. I suggest to recreate your fork from the latest devel-branch and just add the required changes.

Sorry I should have noticed, I uploaded a new PR.


Private DNS Zone Limited to 15 Tags via api-version=2018-09-01. Via portal you can add upto the 50 tag limit.

https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}?api-version=2018-09-01
When using programmatic tools/cli/terraform to apply tags to our Private DNS resource we get an error:
privatedns.PrivateZonesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="BadRequest" Message="The resource tags are invalid. A maximum of 15 tags are allowed with keys no longer than 512 and values no longer than 256 characters."
The resource accepts more than 15 tags via the portal. Key/Value are not the issue, it's the api that is limiting only 15 tags. Portal is supporting 50 tags on same resource.
Example of someone else seeing this limit via terraform: https://www.gitmemory.com/issue/terraform-providers/terraform-provider-azurerm/11032/803544043
I've also seen this limit if using the AzureCLI and this API.
Please can you fix or give an update as to when it will be fixed?
Thanks

Similarly - adding tags via terraform 2.9 and only 6 of my 9 tags  are added ... if i goto portal and try to add it shows success but if i refresh the UI -- tags not added!
Length does not appear to be an issue as if make the value for one of my 6  tags shorter and then try to add my 7th it will not add!  Even changing existing tags takes some finessing...

Found this while working on a different issue.
New API version, 2021-04-01, allows for 50 tags
Tags - Create Or Update At Scope
https://docs.microsoft.com/en-us/rest/api/resources/tags/create-or-update-at-scope
PUT https://management.azure.com/subscriptions/{{subscriptionId}}/resourcegroups/{{resourcegroupName}}/providers/Microsoft.Network/privateDnsZones/{{zoneName}}/providers/Microsoft.Resources/tags/default?api-version=2021-04-01
Body:
{
"properties": {
"tags": {
"tagKey1": "tag-value-1",
"tagKey2": "tag-value-2",
.....
"tagKey50": "tag-value-50"
}
}
}

Found this while working on a different issue. New API version, 2021-04-01, allows for 50 tags

Did you actually test this? Does not work in my testing, neither does the newest 2022-09-01 version.
az rest --method PUT --uri "/subscriptions/{{subscription_id}}/resourceGroups/{{rg}}/providers/Microsoft.Network/privateDnsZones/{{dnszone}}/providers/Microsoft.Resources/tags/default?api-version=2021-04-01" --body "{\"properties\":{\"tags\":{\"a\":\"a\",\"b\":\"b\",\"c\":\"c\",\"d\":\"d\",\"e\":\"e\",\"f\":\"f\",\"g\":\"g\",\"h\":\"h\",\"i\":\"i\",\"j\":\"j\",\"k\":\"k\",\"l\":\"l\",\"m\":\"m\",\"n\":\"n\",\"o\":\"o\",\"p\":\"p\",\"q\":\"q\",\"r\":\"r\",\"s\":\"s\",\"t\":\"t\",\"u\":\"u\",\"v\":\"v\",\"w\":\"w\",\"x\":\"x\",\"y\":\"y\",\"z\":\"z\"}}}"
->
Bad Request({"error":{"code":"ProviderError","message":"{\"code\":\"BadRequest\",\"message\":\"The resource tags are invalid. A maximum of 15 tags are allowed with keys no longer than 512 and values no longer than 256 characters.\"}"}})
az rest --method PUT --uri "/subscriptions/{{subscription_id}}/resourceGroups/{{rg}}/providers/Microsoft.Network/privateDnsZones/{{dnszone}}/providers/Microsoft.Resources/tags/default?api-version=2022-09-01" --body "{\"properties\":{\"tags\":{\"a\":\"a\",\"b\":\"b\",\"c\":\"c\",\"d\":\"d\",\"e\":\"e\",\"f\":\"f\",\"g\":\"g\",\"h\":\"h\",\"i\":\"i\",\"j\":\"j\",\"k\":\"k\",\"l\":\"l\",\"m\":\"m\",\"n\":\"n\",\"o\":\"o\",\"p\":\"p\",\"q\":\"q\",\"r\":\"r\",\"s\":\"s\",\"t\":\"t\",\"u\":\"u\",\"v\":\"v\",\"w\":\"w\",\"x\":\"x\",\"y\":\"y\",\"z\":\"z\"}}}"
->
Bad Request({"error":{"code":"ProviderError","message":"{\"code\":\"BadRequest\",\"message\":\"The resource tags are invalid. A maximum of 15 tags are allowed with keys no longer than 512 and values no longer than 256 characters.\"}"}})
The exact same call targeting other types of resources, such as a storage account, works perfectly.

Hi Azure team,
Please suggest about error while applying more than 15 tags on Private DNS zone.
I am also facing this error.

Just ran into this one myself and was quite surprised to find the (seemingly) arbitrary limit?

https://github.com/hashicorp/go-azure-sdk/blob/main/resource-manager/privatedns/2020-06-01/virtualnetworklinks/version.go
I guess that needs updating?

This caused our AKS clusters to go into a failed state. By simply adding one extra tag (totalling 16) on the AKS service, which is then inherited by the Private DNS zone, the cluster was no longer able to autoscale.

This caused our AKS clusters to go into a failed state

Thats worthy of a support case and please-explain to the AM. Bonus points because you get to ask them why an issue that has been known about for 3 years brought down prod.

This caused our AKS clusters to go into a failed state. By simply adding one extra tag (totalling 16) on the AKS service, which is then inherited by the Private DNS zone, the cluster was no longer able to autoscale.

@andywilde We'll update the api version used in AKS and support 50 tags in next release. ETA for the rollout is mid May

This caused our AKS clusters to go into a failed state

Thats worthy of a support case and please-explain to the AM. Bonus points because you get to ask them why an issue that has been known about for 3 years brought down prod.

Yes, we did raise a support request but were told "There is a disclaimer that for some resources, 15 tags is the limit, which includes Azure DNS Zone. As we saw, the error log it explicitly inform the error is due to a maximum of 15 tags, and does not matter from where the request is coming from (Azure Portal, CLI, Terraform) or the API version, it just about the limit of the resource." We know that is not true since Private DNS Zone can be updated to more than 15 tags from the Azure Portal.

@andywilde  strange since I just did a test myself and both portal and all api-version with cli doesn't work with more than 15 tags.

@levimm I just checked on the Azure portal and I can't set more than 15 tags either. Looks like I assumed this bug was still valid without checking.  Can anyone actually still do this on Azure Portal?

This is really annoying, we're running into this as well. Same for API-Management and Azure Automation Accounts..

All, consider submitting your feedback and vote here: https://feedback.azure.com/d365community/idea/4d4bd32f-dcb9-ed11-a81b-6045bd79fc6e


Service tier characteristics

The table "Service tier characteristics" (section "Instance-level resource limits") states:
"Expected max storage IOPS:" "Depends on the underlying SSD speed." for Business Critical tier. Unfortunately, that's a pretty poor statement. Could you please add the according values as mentioned in https://docs.microsoft.com/en-us/azure/sql-database/sql-database-service-tiers-vcore#service-tier-characteristics. The other article states "IO throughput (approximate)" "5000 IOPS per core with 200,000 maximum IOPS" for Business Critical tier. Would be great to see the identical explanations in both docs!

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

ID: 4dff594a-77ba-dca2-e3ae-f3a7bf0c3e1d
Version Independent ID: b496ce1e-c8e6-8fe4-d41d-6f57606f5034
Content: Azure SQL Database resource limits - managed instance
Content Source: articles/sql-database/sql-database-managed-instance-resource-limits.md
Service: sql-database
GitHub Login: @bonova
Microsoft Alias: bonova

Thanks for the feedback! We are currently investigating and will update you shortly.

Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate. Apologies for the delay.

@CarlRabeler Assign to you?

@Mike-Ubezzi-MSFT yes, assign to me. This is also why we try not to have duplicate content. One person makes an update to one article and does not look to see if content is duplicated elsewhere. Sigh.

@Mike-Ubezzi-MSFT updated article - please close

@mpoeckl We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.

How can you have a log running as 30-40k IOPS (IOs per second)
Data/Log IOPS (approximate)	Up to 30-40 K IOPS per instance
but also have a max throughput of the logs of 22Mb/second.
If you have a 8 core machine with each core being used for inserting data into tempdb or a live db then have you you've limited each core to just <3Mb/second.


Primusrun not working correctly

Don't know whether it's a bug or just my dumbness. I've installed bumblebee, optirun and optirun32 work fine, games run. Then i installed primus and primusrun doesn't work as expected.
[wv@wyvernscave:~]$ primusrun openarena
primus: fatal: broken GLX on main X display

Dmesg output:
[56291.817295] bbswitch: enabling discrete graphics
[56292.221342] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none
[56292.221574] [drm] Initialized nvidia-drm 0.0.0 20130102 for 0000:01:00.0 on minor 1
[56292.221580] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  340.58  Fri Oct 31 17:40:28 PDT 2014
[56292.253076] nvidia 0000:01:00.0: irq 48 for MSI/MSI-X
[56292.255087] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[56292.255129] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[56292.255178] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[56292.255201] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[56292.255222] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[56292.255243] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[56292.255290] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[56292.255312] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[56292.596107] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[56293.101160] [drm] Module unloaded
[56293.103404] bbswitch: disabling discrete graphics

Did i forget something like little tiny flag primusrun.enable =  true; or anything like that or is it really an issue?

Is this still relevant?

Oops, sorry, don't think so


Internal type conversion from array to iterable.

After updating my dependencies I'm experiencing problems with analysis. Array types seem to be converted internally to iterable types when calling webmozart/assert methods. I've added screenshots and my system information. Hopefully this helps, if you need more information, ping me :-)
class Logic
{
    /**
     * @param array<int, array<string, mixed>> $items
     */
    public function execute(array $items): void
    {
        \Webmozart\Assert\Assert::allKeyExists($items, 'id');

        // ...

        $this->executeSomethingElse($items); // ERROR: Now phpstan says that $items has become an iterable.
    }

    /**
     * @param array<int, array<string, mixed>> $items
     */
    public function executeSomethingElse(array $items): void
    {
    }
}

System information:
bash-5.1$ php -v
PHP 7.4.16 (cli) (built: Mar 25 2021 23:24:45) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.16, Copyright (c), by Zend Technologies
    with Xdebug v3.0.3, Copyright (c) 2002-2021, by Derick Rethans

I do notice that the typehint of allKeyExists is an iterable:
    /**
     * @psalm-pure
     *
     * @param iterable<array> $array
     * @param string|int      $key
     * @param string          $message
     *
     * @throws InvalidArgumentException
     *
     * @return void
     */
    public static function allKeyExists($array, $key, $message = '')
    {
        static::__callStatic('allKeyExists', array($array, $key, $message));
    }

Does that cause phpstan to think the variable is an array?

The bug will be somewhere in this method:

https://github.com/phpstan/phpstan-webmozart-assert/blob/5d9128174c62ff840e3ee488a0ad04d6705bc36d/src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L441-L476

You can take advantage of this guide and submit a failing test, thanks.

Fyi the current state looks like the following
	public function allKeyExists(array $array, iterable $iterable): void
	{
		\PHPStan\Testing\assertType('array', $array);
		Assert::allKeyExists($array, 'id');
		\PHPStan\Testing\assertType('array<array&hasOffset(\'id\')>', $array);
		Assert::allKeyExists($array, 'name');
		\PHPStan\Testing\assertType('array<array&hasOffset(\'id\')&hasOffset(\'name\')>', $array);

		\PHPStan\Testing\assertType('iterable', $iterable);
		Assert::allKeyExists($iterable, 'id');
		\PHPStan\Testing\assertType('iterable<array&hasOffset(\'id\')>', $iterable);
		Assert::allKeyExists($iterable, 'name');
		\PHPStan\Testing\assertType('iterable<array&hasOffset(\'id\')&hasOffset(\'name\')>', $iterable);
	}

No iterable for the array input any more, so maybe this has been fixed? The array shape has a format not known to me though. Is this expected?
I can add this or an adapted version to the tests if that makes sense


Gridster Provider

Hi, ready for a huge text? :D
I think this is a must have.
First of all, thank you a lot for your contribution on angular-gridster!
I was thinking if it was possible  for you to add a simple provider on the gridster file.
Reason: access to gridster environment (functions) from outside, without having to create a directive that will require gridster. (The only way possible until today i guess)
Instead of creating the directive and on compile function do:
angular.module('MyAwesomeModule').directive('MyAwesomeDirective', function () {
        return {
            restrict: 'E',
            require: '^gridster',
            controller: function ($scope, $element, $attrs, $transclude) {
            },
            compile: function compile(tElement, tAttributes, $window, Gridster) {
                return {
                    pre: function preLink(scope, element, attributes) {
                    },
                    post: function link(scope, element, attrs, Gridster) {
                        // Now i can access to Gridster by: Gridster.setOptions(awesomeObject)
                    }
                };
            }
        };
);

(I dont like this ^^)

My thoughts
Is it possible do add a provider on your gridster file as:
angular.module('gridster', []).provider("gridsterProvider",function(){
	    this.$get = function () {
	        var publicMethods = {
	            setOptions: function (options) {
	                return 'setOptions method'; // Todo actually make it work :)
	            }
	        }
	        return publicMethods;
	    }
	})

So far i am working with this, so it would be awesome to access to the gridster environment from outside without having to create the directive.
using on a controller:
$scope.fun1 = function () {
      console.log(gridsterProvider.setOptions());  // Prints 'setOptions method'
}

Edit
The amount of work you would need to do on your functions (on controller, for example):
.controller('GridsterCtrl', ['gridsterConfig', '$timeout', 'gridsterProvider',
	function(gridsterConfig, $timeout, gridsterProvider) {
            gridsterProvider.gridsterConfig = gridsterConfig;
        }

And now we can access from the ouside:
      gridsterProvider.setOptions(theNewOptions)); // now it changes

What do you think?
Awesome thanks :)
Tiago Braga

Not saying this wouldn't work, but would these be global default settings you are setting up in this way? There can be several instantiated grids in an application, how do identify which of them gets the options?
My motivation for having a callable Gridster service would be to able to trigger the layout algorithm in situations where the grid is sparse. In this case I would like the items to be re-aligned so that empty sections on the grid are filled.

In some way that may be true. But then again we could just provide to the outside some methods, such as the next available position an item can ocuppy.
Or is there any way i can achieve without this?
Thanks,
Tiago Braga

I looked at creating a provider and I believe it being a singleton that doesn't know about the scope would make that an unusable solution for many.  In the latest release I exposed the gridster and gridsterItem controllers to the scope so you can do what you want with them.  I hope that helps!


Add a custom panic hook

A Rust program may panic (i.e. cleanly abort execution) in case of fatal errors (e.g. any calls to unwrap() on a Result that contains an Error). This is only logged to stderr, which we cant read from the EDU.
Use std::panic::set_hook(...) to add a function that logs panic information with our usual log::error!()

https://docs.rs/log-panics/latest/log_panics/


Update docs to mention error outs regarding noLib

Addresses https://github.com/microsoft/TypeScript-Website/issues/1612

Thanks


Added watcher to managed cluster labels

Related issue: https://issues.redhat.com/browse/ACM-1795
Signed-off-by: dislbenn<EMAIL_ADDRESS>

/test sonarcloud

/retest

/test test-e2e

/test test-unit

/retest

/retest

/lgtm


Fresh routes error

After running fresh routes ...
the routes.gen.ts has errors 'Unable to load a local module: ' 'check file path' ...
import * as $0 from "./pagesce/pages/api/joke.ts";
import * as $1 from "./pagesce/pages/index.tsx";
import * as $2 from "./pagesce/pages/[name].tsx";

The folder 'pagesce' does not exist.
If I edit  routes.gen.ts to remove (pagesce/)
import * as $0 from "./pages/api/joke.ts";
import * as $1 from "./pages/index.tsx";
import * as $2 from "./pages/[name].tsx";

the app runs without errors.
deno 1.11.4 (release, x86_64-pc-windows-msvc)
v8 9.1.269.35
typescript 4.3.2
deployctl 0.3.0

to reproduce ...
$ fresh init wxyz
$ cd wxyz
$ code .

opened routes.gen.ts
// DO NOT EDIT. This file is generated by `fresh`.
// This file SHOULD be checked into source version control.
// To update this file, run `fresh routes`.

import * as $0 from "./pagesyz/pages/api/joke.ts";
import * as $1 from "./pagesyz/pages/index.tsx";
import * as $2 from "./pagesyz/pages/[name].tsx";

const routes = {
  pages: {
    "./pagesyz/pages/api/joke.ts": $0,
    "./pagesyz/pages/index.tsx": $1,
    "./pagesyz/pages/[name].tsx": $2,
  },
  baseUrl: import.meta.url,
};

export default routes;

Note: the extra folder is named ... pages + ${ the last 2 characters of the parent folder name }
this is reproduceable for any folder name given to fresh init

also ...
error in ./pages/[name].tsx line 8
  return
Hello {props.params.name}
;

the 'div' tags are highlighted red and the error message is ...
JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.deno-ts(7026)

I think I encountered this error before. I can no longer reproduce it on macOS. Can you confirm if re-installing fresh doesn't fix it?
deno install -A -f --no-check --reload -n fresh https://raw.githubusercontent.com/lucacasonato/fresh/main/cli.ts

did not fix (win10)
routes.ts (fix)
line #51 	added 2 to the href.length
from  	const file = toFileUrl(entry.path).href.substring(pagesUrl.href.length);
to   	const file = toFileUrl(entry.path).href.substring(pagesUrl.href.length + 2);
line # 60	removed '/pages'
from 	${files.map((file, i) => import * as $${i} from "./pages${file}";).join("\n")}
to	${files.map((file, i) => import * as $${i} from ".${file}";).join("\n")}
line # 65	removed '/pages'
from 	files.map((file, i) => ${JSON.stringify(./pages${file})}: $${i},)
to	files.map((file, i) => ${JSON.stringify(.${file})}: $${i},)

@satyarohith  I found this
the ...
 toFileUrl(entry.path)

added two extra //
 href: "file:///C:/...

these are then removed by the ...
href.substring(pagesUrl.href.length + 2);

@satyarohith
routes.ts line # 43
// in windows ... this works ...
const pagesUrl = new URL( "file:///" + pagesDir);
// returns "file:///C:/Users/nhron/....."

// this does not ...
const pagesUrl = new URL( pagesDir, "file:///")
// returns "c:\Users\nhron\....."

This allows the lengths to match and then all works well.
can you test if this is not the case in linux/mac?
Since new URL() is a core Deno function, this may be the cause of other issues with Deno in Win10?

@satyarohith   ... new URL()
in Chrome-v8 ...

returns file:///C:/docs
in Deno ...
	console.log(new URL("c:/docs", "file:///"))

returns c:/docs

This is a deno issue. Once deno URL starts passing all tests, this issue will go away.

// routes.ts line 43

// Currently this does not work in Windows10 as Deno URL() constructor is not passing test!
const pagesUrl = new URL( pagesDir, "file:///")
// pagesUrl  will be 'c:/...'

// if we change line 43 to this, everything works as designed.
const pagesUrl = toFileUrl(new URL(pagesDir).href)
// pagesUrl  will be 'file:///c:/...' and then will return proper relative path at line 53

// I think this is what was intended to begin with

I've confirmed the issue is Windows10...
VS Code in WSL-Windows-bash(ubuntu)
> fresh routes ->
Route manifest generated and written to  /home/ndh/projects/courses/test/routes.gen.ts
new URL(url, base) will see the above url as 'relative' and so, will add the base 'file:///'

pages: {
    "./pages/api/joke.ts": $0,
    "./pages/index.tsx": $1,
    "./pages/[name].tsx": $2,
  }

VS Code in native-Windows-Powershell
> fresh routes ->
Route manifest generated and written to C:\Users\nhron\Documents\Work\ACTIVE\test\routes.gen.ts
new URL(url, base) sees the above url as absolute, so it will ignore the base 'file://'

  pages: {
    "./pagesst/pages/api/joke.ts": $0,
    "./pagesst/pages/index.tsx": $1,
    "./pagesst/pages/[name].tsx": $2,
  }

by the way... Chrome/Win10 new URL() will use the 'base' even if the url is absolute!!!
This is not to spec, where node and deno will honor the spec.
from the Web/API/URL docs
@url param = a string or an element — that represents an absolute or relative URL.
If url is a relative URL, base is required,
[@base] param =  If url is an absolute URL, a given base will be ignored.

@nhrones Thanks for all the info. I have not yet tested fresh on windows - I'll make sure it is all working soon.

My local repo works great with a very simple fix, I'll test it on WSL.  I
just spent hours building a fresh/clean test laptop with WSL2.  It was then
that I discovered the difference in deno.cwd on win and *inix.  I've spent
days studying the URL constructor issue and now I know that both node and
deno are faithful to the spec. It is ChromeWin10 that doesn't.  This was
the opposite of what I had assumed.  Not sure if the URL constructor is
owned by Chromium or V8?  Someone should report it.
Thanks for replying so quickly, I thought I was being a pest.  I'm very
excited about deploy.  I have an animated clock running there (
clock.deno.dev).  I bypassed all the initial errors by writing my own path
parser.
Nick
On Fri, Jul 9, 2021 at 8:20 PM Luca Casonato @.***>
wrote:

@nhrones https://github.com/nhrones Thanks for all the info. I have not
yet tested fresh on windows - I'll make sure it is all working soon.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lucacasonato/fresh/issues/40#issuecomment-877520047,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZAPQ3GBLNUIZPOXZBVBGTTW6G3RANCNFSM47WYLMPQ
.

@lucacasonato
routes.ts
The new URL() constructor on line#43, will ignor its second param 'file:///', when the first is param is an absolute path.
Deno.cwd() will return an absolute path with a drive letter in Win32.
So, on line #51 the toFileURL() does not seem to care about absolute path and will
return a true 'file:///...' href which makes the substring on that line inacurate.
The fix at least on Win32, is to subString the final toFileURL.href result to
extract the correct relative path.
Since '/pages/' is a constant, you can get the relative path from 'toFileURL.href.lastIndexOf('pages')'
   // old line 51
   const file = toFileUrl(entry.path).href.substring(pagesUrl.href.length);
   // two new lines to replace above
   const fileUrl = toFileUrl(entry.path).href // added this extra step to improve readability
   const file = fileUrl.substring(fileUrl.lastIndexOf('pages'));

This will also require the removal of the now redundant 'pages' text on lines #60 and #65
   // line 60 will now have a redundant               pages
   ${files.map((file, i) => `import * as $${i} from "./pages${file}";`).join("\n")}
   // changed to
   ${files.map((file, i) => `import * as $${i} from "./${file}";`).join("\n")}
   // same with line 65

Closing as there seems to be a lack of interest in supporting Windows.  Using windows? Don't use fresh!

This issue should be re-open. it is still happening


Plotting features

This probbaly deserves its own external package.


cds-select + React Testing Library: TypeError: 'set' on proxy: trap returned falsish for property 'disabled'

Describe the bug
When Clarity is used in conjunction with the React Testing Library, selecting a CdsSelect by its corresponding label throws:
    TypeError: 'set' on proxy: trap returned falsish for property 'disabled'

      at node_modules/src/internal/utils/lit-element.ts:42:20
          at Array.forEach (<anonymous>)
      at syncProps (node_modules/src/internal/utils/lit-element.ts:42:6)
      at HTMLElement.updated (node_modules/src/forms/control/control.element.ts:291:5)
      at HTMLElement.performUpdate (node_modules/lit-element/src/lib/updating-element.ts:792:12)
      at node_modules/lit-element/src/lib/updating-element.ts:725:25
      at asyncGeneratorStep (node_modules/lit-element/lib/updating-element.js:8:103)
      at _next (node_modules/lit-element/lib/updating-element.js:10:194)

How to reproduce
I could not reproduce this using a StackBlitz as the test runner runs outside of a browser context (and StackBlitz's super new Node beta support had some issues), but I set up a repro repo at astorije/repro-clarity-proxy-set-disabled.
Steps to reproduce the behavior:

Clone the repo
Install dependencies with yarn install
Run yarn test
The error posted above is thrown. This is triggered by astorije/repro-clarity-proxy-set-disabled index.test.tsx#L35-L54

Expected behavior
When I comment out this line, the test passes as expected.
Using the repo above, open<EMAIL_ADDRESS>and comment out L191. Run the tests again and they will be green. By adding screen.debug() after the expect statement, we can see the DOM as it's supposed to be rendered:

    <cds-select
      _nfg=""
      cds-control=""
      control-width="stretch"
      responsive=""
      status="neutral"
    >


Use object instead of array for space key in theme

Using arrays and indexes will end up with magic numbers in the source code.
all the code like <Box p={3} /> gonna say is that someone uses the fourth element in space object as a padding for Box and nothing more. it would be hard to determine should I use 2 or 3 while contributing as a team.
I know it can be defined as a new custom responsive style but why it's not a default behaviour (it will work fine for arrays too)
Example
  theme={
    //...
   space={
      sm: 0,
      md: 16,
      lg: 32,
   }
}

<Box p="sm" />

I wouldn’t consider them magic numbers at all, just steps on a scale. The teams I’ve worked with don’t seem to have any issue working with scales, but the example you’ve given will work if that’s what you prefer


Improve handling of iolist response bodies

As noted in #230, there were a few places where we weren't optimally deflating iolist response bodies. This PR fixes those cases, as well as updates a few comparisons of the form a == <<>> with byte_size(a) == 0 where we know for sure that a is a binary.

Can confirm this PR fixes the issue I reported with not being able to enable compression for http1 adapter.


GMapPointWidget based on PointWidget and BaseGMapWidget don't work

I followed the example showed on http://django-floppyforms.readthedocs.org/en/latest/geodjango.html#google-maps to create a PointWidget but the widget doesn't show up. However, when I use BaseOsmWidget instead, the widget appears on my form. Does anyone with the same issue?
PS.: I ran "manage.py test floppyforms" and "manage.py collectstatic" and everything is fine.

Hm, this might be related to #159


[AutoPR sql/resource-manager] Add managed instances swagger to 2018-06-01-preview

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

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


Maintain the namespace Mega

Hey Mahmoud,
Do you plan on this package maintaining the namespace Mega?
Cheers,
Paul C.

I will consider changing it to another name like Hello.. The project was named Mega Pro before publishing on Github then it was renamed to Hello API, however it's very easy to change it by using the "replace all" in your IDE. But you'll have to keep doing this for every "pull".

I like the Hello API name :) good call on the change.


When will the paper and code be released?

Knowledge-Guided Dynamic Modality Attention Fusion Framework for Multimodal Sentiment Analysis
Xinyu Feng, Yuming Lin, Lihua He, You Li, Liang Chang, Ya Zhou

We are honored that you are interested in our work. The paper has been published on Arxiv. However, since the code needs to be organized, it will be published later. Thank you for your attention.😄

When will the paper and code be released? thanks

Welcome to follow our work; the paper is now available for download at EMNLP2024. The initial version of the code has been updated in the corresponding repository (due to the different parameters of each dataset, adjustments are required during runtime). If you have any questions, you are welcome to communicate with us. Thanks! 🎉


Add error handling and analytics for broken insights

Right now if codeobject has any insight with broken data then we dont show anything at all.

looks fine, please squash all commits before the merge


Fix new clippy warnings in Rust 1.63.0

I'm unable to fix the ui tests on macOS, help appreciated!

I'll attempt this now.

Thanks!


driver: modem: ublox sara u2/r4 localization info

UBlox Sara U2/R4 Localisation info commands
Uses the UBlox cellular location sensor (CellLocate®)
+ULOCCELL
May have issues with the R4 as UBlox were problems with original firmware

@pabigot
Peter, Your input would be appreciated
I know I've over done the struct in the header, but was looking at all options so could be trimmed down later.
Billy..

@WilliamGFish There are a LOT of formatting changes which are hiding the actual code changes.  Can those be removed?

@WilliamGFish There are a LOT of formatting changes which are hiding the actual code changes. Can those be removed?

It's darn uncrustify which went a bit crazy.

After latest merges I will refactor changes.

This PR has bitrotted, @WilliamGFish can you resubmit?

On a side note, I don't think R4 supports this on the common firmware

On a side note, I don't think R4 supports this on the common firmware

Mike,
I think it does as it part of the CellLocate functionality which UBlox say is included in the Sara-R4 range. (https://www.u-blox.com/en/product/sara-r4-series)
It is not a widely advertised AT Command but should work fine with the U2/R4 driver

On a side note, I don't think R4 supports this on the common firmware

Mike,
I think it does as it part of the CellLocate functionality which UBlox say is included in the Sara-R4 range. (https://www.u-blox.com/en/product/sara-r4-series)
It is not a widely advertised AT Command but should work fine with the U2/R4 driver

This AT command is supported on default F/W but just take care because some AT commands are not supported yet whereas it is still in documented in datasheet. (I had bad experiments on some of them).
It should be good to test F/W version to take this into account ;)


zephir throw a CompilerException when this is used to call a function of implemented class

Hi, I'm trying convert my project (based on Vökuró) to zephir, but i have an error when i try compile the next script:
namespace Project\Forms;

use Phalcon\Forms\Form;
use Phalcon\Forms\Element\Text;
use Phalcon\Forms\Element\Password;
use Phalcon\Forms\Element\Submit;
use Phalcon\Forms\Element\Check;
use Phalcon\Forms\Element\Hidden;
use Phalcon\Validation\Validator\PresenceOf;
use Phalcon\Validation\Validator\Email;
use Phalcon\Validation\Validator\Identical;

class LoginForm extends Form
{

    public function initialize()
    {

        var email, password, remember, csrf, securityToken;

        // Email
        let email = new Text("email", [
            "placeholder": "Email",
            "class": "form-control"
        ]);

        email->addValidators([
            new PresenceOf([
                "message": "The e-mail is required"
            ]),
            new Email([
                "message": "The e-mail is not valid"
            ])
        ]);

        this->add(email);

        // Password
        let password = new Password("password", [
            "placeholder": "Password",
            "class": "form-control"
        ]);

        password->addValidator(new PresenceOf([
            "message":  "The password is required"
        ]));

        password->clear();

        this->add(password);

        // Remember
        let remember = new Check("remember", [
            "value": "yes"
        ]);

        this->add(remember);

        // CSRF
        let csrf = new Hidden("csrf");

        let securityToken = this->security->getSessionToken();

        csrf->addValidator(new Identical([
            "value": securityToken,
            "message": "CSRF validation failed"
        ]));

        this->add(csrf);

        this->add(new Submit("Login", [
            "class": "btn btn-primary btn-block btn-flat"
        ]));
    }
}

The compiler throw the follow error:
Zephir\CompilerException: Class 'Project\Forms\LoginForm' does not have a property called: 'security' in /home/mateusdemboski/Documents/zephir/project/project/Forms/loginform.zep on line 62
O.S.: Elementary 0.3.1 (Ubuntu 14.04).
Zephir version: 0.7.1b

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26771565-zephir-throw-a-compilerexception-when-this-is-used-to-call-a-function-of-implemented-class?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github).

This is the expected behavior. There is no property declared with that name. You have to use:
this->getDi()->get("security")->getSessionToken();

Work now, tks! =D


Readme updates

Link to our community Slack
Basic contributing guide

Great!
Should we post an invite link instead of just the slack-community link? Now people who are not already a part of it do not get access.

Great! Should we post an invite link instead of just the slack-community link? Now people who are not already a part of it do not get access.

Right! I'll update that. Thanks!


Cannot compile OpenZeppelin 5.x as a dependency

Environment information

OS: macOS

Python Version: 3.10

ape and plugin versions: 0.7.3

Contents of your ape-config.yaml (NOTE: do not post anything private like RPC urls or secrets!):

name: Terms Of Service

dependencies:
  - name: OpenZeppelin
    github: OpenZeppelin/openzeppelin-contracts
    version: 5.0.1

solidity:
  import_remapping:
    -<EMAIL_ADDRESS>
plugins:
  - name: solidity
    version: 0.7.0

What went wrong?
Please include information like:
OpenZeppelin 5.x does not work with ape.
ape pm compile -v debug
DEBUG: 'tmpeosen690' is not an 'ApeProject', but attempting to process as one.
WARNING: Compiled manifest produced no contract types! Are you missing compiler plugins?
SUCCESS: Package<EMAIL_ADDRESS>compiled.

# No files are compiled, scanned, or created

How can it be fixed?
Downgrade to OpenZeppelin 4.x.

I am confused, it looks like it is work? The last line in your output is
SUCCESS: Package<EMAIL_ADDRESS>compiled.

What is the part that makes this not working?

For some reason I am not able to reproduce, it compiled fine for me.

Do you have ape-solidity installed?

Encountered the same issue while trying to use solmate.
This is my ape-config.yaml
name: demo

plugins:
  - name: solidity
    version: 0.7.0

dependencies:
  - name: smartcontractkit
    github: smartcontractkit/chainlink-brownie-contracts
    version: 0.8.0
  - name: solmate
    github: transmissions11/solmate

solidity:
  version: 0.8.23
  import_remapping:
    -<EMAIL_ADDRESS>    - "@solmate=solmate"

Yeah, I didn't specify the version, but Ape created a folder for the latest v6. Even if I define the version using version: 6 or ref: "v6" it doesn't work
Made a repo with minimum code, that yields the same result https://github.com/rafael-abuawad/super-duper-journey

I cannot downgrade solmate to v5 because there isn't a v5, I wasn't able to find a workaround for this issue yet.

I mean, why are specifying the solidity version (0.7) in your ape-config? That is what I am curious about. Arent the OZ contracts mostly on 0.8?
Either way, I havent been able to reproduce yet!
You shouldn't have to downgrade.

your config is missing some things actually, i will open a PR against your repo that i had to do in order to get it to compile

@antazoey, I'm specifying the ape-solidity plugin version as 0.7.0
plugins:
  - name: solidity
    version: 0.7.0

But the Solidity version is the latest one.

But the Solidity version is the latest one.

Oops, sorry I was confused there.
Anyway, I opened a PR against your repro repo showing how the config needed to get that dependency to compile: https://github.com/rafael-abuawad/super-duper-journey/pull/1#pullrequestreview-1806356465
However I don't think it is the same reason you are having issues with OZ 5.0 as that one works out-of-the-gate for me.

I did find one other bug when working on the PR against the repro repo: https://github.com/ApeWorX/ape/pull/1819

I'm still not able to compile solmate, I have the exact same config as the one your mentioned on your PR but is not working for me.
$ ape pm compile -f
ERROR: 1 validation error for Config
exclude
  extra fields not permitted (type=value_error.extra)

Empty solmate/v6 folder, even after your changes. But it works for you? Thats what i'm not following

Empty solmate/v6 folder, even after your changes. But it works for you? Thats what i'm not following

Yes, it does work for me.

Perhaps solmate and OZ5 are different issues?
Here is a demo of using OpenZeppelin 5.0.1 in a project, like you are , and it just works for me, I am not sure why it doesn't for you but I am invested in finding out.

After deleting the cached stuff, it compiled and worked correctly!
rm -rf ~/.ape/packages/solmate
rm -rf ./.build
rm -rf contracts/.cache

I thought of this before but I didn't try to run the first command:
rm -rf ~/.ape/packages/solmate

Maybe something is being wrongly cached in the ~/.ape/packages directory.

After a bunch of testing, I deduce the problem is just that it did not fail in anyway when the dependency had no sources.
Like - obviously compiling an empty manifest is not going to produce contract types -- so we should have failed or at least warned much before that point.
It makes sense to just fail and not even cache a dependency if it is missing sources because that is useless and will always require a re-install after fixing the config or whatever needs to be done.


Issue 76 config bind and port

Rename current (string) 'port' config parameter to 'bind'.
Add int 'port' parameter (used in generating urls).

The v0.6.0 branch no longer exists. moving this to be based of the new v0.7.0 branch.

Pull Request Test Coverage Report for Build 873

11 of 17 (64.71%) changed or added relevant lines in 1 file are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.02%) to 46.038%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

server/server.go
11
17
64.71%

Files with Coverage Reduction
New Missed Lines
%

provider/gpkg/binary_header.go
2
100.0%

Totals

Change from base Build 871:
0.02%

Covered Lines:
5583

Relevant Lines:
12127

💛  - Coveralls

@ARolek Did this not make it into v0.6.0?

@JivanAmara I don't think it did. I will get the change into v0.7.0

After talking with @gdey we're going to change this behavior to:

the port config will be converted from a string to a uint
a new bind value will be added which will accept a string in the format of the current port config val.
if both port and bind are set we throw an error during config validation.

Looks like we found a way forward. But this never got accepted. Do we want to continue with this.
The way forward looks to be this:
port is going to be a uint
bind is a string.
both options are mutually exclusive

Looking at the code, it may make sense to close this PR, open and issue and create a fresh patch. Code has change sigificantly since this PR was opened.

@gdey I think we should too. This is not a priority, so I think we close this PR for now and revist at a later date.


Price Validation on Confirm Receipt

During Rev 0, it was mentioned that we could probably validate the values of total and subtotal by adding the item prices

https://github.com/allanfang1/grocery_spending_tracker_app/commit/af458f2db2c65403164135523ded3250799fedba


In VSCode can't upload models by dragging

When using the Inspector inside the VS Code extension, if I click to add new models to the scene I see this message:

It tells me I can upload a model by just dragging it there. However, if I do that, I don't upload the model. Instead I open a new window to see this model in 3D.
I can still upload the model if I click the icon with the plus arrow and select it from the explorer.
If there's any limitation in VS Studio that doesn't allow us to just drag the file into the screen, then we should at least change the text, to not mislead users.

Yes, that does work on the Web Editor, but in VSCode it gets overriden by the default behavior of VSCode which is opening the file in a new tab. We should try to identify when running within VSCode, or passing a parameter from outside to tell the inspector to change the copy in that part.

only on VS extension, won't fix


Using GeoPoint feature with nuxt-meilisearch and vue-instantsearch

Can't pass sort search parameter along with gePoint of meilisearch when using the useInstantSearch() composable along with vue-instantsearch ui components

Hi @fkaaziebu
Can share some code to verify if it's Algolia Comp / Meilisearch / module issue, it will help me a lot .
thanks


Allow deprecation of input values (arguments and input fields)

I haven't find anything about it in gql specs. Am I missing something?
private static function printInputObject(InputObjectType $type)
    {
        $fields = array_values($type->getFields());
        return self::printDescription($type) .
            "input {$type->name} {\n" .
                implode("\n", array_map(function($f, $i) {
                    return self::printDescription($f, '  ', !$i) . '  ' . self::printInputValue($f);
                }, $fields, array_keys($fields))) . "\n" .
            "}";
    }

doesn't print deprecation reason vs
private static function printObject(ObjectType $type)
    {
        $interfaces = $type->getInterfaces();
        $implementedInterfaces = !empty($interfaces) ?
            ' implements ' . implode(', ', array_map(function($i) {
                return $i->name;
            }, $interfaces)) : '';
        return self::printDescription($type) .
            "type {$type->name}$implementedInterfaces {\n" .
                self::printFields($type) . "\n" .
            "}";
    }

private static function printFields($type)
    {
        $fields = array_values($type->getFields());
        return implode("\n", array_map(function($f, $i) {
                return self::printDescription($f, '  ', !$i) . '  ' .
                    $f->name . self::printArgs($f->args, '  ') . ': ' .
                    (string) $f->getType() . self::printDeprecated($f);
            }, $fields, array_keys($fields)));
    }

Thanks!

While it makes sense for me, but deprecation is not described for input object types in GraphQL specs (or reference implementation). So I guess this question should be first raised in spec repo.
I'll close it for now, but will track specs / reference implementation updates in this regard.

There a PR that was created 9 days ago to handle deprecation of input fields.
Once it will be merged we can make the changes to this repo!
https://github.com/facebook/graphql/issues/197

@vladar I think this should be reopened now: https://github.com/graphql/graphql-spec/pull/525

@vladar I think this should be reopened now: https://github.com/graphql/graphql-spec/pull/525

This should be a great first PR, a relatively straightforward port of https://github.com/graphql/graphql-js/pull/2733. Any takers?

This should be a great first PR, a relatively straightforward port of https://github.com/graphql/graphql-js/pull/2733. Any takers?

Hello, @spawnia
I've created a PR to resolve this issue: #1382

Thank you @TaProhm, released with https://github.com/webonyx/graphql-php/releases/tag/v15.4.0.


Questions regarding this crate

Hi I have some questions regarding this crate.

Does this crate support Android, if I were to use something like android-ndk-rs crate along with this crate?
Is it stable or beta?
Is it immediate or retained mode?

I had a similar discussion on discord a few moments ago!
1- Yes but it's experimental. I couldn't get it to work with android-ndk-rs, I think because of conflicting implementation of Android's NativeActivity. It works with Android Studio (only tested on Windows though, but should work on other systems).
2- I wouldn't say it's stable, at least not on Android.
3- It's retained mode.

I see thanks mate, I asked this question before asking on Discord :)

No problem. Glad to answer here as well :)


Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

Any info when this will be updated?

@lifeiscontent https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html

This warning is shown when using react 15.5.*. basically, now it's just a warning, but in react16 the application might break. the PropTypes should now be imported from 'prop-types' package, and not from the react package.
The react team encourage us to stay up-to-date with the latest packages.

@chen199 I have a question.
Can I make this warning invisible?

@konojunya well, basically what happens it the react uses console.error( to print the warning to the console. They do it only because they really really really want you to make this error go "the way it should", i.e by fixing the code (which is very easy- simply install the prop-types package, and the import it for the relevant file instead from the React module), or update the other dependencies that cause this error (react-router 3.* for example). This way, you can be sure that on version 16 you'll be safe. of course you can override or workaround this print, but it's really not recommended.

You can use the production version of react which will not throw any
warnings.
On Sat, 15 Apr 2017 at 6:02 PM, Chen<EMAIL_ADDRESS>wrote:

@konojunya https://github.com/konojunya well, basically what happens it
the react uses console.error( to print the warning to the console. They do
it only because they really really really want you to make this error go
"the way it should", i.e by fixing the code (which is very easy- simply
install the prop-types package, and the import it for the relevant file
instead from the React module), or update the other dependencies that cause
this error (react-router 3.* for example). This way, you can be sure that
on version 16 you'll be safe. of course you can override or workaround this
print, but it's really not recommended.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/react-dnd/react-dnd/issues/731#issuecomment-294290578,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA_31qiig9BCsYZjVYpGOvma4iMX3hBeks5rwLjZgaJpZM4M4iok
.

--
Regards,
Gagan

@chen199 @theTechie Thanks.
I can invisible this warning when set the webpack configure to production.
// webpack.config.js
plugins: [
  new webpack.DefinePlugin({
    "process.env": {
      "NODE_ENV": JSON.stringify("production")
    }
  })
]

This is fixed in the master branch. It would be nice to have a new release.

We need a new release! Or just grab it straight from the git repo...

We need a new release! Or just grab it straight from the git repo...

Grabbing from the git repo fails for me, as npm postinstall is running a lerna command, which isn't packaged as a dependency…

@darthtrevino cut a release please :D ❤

I'm on vacation in the UK at the moment. I'll cut a release early next week
On Wed, May 3, 2017, 11:57 AM Aaron Reisman<EMAIL_ADDRESS>wrote:

@darthtrevino https://github.com/darthtrevino cut a release please :D ❤
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/react-dnd/react-dnd/issues/731#issuecomment-298880269,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAG7iDLONVBG4QOLzTRC4yn_sh9DiprTks5r2F20gaJpZM4M4iok
.

Any update?

AFAIK this was released a few days ago.

Having the same warnings. Any updates on the release??

This has been released already
On Mon, May 15, 2017 at 10:13 PM, Mohammed Shaffi<EMAIL_ADDRESS>wrote:

Having the same warnings. Any updates on the release??
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/react-dnd/react-dnd/issues/731#issuecomment-301677401,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAG7iJxtdBGF1xilTj6uDqFweB0kpqN6ks5r6TBrgaJpZM4M4iok
.

I'm having this issue with the last version<EMAIL_ADDRESS>Tested on a fresh project just to make sure it was not coming from my code.


40 - Gradient Generator Added #4

Wonderful Project 🔥🤩
@Hetu1107 Thank you for your contribution. Looking forward to more such amazing contributions 🥂


Cannot find module 'q'

Cannot find module 'q' when platform add browser

Update template hooks https://github.com/caiobiodere/cordova-template-framework7-vue-webpack/issues/152

Please update your Cordova version to the new 9.0.0.
If you don't know how to do it you can see at Cordova Installation


Plugins in this Workspace Should Have a Mandatory SECURITY.md

During looking into the new plugin based structure for v2 I noticed that there is no threat model, security boundary assumptions and way to contact the original author or maintainer in a reasonable secure way.
I would propose to create a template for this file, apply it to existing plugins and once it has matured require it for all officially maintained plugins (aka all plugins in this workspace).

This is a fantastic idea. Can you make a template and start adding them in a PR?


Add footer

hey @ItIsOHM we can add footer which will enhance the ui/ux of the website. Please assign it to me under SWOC.

Can I take this issue? Please assign it to me.

@itsmeabhishek03 since I have already assigned an issue to you, I'll be assigning this to @younikarn for now.

I want to work on this issue

@younikarn any updates yet? Or should I assign @SadanandMiskin to it?

Hey @SadanandMiskin, since @younikarn hasn't responded yet, I'll assign this to you. You can open a draft PR to discuss about the footer.

@ItIsOHM what are the this needed to be included in footer part?


SSH connection to netopeer2-server fail

Hi,
When trying to use PuTTY to connect to server, login as root, connection is closed, could you please help?

If you knew some in-depth information about SSH, PuTTY error with netopeer2 error provide the exact reason why this has failed. But in short, netopeer2 is a NETCONF server and has no other features meaning you can connect only with a NETCONF client and remote shell (which PuTTY requests by default) is not available.

So it means if I want to config server, like callhome settings, I must use NETCONF client to connect and then send 'edit-config' command?

Well, yes, I suppose. In general it means you can communicate only using NETCONF.

Hi Michal,
I tried with another NETCONF client which has 'oranuser' as username and a password, how can I set them in ssh_callhome.xml example you provided?

Currently, you cannot connect by SSH using a user that is not present locally on the system.

Use root as user, now SSH can connect, thanks.


question about rclc_publisher_init_best_effort()

Issue template

M5 stack Atom Lite (esp32 core)
ubuntu 20.04 + ros2 foxy
micro_ros_arduino

Steps to reproduce the issue

Sorry for my poor English..
I try to publish the topic /turtle1/cmd_vel from M5stack to ROS2 foxy to control the turtle, and it works well. The turtlesim moves in a correct way. In this case, I used the rclc_publisher_init_default() for the reliable communication.
I also found there is another function rclc_publisher_init_best_effort() can improve the publish frequency. But when I used the rclc_publisher_init_best_effort(), the turtle didn't move! I'm sure the code was complied sucessfully and there was /turtle1/cmd_vel topic in the ros2 environment. And the turtle1/cmd_vel topic has a correct output that I have checked it using the command ros2 topic echo /turtle1/cmd_vel.

Start with https://github.com/micro-ROS/micro_ros_arduino/blob/humble/examples/micro-ros_publisher/micro-ros_publisher.ino

Change the example code to publish geometry_msgs/msg/Twist as below.
#include <micro_ros_arduino.h>

#include <stdio.h>
#include <rcl/rcl.h>
#include <rcl/error_handling.h>
#include <rclc/rclc.h>
#include <rclc/executor.h>

#include <geometry_msgs/msg/twist.h>  //changed!

rcl_publisher_t publisher;
geometry_msgs__msg__Twist msg; //changed!-->modify msg type <twist__struct.h>
rclc_executor_t executor;
rclc_support_t support;
rcl_allocator_t allocator;
rcl_node_t node;
rcl_timer_t timer;

#define LED_PIN 27 //changed!-->Modify M5 stack Atom Lite LED pin

#define RCCHECK(fn) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){error_loop();}}
#define RCSOFTCHECK(fn) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){}}

void error_loop(){
  while(1){
    digitalWrite(LED_PIN, !digitalRead(LED_PIN));
    delay(100);
  }
}

void timer_callback(rcl_timer_t * timer, int64_t last_call_time)
{
  RCLC_UNUSED(last_call_time);
  if (timer != NULL) {
    RCSOFTCHECK(rcl_publish(&publisher, &msg, NULL));

	static int cnt = 0;
	msg.linear.x = 0.2;                            //const linear.x
	msg.angular.z = 1.0 - 0.001*cnt;               //variable angular.z
	cnt++;
  }
}

void setup() {
  set_microros_transports();

  pinMode(LED_PIN, OUTPUT);
  digitalWrite(LED_PIN, HIGH);

  delay(2000);

  allocator = rcl_get_default_allocator();

  //create init_options
  RCCHECK(rclc_support_init(&support, 0, NULL, &allocator));

  // create node
  RCCHECK(rclc_node_init_default(&node, "micro_ros_arduino_node", "", &support));

  // create publisher
  RCCHECK(rclc_publisher_init_best_effort(
    &publisher,
    &node,
    ROSIDL_GET_MSG_TYPE_SUPPORT(geometry_msgs, msg, Twist),
    "turtle1/cmd_vel"));  //changed!-->modify topic name

  // create timer,
  const unsigned int timer_timeout = 1000;
  RCCHECK(rclc_timer_init_default(
    &timer,
    &support,
    RCL_MS_TO_NS(timer_timeout),
    timer_callback));

  // create executor
  RCCHECK(rclc_executor_init(&executor, &support.context, 1, &allocator));
  RCCHECK(rclc_executor_add_timer(&executor, &timer));

  // changed!-->msg initialization
  msg.linear.x=0;
  msg.linear.y=0;
  msg.linear.z=0;
  msg.angular.x=0;
  msg.angular.y=0;
  msg.angular.z=0;
}

void loop() {
  delay(100);
  RCSOFTCHECK(rclc_executor_spin_some(&executor, RCL_MS_TO_NS(100)));
}

ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyUSB0

ros2 run turtlesim turtlesim_node

the turtle1/cmd_vel topic is running normal, but the turtle doesn't move!

when I used the rclc_publisher_init_default() instead of rclc_publisher_init_best_effort(), everything is OK! The turtle is moving!

Expected behavior
The turtle shoule be move in a correct way.
Actual behavior
The turtle doesn't move when I used rclc_publisher_init_best_effort().
However, everyhing is OK when I used rclc_publisher_init_default().
Additional information
I use the rqt_graph to check the releated topic information, it seems everything is OK. But the turlte doesn't move when I used the function rclc_publisher_init_best_effort().

It seems that rclc_publisher_init_best_effort() has a bug..

In general, in ROS a reliable subscription is not compatible with a best effort publisher: https://docs.ros.org/en/rolling/Concepts/About-Quality-of-Service-Settings.html#qos-compatibilities


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-k8s-26-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2631

Questions ?
Please refer to the Backport tool documentation


error connecting to master in master log

Hi. I am testing with a master+slave cluster and in the master's log I see this every 10 seconds:
019-09-04T20:51:09.222850Z 50 [ERROR] Slave I/O for channel '': error connecting to master 'sys_replication@//mysql-cluster-mysql-0.mysql.mysql:3306' - retry-time: 10  retries: 11973, Error_code: 200

I have the feeling this started after the previous master was terminated and the previous slave was promoted. So the ex slave now master seems to be still trying to connect to the other one or something like that. According to Orchestrator the replication is OK.
What can explain that error in the logs?
Thanks

The node that tryes to replicate from a hostname that contains // it means that is detached. This is set by Orchestrator. Usually, during a failover, the replica that will be promoted as master is detached.
This is not an error that affects the cluster functionality, because the orchestrator will work as expected.


[Integration Test] Add crds to test env to support csi snapshotter

Describe the bug
Add crds from https://github.com/kubernetes-csi/external-snapshotter/tree/master/client/config/crd to support
the tests test_csi_volumesnapshot_basic, test_csi_volumesnapshot_restore_existing_backup , test_csi_volumesnapshot_deletion_retain
https://github.com/longhorn/longhorn-tests/blob/master/manager/integration/tests/test_csi.py#L553

The tests related to rwx are merged and have been passing from a few nightly test run.


Ho to Update API key?

I have recently deleted my initial API key and created a new one; now I do not know how to update it. Can anyone help please?

You need to open the sidebar version of the extension, then hit the Settings button, and you can update your API key there.


Runtime type checker for Interpreter

Even though we already support type analysis on ECMA-262 without actual program execution. A runtime type checker for the interpreter would help detect bugs in type annotations.
Please add an option -eval:tycheck for the runtime type checker.

It is already implemented in #106. Thus, I close this issue.


Add Delete Users API

Adding Users delete API support to gem

Hi @wenga86,
Unfortunately, @hugobast is unable to maintain this project anymore, leaving it pretty much unmaintained. Would you be interested in taking that on?

Hi Daniel,
Yes I would be happy to take that on.

@DanielWright - Are you able to cut a new release to rubygems.org or add me as a contributor to the gem?

@wenga86 what's your Rubygem email, I'll add you

<EMAIL_ADDRESS>

Give it a try!

It worked! Thank you @hugobast


how to build a string key with object value ?[C#]

how to build a string key with object value (C# version)?  any documents or examples ?

I tried a minimal repro, but got System.NullReferenceException:“未将对象引用设置到对象的实例。”

    public class GEKey
    {
        public string key;
        public GEKey Clone()
        {
            return this;
        }

        public long GetHashCode64()
        {
            return key.GetHashCode();
        }

        public bool Equals(GEKey otherKey)
        {
            return key.Equals(otherKey.key);
        }

        public void Serialize(Stream toStream)
        {
            new StreamWriter(toStream).WriteLine(key);
        }

        public void Deserialize(Stream fromStream)
        {
            key = new StreamReader(fromStream).ReadLine();
        }
    }

    public class GEValue
    {
        public string value;
        public GEValue Clone()
        {
            return this;
        }

        public void Serialize(Stream toStream)
        {
            new StreamWriter(toStream).WriteLine(value);
        }

        public void Deserialize(Stream fromStream)
        {
            value = new StreamReader(fromStream).ReadLine();
        }
    }

    public class GEInput
    {

    }

    public class GEOutput
    {
        public GEValue value;
    }

    public class GEContext
    {

    }

    public class GEFunctions : IUserFunctions<GEKey, GEValue, GEInput, GEOutput, GEContext>
    {
        public void CopyUpdater(GEKey key, GEInput input, GEValue oldValue, ref GEValue newValue)
        {

        }

        public void InitialUpdater(GEKey key, GEInput input, ref GEValue value)
        {

        }

        public void InPlaceUpdater(GEKey key, GEInput input, ref GEValue value)
        {

        }

        public void ReadCompletionCallback(GEContext ctx, GEOutput output, Status status)
        {

        }

        public void Reader(GEKey key, GEInput input, GEValue value, ref GEOutput dst)
        {
            dst.value = value;
        }

        public void RMWCompletionCallback(GEContext ctx, Status status)
        {

        }

        public void UpsertCompletionCallback(GEContext ctx)
        {

        }
    }

Program.cs
static void Main(string[] args)
        {
            var log = FasterFactory.CreateLogDevice(Path.GetTempPath() + "hybridlog");
            var objlog = FasterFactory.CreateObjectLogDevice(Path.GetTempPath() + "hybridlog");
            var h = FasterFactory.Create<GEKey, GEValue, GEInput, GEOutput, GEContext, GEFunctions>
                (128, new GEFunctions(), new LogSettings { LogDevice = log, ObjectLogDevice = objlog, MemorySizeBits = 14, PageSizeBits = 10 });

            for (int i = 0; i < 20000; i++)
            {
                h.Upsert(new GEKey { key = $"site{i}.com" }, new GEValue { value = $"1.2.3.{i}" },default(GEContext),0);
                if (i%32==0)
                {
                    h.Refresh();
                }
            }

            while (true)
            {
                Console.Write("请输入查询的域名：");
                var line = Console.ReadLine();
                if (line.ToLower()=="quit")
                {
                    break;
                }

                GEOutput geout = new GEOutput();
                var status= h.Read(new GEKey { key = line }, new GEInput(), ref geout, new GEContext(), 0);
                Console.WriteLine($"Status={status}, Key={line}, Value={geout.value}");
                var isComplete=h.CompletePending(true);
            }
        }

Thanks for the repro. The main issue is that you were not calling h.StartSession(). Every thread that uses FASTER needs to register itself by calling this method.
Also, there were two small bugs in FASTER with colliding records that I have fixed, so please pull the latest to see the working version.
I also made a few bugfixes to your code, in order to use FASTER correctly (for serialization/deserialization, and when requests go pending due to I/O). See the fixed code below:
using FASTER.core;
using System;
using System.IO;
using System.Text;

namespace ClassCache
{
    public class GEKey
    {
        public string key;
        public GEKey Clone()
        {
            return this;
        }

        public long GetHashCode64()
        {
            return key.GetHashCode();
        }

        public bool Equals(GEKey otherKey)
        {
            return key.Equals(otherKey.key);
        }

        public void Serialize(Stream toStream)
        {
            byte[] messageBytes = Encoding.Default.GetBytes(key);
            var writer = new BinaryWriter(toStream);
            writer.Write(messageBytes.Length);
            writer.Write(messageBytes);
        }

        public void Deserialize(Stream fromStream)
        {
            var reader = new BinaryReader(fromStream);
            var length = reader.ReadInt32();
            var array = reader.ReadBytes(length);
            key = Encoding.Default.GetString(array);
        }
    }

    public class GEValue
    {
        public string value;
        public GEValue Clone()
        {
            return this;
        }

        public void Serialize(Stream toStream)
        {
            byte[] messageBytes = Encoding.Default.GetBytes(value);
            var writer = new BinaryWriter(toStream);
            writer.Write(messageBytes.Length);
            writer.Write(messageBytes);
        }

        public void Deserialize(Stream fromStream)
        {
            var reader = new BinaryReader(fromStream);
            var length = reader.ReadInt32();
            var array = reader.ReadBytes(length);
            value = Encoding.Default.GetString(array);
        }

    }

    public class GEInput
    {

    }

    public class GEOutput
    {
        public GEValue value;
    }

    public class GEContext
    {

    }

    public class GEFunctions : IUserFunctions<GEKey, GEValue, GEInput, GEOutput, GEContext>
    {
        public void CopyUpdater(GEKey key, GEInput input, GEValue oldValue, ref GEValue newValue)
        {

        }

        public void InitialUpdater(GEKey key, GEInput input, ref GEValue value)
        {

        }

        public void InPlaceUpdater(GEKey key, GEInput input, ref GEValue value)
        {

        }

        public void ReadCompletionCallback(GEContext ctx, GEOutput output, Status status)
        {
            if (status == Status.OK)
                Console.WriteLine($"Status={status}, Value={output.value.value}");
            else
                Console.WriteLine($"Status={status}");
        }

        public void Reader(GEKey key, GEInput input, GEValue value, ref GEOutput dst)
        {
            dst.value = value;
        }

        public void RMWCompletionCallback(GEContext ctx, Status status)
        {

        }

        public void UpsertCompletionCallback(GEContext ctx)
        {

        }
    }

    public class Program
    {
        static void Main(string[] args)
        {
            var log = FasterFactory.CreateLogDevice(Path.GetTempPath() + "hybridlog");
            var objlog = FasterFactory.CreateObjectLogDevice(Path.GetTempPath() + "hybridobjlog");
            var h = FasterFactory.Create<GEKey, GEValue, GEInput, GEOutput, GEContext, GEFunctions>
                (128, new GEFunctions(), new LogSettings { LogDevice = log, ObjectLogDevice = objlog, MemorySizeBits = 14, PageSizeBits = 10 });
            h.StartSession();

            for (int i = 0; i < 20000; i++)
            {
                h.Upsert(new GEKey { key = $"site{i}.com" }, new GEValue { value = $"1.2.3.{i}" }, default(GEContext), 0);
                if (i % 32 == 0)
                {
                    h.Refresh();
                }
            }

            while (true)
            {
                Console.Write("Enter input：");
                var line = Console.ReadLine();
                if (line.ToLower() == "quit")
                {
                    break;
                }

                GEOutput geout = new GEOutput();
                var status = h.Read(new GEKey { key = line }, new GEInput(), ref geout, new GEContext(), 0);

                if (status == Status.PENDING)
                {
                    Console.WriteLine($"Status={status}, Key={line}");
                    var isComplete = h.CompletePending(true);
                }
                else
                {
                    Console.WriteLine($"Status={status}, Key={line}, Value={geout.value.value}");
                }
            }

            h.StopSession();
        }
    }
}

Here is a sample run on my side:
Enter input: site19999.com
Status=OK, Key=site19999.com, Value=<IP_ADDRESS>99
Enter input: site20000.com
Status=PENDING, Key=site20000.com
Status=NOTFOUND
Enter input: site100.com
Status=PENDING, Key=site100.com
Status=OK, Value=<IP_ADDRESS>
Enter input: blah.com
Status=PENDING, Key=blah.com
Status=NOTFOUND
Enter input:

Note that if an item is in memory, it will find it immediately. Otherwise, it will report pending and the function callback (ReadCompletionCallback) will have the result delivered.

Separately, I noticed you set the hash table size at 128. This is really small for practical use as the number of hash buckets is small. If you set it to a larger value (e.g., 1L << 20) it takes only 8MB space (each bucket is usually 8 bytes) but will give much better hashing performance avoiding long hash chains.
Second, the hash function just returned the string.GetHashCode() which is 32 bits and not very good for FASTER collisions since many hash bits are zero. I would suggest creating a 64 bit hash code. At the least, you can use this as hash code (which I have done in the example above):
long x = key.GetHashCode();
return (x << 32) | x;

Finally, note that you have sized the in-memory portion of the hybrid log rather small at MemorySizeBits = 14, PageSizeBits = 10. This means each page of the log is of size 1024 bytes (around 80 entries per page since each record is 24 bytes of pointers). Also, there will be 16K of total memory space, which can hold only around 700 records in main memory, spilling older records to storage. This is pretty small, so only a small portion of your read hits will get served from memory. If you have more memory, you could increase the MemorySize and PageSize accordingly. The defaults are 34 and 25 respectively.

Two answers: (1) Since FASTER spills cold data to storage, you can potentially index billions of keys on a single box if you have sufficient local or remotely mounted storage. (2) You can build a simple distribution layer on top of our single node library, e.g., based on sharding by key hash. If someone in the community wants to try this, go for it! We don't have anything off the shelf right now.

@badrishc  Ok, thanks, I am not familiar with based on sharding by key hash, but I am glad to try to do that.

I noticed you set the hash table size at 128. This is really small for practical use ...

I read the paper and it appears to suggest that the hash table expands when full (or close to full?)? Is this the case? And If so, is the only reason to start off at a bigger hash table size to avoid expansions?
Is more info available about how the hash table expansion works? And also, is there more info available about how performance changes during a hash table expansion?


Provided Dockerfile - Build missing .next/BUILD_ID

Link to reproduction
No response
Describe the Bug
I've built the provided Dockerfile from npx create-payload-app my-project -t website pushed my image to dockerhub and I'm currently trying to deploy the sample app on Kubernetes to showcase to my team.
The container won't start, it fails with the following error:
(node:225) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
unhandledRejection [Error: ENOENT: no such file or directory, open '/home/node/app/.next/BUILD_ID'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/node/app/.next/BUILD_ID'
}

Am I missing something? has anyone tested this recently? there are no code changes and the .next directory does not get added to the built container at all. (I've also ran the built container locally to verify)

To Reproduce

Create a new app using
npx create-payload-app my-project -t website
Spin up mongo in the docker-compose stack so the payload build script can access it
docker compose up mongo
Build the production container
docker build --network host -t payloadcms:v0.0.1 --no-cache .
Run the container
docker run --rm --network=host --env NEXT_PUBLIC_SERVER_URL=http://localhost:3000 --env PAYLOAD_PUBLIC_SERVER_URL=http://localhost:3000 --env PORT=3000 --env DATABASE_URI=mongodb://localhost:27017/<<redacted>> --env PAYLOAD_SECRET=<<redacted>> REVALIDATION_KEY=<<redacted>> --env NEXT_PRIVATE_REVALIDATION_KEY=<<redacted>> --env PAYLOAD_CONFIG_PATH=/home/node/app/dist/payload/payload.config.js payloadcms:v0.0.1

Payload Version
the latest version that is produced from npx create-payload-app my-project -t website
Adapters and Plugins
db-mongodb

I've managed to get this working, adding COPY --from=builder /home/node/app/.next ./.next to the dockerfile solved it.
I'll open a PR over the weekend if I get chance, unless anyone wants to pop a hotfix in instead.

Hey @shutupflanders — thanks for pointing us to a fix!
My only thought is that we should we only copy if the .next folder exists. If you would like to make a PR for this, that would be absolutely fantastic. We would happily merge. I believe we have dockerfiles for each template, so this PR would need to address the dockerfile in 3 places.
Let's get you added as a contributor!

Thanks @jmikrut - #4029 created.
There's no mechanism for Docker to fail gracefully if a directory does not exist when trying to copy, so I've done the next best thing - create it first.

Responded to #4029 with feedback, waiting on updates.