Rerun Tests After Remediation

Expected Behavior
When running a vester test with the -remediate flag, the command should re-execute the initial condition test after the remediation action - this ensures that the test results are actually as-expected post-remediation. This should be true for all published/included tests.
Current Behavior
At least some tests do not rerun the comparison post-remediation.
Possible Solution
Update the template to rerun the test again - this means test-writers don't have to think about it, they get it for free from the template.
Context
This would ensure that if a remediation completes without throwing an error the test will still fail if the conditions specified are not met.
Your Environment

Module version used: Vester 1.0.1
Operating System: Windows 10.0.14393
PowerShell version: 5.1.14393.693

Would this solve the problem?
https://gist.github.com/Midacts/be1f8ed00cb13764996a31de3e65b5ce
Lines 109-110

At a base level, yep, that's it! We may want to kick off & $Fix in a nested Try/Catch block, but I haven't decided on that yet. Would require writing back a brief section of $Error in the Catch.

I added in the try/catch and tested it it. I made it so if the check after the remediation fails, it will output:

$Desired and its gettype() output
$Actual and its gettype() output
$Type so we can see what it is looking for.

How I tested:
I had my netdump-settingsEnable.vester.ps1 file specify $Type = 'string'.
In my config file, i changed "false" to false, therefore making vester things false was no longer a string, but a boolean.
Below is an example output.
This change adds everything after "WARNING: Remediating host1.test.example.com".
I think it could be helpful to have all of this output for troubleshooting purposes. But maybe you guys might think it is overkill or too verbose.

Describing Host Configuration: NetDump-SettingsEnable.Vester.ps1
WARNING: Expected: value to be empty but it was { }
WARNING: Remediating host1.test.example.com
WARNING: Rerunning the 'Network Dump Enable' test against host1.test.example.com
[-] Host host1.test.example.com - Network Dump Enable 429ms
Expected: value to be empty but it was { }
Desired: False - bool
Actual: false - string
Type: string
at line: 134 in C:\Program Files\WindowsPowerShell\Modules\Vester\Private\Template\VesterTemplate.Tests.
ps1

I will open a PR after #114 is closed, since this change will affect that file as well.
The purposed changes are reflected in the below gist:
https://gist.github.com/Midacts/be1f8ed00cb13764996a31de3e65b5ce

Random question, what happens if the remediation fails, and the test returns fail. Second time? Is it now in a loop? Or does it just exit after the second check?

Sorry, another question, is there a need to run the second test again? Or should we just capture if the '$fix' was successful? I think the later is cleaner.

That's the part i was testing.
It runs the test
if the test fails an -Remediate is specified, it tries to remediate.
Then it reruns the same test to make sure it now succeeds.
it it fails again, it throws an error, basically as it would if you didnt kick off the -Remediate.
I added in some additional logging if the test that runs after the remediate fails.
But after that part, it continues on to the next test.

I like the second attempt. After all, "Success"  doesn't necessarily mean
that the fix was applied. It just means there was no decernable error that
caused the try/catch to fail, right?
On Apr 9, 2017 20:34, "Justin Sider"<EMAIL_ADDRESS>wrote:

Sorry, another question, is there a need to run the second test again? Or
should we just capture if the '$fix' was successful? I think the later is
cleaner.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/WahlNetwork/Vester/issues/101#issuecomment-292829643,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEqXUmxfqa3QU166WRnYIGijNf1BSo8xks5ruYc5gaJpZM4MgxDt
.

I see what you are saying.
I would say, just due to some of the testing i did today, even if $Fix succeeds, that does not necessarily mean that it will pass the test. Some other things could be misconfigured that lead to the test failing.
(which is how i was able to run my test scenario above).

Hmm, I would think that since the goal is to have a specific test, with a known state, value, etc. a retest after a fix would be a waste. The fix either works or it needs to be re-coded. The only reason I'm asking is that we just spent time on 'performance', so this sounds like a step in the wrong direction as far as efficiency goes. If the fix is not working right and returns that it was successful it will be picked up in the next round of tests.

I think something that would potentially be more useful would be a rerun after all tests complete, only on the items that were remediated. Kind of a second round but the scope would be limited. It would also provide less results for someone to review potentially.

At that point I'd leave it to the higher ups to decide.
Technically it would only effect performance on remediations though.
On Apr 9, 2017 10:02 PM, "Justin Sider"<EMAIL_ADDRESS>wrote:

Hmm, I would think that since the goal is to have a specific test, with a
known state, value, etc. a retest after a fix would be a waste. The fix
either works or it needs to be re-coded. The only reason I'm asking is that
we just spent time on 'performance', so this sounds like a step in the
wrong direction as far as efficiency goes. If the fix is not working right
and returns that it was successful it will be picked up in the next round
of tests.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/WahlNetwork/Vester/issues/101#issuecomment-292832471,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADxtkHL-m2vP3OV7sjo1VWUtyszRyHywks5ruY3OgaJpZM4MgxDt
.

True, I don't think it's much time loss. But I'm wondering what the xml looks like now too. Are you able to post a snippet of that?

Oh, I'm not saying I'm right or worong, just throwing some thoughts out there.

I've never run vester with XML output before. I should try it out though.
That and nunit.
On Apr 9, 2017 10:09 PM, "Justin Sider"<EMAIL_ADDRESS>wrote:

Oh, I'm not saying I'm right or worong, just throwing some thoughts out
there.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/WahlNetwork/Vester/issues/101#issuecomment-292833132,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADxtkDG0pwI_dGSGbK7L_UcTHxU4NUeVks5ruY9pgaJpZM4MgxDt
.

XML is awesome! Said no one ever, lol. But it has its uses. I use it with Vester as a way to enhance the results and share with my team.

This is going back to adding more info in the try/catch of the remediate. I was testing out some new tests and mine failed with this:
Desired: 1500 - int
Actual: 1000 - long
Type: int
It was really nice to know that it needed it to be a 'long' and not an 'int'.
In this scenario, i ran a gettype() on the object and it showed that it was an 'int64' which is a long. I figured 'int' would work, but apparently not.

I've been doing some more testing on this and wanted to bring something up for discussion.
I want to preface this that I think that my findings might make it so we will not want to rerun tests if -Remediate is specified.
Say we are running a VM test. In the desired, if we are just specifying $Object which houses the output from Get-VM, when you go to rerun the test if -Remediate is specified, the test will fail.
The reason for this (and this is the whole crux of the issue) is becuase $Object is referencing the original Get-VM value.
If you run a test and it fails and you remediate it, the value should be updated.
Unless we rerun the Get-VM, the test that is run will fail ~every time~.
That being said, in the $Actual scriptblock, if we use (Get-VM $Object) instead, it will gaurentee the values are fresh no matter what we do. The problem with this is we will see a definite increase in the time it takes to run tests.
I would personally vote against re running tests after remediate.
I would instead suggest this:
-user runs a test
-they see something fails so they rerun the test with -Remediate
-after the remediate run, they rerun the tests to make sure things are good
As a side not, i would still really like to have a more verbose output on the else { block if a test fails in the VesterTemplate.Tests.ps1 file.
Meaning instead of what it is currently:
# -Remediate is not active, so just report the error
throw $_

to change it to:
# -Remediate is not active, so just report the error
throw "$($_.Exception.Message)`nDesired: $Desired - $($Desired.gettype())`nActual: $(& $Actual) - $($(& $Actual).gettype())`nType: $Type"

The reason being is currently, if a test fails, all we know is that it failed. The error it throws is:
Expected: value to be empty but it was { }. I think it might be nice to know a little bit of why it failed.
When the Compare-Object is run against $Actual and $Desired, if it finds any difference, it is the error Pester throws.
Here is the line:
Compare-Object -ReferenceObject $Desired -DifferenceObject (& $Actual -as $Type) | ShouldBeNullOrEmpty


fix typo in manifest sample

current manifest sample for configuring groups optional claim uses a non-existent property netbios_name_and_sam_account_name. This is a typo, and the real property should be netbios_domain_and_sam_account_name

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

#assign-reviewer:mmacy

@mmacy assigning as FYI - small typo that I've chatted with Eng about already so I'm going to move forwards with merging

#sign-off

@nickludwig: I'm sorry - only the author of this article, @rwike77, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

@mmacy: I'm sorry - only the author of this article, @rwike77, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

@mmacy - Ah shoot, missed this was in the public repo. My bad. I'll close and open a new PR in the private repo.


npm error whilst running 'ng new' for v1.4.4 on Windows 7

Bug Report
- [x] bug report
- [ ] feature request

Versions.
@angular/cli: 1.4.4
node: 8.6.0
os: win32 x64 (Windows 7)
npm: 5.3.0
Repro steps.
npm install -g<EMAIL_ADDRESS>ng new my-app
The log given by the failure.
create my-app/e2e/app.e2e-spec.ts (288 bytes)
create my-app/e2e/app.po.ts (208 bytes)
create my-app/e2e/tsconfig.e2e.json (235 bytes)
create my-app/karma.conf.js (923 bytes)
create my-app/package.json (1311 bytes)
create my-app/protractor.conf.js (722 bytes)
create my-app/README.md (1021 bytes)
create my-app/tsconfig.json (363 bytes)
create my-app/tslint.json (2968 bytes)
create my-app/.angular-cli.json (1241 bytes)
create my-app/.gitignore (516 bytes)
create my-app/src/assets/.gitkeep (0 bytes)
create my-app/src/environments/environment.prod.ts (51 bytes)
create my-app/src/environments/environment.ts (387 bytes)
create my-app/src/favicon.ico (5430 bytes)
create my-app/.editorconfig (245 bytes)
create my-app/src/index.html (292 bytes)
create my-app/src/styles.css (80 bytes)
create my-app/src/main.ts (370 bytes)
create my-app/src/polyfills.ts (2498 bytes)
create my-app/src/test.ts (1085 bytes)
create my-app/src/tsconfig.app.json (211 bytes)
create my-app/src/typings.d.ts (104 bytes)
create my-app/src/app/app.module.ts (314 bytes)
create my-app/src/app/app.component.html (1120 bytes)
create my-app/src/app/app.component.spec.ts (986 bytes)
create my-app/src/app/app.component.ts (207 bytes)
create my-app/src/app/app.component.css (0 bytes)
create my-app/src/tsconfig.spec.json (304 bytes)
Installing packages for tooling via npm.
npm ERR! path C:\Users\username\Desktop\my-app\node_modules\cryptiles
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\username\Desktop\my-app\node_modules\cryptiles' -> 'C:\Users\username\Desktop\my-app\node_modules.cryptiles.DELETE'
npm ERR!  { Error: EPERM: operation not permitted, rename 'C:\Users\username\Desktop\my-app\node_modules\cryptiles' -> 'C:\Users\username\Desktop\my-app\node_modules.cryptiles.DELETE'
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, rename 'C:\Users\username\Desktop\my-app\node_modules\cryptiles' -> 'C:\Users\username\Desktop\my-app\node_modules.cryptiles.DELETE'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'rename',
npm ERR!      path: 'C:\Users\username\Desktop\my-app\node_modules\cryptiles',
npm ERR!      dest: 'C:\Users\username\Desktop\my-app\node_modules\.cryptiles.DELETE' },
npm ERR!   stack: 'Error: EPERM: operation not permitted, rename 'C:\Users\username\Desktop\my-app\node_modules\cryptiles' -> 'C:\Users\username\Desktop\my-app\node_modules\.cryptiles.DELETE'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'rename',
npm ERR!   path: 'C:\Users\username\Desktop\my-app\node_modules\cryptiles',
npm ERR!   dest: 'C:\Users\username\Desktop\my-app\node_modules\.cryptiles.DELETE',
npm ERR!   parent: 'my-app' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR!      C:\Users\username\AppData\Roaming\npm-cache_logs\2017-10-03T09_52_13_205Z-debug.log
Package install failed, see above.
Desired functionality.
Installs packages without error.
Mention any other details that might be useful.
The command is run in a command prompt, started as the administrator (I have local administrator rights), Running the same command on my Mac, with the same version of the Angular CLI works perfectly.

This seems like a problem with your node/npm and not with Angular CLI.
Please have a look at the fixing npm permissions page, common errors page, npm issue tracker, or open a new issue if the problem you are experiencing isn't known.

I am having exactly the same problem. @duffers20 did it finally worked for you?

@sergiolealdev I think the issue was caused by the antivirus software installed on my Windows 7 work laptop. Have you tried temporarily disabling your AV software?

I'll try that, thanks @duffers20 !

Turns out my antivirus (McAfee) was blocking that very package (cryptiles) cause apparently there was a rule in the antivirus to stop any file that contains 'crypt' as name.
Just leaving this comment in case if it may help others in the future.

I suspect the same thing was happening with Symantec Endpoint Protection too - thanks for looking into it further and posting an update 👍🏻


Interactive code review for systematic changes

http://dl.acm.org/citation.cfm?id=2818771&CFID=550839757&CFTOKEN=78411605

Their example is based on a diff patch at revision 13516 of SWT which is an open source widget toolkit with 400K lines of source code over 1000 files, but actual data set is not provided
Their test suite includes patches from Park et al.’s data set [21]


Allow multiple blocks with the same name

Currently, the block type is its name, so there cannot be two instances of the same block in a single pipeline, because the second one would overwrite the first one.
To avoid this, the block names should automatically get some unique identifier, like a counter, in their name when they are added to the pipeline.

This will be fixed in #43


Enable rufus-scheduler time format

Hello,
Since this gem uses rufus-scheduler already, why not allow stuffs like "15s" in the cron line?

Would this be needed if I wanted to create a job that triggered every 2 weeks (on a Monday).
Every monday is easy, 0 4 * * 1


background image fix

fix so on super wide screen the image spans entire width... 100% vw ?

working on this now


Closure for if feature has already been voted

I'd like the ability to show a toast message whenever a user taps on a feature they already voted for.
I can handle showing the message, but I need the RoadmapFeatureViewModel to be able to take in a closure & execute it inside of this guard statement:
func vote() {
guard !feature.hasVoted else {
print("already voted for this, can't vote again")
return
}

Can you make an example PR that we can work on from?

Created an example PR

Also commented in the PR, but for completeness: I rather see us removing the vote than telling the user they already voted. Keep the user in control, and solve the scenario of restoring unexpected votes at the same time.


warning if RadioGroup is uncontrolled

addresses #14696

[X] I have followed (at least) the PR section of the contributing guide.

This approach won't work, constructor is only called once. The check should probably be done in componentDidUpdate.

Sorry, I wasn’t really clear. IsControlled is set in the constructor and doesn’t change you should do the same check in componentDidUpdate and warn if the result is different from isControlled.

@manonthemat We have recently introduced uncontrolled behavior support for this component. We want to support it. What we are interestd into is to warn when people incorrectly switch between the uncontrolled and controlled mode.

Since we can't make the RadioGroup defaultValue a required prop, (since it isn't required when RadioGroup is controlled), I suggest we:

Update the defaultValue description to something like:

  /**
-   * The default input value, useful when not controlling the component.
+   * The default input value of an uncontrolled RadioGroup. Required when `RadioGroup` is uncontrolled.
   */
  defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool]),

2. Warn if RadioGroup is uncontrolled, and `defaultValue` is not provided.

3. Optionally we could also warn if `defaultValue` is not valid, i.e. doesn't match the value of a child.

Thanks for the guidance. I'll give it another shot.

@manonthemat Hold fire on my suggestion. @oliviertassinari is suggesting (in private chat) that we shouldn't be opinionated. I personally disagree, but this isn't my personal project.
Let's reach a consensus on what to warn and what not before you devote more time to this PR.


Java version without displaying the login QR code

Java version without displaying the login QR code

plz make sure the terminal charset is “UTF-8”.

plz make sure the terminal charset is “UTF-8”.

It’s "UTF-8".

try execute
echo $LC_CTYPE
echo $LANG

in your terminal.

The system is Windows.


Alert service

Describe the PR
Add a service to allow alerts to be displayed to the user.
Closes
Closes #344
Changes Made

Add an alert service
Add an alert component

Additionally, you will need to rebase changes to my latest stuff - and sorry this took so long.


Inexact owl:equivalentClass for Action Prohibition, Action Permission, Action Requirement

Greetings,
It seems 'Action Prohibition', 'Action Permission,' and 'Action Requirement' are not exactly equivalent to their specified owl:equivalentClass.
Each is equal to 'Action Regulation' and prohibits/permits/requires some Process.
Seems each should be equal to 'Action Regulation' and prohibits/permits/requires some Act.
Please clarify this choice. Alternatively, I am happy to submit a PR.
All the best,
Alec Sculley

This raises a few issues. Permission, prohibition, and requirement may be abut Acts most of the time, but not all of the time, so it makes sense to move in the direction of permitting/requiring/prohibiting processes broadly.
To that end:

[ ] The parent class should be changed in label and definition to "Process Regulation"
[ ] The subclass labels and definitions changed
[ ] The twelve object properties should be changed as well (six being modal properties)
[ ] And an elucidation added to the parent class explaining the decision to move from Act to Process.


Dev server reloads after every collection entry change

Description
Whenever I'm changing any data, the strapi dev server reloads:
[2024-05-27 13:54:53.253] http: PUT /api/products/1600 (48 ms) 200
[2024-05-27 13:54:53.262] info: File changed: /home/manu/dev/panucho/shop/strapi/meili_data/data.ms/tasks/data.mdb
[2024-05-27 13:54:53.264] info: A task to delete one document from the Meilisearch index "product" has been enqueued (Task uid: 62).
✔ Cleaning dist dir (12ms)
✔ Loading Strapi (1109ms)

Expected behavior
No reload
Environment (please complete the following information):
OS: NixOS 23.11
Meilisearch version: 1.8,1
strapi-plugin-meilisearch version<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>Browser: [e.g. Chrome version 90.0]
Strapi version: 4.16.2

When I use strapi start (to disable autoReload) it works fine - so it's my fault, as I put the meili_data just in the strapi folder... sry - found a list of watcher excludes directories


live video

Just the video and cover page
Updates by Ken

Updated Video component to support arbitrary video element attributes; removed autoplay default from non-backdrop case (and added explicitly to tour video)
Added ability to specify video + videoCover for blog posts (both relative to public/assets/videos) and defined those fields for the "now live" post
Updated list of failures

Since I added a bunch of work on this branch myself, I'd like someone else to review it. I added @fstrr; do @rachaelbradley or @brian-montgomery want to have a look too?

I missed the text content on the page saying it was meant to be a live event. I only realized when I saw it in the list of failures.
Updating the poster image to say something like "live stream" would help.
I'll approve this, but suggest updating the poster at some point.


functions: storage generic sample fails to deploy

https://github.com/GoogleCloudPlatform/golang-samples/blob/b824bfcb4933d9f3ec98bcf790bb230ae4f01d26/functions/helloworld/storage_generic/hello_storage_generic.go#L16
I'm not able to deploy this function "as is" in this example.
Deploying function (may take a while - up to 2 minutes)...failed.
ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed: go: finding cloud.google.com/go/functions/metadata v0.0.0
import cycle not allowed
package serverlessapp
imports cloud.google.com/go/functions/metadata
imports cloud.google.com/go/functions/metadata

Thank you for the bug report! I'm working on PR to add a go.mod, which should help with this.
Did you have a go.mod or vendor directory when you deployed? I haven't seen this error before - I want to understand what happened so I can make it more clear.

Hi Tyler,
Last night @mihaioprea figured this out... Indeed a go.mod is required (I tried it but with wrong content that was pulling more than what was needed).

See https://cloud.google.com/functions/docs/concepts/go-runtime#specifying_dependencies for docs about how to add dependencies.
TL;DR:
export GO111MODULE=on
go mod init
go mod tidy

If you're outside GOPATH, do go mod init example.com/foo.

Awesome!


bundle wp-amazon-s3-and-cloudfront instead of wpro

Hi there,
I have found wpro to be buggy, poorly written & maintained. I gave up with it and discovered the following plugins which have worked very well with no hassle and provide a far better experience:
https://github.com/deliciousbrains/wp-amazon-web-services
https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront
I suggest you'd like to bundle these instead of wpro.
Thanks
Tom

I  switched from wpro to Windows Azure Storage: https://wordpress.org/plugins/windows-azure-storage/

@tomcastleman can you detail some of the issues you are seeing with WPRO so that I can better understand the problem?

The WPRO plugin has been rewritten (Thanks @alfreddatakillen) so @tomcastleman you should expect an update soon

My files are not being uploaded to s3 when using WPRO.

I have deprecated the HHVM version and created a new PHP 7 version of Heroku WP. As part of that I have created a new default branch as not to break backwards compat.
In the new branch I am now bundling the much newer and better maintained S3 Uploads from Human Made / @joehoyle instead:
http://github.com/humanmade/S3-Uploads
As such I'm marking this issue as closed.


Getting 404 error on downloading spaceflights tutorial's data files

Description
Trying to download data files for the spaceflights tutorial fails with 404 errors.
Context
I was doing the tutorial and got 404 errors when doing the data setup step.
Your Environment
Include as many relevant details about the environment in which you experienced the bug:

Kedro version used (pip show kedro or kedro -V): 0.16.6
Python version used (python -V): 3.8.5
Operating system and version: Arch Linux

By the way, that happens when trying to download the files with the curl commands. The links displayed before the command work fine.

Closing this as resolved through linked PR. Just for future reference, key words like "close" or "resolve" next to issue number will automatically close the related issue when PR is merged. :D

Just for future reference, key words like "close" or "resolve" next to issue number will automatically close the related issue when PR is merged. :D

Cool tip. Thanks! :-)


Avoid allocations when calling GetHashCode or Equals on certain structs

Replace GetHashCode/Equals calls on enums with casts to int.
Manually compare nullable values as Nullable does not implement IEquatable<T?>. See Util.NullableEquals and GraphicsPipelineDescription.Equals.
The BCL has Nullable.Equals<T>, but it performs considerably worse than a custom implementation.

These look like good fixes to me. There is probably some kind of Roslyn analyzer that I should be using to catch these sorts of unnecessary allocations.

There's RoslynClrHeapAllocationAnalyzer. It's been updated to support VS 2017.

There is a similar open PR on the vk repo.

@SomeAnon42 Thanks for the improvement here. I'll move the Vulkan PR along soon and then update the reference here.


Invalid HTTP request headers: -2

"Connection reset" error every time the user tries to open a web page.
Here's what's in the logs.
2019/07/25 00:38:52:466  AGLocalApiServer	*284: New connection from client <IP_ADDRESS>:60028 fd 39
2019/07/25 00:38:52:466  AGLocalApiServer	*284: onRead: 853
2019/07/25 00:38:52:466  AGLocalApiServer	*284: parsing HTTP headers: +853
2019/07/25 00:38:52:466  AGLocalApiServer	*284: invalid HTTP request headers: -2
2019/07/25 00:38:52:483  AGLocalApiServer	*284: destroyed connection object: 0x7fde997c2dc0

The full log is in Nextcloud.

More logging is needed to discover what's happening

Added logging, moved to 1.6


Gh705 followup - CreateRenderPass validation of subpass resolves

Added some more.

Fixes done, picked to master.


Modify MatcherContext so that it returns an IEnumerable

From @reliak on Monday, November 23, 2015 6:18:25 AM
In https://github.com/aspnet/FileSystem/blob/dev/src/Microsoft.Extensions.FileSystemGlobbing/Internal/MatcherContext.cs#L44 the Execute method returns a PatternMatchingResult object.
To better support parallel operations, it would be great to return an IEnumerable<FilePatternMatch> with an yield inside the Execute method. This way I can start working when the first file was found and I do not need to wait till the end of the Execute method.
Copied from original issue: aspnet/FileSystem#143

Thanks for your feedback. We appreciate your letting us know about the problem you've encountered or suggestion but we are not planning to take further action on this issue because our focus has been on issues with significantly higher customer interest and issues impacting a broad number of customers.


Bug fix in DictMethodChemRefHelper

Bug fix in addChemCompInfo to get correct aromatic bond count in rcsb_chem_comp_info.bond_count_aromatic.

LGTM, thanks for fix. Nice job finding the source of the bug.
Also, I'm going to add my adjustment for turning off the loading of CARD features now—thanks for letting me include it in this PR.

@piehld Your updates look good to me.


Fix issues #7565 and #7570 related to MySql

Orchard 10.1 doesn't install by default on a MySql database due to indexes on too long nvarchar columns.

Hi @siyamandayubi, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;


[#3005] control center docs

closes #3005
closes #3026

added Control Center
reorganized UI docs
updated + improved docs/sources

--> preview

It looks nice, I have some comments:
First line : "The Catalog page of the Control Center lists the available connectors that can be connected to an Airy Core app. You can choose which connector you want to add and configure it easily (see Configuration below)."
I would suggest: "The Catalog page of the Control Center lists all components/connectors that can be connected to an Airy Core app. Also it shows the installed components. You can choose which connector/component you want to add and configure it easily (see Configuration below)."
Example link : "The screenshots below come from a sample Airy Core app. Its Control Center UI show that the app is already connected to the Airy Live Chat, Facebook Messenger, WhatsApp, Google Business Messages, and Instagram connectors. The SMS connector is listed in the Catalog: it hasn't been added to the app yet and is available to connect."
I would suggest: to continue focusing on "Catalog"; showing "Component/connectors" configuration on "Catalog" tab. Then maybe show that when a component/connector is installed, it is shown on the first tab "Status". Connectors when installed, is shown on "Connectors" tab for configuration. Also can check the ticket here: https://app.zenhub.com/workspaces/airy-61f94fc6acedfd001f39b1d0/issues/airyhq/airy/3033


:sparkles: Update DNS resources when syncer starts

Summary
Minimalist (ie not over-engineered) update support for DNS resources. Only check if the DNS deployment image is up-to-date. The update logic can be later modified to cover more type of updates.
Related issue(s)
Fixes https://github.com/kcp-dev/kcp/issues/2357

@davidfestal do you anticipate this to be reviewed and in a mergeable state this week? If not, could we please move it to v0.11?

I anticipate to have it reviewed and merged.

/test e2e-shared

/approve


Another KeyError when computing folding

Description
What steps will reproduce the problem?

import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
#pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 50)
import category_encoders as ce
#pd.set_option('display.width', 1000)
# Input data files are available in the "../input/" directory.
# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory

import os, sys, time
import json, random
from tqdm import tqdm
from datetime import datetime as dt

KAGGLE=True
file_dir='/Users/hidemiasakura/betworks/kaggle/data-science-bowl-2019/'
if KAGGLE:
    file_dir='/kaggle/input/'

#start copy
# Any results you write to the current directory are saved as output.
class Dataset:
    totalObjects=0
    def __init__(self):
        Dataset.totalObjects=Dataset.totalObjects+1

    def elapsed_time(func):
        def wrapper(*args, **kw):
            start_time=time.time()
            result = func(*args, **kw)
            message=f'{func.__name__}: Elapsed time: {round(((time.time() - start_time) / 60), 2)} minutes. {dt.now()}'
            print(message)
            return result
        return wrapper

    @classmethod
    def showcount(cls):
        print("Total objects: ",cls.totalObjects)

    @elapsed_time
    def load(self):
        files=[]
        for dirname, _, filenames in os.walk(file_dir):
            for filename in filenames:
                file=os.path.join(dirname, filename)
                if '.csv' in file:
                    print(file)
                    files.append(file)

        self.files=files
        for f in files:
            fn=f.split('/')[-1].replace('.csv','')
            setattr(self, fn+'_df', pd.read_csv(f))
            print('Loaded', fn)
            #break

    @elapsed_time
    def preprocess(self):
        self.process_dataset()
        self.new_labels=self.get_labels(self.train_test_df)

    @elapsed_time
    def process_dataset(self):
        self.train_df['test_data']=False
        self.test_df['test_data']=True
        self.train_test_df=self.train_df.append(self.test_df)
        del self.train_df

        #timeseries start assessment - all assessment + 2000
        self.predict_test_df=self.test_df.groupby('installation_id').last()
        del self.test_df

        self.train_test_df.index=range(self.train_test_df.shape[0])
        self.train_test_df['timestamp'] = pd.to_datetime(self.train_test_df['timestamp'])
        self.specs=self.specs_df.set_index('event_id')

        train_test=self.train_test_df
        specs=self.specs_df
        train_labels=self.train_labels_df
        sample_submission=self.sample_submission_df
        predict_test=self.predict_test_df

        self.list_of_user_activities = list_of_user_activities= list(set(train_test['title'].unique()))
        self.list_of_event_codes = sorted(list(set(train_test['event_code'].unique())))
        self.list_of_event_ids = list(set(train_test['event_id'].unique()))
        self.list_of_worlds = list(set(train_test['world'].unique()))
        self.list_of_assessments = list(set(train_test[train_test['type'] == 'Assessment']['title'].unique()))
        self.activities_map = activities_map = dict(zip(list_of_user_activities, np.arange(len(list_of_user_activities))))

        #map activities
        self.train_test_df['map_title'] = train_test['title'].map(activities_map)

    @elapsed_time
    def get_labels(self, df):

        '''
        Assessment attempts are captured in event_code 4100 for all assessments except for Bird Measurer, which uses event_code 4110. If the attempt was correct, it contains "correct":true.
        '''
        assessments=df[((df.event_code==4100) & (df.type=='Assessment')) | ((df.event_code==4110) & (df.title=='Bird Measurer (Assessment)'))].copy()
        #test_all_ass=test[(test.event_code==4100) | ((test.event_code==4110) & (test.title=='Bird Measurer (Assessment)'))].copy()
        '''
        test_install_ids=test_all_ass.installation_id.unique()
        train_install_ids=sorted(train_all_ass.installation_id.unique())
        print(f'train_install_ids {len(train_install_ids)}')
        label_install_ids=sorted(train_labels.installation_id.unique())
        print(f'train_label_install_ids {len(label_install_ids)} variance {len(train_install_ids)-len(label_install_ids)}')
        print(f'test_install_ids {len(test_install_ids)} rows {test_all_ass.shape[0]}')
        print(f'sample_submission install ids {len(sample_submission.installation_id.unique())}')
        '''
        def get_scores(df):
            for i,idx in enumerate(df.index):
                row=df.loc[idx]
                #print(i, json.loads(row.event_data)['correct'])
                correct=0
                if json.loads(row.event_data)['correct']:
                    correct=1
                df.at[idx, 'correct']=correct
            return df

        assessments=get_scores(assessments)
        #test_all_ass=get_scores(test_all_ass)

        def get_new_labels(df):
            '''
            labels
            ['game_session', 'installation_id', 'title', 'num_correct',
                   'num_incorrect', 'accuracy', 'accuracy_group']
            '''

            new_train_labels=pd.DataFrame(df.groupby(['installation_id', 'game_session','title']).correct.count())
            new_train_labels.columns=['num_tries']
            new_train_labels['num_correct']=df.groupby(['installation_id', 'game_session','title']).correct.sum()
            new_train_labels['num_incorrect']=new_train_labels.num_tries-new_train_labels.num_correct
            new_train_labels['accuracy']=new_train_labels.num_correct/new_train_labels['num_tries']

            accuracy_dict={
                1:3,
                0.5:2,
                0:0,
                }

            for idx in new_train_labels.index:
                installation_id, game_session, title=idx
                #print(installation_id, game_session, title)
                if new_train_labels.loc[idx].accuracy in accuracy_dict:
                    new_train_labels.at[idx, 'accuracy_group']=accuracy_dict[new_train_labels.loc[idx].accuracy]
                else:
                    new_train_labels.at[idx, 'accuracy_group']=1
                #print(new_train_labels.loc[idx])
                #break
            return new_train_labels

        new_labels=get_new_labels(assessments)
        #train_labels=get_new_labels(train_all_ass)
        #assert len(new_train_labels.reset_index().installation_id.unique())==len(train_install_ids), 'installation_ids missing'
        #new_train_labels.to_csv('new_train_labels.csv')
        return new_labels

ds=Dataset()
ds.load()
ds.preprocess()

self=ds
train_test=self.train_test_df
specs=self.specs_df
train_labels=self.train_labels_df
sample_submission=self.sample_submission_df
predict_test=self.predict_test_df
new_labels=self.new_labels
list_of_assessments = self.list_of_assessments

#baserates
summary=new_labels.groupby('title', level=2).sum()
summary.accuracy=summary.num_correct/summary.num_tries
#hard-coded
summary.accuracy_group=summary.accuracy.rank()-1
summary.at['Cart Balancer (Assessment)', 'accuracy_group']=3
print(summary)
predict_test['accuracy_group']=predict_test.title.map(summary.accuracy_group.to_dict())
base_submission=predict_test[['accuracy_group']].astype(int)
base_submission.to_csv('submission.csv')

pasted above code into open script.
console showing following
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter on backingstore paint device
QBackingStore::endPaint() called with active painter on backingstore paint device
Traceback
  File "/Users/hidemiasakura/anaconda/envs/py37/lib/python3.7/site-packages/spyder/plugins/editor/panels/codefolding.py", line 256, in paintEvent

QPainter::setCompositionMode: Painter not active
Traceback (most recent call last):
  File "/Users/hidemiasakura/anaconda/envs/py37/lib/python3.7/site-packages/spyder/plugins/editor/panels/codefolding.py", line 256, in paintEvent
    self._draw_fold_region_background(block, painter)
  File "/Users/hidemiasakura/anaconda/envs/py37/lib/python3.7/site-packages/spyder/plugins/editor/panels/codefolding.py", line 300, in _draw_fold_region_background
    end = self.folding_regions[start]
KeyError: 166

QPainter::setCompositionMode: Painter not active
Traceback (most recent call last):
  File "/Users/hidemiasakura/anaconda/envs/py37/lib/python3.7/site-packages/spyder/plugins/editor/panels/codefolding.py", line 256, in paintEvent
    self._draw_fold_region_background(block, painter)
  File "/Users/hidemiasakura/anaconda/envs/py37/lib/python3.7/site-packages/spyder/plugins/editor/panels/codefolding.py", line 300, in _draw_fold_region_background

QPainter::setCompositionMode: Painter not active
QWidget::repaint: Recursive repaint detected

Traceback (most recent call last):

Versions

Spyder version: 4.0.0rc3
Python version: 3.7.0
Qt version: 5.9.6
PyQt5 version: 5.9.2
Operating System: Darwin 17.7.0

Dependencies
cloudpickle >=0.5.0          :  1.2.2 (OK)
pygments >=2.0               :  2.4.2 (OK)
qtconsole >=4.6.0            :  4.6.0 (OK)
nbconvert >=4.0              :  5.6.0 (OK)
sphinx >=0.6.6               :  2.2.0 (OK)
pylint >=0.25                :  2.4.2 (OK)
psutil >=0.3                 :  5.6.3 (OK)
qtawesome >=0.5.7            :  0.6.0 (OK)
qtpy >=1.5.0                 :  1.9.0 (OK)
pickleshare >=0.4            :  0.7.5 (OK)
zmq >=17                     :  18.1.0 (OK)
chardet >=2.0.0              :  3.0.4 (OK)
numpydoc >=0.6.0             :  0.9.1 (OK)
spyder_kernels >=1.8.0;<2.0.0:  1.8.0 (OK)
qdarkstyle >=2.7             :  2.7 (OK)
atomicwrites >=1.2.0         :  1.3.0 (OK)
diff_match_patch >=20181111  :  20181111 (OK)
intervaltree                 :  None (OK)
watchdog                     :  None (OK)
keyring                      :  None (OK)
pexpect >=4.4.0              :  4.7.0 (OK)
pympler                      :  None (OK)
sympy >=0.7.3                :  None (NOK)
cython >=0.21                :  0.29.13 (OK)
IPython >=4.0                :  7.8.0 (OK)
matplotlib >=2.0.0           :  3.1.1 (OK)
pandas >=0.13.1              :  0.25.2 (OK)
numpy >=1.7                  :  1.17.2 (OK)
scipy >=0.17.0               :  1.3.1 (OK)
pyls >=0.31.1;<0.32.0        :  0.31.1 (OK)
applaunchservices >=0.1.7    :  0.2.1 (OK)
rtree >=0.8.3                :  0.8.3 (OK)

@jnsebgosselin could this be related to the problem you were experiencing?

Maybe, it is hard to tell. I cannot reproduce the error on latest master.

I can't reproduce this one either.
@hasakura511, please post a small video (an animated gif with a program called Licecap) to see how you're getting this error.

will do.
some more information:

this time the dialog box closed, so i was able to continue w/o closing
spyder.
When the error occurs, the window panes black out and when i hover my
mouse over them it starts flickering, but it eventually becomes
viewable again.
it prints the following in the terminal sometimes when i move the mouse
from the editor window to the ipython console, or scrolling up/down
QPainter::begin: A paint device can only be painted by one painter at a
time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter on backingstore paint
device
Both times when this error occurred I pasted large code block
(with undefined variables) into existing script that had bunch of undefined
variables.  But it dosen't seem to happen every time, so not sure what is
triggering it.

hope this helps.
Thanks.
On Thu, Dec 5, 2019 at 7:48 AM Carlos Cordoba<EMAIL_ADDRESS>wrote:

I can't reproduce this one either.
@hasakura511 https://github.com/hasakura511, please post a small video
(an animated gif with a program called Licecap) to see how you're getting
this error.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/10918?email_source=notifications&email_token=ACM6IWOXFGD3FO4FCPX5VTDQXA6UJA5CNFSM4JUUVLX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF65Z2I#issuecomment-561896681,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACM6IWMLWJAVWPUA4VHRMVLQXA6UJANCNFSM4JUUVLXQ
.


Install serverpod for pixorama demo

Added instructions in README.md on how to install the serverpod server for local instance of pixorama that uses docker container backends for postgres and redis.

Modified README.md to reflect my experience in building and running the pixorama demo on my local machine.


Change signing function to deal with last 32 bytes, strip multihash prefix? Implement short_id

Unclear if the first few bytes of the hex string are due to the multihash headers or what? Need to investigate
The short_id form of the hash should be done for a small ~8 character (or whatever git equivalent is) short id for visual recognition.
Either way, signing truncation should happen at the end of the hash.
Mnemonic fingerprint also should be trailing bytes.

Outdated, end result switch to sha3_256


asgiref not installed with fastapi latest version?

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
#main.py
from fastapi import FastAPI
app = FastAPI()

@app.get("/")
async def index():
    return {"message": "Hello World"}

Description
A few months ago, I had installed version 0.68 of FastAPI. After installation I had checked the list of packages by running pip freeze where it showed asgiref 3.4.1 version as installed. Now when I install the latest version 0.79, I don't find it in the list. I wonder if it is no more required. (The hello world app runs fine though)
Operating System
Windows
Operating System Details
No response
FastAPI Version
3.10 '0.79.0'
Python Version
3.10.1
Additional Context
No response

It is no longer required.

Thanks for your reply


Implement Add for Work

This PR is based on #838, the first new commit is 0fe92bf.
TODO:

[ ] get #838 merged
[ ] rebase on main

@dconnolly is your approval for the entire PR, or just for commit 0fe92bfb8689e75d0f620c2ce9918a1d3ecd9b09 and the minor fixes after it?

@dconnolly is your approval for the entire PR, or just for commit 0fe92bf and the minor fixes after it?

Whole PR 👍

We should just be able to squash this PR.
(No need to manually rebase.)


Fix RemoteProtocolError: Server disconnected without sending a response.

This seems to be a regression introduced by #750. I can reproduce it by raising an exception in exactly the right place in the middleware:
diff --git a/tiled/server/app.py b/tiled/server/app.py
index 1ba9dfcd..21e48e72 100644
--- a/tiled/server/app.py
+++ b/tiled/server/app.py
@@ -875,6 +875,9 @@ Back up the database, and then run:
         request.state.principal = SpecialUsers.public
         response = await call_next(request)
         response.__class__ = PatchedStreamingResponse  # tolerate memoryview
+        import random
+        if random.random() > 0.5:
+            raise Exception
         current_principal.set(request.state.principal)
         return response

The change above results in a failure during logging that causes the server not to send a response. The key section is:
  File "/home/dallan/Repos/bnl/tiled/tiled/server/principal_log_filter.py", line 11, in filter
    principal = current_principal.get()
                ^^^^^^^^^^^^^^^^^^^^^^^
LookupError: <ContextVar name='current_principal' at 0x76ebe9fb89f0>

Full output expandable here:

[d767dc437ae91daa] ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/site-packages/asgi_correlation_id/middleware.py", line 90, in __call__
    await self.app(scope, receive, handle_outgoing_request)
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
    response = await self.dispatch_func(request, call_next)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dallan/Repos/bnl/tiled/tiled/server/app.py", line 878, in current_principal_logging_filter
    raise Exception("test")
Exception: test

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 411, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 69, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/site-packages/starlette/middleware/errors.py", line 181, in __call__
    await response(scope, receive, send)
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/site-packages/starlette/responses.py", line 152, in __call__
    await send(
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 481, in send
    self.access_logger.info(
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/logging/__init__.py", line 1489, in info
    self._log(INFO, msg, args, **kwargs)
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/logging/__init__.py", line 1634, in _log
    self.handle(record)
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/logging/__init__.py", line 1644, in handle
    self.callHandlers(record)
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/logging/__init__.py", line 1706, in callHandlers
    hdlr.handle(record)
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/logging/__init__.py", line 974, in handle
    rv = self.filter(record)
         ^^^^^^^^^^^^^^^^^^^
  File "/home/dallan/micromamba/envs/py311/lib/python3.11/logging/__init__.py", line 830, in filter
    result = f.filter(record)
             ^^^^^^^^^^^^^^^^
  File "/home/dallan/Repos/bnl/tiled/tiled/server/principal_log_filter.py", line 11, in filter
    principal = current_principal.get()
                ^^^^^^^^^^^^^^^^^^^^^^^
LookupError: <ContextVar name='current_principal' at 0x76ebe9fb89f0>

This fix ensures that a (500) response is sent. It's probably worth having this in place as a fail-safe, but I think we should also try to set the principal even for 500 responses if possible.
diff --git a/tiled/server/principal_log_filter.py b/tiled/server/principal_log_filter.py
index faf4f0fd..2580ea3f 100644
--- a/tiled/server/principal_log_filter.py
+++ b/tiled/server/principal_log_filter.py
@@ -8,8 +8,10 @@ class PrincipalFilter(Filter):
     """Logging filter to attach username or Service Principal UUID to LogRecord"""

     def filter(self, record: LogRecord) -> bool:
-        principal = current_principal.get()
-        if isinstance(principal, SpecialUsers):
+        principal = current_principal.get(None)
+        if principal is None:
+            short_name = "unset"
+        elif isinstance(principal, SpecialUsers):
             short_name = f"{principal.value}"
         elif principal.type == "service":
             short_name = f"service:{principal.uuid}"

Closed by #754


Parenthesis around authorLabel

Fixes MA-2213
Screen looks like this now:

@1zaman @BenjiLee plz review

:+1:

:+1:


Capture literals are not index

and should point to https://docs.perl6.org/type/Capture

"are not index"? Are not not in the search index?

@coke I think the idea here is that \() should point to https://docs.perl6.org/type/Capture
But I may be wrong.

@AlexDaniel you are correct


Class/Record requires some primitive field to be sortable

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
It seems that if there is a record/class in the type hierarchy, that only contains non-primitive properties like again records or classes,  schema creation fails with the following error:
HotChocolate.SchemaException: For more details look at the Errors` property.

InputObject ContractSelectionSortInput has no fields declared. (HotChocolate.Data.Sorting.SortInputType<Likron.NavigatorBFF.Models.Contracts.ContractSelection>)
at HotChocolate.Configuration.TypeInitializer.EnsureNoErrors()
at HotChocolate.Configuration.TypeInitializer.CompleteTypes()
at HotChocolate.Configuration.TypeInitializer.Initialize()
at HotChocolate.SchemaBuilder.Setup.InitializeTypes(SchemaBuilder builder, IDescriptorContext context, IReadOnlyList1 types, LazySchema lazySchema) at HotChocolate.SchemaBuilder.Setup.Create(SchemaBuilder builder, LazySchema lazySchema, IDescriptorContext context) at HotChocolate.SchemaBuilder.Create(IDescriptorContext context) at HotChocolate.SchemaBuilder.HotChocolate.ISchemaBuilder.Create(IDescriptorContext context) at HotChocolate.Execution.RequestExecutorResolver.CreateSchemaAsync(NameString schemaName, RequestExecutorSetup options, RequestExecutorOptions executorOptions, IServiceProvider serviceProvider, TypeModuleChangeMonitor typeModuleChangeMonitor, CancellationToken cancellationToken) at HotChocolate.Execution.RequestExecutorResolver.CreateSchemaServicesAsync(NameString schemaName, RequestExecutorSetup options, CancellationToken cancellationToken)     at HotChocolate.Execution.RequestExecutorResolver.GetRequestExecutorNoLockAsync(NameString schemaName, CancellationToken cancellationToken) at HotChocolate.Execution.RequestExecutorResolver.GetRequestExecutorAsync(NameString schemaName, CancellationToken cancellationToken) at HotChocolate.Execution.RequestExecutorProxy.GetRequestExecutorAsync(CancellationToken cancellationToken) at HotChocolate.AspNetCore.HttpPostMiddlewareBase.HandleRequestAsync(HttpContext context, AllowedContentType contentType) at HotChocolate.AspNetCore.HttpPostMiddlewareBase.InvokeAsync(HttpContext context) at Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.<>c__DisplayClass13_0.<<UseCancellation>b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication1 application)`

I will try to investigate this and create an example or unit test that narrows this down.
Steps to reproduce

record A(B b, C, c);
record B()
record C()

Relevant log output
No response
Additional Context?
No response
Product
Hot Chocolate
Version
12.0.7

Here is a demo project to reproduce the issue:
https://github.com/ChilliCream/hotchocolate/tree/tsi/empty-record-as-input
At src/Demo

@tsinghammer  the problem with this demo is the mutation type. It builds without issue.
I think the sorting issue you describe happens when you do this
public record Foo(Bar bar, String SomeOtherField);
public record Bar(IEnumerable<Baz> baz)
public record Baz(string Qux)

sorting discovers the Foo type and then the Bar type. But it cannot find any fields on the Bar type that are sortable, as you cannot sort on lists. Then it explodes.
You can work around this issue by defining a custom SortInputType and ingore the field Bar


[SPIKE] - Frontend development guidelines

Priority
None
Description
We want to provide guidelines for consistent development of all frontend code: micro frontends, helpers, utilities, etc.
The following aspects (not exclusive!) should be discussed and put into a written guideline

Typescript usage
folder structure
UI best practices
plugin version pinning (plugin within plugin)
shared resources ?
shared state ?
testing

Reference Issues
No response

Typescript first ToDos:

How to publish types for existing libs (e.g. messages-provider)
Rewrite k8s-client with Typescript
Some kind of document

Replaced by https://github.com/cloudoperators/juno/issues/80


Make DatePicker localizable

This function solves the problem (这个功能解决的问题)
The Date Picker component is great and offers a lot of customization. However, I currently see no possibility to localize the labels for months, days and the action buttons. As we use Naive UI in German and even multi-language projects, we need an option to localize all the available texts of the component.
Expected API (期望的 API)
I'm really not sure what the best way would be to go about this. Maybe just props where you can pass arrays of string for the texts?
const monthLabels = ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sept", "Okt", "Nov", "Dez" ]

const dayLabels = ["Mo", "Di", "Mi", "Do", "Fr", "Sa", "So" ]
const actionLabels = ["Löschen", "Heute", "Bestätigen" ]

<NDatePicker :month-labels="monthLabels" :day-labels="dayLabels" :action-labels="actionLabels" />

Never mind, somehow I overlooked the internationalization part in the dos. My bad, sorry about that!

With the dutch locale nlNL and date-local dateNlNL I see some buttons are in dutch but the days and months remain in english is there a way to override the day/month labels or a way to correct it somehow?

@w-A-L-L-e Everything looks fine in my case (with naiveui 2.33.5):

  <NConfigProvider :locale="deDE" :date-locale="dateDeDE">

<NDatePicker
    :value="formData.dateUtc ? moment.utc(formData.dateUtc).valueOf() : undefined"
    format="dd.MM.yyyy"
    clearable
    @update:value="(value) => updateDate('dateUtc', value)"
/>

@w-A-L-L-e Looking at your code again, it seems like you have a typo in your provider code?
:date-local="dateNlNL" should be :date-locale="dateNlNL". You're missing an "e" there :)

Thanks! Completely missed that typo ;)
It really works now.


New package: secp256k1 v0.1.0

Registering package: secp256k1
Repository: https://github.com/roshii/secp256k1.jl
Created by: @roshii
Version: v0.1.0
Commit: ba5c09055f92e4bc2fa033ff6bd1ffb4844b16b4
Reviewed by: @roshii
Reference: https://github.com/roshii/secp256k1.jl/commit/ba5c09055f92e4bc2fa033ff6bd1ffb4844b16b4#commitcomment-34155772

Using CamelCase for package names is idiomatic. Perhaps Secp256k1?

Also, you can register a package directly from GitLab—no need to clone it to GitHub: https://pkg.julialang.org/registrator/ is a Web UI that allows registering arbitrary git repos.

Package is renamed, see new pull request
This one can be closed.


Add a doc page on how to create on observable from scalajs DOM events #3

Imported from monifu/monifu.js#3.

Adding this as a subtask of #27 and closing this issue to keep the backlog clean.


Feature: Allow to set default layout for folders in Settings

Hi
The fact that Layout>Column for example has to be re-selected everytime a new window is opened is quite tedious for people that prefer to solely use that Layout. Suggestion would be to add the option to select a specific Layout as default under Preferences > Files and Folders.
Thanks in advance!

this is fixed in the preview version. https://files.community/download/preview


Memory allocation exception in external SMT parser

Describe the bug
There are (nondeterministically) memory allocation exception when parsing STM formulas.
To Reproduce
Steps to reproduce the behavior:

Build with default configuration and Release build type
Run unit test TestVlgVerifInvSyn.LoadInvFromBeginning
(May need to repeat several times to trigger the issue)

Environment (please complete the following information):

OS: OSX 15 (Catalina)
Compiler: Xcode 11.4.1
Other dependencies: Release build

Additional context
First issued in #188. Multiple tests involving the smt-parser have the same issue, TestVlgVerifInvSyn.LoadInvFromBeginning is one of the set.
Error message:
unit_tests(59330,0x10937edc0) malloc: can't allocate region
:*** mach_vm_map(size=3758289336431292416, flags: 100) failed (error code=3)
unit_tests(59330,0x10937edc0) malloc: *** set a breakpoint in malloc_error_break to debug
unknown file: Failure
C++ exception with description "std::bad_alloc" thrown in the test body.

Tracing the root cause, the exception is thrown here:
https://github.com/Bo-Yuan-Huang/ILAng/blob/a58890818e2b8df5c0b9fc4cc48bd07501b33ccc/src/smt-inout/chc_inv_in.cc#L926

This issue is only observed in OSX with Release build. The ILANG_BUILD_INVSYN is temporarily set OFF in the corresponding CI. Remember to turn on once fixed.
https://github.com/Bo-Yuan-Huang/ILAng/blob/a58890818e2b8df5c0b9fc4cc48bd07501b33ccc/azure-pipelines.yml#L52

Thanks for letting me know! I think the root cause might be that I'm doing some hacky things around the pointers which assumes a fixed memory layout of the class members, however the optimization in release mode will not guarantee that. Will look into it. Thanks!


could we create a solarized V2 color schema with warmer or less blue light?

I have used the solarized color schema in my emacs for several years without any complaint, and I mostly use the dark mode. That being said, I feel the dark mode is a little bit blueish. while nowadays we know that blue light is not very good for eyes and sleep especially at night, and there are different ways to reduce blue light from monitor hardware to OS settings, but that will also change the overall solarized schema to a strange feeling.
I wonder if we could create a new version of solarized color schema with a warmer dark color, but still follow the same color contrast relationships and other attributes of original solarized schema? I know that may take lots of thoughts, test or calculation which I definitely can't do it, that's why I ask here. below is an example of warmer dark color:

Do you know that blue light and blue colors are two different things, right?

I don't know how you think that the intensity of a wavelength doesn't matter. If the screen is pitch black, your eyes will not be affected at all. Also, it isn't relevant if the light comes directly form a source (light) or is reflected (color) as in the end, only the wavelengths and intensities reaching the eye are relevant and not how they were produced.
@zhishi, if I read stuff like that, one could think every person walking around in daylight will never sleep again and be blind in a month. Please tell me how the less intense light of a screen can be a problem for our eyes but the more intense natural light is fine?
Sure, you could follow the same method and select for overall warmer colors:

I designed this colorscheme with both precise CIELAB lightness relationships and a refined set of hues based on fixed color wheel relationships. It has been tested extensively in real world use on color calibrated displays (as well as uncalibrated/intentionally miscalibrated displays) and in a variety of lighting conditions.

What? @slalomsk8er At times when i wasnt using any color correction software (reinstalling arch, doing stuff in tty or doing stuff in root account) u know what was happening?
How do you want to explain that?

if I read stuff like that, one could think every person walking around in daylight will never >sleep again and be blind in a month. Please tell me how the less intense light of a screen can >be a problem for our eyes but the more intense natural light is fine?

BECAUSE ITS NATURAL.
Warm light is more natural for our eyes, ergo, its less harmful, our eyes literally evolved with red light. Human eyes (or any eyes at all) werent really made to cope with blue light, thats why its more harmful.
Its literally several minutes of research with uncle google.

@holykremowka2137 and the sky is blue with 7 kcd/m2 compared to 80 cd/m2 | Monitor white in the sRGB reference viewing environment - I guess the natural blue daylight sky will just burn out your S cone cells.
Maybe it isn't the blue that causes you problems but the lack of red as the blue isn't gone and in the Redshift picture but reduces compared to the not schiftet version? Maybe, it's the pixels on/off ratio that changes if the mix of the sub pixel changes?
There can be a lot of reasons why that are only indirectly liked to the color itself but are caused by the display technology.
I guess in you're case of apparent sensitivity to blue, I would change the color balance directly in the monitor and don't just count on color themes and color correction software.


[HOLD for payment 2023-05-03] [$1000] The months are not dynamically updated to Spanish language when language preference is changed from the other device

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to android and login with User A (should have english language preference at first)
Go to Settings > Profile > Personal details. Click on the date of birth field.
See that the months are in English and do not leave this page (don't press back or save)
Now go to mweb chrome with the same User A and change the language to Spanish
Go back to android and notice that the header 'Date of birth' and the placeholder 'AAAA-MM-DD' has been dynamically updated , but the months are still shown in English. Thus, in the same page , few components (header/placeholder) gets updated dynamically whereas the other few components (months) are not updated.

Expected Result:
The months should also be updated dynamically when language has been changed from the other device in a similar way how the header and the placeholder gets updated
Actual Result:
Months doesn't update dynamically when the language is changed from the other device whereas, for the same page, header and placeholder gets updated properly
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.2.96-3
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/43996225/230492229-ae568303-f8c4-41bb-894c-04c240000715.mp4

Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1680768933826169
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~010b3f907903b77b6d
Upwork Job ID:<PHONE_NUMBER>408331264
Last Price Increase: 2023-04-17

Triggered auto assignment to @tjferriss (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

Bug0 Triage Checklist (Main S/O)

[ ] This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
[ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)

If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead

[ ] This bug is reproducible using the reproduction steps in the OP. S/O

If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
If the reproduction steps aren't clear and you determine the correct steps, please update the OP.

[ ] This issue is filled out as thoroughly and clearly as possible

Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.

[ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@tjferriss Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@tjferriss Whoops! This issue is 2 days overdue. Let's get this updated quick!

I'm unable to reproduce using these steps.

@tjferriss Can you try this with a real device. I tried it again and it's still reproducible.

@tjferriss Eep! 4 days overdue now. Issues have feelings too...

I am able to recreate this behavior.

Job added to Upwork: https://www.upwork.com/jobs/~010b3f907903b77b6d

Current assignee @strepanier03 is eligible for the External assigner, not assigning anyone new.

Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External)

Triggered auto assignment to @grgia (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@grgia - Little bump on the review for the proposal, here.

@strepanier03 @grgia @thesahindia this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

I am going to be OoO from April 26-May 3. I plan to leave this GH assigned to me during my out-of-office as it likely won't need my action before I return.
If something changes and action is needed from the BugZero team, please reach out in #expensify-open-source to request help from another team member.
Thanks, chat with you when I get back!

Reviewing label has been removed, please complete the "BugZero Checklist".

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.3.5-6 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

https://github.com/Expensify/App/pull/17780

If no regressions arise, payment will be issued on 2023-05-03. :confetti_ball:
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

[ ] External issue reporter
[ ] Contributor that fixed the issue
[ ] Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

Merged PR within 3 business days of assignment - 50% bonus
Merged PR more than 9 business days after assignment - 50% penalty

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

[ ] [@thesahindia] The PR that introduced the bug has been identified. Link to the PR:
[ ] [@thesahindia] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[ ] [@thesahindia] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[ ] [@thesahindia] Determine if we should create a regression test for this bug.
[ ] [@thesahindia] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[ ] [@strepanier03] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

Thanks. Accepted the offer.

@priya-zha and @allroundexperts  - I've paid you both via Upwork.
I'll check tomorrow for paying @thesahindia

Thank you @thesahindia, I'll take the rest from here and pay you in Upwork as well.

All set here. Checklist is done, reg test is ready, and everyone has been paid.

Thank you everyone for working on this and together with the team.


Improve feedback during the mining process

I was running Schaapi and for some reason there was no more output. I had no idea why it stopped, and the last logger message did not indicate that it had started doing something.
This PR changes a number of things during the mining process:

Parallelises the directory miner
Parallelises the version verifier
Shows feedback in stdout and the logs on when downloading and verification start and end
Fixes typos and inconsistencies in messages

Codecov Report

Merging #379 into master will decrease coverage by 0.55%.
The diff coverage is 29.16%.

@@             Coverage Diff              @@
##             master     #379      +/-   ##
============================================
- Coverage     71.88%   71.33%   -0.56%
+ Complexity      367      366       -1
============================================
  Files            63       63
  Lines          1476     1486      +10
  Branches        183      185       +2
============================================
- Hits           1061     1060       -1
- Misses          338      346       +8
- Partials         77       80       +3

Impacted Files
Coverage Δ
Complexity Δ

...haapi/miningpipeline/miner/github/SearchOptions.kt
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...gpipeline/miner/directory/DirectoryProjectMiner.kt
57.14% <0%> (-42.86%)
5 <0> (-1)

.../miningpipeline/miner/github/GitHubProjectMiner.kt
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

.../cafejojo/schaapi/miningpipeline/MiningPipeline.kt
86.44% <100%> (ø)
7 <0> (ø)
:arrow_down:

Continue to review full report at Codecov.

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

Codecov Report

Merging #379 into master will decrease coverage by 0.55%.
The diff coverage is 29.16%.

@@             Coverage Diff              @@
##             master     #379      +/-   ##
============================================
- Coverage     71.88%   71.33%   -0.56%
+ Complexity      367      366       -1
============================================
  Files            63       63
  Lines          1476     1486      +10
  Branches        183      185       +2
============================================
- Hits           1061     1060       -1
- Misses          338      346       +8
- Partials         77       80       +3

Impacted Files
Coverage Δ
Complexity Δ

...haapi/miningpipeline/miner/github/SearchOptions.kt
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...gpipeline/miner/directory/DirectoryProjectMiner.kt
57.14% <0%> (-42.86%)
5 <0> (-1)

.../miningpipeline/miner/github/GitHubProjectMiner.kt
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

.../cafejojo/schaapi/miningpipeline/MiningPipeline.kt
86.44% <100%> (ø)
7 <0> (ø)
:arrow_down:

Continue to review full report at Codecov.

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


fix: performance issue with o(n^2) complexity of directoryExists()

Related to https://github.com/vuejs/language-tools/discussions/2740
Profiling .vue file saves on a very big project:
Before (notice the 15s-long file save):

Profile:
CPU-20231004T112107.zip
After:

Profile:
CPU-20231004T115709.zip

With caching comes the obvious potential negative side effect of cache getting stale and resulting in incorrect behavior. Would that be a concern here? (I'm asking because I'm not that familiar with the code)


Question about the calculation on gram-n repetition

def cal_repetition(sentence, n):
    sentence = sentence.replace(".", "").replace(":", "").replace("\n", "").replace("?", "").replace(",", "")
    allgrams = ngrams(sentence.split(), n)
    allgrams_list = []
    for gram in allgrams:
        allgrams_list.append(gram)
    return len(list(set(allgrams_list)))/len(allgrams_list)

The current implementation of the cal_repetition function appears to calculate the diversity of n-grams in a sentence, rather than the repetition rate. Specifically, the function returns the ratio of unique n-grams to the total number of n-grams. However, this does not directly measure n-gram repetition, as higher values indicate higher diversity (and lower repetition), while lower values indicate lower diversity (and higher repetition).
If there are any misunderstandings or inaccuracies in my interpretation, I would glad to discuss with you.

Thank you for pointing out the issue here. There may indeed be some problems with the method of calculating repetition. Although it can indirectly reflect the phenomenon of repetition in the model, it is unable to accurately quantify the degree of repetition. Could you please advise where I might find a reliable and popular method or code reference for measuring repetition? We will make corrections based on this in our subsequent work. Thank you very much!

What I mean is that the calculation method for the repetition rate might be exactly the opposite, because here, by using set() for deduplication, it calculates the unique n-gram ratio. I think directly converting it to 1 - len(list(set(allgrams_list)))/len(allgrams_list) would reflect the repetition rate correctly.

Oh, I see what you mean. So the misunderstanding is caused by the name of this function, in this cal_repitition function, we use a lower returned value indicates a larger repetition, and less model fluency (as in paper sec3.3 and Figure4), which can be counterintuitive. You can certainly converting it to 1 - len(list(set(allgrams_list)))/len(allgrams_list), which can reflect the repetition rate more directly.


Exec tachikoma update<PHONE_NUMBER>3330

:hamster::hamster::hamster:   Strategy none
Powered by Interval Pull Request as a Service - Tachikoma.io Announcement: 2015-06-28 Updated permissions - Tachikoma.io

Coverage remained the same at 67.647% when pulling a47d5a93cdb8493765fb6bdb49821c93aeeb72e0 on pazjacket:tachikoma/update-20170625163330 into ec251e61adc687ae0589e5283f1773ece07521c0 on sanemat:master.

Coverage remained the same at 67.647% when pulling a47d5a93cdb8493765fb6bdb49821c93aeeb72e0 on pazjacket:tachikoma/update-20170625163330 into ec251e61adc687ae0589e5283f1773ece07521c0 on sanemat:master.

Coverage remained the same at 67.647% when pulling a47d5a93cdb8493765fb6bdb49821c93aeeb72e0 on pazjacket:tachikoma/update-20170625163330 into ec251e61adc687ae0589e5283f1773ece07521c0 on sanemat:master.


Fix ts any errors and unit tests

Changes made to code

Fix any ts type eslint for utils
Added types directory
Added unit tests to getShape, assureArray and getData
Minor improvements to getShape instigated with unit testing (empty arrays, performance)

Context and motivations

Adding unit tests to cover various situations with getShape including empty states
Fixed any ts type eslint types with conditional recursive types and some modifications to check against the data being an array or not.
Added types folder for future typescript additions.

Please review the unit tests and wording of the tests names as I may not have got these accurate.

Just a small note, when testing assureArray when data is null - got some typescript errors in tensor. Don't have time at the moment to investigate but just to note that, we may not have covered this case.

@medic-code  Cool, I'll take a look, good catch!
About the PR, thank you so much for the help! I'm just not sure whether it will merge with @pparke's PR, as they both alter the test files so could have some minor conflicts. If that happens, I'll let you know and then fix it quickly. Thanks again!

@medic-code the unit tests are looking really good! However, it's taking an average of 36 seconds in my computer. It was taking 10 before! Do you know why that is?

Yep so not sure why the test.ts is taking so long (it looks like the transformer is taking most time makes sense implementation wise), the utils unit tests are quick. I should say there shouldn't be any conflicts as it's a separate file, but check it.

Yes, it's taking long on the tests.ts. But its still longer than expected. Will look into it.

@medic-code Got it! It was the base-case on the getShape function. The way it was setup, it was looping for every element in the array. Now it seems to be solved, tests taking ~8s in total. Thanks for the additions!


Font Color listed in wrong group

Font color gets listed in its own group while belonging actually to all other Font Formatting in Filemenu and on the Button Bar

It would be good to move it up to the other Font Formatting items and gather it together with those on the Menu bar

Interesting find.
https://github.com/ether/ep_font_color/blob/main/templates/fileMenu.ejs#L1
Try drop the <hr> and if that works please send as PR.

Also "Font size" should be "Font Size" imho but whatever :P


enh: refactor discord bot

Summary by CodeRabbit
Release Notes

New Features

Introduced DiscordMessageCreator and DiscordMessageSender for improved event processing and message handling in Discord.
Added ToriiClientSubscriber for subscribing to events from the Torii client.
Enhanced Position struct with a new method for contract retrieval.

Improvements

Updated various event structs (BattleClaim, BattleJoin, BattleLeave, BattlePillage, BattleStart, SettleRealm) to support cloning and copying.
Refined event handling to be thread-safe with the inclusion of the Send marker trait in ToDiscordMessage.

Bug Fixes

Improved command execution syntax in resource minting script.

Refactor

Removed outdated ParsedEventProcessor and MessageDispatcher components, consolidating functionality into new structures.


Filter logic not working properly for helix

I'm trying to install helix from https://github.com/helix-editor/helix/releases but I get no proper matches, I think it could be due to being compressed in tar.xz
bin install github.com/helix-editor/helix

   • Getting latest release for helix-editor/helix

Multiple matches found, please select one:

 [1] helix-23.10-x86_64.AppImage
 [2] helix-23.10-x86_64.AppImage.zsync
 Select an option:

hey there! bin supports xz. Seems like what's happening here is that our filtering logic is not picking up the correct files for some reason. If you run bin install -a https://github.com/helix-editor/helix`, you should be able to manually pick the release.
Do you mind editing the title of the issue so we can work on a fix? :pray:

Done. How can I help? Can you reproduce the bug?

Output with debug enabled
   • debug logs enabled, version: 0.17.2
commit: f7265c40a7b245a698a7eee603234ece8e1c7c86
built at: 2023-10-03T08:53:00Z
built by: goreleaser

   • Config directory is: /home/susensio/.config/bin
   • Download path set to /home/susensio/.local/bin
   • Getting latest release for helix-editor/helix
   • Keeping helix-23.10-x86_64.AppImage.zsync (URL https://api.github.com/repos/helix-editor/helix/releases/assets/132321490) with highest score 26
   • Keeping helix-23.10-x86_64.AppImage (URL https://api.github.com/repos/helix-editor/helix/releases/assets/132321501) with highest score 26
   • Removing helix-23.10-x86_64-windows.zip (URL https://api.github.com/repos/helix-editor/helix/releases/assets/132321505) with score 11 lower than 26
   • Removing helix-23.10-x86_64-macos.tar.xz (URL https://api.github.com/repos/helix-editor/helix/releases/assets/132321509) with score 11 lower than 26
   • Removing helix-23.10-x86_64-linux.tar.xz (URL https://api.github.com/repos/helix-editor/helix/releases/assets/132321515) with score 21 lower than 26
   • Removing helix-23.10-source.tar.xz (URL https://api.github.com/repos/helix-editor/helix/releases/assets/132321525) with score 1 lower than 26
   • Removing helix-23.10-aarch64-macos.tar.xz (URL https://api.github.com/repos/helix-editor/helix/releases/assets/132321530) with score 6 lower than 26
   • Removing helix-23.10-aarch64-linux.tar.xz (URL https://api.github.com/repos/helix-editor/helix/releases/assets/132321531) with score 16 lower than 26

Multiple matches found, please select one:

 [1] helix-23.10-x86_64.AppImage
 [2] helix-23.10-x86_64.AppImage.zsync
 Select an option:

My machine specs:
OS: Debian GNU/Linux trixie/sid x86_64
Kernel: 6.5.0-4-amd64
Packages: 3347 (dpkg), 7 (flatpak), 1 (cargo), 5 (snap)
Shell: fish 3.6.1
DE: GNOME 44.5 (wayland)
WM: Mutter
WM Theme: Adwaita
Terminal: tmux

Done. How can I help? Can you reproduce the bug?

yes, I can reproduce the bug. As commented above, if you do bin install -a https://github.com/helix-editor/helix bin will allow you the select the corresponding xz file.

Done. How can I help? Can you reproduce the bug?

yes, I can reproduce the bug. As commented above, if you do bin install -a https://github.com/helix-editor/helix bin will allow you the select the corresponding xz file.

Yes I did it and it worked perfectly. Thank you.
I have a question about bin internals. Is this info about what resource is being selected stored somewhere? That is, in a future bin update, does it remember what selection I made and what binary to use?

I have a question about bin internals. Is this info about what resource is being selected stored somewhere? That is, in a future bin update, does it remember what selection I made and what binary to use?

yes, if you run bin --debug at the very top you'll see here the config directory is placed.

It's similar for fish-shell
$ bin --debug i github.com/fish-shell/fish-shell
   • debug logs enabled, version: 0.18.0
commit: 91ae3e63bc1e2a499a832ba5f4e44d3c071b1345
built at: 2024-07-15T03:21:39Z
built by: goreleaser

   • Config directory is: $HOME/.config/bin
   • Download path set to $HOME/.local/bin
   • Getting latest release for fish-shell/fish-shell
   ⨯ command failed            error=Could not find any compatible files

$ bin --debug i -a github.com/fish-shell/fish-shell
   • debug logs enabled, version: 0.18.0
commit: 91ae3e63bc1e2a499a832ba5f4e44d3c071b1345
built at: 2024-07-15T03:21:39Z
built by: goreleaser

   • Config directory is: $HOME/.config/bin
   • Download path set to $HOME/.local/bin
   • Getting latest release for fish-shell/fish-shell
   • --all flag was supplied, skipping scoring

Multiple matches found, please select one:

 [1] fish-3.7.1.app.zip
 [2] fish-3.7.1.pkg
 [3] fish-3.7.1.tar.xz
 [4] fish-3.7.1.tar.xz.asc

It's similar for fish-shell

In this case I think the "Could not find any compatible files" makes a bit more sense given that bin could not automatically select a given that the user could perfectly chose between the zip , pkg  org xz one.
Having said that, I think it would be reasonable to fallback to manual selection - same as supplying -a - if a match could not be found.
@yozachar WDYT?

Having said that, I think it would be reasonable to fallback to manual selection - same as supplying -a - if a match could not be found.
@yozachar WDYT?

Yes, that sounds right. The -a flag could be counted redundant, after it's function becomes the default fallback. But then that behavior must not hamper, debugging the scoring logic, if and when required.

As for github.com/fish-shell/fish-shell, a solution to https://github.com/marcosnils/bin/issues/109 is befitting.


⚠ Syncthing-KA-BI has degraded performance

In 95679ac, Syncthing-KA-BI ($URL_SYNCTHING_MERZ_NIMBUS_BI) experienced degraded performance:

HTTP code: 401
Response time: 7131 ms

Resolved: Syncthing-KA-BI performance has improved in bedac0e after 6 minutes.


Retrofit2 Adapter-rxjava2 and converters 2.7.2

retrofit2/adapter-rxjava2 2.7.2
retrofit2/converter-gson 2.7.2
retrofit2/converter-moshi 2.7.2

Hi,
I find that "retrofit2/converter-gson 2.7.2" is not yet listed in the nuget.org.
Are there any plans to list this version?
Best,


castget: init at 1_2_4

Motivation for this change
Things done

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

[X] NixOS
[ ] macOS
[ ] other Linux distributions

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

Bump.

This pull request has been mentioned on Nix community. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review-may-2019/3032/42

Good bot.

This pull request has been mentioned on Nix community. There might be relevant details there:
https://discourse.nixos.org/t/join-the-package-maintainer-team/3751/5

Thank you! As a general question, I was wondering, is it usually desired by maintainers that packages related PRs will consist of a single commit? @worldofpeace has asked me in the past to squash changes and since then I've always made changes with a git commit --amend --no-edit and pushed with --force.

It depends on context (but also a lot on the reviewer's preferences). My opinion is that every commit should do one thing, but there is no reason to maintain all histories within a PR. So in this case, the "one thing" is initializing a package. Nobody gains any information from the additional commits incorporating my nitpicks (and they don't have the appropriate naming scheme anyway), so I've used github's squash-and-merge feature.
But if, for example, this was the first package you maintain you should have one commit adding yourself to the maintainers list and then a separate commit init'ing the package (using the maintainers entry). Or if you're fixing a broken package and while you're at it also updating it to the latest version, you could have two commits: package: fix build and package: old_version -> new_version.
Basically two rules of thumb:

you shouldn't need to use the word "and" in the commit message
ask yourself if it could ever be useful to have these as separate commits (for example I might want to revert the init of a package, but that shouldn't revert the addition to the maintainers list as well)

And remember that these are rules of thumb and if its easier to just do everything in one commit, sometimes its just not worth to spend the time and dis-entangle everything ;)


10.0.22000.318 not listening and not supported

im using Windows 11 Home build 22000.348. RDP Wrapper listener status is showing "not listening" and "not supported" after upgrading to windows 11 from windows 10. i was using RDP Wrapper in windows 10 home and it was working perfectly. i tried editing ini file but no luck.

Agree, totally broken.
Wasted a ton of time on this many times over many months until just giving up and using Anydesk.
Considering upgrading older PC's to Win Pro just for this. Since RDP from Microsoft is just wastly superior.
Sucks that the maintainers for this that they have not updated this to deprecated

@ANJ-Projects yeah you are right. but, it is not supported by my TV and other devices

Solution: https://raw.githubusercontent.com/sebaxakerhtc/rdpwrap.ini/master/rdpwrap.ini
Please, rename your issue as 10.0.22000.318 not listening and not supported

https://github.com/sebaxakerhtc/rdpwrap.ini/commit/ab5abbce62326dde4f19044409e558f511d8d287#diff-9e5bbfbeae79b59b305dda13323ba2b041f30f4887a84120392c479e1f7bba33

@sashaqwert  thankyou so much for your help. its working now. one again thanks 😊😊😊😃

hi im on windows 11, i jus installed RDP Wrap and my program shows this:

At first it was not supported but i fiddled around and got that to work however im unsure on how to change the not listening part. Any help would be appreciated


WebRTC for agave-renderer

Not sure WebRTC connection is kicking in yet...

@oeway is this all we should need for WebRTC joy? :-D

Is there a way to debug the WebRTC functionality? If it is working, should we see something in Chrome DevTools Networking, etc.?

Would this help? https://github.com/imjoy-team/imjoy-rpc/blob/master/imjoy-rpc-v2.md#peer-to-peer-connection-via-webrtc
We use it for control microscopes.

Is there a way to debug the WebRTC functionality? If it is working, should we see something in Chrome DevTools Networking, etc.?

In Chrome, you can visit: chrome://webrtc-internals/ leave it open and if the webrtc is working you should see some event stream in that page.
BTW, I would like to try the agave renderer, how can I try it? Any docs for this?

No docs or all the code needed to spin up agave-renderer yet.


Disabled field does not submit value

Laravel Version: 6.2.0
PHP Version: 7.3.1
Laravel-admin: 1.7

Description:
I want to submit the userID of the one who submitted the form... Thus I can't let them update the UserID field, but I can't seem to submit the value with it if its disabled / displayed
Steps To Reproduce:
at form()
tried
$form->text('bf_user_id', __('Bf User'))->value($userID)->disable();
$form->display('bf_user_id', __('Bf User'))->value($userID);

$form->display() only show the result , not request when you submitted

Only display the fields and without any action:
https://laravel-admin.org/docs/#/en/model-form-fields?id=display-field

disable is the same if I ain't wrong ✌

yeah i end up using hidden inputs.. should be fine now


question:how to use lets-plot in compose for desktop?

hello, how to use lets-plot in compose for desktop?

As compose for desktop supports embedding of Swing components , you can try to use a plot Swing component available in lets-plot.
For example - DefaultPlotPanelBatik which extends JPanel.
Here is an example of using the DefaultPlotPanelBatik in a regular Java Swing application:
https://github.com/alshan/lets-plot-mini-apps/blob/15fe3e02bb8d646d78704e986238a6735634b415/jvm-swing-batik-app/src/main/kotlin/Main.kt#L145

Thanks，this helped me


python is not installed

Applies To

[X] Notebooks (.ipynb files)
[ ] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?
before the jupyter notebook was working fine and the python interpreter are listed in the interpreters but now i can't find them and each time i run a jupyter notebook an error window shows up which contains Python is not installed i install it again but still not working the only kernel on notebook is python 3 and it does not work at all
can you please help
VS Code Version
the last version downloaded and updated
Jupyter Extension Version
last version for extension from vs code
Jupyter logs
No response
Coding Language and Runtime Version
python
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
No response

Thanks.
Those output logs should tell us why. From your screen shot I suspect the python extension is failing to find python too.

am also need help sir

so how can i fix it ?

I had the same issue with the extension versions from 2022. And I simply fell back to the 2021.12 version of this extension and it seems to work just fine.

Hi all, could you please try installing https://github.com/microsoft/vscode-python/suites/5947251954/artifacts/203903588 and see if it helps? You can use Extension: Install from VSIX command to install it.

Hi all, could you please try installing https://github.com/microsoft/vscode-python/suites/5947251954/artifacts/203903588 and see if it helps? You can use Extension: Install from VSIX command to install it.

Unfortunately, this new version doesn't seem to work for me.
I think it's caused by the special characters in the project path. To be specific, we all seem to have ++ in the project path which is probably the cause of this issue.
Here is my log:

Hi all, could you please try installing https://github.com/microsoft/vscode-python/suites/5947251954/artifacts/203903588 and see if it helps? You can use Extension: Install from VSIX command to install it.

Unfortunately, this new version doesn't seem to work for me.
I think it's caused by the special characters in the project path. To be specific, we all seem to have ++ in the project path which is probably the cause of this issue.
Here is my log:

I managed to fix this issue for my settings. Please check #18878 for my patch.