Amplify Push - Cannot read property 'PhysicalResourceId' of undefined

Note: If your question is regarding the AWS Amplify Console service, please log it in the
AWS Amplify Console repository

Which Category is your question related to?
CLI and iOS
specifically when running "amplify push" after adding datastore to iOS project
Amplify CLI Version
6.1.1
What AWS Services are you utilizing?
Amplify (Auth, Datastore)
Provide additional details e.g. code snippets
So I followed the tutorial for adding datastore (https://docs.amplify.aws/lib/datastore/getting-started/q/platform/ios)
I installed the packages via swift package manager NOT Cocoapods
followed the tutorial for init, add api, codegen models, etc.
I worked with 2 schema locally with the app
when running 'amplify push' I get the following:
✔ Successfully pulled backend environment dev from the cloud.

    Current Environment: dev

┌──────────┬────────────────┬───────────┬───────────────────┐
│ Category │ Resource name  │ Operation │ Provider plugin   │
├──────────┼────────────────┼───────────┼───────────────────┤
│ Api      │ 'myappname'         │ Update    │ awscloudformation │
├──────────┼────────────────┼───────────┼───────────────────┤
│ Auth     │ 'myauthname' │ No Change │ awscloudformation │
└──────────┴────────────────┴───────────┴───────────────────┘
? Are you sure you want to continue? Yes

GraphQL schema compiled successfully.

Edit your schema at /Users/[my_name]/Desktop/[folder]/[myappname]/amplify/backend/api/[myappname]/schema.graphql or place .graphql files in a directory at /Users/[my_name]/Desktop/[folder]/[myappname]/amplify/backend/api/[myappname]/schema
✖ An error occurred when pushing the resources to the cloud

Cannot read property 'PhysicalResourceId' of undefined
An error occurred during the push operation: Cannot read property 'PhysicalResourceId' of undefined

I've tried clearing my local data, getting rid of generated files and starting 'em from scratch, etc. The only thing I can see that is different is that I have Data created via the AdminUI but that has never been used and I can't find any reason there would be conflicts with that. Thanks!

Hey @yuth thanks for the response!
From my understanding I was simply adding a few new fields as described below.
 Could you try to deploy and send us the CLI logs from <home-folder>/.amplify/logs folder which could provide us more details on what is happening

Sorry I got caught up in another issue. Here are the relevant contents of the log after running "amplify push":
I tried my best to comment the "myinfo" part for urls, ids, etc. and keep what I hope is the error.
2021-10-21T21:08:24.371Z|error : amplify-provider-awscloudformation.push-resources.run([{"resourcesToBeCreated":[],"resourcesToBeUpdated":[{"service":"AppSync","providerPlugin":"[]rmation","output":{"authConfig":{"defaultAuthentication":{"authenticationType":"API_KEY","apiKeyConfig":{"apiKeyExpirationDays":365,"description":"crlpAPIkey"}},"additionalAuthenticationProviders":[{"authenticationType":"AWS_IAM"},{"authenticationType":"AMAZON_COGNITO_USER_POOLS","userPoolConfig":{"userPoolId":"[]myinfo"}}]},"GraphQLAPIIdOutput":"[]myinfo","GraphQLAPIEndpointOutput":"https://myinfo.appsync-api.us-west-2.amazonaws.com/graphql","GraphQLAPIKeyOutput":"[]a2-[]myinfo"},"lastPushTimeStamp":"2021-10-07T23:50:00.513Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-myinfo-deployment/amplify-cfn-templates/api/cloudformation-template.json","logicalId":"[]LPV0"},"lastPushDirHash":"TRyxd8pn3qV+fqp+nwBDhCe+LnU=","resourceName":"[]PV0","category":"api"}],"resourcesToBeSynced":[],"resourcesToBeDeleted":[],"tagsUpdated":false,"allResources":[{"service":"Cognito","providerPlugin":"[]rmation","dependsOn":[],"customAuth":false,"frontendAuthConfig":{"loginMechanism":["EMAIL"],"signupAttributes":["EMAIL"],"passwordProtectionSettings":{"passwordPolicyMinLength":8,"passwordPolicyCharacters":[]},"mfaConfiguration":"OFF","mfaTypes":["SMS"]},"output":{"UserPoolId":"[]s-[]myinfo-[]myinfo","AppClientIDWeb":"[]myinfo","AppClientID":"[]i6ufdsvkfrt","IdentityPoolId":"[]s-[]st-[]myinfo-[]0c-[]myinfo-[]3e-[]myinfo","UserPoolArn":"[]ognito-[]:us-[]st-[]8:userpool/[]s-[]st-[]myinfo","IdentityPoolName":"[]ool_myinfo__dev","UserPoolName":"[]pool_myinfo"},"lastPushTimeStamp":"2021-10-21T21:08:07.713Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-myinfo-deployment/amplify-cfn-templates/auth/[]myinfo-cloudformation-template.yml","logicalId":"[]myinfo"},"resourceName":"myinfo","category":"auth"},{"service":"AppSync","providerPlugin":"[]rmation","output":{"authConfig":{"defaultAuthentication":{"authenticationType":"API_KEY","apiKeyConfig":{"apiKeyExpirationDays":365,"description":"crlpAPIkey"}},"additionalAuthenticationProviders":[{"authenticationType":"AWS_IAM"},{"authenticationType":"AMAZON_COGNITO_USER_POOLS","userPoolConfig":{"userPoolId":"[]myinfo"}}]},"GraphQLAPIIdOutput":"[]myinfo","GraphQLAPIEndpointOutput":"https://myinfo.appsync-api.us-west-2.amazonaws.com/graphql","GraphQLAPIKeyOutput":"[]a2-[]myinfo"},"lastPushTimeStamp":"2021-10-07T23:50:00.513Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-myinfo-deployment/amplify-cfn-templates/api/cloudformation-template.json","logicalId":"[]LPV0"},"lastPushDirHash":"TRyxd8pn3qV+fqp+nwBDhCe+LnU=","resourceName":"[]PV0","category":"api"}]}])
TypeError: Cannot read property 'PhysicalResourceId' of undefined
Here is the beginning of the file in case you need it (although nothing really looks wrong here, I figured I'd add the context for the error code):
2021-10-21T21:07:57.022Z|info : amplify push core
2021-10-21T21:07:57.099Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2021-10-21T21:08:05.861Z|info : amplify-provider-awscloudformation.aws-s3.deleteDirectory.s3.getAllObjectVersions([{"BucketName":"myinfo"}])
2021-10-21T21:08:05.862Z|info : amplify-provider-awscloudformation.aws-s3.getAllObjectKey.s3.listObjectVersions([{"Bucket":"myinfo","Prefix":"hooks/"}])
2021-10-21T21:08:06.166Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"myinfo.zip"},null])
2021-10-21T21:08:06.168Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"myinfo.zip","Bucket":"myinfo"}])
2021-10-21T21:08:06.630Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"myinfo"}])
2021-10-21T21:08:06.631Z|info : amplify-provider-awscloudformation.aws-cfn.updateamplifyMetaFileWithStackOutputs.cfn.describeStackResources([{"StackName":"myinfo"}])
2021-10-21T21:08:07.166Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[]rmation:us-myinfo"}])
2021-10-21T21:08:07.168Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[]rmation:us-myinfo:stack/myinfo"}])
2021-10-21T21:08:07.717Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[]ify-[]json","Bucket":"[]ify-myinfo-[]ment"}])

Closing due to a lack of followup, but we can revisit this issue if needed.


feat(pixels): add my new pixel

Checklist

[x ] I ran npm test locally and it passed without errors.

[x ] I only edited the _data/pixels.json file.

[x ] I entered the username in the pixels.json that I'm also using to create this pull request.
[x ] I acknowledge that all my contributions will be made under the project's license.

what i need to do , to merge my changes to your main branch . please help me because i am new to
open source contribtion.

please merge my changes if i need have to do something please tell me.


warn if project contains problems when running or debugging something

most of the time, errors in a file means that it won't run. if my project has compile errors that the IDE has picked up, i'd like a warning popup like "there are problems in this project. do still want to run/debug?"
i'm not sure if this is entirely a vscode issue or rather individual plugins. i assume depending on how you run a file (eg. a debug config, an inline run button, etc.) there might be plugin-specific changes required to support it.

This feature actually exists, if you have a preLaunchTask in your launch config, and that task has reported errors. I wouldn't hook this up to complain if there are any red squiggles in some file, because those can show up for many reasons without a direct relation to your launch.


Support asymmetric Dirichlet prior

According to Wallach’s paper, asymmetric, hierarchical Dirichlet prior over the document–topic distributions and a symmetric Dirichlet prior over the topic–word distributions results in significantly better model
This PR supports asymmetric alpha in following steps:

Add two extra tables to Multiverso. One is topic frequency table, a matrix to count each topics’       frequency. The other one is doc length table, a row to count how many document is with length k.
Initialize the two extra tables with random initialized documents
Learn alpha distribution with the two extra table every 5 iterations
Build alias table for leanred alpha distribution
Sample topics with learned alpha distribution and alias table. Meanwhile, update countings of topic frequency table if necessary

To use this new feature, please just run with an extra option "-num_alpha_iterations".
Please notice that there are two TODOs. One is Evaluation in asymmetric prior mode, the other is Inference with asymmetric prior.

Thanks for the great work!@hiyijian I'm really sorry for my late response. The implementation should be OK. I review the code and add some notes. I think it's OK to merge to the master.

@hiyijian I'm trying to use asymmetric lda. count you tell me your QQ or Wechat? I have some questions.

@lisendong  My implemention is on the top of source codes provided by @feiga , which I think is used in Microsoft only. However, my implemention is incorrect, I think. Fell free to concact me via<EMAIL_ADDRESS>

@hiyijian I'm tring to use your asymmetric prior version of lightlda that based on microsoft's code,I am seeing that you said "my implemention is incorrect",is that meaning your code still had some bug?

hi @hiyijian @feiga, why is this not merged yet? Are there are issues with the implementation?

hi @tangzhenyu and @koustuvsinha. I said "this implemention is incorrect" since I have not seen any improvement compared by feiga's original symmetric LDA, Sometimes seems even worse :( .


[question]: Unnecessary delay in scale operation?

Scaling an app takes 2 minutes (in the cli, not the cluster) because workflow it's searching for Scheduled state (the start of the container took less than 20 seconds)
DEBUG create srv-pdf
INFO srv-pdf: alejandro.debrito scaled containers web=1
INFO [srv-pdf]: alejandro.debrito scaled containers web=1
DEBUG scale srv-pdf-v137-web, img registry.xxxxxxx.cl:443/srv-pdf:git-ba8cb9d7, params {'build_type': 'buildpack', 'memory': {}, 'version': 'v137', 'cpu': {}, 'healthcheck': {}, 'app_type': 'web', 'num': 1, 'envs': {'NODE_ENV': 'production', 'REDIS_SENTINEL_NAME': 'cluster-services', 'APPLICATION_API': '0FDF4C7F-0593-4856-B9C7-A614CEBFE97A', 'REDIS_SENTINEL_HOSTS': '<IP_ADDRESS>:1505,<IP_ADDRESS>:1505,<IP_ADDRESS>:1505'}, 'tags': {}}, cmd "start web"
DEBUG scaling RC srv-pdf-v137-web in namespace srv-pdf from 0 to 1 replicas
DEBUG waiting for RC srv-pdf-v137-web to get a newer resource version than 151359939 (30s timeout)
DEBUG RC srv-pdf-v137-web has a new resource version 151361120
DEBUG waiting for 1 pods to be processed in srv-pdf namespace to be known by the k8s api (120s timeout)
DEBUG 1 out of 1 pods to be processed in namespace srv-pdf were found
DEBUG waiting for 1 pods to get to state Scheduled in srv-pdf namespace (120s timeout)
DEBUG waited 10s and 0 pods are in state Scheduled
DEBUG waited 20s and 0 pods are in state Scheduled
DEBUG waited 30s and 0 pods are in state Scheduled
DEBUG waited 40s and 0 pods are in state Scheduled
DEBUG waited 50s and 0 pods are in state Scheduled
DEBUG waited 60s and 0 pods are in state Scheduled
DEBUG waited 70s and 0 pods are in state Scheduled
DEBUG waited 80s and 0 pods are in state Scheduled
DEBUG waited 90s and 0 pods are in state Scheduled
DEBUG waited 100s and 0 pods are in state Scheduled
DEBUG waited 110s and 0 pods are in state Scheduled
DEBUG 0 out of 1 pods in namespace srv-pdf are in state Scheduled
DEBUG waiting for 1 pods in srv-pdf namespace to be in services (120s timeout)
DEBUG 1 out of 1 pods in namespace srv-pdf are in service
DEBUG create srv-pdf
<IP_ADDRESS> "POST /v2/apps/srv-pdf/scale/ HTTP/1.1" 204 - "Deis Client v2.0.0-dev"
<IP_ADDRESS> "GET /v2/apps/srv-pdf/containers/?page_size=100 HTTP/1.1" 200 264 "Deis Client v2.0.0-dev"

(I removed the "<IP_ADDRESS> "GET /healthz HTTP/1.1" 200 2 "Go 1.1 package http" lines from the log)

It should be okay to look the Scheduled state tho I must admit I'm a little fuzzy on why we use that one oppose to other approaches. But then again before the extra debug output it was hard to reason with various pieces.
I used to see a lot of those waits you have above there before but various improvements have cut that out for me. Do you still have that namespace around?


Problem with communication port

Problem with communication port in windows7
Traceback (most recent call last):
File "C:\lglaf\lglaf.py", line 504, in
main()
File "C:\lglaf\lglaf.py", line 477, in main
comm = autodetect_device()
File "C:\lglaf\lglaf.py", line 404, in autodetect_device
return FileCommunication(serial_path)
File "C:\lglaf\lglaf.py", line 259, in init
self.f = open(file_path, 'r+b')
IOError: [Errno 2] No such file or directory: u'COM11'

IOError: [Errno 2] Could not find file 'C:\lglaf\COM16'.: COM16


Update opentelemetry-api, ... to 1.34.0

About this PR
📦 Updates

io.opentelemetry:opentelemetry-api
io.opentelemetry:opentelemetry-sdk-testing

from 1.33.0 to 1.34.0
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.opentelemetry" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "io.opentelemetry" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #2052.


Reduce some lambda usage in python.

Codecov Report
Base: 25.40% // Head: 25.40% // No change to project coverage :thumbsup:

Coverage data is based on head (81c02cb) compared to base (fc47b7e).
Patch has no changes to coverable lines.

Additional details and impacted files
@@                Coverage Diff                @@
##           python-scripting     #780   +/-   ##
=================================================
  Coverage             25.40%   25.40%
=================================================
  Files                    70       70
  Lines                  5833     5833
  Branches                313      313
=================================================
  Hits                   1482     1482
  Misses                 4290     4290
  Partials                 61       61

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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


chore: version bump to 4.5.2

PR-Codex overview
This PR introduces version 4.5.2 of the Biconomy SDK with enhancements like session revoking, skip chain checks, and bug fixes.
Detailed summary

Added session revoking feature
Introduced skip chain checks flag
Improved error handling for incorrect chain setups
Updated documentation links
Enhanced signing of typed data

The following files were skipped due to too many changes: tests/account/read.test.ts, tests/modules/write.test.ts

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

conflicts

can merge once tests pass.


Update vendor folder

The files under vendor folder are disordered.

By  the command govendor list, we can see some vendored packages are unused and some are missing.
Some additional third-party, e.g. github.com/docker/distribution, github.com/docker/libtrust and github.com/go-sql-driver/mysql,  need to be downloaded when building  docker image.  It wastes a log of time while the network is not good

I suggest reorder the vendor folder with govendor tool, adding all dependent third-party project files under vendor folder.  So in the dockerfile, do not need to download other packages  but just copy harbor source files.

@zmlcc thanks for raising this.
github.com/docker/distribution, github.com/docker/libtrust and github.com/go-sql-driver/mysql are not in the vendor folder because it's advised by our legal team that we can not put the source code in our repo due to license issue.

@reasonerjt   What a pity
But partial adding file into vendor folder may cause problems of  dependency relationship of third-party project. And a litte hard for maintenance.
BTW,  what is the upgrade strategy for the vendors?    If I suggest to update some vendor projects (e.g.  beego), should I add open a new issue ?

I've updated to 1.6.1

fixed.


security parameters

Hi,
LogN = 18, what could be the proper value for pameters like LogQ?
Looks like the standard PDF doesn't have this LogQ when LogN=18.

BR

wait, looks like the proper LogQ is doubled when LogN increases by 1?
{18, 7048, 3.2} should also be good for 128-bit security?
By the way, what does here 128-bit security stand for? which object has 128 bits?
BR

Hi @macknight,
We provide default parameters which are aligned with the security standard and we will not give direct security advices for parameters that deviate from these default parameters. If you want create your own parameters, you should be aware of the security implications. You can estimate the security of your custom parameters with the lattice estimator (https://github.com/malb/lattice-estimator).

Hi @macknight,
We provide default parameters which are aligned with the security standard and we will not give direct security advices for parameters that deviate from these default parameters. If you want create your own parameters, you should be aware of the security implications. You can estimate the security of your custom parameters with the lattice estimator (https://github.com/malb/lattice-estimator).
128-bit actually stands for 2^128 ring operations

Other questions about this "128-bit actually stands for 2^128 ring operations".

2^128 ring operations are different from the concept of the ring degree, right?
what are these  2^128 ring operations in detail? addition, multiplication?
128-bit security, does it mean if anyone has a powerful computer with enough CPU, RAM and Disk which is able to comput 2^128 ring operations is able to crack this 128-bit security?

BR

1.\2. A ring operations is any operation in the ring (e.g. add, mul, inversion). The ring refers to the polynomial ring used by the scheme.

Yes, but it is as of nowday, and for the many years to come, not even concern. Even if everyone on earth joined hands and tried to do it, it would take an absurde amount of times the age of the universe.

1.\2. A ring operations is any operation in the ring (e.g. add, mul, inversion). The ring refers to the polynomial ring used by the scheme.
2^128 is an absurdly large number. Even if everyone on earth joined hands and tried to do it (with today's technology) they wouldn't succeed before the heat death of the universe (that's exaggerated but you get the point).

fantastic reply which is very vivid


Add django-stubs to the list of projects

Let's try it!

@hauntsaninja how can I test that the whole intergration worked?

Thanks for the quick review and merge! ❤

Yes, that'll work. I also just ran it locally before merging using mypy_primer -k django-stub --debug --old v1.10.0

Some strange resolution failure here when trying to install django-stubs: https://github.com/python/typeshed/actions/runs/10112015097/job/27965167268?pr=12433.
Hopefully just a fluke of some kind, I'll try rerunning

@flaeppe looks like our release is partially broken :(

I think we just need to make a release. We only prepared for one.

oh, I see then why it fails: we bumped the dependency in git and not release<EMAIL_ADDRESS>

But something seems quite off if we're installing . on master and run in to troubles. When installing in our CI, with pip, we set the env variable SETUPTOOLS_ENABLE_FEATURES=legacy-editable not sure if that affects anything

We need to install both . and ./ext, not just ..

#125


Migration from Symantec to Microsoft Defender

[Enter feedback here]

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

ID: e795a9bd-0d5a-ab4d-4f44-c1e365dce162
Version Independent ID: 429ebad4-c2ab-e481-0984-301a8900c14d
Content: Make the switch from non-Microsoft endpoint protection to Microsoft Defender for Endpoint
Content Source: microsoft-365/security/defender-endpoint/switch-to-microsoft-defender-migration.md
Product: m365-security
Technology: mde
GitHub Login: @denisebmsft
Microsoft Alias: deniseb

@JitenderPrasad Thank you for your feedback.
The migration from Symantec to Microsoft defender is carried out in Three phases

Preparation for your migration. (https://docs.microsoft.com/en-us/microsoft-365/security/defender-endpoint/switch-to-microsoft-defender-prepare?view=o365-worldwide)

Set up defender for endpoint (https://docs.microsoft.com/en-us/microsoft-365/security/defender-endpoint/switch-to-microsoft-defender-setup?view=o365-worldwide)

Onboard to defender for endpoint(https://docs.microsoft.com/en-us/microsoft-365/security/defender-endpoint/switch-to-microsoft-defender-onboard?view=o365-worldwide)

Hope this helps! If you have technical difficulties during the migration, Please contact Microsoft support via the needhelp section on the m365 admin center.
Thanks
Sri

@msbemba Thank you very much for the contribution and sharing this explanation. @JitenderPrasad Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Keep track of game winners

And add the option to display leaderboards, stats on the biggest pot, etc.

+1

+1


⚠ Bofrost.lu has degraded performance

In aa1c3ff, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1390 ms

Resolved: Bofrost.lu performance has improved in 94dae54 after 6 minutes.


[Bug]: Unable to batch Upload Icon Image

CSV2Notion Neo Version?
0.3.8
What OS are you using?
MacOS
OS Version or Linux distribution
macOS Monterey 12.6.9
Bug Description
Due to recent changes of Notion APIs, batch uploading of Icon Image is broken.
Log excerpt
2023-09-21 10:06:33,352 [INFO    ] Validating CSV & Notion DB schema
2023-09-21 10:06:34,221 [INFO    ] Uploading Marker Data Demo_V1.csv...
2023-09-21 10:06:50,153 [CRITICAL] Could not upload file /Users/XXX/Desktop/ZZZ/App/0.2.0/marker-chapter.png

@arjunprakash027 Have fixed this bug in 1.0.0.


Getting an error in Node-Red Logs on node initialization.

14 May 09:45:25 - [info] [hubitat device:Mud Room Door Sensor 2] Initialized. contact: closed
14 May 09:45:25 - [info] [hubitat device:Mud Room Door Sensor 2] Fix "threeAxis" attribute desynchronization: "[object Object]" --> "[object Object]"
(node:1188) UnhandledPromiseRejectionWarning: TypeError: value.match is not a function
at castHubitatValue (/home/node-red/.node-red/node_modules/node-red-contrib-hubitat/nodes/device.js:26:38)
at eventCallback (/home/node-red/.node-red/node_modules/node-red-contrib-hubitat/nodes/device.js:109:25)
at /home/node-red/.node-red/node_modules/node-red-contrib-hubitat/nodes/device.js:144:11
at Array.forEach ()
at EventEmitter.systemStartCallback (/home/node-red/.node-red/node_modules/node-red-contrib-hubitat/nodes/device.js:136:10)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:1188) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)

Thank you for report, I can see what is the issue :+1:


Custom Aimbot FOV on Osiris

Last night I made a custom aimbot FOV box appear where I could type in a FOV for my aimbot and I can't seem to make the box appear again. Can anyone please tell me how to get the box open again.

You did not make it!
Hold control and click on the slider for a custom value.

Thank you, I didn't mean to put made but yeah


Stream not closed for {:as :byte-array} in 0.7.4+ ?

We are using clj-http in our RSS crawler. And this morning when I upgraded 0.7.5 we got lots of Too many open files and UnknowHostException. From our experience, I think it's caused by some sorts of file op leaks.
And after I downgraded to 0.7.3, which is before the stream refactoring, the system works OK till now.
I remember in 0.6.x of clj-http, if we coerce output as :stream, we have to close the stream manually. So to avoid this, we coerce it to :byte-array. And the system works fine with 0.6.x. I'm not clear if the byte-array method also requires manual management on underlying stream.
I will look into the code to see if I can help/.

Closing this since I haven't heard anything in a while, feel free to re-open.


Expose low level watch primitives

I'd like to be able to implement my own Watcher class. The current one has some issues that don't fit my use cases.

It creates a new thread for every key I want to watch.
It creates a separate grpc streaming call for every key, when etcd supports multiple watches over a single stream
The error handling callback is very hard to use. I'm trying to use it to just re-connect. The main problem is you have to re-create the watcher object from scratch instead of having a method to just "re-initialize" the same object. This is compounded by the fact that you can't even delete the old watcher in the callback, because the callback happens inside the watcher thread itself and it's destructor tries to join

The same applies to the Lease class, but that would be resolved for me by #105

Essentially I want to be able to efficiently watch multiple keys, handler errors easily, and use my own threading model.
Instead of asking for a new Watcher class, I'd be happy with access to low level primitives to manage my own grpc watch callback. Then I can build my own Watcher which fits my application use cases.

I will finish a PR to resolve this issue, #12, #100, as well as #105


Subgraph for v2 of the contracts

Currently only supports Fill, Claim and Request. We can add the rest of the events at a later stage when we know how exactly we want to represent them.
Right now something that I'm happy with is the fact that if we see a fill on chain B, we can easily find the corresponding request and claim on chain A with query like this:

I'm also storing meta data together with the events such as transaction and block, which could help to easily debug transfers.

Gabriel I addressed the few things you mentioned, please have a look again.

@GabrielBuragev ?


Fixes for locale fallback, and various JSCS fixes.

Hey!  I fixed some things that JSCS flagged, and updated the logic for fallback.  The fallback was not working for us, because if we had an en_GB/a.php with only a few translations, the _getMessage() function would fail for all of the a translations that weren't present in the en_GB/a.php, and it was not falling back to the translations in the  en_US/a.php.
Let me know if you have any questions. Thanks!

Closed this one because


Switch to rely on Netty for Hostname Verification

Motivation
Currently, we perform hostname verification for the Java Client and the Proxy Java Client using a custom Pulsar hostname verifier. In order to simplify the code, I propose that we refactor these clients so they rely on a Netty, its SslHandler, and the JVM, to perform the hostname verification.
When HTTPS is configured as the endpoint verification algorithm, it uses RFC 2818 to perform hostname verification. This is defined by the Java Security Standard Algorithm Names documentation for JDK versions 8, 11, and 17. Here are the official docs:

https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html
https://docs.oracle.com/en/java/javase/11/docs/specs/security/standard-names.html
https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html

Modifications

Update the Java Client so that it configures the SslHandler's SslEngine to use HTTPS for endpoint verification and remove unnecessary custom hostname verification logic.
Update the Proxy's DirectProxyHandler class so that it configures the SslHandler to perform hostname verification and so that the proxy handler itself does not perform that verification.
Make it possible to disable hostname verification checking in the HttpClient used by the HTTP Lookup Client code in the Java Client. Currently, it defaults to being always enabled.

Does this pull request potentially affect one of the following parts:
This change deprecates support for CN matching in the Pulsar Java Client. A future change should remove this support from the Pulsar Admin Client, which relies on Pulsar's verifier that still supports CN matching.
Documentation
There is no need for documentation. This is an internal change.

/pulsarbot rerun-failure-checks

/pulsarbot rerun-failure-checks

There are 2 test failures:

org.apache.pulsar.client.api.AuthenticationTlsHostnameVerificationTest ► testTlsSyncProducerAndConsumerWithInvalidBrokerHost
org.apache.pulsar.proxy.server.ProxyWithAuthorizationTest ►
testTlsHostVerificationProxyToClient

I debugged and fixed the first one. The test was invalid.
 Here's an example log: https://gist.github.com/lhotari/8455fc155e0c7526398f36e9bd0bd88c
(can be reproduced by running AuthenticationTlsHostnameVerificationTest with the above commit)

I got both failing tests fixed. I pushed my change to my fork and I'm running tests there: https://github.com/lhotari/pulsar/pull/72

@michaeljmarshall I'll rebase this PR and include my changes to fix the tests. I hope this is fine.

@michaeljmarshall  It seems that when you opened the PR you didn't grant access to others for collaborating in the PR. I pushed changes to my fork in https://github.com/apache/pulsar/compare/master...lhotari:use-netty .
one way to make your branch to match the changes:
git pull https://github.com/lhotari/pulsar.git use-netty
git reset --hard FETCH_HEAD

LGTM
I have a quest:

If a subjectAltName extension of type dNSName is present, that MUST
be used as the identity. Otherwise, the (most specific) Common Name
field in the Subject field of the certificate MUST be used. Although
the use of the Common Name is existing practice, it is deprecated and
Certification Authorities are encouraged to use the dNSName instead.

Do your changes follow up on this rule?

@nodece - I did not test this case, but the Java Naming Spec indicates that the hostname verifier will follow RFC 2818, so I assume that it should conform to the portion of the spec you quoted.


scheduler: Version-aware failure tracking

This addresses a longstanding TODO which I forgot about. Currently, the scheduler tracks potential failure loops by service ID. However, if the service is updated, it won't distinguish the new version of the service from the old one. This means even if the operator fixes the underlying problem, the new tasks from the updated service will still avoid the node where the problem was detected.
Change the failure tracking to be sensitive to SpecVersion as well. If SpecVersion changes, we'll treat the task as a different kind of task for failure tracking purposes.
Also, add a periodic cleanup pass to make sure recentFailures doesn't grow without bound, and clean up addOrUpdateNode so it doesn't try to fix up uninitialized nodeInfo structs (which is fragile).
cc @aluzzardi

When a node starts up, failed tasks aren't immediately cleaned up

I don't understand this one. Does this mean a node becoming READY? The scheduler itself starting up?

Tasks are not cleared before the monitoring period is up?

As you mentioned, we don't inject a clock. I could augment the existing tests to check that recentFailures[x] is monotonic during the test run. Not sure how useful this is. I'd be curious to hear what tests you would write for something like this.

I don't understand this one. Does this mean a node becoming READY? The scheduler itself starting up?

Er sorry, again, not super familiar with the scheduler life cycle.  Whenever nodeInfo is first created for a node, I guess.

Tasks are not cleared before the monitoring period is up?

Oops, I realized I meant recentFailures[x] is not cleaned up before the monitoring period is up.  This one is only really feasible with an injected clock I guess, otherwise will only probabilistically fail,  but similar to your current test of simulating task failures - simulate that they failed at particular times, and if even if the number is more than the requisite to be marked unhealthy (I guess 5?), if they're spread out across/past the monitoring boundary the node is not considered unhealthy, and the oldest failure is only cleaned up past the monitoring boundary.

Added a commit that makes sure the values of recentFailures progress as expected, and aren't cleaned up during the tests (which are expected to take less than 5 minutes).

LGTM


Excessive stack depth comparing types 'FlatArray<Arr, ?>' and 'FlatArray<Arr, ?>'.

TS and JS Grammar Extension version:  ms-vscode.vscode-typescript-next v4.3.20210312
Trying to use configureStore with middlewares, getting the following error:

A couple days ago it was fine.
Also getting a lot of similar Excessive stack depth errors for other parts of the code.
Code
import { configureStore, getDefaultMiddleware } from '@reduxjs/toolkit'

configureStore({
    reducer: {
    },
    middleware: [
        ...getDefaultMiddleware(),
    ],
})

I changed TS version from vscode version 4.3.0 to workspace  4.2.3, and this fixed my problem.

@kudryavtsev-dmitry Thanks bud, you saved my day :). Been getting this error all over my react project for almost a week! :(

Typescript nightly for vscode throw this error v4.3.20210314


Class names changed in Python 3.10

In ~/.local/lib/python3.10/site-packages/fido/ctap1.py, the class names CTAP1 and CTAP2 have changed to Ctap1 and Ctap2.
Therefore, fido1 throws an import error.
The class names have to be changed accordingly in /solo/cli/key.py
I don't know when the name changes have been introduced, but they are that way now.

That problem is actually due to fido2 >= 1.0.0, not Python 3.10 - see e.g. #151 and #169.


HTTP/2 reject DATA frame on streamId is zero

This is my first PR to this repository!
When I had run some tests with tool that will check about http2 spec violation,
I found that when okhttp client didn't handle well when received DATA frame on streamId=0
Scenario
sending DATA(streamId=0) frame to okhttp client with a custom mock server
Expected
okhttp client should treat it as connection error with type PROTOCOL_ERROR
Actual
okhttp send RST_STREAM on streamId=0
Reference
rfc7540#section-6.1

DATA frames MUST be associated with a stream.  If a DATA frame is
received whose stream identifier field is 0x0, the recipient MUST
respond with a connection error (Section 5.4.1) of type
PROTOCOL_ERROR.

Thanks!


Update README.md

plz merge my pull request

Yes this first pull request please merge my pull request 🙏

plz merge my req.


Update Rbfl.localplayer.dev.json

Requirements

[x] You have completed your website.
[x] The website is reachable.
[x] The CNAME record doesn't contain https:// or /.
[x] There is sufficient information at the owner field.
[x] There is no NS Records (Enforced as of Sepetember 4th, 2024)

Description

Link to Website

I have read the read the CLA document and I hereby sign the CLA


Actual Examples

It's hard to visualize how the stuff would look like (And where and how the file for OpenAPI should be placed), so adding some actual examples, maybe even with a live preview using gh-pages, would certainly not be a bad idea here.
I myself considered to try and use this plugin, but I don't want to "buy the cat in the sack" here, as I don't know how it would look like and if it was somewhat compatible with the theme I use (Material for MkDocs). Not to mention what possible styling options are, as I myself already have a API documentation inspired by OpenAPI and would love to keep a similar style (Especially the Icons)
So, if possible, some examples and a live-preview should be implemented to allow an easier understanding of what the plugin may produce.

Good idea. Does anyone mind taking a screenshot?

My team currently uses this plugin with live API docs here which can serve as an example: https://docs.scarf.sh/api-v2/. Hope that helps, thanks for developing this @bharel!

@aviaviavi
Oh awesome! Thanks for letting me know :-)
Do you mind me adding it to the front page (readme)?

@bharel apologies missed this message in my notifications. Not all, go for it!

Added to the front page. Thank you!


Undefined sanitizer triggered about downcasting

Hello, the following C++ snippet triggers the undefined sanitizer:
#include <ginkgo/ginkgo.hpp>

int main(int argc, char **argv) {
  std::shared_ptr const gko_executor = gko::ReferenceExecutor::create();

  // Create the solver factory
  std::shared_ptr const residual_criterion =
      gko::stop::ResidualNorm<double>::build().on(gko_executor);

  std::unique_ptr const solver_factory = gko::solver::Bicgstab<double>::build()
                                             .with_criteria(residual_criterion)
                                             .on(gko_executor);

  int const mat_size = 10;

  std::shared_ptr const matrix_sparse = gko::matrix::Csr<double, int>::create(
      gko_executor, gko::dim<2>(mat_size, mat_size));

  std::unique_ptr const solver = solver_factory->generate(matrix_sparse);

  return 0;
}

The sanitizer reports
/local/home/tpadiole/spack-0.22.1/opt/spack/linux-ubuntu20.04-icelake/gcc-10.5.0/ginkgo-1.8.0-shuyfkrpn22wdno3jhruqz4lk5qz43ug/include/ginkgo/core/solver/solver_base.hpp:572:38: runtime error: member call on address 0x5591484b8848 which does not point to an object of type 'EnableSolverBase'
0x5591484b8848: note: object has invalid vptr
 91 55 00 00  00 00 00 00 00 00 00 00  40 8a 4b 48 91 55 00 00  70 8a 4b 48 91 55 00 00  e0 89 4b 48
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
/local/home/tpadiole/spack-0.22.1/opt/spack/linux-ubuntu20.04-icelake/gcc-10.5.0/ginkgo-1.8.0-shuyfkrpn22wdno3jhruqz4lk5qz43ug/include/ginkgo/core/solver/solver_base.hpp:650:34: runtime error: downcast of address 0x5591484b8800 which does not point to an object of type 'Bicgstab'
0x5591484b8800: note: object is of type 'gko::EnableLinOp<gko::solver::Bicgstab<double>, gko::LinOp>'
 00 00 00 00  a8 9e 22 48 91 55 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              vptr for 'gko::EnableLinOp<gko::solver::Bicgstab<double>, gko::LinOp>'
/local/home/tpadiole/spack-0.22.1/opt/spack/linux-ubuntu20.04-icelake/gcc-10.5.0/ginkgo-1.8.0-shuyfkrpn22wdno3jhruqz4lk5qz43ug/include/ginkgo/core/solver/solver_base.hpp:765:34: runtime error: downcast of address 0x5591484b8800 which does not point to an object of type 'Bicgstab'
0x5591484b8800: note: object is of type 'gko::EnableLinOp<gko::solver::Bicgstab<double>, gko::LinOp>'
 00 00 00 00  a8 9e 22 48 91 55 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              vptr for 'gko::EnableLinOp<gko::solver::Bicgstab<double>, gko::LinOp>'
/local/home/tpadiole/spack-0.22.1/opt/spack/linux-ubuntu20.04-icelake/gcc-10.5.0/ginkgo-1.8.0-shuyfkrpn22wdno3jhruqz4lk5qz43ug/include/ginkgo/core/solver/solver_base.hpp:343:34: runtime error: downcast of address 0x5591484b8800 which does not point to an object of type 'Bicgstab'
0x5591484b8800: note: object is of type 'gko::EnableLinOp<gko::solver::Bicgstab<double>, gko::LinOp>'
 00 00 00 00  a8 9e 22 48 91 55 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              vptr for 'gko::EnableLinOp<gko::solver::Bicgstab<double>, gko::LinOp>'

It was compiled with the following CMakeLists.txt
cmake_minimum_required(VERSION 3.22)

project(bug_report LANGUAGES CXX)

find_package(Ginkgo 1.8.0 EXACT REQUIRED)

add_executable(main main.cpp)
target_link_libraries(main PUBLIC Ginkgo::ginkgo)
target_compile_features(main PUBLIC cxx_std_17)

using the cmake command cmake -B build -DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-fsanitize=undefined -fno-omit-frame-pointer"
Thanks,
Thomas

I can reproduce this behavior, but I am willing to say that this is not UB - this is a static_cast from a derived class to a base class for the CRTP pattern, which is fine as long as the object has started construction (which it has, since its base classes are already partially constructed, namely the PolymorphicObject base class which provides the get_executor() function that is being called via self()->get_executor()). More precisely, this is a downcast to Bicgstab followed by an upcast to PolymorphicObject, we are not accessing any members of Bicgstab, instead only members of the already constructed PolymorphicObject. Likely, this would not give any warnings if EnableSolverBase wasn't polymorphic, UBSAN only considers it problematic because we are using both dynamic and static polymorphism in the same class.
A more in-depth discussion of the same question: https://stackoverflow.com/questions/73172193/can-you-static-cast-this-to-a-derived-class-in-a-base-class-constructor-then-u

Thanks for taking the time to look at it. I will follow the discussion on google/sanitizers.
I agree that it may not be a UB but isn't it fragile ? In your example, EnableB assumes that EnableA, as part of Derived, is already initialized right ? If someone inverts them by mistake, then it becomes UB ?

It definitely depends on the order of base classes, but in our case, it would fail very loudly because it will lead to an uninitialized shared_ptr for the executor, so I feel somewhat okay with it. I don't think there is a way to enforce this statically.


updated () function run before async action in Chrome 59 but after in Firefox 54

What problem does this feature solve?
Here is my code
// Message.vue
props: ['messages'],
methods: {
  getMessages () {
    let promise = new Promise((resolve, reject) => {
      // this action will change the property 'messages' in this component
      this.$store.dispatch('message/getMessage', resolve)
    })
    promise.then(e => {
      console.log('has fetched')
    })
 },
 beforeUpdate () {
   console.log('before')
 }
 updated () {
   console.log('updated')
 }
}

What I expect is

has fetched
before
updated
//That is expected in Firefox 54.0 when run in Linux
.And those are the results in Chrome 59.0 run in Linux:
before
updated
has fetched

What does the proposed API look like?
I dont know how to

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, gitter or StackOverflow.

I think it is a bug

It's the 3rd time you open an issue with a question. If you think it's a bug, you need to include a proper boiled down repro

thanks. i will ask it in vue forum


quantize RequestDisk

I have been fighting all day with 126 to try and reduce the number of auto-cluster thinking that there was something really bad with tuning and resizing (thanks @juztas ).
Turned out that making RequestDisk being 10G or 20G made a huge difference (reduce the number of autocluster from 2800 to 1400).
It's quantized by 1G. I suggest 5G, at least

Instead of going bit by bit, how about we generalize this issue and quantize all ads that affect auto-clustering? That would require checking with the SI team to see what ads they round/quantize (I know about RequestMemory, which is far from optimal BTW) and what would be an ideal (or reasonable) quanta for each of them.

Yes, I agree with Alan, What is auto clustering rules? Could you explain how that works? If we know the algorithm for auto clustering, we can change all the parameters affect that as Alan said.

+1 on doing them all at once. +1 on starting with those that will have an immediate effect

@amaltaro this was done recently, wasn't it ?

Yes, we're still missing RequestMemory though, but we need to be more thoughtful about that one. I think a new issue can be opened.


NVA commons version 1.40.3

NP-47133 Search publication channel, too many search results when query contains ampersand

Updating commons to get bug fix for ampersands in query parameter values not being escaped
Implement abstract method from commons RestRequestHandler: validateRequest
Converted some classes to records

Where is the test that demonstrates and documents the problem, and prevents the fix from getting accidentally removed?

Since the bug was in the dependency (where the bug is tested and fixed), I'm not sure its necessary to test this here? See Np 47133 UriWrapper, fix escaping ampersand (https://github.com/BIBSYSDEV/nva-commons/pull/501)
What do you think?


Converting a StatefulWidget to a StatelessWidget, then hot reloading, crashes the kernel compiler

Steps to reproduce
1) Run the following app:
import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    title: 'Stateless to Stateful Hot Reload Crashes App',
    home: Scaffold(
      body: SafeArea(
        child: Home(),
      ),
    ),
  ));
}

class Home extends StatefulWidget {
  @override
  _HomeState createState() => _HomeState();
}

class _HomeState extends State<Home> {
  @override
  Widget build(BuildContext context) {
    return Text('foo');
  }
}

2) Once the app is started, change Home to be a StatelessWidget, like so:
import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    title: 'Stateless to Stateful Hot Reload Crashes App',
    home: Scaffold(
      body: SafeArea(
        child: Home(),
      ),
    ),
  ));
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Text('foo');
  }
}

3) Then try to hot reload.
Expected behavior
You expect the app to reload, or at least if unable to reload, you expect the app to keep running and be forced to hot restart.
Actual behavior
The Flutter engine crashes, and the app is killed.  The following log message indicates the source of the error:
E/Dart    ( 5164): ../../third_party/dart/runtime/vm/compiler/frontend/kernel_translation_helper.cc: 1869: error: Unexpected tag 224 (Unknown) in ?, expected a procedure, a constructor or a function node

This was observed on https://github.com/flutter/engine/commit/30639ee7b6a3c0ea6afa7ffcdbd11254b069431f (running Dart version https://github.com/dart-lang/sdk/commit/1577b95c93823339150736e8c54f4524da4339be)

/cc @aam

I believe until https://dart-review.googlesource.com/c/sdk/+/97561 landed this used to produce "CompileTimeError":
[   +2 ms] Sending to VM service: ext.flutter.reassemble({isolateId: isolates/120905974})
[ +283 ms] I/flutter (28105): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
[  +20 ms] I/flutter (28105): The following _CompileTimeError was thrown building Home(dirty, state: _HomeState#fd1e4):
[        ] I/flutter (28105): 'package:a/main.dart': error: Unexpected tag 0 (Nothing) in ?, expected a procedure, a constructor
[        ] I/flutter (28105): or a function node
[        ] I/flutter (28105):
[        ] I/flutter (28105): When the exception was thrown, this was the stack:
[  +15 ms] I/flutter (28105): #0      StatefulElement.build (package:flutter/src/widgets/framework.dart:3824:27)
[        ] I/flutter (28105): #1      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3735:15)
[        ] I/flutter (28105): #2      Element.rebuild (package:flutter/src/widgets/framework.dart:3558:5)
[        ] I/flutter (28105): #3      BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2271:33)
[        ] I/flutter (28105): #4      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame
(package:flutter/src/widgets/binding.dart:700:20)
[        ] I/flutter (28105): #5      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback
(package:flutter/src/rendering/binding.dart:275:5)
[   +1 ms] I/flutter (28105): #6      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1008:15)
[        ] I/flutter (28105): #7      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:948:9)
[        ] I/flutter (28105): #8      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:769:7)
[        ] I/flutter (28105): #10     _Timer._runTimers (dart:isolate/runtime/lib/timer_impl.dart:382:19)
[        ] I/flutter (28105): #11     _Timer._handleMessage (dart:isolate/runtime/lib/timer_impl.dart:416:5)
[        ] I/flutter (28105): #12     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/lib/isolate_patch.dart:171:12)
[        ] I/flutter (28105): (elided one frame from package dart:async)
[        ] I/flutter (28105): ════════════════════════════════════════════════════════════════════════════════════════════════════
[ +115 ms] Result: {type: _extensionType, method: ext.flutter.reassemble}
[   +4 ms] Initializing hot reload... (completed in 962ms)
[        ] Reloaded 1 of 438 libraries in 966ms.

The fact that this was 'CompileTimeError' I believe was misleading because it is actually internal vm problem that needs to be fixed. I will look back at when it regressed(I assume it is a regression).

https://dart-review.googlesource.com/c/sdk/+/101625 with the fix.


Metadata column question - why the numbers increase on an update

JIRA issue created by: rcook
Originally opened: 2012-05-02 02:39 PM
Issue body:
This harvest in the screen shot is updating 99 W and W and 96 M, yet the Metadata column grows.  Why is that?
Also, if the column called "new" really is the total, as I think it is, please rename.  We need a way to tell how many of each there are to reconcile to MST.
[~jbrand][~mwesley] [~cdelis]
This issue has an attachment associated with it (external link): metadataquestion.png

JIRA Comment by user: rcook
JIRA Timestamp: 2012-06-19 10:25 AM
Comment body:
Status?

JIRA Comment by user: mwesley
JIRA Timestamp: 2012-06-19 07:42 PM
Comment body:
I'm not sure there is a problem. I think, rather the "Metadata" column should be called "All" as in all records harvested, regardless of whether they are new, updated, or deleted metadata. I think all the categories are totals, not just the new.

Issue resolved: 2012-07-30 04:59 AM


Public certificate deployment error: The parameter location,thumbprint has an invalid value.

Bicep version
Bicep CLI version 0.21.1 (d4acbd2a9f)
Describe the bug
A deployment of a resource of the type Microsoft.Web/sites/slots/publicCertificates@2022-09-01to an existing function app slot that has previously run successfully, is now failing with the error message:
{
    "status": "Failed",
    "error": {
        "code": "BadRequest",
        "message": "The parameter location,thumbprint has an invalid value.",
        "details": [
            {
                "message": "The parameter location,thumbprint has an invalid value."
            },
            {
                "code": "BadRequest"
            },
            {}
        ]
    }
}

It is worth noting that we are deploying multiple public certificates, but only some of them are failing.
All of them are based on existing resources and the exact same bicep file has been able to deploy earlier (on 24 April 2023).
To Reproduce
Steps to reproduce the behavior:
Deploy the following multiple times, so that the operation is performed on a certificate that does already exist:
resource publicCertificate_staging 'Microsoft.Web/sites/slots/publicCertificates@2022-09-01' = {
  name: 'REDACTED-FUNCTION-APP/staging/REDACTED-CERT-NAME'
  properties: {
    blob: 'REDACTED'
    publicCertificateLocation: 'CurrentUserMy'
  }
}

Additional context
ARM Deployment correlation ID: b9817f49-cf44-491a-a4bb-a41f68405f85

we are encountering this issue, the exact same code for deploying the cert works for one web app but has this exact parameter issue on another.

we are encountering this issue, the exact same code for deploying the cert works for one web app but has this exact parameter issue on another. Turns out for us that this is caused by the cer already existing with another name and our script was trying to create it with a different name, resulting in it throwing this exact error instead of saying it already exists with a different name.

This was my issue as well

Same issue here

Same issue here

Found a resolution. I manually added *.cer before and got this error. Removed the certificates manually. and then ran the pipeline again and it worked. it generated the thumbprint.


Want to add the blog Edit Page

Is your feature request related to a problem? Please describe.
I want to give functionality to the user to edit his blog

@nishant0708 He is working on it

I have assigned you so many issue first work on that and finish them


ENH: #55 make backend url more easily configurable.

This makes it easier to reconfigure the backend, and should make #43 (exposing links to backend server) simpler.
This sets $rootScope.swaggerSpec in app-init, then uses it in the disclosure service.

Updated so that the disclosure service keeps a meaningful default. Also updated a test, so that the service doesn't expect a specific dataset.

No response === do my best!


Handle backend JS/CSS dependencies for static export better

Automatically adds backend JS/CSS dependencies to static_html output and handles inlined bokeh dependencies if CDN is not available (e.g. for dev builds of bokeh).

Ready to review and merge.

Sounds good!
What does "CDN is not available" cover?  Does it just cover custom/dev builds where there are no corresponding files on CDN at all, or does it also handle transient unreachability of CDN?  I can't see what the mechanism is from the diff.

Looks good. My only worry is thathtml_assets has the potential to get hairier and hairier over time but for now it is still ok.
Merging.

What does "CDN is not available" cover? Does it just cover custom/dev builds where there are no corresponding files on CDN at all, or does it also handle transient unreachability of CDN (e.g. working offline)?

Only covers dev builds where there is no CDN version, in that case it just supplies the JS and CSS as raw text. However we could/(should?) also consider provide control over that.


Add Sailfish OS Tips & Tricks

This PR adds Sailfish OS Tips & Tricks to the references.
This page is intended towards general Sailfish OS users. Developer
tricks should continue following towards Cheat Sheet page.
Could something like this be a starting point? Any thoughts?

Squashed changes


[opengl] installation fails with Windows SDK version 8.1

I'm trying to use opengl32.lib with vs2015 but it seems adding opengl32.lib on the linker input libs won't do it... isn't opengl shipped with vs2015 by default? Anyway, because this fact I decide installing it using vcpkg, so I open a prompt and I run vcpkg install opengl, the output is this:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>vcpkg install opengl
-- CURRENT_INSTALLED_DIR=D:/software/vcpkg/installed/x86-windows
-- DOWNLOADS=D:/software/vcpkg/downloads
-- CURRENT_PACKAGES_DIR=D:/software/vcpkg/packages/opengl_x86-windows
-- CURRENT_BUILDTREES_DIR=D:/software/vcpkg/buildtrees/opengl
-- CURRENT_PORT_DIR=D:/software/vcpkg/ports/opengl/.
CMake Error at ports/opengl/portfile.cmake:11 (message):
  Portfile not yet configured for Windows SDK with version: 8.1
Call Stack (most recent call first):
  scripts/ports.cmake:73 (include)

Error: Building package opengl:x86-windows failed with: BUILD_FAILED
Please ensure sure you're using the latest portfiles with `.\vcpkg update`, then

submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: opengl:x86-windows
  Vcpkg version: 0.0.74-fa3f9dd9628ebafd3ba65fb3abde6c1d6f0448fc

Additionally, attach any relevant sections from the log files above.

Any idea how to solve this?

Additional note here, it seems the problem with the missing opengl library on visual studio was because one row of my linker input was:
opengl32.lib kernel32.lib
user32.lib
It seems you need to put libraries on different rows... Not sure if this issue is relevant anymore... I mean, yeah, trying to install opengl fails but it's shipped with vs anyway, so... I'll leave it open for the time being

ec02f5bb264af821369fd6de9028758ae12447f1 should fix this.

@alexkaratarakis Thanks, your commit did the job perfectly :)


Error when adding EFS volumes: When the volume parameter is specified, only one volume configuration type should be used.

Error: failed creating ECS Task Definition: ClientException: When the volume parameter is specified, only one volume configuration type should be used.
Terraform plan generates a change to the task definition which adds this:

      volume {

          host_path = "/test123"

          name      = "test123-efs"

          efs_volume_configuration {

              file_system_id          = "fs-123123123"

              root_directory          = "/test123"

              transit_encryption      = "ENABLED"

              transit_encryption_port = 2999

              authorization_config {

                  access_point_id = "fsap-123123123"

                  iam             = "DISABLED"

                }

            }

What actually works in AWS (by directly editing the JSON of a task), is this:

    "volumes": [

    {

      "fsxWindowsFileServerVolumeConfiguration": null,

      "efsVolumeConfiguration": {

        "transitEncryptionPort": null,

        "fileSystemId": "fs-123123123",

        "authorizationConfig": {

          "iam": "DISABLED",

          "accessPointId": "fsap-123123123"

        },

        "transitEncryption": "ENABLED",

        "rootDirectory": "/"

      },

      "name": "efs2",

      "host": null,

      "dockerVolumeConfiguration": null

    }

  ]

You can see the attribute names are slightly different, I'm not sure how much of that terraform translates, and how much is pointing to a bug with the module?
Currently on version 0.66.2 of the module, with terraform 1.3.2. Pretty confused since we do only have one volume configuration type set.

Confirmed, if you set host_path to null, it works

@richstokes Thanks Rich! This is still a thing with the current version of this module. host_path null was a great suggestion and resolved my issue.


Incorrect transaction amount reported on pending transactions

Release
Operating System
Cause

v2019-11-07
Windows & OSX & Linux)
Code

Context

Steps to Reproduce

Make a transaction
Observe the reported amount while pending
Compare the amount once not pending anymore

Expected behavior

They match

Actual behavior

They are different, amount is bigger when pending

Resolution Plan

Seems to be a very old bug :grimacing: ... The outputs are completely ignored in the computation of pending tx metadata when signing a transaction. Only the changes are taken into account!

PR

Number
Base

#1005
master

#1010
master

QA

Added a regression scenario and saw it fails: https://github.com/input-output-hk/cardano-wallet/blob/master/lib/core-integration/src/Test/Integration/Scenario/API/Transactions.hs#L143-L159

Then, fixed the metadata calculation by also taking our outputs into account instead of only change. Regression test passes and all other tests still do.

lgtm. I have only refactored the test script a bit -> #1010.


bug of executing index scan

We found a bug on optimizer when executing index scan.  If there exists several different indexes on the same table, the optimizer may fail to choose the right index, thus return incomplete or incorrect results.
postgres=# create table foo(a int primary key, b varchar(32), c int);
create table foo(a int primary key, b varchar(32), c int) 0
postgres=# create unique index sk0 on foo(b,c);
create unique index sk0 on foo(b,c) 0
postgres=# create index sk1 on foo(c);
create index sk1 on foo(c) 0
postgres=# select * from foo;
a  |   b   | c
----+-------+----
1 | look  |  2
3 | looks |  4
8 | good  |  4
2 | good  |  5
-1 | good  | -5
(5 rows)
postgres=# select * from foo where c = 4;
a |  b   | c
---+------+---
8 | good | 4
(1 row)
The correct answer should be 2 rows instead of 1.

It looks like we are creating a UNIQUE index on 'c' even though you don't ask for it:
postgres=# create index sk1 on foo(c);
create unique index sk1 on foo(c) 0

Another one:
postgres=# create table foo(a int primary key, b varchar(32) primary key);
create table foo(a int primary key, b varchar(32) primary key)
postgres=# create index sk0 on foo(a);
create index sk0 on foo(a) 0
postgres=# insert into foo values(2, '323');
insert into foo values(2, '323') 1
postgres=# insert into foo values(2, '313');
insert into foo values(2, '313') 1
postgres=# insert into foo values(1, '313');
insert into foo values(1, '313') 1
postgres=# select * from foo;
 a |  b
---+-----
 2 | 323
 2 | 313
 1 | 313
(3 rows)

postgres=# select * from foo where b = '313';
 a |  b
---+-----
 1 | 313
 2 | 313
 2 | 323
(3 rows)

Oh, sorry that was an typo. It was a non unique index.
The default value for index is non unique if don't using the key word "unique".

Looks like when we have an index on 2 attributes and select based on one of them, the optimizer selects the wrong index...

It also looks like we still have the wrong PRIMARY KEY syntax...

Yeah.... You get me....

@https://github.com/cmu-db/peloton/pull/592/commits/92f3e09cf8a2ed5750b462191d8d35c98ee83581

This is where potentially causes the bug: https://github.com/cmu-db/peloton/pull/592/commits/92f3e09cf8a2ed5750b462191d8d35c98ee83581

Fixed in #716


Update sidebar aesthetic

In anticipation of diving into the structure and content of the docs, I'd like to spend a bit of time upgrading the aesthetic. This PR builds on #9760 and provides CSS overrides that should make the docs feel more "branded" and less generic.

I'm going to close this until I'm able to get the docs building locally and thus to establish a reasonable workflow


conda package incompatible with pytorch 1.11.0

Solution to issue cannot be found in the documentation.

[X] I checked the documentation.

Issue
conda install -d -c pytorch conda-forge::fairscale=0.4.6 pytorch::pytorch=1.11.0
...
  - package fairscale-0.4.6-cpu_py38h66f0ec1_0 requires pytorch >=1.10.2,<1.11.0a0, but none of the providers can be installed

I think fairscale should allow for the recently 1.11 release (no longer a0), this may be as simple as changing the version requirements...
Installed packages
-

Environment info
-

The issues is that pytorch 1.11 hasn't been built for conda-forge yet, but hopefully it's close: https://github.com/conda-forge/pytorch-cpu-feedstock/pull/95

This is infact by design. Thank you for pointing it out @h-vetinari

Builds for pytorch 1.11 have been merged through #14, should be installable in a few hours. 🙃


Getting CID and LAC

Expected behaviour
shows CID and LAC as well
Actual behaviour
Tell us what happens instead. Provide a log message if relevant
not showing CID and LAC

feature request

I'm seeing this behaviour on
Remove this hint: these checkboxes can be checked like this: [x]

[ ] iOS device
[ ] iOS simulator
[x] Android device
[ ] Android emulator

I am using

[ ] cordova
[x] ionic
[ ] PhoneGap
[ ] PhoneGap Developer App
[ ] Intel XDK
[ ] Intel App Preview
[ ] Telerik
[ ] Other:

Hardware models
Sony Z3
OS versions
Android 6.0.1
I've checked these

[x] It happens on a fresh Cordova CLI project as well.
[ ] I'm waiting for deviceready to fire.
[x] My JavaScript has no errors (window.onerror catches nothing).
[x] I'm using the latest cordova library, Android SDK, Xcode, etc.

So how can we reproduce this?
Provide the used components versions (cordova, ionic, etc).
run plugin as usual
Provide the steps to reproduce the issue.
Provide files, sources if available.

Please there's a possibility to get CID and LAC in the future update ?


Matrix equality (==) operator

The overloaded operator == returns incorrect results.  As a test case:
sw::universal::blas::matrix<double>  A = {         { 5.0,    1.0,   0.0,   3.0},  	{ 0.0,  -7.0,  -1.0,  -5.0}, 	{ 0.0,  -4.0,  -8.0,  -7.0}, 	{ 0.0,   3.0,   3.0,   12.0 }  };
std::cout << ((inv(A)*A) == I)  << std::endl;
where I is the 4x4 identity matrix, returns false.
Others (e.g., MATLAB) have same issue due to rounding.  Perhaps a better approach is to include a tolerance, that is equal within epsilon.

Operator==() should retain its simple definition of comparing the bit patterns of lhs and rhs and only return true if the bit patterns are identical. For vector, matrix, and tensor equality in the numerical sense, we would need to define some distance metric, and thus there are many different interpretations of equality. operator==() doesn't have any parameterization to capture that state space and thus isn't the right function to overload.
We should add vector, matrix, and tensor equality measures as a separate set of functions that can capture the distance measure used to measure equality.


Add Outline to tools

Thanks for creating this guide! I saw Outline is on the list of tools needing to be documented and thought I was the best person to add it 😉
Main content

Card

Awesome! Thanks so much!


Dropdown only gets triggered on second click

Hi,
I just wanted to throw this out there to see if anyone else is experiencing this.  When I load the page, the <ol class="nya-bs-select"> element does not have the class open.  I set a breakpoint at:
Line 270 of nya-bs-select.js
When I click on the dropdownToggle or the <button>, the $element HTML which refers to the <ol> now contains the class open.  Naturally line 270 will negate that and cause the dropdown to not show up.  Hence a second click is required to show the dropdown.
I know this is weird, but I'm at my wits ends as to where could the open class be possibly added to the HTML when I click the dropdownToggle for the very first time after page load.  Anyone?

Sorry, this is my problem.  AngularUI Bootstrap does not play nice with nya-bootstrap-select.  nya-bootstrap-select uses a class called dropdown-toggle which clashes with AngularUI Bootstrap directive dropdownToggle.

This directive is design to work with ui-bootstrap. the dropdown toggle of ui-bootstrap is an element/attribute directive not a class. It shouldn't conflict with this.

Ok, maybe I wasn’t specific about the version of ui-bootstrap.  I’m using 0.8.0, the last one compatible with Bootstrap 2.3.2.
This version of ui-bootstrap has a dropdownToggle directive of either an ATTRIBUTE or CLASS.  Hence the class conflicts with nya-bs-select.

On 14 Jan 2015, at 9:01 pm, Bob<EMAIL_ADDRESS>wrote:
This directive is design to work with ui-bootstrap. the dropdown toggle of ui-bootstrap is an element/attribute directive not a class. It shouldn't conflict with this.
—
Reply to this email directly or view it on GitHub https://github.com/lordfriend/nya-bootstrap-select/issues/36#issuecomment-69912548.


SSH from WSL

When connected to my company's VPN, I can ssh from cmd fine. I want to be able to ssh from my WSL zsh as well, but I get Could not resolve hostname <hostname>: Name or service not known

Ok give us more data.

You are using WSL1 or WSL2?
When you issue cat /etc/resolv.conf which is the result?
This error message sounds strange to me "hostname" how are you invoking SSH? which is the command?

Regards,
Carlos

WSL1, but I thought I was on 2. I've just checked which now, and apparently I'm on 1, so I will try with 2.
2)# This file was automatically generated by WSL. To stop automatic generation of this file, remove this line. nameserver <IP_ADDRESS> nameserver fdf7:8e43:682f:0:3e89:94ff:fefd:218 nameserver <IP_ADDRESS> search Home arm.com
3)ssh<EMAIL_ADDRESS>
This works fine from my MacBook when connected to the VPN, and fine from cmd when connected to the VPN.

Stay in WSL1 it is better with network issues like this. It is in fact a DNS problem.
I advise you to use ssh -vvv<EMAIL_ADDRESS>to see what ssh is doing.

OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "taishan-3.on.arm.com" port 22
ssh: Could not resolve hostname taishan-3.on.arm.com: Name or service not known

Well as a workaround edit your Windows Hosts file and this domain and its IP. I use this tool to edit it: https://hostsfileeditor.com/
But for any reason, the DNS that comes from your VPN isn't going into /etc/resolv.conf

If I can find that DNS, how would I put it into /etc/resolv.conf? As in, what would an example configuration look like? Is it just nameserver and the DNS?
I think I understand your Windows hosts instructions, so I'll give that a go also.

Yes you can but will be overwritten on the next launch.

Interesting that I raised an issue just now very similar in that the resolv.conf becomes incorrect if there is an IPv6 in the resolve list. One sses in this example that the 10. , which is almost certainly the VPN resolver, is at the end, and there is an IPv6 in the middle. I was on WSL1 for sure. So maybe this is an issue in both?
Workaround is hard to apply. I am on and off these VPNs all the time.

Is there anything new on this topic as I am having the same issue with the WSL and ssh'ing into my uni network (with their vpn on)

Check if you can ssh using IP
Do a debug with ssh -vvv
Check if you can resolve the DNS name with nslookup
Make sure the nssswitch.conf is good.

If you still not able to get is work, follow below steps.
Automated steps: https://gist.github.com/matthiassb/9c8162d2564777a70e3ae3cbee7d2e95
First run on powershell:
Get-DnsClientServerAddress -AddressFamily IPv4 | Select-Object -ExpandPropert ServerAddresses
Then run bash on windows with either ubuntu or bash commands (depending on your installation). Edit the /etc/resolv.conf and replace all nameserver {ip} with the ones generated by the top one.
You should have internet and intranet back now. Remove the first line to make it permanent but be aware if you change networks it will not update anymore. (back it up first maybe?)

I have the same issue:
ssh: Could not resolve hostname hostname.com: Temporary failure in name resolution
Possibly related to https://github.com/microsoft/WSL/issues/4992

I did a workaround by using the default windows OpenSSH client instead of WSL one:
1- Locate your OpenSSH on Windows by doing:
$ where ssh
C:\Windows\System32\OpenSSH\ssh.exe

2- From your WSL terminal ssh to your target machine by using the located OpenSSH client from above:
/mnt/c/Windows/System32/OpenSSH/ssh.exe -i /home/user/.ssh/private_key  name@ip

As a temporary workaround by using the default windows OpenSSH client instead of WSL one: 1- Open a Command Prompt terminal and locate your OpenSSH on Windows by doing:
$ where ssh
C:\Windows\System32\OpenSSH\ssh.exe

2- From your WSL terminal ssh to your target machine by using the located OpenSSH client from above:
/mnt/c/Windows/System32/OpenSSH/ssh.exe -i /home/user/.ssh/private_key  name@ip

FYI: similar to ssh your can use scp if you want to upload/download data.

this works

Here's a hack to get git working inside of wsl with @NDR0216 suggestion:
sudo mv /usr/bin/ssh /usr/bin/ssh.broken
sudo ln -s /mnt/c/Windows/System32/OpenSSH/ssh.exe /usr/bin/ssh

@kislow's solution works for the package manager too 😽
TLDR
Just replace the WSL /etc/resolv.conf with:
[network]
generateResolvConf = false
nameserver <IP_ADDRESS>

I believe this was fixed by DNS tunnelling. https://learn.microsoft.com/en-us/windows/wsl/networking#dns-tunneling


Auth0 implementation

Implement Auth0

[x] Get our account configured on auth0's website
[x] Add auth.js module containing verifyUser function
[ ]
[ ] require verifyUser into modules
[ ] incorporate authentication into necessary functions
[ ]

Authentication tests have to be done in tandem with front end, so we are holding off on the rest until we can work as a full team.


IndexError: tuple index out of range with large number of ACTIVE tasks

First of all, I really appreciate your work of this project.
I used MySQL with innodb as db and started pyspider from master branch. It worked perfectly for nearly a week when my host was suddenly shut down by accident. I checked my MySQL, it worked fine without any error. Then I restarted my spider using:
pyspider run.py -c xxx/config.json

then the log is:
[I 150322 14:20:12 result_worker:49] result_worker starting...
Web server running on port 25555
[I 150322 14:20:12 scheduler:395] loading projects
[I 150322 14:20:12 tornado_fetcher:421] fetcher starting...
[I 150322 14:20:12 processor:205] processor starting...
[I 150322 14:20:12 app:65] webui running on http://<IP_ADDRESS>:5000/
[D 150322 14:20:13 scheduler:83] project: test updated.
[I 150322 14:20:13 tornado_fetcher:149] [200] test:_on_get_info data:,_on_get_info 0s
[D 150322 14:20:13 project_module:138] project: test updated.
[I 150322 14:20:13 processor:196] process test:_on_get_info data:,_on_get_info -> [200] len:12 -> result:None fol:1 msg:0 err:None

then the stdout stopped here without any other logging message. I waited for nearly two minutes, then an error message came out:
[E 150322 14:21:40 scheduler:405] tuple index out of range
    Traceback (most recent call last):
      File "/xxx/pyspider/scheduler/scheduler.py", line 400, in run
        self.run_once()
      File "/xxx/pyspider/scheduler/scheduler.py", line 384, in run_once
        self._update_projects()
      File "/xxx/pyspider/scheduler/scheduler.py", line 82, in _update_projects
        self._update_project(project)
      File "/xxx/pyspider/scheduler/scheduler.py", line 98, in _update_project
        self._load_tasks(project['name'])
      File "/xxx/pyspider/scheduler/scheduler.py", line 129, in _load_tasks
        self.taskdb.ACTIVE, project, self.scheduler_task_fields
      File "/xxx/pyspider/database/mysql/taskdb.py", line 84, in load_tasks
        tablename, what=fields, where=where, where_values=(status, )
      File "/xxx/pyspider/database/basedb.py", line 72, in _select2dic
        for row in dbcur:
      File "/usr/local/lib/python2.7/dist-packages/mysql/connector/cursor.py", line 809, in fetchone
        row, self.description)
      File "/usr/local/lib/python2.7/dist-packages/mysql/connector/conversion.py", line 388, in row_to_python
        if (row[i] == 0 and field_type != FieldType.BIT) or row[i] is None:
    IndexError: tuple index out of range

then it started to load some other projects, and stopped again and never came up to show any message again (I waited about nearly twenty minutes):
[D 150322 14:21:40 scheduler:83] project: test2 updated.
[D 150322 14:21:40 scheduler:83] project: test3 updated.
[D 150322 14:21:40 scheduler:83] project: test4 updated.
[D 150322 14:21:40 scheduler:83] project: test5 updated.
[I 150322 14:21:40 tornado_fetcher:149] [200] test2:_on_get_info data:,_on_get_info 0s
[I 150322 14:21:40 tornado_fetcher:149] [200] test3:_on_get_info data:,_on_get_info 0s
[I 150322 14:21:40 tornado_fetcher:149] [200] test4:_on_get_info data:,_on_get_info 0s
[I 150322 14:21:40 tornado_fetcher:149] [200] test5:_on_get_info data:,_on_get_info 0s
[I 150322 14:21:40 processor:196] process test2:_on_get_info data:,_on_get_info -> [200] len:12 -> result:None fol:1 msg:0 err:None
[I 150322 14:21:40 processor:196] process test3:_on_get_info data:,_on_get_info -> [200] len:12 -> result:None fol:1 msg:0 err:None
[I 150322 14:21:40 processor:196] process test4:_on_get_info data:,_on_get_info -> [200] len:12 -> result:None fol:1 msg:0 err:None
[D 150322 14:21:40 project_module:138] project: test5 updated.
[I 150322 14:21:40 processor:196] process test5:_on_get_info data:,_on_get_info -> [200] len:12 -> result:None fol:1 msg:0 err:None

I dived into the code. Maybe it took too long time loading ACTIVE tasks. I looked into my db, there is about 10,000 ACTIVE tasks per project. I thought maybe my db is too slow. I tried to increase the cache settings in my.cnf but no luck. My host spec is i5 3.0GHz, 8GB ram
Is there any way to solve this problem? Maybe a redis cache or a higher spec MySQL or another db solution?

Try another mysql connector like this: sqlalchemy+mysql+mysqldb+taskdb://root@<IP_ADDRESS>:3306/taskdb
Are there ACTIVE tasks of project test[2-5]?

Thanks for your reply. I will have a try.
Other projects like test[2-5] also have large number of ACTIVE tasks, between 1 thousand to 10 thousand or more. My crawl rates of all the projects are set to 0.1/1.0 (one crawl every ten seconds, right? ) Does the low crawl rate matter?

Firstly, when I switched to sqlalchemy, there was an error:
line 41, in __init__
    self.engine = create_engine(url, convert_unicode=True)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/__init__.py", line 386, in create_engine
    return strategy.create(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 74, in create
    dbapi = dialect_cls.dbapi(**dbapi_args)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/connectors/mysqldb.py", line 64, in dbapi
    return __import__('MySQLdb')
ImportError: No module named MySQLdb

I then installed mysqldb using:
apt-get install python-mysqldb

then I started my pyspider. It worked without any error any more though loading ACTIVE tasks took a little while. Maybe a cache will be better. Looking forward for 0.4 release. Thanks a lot.

In my designing you can use priority to handle the pages without follows first. That will not produce too many ACTIVE tasks in the queue. Therefore that is no cache for that.


Content doesn't update after renaming tags

It looks a lot like the Pinboard API doesn't correctly report a content change following a tag rename. This is unfortunate and means that periodic updates probably need to fetch all the data. In fact, it's quite possible that all updates need to fetch all data (but that requires some thought).

PR #258.


CHANGELOG is out of date

Looks like the changelog is missing entries for the two latest versions (6.17 and 6.18) of mio. Perhaps the section marked "unreleased" just needs to be updated appropriately?

Those would be here: https://github.com/tokio-rs/mio/blob/v0.6.x/CHANGELOG.md (on the v0.6.x branch) which hasnt' been merged into master yet. That file should also be bundled with the crate release.

D’oh, thanks!


Auto center and Auto zoom for all pins

I am trying to center and zoom the map appropriately for a group of pins.  I would like the map to appropriately zoom so all pins that are to be mapped are all visible and appropriately zoomed so you can see all the pins without additional zooming, etc.
Is there a feature for this already?
EDIT
I have created a quick and dirty solution in my app but don't know how to offer it up to developers here to add.  Solution is crude and simple.  I am just averaging all the points to get an average center point.  I don't have an answer for the appropriate zoom region yet but this is a good start for what I need.  Any way this could be added to the project or something similar?

You can try this metod.
//Dynamic Zoom Level
private async Task MapAnimateCamera(IList<Xamarin.Forms.GoogleMaps.Position> pList, int padding)
{
	if (pList.Count > 0)
	{
		var bounds = Bounds.FromPositions(pList);
		await AnimateCameraRequest.AnimateCamera(CameraUpdateFactory.NewBounds(bounds, padding));
	}
}

I was able to make a few changes and get it all working.  Thanks!


(libretro) Attempt to further fix windows builds.

I noticed now that there was another buildbot  build failure for the cores-windows-x64_seh-generic recipe.
../sdl2/dosio.c: In function 'file_dircreate':

../sdl2/dosio.c:193:16: error: too many arguments to function 'mkdir'

  return((short)mkdir(path, 0777));

                ^~~~~

In file included from ../sdl2/libretro/libretro-common/include/retro_dirent.h:41:0,

                 from ../sdl2/dosio.c:10:

C:/msys64/mingw64/x86_64-w64-mingw32/include/direct.h:59:15: note: declared here

   int __cdecl mkdir(const char *_Path) __MINGW_ATTRIB_DEPRECATED_MSVC2005;

               ^~~~~

make: *** [Makefile.libretro:326: ../sdl2/dosio.o] Error 1
make: *** Waiting for unfinished jobs....

My understanding this is because the compiler defines _WIN32 while the code is checking for WIN32. I think its likely safe to just change this one line since the file is already checking for both _WIN32 and WIN32 in multiple places.
However again I am relying on someone else or the buildbot to test this before I submit it upstream too.

More issues -
http://p.0bl.net/35930
it would really help if he wrapped those mkdir calls so we don't have to add #ifdef _WIN32 ifdefs all over the place and can just doit in one spot instead.

Its the same issue and its the only place the libretro port is using mkdir, but my fix didn't work...
I tried it again, this is a bit ugly, but I am more confident it will work.
https://github.com/libretro/NP2kai/pull/5
The problem is that libretro port and standalone build want different includes here.


Dowloading model weights issue (Linknet)

Hi,
I started working with Linknet with this simple code.
import keras
import segmentation_models as sm
from segmentation_models import Linknet
model = Linknet()

I start it and got this message

As I understand it, it starts to load weights from the link
https://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg16_weights_tf_dim_ordering_tf_kernels_notop.h5
But after a some time its stops with this error:
ConnectionResetError: [WinError 10054] The remote host forcibly terminated the existing connection

Next I decided to download weight manually from the link and indicate path to them in the code just like this
import keras
import segmentation_models as sm
from segmentation_models import Linknet
model = Linknet(weight = 'C://vgg16_weights_tf_dim_ordering_tf_kernels_notop.h5')

Message at the start little change, but there is no result

I also try this on another computer and another neural network, but the result is the same.

Hi, to load pretrained weights you should specify encoder_weights
model = Linknet(encoder_weights = 'C://vgg16_weights_tf_dim_ordering_tf_kernels_notop.h5')

Ty @qubvel. I also update models from 0.2 to 1.0 and now its work


Photo transcoder

I've been playing with your Python code for a few weeks and quite impressed with what you've done. It took me a few weeks as I wanted to get the main slave to be a fedora 22 system, ironed out a lot of issues but still couldn't get it to function right so I decided to go with Ubuntu virtuals and it works! Now it's been live for 3 days and overall I'm pretty happy although I have noticed one curious thing which is since moving to that setup there has been no photo transcoding done for thumbnails of new videos. My suspicion is that it's due to the load being passed off to one of the slaves and yet the location the transcoder needs to write to is a read only nfs share. My understanding is that the area is inside the /var/lib/plexmediaserver/....../cache/Phototranscoder directory (excuse the non exact path but I'm writing this on my phone, I can provide exact location as an update if needed).
I'm looking to test this theory but I want to find a time that my system is quiet, take plex offline to do a full backup and then change the nfs shares to rw.
I just wanted to let you know in case you had any insight into this.
I have a few other suggestions/observations but I'll not clog this issue up with those.
Cheers

Update, so I tested with /var/lib/plexmediaserver as a read/write mount on the slaves and the photo transcoding started working again....so probably need to work out the best way to have this rather than the whole mount being rw

Did you try making just /var/lib/plexmediaserver/....../cache rw?

Yup...oh so many times and different ways...it doesn't like a nfs mount sitting on a nfs mount when the parent is ro and you want the child to be rw. I tried the nfs options that are supposed to allow it but it appears there's s bug...of course there is! lol. There's another possible way but it's a bit of a kludge... you make /opt/plex the rw share and then have /opt/plex/tmp for your standard transcoding, have /opt/plex/cache as your Phototranscoder area and symlink from blah blah original directory to that mount which is exported rw.

It seems the sync function fails and it's related to this same issue as it's in a similar location, here's an example location for sync
/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sync+/4033693/da/70356.mp4.temp

can you assign this to me please @wnielson

So can we simplify this process (and solve the issue) by simply adding a command that creates the correct symlinks?

I took a stab at this today.  I moved the following directories to /opt/plex/tmp
mv "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media" /opt/plex/tmp/
mv "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache" /opt/plex/tmp/

and then symlinked them
ln -s /opt/plex/tmp/Cache "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media/Cache"
ln -s /opt/plex/tmp/Media "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media/Media"

Both the photo encoding and sync features are now working properly.

I changed the the NFS export from
/var/lib/plexmediaserver <IP_ADDRESS>(ro,sync,no_subtree_check)

to rw
/var/lib/plexmediaserver <IP_ADDRESS>(ro,sync,no_subtree_check)

and thumbnails are generated as expected.  Can you verify that this works for you?


Insertion Stops After 25000

I am working on elasticsearch-river-csv. I was able to insert into ES only upto 25k my record size is 100k.
Operating Environment
Windows 8.1
ES 1.7
Log File
#Going to execute new bulk composed of 1000 actions , after this it print waits for next poll time.
my query
PUT /_river/my_csv_river/_meta
{
"type" : "csv",
"csv_file" : {
"folder" : "/home/hariganesh/Downloads/CSV",
"filename_pattern" : ".*\.csv$",
"poll":"5m",
"fields" : [
"column1",
"column2",
"column3"
],
"first_line_is_header" : "false",
"field_separator" : ",",
"escape_character" : ";",
"quote_character" : """,
"field_id" : "id",
"field_id_include" : "false",
"field_timestamp" : "imported_at",
"concurrent_requests" : "1",
"charset" : "UTF-8",
"script_before_all": "/path/to/before_all.sh",
"script_after_all": "/path/to/after_all.sh",
"script_before_file": "/path/to/before_file.sh",
"script_after_file": "/path/to/after_file.sh"
},
"index" : {
"index" : "my_csv_data",
"type" : "csv_type",
"bulk_size" : 100,
"bulk_threshold" : 10
}
}
Input file in csv
8848488,Harinath,"A, B, C,D"
8848489,Hari,"E,F,G,H"
Can you say what might be problem.

Could you provide me with your mapping and data file?

I did not provide any custom mapping file. I ran the set of statements provided in the wiki. I can't provide the log file plus size is around a one G.B but it will have field like below.
8848488,Harinath,"A, B, C,D"
8848489,Hari,"E,F,G,H"
without header. Comma as the separator

I tried to reproduce the issue. So I created data file containing 23.4M lines

Result after some time:

So everything works correctly.
I did some research and have some suggestions:

data file might be splitted by tab instead of comma - you can specify correct character in request
data file is not valid
open csv library supporting data on multi lines. If your data are not correct then it might result as reading multiple lines as one (multi line data are recognized by quote characters ... )

I would bet that the data file you have is not correct.

do you need further help?

Hi @vtajzich Thanks for working on this issue. I tried to insert my data using python script used csv module. I was able to insert the all the data inside it.
I used quote character as ". All the files are indexed without any problem. As you said my third column has data which spawn over multiple line, but all the data will be within double quote. In python I read all the data in csv using UTF-8 encoding. This is the only difference I did. I will try to look into your suggestions once more and let you know.

could you, please, try to import it w/ opencsv to see if it works as well? or provide me w/ your data file, please, so we can identify root cause.

Sure. I will try to find the find whether there is an issue in the data file which I have provided

@harinathcse any update?

@vtajzich With our data it stops, so we moved into python script for indexed. I tried with other data which i created using spawner, it works but with our original data it stops. Might be problem in our data i believe.

@harinathcse do you need further help?


MapboxVectorLayer does not work with non-hosted Mapbox compatible styles

Describe the bug
There seems no obvious reason why MapboxVectorLayer should not be used with other compatible styles such as hosted by MapTiler. However if not a mapbox:// path  https://github.com/openlayers/openlayers/blob/main/src/ol/layer/MapboxVector.js#L101 uses the TileJSON url as the OpenLayers source's tile url, resulting in an invalid pbf error when attempting to use the layer (which was created without errors).
Expected behavior
If not a mapbox:// path load the TileJSON and use its tile url(s) as in ol-mapbox-style's setupVectorLayer.

Yes, this is currently a limitation. To properly fix that, TileJSON parsing would have to be made available separate from ol/layer/TileJSON (which is only for raster tiles), e.g. in an ol/format/TileJSON. If someone wants to take that on, it would be a nice addition.
In the meantime, you could use ol-mapbox-style, which is used by ol/layer/MapboxVector anyway, directly. Something like this:
import Map from `ol/Map`;
import addLayers from `ol-mapbox-style`;

const map = new Map({
  // map configuration, layers etc.
});
addLayers(map, 'path/to/your/style.json').then(() => {
  // work with the Mapbox layers that are now added to the map`s `layers` collection.
});

Yes, there is certainly much more which could be done to improve TileJSON both for raster and vector. Some of the MapTiler examples hard code custom tile grids, but they could be obtained from the JSON in the same way as in this Ordnance Survey example https://github.com/OrdnanceSurvey/OS-Data-Hub-API-Demos/blob/master/OSVectorTileAPI/OpenLayers/map.js#L52-L71  Mapbox however simply assumes a standard EPSG:3857 grid, so for mapbox-gl.js compatible sources it should be sufficient to fetch the TileJSON url and use its tiles property to set the VectorTileSource's url(s).


[TEST] float16 test for test_tensor_atomic_rmw

This adds float16 to the list of dtypes tested in test_tensor_atomic_rmw. Note that the numerics were previously bad for this test when run in float16; this PR "fixes" the numerics by internally doing the sum in float32 (upcast, sum, downcast). Since the purpose is to test the atomic_rmw, and the numerical issues of doing sums in low-precision dtypes are generally know, I think this strategy should be fine for this test.

cc @bertmaher @htyu @antiagainst (re: #4925)

H100 test is failing in interpreter mode since float16 w/ atomics doesn't seem to be supported right now. I skipped the test if float_16 && interpreter mode