Failed login causes Anki to become locked/unusable

On Windows (10,11) when I typo the login, which happens more than I'd like, Anki ends up in an unusable state and I must kill it from the task manager.
What I think is happening is that it pops up the "failed login" dialog, but the progress bar dialog still has focus (and is modal?), so I can't acknowledge the failed login, and the only way to interact with Anki is to kill it and restart.

Thanks for reporting this!
I'm on Windows and I'm not able to reproduce this myself:

When I mistype my password and get a failed login.
The "failed login" dialog pops up, and I'm able to acknowledge the
failure and not get locked up.

However, I DO confirm that the "failed login" dialog pops up while the
progress bar dialog is still open, and I can imagine how this would cause
problems for some configurations. So since it's causing a problem for you,
it's probably causing a problem for others as well and it seems like a good
thing to fix.
I don't touch this project often, so I might not address this in the next
few weeks, but it is currently the number one bug that I'd like to address
when I next touch this project.
On Mon, Feb 28, 2022, 8:44 AM panssystem @.***> wrote:

On Windows (10,11) when I typo the login, which happens more than I'd
like, Anki ends up in an unusable state and I must kill it from the task
manager.
What I think is happening is that it pops up the "failed login" dialog,
but the progress bar dialog still has focus (and is modal?), so I can't
acknowledge the failed login, and the only way to interact with Anki is to
kill it and restart.
—
Reply to this email directly, view it on GitHub
https://github.com/JASchilz/AnkiSyncDuolingo/issues/45, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABO2Q4C4NGZOROQ4O6QHDCTU5OQ63ANCNFSM5PRTFBBQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hi @panssystem ! I was never able to reproduce this, but I did recently overhaul how I was interacting with the Anki graphics system, and that might have solved a number of weird issues.
If you were to update to the latest version from Ankiweb (and then restart Anki), I'd be curious to know if that solves your issue.
I'll close this in a week if I don't hear from you, but please do feel free to re-open the issue if this hasn't solved it!


Readme updates

Could you add a how to guide and setup section to the README?

I've added usage instructions. I'm going to hold off for now on installation instructions, as I'm planning to publish to crates.io. Right now you need to compile it yourself, but I will update this thread when I get it published.

Closing with #9. You can now install via cargo or there's a precompiled binary for Apple Silicon.


Local binary support

I'm looking into adding support to the linters based on binaries installed with npm, so that they can use the local binaries installed in the node_modules/.bin/ folder of the current project.
For example, the https://github.com/SublimeLinter/SublimeLinter-jshint linter currently requires jshint to be installed globally with npm install -g jshint. Instead of having it look for that global binary in the path, I want to override the cmd or executable properties of the linter class to find the local binary. I want to add this type of support to linters for jshint, jscs, csslint, eslint, etc.
With this in mind (and the fact that I'm relatively new to python), can someone give me a few hints on what APIs (assuming SublimeLinter already has the APIs to support this use case) I need to use to get access to the current path of the file being edited, so I can use it to probe upwards until I find a package.json file, then probe the node_modules/.bin folder for the binary before falling back to the global $PATH.

This creates a problem with pluggable linters such as eslint.
Eslint has a plugin system, you can define to use a plugin like eslint-babel in the .eslintrc and eslint will use it. You would have to install the eslint-babel separately from eslint. The following scenario creates a problem:

You use eslint and eslint-babel globally.
Your package.json has some dependency that depend on eslint and thus eslint is being poured into the project node_modules/.bin folder but eslint-babel doesn't end up there
Linter looks for local binary first and finds eslint in the bin folder and uses it
Linter throws exception since it can't find eslint-babel as it's not in the local folder but rather in the global folder.

I had this exact scenario happen to me and described here https://github.com/roadhump/SublimeLinter-eslint/issues/31#issuecomment-119725202


strange "Cannot compute least sort" error message

The compilation of the module
module TST

  syntax Typename ::= "int"

  syntax Decl ::= Typename IvarList

  syntax IvarList ::= List{Ivar, ","}

  syntax Ivar ::=
       Id
     | Id "=" Expr [ivar]

  syntax Varref ::=
       Id
     | Id "[" Expr "]"

 syntax Const ::= Int

  syntax Expr ::=
       Varref
     | Const

  syntax Assign ::=
       Varref "=" Expr [assign]

  rule <k> T:Typename X:Id = V:Const => .K ...</k>

endmodule

reports the following error:
$ kompile tst.k
[Error] Critical: Cannot compute least sort of term: '_=_(_8:Id,, _9:Const)
Possible least sorts are: [Assign, Ivar]

No line & column numbers are displayed.
The error is given by the only rule in the module. From my point of view, "T:Typename X:Id = V:Const " is not ambiguous, it should be infered that the least sort of "X:Id = V:Const" is Ivar. Moreover, neither of (X:Id = V:Const)::Ivar , (X:Id = V:Const):>Ivar, (X:Id = V:Const):Ivar, (X:Id = V:Const)<:Ivar solves the problem.

This looks like something which comes from the backend, so casting the term won't help.

@andreistefanescu could we maybe adjust the error message for this error to include location information, plus some kind of message like "Consider assigning a different klabel to each possible production"?


Add reference to Flex Plugin Library in readme

Summary
As discussed :)
Checklist

[x] Updated documentation
[x] Requested one or more reviewers

Thank you Sam! Should we also direct the reader that they should remove any features from the Flex Project Template that overlap with the corresponding Plugin Library feature, linking to our guide on how to remove features from the Template?

@dremin Thank you Sam! Should we also direct the reader that they should remove any features from the Flex Project Template that overlap with the installed Plugin Library features to avoid Flex configuration conflicts, linking to our guide on how to remove features from the Template?

I'm more inclined to mention that the template versions should be used instead if they are going to deploy the template anyway, as there are still significant downsides to using the plugin library versions of these features. What do you think?


Allow locale to be retrieved from parent document

Fixes #1304.
Note: This requires doctrine/mongodb-odm#1152 to be merged first.
This applies when using ODM because doctrine/mongodb-odm#782 WILL break translations in embedded documents. With this change it is possible to have the @Locale annotation in a root document and have that apply to ALL embedded documents within.

Just a head up that I've merged https://github.com/doctrine/mongodb-odm/pull/1152 and have plan to merge https://github.com/doctrine/mongodb-odm/pull/782 soon (by soon I mean probably tomorrow)

great, thanks @alcaeus @malarzm


Support PowerShell 2.0

This makes the module usable by Chocolatey. Discussed at chocolatey/choco#1201.

@jberezanski,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

:white_check_mark: Build vssetup.powershell 1.0.54+gda5cbf2175 completed (commit https://github.com/Microsoft/vssetup.powershell/commit/da5cbf2175 by @jberezanski)

@jberezanski, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.
Thanks, Microsoft Pull Request Bot

I've reimplemented the tests to use [Theory]. I've also changed them so that the actual Version.TryParse() output is used as the expected value.
And here's a funny thing: the behavior of the function is different than its documentation. When parsing fails, the result out parameter is set to null, not to "a Version object whose major and minor version numbers are 0", as the parameter description claims. This can be confirmed by reviewing the code.
This is of no consequence to VSSetup, because the value of result is not used if the conversion fails, but for completeness I've fixed TryParseVersion() to match the observed behavior instead of the docs.

:white_check_mark: Build vssetup.powershell 1.0.56+ge1e6a3f1e7 completed (commit https://github.com/Microsoft/vssetup.powershell/commit/e1e6a3f1e7 by @jberezanski)

Rebased on top of develop.

:white_check_mark: Build vssetup.powershell 1.0.59+gac96638b85 completed (commit https://github.com/Microsoft/vssetup.powershell/commit/ac96638b85 by @jberezanski)

@heaths Did you get an answer from the PowerShell team?

@jberezanski I did and hope to have an update for you very soon.

@jberezanski It is now published at https://www.nuget.org/packages/Microsoft.PowerShell.2.ReferenceAssemblies. Please use this instead and rebase to remove the commit containing the binaries before I merge it (so it never ends up in the central git database).

Excellent! I'll do that soon.

:white_check_mark: Build vssetup.powershell 1.0.59+g115c19279a completed (commit https://github.com/Microsoft/vssetup.powershell/commit/115c19279a by @jberezanski)

:white_check_mark: Build vssetup.powershell 1.0.59+g1df26ca52d completed (commit https://github.com/Microsoft/vssetup.powershell/commit/1df26ca52d by @jberezanski)

Done.

Thanks. Since the project was downgraded to run on .NET 3.5, I'm getting a couple warnings likely related. Can you clean up the warnings?

The primary reference "Microsoft.CSharp", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v3.5".

Probably just need to remove the reference. And

Could not read state file "obj\Release\VSSetup.PowerShell.csproj.GenerateResource.Cache". Unable to find assembly 'Microsoft.Build.Tasks.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

:white_check_mark: Build vssetup.powershell 1.0.59+g1ae2a93cbc completed (commit https://github.com/Microsoft/vssetup.powershell/commit/d376a2f327 by @jberezanski)

Sorry, I had removed the Microsoft.CSharp references earlier, but they must have reappeared during the last rebase. Fixed now.
I'm not sure about the second warning - it seems like it could be caused by a leftover from a previous compilation using Visual Studio 2015 tools. Could you try a clean build?

The second warning went away too after a git clean -dfx && msbuild /m.


epic(esl-animate): final cleanup

Closes: #1743

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Please support DO_NOT_TRACK env var in addition to --telemetry-disable

Per https://consoledonottrack.com (hosted on Netlify, incidentially 😉):

Gatsby has GATSBY_TELEMETRY_DISABLED. Homebrew has HOMEBREW_NO_ANALYTICS. Syncthing has STNOUPGRADE, a config file setting for disabling crash reporting, and a GUI prompt for usage reporting. Google Cloud SDK CLI tools has gcloud config set disable_usage_reporting true. .NET Core has DOTNET_CLI_TELEMETRY_OPTOUT. The AWS Serverless Application Model CLI has SAM_CLI_TELEMETRY=0. The Microsoft Azure CLI has AZURE_CORE_COLLECT_TELEMETRY=0. You get the idea.

I currently have to maintain an extra line in my build scripts to disable telemetry for Netlify's CLI.  Could you please support this standard variable to disable telemetry?
There is precedent: NETLIFY_SITE_ID is used instead of an arg to netlify deploy, and NETLIFY_AUTH_TOKEN is used instead of netlify init.  Presumably these are for ease of CI; it would be lovely if you could apply the same approach to disabling the consent-presuming spying functionality.

I'm commenting on this issue since the original one and the PR created has been already locked (why? I thought formal discussions were positive for both sides..., it is not like they are fixing something "shady" they did without making too much noise about it right?)
This issue goes beyond the "it is legal because you blindly agreed so", the issue is about Netlify destroying ALL of the trust built with their costumers (at least they just made me never want to use Netlify again).

The creator of this PR, claims a line of code was previously added without an issue or an approved PR (and using something like Github and not having a registry of this action makes you wonder why), and the line of code that would still be there if it weren't because @sneak?

track('user_telemetryDisabled', {       force: true     })
Yep, there were FORCING telemetry EVEN if the customer explicity disabled that "option". I've only seen this nasty way of spying on the levels of Microsoft.

GitHub's Atom text editor also does this, and AFAIK they did it before they became Microsoft:
https://github.com/atom/telemetry/issues/33

As was the case for other issues on this topic, this will likely be resolved and locked in a swift form of damage control. Although I have no stake in Netlify's interests, the situation that @sneak has stumbled upon is rather odd and concerning - especially considering the issues @anskydev raised. What I believe is more concerning would be the developer's blanket response initially in #739: blindly dismissing the issue and closing it.

The cli has to connect to Netlify to work, hence the call to cli.netlify.com. If you disable telemetry, we don’t use telemetry.

Conversations of privacy are necessary to maintain the trust of your users. Although I don't entirely agree that a rant about ill-intentions from developers was a great way to start off #739, Netlify is casting themselves in a shady light with how they've handled the issue so far.

Yeah locking was a tough call tbh. That issue was super incendiary, and gave zero benefit of the doubt, hence my initial dismissal. The user that opened it has opened similar issues on repos elsewhere and it’s clear they are never looking for a real conversation.
I definitely don’t want to stamp out forward moving conversations, but that really didn’t feel like one.
Sent with GitHawk

The fact that developing and distributing software that is violating user consent is unethical is not a rant, nor is it individual opinion.

The saddest thing is that you can track that this was set since one of the first releases: v2.0.0-beta.3 released 9 Sep 2018... How many data from how many users is that? Your policy says (this is a rephrase): "we may share the data with third parties" so I assume you do so. Now, I'm not saying this is one of the reasons but with all the lack of communication and this secrecy it just makes me wonder if you sell that data to advertising companies, you not only track your customers data, but also the data of the users that connect to the products hosted in your servers.
Handling all that data is a delicated topic, and by the way you have handled it until now (or rather, haven't) it seems you don't care about the privacy of your customers...

I’m not sure we’re talking about what actually happened - to clarify:

A single call was being made at the time of passing the —telemetry-disable flag.
No further telemetry calls were ever made again unless —telemetry-enable is called - that is to say, disabling telemetry was never broken.
This PR removes the call in question.

Sent with GitHawk

A single call was being made at the time of passing the —telemetry-disable flag.

Yes, that's that whole issue.  Doing telemetry to say the user doesn't want telemetry, when you, at the time of the telemetry call, know the user doesn't want telemetry, but you do it anyway: force: true.  It's fixed now, as you note, but it speaks to the attitudes of the company and implementors with regards to ethical behavior.
This entire discussion is off topic, though, so let's end that part of it.
This GitHub issue is about supporting an environment variable that a user can set so they don't have to set some config file json (somewhat difficult to do via a script) or know in advance about some flag buried in the documentation.  It's been adopted by the netdata team and other software packages and developers have expressed interest.  There is precedent in the Netlify CLI for specifying things via env vars, for example for use in CI.
How about it?  Shall I send a PR?

Yes, that's what happened regarding this situation in the last couple days, and I appreciate the quick and fast response to this issue. What I am discussing is what this issue showed us about the code.
More specific, I'm concerned about why that code was there in the first place, now you have worked on this project and you know more about the logic behind all, and maybe you can clarify the purpose of it:
src/utils/telemetry/index.js
function track(eventName, payload) {
  const properties = payload || {}
  ...
  ...
  const TELEMETRY_DISABLED = globalConfig.get('telemetryDisabled')
  if (TELEMETRY_DISABLED && !properties.force) {
    if (DEBUG) {
      console.log('Abort .track call TELEMETRY_DISABLED')
    }
    return Promise.resolve()
  }

Calls to that function from src/hooks/init.js:
    track('user_telemetryDisabled', {
      force: true
    })

In the track function you first get the flag telemetryDisabled from the user but the if condition also checks for the second parameter, in this case { force: true } makes if (... !properties.force) false and hence the function skipping the resolve of the promise and then calling send() function with some user data (userID and cliID only I guess?).
If that is what was actually happen that was illegal and a way to "fool" your customers into thinking that they have the control of their privacy (even if you argue the data you still sent was relative "harmless" the point is customer data is customer data), and with that broken trust I can only wonder where else in the code you could take advantage of something like this.
But if I'm confused and stating false things maybe you can explain us what was the intention with all of that and maybe you could update the readme with specific details about what you do with that user data so future anskydevs don't doubt about Netlify intentions with our data, if it is not much of a burden obviously, and thanks for the time.

Per https://github.com/netlify/cli/commit/5f1cf55bf65ebe16a648244c49606a8cf1866b4a , @DavidWells is the one who wrote that call, and was so proud of it he put on his CV: https://davidwells.io/resume/
@anskydev, perhaps you could ask him directly/privately and please stop spamming this thread (his contact info is available in the link above).  The issue you are describing is documented in #739 and was fixed in #740 by @erquhart.

@anskydev I definitely understand the confusion here! Happy to explain:
That “force” is only in place when processing the —telemetry-enable and —telemetry-disable flags, as we were wanting to capture a user’s indication that they did not want to be tracked. So it worked like this:

User runs a cli command with —telemetry-disable flag
CLI sees the flag, and sends one telemetry request to note that it was disabled
CLI updates the global config for persistent disabled telemetry
No further telemetry requests occur in current or future sessions

Hope that helps.
@sneak I hid your last comment as it is not in agreement with our code of conduct. Please refrain from commenting on individual contributors in a negative fashion, or redirecting community members to contact individual contributors privately. Your accusation of “spamming” towards @anskydev is also unnecessary and uncalled for.
To your original point for this issue, thanks for your interest, but this isn’t an approach we plan to adopt.
I’ll elaborate on this decision for anyone that sees this in the future:

This is a standard created by the user that opened this issue
There is no sign of general adoption of this standard by other projects
There is no sign of general adoption of this standard by the general development community

Starting a true standard requires the hard work of conversation and earning buy-in from the community that the standard applies to.

Please refrain from commenting on individual contributors in a negative fashion

Could you please let me know where I did that?  I'm confused.


Fix #1294: docs for AWS EC2 authentication

Type of change
Select the type of your PR

Documentation

Description
Docs associated for #1294 that show the user how to configure record encryption to authenticate via AWS EC2 metadata.
This PR will remain draft until such time that #1442 (the PR delivering the feature) gets accepted.
Additional Context
Why are you making this pull request?
Checklist
Please go through this checklist and make sure all applicable tasks have been done

[ ] Write tests
[ ] Update documentation
[ ] Make sure all unit/integration tests pass
[ ] Make sure all Sonarcloud warnings are addressed or are justifiably ignored.
[ ] If applicable to the change, trigger the system test suite.  Make sure tests pass.
[ ] If applicable to the change, trigger the performance test suite. Ensure that any degradations to performance numbers are understood and justified.
[ ] Ensure the PR references relevant issue(s) so they are closed on merging.
[ ] For user facing changes, update CHANGELOG.md (remember to include changes affecting the API of the test artefacts too).

NOTE:  You must be a member of @kroxylicious/developers to trigger the system test and performance test suites.  If you are not part of this group, comment on the PR requesting a trigger, tagging @kroxylicious/developers.

@PaulRMellor how does that look now?

@PaulRMellor how does that look now?

Hi @k-wall  - Were the collapsed comments missed?

@PaulRMellor please look again, I believe I have them all now.


Support some links with spaces

Supported:

Python style links: From "<path>", line <line>
Lines that only contain a path: <path>
Independently styled file paths: foo<underlined_path>bar

Fixes #97941

Was thinking that while working on these improvements. I might do a follow up but right now it's difficult to test the links that need to test the file paths.

Please also include the following error line format in the fix:
C:\[any number of subfolders]\Program.cpp(18,29) : error 149: '}' - unexpected token
Thank you!

@bromelio what compiler is that from?

@bromelio done in https://github.com/microsoft/vscode/pull/169850

@bromelio done in https://github.com/microsoft/vscode/pull/169850


Added some unit tests for the scaledjob_controller.go

Signed-off-by: geoffrey1330<EMAIL_ADDRESS>
Provide a description of what has been changed
Checklist

[ ] When introducing a new scaler, I agree with the scaling governance policy
[x] I have verified that my change is according to the deprecations & breaking changes policy
[x] Tests have been added
[ ] Changelog has been updated and is aligned with our changelog requirements
[ ] A PR is opened to update our Helm chart (repo) (if applicable, ie. when deployment manifests are modified)
[ ] A PR is opened to update the documentation on (repo) (if applicable)
[x] Commits are signed with Developer Certificate of Origin (DCO - learn more)

Fixes #3661

Relates to #2357

The new test is failing with with error:  [FAILED] Expected jobs to be created

@geoffrey1330 Any update on this PR?

@geoffrey1330 Any update on this PR?

Nothing yet.


TURN: Adding RouteType optional parameter to GetRelayConfiguration

API changes have been detected in azure-communication-networktraversal. You can review API changes here
API changes
+             route_type = None,
+ class azure.communication.networktraversal.RouteType(str, Enum):
+     ANY = "any"
+     NEAREST = "nearest"
+
+
+
+
+             route_type: CommunicationRelayConfigurationRequestRouteType = None,

API changes have been detected in azure-communication-chat. You can review API changes here
API changes
- # Package is parsed using api-stub-generator(version:0.2.4)
+ # Package is parsed using api-stub-generator(version:0.2.5)
-             metadata: Dict = None,
-             sender_display_name: Union[str, NoneType] = None,
-             content: str = None,
+             content = ...,
-             content = ...,
-             metadata: Dict = None,

API changes have been detected in azure-communication-sms. You can review API changes here
API changes
- # Package is parsed using api-stub-generator(version:0.2.4)
+ # Package is parsed using api-stub-generator(version:0.2.5)
-         ) -> SmsClient
+         ) ->  admonitio
-         ) -> SmsClient
+         ) ->  admonitio

API changes have been detected in azure-communication-phonenumbers. You can review API changes here
API changes
- # Package is parsed using api-stub-generator(version:0.2.4)
+ # Package is parsed using api-stub-generator(version:0.2.5)

API changes have been detected in azure-communication-networktraversal. You can review API changes here

API changes have been detected in azure-communication-networktraversal. You can review API changes here


CSS Timeline added

I fixed the issue #61
I added my small project which is basically a timeline section. Kindly review and merge it under HacktoberFest label. Thank you.

@Anjuli08 Kindly check.

Good work!

Thank you @Anjuli08


Add basic inspector and console functionality

Allows for basic use of the bevy-inspector-egui. bevy_pancam still needs to add a way to give the cursor over to egui windows and we are migrating our camera controls to leafwing-input-manager. LWIM still needs to have a way for the mouse motion to give the cursor over to egui windows, but can give the cursor over to egui for scroll events.  No console commands have been written yet but you can write notes in the console.

I'm getting a panic when using shift + space:
thread 'main' panicked at 'Encountered invalid weight in choices: [WeightedTilePos { weight: 0.36394632, position: TilePos { x: 30, y: 12 } }, WeightedTilePos { weight: -0.06597936, position: TilePos { x: 31, y: 12 } }, WeightedTilePos { weight: 0.2848209, position: TilePos { x: 31, y: 11 } }]', emergence_lib/src/organisms/units/pathfinding.rs:72:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/tim/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_tasks-0.9.1/src/task_pool.rs:273:45

I'm getting a panic when using shift + space:
thread 'main' panicked at 'Encountered invalid weight in choices: [WeightedTilePos { weight: 0.36394632, position: TilePos { x: 30, y: 12 } }, WeightedTilePos { weight: -0.06597936, position: TilePos { x: 31, y: 12 } }, WeightedTilePos { weight: 0.2848209, position: TilePos { x: 31, y: 11 } }]', emergence_lib/src/organisms/units/pathfinding.rs:72:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/tim/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_tasks-0.9.1/src/task_pool.rs:273:45

Yes, this is an expected panic! We will be fixing it in a separate pheromone pass. For now, it's a bug with the way I wrote pheromone transduction.


[Request] Add typings field to package.json

First of thanks for taking the time to create and maintain this library!
I was wondering if it would be possible to add the typings field to the package.json in order to allow those who are not using typings to make use of the typescript definitions built with the library. If it would be accepted, I'd gladly make the PR required.

It can't be done because of the dependencies, check the couple of existing issues.


Duplicate canonical page id  Error: is it possible to bypass?

Description
As I am running yarn build I noticed an error
error duplicate canonical page id {
  canonicalPageId: 'ukrainian-embassy-in-finland',
  pageId: 'f43f6368-6e98-4a09-a898-e3d3b59d6241',
  existingPageId: '44262845-99f6-48a3-a859-848bf74bbc21'
}

which effectively is canonical URL duplication. I want to ask if it is possible to bypass the canonical page id in production.
It is entirely possible I do not understand some aspects, but I would like to deploy the website as soon as I can (project for Ukrainian refugees).
Notion Test Page ID
Notion page: https://mymo.notion.site/701245d6db8c413689d180e87269ee56
Super.so version: https://finua.org/
@transitive-bullshit  Thank you so much for all the great work! You rock!

use includeNotionIdInUrls: true in the site.config.ts to bypass the issue.


Reverse direction if swiping/rotating too far accidentally

Is your feature request related to a problem? Please describe.
No, at least I don't think so.
Describe the solution you'd like
I'd like to be able to "rotate" backwards from the direction I started going in for when I accidentally go too far, or just change my mind about which letter to use.  For example, let's say I start gesturing to get a "v", but I accidentally go too far, and am on "w" in the bottom sector.  I should be to reverse direction back into the left sector to get the "v", and then go back to the center to complete it.
Describe alternatives you've considered
To stop, and backspace over the space that's automatically put in there, which is just slow, and extra disruptive.

Hello, there are several points to this:

It is not possible, because reversing is already used to obtain variants of a letter (in layouts which have multiple "layers" - see for example French or German)
With a bit more experience with 8vim you will notice that this is not necessary. Correcting a "too many turns" mistake is something that only happens to you as a beginner. You will quickly stop making that error when you have some practice.
The "correct" thing to do when you noticed that you made a turn too many, is to just let go. The standard layouts are designed such that this will cause an "abort", because nothing is bound to gestures where you lift your finger after a turn, without returning to the center.

Yes, the auto space is an "issue" that I was thinking about. however going back when you missed a movement to undo is not possible as it could be a movement as @ManDay said


X-Axis width

Hey guys, there is an option, hook, plugin, that I can use to draw (redraw) the xAxis intervals with specific width? According to each bar, I created a specific graph with dynamic width based on duration, but of course, each interval doesn't match. Or even a way to adjust each gridline item width.

You can't specify a certain width. But if you want interval to match duration, maybe set barThickness: 'flex'?

You should be able to use afterBuildTicks callback and return the ticks (timestamps) you want displayed. Might need to disable autoSkip too.
Example (for y-axis) at Stack Overflow


DWP stub trim

Trimmed away at a stub request that is used frequently.
There are other instances of this stub being used, but they have more detailed responses configured. It might be an option to look at them and see if they need to be trimmed down.

Nice, merge when ready.


excessive logging in checkpoints load/save

Using PP with z1 results in copious logs being dumped. Please consider the scope of 64 or 256 or 512 gpus.

a lot on saving:

https://github.com/microsoft/DeepSpeed/blob/master/deepspeed/runtime/engine.py#L2035-L2037
I don't know why _copy_recovery_script gets called for each gpu, despite:
if self.global_rank == 0:

it works correctly w/o PP, but under PP seems never be true.
And the next logger line gets called for each gpu as well

Then loading, each gpu dumps the list of checkpoints:

https://github.com/microsoft/DeepSpeed/blob/master/deepspeed/runtime/state_dict_factory.py#L165
and then again here:
https://github.com/microsoft/DeepSpeed/blob/master/deepspeed/runtime/state_dict_factory.py#L85
These logs make it very difficult to follow the progress of the training, since each dump is hundreds of lines-long.
There should be some sort of debug logs and not printed normally as they don't contribute anything other 1 line x n_gpus of logs.
Thank you!
@tjruwase

And there was some in the pipe.py as well, overall any chance that these can be made silent by default or configurable by the user:
diff --git a/deepspeed/runtime/engine.py b/deepspeed/runtime/engine.py
index 5791b3f..539cb6a 100755
--- a/deepspeed/runtime/engine.py
+++ b/deepspeed/runtime/engine.py
@@ -2033,7 +2033,7 @@ class DeepSpeedEngine(Module):
         script = "zero_to_fp32.py"
         src = os.path.join(base_dir, "utils", script)
         dst = os.path.join(save_path, script)
-        logger.info(f"creating recovery script {dst}")
+        #logger.info(f"creating recovery script {dst}")
         copyfile(src, dst)
         # make executable
         os.chmod(dst, os.stat(dst).st_mode | stat.S_IEXEC)
@@ -2046,7 +2046,7 @@ class DeepSpeedEngine(Module):
                        ds_version=version)
         torch.save(zero_sd, zero_checkpoint_name)
         self._copy_recovery_script(save_path)
-        logger.info('zero checkpoint saved {}'.format(zero_checkpoint_name))
+        #logger.info('zero checkpoint saved {}'.format(zero_checkpoint_name))

     def _zero3_consolidated_fp16_state_dict(self):
         """
diff --git a/deepspeed/runtime/pipe/module.py b/deepspeed/runtime/pipe/module.py
index af4df2a..977ce59 100644
--- a/deepspeed/runtime/pipe/module.py
+++ b/deepspeed/runtime/pipe/module.py
@@ -577,10 +577,10 @@ class PipelineModule(nn.Module):

             layer.load_state_dict(checkpoint)

-            if self._grid.data_parallel_id == 0:
-                logger.info(
-                    f'RANK={self.global_rank} Loaded layer={idx+self._local_start} file={load_path}'
-                )
+            # if self._grid.data_parallel_id == 0:
+            #     logger.info(
+            #         f'RANK={self.global_rank} Loaded layer={idx+self._local_start} file={load_path}'
+            #     )

         self._synchronize_tied_weights()

diff --git a/deepspeed/runtime/state_dict_factory.py b/deepspeed/runtime/state_dict_factory.py
index 033b672..f5562e1 100755
--- a/deepspeed/runtime/state_dict_factory.py
+++ b/deepspeed/runtime/state_dict_factory.py
@@ -78,7 +78,7 @@ class SDLoaderBase(ABC):
         merge_count = 1
         if num_ckpt == mp_world_size:
             assert os.path.exists(load_path)
-            logger.info(f'rank: {mp_rank} loading checkpoint: {load_path}')
+            #logger.info(f'rank: {mp_rank} loading checkpoint: {load_path}')
             sd = torch.load(load_path, map_location=lambda storage, loc: storage)

             if quantize:
@@ -158,7 +158,7 @@ class SDLoaderBase(ABC):
         return sd

     def check_ckpt_list(self):
-        logger.info(f'checkpoint file list: {self.ckpt_list}')
+        #logger.info(f'checkpoint file list: {self.ckpt_list}')
         assert len(self.ckpt_list) > 0

         sd = torch.load(self.ckpt_list[0], map_location=lambda storage, loc: storage)

Now it's again possible to monitor the progress of the training.


React Table - is not working on IE edge.

I'm using "react table" version 6.7.5. It is not supporting for IE edge.
Im getting error like "Object doesn't support property or method 'find'".
Can anyone help me to resolve this ?

You will most likely need a polyfill for the Array object.

Please use a polyfill for older browsers. This is outside the scope of react-table currently. If you think this issue needs to be reopened, please check the latest version of React-Table for the issue once more and reopen if appropriate. Thanks!


Announce Frictionless Data specifications v1

Description
Requires https://github.com/frictionlessdata/project/issues/337
The v1 release of the Frictionless Data specifications is a big deal. We need to tell the world
Tasks

[ ] Submit first draft to colleagues

[ ] History/context
[ ] Current piloting and development
[ ] goals of v1
[ ] what is new/has changed
[ ] which libs have implemented v1
[ ] The registry

[ ] Draw from: https://github.com/frictionlessdata/specs/issues/87#issuecomment-158302576
[ ] Point to: http://schemas.frictionlessdata.io/registry.csv
[ ] What is JSON Schema?
[ ] Motivation
[ ] How to Contribute

[ ] Update registry URLs: https://github.com/frictionlessdata/schemas/issues/58

[ ] Iterate on final draft
[ ] Publication on Labs and main OKFN blogs
[ ] Alert @danfowler for social media etc.

https://hackmd.io/KwUzE5wIwRgWgGYENzDgFmAgzHKA2fJOABmHwGMATEmK8GIoA===

Now assigning to @danfowler to finish.

I've also invited @rufuspollock to edit if he likes.

DONE

done


Add AWS S3 bucket support

With the assumption that the AWSPowerShell module is installed.
With AWS S3 support we could download https://s3-eu-west-1.amazonaws.com/cloudformation-templates-eu-west-1/Windows_Single_Server_SharePoint_Foundation.template with something like this
something = @{
        DependencyType = 'AWS-S3'
        BucketName = 'cloudformation-templates'
        Region = 'eu-west-1' #Optional
        Key='Windows_Single_Server_SharePoint_Foundation.template'
    }

We need to consider authentication but as a first version we could it is setup on your profile with Set-AWSCredentials

Cool idea!  Any interest at taking a stab at this?  Haven't used much AWS yet : )
Cheers!

Since I've created this issue I've already taken a look into the code. I understand where the actually dependency type implementation needs to be created but can you provide some insight for the rest of the source code?
Do you have a preference on how to make sure the AWSPowerShell module is installed/available?
I'm already working on something similar here. Once I finish this and I know a bit more I'll do the contribution.

Notes for the future.
The cmdlet that will support this dependency is Copy-S3Object.
Required parameters are:

the bucket name
the key
target path. Can be file or folder path for our requirements.

All cmdlets in AWSPowerShell module define many optional parameters that drive the authorization. Optional parameters are:

Region
ProfileName
ProfilePath
SessionToken
AccessKey
SecretKey

Skipped the ones with credentials as they shouldn't be added to the configuration script. To decouple sensitive information from the configuration script, we need to define expressions that when invoked returned the intended object. For example for a property Credential we need a CredentialExpression that has the ability to return the intended value.

Hi!
Gotcha:

Yep!  Just add an entry to PSDependMap.psd1, and drop the script you point to in PSDependScripts.
I think in some of my examples I used PSDependOptions (global) with parameters specific to dependencytypes.  We detect valid parameters here,  and either add or warn user-provided parameters here.  I only throw warnings to give a little flexibility - we don't have 'globalish-parameters-for-a-particular-dependencytype,' so occasionally folks might throw in a parameter in PSDependOptions that applies to most but not all of there dependencies.
No preference on how you handle AWSPowerShell, apart from keeping the logic in the dependency script.  Some options you could use:

You could specify a default spot to look in the PSDepend.config - this is parsed and sets module level variables in the psm1 - you could then use that variable in your dependency script - assuming there's only one spot to look - tough if you want to allow flexibility (e.g. might be in any psmodulepath)
You could use any method to pull it down, but, do keep in mind that we bootstrap nuget.exe and place it in the module root - you could rely on the NugetPath module variable for this - benefit is that it will work on systems without PowerShellGet.  Caveat is that PSDepend running on a locked down system where a user has not configured an alternate nugetpath, or installed nuget in their path, won't pull things down - presumably they couldn't pull down the AWS module at that point, so maybe a moot point.

Cheers!

Pull request available #30


PhotoManager.editor.deleteWithIds(ids) caused Unhandled Exception: type 'bool' is not a subtype of type 'List' in type cast

I trying to delete with PhotoManager.editor.deleteWithIds(ids) and it gave me this error. But It actually deleting file form storage. I am using photo_manager: ^0.6.0 , test device android 8.1 and Flutter Channel stable, 1.22.6
This issue shows up while deleting a video.
E/flutter (17860): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: type 'bool' is not a subtype of type 'List<dynamic>' in type cast
E/flutter (17860): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:41)
E/flutter (17860): <asynchronous suspension>
E/flutter (17860): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
E/flutter (17860): #2      Plugin.deleteWithIds (package:photo_manager/src/plugin.dart:170:25)
E/flutter (17860): #3      Editor.deleteWithIds (package:photo_manager/src/editor.dart:19:20)

@CaiJingLong Ony progress on this issue?

Is this issue still reproducible in the latest version?

Yes ! on Android 8.1
I/PhotoManagerPluginLogger(25013): onGranted call.method = deleteWithIds
E/flutter (25013): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: type 'bool' is not a subtype of type 'List'
E/flutter (25013): #0      Plugin.deleteWithIds (package:photo_manager/src/plugin.dart:170:25)
E/flutter (25013):
E/flutter (25013): #1      AssetPathProvider.deleteSelectedAssets (package:image_scanner_example/model/photo_provider.dart:305:5)
E/flutter (25013):
E/flutter (25013):

Thanks for the clarification. Could you provide more info about the flutter version, device model, and the usage code? (Please wrap your code with ```)

Device Model: Redmi 5 Plus (Xiaomi)
Code:
  Future deleteFiles(List<AssetEntity> files) async {
    List<String> ids = files.map((e) => e.id).toList();
    try {
      await PhotoManager.editor.deleteWithIds(ids);
      return;
    } catch (e) {
      print("$e");
    }
  }

NB: I have cloned the flutter_photo_manager repository and found the same error with the example. but the same code is working on android 11.
Flutter version:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.0.3, on Microsoft Windows [Version 10.0.19042.867], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.6.3)
[√] Android Studio (version 4.1.0)
[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
[√] VS Code, 64-bit edition (version 1.53.2)
[√] Connected device (4 available)

Issue updated!
This issue shows up while deleting a video. But deleting the image file working fine.

I think this the issue.  resultHandler.reply(true) . It should return a list of ids, isn't it?

I have created a pull request. #460

I'm waiting to another PR to see whether we can publish these fixes together, but I'll publish a new version if it takes too long. Thanks again for your fix and the report.


Carbon-cache keeps accepting connections after metrics are paused; hits file descriptor limit and fills up the disk

If, for whatever reason, the MetricCache gets full, carbon-cache will pause the metrics (at least I can see in the debugger that state.metricReceiversPaused = true and the only event I saw in the code that triggered that state change was "cache full", but I never observed the transition, so the trigger may be elsewhere). This will cause the newly accepted connections to be removed from the epoll, hence any events from those connections will not be received.
Carbon-cache should stop accept()ing connections. Because it does otherwise, and removes the accepted file descriptors from poll (making it unaware of disconnects by the client that would otherwise trigger the file descriptor to be closed) the number of open file descriptors will keep increasing until the limit is hit. At this point, most of these connections will be in a CLOSE_WAIT state because the client will already have closed the connection on its end.
But it gets worse. Once the file descriptor limit is hit, carbon-cache will write to the log at a very high rate:
10/09/2015 10:35:14 :: Could not accept new connection (EMFILE)
which will end up filling up the disk.

I ran into a similar issue. During a planned intervention, all TCP connection states were dropped on a firewall. As a result about 700 diamond agents lost their connection to carbon-relay and tried to open a new connection. Since the old connections were not properly closed, carbon-relay still had 700 old/stale connections.
The new connections pushed carbon-relay over the limit of its max open file descriptors (1024).
As a result carbon-relay fills up the logs (53 messages / sec) and the carbon-relay process consumes 100% CPU.
It would indeed be better if carbon-relay doesn't accept any new connections once it reaches this limit and also throttle the logging of this message.

I'm not sure what we can really do here. The log message is fired by Twisted, not Graphite: https://github.com/twisted/twisted/blob/trunk/twisted/internet/tcp.py#L1045-L1063
As far as not accepting new connections while the transport is paused, this is probably best done through a feature request to Twisted. We could call transport.loseConnection(), but that would (I think) also kill existing but paused TCP connections.
PERHAPS we could set transport.disconnecting = True to keep accept()s from happening (https://github.com/twisted/twisted/blob/trunk/twisted/internet/tcp.py#L1032-L1035) but that's certainly unsupported and prone to breakage.
Guessing our best way forward is to
a) Document somewhere a recommendation to set a high nofiles ulimit (1024 is quite low for any high volume TCP server)
b) Log the current ulimit at startup and/or start recording current open FDs in carbon metrics to bring it front-of-mind to people administering carbon.

I took a quick glance through code yesterday and also noticed this seemed to be in Twisted.  However, I'll include my use-case and comments just for more data on the issue (and in case something else could be done in Graphite to compensate):
A high ulimit just delays the problem - this is still equivalent to a memory leak.  I have a test network with 16 devices logging metrics to Graphite.  It's not burdensome: each device reports its set of metrics (1.5-3KB message size per device), every minute.  The problem is the network is wireless and very lossy - some links are very weak.  I'm using TCP to improve reliability, but connections are still lost occasionally.  It took a few weeks to run out of 1024 FDs.  Very much like what @jkielbaey mentioned - all those old, dead connections were consuming FDs.
Also mentioned by @jkielbaey were the logs.  I was out of file descriptors for about a day before noticing the problem; the logs for that day consumed almost 200GB.
As a work-around, I'll be implementing a monitor to restart carbon-aggregator when its established TCP connections count grows too high.  I plan on increasing the size of my test network, so the problem will just surface more frequently without such a monitor.
I do like b) presented by @mleinart - I actually looked through the auto-created metrics yesterday to see whether that happened to be there already.

Hello - Is there a proper fix planned for this issue? I just hit it and setting a high FD limit is just not a great thing to do all the time.


prune: 🔥 yarn.lock; docs: 📝 pnpm (localized)

Addition to #18

Removes old yarn.lock from the move to pnpm
(web) Contributors for localized website development for cmdk should use pnpm

Separate from the overall README which people can install cmdk via their preferred package manager

This is really cool (understatement) and congrats on the release (also understatement)! 🚀
If you prefer an issue creation first, I understand. Please let me know if you have any questions or prefer any changes.


Tensorboard crashed when keras finish train in eager execution

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Ubuntu 18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):binary
TensorFlow version (use command below):1.13.1
Python version:3.6
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:10.0
GPU model and memory:

You can collect some of this information using our environment capture script
You can also obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
Describe the current behavior
tensorboard crashed when keras finish training the model and do a record in tensorboard
Describe the expected behavior
tensorboard do the record normally
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
  if True:
        model.compile(optimizer=tf.keras.optimizers.Adam(lr=1e-3), loss={
            # use custom yolo_loss Lambda layer.
            'yolo_loss': lambda y_true, y_pred: y_pred})

        model.fit_generator(data_generator(files,batch_size, input_shape, anchors, num_classes),
                    epochs=0, initial_epoch=0,
                    steps_per_epoch=max(1, sum // batch_size),
                    callbacks=[logging, checkpoint],
                    validation_data=data_generator(val_files, batch_size, input_shape, anchors,num_classes,train=False),
                    validation_steps=max(1, val_sum // batch_size))
        model.save_weights(log_dir + 'trained_weights_stage_1.h5')

    # Unfreeze and continue training, to fine-tune.
    # Train longer if the result is not good.
    if True:
        for i in range(len(model.layers)):
            model.layers[i].trainable = True
        model.compile(optimizer=tf.keras.optimizers.Adam(lr=1e-4),
                      loss={'yolo_loss': lambda y_true, y_pred: y_pred})  # recompile to apply the change
        print('Unfreeze all of the layers.')

        model.fit_generator(data_generator(files,batch_size, input_shape, anchors, num_classes),
                    epochs=1, initial_epoch=0, steps_per_epoch=max(1, sum // batch_size),
                    callbacks=[logging,checkpoint, reduce_lr, early_stopping],
                    validation_data=data_generator(val_files, batch_size, input_shape, anchors, num_classes,train=False),
                    validation_steps=max(1, val_sum // batch_size))
        model.save_weights(log_dir + 'trained_weights_final.h5')

Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
Traceback (most recent call last):
File "/media/fangsixie/data/pycharm-2018.2.4/helpers/pydev/pydevd.py", line 1664, in
main()
File "/media/fangsixie/data/pycharm-2018.2.4/helpers/pydev/pydevd.py", line 1658, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/media/fangsixie/data/pycharm-2018.2.4/helpers/pydev/pydevd.py", line 1068, in run
pydev_imports.execfile(file, globals, locals)  # execute the script
File "/media/fangsixie/data/pycharm-2018.2.4/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/media/fangsixie/data/keras-yolo3/train.py", line 192, in
_main()
File "/media/fangsixie/data/keras-yolo3/train.py", line 78, in _main
validation_steps=max(1, val_sum // batch_size))
File "/home/fangsixie/.conda/envs/tensorflow1.12/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py", line 1426, in fit_generator
initial_epoch=initial_epoch)
File "/home/fangsixie/.conda/envs/tensorflow1.12/lib/python3.6/site-packages/tensorflow/python/keras/engine/training_generator.py", line 232, in model_iteration
callbacks.on_epoch_end(epoch, epoch_logs, mode=mode)
File "/home/fangsixie/.conda/envs/tensorflow1.12/lib/python3.6/site-packages/tensorflow/python/keras/callbacks.py", line 251, in on_epoch_end
callback.on_epoch_end(epoch, logs)
File "/home/fangsixie/.conda/envs/tensorflow1.12/lib/python3.6/site-packages/tensorflow/python/keras/callbacks.py", line 1159, in on_epoch_end
self._write_custom_summaries(step, logs)
File "/home/fangsixie/.conda/envs/tensorflow1.12/lib/python3.6/site-packages/tensorflow/python/keras/callbacks.py", line 1106, in _write_custom_summaries
summary_ops_v2.scalar(name, value, step=step)
File "/home/fangsixie/.conda/envs/tensorflow1.12/lib/python3.6/site-packages/tensorflow/python/ops/summary_ops_v2.py", line 564, in scalar
return summary_writer_function(name, tensor, function, family=family)
File "/home/fangsixie/.conda/envs/tensorflow1.12/lib/python3.6/site-packages/tensorflow/python/ops/summary_ops_v2.py", line 508, in summary_writer_function
should_record_summaries(), record, _nothing, name="")
File "/home/fangsixie/.conda/envs/tensorflow1.12/lib/python3.6/site-packages/tensorflow/python/framework/smart_cond.py", line 54, in smart_cond
return true_fn()
File "/home/fangsixie/.conda/envs/tensorflow1.12/lib/python3.6/site-packages/tensorflow/python/ops/summary_ops_v2.py", line 501, in record
with ops.control_dependencies([function(tag, scope)]):
File "/home/fangsixie/.conda/envs/tensorflow1.12/lib/python3.6/site-packages/tensorflow/python/ops/summary_ops_v2.py", line 562, in function
name=scope)
File "/home/fangsixie/.conda/envs/tensorflow1.12/lib/python3.6/site-packages/tensorflow/python/ops/gen_summary_ops.py", line 675, in write_scalar_summary
writer, step, tag, value, name=name, ctx=_ctx)
File "/home/fangsixie/.conda/envs/tensorflow1.12/lib/python3.6/site-packages/tensorflow/python/ops/gen_summary_ops.py", line 706, in write_scalar_summary_eager_fallback
attrs=_attrs, ctx=_ctx, name=name)
File "/home/fangsixie/.conda/envs/tensorflow1.12/lib/python3.6/site-packages/tensorflow/python/eager/execute.py", line 66, in quick_execute
six.raise_from(core._status_to_exception(e.code, message), None)
File "", line 3, in raise_from
tensorflow.python.framework.errors_impl.NotFoundError: Resource localhost/logdir:logs/000//N10tensorflow22SummaryWriterInterfaceE does not exist. [Op:WriteScalarSummary] name: epoch_loss/

fixed


Remove space between ticks

When I have no data for one day (or more) the graph "save" a place for the missing day. I want to avoid it.

plnkr

Use indices instead of values in data: x: function(d, i){return i; }.
All options will be:
$scope.options = {
    chart: {
      type: 'lineChart',
      height: 500,
      useInteractiveGuideline: true,
      x: function(d,i){ return i},
      xAxis: {
        tickFormat: function(d) {
          var data = $scope.graphData[0].values[d].x;
          return d3.time.format('%H %d/%m')(new Date(data));
        },
        rotateLabels: -45,
        tickValues: function(values) {
          var a =  _.map(values[0].values, function(v,i) {
            return i
          });
          return a;
        },
        showMaxMin: false
      }
    }
  };

Thanks! It's a nice solution. But now, the problem is that when I hover on the graph, the tooltip "stick" on the first column.
I was updated the plunk with your suggestion.

it seems like guideline is bound to data.. just add indices to data:
values.push({
  i: j,
  x: data[j][0], // x is date
  y: data[j][i] // y is value
});

and change x option:
x: function(d){ return d.i}

Works like charm ;) Thanks!

@krispo  , can the xaxis tick value be increased to 30 ?
I think the max value is 10 ..
Can you help me ?


Bad request response

I have been trying to create a session and I am always getting a bad request error message. I also tried with the swagger and it still gives me the same error message. Is there anything I'm missing out?
Here is my request json body:
{     "duration": "50",     "ueId": {         "externalId"<EMAIL_ADDRESS>        "msisdn": "123456789",         "ipv4addr": "<IP_ADDRESS>/24"     },     "asId": {         "ipv4addr": "<IP_ADDRESS>/24"     },     "uePorts": {         "ranges": [             {                 "from": 5010,                 "to": 5020             }         ],         "ports": [             5060,             5070         ]     },     "asPorts": {         "ranges": [             {                 "from": 5010,                 "to": 5020             }         ],         "ports": [             5060,             5070         ]     },     "qos": "QOS_E", }

@chiloanemike as your question is answered, would you like to close the issue?


【Archive tasks in this file】ERROR

execute Archive tasks in this file commend，error info is

obsidian version： v1.4.16

Hello, @penghe00,
This is not enough for debugging. Try the following:

Make sure your file is valid markdown
If it is, and you're still getting the error, delete parts of the file and try archiving again, until you find that particular line or paragraph that causes the error
Share that error-causing piece of text in this ticket

@ivan-lednev Thank you for your prompt reply.
The next day after reopening Obisidian, I was able to use it normally again without issue.


Allows you to stack unstackable items

If you throw multiple unstackable items on the ground, or put them in a chest, when they group up they will stack as an incorrect stack size.
https://github.com/frank89722/Staaaaaaaaaaaack/assets/88632676/0bf23a60-effe-4fb6-9e48-e7e11db1983f

Oh no...

Just now realizing the video didn't work :P woops

Don't worry, the video is working properly for me on a non-Safari browser
and the issue should be fixed in v0.5.1, thank you for your help!


404 GET /node_modules/ng2-facebook-sdk/dist.js

Hi,
on my side I got this message:

404 GET /node_modules/ng2-facebook-sdk/dist.js

I included in index.html what follows:

Then in the systemjs.config.js:
map: {
  ...
 'ng2-facebook-sdk': 'npm:ng2-facebook-sdk'
},
packages: {
  ...
'ng2-facebook-sdk': {
                main: './ng2-facebook-sdk.js',
                defaultExtension: 'js'
            }

Any idea?

Use this instead under packages:
      'ng2-facebook-sdk': {
        defaultExtension: 'js',
        main: './dist/index.js'
      }

Hi ihadeed,
thanks but that didn't solve the issue.
Same problem.

How are you importing the provider from the npm package?

Hi ihadeed,
thanks: that solved the issue.
Simone

Thanks for your feedback! Glad you got it working.

'ng2-facebook-sdk/dist': 'npm:ng2-facebook-sdk/dist/ng2-facebook-sdk.js', // mapping in system-config file
packages: {
....
'ng2-facebook-sdk/dist': {
defaultExtension: 'js'
}
} // in system-config file
then all the imports works as given in the docs, works for me

Thanks @ihadeed
Using :
map: {
  ...
 'ng2-facebook-sdk': 'npm:ng2-facebook-sdk'
},

and
  'ng2-facebook-sdk': {
        defaultExtension: 'js',
        main: './dist/index.js'
      }

in jsystems.config.js solved my issue. Why is it not mentionned in the Read me althought?

@AsmaGargouri this is common SystemJS knowledge. It's not a quirk with this module.

Oh ! My bad. Thank you.


search for comment

log in as Joe
to the first question, add a comment, still good
search for that text, http://localhost:3000/?q=%22still-good%22.

The question isn't found.

Work this issue on separate branch

Well, this was indeed a config bug and a very easy fix.

Hi @gghai , @laurelnaiad has good repro right in the issue description.

Able to search the question for text in the comment sections


manpages: update from homebrew-bundle

[ ] Have you followed the guidelines in our Contributing document?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same change?
[ ] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew style with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?
[x] Have you successfully run brew man locally and committed any changes?

Incorporates changes from https://github.com/Homebrew/homebrew-bundle/pull/813 and https://github.com/Homebrew/homebrew-bundle/pull/814.
These don't get checked during homebrew-bundle CI and PRs to brew don't seem to update the official external command taps (bundle, services, test-bot) to show that the brew man output has changed.
cc @EricFromCanada @Rylan12 @MikeMcQuaid

Since it didn't update the homebrew/bundle tap, brew man is failing on this PR.

This PR is actually attempting to undo the changes from Homebrew/homebrew-test-bot#519. Why?

@EricFromCanada you're right. Running brew man locally without test-bot auto-updating made it seem like something was out of sync. I'm not sure why I thought the homebrew-bundle part was out of date. Closing this now.


Clkg not supported, although in list

Hi,
I have 3 curtain switches (CLKG). They appear in HomeKit shown as "not supported".

Hi,
I have 3 curtain switches (CLKG). They appear in HomeKit shown as "not supported".

Hi, can you try to clean homebridge accessory cache from web gui settings? I'm not sure if it is cache issue or something. If problem still happen, please provide your device's detail info.

I can confirm this didn't help.
https://www.amazon.de/gp/product/B07MXT9Y2D/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1
According to Tuba IoT platform the category is "clkg". Smart Curtain Switch

Can you take a picture of Standard Instruction Set and Standard Status Set page ? So I can see what difference between your device and my virtual device.

Status and instruction page look the same

Ok, all juse one control ?

Yes there seems to be no calibration or percentage control

Homebridge requires Window Covering must have Current Position, Position State, Target Position.
If only control exist, do you have any ideas of how to handling position issue? Or maybe we should treat it as a dual-switch ?

Yes maybe that would solve it, but as a dual switch I think it would only provide "open" and "close", not "stop", right?

Yes, swicth is not the perfect solution, some plugin will treate device fan's level (low/medium/high) as three switches, if low is open, other two will be closed. But if all closed...

For the curtain switches:
One way:
Set the slider with step 50, so it only can be 0%, 50%, 100%, and 0 means close, 50 stop, 100 open.
Another:
as described before, add 3 switches represents close, stop and open, If the on switch was changed to off, let it back to on again.

I think the slider option would be the best applicable, this way it could also display the correct status wether its opened or closed

Yes, but 50% means stop may confuse users. But I can't think way better than this. I will update later.

When you close the curtain, will it be stoped by device it self and change state to stop?

Yes, changes to stop all by itself

Please try the latest version

Unfortunately devices don't appear in HomeKit at all, although they are recognized by protocol

Try clean accessory cache and restart, I have experienced too during the develop, and not sure why.

Works pretty well.
Only downside is that although opened or fully closed it shows as "50% opened" as the system sets itself to "stop".
But guess we gonna have to live with that :)

Yes :)

Thanks for your support


Can I train OpenSora using multiple 16GB V100 cards?

Hi
Can I train OpenSora using multiple 16GB V100 cards?

Although you can by using sequence parallelism, I do not recommend you to do so. Maybe you can try something like LoRA. We will continue to work on it in the future version.

Although you can by using sequence parallelism, I do not recommend you to do so. Maybe you can try something like LoRA. We will continue to work on it in the future version.

May I ask how much memory costs of continued training for each pre-trained model?


Accepting project requests do not work

Description
Declining an project request is going fine but when you try to accept a project it will only give you an error.

Duplicate of #181


Improvements to install.sh

This connects to a few issues related to the install script at contrib/install.sh that we point to on the balenaEngine landing page

should fail on error (#54)
balena-engine-daemon doesn't run after install (#55)
output still says "balena - the container engine for the IoT"

@shaunmulligan What do you think about this regarding installation outside of balenaOS. I want to prepare for doing a 18.09 release + binaries at one point and this should go in before that ideally...


Add nextMatchWithLDY function

This function will provide the support for the last day of month.
If you want the schedule set as the last day of every month, the let the input day set as 31 will make that happen.
The primary difference between the new function and existing nextMatch function is using Time.fromGregorian instead of Time.fromGregorianValid to generate potential dates for matching.

In general, I think a better approach would be to have a schedule like 0 0 28-31 * * and then check in the code to see if it's actually the last day of the month.
Instead of adding a new matching function, what do you think about adding support for L as "last day of month"? Then you could use a schedule like 0 0 L * * and the normal nextMatch function would figure it out for you.
Note that I have up to this point only implemented the basic cron stuff in Saturn. There are many extensions like L, and it's not clear where to draw the line.

I think input like 0 0 28-31 * * will always output the first matching, which will properly be 28th.
The L idea is fine, but for input 29 and 30, this two days will work fine with existing function for most of the months except Feb, and right now I have to disable the 29 - 31 from UI because of this. As a result, this change is not only to support the last day of month, but also deal with invalid days for certain months. I know the use case for input 29 and 30 are rare, but be supported as other days.

I'm opposed to adding a new matcher function with slightly different semantics.
If your UI allows users to select, say, the 30th day of the month for a repeating action, I don't think you can naively translate that into a cron schedule. You would have to specify something like 28,29,30 or 28-30 and then check when the job runs that it's either the 30th or the month has fewer than 30 days. I think this same approach should also work for running things on the 29th or 31st.
If Saturn added support for L, then your UI could allow the user to select days up to 28, followed by "last day of month" as a non-numeric option. (It could also allow users to select 29, 30, and 31, with the caveat that they would only happen on months with that many days.)
Also note that a schedule like 28-31 will match all of the 28th, 29th, 30th, and 31st, not just the first one. I suggested that as a workaround because the job in Haskell could call some hypothetical isLastDayOfMonth function before doing its actual work.


Bug:

Is there an existing issue for this?

[X] I have searched the existing issues

Which Mux Elements/Packages does this apply to? Select all that apply
mux-video
Which browsers are you using?
Chrome
Which operating systems are you using?
None
Description
How can we use  tag in angular projects.
Reduced test case
No response
Steps to reproduce

add npm @mux/mux-video package in angular project
Add mux-video tag in html file.
mux-video element not found in project.

Current Behavior
mux-video element not found in angular project.
Expected Behavior
mux-video element should be found in angular project.
Errors
No response
What version of the package are you using?
No response

Hi, we have a codesandbox example using angular you can check out here: https://codesandbox.io/s/mux-player-angular-6qy8p7?file=/src/app/app.component.ts
That uses mux-player specifically, but you should be able to swap it out with @mux/mux-video.


Not able to delete ARO resource group and cluster

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az aro delete
Errors:
The command failed with an unexpected error. Here is the traceback:
'GraphError' object has no attribute 'message'
Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.41.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/role/_msgrpah/_graph_client.py", line 52, in _send
    r = send_raw_request(self._cli_ctx, method, url, resource=self._resource, uri_parameters=param,
  File "/usr/local/Cellar/azure-cli/2.41.0/libexec/lib/python3.10/site-packages/azure/cli/core/util.py", line 1014, in send_raw_request
    raise HTTPError(reason, r)
azure.cli.core.azclierror.HTTPError: Forbidden({"error":{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation.","innerError":{"date":"2022-12-07T05:52:55","request-id":"8182f078-0971-42d8-8486-407eee9037c8","client-request-id":"8182f078-0971-42d8-8486-407eee9037c8"}}})

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.41.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/aro/custom.py", line 168, in aro_delete
    rp_client_sp_id = aad.get_service_principal_id(resolve_rp_client_id())
  File "/usr/local/Cellar/azure-cli/2.41.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/aro/_aad.py", line 31, in get_service_principal_id
    sps = self.client.service_principal_list(f"appId eq '{app_id}'")
  File "/usr/local/Cellar/azure-cli/2.41.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/role/_msgrpah/_graph_client.py", line 179, in service_principal_list
    result = self._send("GET", "/servicePrincipals" + _filter_to_query(filter))
  File "/usr/local/Cellar/azure-cli/2.41.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/role/_msgrpah/_graph_client.py", line 55, in _send
    raise GraphError(ex.response.json()['error']['message'], ex.response) from ex
azure.cli.command_modules.role._msgrpah._graph_client.GraphError: Insufficient privileges to complete the operation.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.41.0/libexec/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/local/Cellar/azure-cli/2.41.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute
    raise ex
  File "/usr/local/Cellar/azure-cli/2.41.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/usr/local/Cellar/azure-cli/2.41.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job
    result = cmd_copy(params)
  File "/usr/local/Cellar/azure-cli/2.41.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 333, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/local/Cellar/azure-cli/2.41.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/usr/local/Cellar/azure-cli/2.41.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/aro/custom.py", line 172, in aro_delete
    logger.info(e.message)
AttributeError: 'GraphError' object has no attribute 'message'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az aro delete --resource-group {} --name {} --yes

Expected Behavior
Environment Summary
macOS-12.6-x86_64-i386-64bit, Darwin 21.6.0
Python 3.10.8
Installer: HOMEBREW

azure-cli 2.41.0 *

Additional Context

@vamshicholleti93 Thank you for reaching out, we are looking into it.


single sign out

hi:
how to set slo with cas server 4.2, i do this but can't achive that . thx

Maybe your /cas/logout URL on the CAS server isn't doing the right thing on its own?
I suggest you use a tool like the Chrome extension Live Http Headers to monitor the logout process and verify it is going correctly, removing the cookies properly at each location.
Even once you get it working, recall that logout is complicated.   If you have already authenticated to two sites that share the same CAS server, then logout from one site may not log you out from the other site.   It depends on the domains on the cookies which indicate that hold the successful authentication.   In django_cas_ng, that is integrated into the Django session.
However, I've had no difficulties with CAS_LOGOUT_COMPLETELY working, and it is enabled by default.

@danizen  SLO is a CAS server "back channel communication" process. Upon user logout, the CAS send a request to each authenticated site to tell them that the user just logout (with the ticket value as parameter).
@SolarisYan django-cas-ng support SLO out of the box, you should check if your CAS server is sending SLO request: a POST request with the 'logoutRequest' parameter containing a SLO XML request (as phpCAS do: https://github.com/Jasig/phpCAS/blob/9376b31c8c51180e918efa11470f9d928cdc43ef/source/CAS/Client.php#L1720)


npm library example that works with CSR and Nextjs?

Have you considered creating an example NPM library that uses ShadCN?
I've been trying over the past couple of weeks to use ShadCN in a custom NPM package that works in a Vite app and a Nextjs app, but can't quite get the tailwind to convert over properly.
The example out there right now does not work with NextJS:
https://github.com/rajeshdavidbabu/shadcn-ui-lib-starter (this does not work with NextJS, see https://github.com/rajeshdavidbabu/shadcn-ui-lib-starter/issues/1)
Does anyone know of a good strategy or example out there?

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.


Don't suggest unbalanced brackets

In theory, VS Code could automatically delete that unopened bracket.
We could add a boolean flag to remove all brackets that are not opened before.
@Krzysztof-Cieslak

This particular example is now fixed by copilot.


[BEAM-14073] [CdapIO] Add CdapIO and batch plugins PoC

Cdap package contains an io-connector for CDAP sources and sinks.
CdapIO is the primary class used in working with the connector in a pipeline. It contains static PTransform classes that represents reads/writes within the I/O (e.g. Read, Write).

CdapIO.<~>read() method method starts constructing a CdapIO.Read transform, it receives a type parameters<~> that specify the output type for CDAP source.
The Read class implements an interface similar to the builder pattern and has simple withX() methods for passing configuration and other settings needed before start reading from CDAP source:

withCdapPluginClass() - pass a source/sink plugin class marked with CDAP @Plugin annotation. (e.g. ZendeskBatchSource.class)
withPluginConfig()- pass a corresponding PluginConfig object (e.g. ZendeskBatchSourceConfig.class)
withKeyClass() - specify the key class for the output (e.g. NullWritable.class)
withValueClass()- specify the value class for the output (e.g. StructuredRecord.class)

Inside the .withCdapPluginClass() method, the CdapPlugin object is constructed. CdapPlugin object contains the following information about CDAP plugin:

Bounded/Unbounded
Input/Output
BatchContextImpl object for stubbing some CDAP-specific behavior
Format / Key / Value classes needed for filling Hadoop Configuration object
T cdapPluginObj for performing prepareRun() call before reading

The following steps are performed in the Read.expand() method:

Validating that all configs and other obligatory fields are set
Call CdapPlugin.prepareRun() method before reading (see javadoc)
Construct the needed Read transform depending on whether the CdapPlugin is bounded / unbounded:

For bounded sources HadoopFormatIO.<K, V>read() method is called passing filled Hadoop Configuration object.

For unbounded sources SparkReceiverIO.<~>read() method is called.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

What is next on this PR?

What is next on this PR?

This is a draft PR presenting a prototype of using the CDAP plugin via CDAP IO in Apache Beam. We've created it for demonstration purposes.
We have no plans to complete it, but it will be updated for the next demo sessions.


DBS3Upload crashes with HTTP Error 503

Impact of the bug
WMAgent
Describe the bug
DBS3Upload crashes if it receives a response like:

503 Service Temporarily Unavailable

while talking to CMSWEB services, in this case retrieving the parentage chain from wmstatsserver.
How to reproduce it
not sure
Expected behavior
Catch this specific error message:
503 Service Temporarily Unavailable

when accessing wmstatsserver and simply skip that components cycle, which will be retried again a few minutes later.
Additional context and error message
Similar to issue: https://github.com/dmwm/WMCore/issues/9123
I don't remember seeing this problem with the production cluster, but it happens quite often with the CMS@Home agent. Traceback is:
2020-10-17 17:53:41,216:139720193722112:INFO:DBSUploadPoller:Starting the DBSUpload Polling Cycle
2020-10-17 17:53:41,265:139720193722112:WARNING:Service:The cachefile /data/srv/wmagent/v1.4.1.patch1/install/wmagent/DBS3Upload/.wmcore_cache/.wmcore_cache_31961/requests/cmsweb-testbed.cern.ch:8443/15744094587142094_GET_filtered_requ
ests?RequestType=StepChain&ParentageResolved=False&mask=ChainParentageMap does not exist and the service at https://cmsweb-testbed.cern.ch:8443/wmstatsserver/data/filtered_requests?RequestType=StepChain&ParentageResolved=False&mask=Cha
inParentageMap is unavailable - it returned 503 because Service Temporarily Unavailable with result:
<title>503 Service Temporarily Unavailable</title>

503 Service Temporarily Unavailable

nginx/1.17.10

2020-10-17 17:53:41,349:139720193722112:ERROR:BaseWorkerThread:Error in worker algorithm (1):
Backtrace:
  <WMComponent.DBS3Buffer.DBSUploadPoller.DBSUploadPoller object at 0x7f132bcc12d0> <@========== WMException Start ==========@>
Exception Class: DBSUploadException
Message: Unknown failure while fetching parentage map from WMStats. Error: url=https://cmsweb-testbed.cern.ch:8443/wmstatsserver/data/filtered_requests?RequestType=StepChain&ParentageResolved=False&mask=ChainParentageMap, code=503, rea
son=Service Temporarily Unavailable, headers={'Content-Length': '198', 'Server': 'nginx/1.17.10', 'Connection': 'close', 'Date': 'Sat, 17 Oct 2020 15:53:41 GMT', 'Content-Type': 'text/html', 'CMS-Server-Time': 'D=3087 t=160295002126097
6'}
        ModuleName : WMComponent.DBS3Buffer.DBSUploadPoller
        MethodName : updateDatasetParentageCache
        ClassInstance : None
        FileName : /data/srv/wmagent/v1.4.1.patch1/sw/slc7_amd64_gcc630/cms/wmagent/1.4.1.patch1/lib/python2.7/site-packages/WMComponent/DBS3Buffer/DBSUploadPoller.py
        ClassName : None
        LineNumber : 357
        ErrorNr : 0

Traceback:
  File "/data/srv/wmagent/v1.4.1.patch1/sw/slc7_amd64_gcc630/cms/wmagent/1.4.1.patch1/lib/python2.7/site-packages/WMComponent/DBS3Buffer/DBSUploadPoller.py", line 345, in updateDatasetParentageCache
    self.datasetParentageCache = self.wmstatsServerSvc.getChildParentDatasetMap()

  File "/data/srv/wmagent/v1.4.1.patch1/sw/slc7_amd64_gcc630/cms/wmagent/1.4.1.patch1/lib/python2.7/site-packages/WMCore/Services/WMStatsServer/WMStatsServer.py", line 105, in getChildParentDatasetMap
    results = self.getFilteredActiveData(filter, mask)

  File "/data/srv/wmagent/v1.4.1.patch1/sw/slc7_amd64_gcc630/cms/wmagent/1.4.1.patch1/lib/python2.7/site-packages/WMCore/Services/WMStatsServer/WMStatsServer.py", line 92, in getFilteredActiveData
    return self._getResult(callname, verb="GET")

  File "/data/srv/wmagent/v1.4.1.patch1/sw/slc7_amd64_gcc630/cms/wmagent/1.4.1.patch1/lib/python2.7/site-packages/WMCore/Services/WMStatsServer/WMStatsServer.py", line 43, in _getResult
    verb=verb, contentType=contentType)

  File "/data/srv/wmagent/v1.4.1.patch1/sw/slc7_amd64_gcc630/cms/wmagent/1.4.1.patch1/lib/python2.7/site-packages/WMCore/Services/Service.py", line 208, in refreshCache
    self.getData(cachefile, url, inputdata, incoming_headers, encoder, decoder, verb, contentType)

  File "/data/srv/wmagent/v1.4.1.patch1/sw/slc7_amd64_gcc630/cms/wmagent/1.4.1.patch1/lib/python2.7/site-packages/WMCore/Services/Service.py", line 323, in getData
    raise he

There is an avalanche of such errors with the current agents in production, however, the error message is now different (something different with the kubernetes frontends):
2021-02-02 13:05:22,596:140349882533632:INFO:DBSUploadPoller:Starting the DBSUpload Polling Cycle
2021-02-02 13:07:40,184:140349882533632:ERROR:BaseWorkerThread:Error in worker algorithm (1):
Backtrace:
  <WMComponent.DBS3Buffer.DBSUploadPoller.DBSUploadPoller object at 0x7fa5c909bfd0> <@========== WMException Start ==========@>
Exception Class: DBSUploadException
Message: Unknown failure while fetching parentage map from WMStats. Error: (35, 'OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to cmsweb.cern.ch:8443 ')
        ModuleName : WMComponent.DBS3Buffer.DBSUploadPoller
        MethodName : updateDatasetParentageCache
        ClassInstance : None
        FileName : /data/srv/wmagent/v1.4.3.patch2/sw/slc7_amd64_gcc630/cms/wmagent/1.4.3.patch2/lib/python2.7/site-packages/WMComponent/DBS3Buffer/DBSUploadPoller.py
        ClassName : None
        LineNumber : 357
        ErrorNr : 0

Traceback:
  File "/data/srv/wmagent/v1.4.3.patch2/sw/slc7_amd64_gcc630/cms/wmagent/1.4.3.patch2/lib/python2.7/site-packages/WMComponent/DBS3Buffer/DBSUploadPoller.py", line 345, in updateDatasetParentageCache
    self.datasetParentageCache = self.wmstatsServerSvc.getChildParentDatasetMap()

  File "/data/srv/wmagent/v1.4.3.patch2/sw/slc7_amd64_gcc630/cms/wmagent/1.4.3.patch2/lib/python2.7/site-packages/WMCore/Services/WMStatsServer/WMStatsServer.py", line 105, in getChildParentDatasetMap
    results = self.getFilteredActiveData(filter, mask)

  File "/data/srv/wmagent/v1.4.3.patch2/sw/slc7_amd64_gcc630/cms/wmagent/1.4.3.patch2/lib/python2.7/site-packages/WMCore/Services/WMStatsServer/WMStatsServer.py", line 92, in getFilteredActiveData
    return self._getResult(callname, verb="GET")

  File "/data/srv/wmagent/v1.4.3.patch2/sw/slc7_amd64_gcc630/cms/wmagent/1.4.3.patch2/lib/python2.7/site-packages/WMCore/Services/WMStatsServer/WMStatsServer.py", line 43, in _getResult
    verb=verb, contentType=contentType)

  File "/data/srv/wmagent/v1.4.3.patch2/sw/slc7_amd64_gcc630/cms/wmagent/1.4.3.patch2/lib/python2.7/site-packages/WMCore/Services/Service.py", line 208, in refreshCache
    self.getData(cachefile, url, inputdata, incoming_headers, encoder, decoder, verb, contentType)

  File "/data/srv/wmagent/v1.4.3.patch2/sw/slc7_amd64_gcc630/cms/wmagent/1.4.3.patch2/lib/python2.7/site-packages/WMCore/Services/Service.py", line 287, in getData
    contentType=contentType)

  File "/data/srv/wmagent/v1.4.3.patch2/sw/slc7_amd64_gcc630/cms/wmagent/1.4.3.patch2/lib/python2.7/site-packages/WMCore/Services/Requests.py", line 159, in makeRequest
    result, response = self.makeRequest_pycurl(uri, data, verb, headers)

  File "/data/srv/wmagent/v1.4.3.patch2/sw/slc7_amd64_gcc630/cms/wmagent/1.4.3.patch2/lib/python2.7/site-packages/WMCore/Services/Requests.py", line 177, in makeRequest_pycurl
    ckey=ckey, cert=cert, capath=capath)

  File "/data/srv/wmagent/v1.4.3.patch2/sw/slc7_amd64_gcc630/cms/wmagent/1.4.3.patch2/lib/python2.7/site-packages/WMCore/Services/pycurl_manager.py", line 276, in request
    curl.perform()

I'll catch both error messages and avoid crashing the component.


Undefined local variable or method `ydoc_transact' for an instance of Y::Doc

Everything seems to install cleanly on Apple Silicon with ruby 3.3.4 but when I try to modify a document I get an error:
irb(main):002> doc = Y::Doc.new
=> #<Y::Doc:0x00000001258709a8>
irb(main):003> doc.diff("Hello")
(irb):3:in `<main>': undefined local variable or method `ydoc_transact' for an instance of Y::Doc (NameError)

      @current_transaction = `
                             ^^^^^^^^^^^^^

It looks like ydoc_transact is in the rust source so I'm guessing this is a compile / link error.

Okay, a number of re-installs later this looks like the issue was caused by me doing require "y/doc instead of require "y"!


CDS-76700 - Update service hook docs to make it more user friendly

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?
Issue regarding CDS-76700, where the customer was initially not passing the decrypted file with the command flag and later was using encrypted file in overrides which were re-writing the decrypted changes

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

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

Issue(s)

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

[ ] Tested Locally
[ ] Optional Screen Shoot.

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

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

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


DepNotify issue won't run - a bytes-like object is required, not 'str'

Hi,
i had issue with running Depnotify with new embeddedpython3 version IA on macOS 10.15.1 Catalina.
but after digging i was able found a way how to make it working again for me.
Not sure if that is correct way in Python but works for me.
before changes:
depnotifyscript = "#!/usr/bin/python"                 depnotifyscript += '\n' + "import subprocess"                 depnotifyscript += '\n' + depnotifystring                 depnotifyscript += '\n' + 'subprocess.call(depnotifycmd)'                 with open(depnotifyscriptpath, 'wb') as f:                     f.write(depnotifyscript)

after changes:
depnotifyscript = "#!/Library/installapplications/Python.framework/Versions/3.7/bin/python3"                 depnotifyscript += '\n' + "import subprocess"                 depnotifyscript += '\n' + depnotifystring                 depnotifyscript += '\n' + 'subprocess.call(depnotifycmd)'                 with open(depnotifyscriptpath, 'w') as f:                     f.write(depnotifyscript)

if will be possible implement  in next  release will be great.
Thank you

Thanks for this. Since this was done into the master branch, I'm not going to merge as is. I have taken your diff though and added it to my embeddedpython3 branch. Thanks for testing and figuring this out.


data-* attributes are being stripped from Flex/Box elements

I've noticed that in the current version of grid-styled 3.2.1 when we add an attribute such as <Flex data-qa="my-attr" /> that the data-qa is stripped from the produced HTML output.
I suspect that this might be a slightly overeager blacklist/whitelist implementation in clean-tag but I cannot find the source for clean-tag anywhere to verify.
Any suggestions on what we can do to work around or fix this data-* attribute stripping?
Can you publish the  clean-tag source or point me in the right direction if it's already published?
Cheers!

This was not an issue with the lib at all but rather an implementation error on our part (we had an HOC apply the data attr but didn't spread the prop into the underlying JSX).
Closing.


grunt-contrib-watch

I noticed RecordRTC has only one npm dependency which is 'grunt-contrib-watch'. Is there a reason for this? Other grunt plugins used by RecordRTC are nicely listed in the devDependencies but this one isn't. Is this an oversight?

It was a mistake that was fixed YESTERDAY: https://github.com/muaz-khan/RecordRTC/commit/3b2609a8fa6c8a726486733d48ed1aa35f8071fd
NPM was updated as well:

https://www.npmjs.com/package/recordrtc

Please try npm install recordrtc to download the latest version.


Added stylelint configuration.

#836
blocked by:

[x] stylelint/stylelint#2838

fixed in stylelint v8.1.0, but with a new bug.

[x] stylelint/stylelint#2853

[x] fixed in master branch and waiting for stylelint v8.2.0

Skip HTML file because stylelint/stylelint#2799

New bug of stylelint block this, PR: stylelint/stylelint#2853

ready to go?

ready to go?

Not yet.
Another new bug in stylelint v8.1.0 (stylelint/stylelint#2853)
package.json use git url to install stylelint, we'd better wait for stylelint release next new virsion.

Stylelint v8.2.0 is out.

@Aladdin-ADD @KarboniteKream
This is ready to merge.

1

ping @LinusBorg

@gucong3000 I think we should probably also extend from stylelint-config-css-modules, since vue-loader supports them out of the box.

@chrisvfritz
Great, We should create a PR to do it.

What can I do to help this PR merge?

@gucong3000 Does it work already? I thought we were still waiting on this PR being merged and for a new version of Stylelint to be released with that change.

@chrisvfritz

Does it work already?

Yes.
stylelint/stylelint#2975 is just make CLI more friendly

@chrisvfritz We're all set.
https://github.com/stylelint/stylelint/pull/2975 has been merged into stylelint v8.3.0

@gucong3000 This looks great, but I'm worried that the circleCI tests fail, it seems the vm runs out of memory.
I don't feel like merging this if it breaks tests :/

but I'm worried that the circleCI tests fail, it seems the vm runs out of memory.

I need some help, I can't find the reason for this problem, the master branch has the same problem.

Okay, I'll push this as a seperate branch to our repo and we'll see from there.

@LinusBorg #1138

@gucong3000 I want to hold off with this PR until #1133 is merged, is that ok?

Yes, of course.

@gucong3000 love the progress you've made on this so far, however, right now it's broken. I cloned the stylelint feature branch of your repo and initialised a new project but it's not working as expected.
Running yarn run lint:stylelint works correctly and linting errors are displayed.
Running yarn run dev compiles but does not show any errors.
 It's definitely caused by some dependency but I couldn't figure out which. Have you experience this in your projects?

@MaxMilton Thank you for the report.

Running yarn run dev compiles but does not show any errors.

It's been repaired here.

Just tested and everything works great. Thank you :)

Related: https://github.com/stylelint/stylelint/issues/3148


Conflict in setting MPP for MRET

In section <IP_ADDRESS>, the privilege spec says:
An MRET or SRET instruction is used to return from a trap in M-mode or S-mode respectively.
When executing an xRET instruction, supposing xPP holds the value y, xIE is set to xPIE; the
privilege mode is changed to y; xPIE is set to 1; and xPP is set to the least-privileged supported
mode (U if U-mode is implemented, else M). If y̸ =M, xRET also sets MPRV=0.

Which means MPP will be set to PRV_M if U-mode is implemented.
However, in section 9.6.4, it directly says:
MRET then in mstatus/mstatush sets MPV=0, MPP=0, MIE=MPIE, and MPIE=1.

The spec says:

xPP is set to the least-privileged supported mode (U if U-mode is implemented

You said:

Which means MPP will be set to PRV_M if U-mode is implemented.

That's not right.  If U-mode is implemented then it's set to U-mode as it says.

Sorry for the typo, it should be "if U-mode is not implemented"

Maybe not a conflict.  I just find section 9 is for Hypervisor extension. If we assume hypervisor is supported for the description in this section, then S-mode, and U-mode should be supported too.  So directly set MPP to zero seems right in this case.


Is there a size limitation?

Joe,
I just love your tool but it doesn't love me back!
I use a schema of 1006 lines. Could that be the issue? Please let me know.
I tried the site, CLI and Java API. I don't see an error/warn/exception, but i don't see a file in the target location. Can you please help me out?

@dinesh-seattle I am not aware of a size limitation, at least not at 1006 lines.  You have provided very little information here to provide help.  Can you get a simple schema to work?

@dinesh-seattle I think the problem here is that although this file contains a lot of schemas within it (inside the definitions property) it is not itself a schema. There is no object at the route which references the schemas held in definitions in any way. This tool will look at the root of this schema and find that there are no types to generate.

@ctrimble @joelittlejohn  Thanks for your responses.
@ctrimble - I can't share more details here due to some corporate restrictions.
@joelittlejohn - I see what you are saying. I can ask the other team the origin of the file. But do you think it is still a valid json schema, even though it is not processed by jsonschema2pojo?

I'd say this document has valid schemas inside it, but it isn't itself a schema, it's just a json document that contains some schemas.
If I created a second document like this:
{
  "$ref" : "http://api-integration.staples-sparx.com/docs/hog/heart-of-gold.json#/definitions/minimal-hog-request"
}

Then I'd have a document that actually contained a schema, and this document would cause something to be generated. I see also that your document contains use of keywords like allOf. These aren't supported by this library. I think you may not get on well trying to automatically generate types from this document.


Fix data corruption (issue #20)

Fixes a race condition that could lead to data corruption. See https://github.com/akrylysov/pogreb/issues/20 for more details.
Adding an extra heap allocation and a copy made the read performance worse. I'll consider adding a new option ReadOnly which eliminates the copy for read-only use cases.
@holiman

Btw, might be interesting for you -- I looked into using pogreb for go-ethereum. There are some obvious things that would need to be fixed, but we were able to hack it together sufficiently for a  benchmark run: https://github.com/ethereum/go-ethereum/pull/20029

Here are the results: https://github.com/ethereum/go-ethereum/pull/20029#issuecomment-528287741
Speed wise leveldb and pogreb (for our workload) hover around the same performance. However, pogreb seems to use 5x more disk space than leveldb, which is prohibitive unfortunately for us (our largest workload on leveldb is around 3TB). Do you have any suggestion on how to keep the disk size under meaningful thresholds? Our keys are mostly 32byte random numbers (hashes).

@karalabe what is the typical value size? can you tell me more about the access patterns? is it mostly writes / updates / deletes?


fix: strip whitespaces when parsing cookie in tests

Currently, ' foo=bar' is parsed as ' foo' being the cookie_name in the tests.

The pep8 error does not seem to be related to my change, do you want me update those too?

Don't worry about it, I tossed up a PR (#958) to fix those issues. It should merge shortly and make travis happy again. Thanks!

Current coverage is 100% (diff: 100%)

Merging #957 into master will not change coverage

@@           master   #957   diff @@
====================================
  Files          31     31
  Lines        1993   1993
  Methods         0      0
  Messages        0      0
  Branches      328    328
====================================
  Hits         1993   1993
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last update c2b620c...6dfe3b3


Feature for wildcard workdir

I need this feature.
RUN tar zxvf tomcat-native.tar.gz
WORKDIR ${JIRA_INSTALL}/bin/${ls -al | grep tomcat-native}

There are a few ways to do this without, most notably tar has a
--strip-components flag see
https://github.com/docker/docker/blob/master/Dockerfile#L68
On Friday, April 24, 2015, sangwoojoo<EMAIL_ADDRESS>wrote:

I need this feature.
RUN tar zxvf tomcat-native.tar.gz
WORKDIR ${JIRA_INSTALL}/bin/${ls -al | grep tomcat-native}
—
Reply to this email directly or view it on GitHub
https://github.com/docker/docker/issues/12742.

Hello!
We are no longer accepting patches to the Dockerfile syntax as you can read about here: https://github.com/docker/docker/blob/master/ROADMAP.md#22-dockerfile-syntax
Mainly:

Allowing the Builder to be implemented as a separate utility consuming the Engine's API will open the door for many possibilities, such as offering alternate syntaxes or DSL for existing languages without cluttering the Engine's codebase

Then from there, patches/features like this can be re-thought. Hope you can understand.