All strings are untranslated

I'm psyched about testing Falco!
However, after when deploying to Heroku, I'm just getting untranslated strings (Welcome.no_project etc.) through the app.
I think I saw an error related to t in the console, but I can't get it to show again.
Any ideas?
I didn't do anything other than use the Deploy to Heroku button.

Hi @sjelfull! Indeed, Falco is translated in French and English, but it looks like if your browser is in another language, no default (english) translation will be displayed.
I’ll try and push a fix today!

In the meantime, you could set your browser in English to see proper translations if you’d like to test Falco 🙂

Aha, I had a hunch that was the case. Do you know if that is a config thing in react-intl or something? I tried searching the docs for 2 secs and couldn't find anything, or else I would have tried to submit a PR.
Found this btw: https://github.com/formatjs/react-intl/issues/1089#issuecomment-361743913
Will switch to English for testing tho.

Did a bit of testing locally, and it looks like we can manually default to English in the Root.tsx component (responsible for i18n):
  const userLanguage =
    (navigator.languages && navigator.languages[0]) || navigator.language || 'fr';
  // Split locales with a region code
  let userLanguageWithoutRegionCode = userLanguage.toLowerCase().split(/[_-]+/)[0];
  let localizedMessages = locales[userLanguage] || locales[userLanguageWithoutRegionCode];

  // Default to english if user’s locale is not available
  if (!localizedMessages) {
    userLanguageWithoutRegionCode = "en";
    localizedMessages = locales["en"];
  }

  return (
    <IntlProvider locale={userLanguageWithoutRegionCode} messages={localizedMessages}>
      ...
    </IntlProvider>
  )

That solution seems a little bit easier than the one you suggested, although I’m not sure that it’d catch all edge cases.

It looks like a good improvement to me. Yeah, i'll try to submit a PR 🥇

@sjelfull Hi! Did you get the chance to have a look at the bug? Please let me know if I can help you in any way 😄

@sjelfull Hi again! I don’t want to sound pushy, but have you had time to investigate the issue? No biggie if you didn’t! And if you’d rather leave the PR for someone else it’s totally fine too. Anyway, I’m always available if you need some help

Thanks for fixing this! I got caught by the holiday preparations and travelling for work, so had 0 time.

No worries @sjelfull! And happy holidays 🎅


Fixed bold styling in private-link-security.md

Fixed bold styling in the Azure Portal section

@noakup : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@noakup - Contributors who work in the Product Manager role should work in the private repository for advanced quality validations and staging (you also can sign off directly in the private repo). To edit an article in the private repo from within the documentation, after you select Edit on an article page,  add “-pr” to the URL. We’ll leave this PR for review in the public repo, but would you make future article updates in the private repo?  Thanks!

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@nkiest - Hi, can you review the proposed addition to your article? Thanks.

#sign-off


remove unused const value

This const value was left over from a previous feature that has been removed.
NONE

/lgtm
/approve

Relevant test results are good. Going to merge some trivial PRs alongside with some stabilization PRs for CI.


Updated hpa config file to the latest API version.

Updated hpa config file to the latest API version.

This change is

Fixes #33776.

CC @pwittrock

LGTM

Fixes https://github.com/kubernetes/kubernetes/issues/33776.

@steveperry-53
This PR has both LGTMs. Can you merge it please?

@devin-donnelly
Please, can you merge this PR?

I need you to sign the new Linux Foundation CLA before I can merge.

@devin-donnelly

I need you to sign the new Linux Foundation CLA before I can merge.

Done

@devin-donnelly
Something with verification of CLA for linux foundation is broken. Please check validity of my CLA here:
https://github.com/kubernetes/kubernetes/pull/34536


no matches for kind CustomResourceDefinition

The operator is faling after deploy:
{"level":"info","ts":1592146919.6765954,"logger":"cmd","msg":"Go Version: go1.13"}
{"level":"info","ts":1592146919.6768084,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
{"level":"info","ts":1592146919.6768417,"logger":"cmd","msg":"Version of operator-sdk: v0.16.0"}
{"level":"info","ts":1592146919.6770298,"logger":"leader","msg":"Trying to become the leader."}
{"level":"info","ts":1592146920.3141868,"logger":"leader","msg":"Found existing lock with my name. I was likely restarted."}
{"level":"info","ts":1592146920.3143566,"logger":"leader","msg":"Continuing as the leader."}
{"level":"info","ts":1592146920.9364574,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":"<IP_ADDRESS>:8383"}
{"level":"info","ts":1592146920.938475,"logger":"cmd","msg":"Registering Components."}
{"level":"info","ts":1592146920.9487975,"logger":"cmd","msg":"Starting the Cmd."}
{"level":"info","ts":1592146920.9498603,"logger":"controller-runtime.manager","msg":"starting metrics server","path":"/metrics"}
{"level":"info","ts":1592146920.9500117,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"secretinfo_controller","source":"kind source: /, Kind=Secret"}
{"level":"info","ts":1592146920.9501426,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"mutatingwebhookconfiguration-controller","source":"kind source: /, Kind=MutatingWebhookConfiguration"}
{"level":"info","ts":1592146920.9507418,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"certexpiryalert_controller","source":"kind source: /, Kind=Secret"}
{"level":"info","ts":1592146920.95138,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"secret_ca_injection_controller","source":"kind source: /, Kind=Secret"}
{"level":"info","ts":1592146920.9515507,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"configmap-ca-injection-controller","source":"kind source: /, Kind=ConfigMap"}
{"level":"info","ts":1592146920.9517112,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"webhook_ca_injection_controller","source":"kind source: /, Kind=ValidatingWebhookConfiguration"}
{"level":"info","ts":1592146920.951926,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"secret_to_keystore_controller","source":"kind source: /, Kind=Secret"}
{"level":"info","ts":1592146920.9520652,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"route_controller","source":"kind source: /, Kind=Route"}
{"level":"info","ts":1592146920.9521673,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"crd_controller","source":"kind source: /, Kind=CustomResourceDefinition"}
{"level":"info","ts":1592146920.9527025,"logger":"controller-runtime.controller","msg":"Starting Controller","controller":"secretinfo_controller"}
{"level":"info","ts":1592146920.9527133,"logger":"controller-runtime.controller","msg":"Starting Controller","controller":"certexpiryalert_controller"}
{"level":"info","ts":1592146920.9527533,"logger":"controller-runtime.controller","msg":"Starting Controller","controller":"secret_to_keystore_controller"}
{"level":"info","ts":1592146920.9529667,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"configmap-ca-injection-controller","source":"kind source: /, Kind=secret"}
{"level":"info","ts":1592146920.952994,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"secret_ca_injection_controller","source":"kind source: /, Kind=Secret"}
{"level":"error","ts":1592146923.021014,"logger":"controller-runtime.source","msg":"if kind is a CRD, it should be installed before calling Start","kind":"CustomResourceDefinition.apiextensions.k8s.io","error":"no matches for kind \"CustomResourceDefinition\" in version \"apiextensions.k8s.io/v1\"","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/travis/gopath/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start\n\t/home/travis/gopath/pkg/mod/sigs.k8s.io/controller-runtime@v0.4.0/pkg/source/source.go:88\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/home/travis/gopath/pkg/mod/sigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:165\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start\n\t/home/travis/gopath/pkg/mod/sigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:198\nsigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startLeaderElectionRunnables.func1\n\t/home/travis/gopath/pkg/mod/sigs.k8s.io/controller-runtime@v0.4.0/pkg/manager/internal.go:477"}
{"level":"error","ts":1592146923.02135,"logger":"cmd","msg":"Manager exited non-zero","error":"no matches for kind \"CustomResourceDefinition\" in version \"apiextensions.k8s.io/v1\"","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/travis/gopath/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128\nmain.main\n\t/home/travis/gopath/src/github.com/redhat-cop/cert-utils-operator/cmd/manager/main.go:135\nruntime.main\n\t/home/travis/.gimme/versions/go1.13.linux.amd64/src/runtime/proc.go:203"}

CustomResourceDefinition are typically defined in each kube environment. In which environment are you running?

openshift OKD 3.11

can you look at the version of the crd object?
oc get CustomResourceDefinition.apiextensions.k8s.io certificaterequests.cert-manager.io

@raffaelespazzoli I can reproduce the error above. I'm also running OKD 3.11.
Running your command gives me:
oc get CustomResourceDefinition.apiextensions.k8s.io certificaterequests.cert-manager.io
NAME                                  CREATED AT
certificaterequests.cert-manager.io   2020-06-14T20:45:53Z

Further to this, v0.1.0 instead of v0.1.1 works fine after deploying.

sorry I should have been clearer. can you run this command:oc get CustomResourceDefinition.apiextensions.k8s.io certificaterequests.cert-manager.io -o yaml
and look at the apiversion of the CustomResourceDefinition type. I'm going to guess it's not v1 in OKD 3.11.

Correct, it is v1alpha2:

oc get CustomResourceDefinition.apiextensions.k8s.io certificaterequests.cert-manager.io -o yaml
(...)
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
(...)
  name: certificaterequests.cert-manager.io
  selfLink: /apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/certificaterequests.cert-manager.io
(...)
  version: v1alpha2
  versions:
  - name: v1alpha2
    served: true
    storage: true
status:
(...)
  storedVersions:
  - v1alpha2

ok, I have no plan to maintain backward compatibility with the 3.x line of OpenShift. So, I think you have three options:

run the v0.1.0 version of the operator
upgrade to OpenShift 4.x
fork the operator and backport it to OpenShift 3.x

Will you consider our PR if we find a way to backport it?

@slaterx sure.
I assume the CRD injection is not something that makes much sense anyway on OpenShift 3.11, so perhaps the best approach for this patch would be to simple disable that controller when running on OpenShift 3.x

@slaterx may I close this issue?

Yes, you can close it @raffaelespazzoli!


New version (2.1.2)

With the directoryIndex pull request added, could we please update the version number to 2.1.2?

done!


Hidden Wpf Mainwindow

The WPF windows seem to be hidden, how do i bring them back? Thanks in advance!

What WPF window do you mean? This library does not use WPF

Thanks for the fast repIy. I added GameOverlay.Net to a Wpf Project, which works fine. Nonetheless it seems that no WPF window can be created at all. Just wanted to have a separate window with settings to adjust some values for the GameOverlay. Is there a better way to do so?

I also use a WPF window for my settings and just do the drawing stuff in the overlay window.
The problem must be on your side i believe.

The only thing i did was adding the Example.cs and running it by the using statement in a blank project.
            using (var example = new Example(localByName[0].MainWindowHandle))             {                 example.Run();             }
It still does not seem to work to add a new separate window. They do not show up somehow.

the Example.Run() method blocks the execution of the current thread. Look at the source code.
You do not need to use the Join method in your application

Okay that seems to work, the windows do show up, but the Overlay is gone.

You still need to "Run" it. This is the line you should remove in the run method.
https://github.com/michel-pi/GameOverlay.Net/blob/master/source/Examples/Example.cs#L170

The only thing i did was exactly this. I removed the line and after that the WPF window show up on application start, but not the Overlay itself since i removed the line above

i can test it myself tomorrow. but i am quite sure it does work

I just created a new WPF project, added the NuGet package, added the Example.cs and removed the mentioned line. It definitely works

Did it again the exact same way you discribed it, but got the same result as before unfortunately.  I'm running this Project on .NET 2.7.2 and used the latest NuGet package 4.2.0. Compiled it with VS 2019 on Windows 10.
I really don't know why this happens, but as soon as the WPF window gets loaded, the Overlay is not running anymore. I added a Messagebox right after Run() to get info about IsVisible, IsTopmost and IsRunning etc. The Overlay is runnung until this point, but after hitting Ok the Overlay disappears and the WPF Window shows up. The variable IsRunning changed to false after that. When trying to Unpause the GraphicsWindow at this state i get the exception: "Graphics window is not running". So it seems that the Graphics window stops the exact same moment the WPF window is loaded.

The Overlay GraphicsWindow seems to get immediately disposed when the Join() line is removed, so i commented out the following line:
https://github.com/michel-pi/GameOverlay.Net/blob/master/source/Examples/Example.cs#L185

You should choose a better using scope then or dispose the object somewhere else without a using statement

Since i found out why the Overlay disappeared when a WPF window was shown, this can be considered as solved. Thanks for your help!


[Task]: Add more data points to the backend error flows for git

Is there an existing issue for this?

[X] I have searched the existing issues

SubTasks
Below mentioned parameters need to be present in the error message for git

applicationId
ApplicationName
userId/userName(to connect the nginx and server logs)
Improve sentry logs as well by including the user context

@abhvsn Do you have any suggestions on what extra fields or any other info we need to include in the error message for the git sync ?

Let's include the branchName to the param list.

Stale


update wasmer 2.0.1

The new version fixes leak that affected the ledger on linux. Wasmer singlepass compiler doesn’t work on windows with version 2.0.0, it’s fixed in next version.

pls update wasm


tls features

I'd like some configurability within ubi in regards to the tls library used—basically just deferring to reqwest's features. Here is how I did it in mise:
https://github.com/jdx/mise/blob/de5d26b053f39a8033417ee08c2c401613000b86/Cargo.toml#L146-L150
In your case, I think this addition to Config.toml would work:
[features]
native-tls = ["reqwest/native-tls"]
rustls = ["reqwest/rustls-tls"]
rustls-native-roots = ["reqwest/rustls-tls-native-roots"]

The reason for this is I can then use the same features in mise to allow mise users to configure the tls library in both mise and ubi without the need to install potentially native-tls and rustls side by side—cutting down on # of crates as well as providing more flexibility. Also, I've found that some users have trouble using different tls libraries so making it configurable will help them.

I released 0.1.2 with a set of features to pick which tls implementation to use. It defaults to rustls, since I've found it much easier to get builds working across platforms with that.

that's fine, I can configure mise to just not use the default features of ubi. Thanks for getting this in!


Add Introduction to Autonomous Robots book to free-programming-books.md

Hacktoberfest notes:

due to volume of submissions, we may not be able to review PRs that do not pass tests and do not have informative titles.
please read our contributing guidelines
be sure to check the output of Travis-CI for linter errors
if this is your first open source contribution, make sure it's not your last!

What does this PR do?
Add Resource(s)
For resources
Description
This book introduces concepts in mobile, autonomous robotics to 3rd-4th year students in Computer Science or a related discipline.
Why is this valuable (or not)?
This book provides an algorithmic perspective to autonomous robotics to students with a sophomore-level of linear algebra and probability theory. Robotics is an emerging field at the intersection of mechanical and electrical engineering with computer science. With computers becoming more powerful, making robots smart is getting more and more into the focus of attention and robotics research most challenging frontier. While there are a large number of textbooks on the mechanics and dynamics of robots that address sophomore-level undergraduates available, books that provide a broad algorithmic perspective are mostly limited to the graduate level. This book has therefore been developed not to create "yet another textbook, but better than the others", but to allow me to teach robotics to the 3rd and 4th-year undergraduates at the Department of Computer Science at the University of Colorado.
Although falling under the umbrella of "Artificial Intelligence", standard AI techniques are not sufficient to tackle problems that involve uncertainty, such as a robot’s interaction in the real world. This book uses simple trigonometry to develop the kinematic equations of simple manipulators and mobile robots, then introduces path planning, sensing, and hence uncertainty. The robot localization problem is introduced by formally introducing error propagation, which leads to Markov localization, the Particle filter and finally the Extended Kalman Filter, and Simultaneous Localization and Mapping.
How do we know it's really free?
The link provided takes us to the author's github repository of the book where the PDF download link for the book is embedded.
The author Nikolaus Correll is an associate professor at the Department of Computer Science with courtesy appointments at the Department of Electrical, Computer and Energy Engineering and the Department of Aerospace Engineering at the University of Colorado at Boulder.
The book is under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported license, under the purview of which we are free to:
Share — copy and redistribute the material in any medium or format
The licensor cannot revoke these freedoms as long as you follow the license terms.
For book lists, is it a book? For course lists, is it a course? etc.
It is a book.
Checklist:

[x] Not a duplicate
[x] Included author(s) if appropriate
[x] Lists are in alphabetical order
[x] Needed indications added (PDF, access notes, under construction)

Thanks a lot @eshellman for approving the PR.
Could you also please label this PR as ‘hacktoberfest-accepted’ and approve it for the same?
The deadline for completions, merging, labeling, and approving is November 1 as per the site.
Thank you very much for your time and consideration.


Fix Documentation

The hello world tutorial here https://recast.ai/docs/hello-world misses a server listen on port at the end of the script. When user tries to run the app nothing happens.
Best way to start with Recast.AI is https://github.com/RecastAI/starter-NodeJS and viewing this repo source code.

The code example is still wrong.


Can not deploy. could not initialize env -- Access Denied--

Issue/question
Hi, I can not deploy my app.
Error message
2021-01-24T18:49:37.421Z [INFO]: Note: It is recommended to run this command from the root of your app directory
2021-01-24T18:49:42.773Z [WARNING]: - Initializing your environment: dev
2021-01-24T18:49:42.839Z [INFO]: Could not initialize 'dev': Access Denied
2021-01-24T18:49:42.854Z [ERROR]: !!! Build failed
2021-01-24T18:49:42.855Z [ERROR]: !!! Non-Zero Exit Code detected
2021-01-24T18:49:42.855Z [INFO]: # Starting environment caching...
2021-01-24T18:49:42.855Z [INFO]: # Environment caching completed

Additional information
This is the first time I have this message. My amplify version is 4.41.2 and I´m working in a macbook pro M1.  I have already seen that I actually have dev enviroment with amplify status and also in team-provider-info.json. I have also execute in my terminal the amplify pull environment ....... command....
This is my team-provider-info.json file
{
  "dev": {
    "awscloudformation": {
      "AuthRoleName": "amplifyXXXXX",
      "UnauthRoleArn": "arn:aws:iamXxXXXXX",
      "AuthRoleArn": "arn:aws:iamXXXXXx",
      "Region": "XXXXX",
      "DeploymentBucketName": "amplifyXXXXXX",
      "UnauthRoleName": "amplifyXXXXX",
      "StackName": "amplifyXXXXX",
      "StackId": "arn:aws:cloudformationXXXXXX",
      "AmplifyAppId": "XXXXXX"
    },
    "categories": {
      "auth": {
        "XXX": {XXXX}
      }
    }
  }
}

Hi
I have the same error
⠼ Initializing your environment: dev
Could not initialize 'dev': Access Denied
I didn't try to push on this project for months. Meanwhile I have pushed on other amplify projects on other AWS accounts/profiles.
I have tried to force the profile with init/configure commands ... but still same error
Is there a way to get more verbose logs ?

What fixed it for me: the role that Amplify was using did not have AdministratorAccess.
You can make a new Role in IAM with AdministratorAccess. Then you go to Amplify and your app. In App Settings > General you can see the Service role. You can click Edit and then for Service role choose the one you just created.


SenML JSON encoder in leshan-core with unit tests.

Contributing SenML JSON. Implementing SenML-JSON encoder in leshan-core inspired by LwM2mJson, with unit tests.

I read the RFC 8428 and I think a more appropriate terminology would be :
SenMLDataPoint => SenMLRecord
SensorMeasurementList => SenMLPack

Is there any reason to not follow the org.eclipse.leshan.json way ?
I mean :
JsonRootObject => SenMLPack
JsonArrayEntry  => SenMLRecord
JsonRootObjectSerDes => SenMLPackSerDes (with only the encoding part)
JsonArrayEntrySerDes  => SenMLRecordSerDes (with only the encoding part)
LwM2mJson => SenMLJson
and some tests like in org.eclipse.leshan.json ?
If there is no good reason, I would prefer to keep it for consistency.

I didn't get the point about SenMLabel and SenMLJsonLabel ?

I would really appreciate if we put LwM2mNodeSenJsonEncoder for another PR.

:+1:
I squash all the commit in one and fix a little formatting issue.
This is now integrated in branch 2.0.x (commit 77abfe9)
This is the first commit of the 2.0.x branches. Thx @cavenaghi9  !
Next step ?


Add Learn to Program (foundation in web development)

Thanks Karl! I have modified your commit to match contribution guidelines and added it in 17c5afaa62521d184d823cebfbb28f338565d1a2

Thanks!


[Modern] About the Status View in the latest commit

Hi Anton and everyone, I have some question about the latest commit.
I see that @mail2bishnoi has created a new quick device menu / status view, which included the new device deleting button.
However, when I try this, the device is still there and I have to refresh the web page for it to disappear. Is there a solution to delete the device like the original deleting button (which made the device icons on the devices list and the map disappear immediately?)

Sounds like a bug that needs to be fixed.

Already fixed.


Add code coverage CI

use lcov to generate code coverage report together with GCC build, and send result to codecov. Also some minor refactor to travis config.
Signed-off-by: Yi Wu<EMAIL_ADDRESS>

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@37298ba). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #7   +/-   ##
=========================================
  Coverage          ?   84.77%
=========================================
  Files             ?       40
  Lines             ?     2029
  Branches          ?        0
=========================================
  Hits              ?     1720
  Misses            ?      309
  Partials          ?        0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 37298ba...891b81c. Read the comment docs.

wow, we have a coverage of 84.77% ~


mago-mi - ability to force external console

If --tty=external-console is set, run debuggee in new console.
MagoDE changes: LaunchSuspended pszOptions parameter == "--external-console" support is added - sets NewConsole flag for launch parameters.

refactored external console support

Thanks.


Fix folder dragging when parent has matrix

Current code assumes the object being grabbed has a parent in the same matrix as world. We need to transform the current folder being dragged as offset from the parent matrix (NOT the world matrix).
Prior to this change folders jumped around like crazy if they were children of elements with a matrixWorld != identity.
Tested both with folders in the world space, and with folders with parents not in the world coordinates.

Hi, original devs have gone quiet but I've been reviewing your changes for my fork (which I'll probably be doing some more work on/with over the next couple of months).
Your initial bug fix looks good, and other stuff all sane etc, only thing is that it looks like MAX_FOLDER_ITEMS won't work so well with rows that aren't uniform height (including open nested folders as well as some other features that aren't in the original library).  I think I'll try changing your version to a maxHeight property on folder, but haven't fully thought through what'll happen with lots of big nested folders or other edge cases.
In my laziness, I'm currently just putting any changes into my ImageButton branch - some of those involve extra features for which the API might change, so I was keeping those separate from 'normal' version, but I don't think there's anything breaking in the standard stuff (although I do plan on fixing https://github.com/dataarts/dat.guiVR/issues/91 soon, which will involve breaking changes one way or another).


504 error

The module has been working perfectly up until today. When MM loads, it says “504 internal server error - nginx.” I restarted MM but I’m still getting the error.  Any idea how to fix?

A 504 error is a server timeout error which could mean the data source was having trouble fulfilling the request for data. It could also mean that your internet was having an issue at the time. I loaded the module and it fired right up so I'm not seeing this behavior, nor has anyone else reported the same. Assuming that you didn't alter any of the module files I would suggest you try again or isolate the module (so that others are disabled) to see if there is a conflict. You could also delete the module folder and re-install to see if that helps.
If you require more help then please post a topic on the magicMirror forum and I'll be glad to help you there


Add ParmEd Version Check

As discussed in group meeting, here is how I checked the version in the Hydroxynator:
# If ParmEd is older than 2.0.4 then it will not work, raise an error
try:
    ver = parmed.version
except:
    oldParmEd = Exception('ERROR: ParmEd is too old, please upgrade to 2.0.4 or later')
    raise oldParmEd
if ver < (2,0,4):
    raise RuntimeError("ParmEd is too old, please upgrade to 2.0.4 or later")

Made an update to a branch which should fix this.


High timeout for Commerce UsageAggregates list (on 504 gateway error)

There seems to be an issue with the UsageAggregates API of Azure. When I make a request directly to the REST API, I get a 504 Gateway Timeout error after 60 seconds. When using the SDK (azure-arm-commerce) to make the call (client.usageAggregates.list), I get the same response.
However, the SDK call takes over 700 seconds to come back with an answer, whereas the API already timed out after a minute. Is this difference in timeout intended, or is something going wrong in the SDK?

@RodgeFu, @nickzhums, @qiaozha Can we close this issue with a pointer to show how to configure the retry policy?

@RodgeFu @zikalino do we have any track 1 retry policy samples?

Hi @itilitymaarten ,
You can find exponentialRetryPolicy, systemErrorRetryPolicy and throttlingRetryPolicy here: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/core-http/src/policies
They can be used as any other policies in JS SDK, a sample for policy assignment can be found here:
https://github.com/Azure/azure-sdk-for-js/blob/7b0e5daab20d935fbb916875c97af4e3c08dcf67/sdk/core/core-http/samples/node-sample.ts#L42

@changlong-liu That sample is for @azure/core-http where as the management libraries use @azure/ms-rest-js. Though the former is built on top of the latter, it might have had changes done to it. Have you tried that sample with @azure/arm-commerce package?

Thank you @ramya-rao-a .
I have just had a try on @azure/arm-commerce, and found it's not using core-http, but the old  @azure/ms-rest-js 1.x.x.  And also an old version for ms-rest-nodeauth.
Correct the policy folder for ms-rest-js as:  https://github.com/Azure/ms-rest-js/tree/1.x/lib/policies
Reference code for creating policy factory: https://github.com/Azure/ms-rest-js/blob/master/lib/serviceClient.ts#L401
Below are some details in my verification for<EMAIL_ADDRESS>npm install "<EMAIL_ADDRESS>npm install "@azure/ms-rest-nodeauth": "^2.0.4"
code:
import { UsageManagementClient, UsageManagementModels } from "@azure/arm-commerce"
import { exponentialRetryPolicy, signingPolicy, generateClientRequestIdPolicy, deserializationPolicy, redirectPolicy} from "@azure/ms-rest-js"
import { loginWithServicePrincipalSecret, ApplicationTokenCredentials } from "@azure/ms-rest-nodeauth";

function main() {
  loginWithServicePrincipalSecret(
    "[YOUR CLIENT ID]",
    "[YOUR SECRET]",
    "[YOUR TENANT]",
    (err: any, credentials: ApplicationTokenCredentials) => {
      if (err) throw err;

      const clientOptions: UsageManagementModels.UsageManagementClientOptions = {
        requestPolicyFactories: [
          generateClientRequestIdPolicy(),
          signingPolicy(credentials),
          redirectPolicy(),
          exponentialRetryPolicy(10, 10),
          deserializationPolicy()
        ]
      };

      const client = new UsageManagementClient(credentials, subscriptionId, clientOptions);
      const reportedStartTime = new Date("2019-3-1 0:00:00Z").toISOString();
      const reportedEndTime = new Date("2019-4-1 0:00:00Z").toISOString();
      client.usageAggregates.list(reportedStartTime, reportedEndTime).then((result) => {
        console.log("The result is:");
        console.log(result);
      });

    }
  );
}

main();


Performance

Naiive question: is it possible that the following assembler code (excluding the variable declaration) needs 256 cycles, every further iteration (++us) are additional 197 cycles?
unsigned int us = 1;
__asm__ __volatile__ (
	  "1: addi %0,%0,-1" "\n\t"
	  "bnez %0,1b" : "=r" (us) : "r" (us)
	);

I timed it using
  __asm__ volatile ("rdcycle %0" : "=r"(a));

with a beeing a uint32_t.
This seems like a lot just for an add and a compare/branch also considering https://github.com/cliffordwolf/picorv32#cycles-per-instruction-performance.
The reason why I'm asking is I try to implement and equivalent to the Arduino delayMicroseconds and this delay code takes between 16-21 us on an Alhambra II board running at 12 MHz.

Are you running the code out of SPI flash by any chance?

Yes I am. Is there a way to speed this up? Cache or anything else?
What setup is needed to achive the numbers given in https://github.com/cliffordwolf/picorv32#cycles-per-instruction-performance ?

Cache or anything else?

Yes, you can create a cache. Or you can just copy all performance-critical code to RAM, or execute from a ROM. Whatever works for you. These are decisions you have to make about the system you are building and have nothing to do with PicoRV32 itself, as PicoRV32 is just the processor core.

What setup is needed to achieve the numbers given in [..]

Just a fast RAM. See https://github.com/cliffordwolf/picorv32/blob/master/dhrystone/testbench.v for the setup.

Sorry for comming back to this late, but my time is restricted... ;)
The project is: https://github.com/drtrigon/fpgarduino-icestorm
I still would like to make this work. As hardware I use an Alhambra board. As development tool icestudio. I can guess of 2 possible ways to speed this up:

use a cache as mentioned; can you give me some hints on how to implement this in icestudio?
use a PLL to generate a faster clock; here I would need some hints on how to implement and use a faster clock?


Add task timeout error, de-serialize errors in task protocol cancel m…

…ethod
Recreated PRs for ODR-273 fix on 1.0.0 branch. Needed for 1.0.5 release.

Manfred is currently running this through a test on his stack.

@benbp @yyscamper @anhou Please review to make sure I recreated this correctly.
Please DO NOT MERGE until testing is complete. Thanks!

:+1: hound errors are ignorable, since it's failing to read the test .jshintrc

:+1:

Testing was successful.  @benbp @yyscamper @anhou @brianparry or @jlongever, please merge these three PRs at the same time as soon as possible:
https://github.com/RackHD/on-tasks/pull/84
https://github.com/RackHD/on-core/pull/40
https://github.com/RackHD/on-taskgraph/pull/35
Thanks!


New Pollen Type for DNA Bases

Currently, we represent sequences - strands of DNA base pairs - as a String (equivalently, a List of characters). However, since there are only 5 possible base pairs in odgi (ATCGN), we can represent each base using only 3 bits (as opposed to the 7/8 required to represent characters). Additionally, representing a sequence as a String allows users to insert arbitrary values into a sequence, potentially introducing subtle, difficult-to-detect bugs or corrupting the data. Instead of representing a DNA base as a character, we could represent it using a unique type. Then we can enforce the invariant that the only base pairs are ATCGN, improve our memory footprint, and possible speed up data transfer rates in certain computations (?).
Considering what this might look like, I did some back-of-the-napkin calculations and found that the chr8.pan.gfa graph stores 259525394 base pairs, which takes up 216 MB in memory if we represent characters using 7 bits. This might not sound like a lot, but I understand that the typical FPGA can only store a few megabytes at a time, so reducing the amount of memory used to 92 MB by using 3 bits to represent each base pair could reduce the time needed to compute crush for the entire graph by a factor of x2.3 (in a perfect world where the complexity of crush scales directly with the size of a sequence).
If we introduced a special Base type, the only difference to our model is that node sequences would no longer be strings:
type Segment = {
      sequence: List<Base>; //ACTNNNGAC, etc.
      edges: Set(Edge); //edges encode their direction + orientation
      steps: Set(Step); //steps that go through segment
    }

crush would become
for segment in Segments:
        seq = List<Base>(); // seq = String::new();
        in_n = false;
        for c in segment.sequence:
          if (c == 'N') {
            if (!in_n) {
              in_n = true;
              seq.append(c);  // seq.push(c);
            }
          } else {
              in_n = false;
              seq.append(c);  // seq.push(c);
          }
        emit { segment with sequence = seq};

We could even take this a step further and give List<Base> a special name, e.g., Strand. The way I conceptual this, Strand and List are are not interchangeable (i.e., not subtypes of each other). Because Base is effectively a subtype of Char, I imagine Strand as behaving like String (except the values of its characters are constrained). For example, we would still use seq.push(c) instead of seq.append(c), using the syntax for Strings rather than Lists. In this case, the node type would be as follows:
type Segment = {
      sequence: Strand; //ACTNNNGAC, etc.
      edges: Set(Edge); //edges encode their direction + orientation
      steps: Set(Step); //steps that go through segment
    }

crush:
for segment in Segments:
        seq = Strand(); // seq = String::new();
        in_n = false;
        for c in segment.sequence:
          if (c == 'N') {
            if (!in_n) {
              in_n = true;
              seq.push(c);
            }
          } else {
              in_n = false;
              seq.push(c);
          }
        emit { segment with sequence = seq};

Thoughts on the introduction of these new types? Do we prefer Base but not Strand, or Strand but different from how I described it? Neither?

Thank you for clarifying the different concerns with respect to the abstract model vs. the physical implementation, this makes a lot of sense!
I suppose that since Pollen generates a lot of data with abnormal bit widths, at some point we may want to consider if this reduces program performance on CPUs and address these (hypothetical) performance issues. Does calyx by any chance already have a way to deal with this memory/speed tradeoff?

It doesn't really do much about this at all: all bit widths are equally (in)efficient. That is, because the target is hardware, not software, it has no special affinity for 8-bit-aligned sizes. One place we could consider changing this is in the interpreter… but I think the only place we should worry about this is if we generate CPU code (not Calyx code) from the DSL as well.


Cannot find type definition file for babel__core (plugin-structure-mongoose) [EDIT: Pull Request Fix Within]

Heads up, just generator in an empty dir and got this with plugin-structure-mongoose:

/sba2 == root

Ubuntu 20.04

Adding the following to package.json's devDependencies:
"@types/babel__core": "^7.1.12"

seemed to do the trick. However, this is a workaround: Someone with more time should make a pull request.

Actually, I got this: https://github.com/open-devs/fastify-typescript-generator/pull/18

Eh, there are a ton of typings missing. Is this repo still maintained?

sorry for late response.

Though we haven't been able to verify it in long time.
If you can help with this, we would really appreciate that. Or I'll add the types package by this month's end.

I am not sure why it's there as types/node is included.

I'll get back on it today.

Hi @dylanh724 we have updated the dependencies as well as added the missing types, it's weird that initially, it didn't show any sorts of errors to us when it tested every template out. But thanks a lot for pointing it out.
Please Note fastify don't have a type definition file & it's out of scope of this project


[KYUUBI #3853] [Improvement] Add fast maven profile for skipping running tests, style checks and building docs

Why are the changes needed?

to close #3853.
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before make a pull request

cc @ulysses-you @pan3793

Do you think we should skip compiling tests which  minimizing build time in this profile as well ? @pan3793

I prefer to add it to dev tool rather than in pom.xml. Developers can run something like ./dev/package --fast (not sure the script file name)

This profile can be used in different scenarios, eg. pack single module in jars, update KyuubiConf to setting.md and etc.. Add to dev tool script will limit the possibilities of use range.
Flink also has a similar profile in pom here. https://github.com/apache/flink/blob/release-1.16.0/pom.xml#L1084

I prefer to add it to dev tool rather than in pom.xml. Developers can run something like ./dev/package --fast (not sure the script file name)

This profile can be used in different scenarios, eg. pack single module in jars, update KyuubiConf to setting.md and etc.. Add to dev tool script will limit the possibilities of use range.
Flink also has a similar profile in pom here. https://github.com/apache/flink/blob/release-1.16.0/pom.xml#L1084

how can we use one profile to do different somethings ?

how can we use one profile to do different things ?

Using mvn with this profile by demand. e.g.

building one or more modules, mvn install -Pfast -pl: common, mvn package -Pfast -pl: common,sql-engine
updating config docs, KYUUBI_UPDATE=1 build/mvn clean install -Pfast -Pflink-provided,spark-provided,hive-provided -DwildcardSuites=org.apache.kyuubi.config.AllKyuubiConfiguration

Do you think we should skip compiling tests for minimizing build time in this profile as well ? @pan3793

no, skipping building test classes causing other problems.

Codecov Report

Merging #3854 (62cb474) into master (7ee25b2) will decrease coverage by 0.03%.
 Consider uploading reports for the commit 1dcfeaf to get more accurate results

@@             Coverage Diff              @@
##             master    #3854      +/-   ##
============================================
- Coverage     52.95%   52.91%   -0.04%
  Complexity       13       13
============================================
  Files           497      497
  Lines         28058    28058
  Branches       3865     3865
============================================
- Hits          14858    14848      -10
- Misses        11800    11808       +8
- Partials       1400     1402       +2

Impacted Files
Coverage Δ

.../kyuubi/server/mysql/constant/MySQLErrorCode.scala
13.84% <0.00%> (-6.16%)
:arrow_down:

...ache/kyuubi/server/mysql/MySQLCommandHandler.scala
76.84% <0.00%> (-4.22%)
:arrow_down:

...ache/kyuubi/server/mysql/MySQLGenericPackets.scala
76.59% <0.00%> (-2.13%)
:arrow_down:

...mon/src/main/scala/org/apache/kyuubi/Logging.scala
52.63% <0.00%> (-1.32%)
:arrow_down:

...n/scala/org/apache/kyuubi/engine/ProcBuilder.scala
80.74% <0.00%> (-0.63%)
:arrow_down:

...he/kyuubi/ha/client/etcd/EtcdDiscoveryClient.scala
68.88% <0.00%> (+0.55%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

The total build time on my local machine is greatly reduced,

from 7:14 min with skipping test of mvn clean install -DskipTests
to 7:09 min with new profile of mvn install -Pfast
`

The PR should be ready for review.

fast profile skip goals by setting maven props
two new maven props introduced to clarify usage and range in related plugins

Tested in local, it fasted the build speed extremely.

And I think we can skip engine binary release tarball downloading as well in fast profile.

Thanks, merging to master


customizable vagrant machine name

I would like to customize the machine name for the vagrant box.
In the VagrantFile I mean.

Closing in favor of #136, which will hopefully fix both this and that issue :)


Add snuff

This adds some snuff to our shell.

This change is

Opened against google/nomulus by accident.


add support for c++? like add the demo of c++.

add support for c++? like add the demo of c++.

It could be interesting. Currently our demos are focusing on easy-to-use and work-out-of-the-box. Demos in C++ could be helpful in some cases but not the first priority to consider.

It could be interesting. Currently our demos are focusing on easy-to-use and work-out-of-the-box. Demos in C++ could be helpful in some cases but not the first priority to consider.

python is too concise, and it is difficult to convert to other languages.

After an internal discussion on this feature, we agree that C++ demos can be added but they should be clean and simple enough to show how to run inference and get the expected output. I will create an issue tracking the status of C++ demos and I will provide the first C++ demo as soon as possible.

The first C++ demo is here: https://github.com/opencv/opencv_zoo/pull/138. Feel free to review.

Task tracker for adding C++ demos: https://github.com/opencv/opencv_zoo/issues/135.


⚠ Bofrost.de has degraded performance

In 574dfce, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1474 ms

Resolved: Bofrost.de performance has improved in 3ad5dbf.


Missing uploaded files

Hi, I am having issue on uploading the files to Digital Ocean. I am able to complete the upload process, so far no error logs. But I could not find the image being uploaded at all. Anyone has the same issue?
DB in the mongo, successfully capture the file data.
I am having the path point to process.env.PWD + '/uploads/photos'.

Why it needs 777 permission?

The bigger issue is why a folder created by your running app is not available to that same running app (ie what users are changing? permissions?)

@kenken17 I know that this issue is closed. I am also facing this issue however. Could you elaborate on how you fixed this permission issue?

I set all folders (/uploads) to 777 (recursive). I know that is not a good idea. But i have to move on....


ng new - Invalid or unexpected token error

Bug Report or Feature Request (mark with an x)
- [X] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)
- [X ] new

### Versions
<!--
>node --version
v8.11.4

>npm --version
5.6.0

>ng --version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 6.1.5
Node: 8.11.4
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.7.5
@angular-devkit/core         0.7.5
@angular-devkit/schematics   0.7.5
@schematics/angular          0.7.5
@schematics/update           0.7.5
rxjs                         6.3.2
typescript                   2.9.2

Windows 10 1709
-->

### Repro steps
<!--
>ng new aaa
Invalid or unexpected token
-->

### The log given by the failure
<!-- Normally this include a stack trace and some more information. -->

### Desired functionality
<!--
What would like to see implemented?
What is the usecase?
-->

### Mention any other details that might be useful
I give this error after update Windows 10 from 1703 to 1709 version.
I try to uninstall and reinstall node and then reinstall angular cli with
npm install -g @angular/cli

I have always same error "Invalid or unexpected token" when I use ng new command.

Thank you

After uninstall ng cli with
npm uninstall -g @angular/cli
and reinstall it,  ng new command work fine.


README updated with building instrutions

fixes #3
I have added build instructions
also added requirements.txt

As I think you should add the url of documentation of hydrus (http://hydrus.readthedocs.io/en/latest/) for a reference to documentation.
@Mec-iS  Am I right?

I have added the url @sandeepsajan0  @Mec-iS


ODI DFP-34X-2C2 password reset without login

I got an ODI DFP-34X-2C2 branded as iszo from amazon and the default login credentials admin/admin give me a "bad password" error. I have attempted this script with all the credentials mentioned in the article to no avail. If someone knows of a way to reset without login access or other default credentials I could try that would be great. Otherwise I'll exchange it and try again.

try plug & unplug SC fiber 5 times within ~10 seconds to factory reset
if not possible, only way is take the SPI Flash out
or return to seller


v0.5.1

1. Issue, if available:
2. Description of changes:
3. Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: link to issue
[ ] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Hey @tuananh, I found a way to simplify the helm README to just generate helm-docs whenever we run make helm. Since chart is published alongside release versions, we only want to update the README when we release a new version of the chart. This is important to avoid version skew.
I just wanted to check that I'm not missing anything from you change and get your blessing on these changes.

Can you make the changes to the Getting Started guide as well?

Let's cut docs in a followon -- it's a bit complicated.

@ellistarn this works for the current manual release i guess. but later on, if you want to automate the release process of helm chart, it'll get a bit complicated because we then need CI to comit back the changes of helm-docs back which i don't think is a good idea.
what i have in mind is

check helm-docs for every pr
make sure the chart version bump is getting check too.

then we can automate the chart release progress, without waiting for karpenter. since i figure chart release is usually a lot more frequent than karpenter itself.

@ellistarn this works for the current manual release i guess. but later on, if you want to automate the release process of helm chart, it'll get a bit complicated because we then need CI to comit back the changes of helm-docs back which i don't think is a good idea.
what i have in mind is

check helm-docs for every pr
make sure the chart version bump is getting check too.

then we can automate the chart release progress, without waiting for karpenter. since i figure chart release is usually a lot more frequent than karpenter itself.

Good points. Let's cover this in working group.

Sure can :)


Confused about extensions.yml

The screenshot below shows a "disabled:" section in extensions.yml.  That is what I get with the command to "View differences between actual and saved settings".
But note also that I have no Disabled extensions, and in the current environment only 7 installed+enabled.
Every time I use Sync Settings to do a commit+push of current settings, the GitHub repo shows that the file was updated, but it shows the old (red) version. See the second screenshot below.
Again: The way I'm reading this is that the right side of the diff should indicate additions that were made, and we see "adzero" on the right side at line 6. We see "adzero" on the left at line 8. so it seems this extension was simply moved up in the list of disabled extensions. But in the live repo, updated just a few minutes ago (and many times before this), line 8 still has the "adzero" extension that was supposedly moved out. Also note that there should not be any disabled extensions in this list at all, while extensions.yml shows about 150 old extensions. (It's remotely possible that this is getting confused with extensions that are still on the system in other VS Profiles, but I doubt that.)
I don't understand what's happening. 1) It has a ton of old data. 2) It's not actually updating the remote repo with the current data.
I am expecting the remote repo extensions.yml to reflect the current set of installed and disabled extensions.
Is that not a valid expectation?

A known issue is that the list isn't ordered. I haven't took the time since nobody was bothered by it...

It's remotely possible that this is getting confused with extensions that are still on the system in other VS Profiles, but I doubt that.

I don't use VS Profiles so I don't the extension behaviour in that case but it does look for all the extensions. So the support of VS Profiles will need to be added.

The issue isn't that the list of extensions isn't ordered. This extension doesn't care about the contents of a file.
The issue seems to be that the wrong extensions.yml is being saved and used for comparison.
Test:

Check your repo for extensions.yml. Note the last update and contents.
Add an extension.
Use the extension to check a diff. Is it right?
Use the extension to commit and push to the remote repo.
Repeat step 1. Is it right?
Repeat step 3. There should be no difference.
Repeat step 4. Does it recommit extensions.yml even though there were no changes?

When I have time, I'll look to see which version of extensions.yml it's using on my system.
Thanks!


ghostscript: add patch for CVE-2020-15900

Motivation for this change
https://nvd.nist.gov/vuln/detail/CVE-2020-15900
Backport of #96129
Things done

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

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

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

@ofborg eval
@ofborg build ghostscript xfig solfege gimp evince qpdfview python37Packages.matplotlib

This has hung around for too long. Merging.


Oh-my-zsh can't load theme properly

My oh-my-zsh can't load themes correctly. It looks like this, it should be theme "agnoster"

Did you install the powerline fonts?
Agnoster requires those fonts to be able to display correctly. More details in the provided link.
When I first tried that theme I had the same issue.
In my Debian based environment, the problem was solved by running "apt-get install fonts-powerline". You will need to restart your terminal for it to take effect.

I believe I have installed Powerline Fonts @ckartchner

Those question marks appear when the correct font can't be located.
What evidence can you provide that the correct fonts are installed?
For example, if you used apt, you can check in /var/log/apt/history.log.
What OS are you using?

This is a font issue. Make sure you have a Powerline font set up and are using it in your terminal app. If you can't figure it out, searching for powerline font <terminal-you're-using> will get you many links.


Any topic on kubernetes operator development and lifecycle

Just an advice on following topic.
kubernetes operator development and lifecycle, CustomResource.

yes, i think that CRD are needed also for the new CKAD exam curriculum

I hope this post will be useful for people who wants to take next step in their career and Pass Linux Foundation CKAD Exam certification. The range of knowledge as you can see is wide and sometimes you need to know the details, but this Pdfcerts will make you a better specialist and will open more opportunities in front of you. I hope you pass Linux Foundation CKAD exam dumps and find your name under Linux Foundation Kubernetes Application Developer Certified Kubernetes Application Developer Exam!
Download Full Practice Exam Material Here: https://www.pdfcerts.com/Linux Foundation/CKAD-exam-questions.html

Hi @rid3thespiral @addastane
It is correct that CKAD touches on operators, so there are now a couple of lectures on this in our course. They do not go into details about how to create an operator, only how you create CRDs, deploy operators and their use cases.
There are plenty of articles in places like Medium where people discuss how to build a basic operator in Python or Golang.
Thanks.


Enhancement Request: Volume control

It would be great if the basic player had some form of volume control for users to interact with.

The basic player and advanced player now has the volume control to mute/unmute as show in the image below.
Basic Player:

Advanced Player:

Great....however, it would be preferable to allow the user to control the volume level rather than just mute/unmute.

I initially thought of the same. But unfortunately, that does not go well
with the mobile browsers.
On Wed, 3 Jul 2019, 13:49 dmbrenneman<EMAIL_ADDRESS>wrote:

Great....however, it would be preferable to allow the user to control the
volume level rather than just mute/unmute.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/vmudigal/ngx-audio-player/issues/8?email_source=notifications&email_token=AALV5ZR4RPEY7KMUVBRKTOLP5SN47A5CNFSM4HYXXE42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZEKWIA#issuecomment-508078880,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALV5ZWCRVBTYRD5F3YWY3DP5SN47ANCNFSM4HYXXE4Q
.

Right, that does present a challenge. What about conditional logic to disable the feature for mobile devices using some kind of function for checking the userAgent?

That's not a problem, but won't be consistent across web and mobile.
Compare few sites like amazon music. The native mobile app does not have
volume controls.
Let me know if it makes a huge difference.
On Wed, 3 Jul 2019, 14:25 dmbrenneman<EMAIL_ADDRESS>wrote:

Right, that does present a challenge. What about conditional logic to
disable the feature for mobile devices using some kind of function for
checking the userAgent?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/vmudigal/ngx-audio-player/issues/8?email_source=notifications&email_token=AALV5ZWUFVPPNUKMS7S6GGTP5SSELA5CNFSM4HYXXE42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZEN3AQ#issuecomment-508091778,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALV5ZREN65V4NYBCYJHCQDP5SSELANCNFSM4HYXXE4Q
.


Update RBAC rules from upstream.

These upstream RBAC rules are from the 0.6 release but should be compatible with 0.5. They contain all the things we actually need to run (including all the finalizer business).

Verified locally with that this fixes RBAC issue with finalizers when deploying a Knative Service.
/lgtm


[Feature request] Different Pages and Image Indexing

Feature request
Description

I tested out the sitemap extension good work but there is a must have feature that sitemap should be divided into different pages after a pages limit see how properly it's divided in WP

Index Image also automatically get the first image and it's data.

<url>
<loc>https://example.com/test.html</loc>
<lastmod>2021-06-20T14:24:12+00:00</lastmod>
<image:image>
<image:loc>https://example.com/image.png</image:loc>
 <image:title><![CDATA[Example]]></image:title>
<image:caption><![CDATA[Example]]></image:caption>
</image:image>
</url>

The sitemap plugin has not been merged yet. For now you'd better leave a comment to #277

ok I think @Mister-Hope will take a look

Hi there, I would like to share some ideas.

The second one is good, and I will support it after the sitemap plugin is merged as an  enhancement.
But actually this feature is not important at all.
Why?
Please notice not all the search engines are supporting that. Most search engines are just regarding sitemps as url maps, and they claw the html content themself, Google is just doing that, so if you are using an seo plugin like @mr-hope/vuepress-plugin-seo, infomation in <meta> tags are much more important and do have a higher preority than sitemaps info. Which means as long as you are providing all the information you wanna provide to search engine in meta tags, you should better not put it in sitemaps for size consideration.

For the first one, it's definately unneeded with VuePress.
Why?

You can provide multiple Sitemap files, but each Sitemap file that you provide must have no more than 50,000 URLs and must be no larger than 50MB (52,428,800 bytes).

It's unpossible for a VuePress project to reach this limit. In my test, a over 1000 pages project already fails on Github Actions using vuepress2 (becuase action machines has 8 GB rams). So the time and memory cost of a project with more than 50000 pages in vuepress is unpossible. So we should leave things simple. One single sitemap files should be enough in most situations.

Hello @Mister-Hope Thanks for the reply ok then I no longer need first one but still need second one as I am using VuePress as a site other than documentation, However you are also right that this feature is not that useful so if you want feel free to close this issue.

Hello @Mister-Hope Thanks for the reply ok then I no longer need first one but still need second one as I am using VuePress as a site other than documentation, However you are also right that this feature is not that useful so if you want feel free to close this issue.

Have you check what search engines are actually reading <image:image>? I am pretty sure google do not support it, because I made some investigation when I am building sitemaps plugin for v1 last year. Why do you actully needs this none standard item?

If you care about SEO. you will probaly need a plugin like https://vuepress-theme-hope.github.io/seo/
If you are using sitemap as feeds, you should probably provide a standard feed using plugins like https://vuepress-theme-hope.github.io/feed/

Actually I am not getting why images are needed in sitemaps. They are just maps describing urls for search engines telling them which pages they need to visit and claw.

Oh sorry, you need to sperate sitemaps?

Oh sorry, you need to sperate sitemaps?

Sorry I dont need images feature I just need separate sitemap features I am not using different vuepress installations as my site is once loaded user will have to navigate to several pages and I don't want to reload the browser page with normal link that's the reason.

I am curious how much pages does your site have?

I am curious how much pages does your site have?

For now it's 40 - 60 only but as it's a tutorial type website it will be having too much pages category and different things.

I am not sure if you understand what I am expressing.
You have to rebuild every time your content change, and for a 1000 pages site, the time is already around 10min. You will absolutely take more than 6 hours to build a site ( and GBs output) if your site is around 5w pages. Then vuepress is probably not the tool you should use. You should use tools based on server with database, where each your page is stored in database, and the server generate pages for you if you do needs lots of pages.
You will never reach a single file limit if you are in normal condition usage of VuePress.

I was using wordpress and many other things but I don't like the delay in page load in static site it's instant and in with database server generates site and then it works I like vuepress too much so I am planning to use it and do you mean 30 gb ram or rom ?? Also I am closing this issue I think that no one will make vuepress site like me

RAM, I am not tested that much, but 700 pages is already taking 7.2GB ln Ubuntu 20

RAM, I am not tested that much, but 700 pages is already taking 7.2GB ln Ubuntu 20
(790 pages with lots of content BTW)

OK Then A bit off topic but do you know something that has theme similar to vuepress and navigates to different pages in realtime and it can be easily used without this problems that we are having and it can handle more than 50000 pages


Inferring signature of unannotated function passed as an argument to a polymorphic function

See the following example. OTI warns about assigning a Foo to a Bar, whereas NTI warns about using global this, because it doesn't know the type of this inside the argument function.
/**
 * @template T
 * @param {function(this:T)} x
 * @param {T} y
 */
function poly(x, y) {}

/** @constructor */ function Foo() {}

/** @constructor */ function Bar() {}

poly(function() { var /** !Bar */ b = this; }, new Foo);

See also the array.forEach example in #834. OTI has some weird order of processing in order to get a correct type signature for the argument functions.
I'm not sure if it's worth it to replicate that, or if we should just tell people to use type annotations in this case.

I can get rid of all the dangerous use of global this object warnings by giving type information about the function passed to goog.array.forEach (and other similar array functions).  But if using the this parameter to goog.array.forEach always results in an error, then those functions in closure library should be revised to eliminate the this parameter.  This is similar to issue #960.
Here is an example of how to get rid of the warning "dangerous use of global this object".
Before:
GravityLaw.prototype.calculateForces = function() {
  var forces = new Array(0);
  goog.array.forEach(this.bods_, function(body) {
    if (isFinite(body.getMass())) { // skip infinite mass objects
      forces.push(new Force("gravity", body,
        /*location=*/body.getPosition(), CoordType.WORLD,
        /*direction=*/new Vector(0, -this.gravity_ * body.getMass(), 0),
        CoordType.WORLD));
    }
  }, this);
  return forces;
};

After:
Give type specification for the function passed to forEach, and use goog.bind:
GravityLaw.prototype.calculateForces = function() {
  var forces = new Array(0);
  /** @type {function(this:GravityLaw, !PhysicsObject)} */
  var f = function(body) {
    if (isFinite(body.getMass())) { // skip infinite mass objects
      forces.push(new Force("gravity", body,
        /*location=*/body.getPosition(), CoordType.WORLD,
        /*direction=*/new Vector(0, -this.gravity_ * body.getMass(), 0),
        CoordType.WORLD));
    }
  };
  goog.array.forEach(this.bods_, goog.bind(f, this));
  return forces;
};

I think your last comment is more related to #834, not to this issue. See my latest comment there. I have a fix pending for that.

I think this is a pretty important use case.   This eliminates the need for function annotations in may common uses (Array#forEach, etc) and greatly improves type information.  Can you explain the complication this causes for the NTI and why you can't support it?

We haven't decided for sure yet that we won't support it, but it's not high priority.
The difficulty is the following. In my example, we can't pick the type function(this:T) as the declared type of the argument function, we want to instantiate T first. But the way we instantiate is that we look at the argument types (which are supposed to be non-generic) and try to match them with the formal parameter types (which are generic). The information flows from the arguments to the formals, whereas in this example we also want to get information back to the arguments.


[Bug]: window.[prop] set via content script in chrome extension is not accessible via frame.frameElement

Minimal, reproducible example
Settings window.MY_PROP in content scripts in chrome extension with this config in manifest:

 {
      matches: ["http://*/*", "https://*/*", "<all_urls>"],
      all_frames: true,
      js: ["content_main/index.iife.js"],
      world: "MAIN",
    },

index.iife.js sets it with window.MYPROP = "test";

const f = page.frames()[2]; // any frame

const xd = await f.evaluate(()=>{
window.MY_PROP // works
})

 const frameElem = await f.frameElement();

 const xd = await frameElem.evaluate(()=>{
window.MY_PROP // doesn't exist
})

Background
No response
Expectation
MY_PROP to exist in window object when calling evaluate in frameElement.
I want to be able to use a function attached to window and have access to framElement that is only provided via frame.frameElement.
Reality
window.MY_PROP is undefined
Puppeteer configuration file (if used)
No response
Puppeteer version
23.4.0
Node version
20.10.0
Package manager
npm
Package manager version
10.2.3
Operating system
Windows

Content scripts are isolated from the main execution context and Puppeteer runs evaluations in the main world context, so any extensions to window will not be accessible. That should not work any case: could you please update the reproducible example to include a test extension and the complete script you run including a test page?

I think I overlooked the world configuration in the snippet. I am not very familiar with how that works in extensions but at the first sight this should work although Puppeteer does not do anything special for evaluation here. Are you able to access MY_PROP in DevTools if you choose the context of where the iframe element returned by frameElement is?

I know what is wrong. Basically the way it works in all puppeeter page/frame.evaluate calls is that it is executed in the main world. For some reason, when we request  f.frameElement() and run evaluate on it, the evaluate function is executed in the isolated world which I believe is not intended.
If you look into frameElement implementation in the Frame object you'll see this:
export const getFrameElement = async (f: Frame): Promise<HandleFor<HTMLIFrameElement> | null> => {
  const parentFrame = f.parentFrame();
  if (!parentFrame) {
    return null;
  }
  using list = await parentFrame.isolatedRealm().evaluateHandle(() => {
    return document.querySelectorAll("iframe,frame");
  });
  for await (using iframe of transposeIterableHandle(list)) {
    const frame = await iframe.contentFrame();
    if (frame?._id === f._id) {
      return (iframe as HandleFor<HTMLIFrameElement>).move();
    }
  }
  return null;
};

It's using isolatedRealm which I believe is wrong. I've made a copy of this function into my source code and replaced it with mainWorld and everything works flawlessly.

@zibsonzs it looks like you are using a slightly older version. This implementation is currently used only for the WebDriver BiDi protocol. The CDP implementation is here https://github.com/puppeteer/puppeteer/blob/main/packages/puppeteer-core/src/cdp/Frame.ts#L429 and I believe that one works correctly already. We should fix the non-CDP-specific implementation though.

I'm talking about Frame implementation in the api:
https://github.com/puppeteer/puppeteer/blob/main/packages/puppeteer-core/src/api/Frame.ts#L416

I'm talking about Frame implementation in the api: https://github.com/puppeteer/puppeteer/blob/main/packages/puppeteer-core/src/api/Frame.ts#L416

Right, and that one is not used in the latest Puppeteer version for CDP. So if you upgrade the Puppeteer version and you use CDP, you should not experience this issue anymore.

Thanks for assist!


Does mxnet support multiple threads well?

when I create 100 threads, there will be one thread locked after several rounds. the whole program will be stopped.
how to solve it?

Do you mean that you are trying to run dist training in one process?

The general idea of execution engine is to eliminate the need of multi threaded programming.. So it is in general not adviced to issue commands from multiple threads. It would be great if you can be more specific on your usecase

It works fine when I use the version in May.

The best way to proceed is to solve the problems :) The compilation error has already been fixed. It would be great if you can describe in more detail  what the problem is, or provide a script to reproduce the problem, so we can understand what is going on. Thanks

Yes, you are right. :)

The another problem:
The gpu utility is always 40% whether using one thread to run one network, or multiple threads to run multiple networks in parallel.
Is it normal ❓

This really depend on your usecase..would be nice if you have a description on what exactly your usecase is. GPU was not very great at resource sharing and running small workloads concurrently, because CuDNN and most CUDA libs are optimized to fully utilize the GPU

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


Added support to efficiently build SparseLQDynamicModel from sparse A, B, Q, R, K, S

Added new _build and _set functions in the sparse.jl source code to support sparse A, B, Q, R, K, and S matrices. Currently, when the problem becomes very large, the sparse formulation is not very fast and it takes a lot of memory allocation. This is largely because the old code treated all A, B, Q, R, K, and S matrices as being dense. Now, the Hessian and Jacobian are set using the rowval, nzval, and colptr attributes of A, B, Q, R, K, and S. This significantly reduces the memory required to build the SparseLQDynamicModel.
For N = 50, nu = 10, ns = 2000, I got the following results using @time
dense LQDynamicData: 18.737979 seconds (200.89 k allocations: 9.577 GiB, 9.12% gc time)
sparse LQDynamicData: 0.671002 seconds (1.51 M allocations: 134.857 MiB, 2.67% gc time)
Also added tests to ensure that the Hessian and Jacobian resulting from the new sparse functions are the same as before.

Note that the current formulation includes a K matrix in the sparse model. I now realize I don't need that, but I will fix that on a separate PR. I already had the new functions enabled with K when I learned I did not need to use K with the sparse form

Codecov Report

Merging #42 (ba38441) into main (0365640) will increase coverage by 0.51%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #42      +/-   ##
==========================================
+ Coverage   97.30%   97.81%   +0.51%
==========================================
  Files           4        4
  Lines        1188     1466     +278
==========================================
+ Hits         1156     1434     +278
  Misses         32       32

Impacted Files
Coverage Δ

src/LinearQuadratic/sparse.jl
100.00% <100.00%> (ø)

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Passing objects from Rust to the script should be easier

Hi. I'm currently working on a little tool that uses Dyon as a scripting engine. I have an existing Rust object that needs to be passed to the script. This is what I came up with to add a current object to main:
    let current_name: Arc<String> = Arc::new("some_thing".into());
    match module.find_function(&Arc::new("main".into()), 0) {
        FnIndex::Loaded(i) => module.functions[i as usize].currents.push(Current {
            name: current_name.clone(),
            source_range: Range::empty(0),
            mutable: false,
        }),
        x => panic!("Weird main function: {:?}", x),
    }
    let mut rt = Runtime::new();
    rt.local_stack.push((current_name.clone(), rt.stack.len()));
    rt.current_stack.push((current_name, rt.stack.len()));
    rt.stack.push(Variable::RustObject(Arc::new(Mutex::new(my_object_thingy)) as RustObject));

Would be nice to have an easier method to do this. Without importing range, pushing to three runtime stacks, explicitly finding main…
UPDATE: published the initial commit of the project! This thing has been extracted into a macro there. Would be nice to see macros like these in dyon itself…

While on this topic of the difficulty locating and invoking arbitrary functions, is it at all possible in Dyon to do this sort of thing to a non-main function? I'm looking for some functionality like Dyon-based event handlers where I can invoke particular functions by name, passing in current state data. Will move this question to another issue if I'm too off-topic.

Yeah I'm interested in that too, for other projects… :)
I think you should be able to add current objects to any function using this code. But I haven't looked into invoking an arbitrary function.
Also, would be nice to be able to register arbitrary event handlers from main, including closures, not just named functions.
I'm surprised there wasn't much work in this direction, this is a very common use case for any embeddable scripting interpreter…

So, this is a naive solution:
let mut module = Module::new();
error(load_str(&*asset.name, Arc::new(asset.source.clone()), &mut module));
error(self.host.call_str("init", &[], &Arc::new(module.clone())));

Notice that it is possible to use the current library.

@bvssvni: perhaps I'm misunderstanding its application but how would that library interact with a Dyon script I am executing from my Rust code? It would seem that what that library does is essentially create global values which, while acceptable in a scripting language, seems like terribly bad form for Rust. It also claims to be "safe" but I'm unsure in what sense this is meant, since every example of its use references unsafe code.

I see there's a Call thingy now! :) but it doesn't support currents, only arguments

You can you do this:
fn main(a: any) {
    ~ a := a // Set current object.
    ...
}

main is written by the user, my API is that they get currents from my Rust code

OK. Perhaps we could add some features to Call to make it support current objects?

Exactly, that's precisely what I want

Do you want to try designing this thing?


ci: build the native addon in the linting step

This is needed so that CMake generates compile_commands.json, which is needed by clang-tidy

Now we know again why the fuzzer build was there :smile:
I debugged this with @oetr yesterday as well, but only on his branch. A dedicated PR is a good idea!


Removed tests/ and updated train folder

Removed testing files to reduce confusion
Added a dedicated train folder

let me demonstrate


Slower performance for Torchmetrics PESQ

🐛 Bug

Multiprocessing capability is missing for Torchmetrics PESQ while the underlying library ludlows/python-pesq have that option.
As a result, the torchmetrics version of PESQ performs slower than ludlows/python-pesq.
To Reproduce
Run PESQ for a batch of 100 audios with a minimum duration of 10 seconds for each audio.

Code sample

Attached a python notebook file (analysis.ipynb) as a zip
Expected behavior

Both the Torchmetrics PESQ and ludlows/python-pesq should take almost the same time to compute the PESQ score.
Environment

Python - 3.10.4 (installed using conda)

Below libraries installed using pip

TorchMetrics - 0.9.3
PyTorch - 1.12.1
Torchaudio - 0.12.1
OS: Ubuntu 20.04.4 LTS

Additional context

References
ludlows/python-pesq: https://github.com/ludlows/PESQ

Need to add more details

duplicated with #1223


Opponent arrows invisible

Describe your problem here.
How do I make the opponent arrows not visible? what script do i need for that?
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
Ive added sprites, removed the weeks to create my own, and added a bunch of lua files such as scripts and custom notes, that's pretty much all I did

onUpdate(elapsed)
    for i = 0,3 do
        setPropertyFromGroup('strumLineNotes', i, 'alpha', 0)
    end
end

credit for the bit of code goes to the Phantasm mod.
Btw this is put in the stage.lua file
But you can put it somewhere different too I think

onUpdate(elapsed)
    for i = 0,3 do
        setPropertyFromGroup('strumLineNotes', i, 'alpha', 0)
    end
end

credit for the bit of code goes to the Phantasm mod.
Btw this is put in the stage.lua file But you can put it somewhere different too I think

oh ok thanks

Don't use onUpdate Just use onCreatePost and move them out of bounds once

ill be sure to keep that in mind

Yessir

know what

IMA USE THIS AS AN EVENT


Typo "Azure IoT hub"→"Azure IoT Hub"

https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-raspberry-pi-kit-c-get-started

@hyoshioka0128 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Per https://github.com/MicrosoftDocs/azure-docs/pull/62746#issuecomment-693588658, the original capitalization is correct. We'll close this PR. Thanks.


Delete cruft, check security alerts

We've got a hundred or so security alerts, most of which probably have nothing to do with our CLI tool:
https://github.com/dashhive/bls/security/dependabot
Let's delete the stuff that we're not using and address any real security concerns.

@coolaj86 this is pushed to main


Most queries raise non-fatal ValueError: Transaction is already committed

Expected Behavior
Connection pool does not raise exceptions
Actual Behavior
Connection pool raises non-fatal exceptions for SELECT/INSERT transactions
Steps to Reproduce the Problem
from sqlalchemy import Column, Integer, MetaData, select, Text, Table, create_engine

project_id = 'foo'
instance_id = 'bar'
database = 'baz'

spanner_uri = f'spanner:///projects/{project_id}/instances/{instance_id}/databases/{database}'

# Create a table with one `Text`-type column
engine = create_engine(spanner_uri)
metadata = MetaData(bind=engine)
t = Table("TestTable", metadata, Column("test_column", Text, nullable=False))
metadata.create_all(engine)

with engine.begin() as conn:
    results = conn.execute(select([t.c.test_column])).fetchall()

print(results)

aderk@aderk ~/q/pyle (u/aderk/labdb-spanner)> python txn_bug.py
Exception during reset or similar
Traceback (most recent call last):
  File "/usr/local/google/home/aderk/.virtualenvs/pyle/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 697, in _finalize_fairy
    fairy._reset(pool)
  File "/usr/local/google/home/aderk/.virtualenvs/pyle/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 893, in _reset
    pool._dialect.do_rollback(self)
  File "/usr/local/google/home/aderk/.virtualenvs/pyle/lib/python3.8/site-packages/google/cloud/sqlalchemy_spanner/sqlalchemy_spanner.py", line 773, in do_rollback
    dbapi_connection.rollback()
  File "/usr/local/google/home/aderk/.virtualenvs/pyle/lib/python3.8/site-packages/google/cloud/spanner_dbapi/connection.py", line 267, in rollback
    self._transaction.rollback()
  File "/usr/local/google/home/aderk/.virtualenvs/pyle/lib/python3.8/site-packages/google/cloud/spanner_v1/transaction.py", line 113, in rollback
    self._check_state()
  File "/usr/local/google/home/aderk/.virtualenvs/pyle/lib/python3.8/site-packages/google/cloud/spanner_v1/transaction.py", line 68, in _check_state
    raise ValueError("Transaction is already committed")
ValueError: Transaction is already committed
[]

Specifications

Version: Python 3.8.8 (default, Apr  1 2021, 17:00:06)
1c9be70f901ca016c357ced66fe258f01b694787
Platform: Linux

There was an attempt to fix the error in the PR #68, but something seems to be left to do there.

@aderk, I can't reproduce the error yet.
What about google-cloud-spanner version? SQLAlchemy dialect is built on top of it, problem can be there. I'm using master/main branches in both repositories, and it works fine.
Still, I have a suspision. dbapi_connection arg accepted by the do_rollback() method can be of two types. Usually, we do something like this to avoid errors:
https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy/blob/1c9be70f901ca016c357ced66fe258f01b694787/google/cloud/sqlalchemy_spanner/sqlalchemy_spanner.py#L789-L792
But obviously it wasn't done in the do_rollback() method and it works fine only with proxies, while in your case it's most likely a Connection object:
https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy/blob/1c9be70f901ca016c357ced66fe258f01b694787/google/cloud/sqlalchemy_spanner/sqlalchemy_spanner.py#L796-L809
If you can check the type of the dbapi_connection arg passed into do_rollback() method on your machine to ensure my guess is right, that would be good. Otherwise you can wait for the fix.

Thanks Ilya for the quick response!
In case it still matters:

What version...?
google-cloud-spanner           3.7.0

I can confirm #106 fixes this issue on my machine! =D


⚠ Bio Links has degraded performance

In 092efed, Bio Links (https://bio.rheinklang.events/links) experienced degraded performance:

HTTP code: 502
Response time: 1472 ms

Resolved: Bio Links performance has improved in d850710 after 24 minutes.


Header files for Neuron not found

While building MLPerf mobile app by running below bazel command
bazel-3.7.2 --output_user_root=/opt/cache/bazel build -c opt --cxxopt='--std=c++14' --host_cxxopt='--std=c++14' --host_cxxopt='-Wno-deprecated-declarations' --host_cxxopt='-Wno-class-memaccess' --cxxopt='-Wno-deprecated-declarations' --cxxopt='-Wno-unknown-attributes' --//android/java/org/mlperf/inference:with_mediatek="1" --fat_apk_cpu=arm64-v8a //android/java/org/mlperf/inference:mlperf_app
It's giving these errors.
mobile_back_tflite/cpp/backend_tflite/tflite_c.cc:24:10: fatal error: 'neuron/APUWareUtilsApi.h' file not found
#include "neuron/APUWareUtilsApi.h"
mobile_back_tflite/cpp/backend_tflite/tflite_c.cc:39:10: fatal error: 'neuron/neuron_delegate.h' file not found
#include "neuron/neuron_delegate.h"
Here's the screenshots:

@K-R-U-T-I  Are you building the master branch? Did you try "make WITH_MEDIATEK=1 app" ?

Also, per @freedomtan - you seem to be running bazel with sudo. This could cause issues if su has access to a different set of files than the regular user.

@K-R-U-T-I  for you reference, The following works for me on both Linux and macOS
bazel build -c opt --cxxopt='--std=c++14' \
  --host_cxxopt='--std=c++14' \
  --host_cxxopt='-Wno-deprecated-declarations' --host_cxxopt='-Wno-class-memaccess' \
  --cxxopt='-Wno-deprecated-declarations' --cxxopt='-Wno-unknown-attributes' \
  --//android/java/org/mlperf/inference:with_mediatek="1" \
  --fat_apk_cpu=arm64-v8a \
  //android/java/org/mlperf/inference:mlperf_app

Note that I didn't use sudo and didn't set bazel cache.
Further information: those headers are in Neuron delegate repo, they are supposed to be retrieved and placed into bazel cache. See https://github.com/mlcommons/mobile_app_open/blob/master/WORKSPACE#L88-L95
# Neuron Delegate

http_archive(
    name = "neuron_delegate",
    sha256 = "2e4600c99c9b4ea7a129108cd688419eeef9b2aeabf05df6f385258e19ca96c4",
    strip_prefix = "tflite-neuron-delegate-2.6.0",
    urls = ["https://github.com/MediaTek-NeuroPilot/tflite-neuron-delegate/archive/v2.6.0.tar.gz"],
)

Closing this off. Please file a new issue if running without sudo is a problem.

Hi @mcharleb, I built the app with flag WITH_MEDIATEK=1 & from the master branch.
Hi @freedomtan, @relja128 Thanks for your response.
After including missing files from this repository, issue will be resolved.


(MAINT) Indicate supported PostgreSQL versions

Prior to this commit, there was an old limitation noted that we only support up to PostgreSQL 9.5.
After this commit, we remove that limitation because we support whatever the default for each OS is.

@npwalker
Making a quick change to point your PR at the newly default main branch.
Apologies if this is inconvenient in any way.


Add preserve metadata flag

@gtuk  Did you fix the meta data missing issue?  Thank you very much for your help!

@sunatthegilddotcom yes there will be an additional argument "--preserve-exif" to preverse the exif metadata

@gtuk Thank you very much for your help and fix this issue in so short of time.  , You are the best!   I did the git pull, and compiled the code, and it complaint "Unknown commandline flag: --preserve-exif". Can you please help me?  Thanks a lot

@liankui It seems that you used the master branch of my fork. You have to switch the branch to the "preserve-exif-flag" branch and then compile it again. Now it should work. Let me know if you need any further assistants.

Could @szabadka @robryk or someone else from the guetzli team please look at this patch because it's a major issue for photographers wanting to use guetzli on their files.

Yes
On Wed, Jun 28, 2017 at 4:44 PM Stefan Wrobel<EMAIL_ADDRESS>wrote:

Could @szabadka https://github.com/szabadka @robryk
https://github.com/robryk or someone else from the guetzli team please
look at this patch because it's a major issue for photographers wanting to
use guetzli on their files.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/guetzli/pull/175#issuecomment-311783959, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AZb-cfPut5iZU1cYh2CTtWERFWgH-6wtks5sIrsegaJpZM4Mzc1g
.

Any update on this, will it be merged after 2 years, finally?


Error accessing to the fonts in girl/paint.FontLib

Describe the bug
Just try to run the hello world example and I get this error, by the way, I'm on linux.
How to reproduce
Trying to make the documentation hello world
Example code
package main

import (
	"cogentcore.org/core/gi"
)

func main() {
	b := gi.NewBody("Hi")
	gi.NewButton(b).SetText("Hello World!")
	b.RunMainWindow()
}

Relevant output
2024/03/20 17:48:56 ERROR girl/paint.FontLib: error accessing path path=. err=stat .: no such file or directory
2024/03/20 17:48:56 ERROR girl/paint.FontLib: error walking path path=/usr/share/fonts/truetype err=stat .: no such file or directory

Platform
Linux

I solved it by making a sudo ln -s /usr/share/fonts/TTF/ /usr/share/fonts/truetype
Either way, I think that's something that needs to be fixed.

Indeed, this should not happen. What distro of linux are you using? From some quick searching, it seems like most distros of linux store their fonts in /usr/share/fonts/truetype. Regardless, I will add support for finding fonts in /usr/share/fonts/TTF.

What distro of linux are you using?

I'm using Arch Linux

I implemented a fix for this in the commit above; can you remove your symlink, update to the latest version of Cogent Core (go get cogentcore.org/core@a33095d), and ensure that the error does not happen again?

The error no longer occurs, now it works correctly, thank you.


Allow to pause recording

The same button could be reused to pause and then either resume or stop and save. Alternatively a second button could be used to pause and resume recording.

This is something we've thinking about, thank you for the issue!

This is no longer blocked upstream https://github.com/wulkano/aperture-node/issues/5

Pause recording is still not supported at present. Is there a support plan @skllcrn

Pause recording is still not supported at present. Is there a support plan @skllcrn

Hi @SunnyQjm. Kap is an open-source project and this issue is labelled "Help Wanted". If you would like to contribute this feature, we would love to review the pull request. Thanks!


Sql refactoring

Refactors the handling of sql to prevent data loss.
This PR comes with a rename of old columns in sql too, meaning an automatic change to older versions will not accepts their table columns anymore.

Hello, I tried to fix the issue
This is what I did:
This change refactors the SQL handling in the SQLIO class to prevent data loss when upgrading from older versions. It introduces a method to check for old column names and migrate data if necessary. The code maintains the existing styling and functionality while addressing the issue.
I also created pull request: https://github.com/magemonkeystudio/fabled/pull/978

[!CAUTION]
Disclaimer: This fix was created by Latta AI and you should never merge before you check the correctness of generated code!
The fix provided by Latta AI might not be complete and it can serve as an inspiration.

This bug was fixed for free by Latta AI - https://latta.ai/ourmission
If you no longer want Latta AI to attempt fixing issues on your repository, you can block this account.


Fix: Insert individual rules for runtimeInjection

What changed / motivation ?
When defining variables with defineVars and createTheme, the generated CSS was generated as a single string. When @ rules were used this string contained multiple CSS rules.
In development, when runtimeInjection is true, this would try to insert the whole string with the browser's insertRule API. This would error.
This PR, breaks up the generated CSS into individual rules that can be injected separately at runtime (when in development)
NOTE: This is a fix for development workflows. Everything already worked for production builds.
Linked PR/Issues
#235
Additional Context
Test snapshots have been updated and I have verified that everything looks right.

Thank you so much @nmn for addressing this issue so early. Great to see it in action.


Change targets

@Eilon @muratg @mikeharder @JunTaoLuo

@mikaelm12,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

Microsoft.AspNetCore.SignalR.1.0.0-preview1-t0046707f2 -> netcoreapp2.0
Microsoft.AspNetCore.SignalR.Client.1.0.0-preview1-t0046707f2 -> netstandard1.3
Microsoft.AspNetCore.SignalR.Common.1.0.0-preview1-t0046707f2 -> netstandard1.3
Microsoft.AspNetCore.SignalR.Redis.1.0.0-preview1-t0046707f2 -> netcoreapp2.0
Microsoft.AspNetCore.Sockets.1.0.0-preview1-t0046707f2 -> netcoreapp2.0
Microsoft.AspNetCore.Sockets.Client.1.0.0-preview1-t0046707f2 -> netstandard1.3
Microsoft.AspNetCore.Sockets.Common.1.0.0-preview1-t0046707f2 -> netstandard1.3
Microsoft.AspNetCore.WebSockets.Internal.0.1.0-preview1-t0046707f2 -> netcoreapp2.0
Microsoft.Extensions.WebSockets.Internal.0.1.0-preview1-t0046707f2 -> netcoreapp2.0

The ".Client" and ".Common" packages are for use by the client, which we want to keep netstandard1.3. They do not depend on anything in the ASP.NET Core stack (just some Extensions things).


Add Option<String> conversion to Rstr

While helping a user with a type-conversion issue, it came up that Rstr doesn't cover Option<String> conversion.

@Ilia-Kosenkov nightly is causing extendrtests to fail due to snapshot tests. Do you mind dealing with this please?

Ouch, something has been deeply reworked in Rust. I suggest to go with skip_if_nightly(). If you don't know how to do that, just merge with failing pipeline & I will fix it later, today or tomorrow.

Merging this as the only failing thing is snapshots on nightly which aren't part of this anyways.


Improve display of package code samples on pub.dartlang.org

This issue was originally filed by @filiph

This is just a minor improvement suggestion. Since pub.dartlang.com is the de facto homepage for many Dart packages, it would be great if the code samples there looked as well as possible. Currently, when comparing my little package's github homepage (https://github.com/filiph/fuzzylogic) with its pub.dartlang.org homepage (http://pub.dartlang.org/packages/fuzzylogic), the github rendering of the same README.md looks much better. I'm therefore a little more likely to link to github than to pub.
Here are the two suggestions:
* Increase the width (or decrease <code>'s font size) on pub.dartlang.org's to show at least 80 characters per line of code without breaking.
* Use Dart syntax highlighting.

This issue has been moved to dart-lang/pub-dartlang#340.


Booting ARM using EFI

Excuse me for bothering you with a question. Currently, I can't find any feasible methods online to start Xen hyper in UEFI mode on ARM. Could you please give me some guidance? The article on Wiki about this is already out of date, and I failed when following the methods it provided.
https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/qemu-system-aarch64
@lorc

Hi @LJKingd,
well, actually we were able to start Xen using this method on QEMU not so long ago.
Also, I am quite sure that OP-TEE CI uses Xen on QEMU with UEFI boot. You can check for scripts here:  https://github.com/OP-TEE/build/blob/master/qemu_v8.mk
What problem are you facing? I believe most common issue is that UEFI does not boots in EL2...

qemu-system-aarch64
-machine virt,gic_version=3
-machine virtualization=true
-cpu cortex-a57 -machine type=virt
-smp 4 -m 4096 -display none
-serial mon:stdio
-bios /path/to/QEMU_EFI.bin
-netdev user,id=hostnet0,hostfwd=tcp::2222-:22 -device virtio-net-device,netdev=hostnet0,mac=MAC_ADDRESS
-drive if=none,file=/path/to/xenial-server-cloudimg-arm64-uefi1.img,id=hd0 -device virtio-blk-device,drive=hd0 -boot order=d

hello @lorc  Thank you for your reply. I used this command, but I can't see any output.
qemu-system-aarch64
-machine virt,gic_version=3
-machine virtualization=true
-cpu cortex-a57 -machine type=virt
-smp 4 -m 4096 -display none
-serial mon:stdio
-bios /path/to/QEMU_EFI.bin
-netdev user,id=hostnet0,hostfwd=tcp::2222-:22 -device virtio-net-device,netdev=hostnet0,mac=MAC_ADDRESS
-drive if=none,file=/path/to/xenial-server-cloudimg-arm64-uefi1.img,id=hd0 -device virtio-blk-device,drive=hd0 -boot order=d

@lorc hello, I encountered the following problem when using UEFI to boot on qemu - arm.
Xen.efi can be recognized normally.

but after init uefi , error:

I found that the UEFI initialization work of Xen has been completed, but it crashes at ExitBootServices at the end.

Hmm, this is quite strange. Looks like ExitBootServices is not installed. I am running my Xen in QEMU like this:
qemu-system-aarch64 -m 4G \
	-nographic \
	-kernel /home/lorc/work/xen/xen/xen \
	-machine virt,acpi=off,secure=off,mte=off,virtualization=on,iommu=smmuv3,gic-version=max \
	-append "dom0_mem=1G loglvl=all guest_loglvl=all console=dtuart pci-passthrough=yes" \
	-cpu cortex-a57 \
	-device guest-loader,addr=0x42000000,kernel=/home/lorc/work/linux/arch/arm64/boot/Image,bootargs="console=hvc0 earlyprintk=xen nokaslr root=/dev/vda2" \
	-drive id=rootfs,file=/home/lorc/mnt/ssd/rpi5/rpi_img,if=none -device virtio-blk-pci,drive=rootfs

Could you try this way? Of course, you will need to supplement your local Xen image, Dom0 kernel image and rootfs image.

@lorc  hello Thank you very much for your reply.
Let me introduce my process. I couldn't get the UEFI menu to show up using the UEFI startup method provided by Xen. So I used this method to create a basic environment with a UEFI partition：
https://cdn.kernel.org/pub/linux/kernel/people/will/docs/qemu/qemu-arm64-howto.html
Then I copied my own image to /boot/efi：
xen.cfg xen.efi  virt-gicv3.dtb
（The file is in my attachment.）
Uploading xen_uefi_files.tar.gz…
Then execute it using the following command:
qemu-system-aarch64 -M virt
-machine virtualization=true -machine virt,gic-version=3
-cpu cortex-a57 -smp 4 -m 4096
-drive if=pflash,format=raw,file=efi.img,readonly=on
-drive if=pflash,format=raw,file=varstore.img
-drive if=virtio,format=qcow2,file=disk.img
-device virtio-scsi-pci,id=scsi0
-object rng-random,filename=/dev/urandom,id=rng0
-device virtio-rng-pci,rng=rng0
-device virtio-net-pci,netdev=net0
-netdev user,id=net0,hostfwd=tcp::8022-:22
-nographic
-virtfs local,path=/mnt/shared,mount_tag=host0,security_model=passthrough,id=host0
Select in the boot menu.

inter uefi shell:

input: fs0:
input:xen

Uploading xen_uefi_files.tar.gz…

There's one more question to consult. Excuse me. Where can I obtain reliable documents for Xen on ARM? A lot of the wiki on the official website is out - of - date. @lorc