Merging agrifood RP latest swagger for public preview readiness.

This is to merge the already approved PR: https://github.com/Azure/azure-rest-api-specs-pr/pull/6079
Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[ ] new service onboarding
[ ] new API version
[x] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month. - October for public preview
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month. By August month end
If updating an existing version, please select the specific language SDKs and CLIs that must be refreshed after the swagger is published.

[ ] SDK of .NET (need service team to ensure code readiness)
[x] SDK of Python
[x] SDK of Java
[x] SDK of Js
[x] SDK of Go
[ ] PowerShell
[ ] CLI
[ ] Terraform
[ ] No refresh required for updates in this PR

Contribution checklist:

[x] I commit to follow the Breaking Change Policy of "no breaking changes"
[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[ ] Check this box if any of the following appy to the PR so that the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review.  Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you are using OpenAPIHub to initialize the PR for adding a new version. More details, refer to the wiki.

[x] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in a stable version
[ ] Removing properties in a stable version
[ ] Removing API version(s) in a stable version
[ ] Updating API in a stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

Latest approved PR in private repo: https://github.com/Azure/azure-rest-api-specs-pr/pull/6079

Rest all other errors are intentional changes for which we even got approval. I remeber getting breakingchange approval for few things here: Review request for Microsoft.AgFoodPlatform to update sensor related parameters in version preview/2021-09-01-preview by priyankajayaswal1 · Pull Request #5517 · Azure/azure-rest-api-specs-pr (github.com)

Rest all other errors are intentional changes for which we even got approval. I remember getting breakingchange approval for few things here: Review request for Microsoft.AgFoodPlatform to update sensor related parameters in version preview/2021-09-01-preview by priyankajayaswal1 · Pull Request #5517 · Azure/azure-rest-api-specs-pr (github.com)
Let me know how I may navigate further.
I have requested python SDK owner<EMAIL_ADDRESS>& go SDK owner<EMAIL_ADDRESS>for approving Breaking Change in the respective languages.

Hi @priyankajayaswal1 , there are still failures against ARM rules: https://github.com/Azure/azure-rest-api-specs/pull/20243/checks?check_run_id=7853677189 . I'm not sure whether ARM catch them in your latest PR in Feb since the tooling didn't report these failures that time.
Would you please choose below option in top comment to involve ARM review for this PR if they do be current service logic:

approve for python breaking change

An update, I got all required labels for merging it for the PR version of this PR here: https://github.com/Azure/azure-rest-api-specs-pr/pull/6079#issuecomment-1219216020

An update, I got all required labels for merging it for the PR version of this PR here: Azure/azure-rest-api-specs-pr#6079 (comment)

Hi @jianyexi , would you help take a look at the LintDiff failure here: https://github.com/Azure/azure-rest-api-specs/pull/20243/checks?check_run_id=7870731280
I guess they are new rules added recently, so they are not reported at Feb. in the private PR.
Do they block this PR? Or do we need ARM review again in this case?

Could you fix the first error in the [Staging] Swagger Lint Diff , others doesn't need to fix

Regarding below:

DETAILS

Rule
Message

❌ RUNTIME_ERROR
"errorCode: AssertionError,errorMessage: ResourceType 'farmBeats' should be deployed in 'West Central US' on apiVersion '2021-09-01'.: expected [ Array(3) ] to satisfy [Function]"

❌ RUNTIME_ERROR
"errorCode: AssertionError,errorMessage: ResourceType 'farmBeats' should be deployed in 'West Central US' on apiVersion '2021-09-01'.: expected [ Array(3) ] to satisfy [Function]"

We have deployed our RP in west central us already. Link to arm manifest file for prod for reference:  link

Regarding below:
DETAILS
Rule	Message
❌ RUNTIME_ERROR	"errorCode: AssertionError,errorMessage: ResourceType 'farmBeats' should be deployed in 'West Central US' on apiVersion '2021-09-01'.: expected [ Array(3) ] to satisfy [Function]"
❌ RUNTIME_ERROR	"errorCode: AssertionError,errorMessage: ResourceType 'farmBeats' should be deployed in 'West Central US' on apiVersion '2021-09-01'.: expected [ Array(3) ] to satisfy [Function]"
We have deployed our RP in west central us already. Link to arm manifest file for prod for reference: link

Hi @ruowan , would you help take a look whether the "Service API Readiness Test" failure block this PR? the author mentioned service is deployed.


I need to delete an organisation immediately, not after 28 days

[Enter feedback here]
As the title says, I need to delete a newly created orgnisation straight away. There is no data in the account or activity, so there's nothing to lose. The problem really started with the linking of the AZP account with github account. I created a new MS account and wanted to use this new account instead of the previous one that I used.
Really the best way to fix this issue is to delete the entire AZP account and all associations with my github account and the organisation (immedately). This will enable me to use my new MS account as the primary email in github so I can link it to a new AZP acoount set everything up again. I also need to delete the organisation I setup previously immediately, so I can use that same name in my new AZP account. How do I do this? My github account is lnked to a bad AZP account now so I need to break this link.
If its not possible to delete the organisation until 28-dys, then so be it. However, I stilll need to delete that AZP account, because its in an unknown state and linked to my github account.

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

ID: ab1d1c9d-6fe1-e95a-fe78-8f194022d9a3
Version Independent ID: a1c9d23e-0058-cb9d-e275-65c53b8dfe27
Content: Restore organization after it's removed, deleted - Azure DevOps Services
Content Source: docs/organizations/accounts/recover-your-organization.md
Product: devops
Technology: devops-accounts
GitHub Login: @chcomley
Microsoft Alias: chcomley

@plastikfan  Thank you for the feedback.
Deleting organizations is described in Delete your organization, is this information not included there?
If not, please let us know and we can assign an author for further review.

Well the information is included, but I need to delete an organisation immediately not after 28 days (so that I can re add it to my new AZP account). The organisation I initially created is new and there is no meaningful activity or data associated with it so there should be no issue in immediately deleting it.  The article doesn’t cover this. I was hoping there would be an immediate delete option in this scenario.

@plastikfan, there's no limitation on when you can delete. You can delete an organization whenever you want. If this isn't clear, please @mention me. Thanks!

Hi @chcomley, thanks for your reply. I’m afraid it’s not clear from the documentation. As I understand it from the documentation, the organisation is deleted after 28 days not immediately as I would want it to be so I can add it to another account. However, I have deleted the organisation but I haven’t added to another account yet because I wanted to wait for advice, since any remediation action I take seems to dig me into a bigger hole!

Please can you reopen this. It is not resolved

Now I'm following. Thanks @plastikfan. Adding @parsamzand for further clarification.

Hi @plastikfan, Thanks so much for your patience on this. I've discovered that you'll have to wait up to the 28 days, unless you go through Support (who can free up your organization name). Otherwise, you can always re-name the organization before deleting it to free up the desired organization name.
If you want to contact Support, please go here, and then select Report a problem > Azure DevOps.
I'm adding an FAQ to this article, describing this scenario, which should be live sometime today.
Please @mention me if you have any further questions about the article.

Hi @chcomley, thanks for your help in this regard. I am having a bit of a rough time with azure simply as a result of changing an email address associated with my github account linked to azure, which should be an easy operation but any time I try something, it just seems to make things worse. I have found that the azure organisation name was actually deleted (possibly somebody at azure support did it without notifying me) because I was able to re add it to to my azure account linked to the new Microsoft account I’m migrating to. However my azure account is still not linking up to github properly which means I can’t use azure in earnest  because this issue is still not sorted out.

I’ve been in touch with github and awaiting their response, but think this is an azure issue, because other 3rd parties authenticating with github works perfectly with my new Microsoft account, but when azure tries to authenticate via github, it still wants to authitecate using my old Microsoft email address which I thought I had removed all references to in azure and github. I don’t know what’s going on here and it’s preventing me from working on azure pipelines. At the moment I’m waiting for azure to do something but they keep fobbing me off, so I’m stuck saying I should take this up with GitHub.

Hi @plastikfan, I just wanted to circle back on this, as I hope GitHub has helped you with this. Since this isn't an issue about the article, I'll be closing this issue However, please @mention me if you have any questions about the article. If you haven't had luck with GitHub, I'd contact Support. Please go here, and then select Report a problem > Azure DevOps.


What happened if query message:xxx or aggs on message?

The strings were placed into message_* field, all the test example show how to use exists filter. Then, how about using query and aggregation on the message field?

This plugin provides like copy_to with auto-lang detection.
So, the original field(ex. message) is not changed.
For example, this plugin is used in Fess (https://github.com/codelibs/fess),
and the mapping is below:
https://github.com/codelibs/fess/blob/master/src/main/resources/fess_indices/fess/doc.json
If Japanese user wants to search something on "title" field,
Fess sends a query: title:something OR title_ja:something


The question about train.py

When I run the train.py file, the results of validate_things in it is Nan, but when I run validate_things alone, it can output epe and d1. So why?

I have same problem, when train the model, the validation epe value is NAN, have you solved this problem?

I also encountered this problem. The EPE value is NAN, but D1 has a value. have you solved this problem?


Revert language mixins back to module_function

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

[x] Have you successfully run brew typecheck with your changes locally?
[x] Have you successfully run brew tests with your changes locally?

See https://github.com/Homebrew/brew/pull/15249#discussion_r1169907467
cc @Bo98

Happy to see this disappear the other way round (no module_function but also no self.) if you think it's worth it at some point.

Thanks @dduugg and @Bo98! This probably warrants:

a rubocop at some point to disable/discourage additional module_function usage
a comment on these modules so no-one comes along later and does this again

Thanks @dduugg and @Bo98! This probably warrants:

a rubocop at some point to disable/discourage additional module_function usage

I filed this in 2019, maybe I should actually build the thing…

a comment on these modules so no-one comes along later and does this again

That, or tests that cover this case 😇


Initial implementation

Travis failing at
$ pod lib lint --use-libraries --allow-warnings
Works locally - investigating


Add --include command-line flag

I have tried to mimic as best I can the behaviour of help2man, without
changing the way that argparse-manpage works already.
The main effect of this is that the treatment of certain sections that are
individually rendered by argparse-manpage is slightly different from
help2man.
I have also renamed the non-standard “AUTHORS” section to the standard
“AUTHOR”.
I have not yet tried to document or add tests for the new functionality, in
case it’s desired to change it before merging.

Thank you very much for your contribution!
Can you please fix the old tests?
Can you please add a new one (or two) for your use-case?  I'd like not to break your use-case in the future.

Having some docs for the new --include feature in README.md would be awesome too.

I have attempted to fix the lint and test failures.
I'm not sure quite what's happening with the tests: if I run the supplied check script, they all pass. However, if I run tox, then some of the tests fail.

Tox looks OK now :-) at least in CI, the COLUMNS sensitivity is a known thing, sorry for that.

I'd still prefer to have a test case, lemme know if you want me to create it.
Otherwise LGTM, this is an awesome contribution - thank you!

@praiskup Don't worry, I'll create the test case! I also have to test that the "match patterns", for compatibility with help2man, should be regexs, not plain text (this is what I've documented). I will also attend to your other comments, e.g. about pylint warnings.

I have added a test; it is breaking Copr currently, I'm hoping just because I needed to add the new test file to MANIFEST.in, which I've now done.

Done, cheers!

Many thanks!


Travis integration

Current coverage is 53.15%

Branch #1 has no coverage reports uploaded yet.

No diff could be generated. No reports for master found.

Powered by Codecov. Updated on successful CI builds.


Modifier.draggable onDragStopped not called.

Describe the bug
If a user drags his finger to the right part of the screen until the finger leaves the screen during scrolling content, onDragStopped lambda is not called.
Affected platforms
Select one of the platforms below:

iOS

Versions
jb-main 864ab80ff12dc70377d2f28d0a9bfbafd402ea44
Expected behavior
It must be called.
Notes
Not reproducible on Android.

Investigation
On Android DragStopped event generated when finger leaves screen on both sides, on iOS - only left side.

Investigation # 2

Resolution
Event is not sent in ComposeScene.processRelease because pressOwner is null due to logical error and hoveredOwner is also null, because the touch is slightly outside the bounds of window due to floating-point multiplication error.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Update of Synth Solar SunDial app

We have made a big update to our Synth Solar SunDial app which we have tested and now want to role out to all of our customers.
You can see details on what it looks like here: https://synth.solar/introduction-to-the-new-synth-sundial/

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

Hi @matslina - I think we have resolved all conflicts here and should be good to go. There is a check that mentions an issue with rendering the new "6 x 10 rounded" font but I think this might be because the check is using an old runtime check version?
It be great to merge this soon as we have told our customers that this update is coming to their Tidbyts. Thanks!

Hi @matslina - I just wanted to see if any issues with merging this PR? We're keen to let our customers know that they're going to get an updated app and so be good to know if there is anything preventing this from being merged.
Thank you!


Initial commit for Azure Active Directory templates

Created an initial template for integration testing purpose for Azure Active Directory

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


Actor method invocation throws error for Services in different solution

I have two services Service1 and Service2. Service1 supports Actor1 which has method1.
Service2 would invoke Actor1.method1 in Service1
Now when both Services are in same solution with the common interface and classes in a Common project referenced by both the services the call from Service2 to Actor1.method1 is successful
But if the Services are in different solution where the common interface and classes are just copied in both solution (with same namespace) the call fails with exception
fail: facade.Controllers.AlarmController[0]
== APP ==       [null]
== APP ==       Dapr.Actors.ActorMethodInvocationException: Remote Actor Method Exception
== APP ==        ---> Dapr.Actors.ActorInvokeException: Element 'urn:actors:value' contains data of the 'urn:actors:UpdateAttributesAsyncReqBody' data contract. The deserializer has no knowledge of any type that maps to this contract. Add the type corresponding to 'UpdateAttributesAsyncReqBody' to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding it to the list of known types passed to DataContractSerializer.
== APP ==          --- End of inner exception stack trace ---
== APP ==          at Dapr.Actors.DaprHttpInteractor.InvokeActorMethodWithRemotingAsync(ActorMessageSerializersManager serializersManager, IActorRequestMessage remotingRequestRequestMessage, CancellationToken cancellationToken)
== APP ==          at Dapr.Actors.Communication.Client.ActorRemotingClient.InvokeAsync(IActorRequestMessage remotingRequestMessage, CancellationToken cancellationToken)
== APP ==          at Dapr.Actors.Client.ActorProxy.InvokeMethodAsync(Int32 interfaceId, Int32 methodId, String methodName, IActorRequestMessageBody requestMsgBodyValue, CancellationToken cancellationToken)
== APP ==          at facade.Controllers.AlarmController.<WellSubscription>b__4_0() in E:\Project\alarm-manager\facade\Controllers\AlarmController.cs:line 66
== APP == info: facade.Controllers.AlarmController[0]

I was wondering why the two cases are different given all the common actor interface and classes have similar structure and namespace in the second scenario

@msislam3 - Thanks for opening this issue!
I've never seen this error before, if I had to guess it has to do with how .NET is handling the serialization. If the two projects don't have knowledge of each other, did you recreate the data class in both solutions? I'm not super familiar with how remoting's serialization works, but I would bet it needs to have knowledge of the class to handle that.
Is there a reason you want to have both of these projects fully isolated instead of sharing the common model?
Regardless, I'll see if I can find some time to reproduce this.

Yes, both the solution have the exact same project (same project name, assembly name, namespace) with all the data classes replicated.
The setup is like this because the two services are in two different repo. I don't think we would be able to bring the two services in the same repo to share a common project. The other possibility is to create a nuget package from one repo and use it in another but I am  not sure if that would work. It would be better for now if I can make it work with the current setup

@msislam3 - Making a Nuget package should work. Or putting the common code in a 3rd repo that they can both depend on. This is a better coding practice as well as you'd only have to update the interface in one place and then both solutions could know about it.


Evict execution context from cache when there is no workflow definition found

Previously if there is error during getOrCreateWorkflowContext, the  local cache is not cleared. Once set workflowContext.err and Unlock() will evict the cache proactively.
Issue:
https://github.com/uber-go/cadence-client/issues/497

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

Coverage decreased (-0.03%) to 68.577% when pulling 3feaa6d7a1501632730f7b869c3dbea3fa0eb56f on lihannan99:master into 80466fafbf8535a9855b7940525dd2bf45f3b283 on uber-go:master.


naafiri

Naafiri's dogs stays default even after you change de skin, same happen with oriana's ball

#1


Use Primes package

This fixes a precompile error on julia 0.5 and should also work on 0.4.

Coverage remained the same at 93.269% when pulling 01619d370b82af43383222644e78ec8a58f74f3a on davidanthoff:fix-primes into 56148964c76c4946cec684a020caba83b2cbe466 on QuantEcon:master.

[Current coverage][cc-pull] is 93.26%

Merging [#126][cc-pull] into [master][cc-base-branch] will not change coverage

@@             master       #126   diff @@
==========================================
  Files            19         19
  Lines          1144       1144
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1067       1067
  Misses           77         77
  Partials          0          0

Powered by Codecov. Last updated by [5614896...faa91b5][cc-compare]
[cc-base-branch]: https://codecov.io/gh/QuantEcon/QuantEcon.jl/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/QuantEcon/QuantEcon.jl/compare/56148964c76c4946cec684a020caba83b2cbe466...faa91b59f2f695296a1943cb280ed1ebeb30c969?src=pr
[cc-pull]: https://codecov.io/gh/QuantEcon/QuantEcon.jl/pull/126?src=pr

Thanks!


New version conflicts with "Undone" Reminder note

Hi @maltaisn!
Happy new year and thank you for the new update!
I've encountered an issue which I have (kind of casually) been able to fix. After updating to the new version the app was crashing. Thankfully I was able to backup my notes with Titanium and restore them, after downgrading again to the older version.
Long story short, after some tries I've found out I had a note set as "Reminder" which was expired but not marked as "Done". After marking it as done I updated to latest version and it works flawlessly.
Have found this in the log:

FATAL` EXCEPTION: main
Process: com.maltaisn.notes.sync, PID: 6423
java.lang.IllegalArgumentException: com.maltaisn.notes.sync: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
at android.app.PendingIntent.checkFlags(PendingIntent.java:375)
at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:645)
at android.app.PendingIntent.getBroadcast(PendingIntent.java:632)
at d2.b.c(Unknown Source:23)
at d2.b.b(Unknown Source:0)
at com.maltaisn.notes.model.r.e(Unknown Source:69)
at com.maltaisn.notes.model.r.g(Unknown Source:114)
at com.maltaisn.notes.model.r$c.h(Unknown Source:11)
at v3.a.p(Unknown Source:13)
at l4.v0.run(Unknown Source:129)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7839)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

Thanks for the report, I'll fix this ASAP.

Thanks for the report (and the stacktrace!), it should be fixed now, I'll make a new release.

Thanks for the report (and the stacktrace!), it should be fixed now, I'll make a new release.

Hey, no problem at all, I do what I can (not being a developer). Thanks so much to you for developing and maintaining the app!


update proc_installing-launcher-tool-addon.adoc with 4 GB memory tip

as noted on both https://github.com/minishift/minishift-addons/tree/master/add-ons/fabric8-launcher and https://launcher.fabric8.io/docs/minishift-installation.html#install-launcher-app (currently, that page may change; see https://github.com/fabric8-launcher/launcher-openshift-templates/issues/2)

Can one of the admins verify this patch?

@edewit FYI... :smile:

@edewit @vorburger
Thank you very much for the PR.
We have this callout already:
https://launcher-preview.fabric8.io/docs/minishift-installation.html#starting-and-configuring-the-openshiftlocal-for-the-launcher-tool_minishift
If you still feel we need to the above change as well, let me know and we can accept the PR.

[test]

@rhoads-zach TBH you know how people (at least me) read docs... I hadn't seen that (much) further up in that chapter 3, but instead jump straight into chapter 5 which explains the add-on. So IMHO repeating the tip re. memory again there make sense - but up to you
BTW: I've also noticed now that the existing tip uses start --memory=4096. My experience has been that one keeps forgetting that on the next minishift start 3 days later, and that minishift config set memory 4096 is much... safer, because that is permanent. Perhaps you want to change that - just a thought related to this.

[test]

nice work @vorburger.
merging.


Plugin compile error when trying to access JsonSerializerSettings

Setup

Oxide version: 2.0.3382
Game name and version: Rust v 1090 (2001.147.1)
OS version: Windows 10 and Windows Server 2012 R2 (tested on both)

Problem
Steps to reproduce:

Run the code below as a plugin.

Observed results:
Compile time error: Error while compiling: Test.cs(13,20): error CS0023: The `.' operator cannot be applied to operand of type `Newtonsoft.Json.JsonSerializerSettings'
Expected results:
Expected the code to compile normally without any errors.
Code to reproduce error:
using System;
using Newtonsoft.Json;

namespace Oxide.Plugins
{
    [Info("Test", "", "1.0.0")]
    [Description("")]
    public class Test : RustPlugin
    {
        private void Init()
        {
            Config.Settings.ToString();
        }
    }
}

http://oxidemod.org/threads/the-operator-cannot-be-applied-to-operand-of-type-newtonsoft-json-jsonserializersettings.26554/page-4#post-340450 ;)


Ability to override a target

When doing backups with a filesystem which supports snapshots, the backup target and the filesystem path can change (often in uncontrollable ways).
i.e. if I'm backing up my home:
/home/will
but doing it with ZFS snapshots then I'm actually backing up:
/home/will/.zfs/snapshot/restic-backup-1
and that's what gets stored as the target. On a subsequent backup with a newly numbered snapshot, restic will then insist on re-reading the content of the entire filesystem i.e. if the snapshot mount is now /home/will/.zfs/snapshot/restic-backup-2
In both cases, what I really want to do is to specify the intended target and separate that concept from the mount - i.e. /home/will/.zfs/snapshot/restic-backup-3 is actually just targeting /home/will
EDIT: This is also needed to support backing up from Volume Shadow Copies on Windows, which already mostly works via the vscsc tool ala
vscsc -exec=snapshot.cmd C:

with snapshot.cmd having:
restic.exe /repo D:\ backup %1\����������������������������������������������

Hey, thanks for submitting this issue. It is in indeed an interesting feature to have.
I can imagine having sort of a "translation" rule, similar to tar --transform (example), or just being able to strip path components and insert a custom prefix.
For your first example this could mean running restic as follows:
restic backup --prefix /home/will --strip-components 5 \
  /home/will/.zfs/snapshot/restic-backup-1

so that /home/will/.zfs/snapshot/restic-backup-1/foo.txt has the leading 5 path elements removed to foo.txt and then the prefix is applied, so that restic saves /home/will/foo.txt.
Is that what you meant?
This feature depends on the solution of #549, because there we'll probably change the way restic handles paths.

That would pretty much do it I think.

I posted a similar request, maybe a duplicate here: https://github.com/restic/restic/issues/658

fd0, as you found the cause for issue #652 you hinted me at this issue and I thought it would be exactly what I want… yet… thats not entirely true, cause my BTRFS snapshots are in a different base path. For example:

/daten is the original directory
/mnt/daten-zeit/daten-resticbackup-$DATE or $UID would be unique snapshot directory name

Right now I work around issue #652 by providing a fixed snapshot name like "/mnt/daten-zeit/daten-resticbackup" without date. This appears to work well.
I prefer having all snapshots separately from the subvolume I snapshot.
So what I am after would be some "--pathinrepo" option or intended target option.
log "Sichere /home."
SNAP="/mnt/home-zeit/home-resticbackup-$DATE"
[ -d $SNAP ] && btrfs subvol del "$SNAP"
btrfs subvol snap /home "$SNAP"
restic backup
"$SNAP"
--pathinrepo "/home"
[…]
| stdbuf -oL -eL tee -a "$LOG"
log "/home gesichert."
btrfs subvol delete "$SNAP"
(note the --pathinrepo option in there)

Please read https://github.com/restic/restic/issues/555#issuecomment-236354707 again, assuming such a feature is implemented your use case is covered by:
$ restic backup --prefix /home --strip-components 3 \
   /mnt/home-zeit/home-resticbackup-$DATE

Ah, okay… I didn´t understand how  --prefix and --strip-components work together. This would work for me.
But I think its a bit error prone as the user need to keep --strip-components 3 and snapshot path somewhat in sync. I.e. whenever I may change the snapshot path to have more or less levels I need to adapt the --stip-components option as well. But on the other hand that would be more flexible and explicit than "--pathinrepo" by splitting the operation into two parts: Remove something from the original path and then prepend a prefix. I´d just have gone with replacing the original path completely with --pathinrepo :)

@fd0 You might also like to consider using the style that rsync does, which I feel is more concise :
rsync -avR /foo/./bar/baz.c remote:/tmp/
That would create /tmp/bar/baz.c on the remote machine. (Note that the
    dot must be followed by a slash, so lq/foo/.rq would not be abbreviated.)

https://linux.die.net/man/1/rsync
Also noticed that I'm reviving an old issue, not sure if it has already been implemented in some way, I wasn't able to find --prefix or  --strip-components in the code.

I second that (again) - the rsync style of controlling the "target" part of the path is really really good. I used it many times with good success.

This would be very nice to have.

Indeed a very useful feature (also working with btrfs snapshots here), but this is useful for other use-cases as well: what if we want to upload from different places (maybe seed the backup from an external drive with a different path in a site with fast upload speeds). Currently, if the path doesn't match, restic has to rehash everything (admittedly though we don't need to reupload everything due do deduplication - still being able to specify the target would be very useful).
@fd0 now that the new archiver code is in, would it be the right time to take a look at this and ... is there room on your todo list for this :) ?

Having some spare time, I did an initial attempt at this. I think there's still something to be corrected: If I try to subsequently create two snapshots of two distinct directories with the same content and fix the paths so that they appear to be the same directory, the "restic diff" command shows no difference but the report at the end of the backup shows as if all Files were created new.

A fairly easy workaround is to create a 'latest' snapshot -- a snippet from my backup script using BTRFS:
subvolumes=(/mnt/hdd/data /mnt/ssd/data)

# Snapshot BTRFS subvolumes
date=`date +"%FT%T"`
for subvolume in ${subvolumes[@]}; do
  # Create snapshot
  mkdir -p "$(dirname $subvolume)/snapshots/$(basename $subvolume)"
  btrfs subvolume snapshot $subvolume "$(dirname $subvolume)/snapshots/$(basename $subvolume)/$date"
  touch "$(dirname $subvolume)/snapshots/$(basename $subvolume)/$date"

  # Create latest snapshot
  ls "$(dirname $subvolume)/snapshots/$(basename $subvolume)/latest" && btrfs subvolume delete -c "$(dirname $subvolume)/snapshots/$(basename $subvolume)/latest"
  btrfs subvolume snapshot "$(dirname $subvolume)/snapshots/$(basename $subvolume)/$date" "$(dirname $subvolume)/snapshots/$(basename $subvolume)/latest"

  # Prune snapshots
  cd "$(dirname $subvolume)/snapshots/$(basename $subvolume)"
  ls -1rt "$(dirname $subvolume)/snapshots/$(basename $subvolume)" | grep -v latest | head -n -8 | xargs -r btrfs subvolume delete -c --
done

Then restic can just target the latest snapshot for backup.


Issue #737 - Mixed SharedKernel : Clean.Architecture and Ardalis - Fix

Replaced Ardalis.SharedKernel with NimblePros.SharedKernel nuget package in Core project.
Added Ardalis.SharedKernel nuget package in UseCases project as CQRS interfaces are only available in this package.
Removed Ardalis.SharedKernel nuget package in Infrastructure project.

Probably best to hold on this until I get the Vogen branch merged in.


How I can change hover color on vbt-autcomplete-list ?

Hi,
I have a problem with hover color in autocomplete list, it's blue with the same font color, it's look ugly.
How I change this style ?
 .vbt-autcomplete-list {         color: red !important;         padding-top: 5px;         position: absolute;         max-height: 350px;         overflow-y: auto;         z-index: 999;     }
`.vbt-autcomplete-list:hover {
    color: red !important;
}`

 .list-group-item-action{         color: red !important;     }
I try implement that style, but still doesn't work fine.

Is this still an issue for you? There's nothing special about this component that's preventing you from styling it. You may need to use /deep/ if you want to target elements created by the typeahead. Ex:
/deep/ .list-group-item-action{
  color: orange !important;
}

Hope that helps!


Chains/zksync

Description

Added support for Sophon Sepolia Testnet integration.
Added support for ZKSync Sepolia Testnet integration.

Backward compatibility
compatible
Testing
Tested with cli

Changes required imo:

Changeset is missing,
Need to run the prettier,
Need to fetch the canonical main last changes too,
For both metadata file, the apiUrls are incorrect I think,
For both metadata file, the family name, I'm not sure it will be accepted (should be blockscout or other If I remember, someone will tell you)
For both address file, the file isn't alphabetically correctly ordered (merkleTree at the end of each file),
I see some width/height for the svg, not sure it's necessary, minimify them both with https://jakearchibald.github.io/svgomg/


Add logging to socket infrastructure instead of stdout

Currently, all logging on the python side of running tests is printed to the stdout, for example, print("error occurred) will print it to the stdout. This stdout is then taken on the extension side and re-directed to the test result panel during run, all output even logs. Logs going to the test result panel does not make sense, these logs are sometimes informational and are produced by the extension instead of by pytest or unittest by default. In order to move them to the logging output for vscode, these messages need to be send as posts to the communication socket.
Steps:

create a new message type for logging and debugging
make these json objects have an attribute called level where the same log levels from vscode can be used by the python subprocess running the tests
edit server.ts to process these logging and debugging messages differently, instead of sending them to the result resolver have these all just be sent to console log based on their attribute of log level
switch over all logging in the python subprocess to use the new message types
create tests to handle this new feature, and update old tests to function correctly

not sure if this is worth doing / a priority. Closing for now


Fix typos for the QuoataReserved

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
I fixed the typo for the "QuoataReserved". Also, I fixed some comments.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?

None

Test started yesterday at 10:53 PM failed after 5m0s. (more info)
There are no nodes that your pod can schedule to - check your requests, tolerations, and node selectors (skip schedule deleting pod: test-pods/3fd070f5-b2a6-44e4-9015-dd1446d5ce8f)

https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kueue/1182/pull-kueue-test-e2e-main-1-28/1710292160185634816
The prow seems to have failed to schedule a pod for this test.
/test pull-kueue-test-e2e-main-1-28


[KERNEL-ESTIMATOR] [CSDL] [22.11.02]

Team members
dohun#9207
sunghye#7199
Jaekyung Im#3958
Submission summary
private submission
qbraid account<EMAIL_ADDRESS>Additional comments
Includes modifications based on the feedback of previous PR #32

@ryanhill1 Sorry, I should have added a more detailed explanation. L_D is directly implemented into the objective function of the quadratic problem, which means the first term of L_D (sum of alpha) forms the matrix 'q', and the second term of L_D forms the matrix 'P'. Since the standard form of the QP is to minimize the objective function, the sign of these two matrices have been flipped. Is it possible to write the additional explanation of this with markdown after accept? Thank you for you feedback.

@ryanhill1 Sorry, I should have added a more detailed explanation. L_D is directly implemented into the objective function of the quadratic problem, which means the first term of L_D (sum of alpha) forms the matrix 'q', and the second term of L_D forms the matrix 'P'. Since the standard form of the QP is to minimize the objective function, the sign of these two matrices have been flipped. Is it possible to write the additional explanation of this with markdown after accept? Thank you for you feedback.

Ok, gotcha! Thanks, yeah could you write that out in markdown? And then let me know once you are finished. In the meantime, I'll hold your submission at the front of my review queue.

@ryanhill1 I finished updating my notebook kernel_estimator.ipynb. The explanation of QP formulation is at between cell 17 and 18. Please note that the code of cell 18 has been partially changed to fit the newly written formula, but it is a mathematically equivalent (e.g. replacing the element-wise multiplication by broadcasting, to matrix multiplication).


Added info about Serenity and its template Serene

Application Templates/Serene - https://github.com/volkanceylan/serenity
Serenity is an ASP.NET MVC application platform designed to simplify and shorten development of data-centric business applications with a service based architecture. Serene is a starter template to build Serenity applications.

Thanks


Little bug in MeasurementAccuracyRange.ts generated file

Where:
rangeMin: TlvField(0, TlvInt64.bound({ min: -262, max: 262 })),
and
rangeMax: TlvField(1, TlvInt64.bound({ min: -262, max: 262 })),
should be something like this  in my opinion:
rangeMin: TlvField(0, TlvInt64.bound({ min: -(2 ** 62), max: 2 ** 62 })),
and
rangeMax: TlvField(1, TlvInt64.bound({ min: -(2 ** 62), max: 2 ** 62 })),

@lauckhart seems like a spec scraping error because also the spec.ts contains these numbers

Before I just add an override maybe you have a chance to have a look at scraping and we fix "correctly". Thank you

Superscripts are pretty fiddly to extract but if 2^62 is a common constant worst case I can probably special case it. Will take a look tomorrow.


Relax DataTable interface to accept Table.jl compatible types instead of DataFrame

heads up: I'm almost ready, not a big deal.

Support can be added easily by taking DataFrames.jl as a dependency:
DataTable(table) = DataTable(DataFrame(table))

Because DataFrames.jl itself already supports Tables.jl.
Of course a more professional solution would just use the Tables.jl interface directly to take the data out of the table type without conversion.

That's what I'm currently doing. The longer part is to move the stippleparse to DataFrames to an extension. But this will be done in two separate steps.

It's all set, we just need to merge https://github.com/GenieFramework/Stipple.jl/pull/209 and #99.
Then you will be able to use any Tables compatible type, e.g. Tables interface or TypedTables:
using Tables
t1 = Tables.table([1 2 3; 3 4 5], header = ["a", "b", "c"])

table(:dt)
# "<q-table :columns=\"dt.columns\" v-model=\"dt\" :data=\"dt.data\" row-key=\"__id\"></q-table>"

render(DataTable(t1))
# Dict{String, Any} with 2 entries:
#  "data"    => Dict{String, Any}[Dict("c"=>3, "__id"=>1, "b"=>2, "a"=>1), Dict("c"=>5, "__id"=>2, "b"=>4, "a"=>3)]
#  "columns" => Column[Column("a", false, "a", :left, "a", true), Column("b", false, "b", :left, "b", true), Column("c", false, "c", :left, "c", true)]

or
using TypedTables
t2 = Table(a = 1:3, b = collect("abc")) # or FlexTable or DictTable

render(DataTable(t2))
# Dict{String, Any} with 2 entries:
#  "data"    => Dict{String, Any}[Dict("__id"=>1, "b"=>'a', "a"=>1), Dict("__id"=>2, "b"=>'b', "a"=>2), Dict("__id"=>3, "b"=>'c', "a"=>3)]
#  "columns" => Column[Column("a", false, "a", :left, "a", true), Column("b", false, "b", :left, "b", true)]

And rendering of Tables compatible type is supported as well:
render(t1)
# OrderedDict{Symbol, AbstractVector} with 2 entries:
#  :a => 1:3
#  :b => ['a', 'b', 'c']

Thank you @hhaensel , we are looking forward to use the new feature.

@juliohm
Hope this fits your needs. Please note: With the latest PR #99 DataFrames is not loaded automatically anymore. Instead all DataFrame-specific definitions are loaded via an extension. If you need to use DataFrames, the best is to load it before loading StippleUI. Otherwise rely on the new Tables API and enjoy the shorter loading time 😉


Checks in some tests are broken

I've noticed while working on recent PRs that test code sometimes uses expect() and other types of assertions in callbacks to Sentry. E.g. Sentry.init() - these are broken and are actually not being checked at all because Sentry swallows these errors (doesn't propagate them). Minimal repro - the following test passes:
  test('should fail', () async {
    await Sentry.init((options) {
      fail('hello there');
    }, options: SentryOptions(dsn: fakeDsn));
  });

Besides a testing issue, this may also be a design problem - naively, as a User, I'd expect exceptions in user-provided code to be propagated.

Related https://github.com/getsentry/sentry-dart/pull/990

@vaind Sentry should swallow every exception when a user makes a mistake in the callbacks, that's intended and by design.
We'd need to fix those tests for sure, mind checking this out? or giving an example?

Related #990

Likely an oversight because of PRs related to this, indeed.

@vaind Sentry should swallow every exception when a user makes a mistake in the callbacks, that's intended and by design. We'd need to fix those tests for sure, mind checking this out? or giving an example (a test's name)?

@vaind in case you remember where you have seen this.

e.g. multiple calls to await Sentry.init( in sentry_test.dart have test assertions inside the callback

I'd suggest having a test-mode/dev-mode setting where exceptions are not captured in callbacks. This would could also help users if they're having trouble with reporting some errors, as it's much easier to find errors this way than look for logs.


Reading RTF

So Scrivener uses RTF for most files, eg. the descriptions of character and places. Plottr not only cannot read RTF, it doesn't seem to be using any other well-known format. Instead, it uses something that I can only describe as a convoluted mess:
[{"text":"Text "},{"text":"bold","bold":true},{"text":" "},{"text":"italic","italic":true},{"text":" "},{"text":"underlined","underline":true},{"text":" "},{"text":"strikethrough","strike":true},{"text":" Text"}]
The above is Plottr's internal format for this:

Not sure how to go from here. Maybe try and strip all the formatting for now.

Currently thinking of going with https://github.com/joshy/striprtf
It would strip all formatting. Stil better than not having your content at all.


How to communicate some questions

Hello, I'm very interested in our Kosmos project, and I'd like to give it a try. However, I'm not quite familiar with the project and have some questions. I'd like to get in touch with our technical and operational team to learn more about the specifics. Unfortunately, I couldn't find any relevant discussion group information or effective means of communication apart from participants' emails. Could we consider adding information about discussion groups to facilitate easier communication and discussion?

/close


Nested cross-validation

Dear Lin,
thanks for providing this useful toolbox. I'm trying to use it to publish a paper, here I met some problem from the reviewer. He suggested me to use the nested cross-validation.
Here I list the script I used for my study:
clear all;
load median20190923.mat

%leave-one-out cross-validation
w = zeros(size(data_all));% weight
h = waitbar(0,'please wait..');

for i = 1:size(data_all,1)
    waitbar(i/size(data_all,1),h,[num2str(i),'/',num2str(size(data_all,1))])
    new_DATA = data_all;
    new_label  = label;
    test_data   = data_all(i,:); new_DATA(i,:) = []; train_data = new_DATA;
    test_label   = label(i,:);new_label(i,:) = [];train_label = new_label;

%  Data Normalization
    [train_data,PS] = mapminmax(train_data',0,1);
    test_data          = mapminmax('apply',test_data',PS);
    train_data = train_data';
    test_data   = test_data';

    % RFE feature selectioin
    step = 1;
    ftRank = SVMRFE(train_label,train_data, step,'-t 0');
    IX = ftRank(1:ceil(length(ftRank)*0.4));

    [bestacc,bestc] = SVMcgForClass_NoDisplay_linear(train_label,train_data(:,IX),-10,10,5,0.1);
    cmd = ['-t 0 ', ' -c ',num2str(bestc),' -w1 2 -w-1 1'];

    model = svmtrain(train_label,train_data(:,IX),cmd);
    w(i,IX)   = model.SVs'*model.sv_coef;
    [predicted_label, accuracy, deci] = svmpredict(test_label,test_data(:,IX),model);
    acc(i,1) = accuracy(1);
    deci_value(i,1) = deci;
%     clear  test_data  train_data test_label train_label model IX k
end
w_msk = double(sum(w~=0,1)==size(w,1));
w = mean(w,1).*w_msk;
acc_final = mean(acc);
disp(['accuracy - ',num2str(acc_final)]);

% ROC
[X,Y,T,AUC] = perfcurve(label,deci_value,1);
figure;plot(X,Y);hold on;plot(X,X,'-');
xlabel('False positive rate'); ylabel('True positive rate');

for i=1:length(X)
    Cut_off(i,1) = (1-X(i))*Y(i);
end
[~,maxind] = max(Cut_off);
Specificity = 1-X(maxind);
Sensitivty = Y(maxind);
disp(['Specificity= ', num2str(Specificity)]);
disp(['Sensitivty= ', num2str(Sensitivty)]);

fprintf('Permutation test ......\n');
Nsloop = 5000;
auc_rand = zeros(Nsloop,1);
for i=1:Nsloop
    label_rand = randperm(length(label));
    deci_value_rand = deci_value(label_rand);
    [~,~,~,auc_rand(i)] = perfcurve(label,deci_value_rand,1);
    clear label_rand
end
p_auc = (length(find((auc_rand > AUC)))+1)/(Nsloop+1);
disp(['Pvalue= ', num2str(p_auc)]);

Here, what I used is leave-one-out cross-valitaion. But the reviewer suggest me to use the neseted cross-valitaion(e.g. Varoquaux et al., Neuroimage, 2017) and K-fold.
Since I am not familiar with nested cross-validation. Is it any possible we perform it based on your libsvm? If it is, could you please give me some clue how to achieve this?
Best,
Ziqian

To implement CV in matlab what you need to do are

randomly permute data by randperm()

use a for loop to get each validation fold

num_per_fold = ceil(num_data/num_fold);
for i = 1 : num_fold
range = (i-1)num_per_fold + 1 : min(num_data, inum_per_fold);

then use this "range" to extract the validation fold. The training
fold can be get by a similar way

then do training/prediction, and aggregate results to get CV acuracy

for nested CV I think you mean 2-level CV. You can use a 2-level for
loop on that

On 2020-02-20 23:56, ziqianwang9 wrote:

Dear Lin,
thanks for providing this useful toolbox. I'm trying to use it to
publish a paper, here I met some problem from the reviewer. He
suggested me to use the nested cross-validation.
Here I list the script I used for my study:
clear all;
load median20190923.mat
%leave-one-out cross-validation
w = zeros(size(data_all));% weight
h = waitbar(0,'please wait..');
for i = 1:size(data_all,1)
waitbar(i/size(data_all,1),h,[num2str(i),'/',num2str(size(data_all,1))])
new_DATA = data_all;
new_label  = label;
test_data   = data_all(i,:); new_DATA(i,:) = []; train_data =
new_DATA;
test_label   = label(i,:);new_label(i,:) = [];train_label =
new_label;
%  Data Normalization
[train_data,PS] = mapminmax(train_data',0,1);
test_data          = mapminmax('apply',test_data',PS);
train_data = train_data';
test_data   = test_data';
% RFE feature selectioin
step = 1;
ftRank = SVMRFE(train_label,train_data, step,'-t 0');
IX = ftRank(1:ceil(length(ftRank)*0.4));

[bestacc,bestc] =

SVMcgForClass_NoDisplay_linear(train_label,train_data(:,IX),-10,10,5,0.1);
cmd = ['-t 0 ', ' -c ',num2str(bestc),' -w1 2 -w-1 1'];
model = svmtrain(train_label,train_data(:,IX),cmd);
w(i,IX)   = model.SVs'*model.sv_coef;
[predicted_label, accuracy, deci] =

svmpredict(test_label,test_data(:,IX),model);
acc(i,1) = accuracy(1);
deci_value(i,1) = deci;
%     clear  test_data  train_data test_label train_label model IX k
end
w_msk = double(sum(w~=0,1)==size(w,1));
w = mean(w,1).*w_msk;
acc_final = mean(acc);
disp(['accuracy - ',num2str(acc_final)]);
% ROC
[X,Y,T,AUC] = perfcurve(label,deci_value,1);
figure;plot(X,Y);hold on;plot(X,X,'-');
xlabel('False positive rate'); ylabel('True positive rate');
for i=1:length(X)
Cut_off(i,1) = (1-X(i))*Y(i);
end
[~,maxind] = max(Cut_off);
Specificity = 1-X(maxind);
Sensitivty = Y(maxind);
disp(['Specificity= ', num2str(Specificity)]);
disp(['Sensitivty= ', num2str(Sensitivty)]);
fprintf('Permutation test ......\n');
Nsloop = 5000;
auc_rand = zeros(Nsloop,1);
for i=1:Nsloop
label_rand = randperm(length(label));
deci_value_rand = deci_value(label_rand);
[~,~,~,auc_rand(i)] = perfcurve(label,deci_value_rand,1);
clear label_rand
end
p_auc = (length(find((auc_rand > AUC)))+1)/(Nsloop+1);
disp(['Pvalue= ', num2str(p_auc)]);
Here, what I used is leave-one-out cross-valitaion. But the reviewer
suggest me to use the neseted cross-valitaion(e.g. Varoquaux et al.,
Neuroimage, 2017) and K-fold.
Since I am not familiar with nested cross-validation. Is it any
possible we perform it based on your libsvm? If it is, could you
please give me some clue how to achieve this?
Best,
Ziqian
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2]. [ { "@context": "http://schema.org", "@type": "EmailMessage",
"potentialAction": { "@type": "ViewAction", "target":
"https://github.com/cjlin1/libsvm/issues/163?email_source=notifications\u0026email_token=ABI3BHV62VSU7IEJTR5GH23RD2R2ZA5CNFSM4KYRVGX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPBCY3A",
"url":
"https://github.com/cjlin1/libsvm/issues/163?email_source=notifications\u0026email_token=ABI3BHV62VSU7IEJTR5GH23RD2R2ZA5CNFSM4KYRVGX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPBCY3A",
"name": "View Issue" }, "description": "View this Issue on GitHub",
"publisher": { "@type": "Organization", "name": "GitHub", "url":
"https://github.com" } } ]
Links:
[1]
https://github.com/cjlin1/libsvm/issues/163?email_source=notifications&email_token=ABI3BHV62VSU7IEJTR5GH23RD2R2ZA5CNFSM4KYRVGX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPBCY3A
[2]
https://github.com/notifications/unsubscribe-auth/ABI3BHRYMTNKNGKRC3P4DTTRD2R2ZANCNFSM4KYRVGXQ

Thank your for your reply.
As the knowledge I have, the nested is not 2-level CV. This figure could illustrate what is nested CV:
The nested CV has an inner loop CV nested in an outer CV. The inner loop is responsible for model selection/hyperparameter tuning (similar to validation set), while the outer loop is for error estimation (test set).
My question is how is our '[bestacc,bestc] =SVMcgForClass_NoDisplay_linear(train_label,train_data(:,IX),-10,10,5,0.1)’ working on hyperparameter tuning? Do we use the similar method?
If not, can we combine it with SVMcgForClass_NoDisplay_linear?
Any response will be helpful.
Best,
Ziqian

在 2020年2月20日，下午10:30，Chih-Jen Lin<EMAIL_ADDRESS>写道：
To implement CV in matlab what you need to do are

randomly permute data by randperm()

use a for loop to get each validation fold

num_per_fold = ceil(num_data/num_fold);
for i = 1 : num_fold
range = (i-1)num_per_fold + 1 : min(num_data, inum_per_fold);

then use this "range" to extract the validation fold. The training
fold can be get by a similar way

then do training/prediction, and aggregate results to get CV acuracy

for nested CV I think you mean 2-level CV. You can use a 2-level for
loop on that

On 2020-02-20 23:56, ziqianwang9 wrote:

Dear Lin,
thanks for providing this useful toolbox. I'm trying to use it to
publish a paper, here I met some problem from the reviewer. He
suggested me to use the nested cross-validation.
Here I list the script I used for my study:
clear all;
load median20190923.mat
%leave-one-out cross-validation
w = zeros(size(data_all));% weight
h = waitbar(0,'please wait..');
for i = 1:size(data_all,1)
waitbar(i/size(data_all,1),h,[num2str(i),'/',num2str(size(data_all,1))])
new_DATA = data_all;
new_label = label;
test_data = data_all(i,:); new_DATA(i,:) = []; train_data =
new_DATA;
test_label = label(i,:);new_label(i,:) = [];train_label =
new_label;
% Data Normalization
[train_data,PS] = mapminmax(train_data',0,1);
test_data = mapminmax('apply',test_data',PS);
train_data = train_data';
test_data = test_data';
% RFE feature selectioin
step = 1;
ftRank = SVMRFE(train_label,train_data, step,'-t 0');
IX = ftRank(1:ceil(length(ftRank)*0.4));
[bestacc,bestc] =
SVMcgForClass_NoDisplay_linear(train_label,train_data(:,IX),-10,10,5,0.1);
cmd = ['-t 0 ', ' -c ',num2str(bestc),' -w1 2 -w-1 1'];
model = svmtrain(train_label,train_data(:,IX),cmd);
w(i,IX) = model.SVs'*model.sv_coef;
[predicted_label, accuracy, deci] =
svmpredict(test_label,test_data(:,IX),model);
acc(i,1) = accuracy(1);
deci_value(i,1) = deci;
% clear test_data train_data test_label train_label model IX k
end
w_msk = double(sum(w~=0,1)==size(w,1));
w = mean(w,1).*w_msk;
acc_final = mean(acc);
disp(['accuracy - ',num2str(acc_final)]);
% ROC
[X,Y,T,AUC] = perfcurve(label,deci_value,1);
figure;plot(X,Y);hold on;plot(X,X,'-');
xlabel('False positive rate'); ylabel('True positive rate');
for i=1:length(X)
Cut_off(i,1) = (1-X(i))*Y(i);
end
[~,maxind] = max(Cut_off);
Specificity = 1-X(maxind);
Sensitivty = Y(maxind);
disp(['Specificity= ', num2str(Specificity)]);
disp(['Sensitivty= ', num2str(Sensitivty)]);
fprintf('Permutation test ......\n');
Nsloop = 5000;
auc_rand = zeros(Nsloop,1);
for i=1:Nsloop
label_rand = randperm(length(label));
deci_value_rand = deci_value(label_rand);
[~,~,~,auc_rand(i)] = perfcurve(label,deci_value_rand,1);
clear label_rand
end
p_auc = (length(find((auc_rand > AUC)))+1)/(Nsloop+1);
disp(['Pvalue= ', num2str(p_auc)]);
Here, what I used is leave-one-out cross-valitaion. But the reviewer
suggest me to use the neseted cross-valitaion(e.g. Varoquaux et al.,
Neuroimage, 2017) and K-fold.
Since I am not familiar with nested cross-validation. Is it any
possible we perform it based on your libsvm? If it is, could you
please give me some clue how to achieve this?
Best,
Ziqian
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2]. [ { "@context": "http://schema.org", "@type": "EmailMessage",
"potentialAction": { "@type": "ViewAction", "target":
"https://github.com/cjlin1/libsvm/issues/163?email_source=notifications\u0026email_token=ABI3BHV62VSU7IEJTR5GH23RD2R2ZA5CNFSM4KYRVGX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPBCY3A",
"url":
"https://github.com/cjlin1/libsvm/issues/163?email_source=notifications\u0026email_token=ABI3BHV62VSU7IEJTR5GH23RD2R2ZA5CNFSM4KYRVGX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPBCY3A",
"name": "View Issue" }, "description": "View this Issue on GitHub",
"publisher": { "@type": "Organization", "name": "GitHub", "url":
"https://github.com" } } ]
Links:
[1]
https://github.com/cjlin1/libsvm/issues/163?email_source=notifications&email_token=ABI3BHV62VSU7IEJTR5GH23RD2R2ZA5CNFSM4KYRVGX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPBCY3A
[2]
https://github.com/notifications/unsubscribe-auth/ABI3BHRYMTNKNGKRC3P4DTTRD2R2ZANCNFSM4KYRVGXQ
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/cjlin1/libsvm/issues/163?email_source=notifications&email_token=AH4SOUKYJP2I4QT47KCVPEDRD3ZAZA5CNFSM4KYRVGX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMQG5YI#issuecomment-589328097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH4SOUIRJU2YNGYBVC5OCHTRD3ZAZANCNFSM4KYRVGXQ.

Dear Lin,
I found that this nested VC add grid search in every loop of inner loop. If it’s 5-fold, it calculate 5 best-c, then calculate arithmetic mean/geometric mean or power mean.
Here is also a description in Chinese:
这个思想有两个循环（loop）：（1）外循环就是普通的cross validation （2）内循环相当于是一个子优化问题，通过grid search寻常当前子问题中模型对应的最优参数。grid search就相当于是遍历有限的空间点（每一个点对应于一组参数），每一组参数对应一个模型的performance，然后选取performance最好的模型。
cross validation用了几个fold最后就有几组模型参数，如果你的模型是stable的，那么这几组参数应该类似。
I don’t know if this is the state of art. But it should be a good way to solve the problem of information ‘leaking’.
Could we manage to implement to your wonderful libsvm toolbox?
Best,
Ziqian

在 2020年2月28日，上午11:19，王子谦<EMAIL_ADDRESS>写道：
Thank your for your reply.
As the knowledge I have, the nested is not 2-level CV. This figure could illustrate what is nested CV:
<F1QgU.png>
The nested CV has an inner loop CV nested in an outer CV. The inner loop is responsible for model selection/hyperparameter tuning (similar to validation set), while the outer loop is for error estimation (test set).
My question is how is our '[bestacc,bestc] =SVMcgForClass_NoDisplay_linear(train_label,train_data(:,IX),-10,10,5,0.1)’ working on hyperparameter tuning? Do we use the similar method?
If not, can we combine it with SVMcgForClass_NoDisplay_linear?
Any response will be helpful.
Best,
Ziqian

在 2020年2月20日，下午10:30，Chih-Jen Lin<EMAIL_ADDRESS><EMAIL_ADDRESS>写道：
To implement CV in matlab what you need to do are

randomly permute data by randperm()

use a for loop to get each validation fold

num_per_fold = ceil(num_data/num_fold);
for i = 1 : num_fold
range = (i-1)num_per_fold + 1 : min(num_data, inum_per_fold);

then use this "range" to extract the validation fold. The training
fold can be get by a similar way

then do training/prediction, and aggregate results to get CV acuracy

for nested CV I think you mean 2-level CV. You can use a 2-level for
loop on that

On 2020-02-20 23:56, ziqianwang9 wrote:

Dear Lin,
thanks for providing this useful toolbox. I'm trying to use it to
publish a paper, here I met some problem from the reviewer. He
suggested me to use the nested cross-validation.
Here I list the script I used for my study:
clear all;
load median20190923.mat
%leave-one-out cross-validation
w = zeros(size(data_all));% weight
h = waitbar(0,'please wait..');
for i = 1:size(data_all,1)
waitbar(i/size(data_all,1),h,[num2str(i),'/',num2str(size(data_all,1))])
new_DATA = data_all;
new_label = label;
test_data = data_all(i,:); new_DATA(i,:) = []; train_data =
new_DATA;
test_label = label(i,:);new_label(i,:) = [];train_label =
new_label;
% Data Normalization
[train_data,PS] = mapminmax(train_data',0,1);
test_data = mapminmax('apply',test_data',PS);
train_data = train_data';
test_data = test_data';
% RFE feature selectioin
step = 1;
ftRank = SVMRFE(train_label,train_data, step,'-t 0');
IX = ftRank(1:ceil(length(ftRank)*0.4));
[bestacc,bestc] =
SVMcgForClass_NoDisplay_linear(train_label,train_data(:,IX),-10,10,5,0.1);
cmd = ['-t 0 ', ' -c ',num2str(bestc),' -w1 2 -w-1 1'];
model = svmtrain(train_label,train_data(:,IX),cmd);
w(i,IX) = model.SVs'*model.sv_coef;
[predicted_label, accuracy, deci] =
svmpredict(test_label,test_data(:,IX),model);
acc(i,1) = accuracy(1);
deci_value(i,1) = deci;
% clear test_data train_data test_label train_label model IX k
end
w_msk = double(sum(w~=0,1)==size(w,1));
w = mean(w,1).*w_msk;
acc_final = mean(acc);
disp(['accuracy - ',num2str(acc_final)]);
% ROC
[X,Y,T,AUC] = perfcurve(label,deci_value,1);
figure;plot(X,Y);hold on;plot(X,X,'-');
xlabel('False positive rate'); ylabel('True positive rate');
for i=1:length(X)
Cut_off(i,1) = (1-X(i))*Y(i);
end
[~,maxind] = max(Cut_off);
Specificity = 1-X(maxind);
Sensitivty = Y(maxind);
disp(['Specificity= ', num2str(Specificity)]);
disp(['Sensitivty= ', num2str(Sensitivty)]);
fprintf('Permutation test ......\n');
Nsloop = 5000;
auc_rand = zeros(Nsloop,1);
for i=1:Nsloop
label_rand = randperm(length(label));
deci_value_rand = deci_value(label_rand);
[~,~,~,auc_rand(i)] = perfcurve(label,deci_value_rand,1);
clear label_rand
end
p_auc = (length(find((auc_rand > AUC)))+1)/(Nsloop+1);
disp(['Pvalue= ', num2str(p_auc)]);
Here, what I used is leave-one-out cross-valitaion. But the reviewer
suggest me to use the neseted cross-valitaion(e.g. Varoquaux et al.,
Neuroimage, 2017) and K-fold.
Since I am not familiar with nested cross-validation. Is it any
possible we perform it based on your libsvm? If it is, could you
please give me some clue how to achieve this?
Best,
Ziqian
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2]. [ { "@context": "http://schema.org http://schema.org/", "@type": "EmailMessage",
"potentialAction": { "@type": "ViewAction", "target":
"https://github.com/cjlin1/libsvm/issues/163?email_source=notifications\u0026email_token=ABI3BHV62VSU7IEJTR5GH23RD2R2ZA5CNFSM4KYRVGX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPBCY3A https://github.com/cjlin1/libsvm/issues/163?email_source=notifications\u0026email_token=ABI3BHV62VSU7IEJTR5GH23RD2R2ZA5CNFSM4KYRVGX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPBCY3A",
"url":
"https://github.com/cjlin1/libsvm/issues/163?email_source=notifications\u0026email_token=ABI3BHV62VSU7IEJTR5GH23RD2R2ZA5CNFSM4KYRVGX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPBCY3A https://github.com/cjlin1/libsvm/issues/163?email_source=notifications\u0026email_token=ABI3BHV62VSU7IEJTR5GH23RD2R2ZA5CNFSM4KYRVGX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPBCY3A",
"name": "View Issue" }, "description": "View this Issue on GitHub",
"publisher": { "@type": "Organization", "name": "GitHub", "url":
"https://github.com https://github.com/" } } ]
Links:
[1]
https://github.com/cjlin1/libsvm/issues/163?email_source=notifications&email_token=ABI3BHV62VSU7IEJTR5GH23RD2R2ZA5CNFSM4KYRVGX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPBCY3A https://github.com/cjlin1/libsvm/issues/163?email_source=notifications&email_token=ABI3BHV62VSU7IEJTR5GH23RD2R2ZA5CNFSM4KYRVGX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPBCY3A
[2]
https://github.com/notifications/unsubscribe-auth/ABI3BHRYMTNKNGKRC3P4DTTRD2R2ZANCNFSM4KYRVGXQ https://github.com/notifications/unsubscribe-auth/ABI3BHRYMTNKNGKRC3P4DTTRD2R2ZANCNFSM4KYRVGXQ
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/cjlin1/libsvm/issues/163?email_source=notifications&email_token=AH4SOUKYJP2I4QT47KCVPEDRD3ZAZA5CNFSM4KYRVGX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMQG5YI#issuecomment-589328097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH4SOUIRJU2YNGYBVC5OCHTRD3ZAZANCNFSM4KYRVGXQ.


fix(guide): Change true and false to equal and not equal in ternary operator challenge

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Good catch!


Start the mod with no features on

I foolishly opened the game and turned everything off except feral combat training, which was the only thing I wanted from the mod, and went on to play normally for a few hours. Next day I couldn't load my save...
Please make it more clear that you need to restart for things to register, and make it start with no features activated so this doesn't happen to someone else.

There was a warning right above the settings. But I get the frustration. I am working on an overhaul of the settings anyway. Although it will take quite some work.
Note that most patches are not immediately required. I think the patches at might, all start with the suffix "create" and you need to pick the features in some way. Kineticist has a couple features which are granted automatically (selective metakinesis for example). Those you would need to remove with Toybox (or respec). One other big one is "Items.createKineticArtifact", it will add stuff to merchants. So that will probably be permanent.

Improved behavior. It will now display a one time message on boot up, as well as pop-up after settings have been changed. I also marked which patches will definitely become a permanently requirement.
Let me know, if I missed to mark patches.


Feat: add sponsors & banner images upload

Related to https://github.com/Giveth/giveth-dapps-v2/issues/3250

@mohammadranjbarz @RamRamez for the uploading the image get pinned successfully returning the hash but when I try to open it  (Ex: https://giveth.mypinata.cloud/ipfs/QmVB5Chh4FA3RSqwXj8a83SyuWTMH9DGo9s4r9bhJ1yydg)
I get this error (The owner of this gateway does not have this content pinned to their Pinata account. In order to view this content, please reach out to the owner. - ERR_ID:00006)
But when I upload the same image for example on FE app (update profile pic) it gives me back the same hash and it displays on the browser and on AdminJS.


adding git and databricks documentation

Started adding info on connecting git (specifically DevOps at the moment) to Databricks. I haven't attempted to connect Github to Databricks yet but when I do, I'll add a section on that.
It definitely needs some work! It might be too screenshot-heavy?

Doesn't look like the new page has been added to _quarto.yml. It's not appearing in the contents listing for me.

https://trello.com/c/512me2oD

 Databricks and DevOps documentation


latest alpha not listed in unity updates list

https://unity3d.com/unity/alpha/2019.1.0a14 is available,
but not listed in the unity's own update txt file.. maybe they have changed it?

recent updates are visible..


changed Session::getId()

You can not always access session from $request.
for example your package doesn't work on API

https://github.com/rinvex/laravel-statistics#usage

Note: Rinvex Statistics has a \Rinvex\Statistics\Http\Middleware\TrackStatistics middleware that attach itself automatically to the web middleware group, that's how it works out-of-the-box with zero configuration.

And accordingly, the web middleware group already has sessions initiated, and usually it's used for web requests, not API requests, so I don't see why we should change it?
If I'm missing something, please explain it more to me, and feel free to reopen this PR. Thank you

https://github.com/rinvex/laravel-statistics#usage

Note: Rinvex Statistics has a \Rinvex\Statistics\Http\Middleware\TrackStatistics middleware that attach itself automatically to the web middleware group, that's how it works out-of-the-box with zero configuration.

And accordingly, the web middleware group already has sessions initiated, and usually it's used for web requests, not API requests, so I don't see why we should change it?
If I'm missing something, please explain it more to me, and feel free to reopen this PR. Thank you


fix(LinearAlgebra/BilinearForm/Orthogonal): fix name of restrict_nondegenerate_of_isCompl_orthogonal

The lemma is renamed to the correct isCompl_orthogonal_of_restrict_nondegenerate and we add
alias restrict_nondegenerate_of_isCompl_orthogonal := isCompl_orthogonal_of_restrict_nondegenerate

Thanks!
bors merge


Allow building static native images

For reference, this is a Dockerfile that works: https://github.com/micronaut-projects/micronaut-maven-plugin/blob/master/src/main/resources/dockerfiles/DockerfileNativeStatic

How are these built in the maven plugin?

./mvn package -Dpackaging=docker-native -Dmicronaut.native-image.static=true

That uses the above Dockerfile

What base image is used?

oracle/graalvm-ce-$version-java11

This can be done with:
dockerfileNative {
    baseImage = "gcr.io/distroless/cc-debian10"
}
nativeImage {
    args("-H:+StaticExecutableWithDynamicLibC")
}

This can be done with:
dockerfileNative {
    baseImage = "gcr.io/distroless/cc-debian10"
}
nativeImage {
    args("-H:+StaticExecutableWithDynamicLibC")
}

Not quite the same, those are "mostly static" native images, libc is still required in the Docker base image
"Purely static", musl based native images can be run without any other dependencies (i.e. FROM scratch)

Not quite the same, those are "mostly static" native images, libc is still required in the Docker base image
"Purely static", musl based native images can be run without any other dependencies (i.e. FROM scratch)

./mvn package -Dpackaging=docker-native -Dmicronaut.native-image.static=true

That uses the above Dockerfile

How can I achieve this with Gradle?

./mvn package -Dpackaging=docker-native -Dmicronaut.native-image.static=true

That uses the above Dockerfile

How can I achieve this with Gradle?

@alvarosanchez am getting the below error
`cp: cannot stat '/usr/lib/gcc/x86_64-redhat-linux/4.8.2/libstdc++.a': No such file or directory
The command '/bin/sh -c mkdir ${RESULT_LIB} &&     curl -L -o musl.tar.gz https://musl.libc.org/releases/musl-1.2.1.tar.gz &&     mkdir musl && tar -xzf musl.tar.gz -C musl --strip-components 1 && cd musl &&     ./configure --disable-shared --prefix=${RESULT_LIB} &&     make && make install &&     cd / && rm -rf /muscl && rm -f /musl.tar.gz &&     cp /usr/lib/gcc/x86_64-redhat-linux/4.8.2/libstdc++.a ${RESULT_LIB}/lib/' returned a non-zero code: 1
`

@binoysankar you have to take a look at the base image which version of libstdc++ is present.

This can't be done at this moment with the Gradle plugin out of the box. You have a few options:

Generate "mostly" static native images: https://github.com/micronaut-projects/micronaut-gradle-plugin#build-mostly-static-native-images
Generate the Dockerfile with the plugin and then adapt it to your needs.


Can't get tconnectsync to work.

Any suggestions? I'm getting the following when running tconnectsync
`smatthew@Scotts-iMac tconnectsync % pipenv run tconnectsync
Loading .env environment variables...
Processing data between 2021-03-21 16:07:20.254153 and 2021-03-22 16:07:20.254153
Downloading t:connect ControlIQ data
Downloading t:connect CSV data
Traceback (most recent call last):
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/urllib3/util/connection.py", line 73, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File<EMAIL_ADDRESS>line 953, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
conn.connect()
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/urllib3/connection.py", line 353, in connect
conn = self._new_conn()
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/urllib3/connection.py", line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x1042764c0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='cgm-roberts.herokuapp.comapi', port=443): Max retries exceeded with url: /v1/treatments?count=1&find%5BenteredBy%5D=Pump%20%28tconnectsync%29&find%5BeventType%5D=Temp%20Basal&ts=1616454448.179522 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x1042764c0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/smatthew/Documents/src/tconnectsync/tconnectsync/main.py", line 59, in
main()
File "/Users/smatthew/Documents/src/tconnectsync/tconnectsync/main.py", line 55, in main
added = process_time_range(tconnect, time_start, time_end, args.pretend)
File "/Users/smatthew/Documents/src/tconnectsync/tconnectsync/tconnectsync/process.py", line 54, in process_time_range
added += ns_write_basal_events(basalEvents, pretend=pretend)
File "/Users/smatthew/Documents/src/tconnectsync/tconnectsync/tconnectsync/sync/basal.py", line 68, in ns_write_basal_events
last_upload = last_uploaded_nightscout_entry(BASAL_EVENTTYPE)
File "/Users/smatthew/Documents/src/tconnectsync/tconnectsync/tconnectsync/nightscout.py", line 41, in last_uploaded_nightscout_entry
latest = requests.get(NS_URL + 'api/v1/treatments?count=1&find[enteredBy]=' + urllib.parse.quote(ENTERED_BY) + '&find[eventType]=' + urllib.parse.quote(eventType) + '&ts=' + str(time.time()), headers={
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/Users/smatthew/.local/share/virtualenvs/tconnectsync-MOJrdNEQ/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='cgm-roberts.herokuapp.comapi', port=443): Max retries exceeded with url: /v1/treatments?count=1&find%5BenteredBy%5D=Pump%20%28tconnectsync%29&find%5BeventType%5D=Temp%20Basal&ts=1616454448.179522 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x1042764c0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))
smatthew@Scotts-iMac tconnectsync %
`

Hi, I think you might have specified your Nightscout address improperly.
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='cgm-roberts.herokuapp.comapi', port=443):

Make sure your NS_URL ends in a slash and is a full url with http/https prefix

Doh! I thought it was something like that......
Now it runs... but doesn't do anything. Any suggestions?
smatthew@Scotts-iMac tconnectsync % pipenv run tconnectsync
Loading .env environment variables...
Processing data between 2021-03-21 18:26:51.460202 and 2021-03-22 18:26:51.460202
Downloading t:connect ControlIQ data
Downloading t:connect CSV data
Last Nightscout basal upload: None
Last Nightscout bolus upload: None
Last Nightscout iob upload: None
No IOB events: skipping
Added 0 items

Hm, do you mind logging in to the t:connect website and verifying that data appears in the therapy timeline there?
I just added a --check-login option, which might also help. It will try to log in to each API and output some data from it, and might help see whether there is any data in t:connect that this script can query.
You can also try increasing the date range using the --days option, in case there is no uploaded pump data from the past day.


Use detail value for notes

Use detail value for notes
This adds support for using the detail value defined within a block passed to desc as notes value exposed in swagger doc. Next I'd deprecate notes and prefer detail as specified by grape instead.
CAUTION: only works on grape version >= 0.12.0
$ GRAPE_VERSION=HEAD bundle exec rspec ./spec/default_api_spec.rb:62

fixes #212
Please have a look at the spec, is this the right format and place to put? I had a hard time to figure out how the specs are structured. pls advise what’s preferred approach..

I forgot something, I think we need an entry for https://github.com/tim-vandecasteele/grape-swagger/blob/master/UPGRADING.md. If you were using notes before it will get overwritten by detail now, right? That's what we want, but it should be called out to avoid surprises.

Next, the build will run against many versions of Grape. It will be failing now, and needs to be fixed somehow, probably with a pending depending on the version of Grape.

ok sure, are there any plans to drop support for older grape versions? beeing backwards compatible to the last, let's say, three previous version sounds reasonable to me..

In theory yes, in practice not really. I think we should drop support only if there's a good reason. Interestingly this is the first feature as far as I know. I would be willing to drop support for something major, like https://github.com/tim-vandecasteele/grape-swagger/issues/219

ok sure fine with me.

ok added minor updates, mainly  README & UPGRADING

I don't see UPGRADING.md changes :(

sorry, changes are now pushed.

Very good, merging.

great, thanks!

cool!


Fix broken links in Contributing.md

Fixing two issues:

SyntaxSupport should use the [][] style link because the link is defined at the bottom of the page.
We need to move the @Comment to the end of the page to avoid hitting https://github.com/apple/swift-docc/issues/685#issuecomment-1666379587

Thanks @natikgadzhi for noting this.

@swift-ci Please test

@swift-ci Please test

@swift-ci Please test Windows

@swift-ci Please test Windows


can you pls make a sfml totorial i really need one im stuggeling with installing it the only ones i found are with 2019 i have 2022 pls just help

@OnionOnGithub You could give vcpkg a try!

@xorz57 sorry to borther you again i made the things you sayed with vcpk and i tryed to run the ant simulation thing and i got this error
CMake Error at CMakeLists.txt:9 (find_package):
By not providing "FindSFML.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "SFML", but
CMake did not find one.
Could not find a package configuration file provided by "SFML" (requested
version 2) with any of the following names:
SFMLConfig.cmake
sfml-config.cmake

Add the installation prefix of "SFML" to CMAKE_PREFIX_PATH or set
"SFML_DIR" to a directory containing one of the above files.  If "SFML"
provides a separate development package or SDK, be sure it has been
installed.
also there are 3 red lines i have no idear what to do anymore i watch like 15 videos about that stuff but i dont get it

@OnionOnGithub When you gave the command vcpkg integrate install vcpkg told you to give a parameter when using CMake.

thank you so much it works now

Nevermind i got cmake do smake stuff and are able to open it in visual studio and i try to run it but it does not work im really new to cmake and smfl so idk what the problem is
if i try to run it in visual studio it cant find a file im so lost and im really sorry for that

I opened pull request #9 to fix this. I had trouble getting this project to run on windows but after what I did it now works on windows and linux whether you use a package manager like conan/vcpkg or not!


Test for unicast validation

A test for  the function checkCast(), which is used when creating
a new pool manager to verify that the first octet of the ranges
is 02,06,0A or 0E.

please ignore this PR till I fix the commits...


Add runtime dependencies of backward-cpp to docker image to get more informative stack traces on crashes

Stack traces are very basic currently, but they can be improved: https://github.com/bombela/backward-cpp#libraries-to-read-the-debug-info

Backward-cpp actually complains during build that it looked for libdwarf, libfd or libdw, but found none (if there are none visible to it during the build).

ubuntu is ok when apt install binutils-dev


Client does not work with remarkable.net

When using Remarkable.net error messages can be seen in stdout and the display doesn’t update. The error messages can be tracked back to display refresh code in remarkable.net and specifically the C# ioctl call into libc returning -1.
I debugged this at great length with a debug build of the r2fb client and enabled function level debug logging going to stdout.
The client library was preloaded correctly into dotnet and the function tracer output could be seen. However when the main application (my DLL instead of the dotnet interpreter binary) was running it appeared that the function hooks were not being called at all.
I suspect that the existing open/close/ioctl hooks don’t work at all with dotnet applications.
As a workaround I preloaded the binary but also invoked functions directly in the client library instead of libc. At which point everything worked as expected.
I will put a PR into remarkable.net to call the client libraries directly but long term it might be better to have an API (socket, tcp) to use instead as when the client version number changes remarkable.net will break.

@i-am-shodan https://github.com/parzivail/ReMarkable.NET/pull/5 this was the PR you mentioned, right?
As for the API, it's not really documented well, but the client does have a protocol that it uses to communicate with the server that can be used. It's using msgsnd to send messages to a message queue that the server handles. It also uses smem_open to allow waiting on updates to complete.
https://github.com/ddvk/remarkable2-framebuffer/blob/833dcbd7d9e87ac91e92ba749b4d3f839b93edef/src/client/main.cpp#L132-L191

#14 was where progress was previously tracked for getting rm2fb to work with all the frameworks/libraries. It might be safe to close both that issue and this issue. We'll just revisit it when we need to make breaking changes to rm2fb, or if someone wants to change the remarkable.net implementation to directly speak the protocol.


Navbar formatting is weird

The current nav include is creating strangely formatted content (probably NOT what is intended):

Yeah... when I created the remote theme we didn’t have the About pull down. The remote theme does automatically create entries in the nav bar, but I may have to rethink how that’s done with pull downs.

the changes made in llnl/llnl.github.io#102 were not merged back to this theme.

Also needed: 2a7a45c and 64626d6


Can't install package with custom runtime

Describe the bug
I am attempting to add a package and it gives me unactionable error.
Version

Browser

[x] Electron distribution
[ ] Chrome
[ ] Safari
[ ] Firefox
[ ] Edge

OS

[ ] macOS
[x] Windows
[ ] Ubuntu

To Reproduce
Steps to reproduce the behavior:

dotnet new -i Iciclecreek.Bot.Templates
md foo
cd foo
dotnet new LucyBot
Load foo\foo in composer
Add package Iciclecreek.Bot.Builder.Dialogs.Database.Cosmos

Expected behavior

should be able to add nuget package with custom runtim/
Error message needs to be more descriptive so I can try to resolve the issue
Color schema is unreadable.

Screenshots

@tomlm  did you create a runtime definition that tells Composer how to deal with your customized runtime?

the path to my csproj is in the configuration, I am building and running the bot externally


Rhs only supports a single Condition, but ecmarkup/grammarkdown allow multiple.

In https://tc39.es/proposal-async-explicit-resource-management/#prod-T6VINPU5 I have two rhs constraints: +Using and +Await. However, esmeta complains during the extract phase with an error pointing to the preceding line:
========================================
 extract phase
----------------------------------------
[ESMeta v0.1.0] [Parser (List[spec.Production])] [14.110] failure: end of input expected

          [+Using] `using` [no LineTerminator here] [lookahead != `await`] ForBinding[?Yield, ?Await, +Using]
                                                                                ^

grammarkdown's RightHandSide definition takes a Constraints: https://github.com/rbuckton/grammarkdown/blob/main/src/nodes.ts#L1556
grammarkdown's Constraints definition takes multiple Argument nodes (i.e., +Foo, ~Bar): https://github.com/rbuckton/grammarkdown/blob/main/src/nodes.ts#L458
grammarkdown's EcmarkupEmitter emits constraints separated by commas:

https://github.com/rbuckton/grammarkdown/blob/main/src/emitter/ecmarkup.ts#L145
https://github.com/rbuckton/grammarkdown/blob/main/src/emitter/ecmarkup.ts#L337

ecmarkup embeds the text verbatim: https://github.com/tc39/ecmarkup/blob/main/src/RHS.ts#L29
esmeta's Rhs definition only seems to support one Condition/RhsCond: https://github.com/es-meta/esmeta/blob/main/src/main/scala/esmeta/spec/Rhs.scala#L10

Thanks for the detailed report! I'll take a look.

Hi, @rbuckton. Thanks for reporting the issue related to the RHS conditions.
I have a question about the multiple conditions for a single RHS alternative. Is defining multiple conditions the official notation in ECMA-262? The most recent version only mentions single condition cases, such as [+Return] or [~Return].
If so, what is the exact meaning of the multiple conditions for a single RHS alternative? Conjunction or Disjunction? For example, in the following case, is this RHS alternative available when 1) both Using and Await are true or 2) when one of them is true?
[+Using, +Await] using [no LineTerminator here] await [no LineTerminator here] ForBinding[?Yield, +Await, +Using]

I would have to defer to an editor. My expectation is that it is a conjunction, as a disjunction could be represented easily with multiple right-hand sides. The same can't be said for a conjunction. At least, that was my impression when I added the functionality to grammarkdown.

The original feature ask was for a conjunction, and can be found here: https://github.com/rbuckton/grammarkdown/issues/25

I supported multiple RHS conditions in #134. I will close this issue if you don't have any other problems related to multiple RHS conditions.

I've tested this locally and it seems to work fine, thanks!


Disables Telemetry opt-in screen/networking

Fixes: https://github.com/brave/brave-browser/issues/4771
Technically if the opt-in never occurs the metric events never have a chance of getting sent, but as an extra measure the networking code is made unreachable by this PR. cc: @tomlowenthal

Could you do a test to make sure this doesn't break too? thanks.


start.js: Unhandled Promise Rejection: SyntaxError: Invalid regular expression: invalid group specifier name

Describe the bug
Getting the error Unhandled Promise Rejection: SyntaxError: Invalid regular expression: invalid group specifier name in Safari only. The homepage loads, but anything beyond that is not working. I have  no idea when this started, I am just now to the point where I can start testing other browsers and certainly did not expect this. Works fine in Chrome (Brave) and Firefox. Not able to test windows just yet. I really don't know how to start debugging this so any help, pointers, advice is greatly appreciated! Thanks!
Reproduction
Not likey able to offer any reporoduction steps since I really have no idea what this error means or implies. I have 0 errors or issues on other browsers, only Safari reports this.
Logs
Unhandled Promise Rejection: SyntaxError: Invalid regular expression: invalid group specifier name

(note - i cannot copy the entire error trace from Safari, but it states this happens in line 1644 in start.js and this is the code surrounding that line - see attachments for full output)

if (hydrate) {
     await client._hydrate(hydrate); <<< this is line 1644
}

System Info
System:
    OS: macOS 12.3.1
    CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
    Memory: 7.38 GB / 40.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 17.2.0 - ~/.nodenv/shims/node
    npm: 8.1.4 - ~/.nodenv/shims/npm
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.34
    @sveltejs/kit: next => 1.0.0-next.308
    svelte: ^3.44.0 => 3.46.6

Severity
blocking all usage of SvelteKit
Additional Information
Blocking at least for Safari Version 15.4 (176<IP_ADDRESS>.13)
Attached are the screenshots of the Safari console

According to a comment on https://stackoverflow.com/questions/51568821/works-in-chrome-but-breaks-in-safari-invalid-regular-expression-invalid-group (which I have not verified), Safari does not support lookbehind assertions in regexes. That might be a place to start looking: any recent changes to regexes.

As far as I can tell, SvelteKit itself doesn't use any lookbehinds, so if that's what's causing this, it would be in your application code or in some dependency.
Without a reproduction, that's about all anyone's going to be able to tell you.

Yea I read about the lookbehind and Safari, I guess I was just confused as to why it was reporting the error as coming from start.js rather than the point of the actual regexp statement, if that were indeed the issue. I will continue with my efforts. Thanks for the pointers!

I was able to track down the problematic regex. For anyone else that may happen on to this problem, I just searched all files for ?<=\ and then implemented a workaround so that it doesnt need to be used. Still wish it could have reported the error at the point of failure as oppsed to just start.js. I even did npm run build followed by npm run preview hoping that it would point me to the actual spot where the regex was located, but it only pointed me to the same place in the built code.