How to include missing libraries in order to parse code

Brief Description
I want to parse basic C++ code. My programm is just a copy of following example:
https://github.com/mono/CppSharp/blob/master/examples/Parser/Parser.cs
When I run the programm it states that the inluded libraries are required:
System.Exception: Couldn't parse source code. C:\Path\ToFile\FlatFileTest.cpp(1,10): fatal: 'stdafx.h' file not found
Do I have to include every library by hand or is there a way to do it automatically? Or is there any workaround? And why does this even require the libraries?
Stack trace or incompilable generated code
Test method Tests.ClassFileLoaderCppTest.LoadTest threw exception:
System.Exception: Couldn't parse source code. C:\Path\ToFile\FlatFileTest.cpp(1,10): fatal: 'stdafx.h' file not found
bei Sas.FABA.BuildTools.Common.ClassFileLoaderCPP.GetAstContext(String file, String folder) in C:\Dir\Cake\Source\Common\ClassFileLoaderCPP.cs:Zeile 152.
bei Sas.FABA.BuildTools.Common.ClassFileLoaderCPP.<>c__DisplayClass2_01.<Load>b__3(<>f__AnonymousType01 data) in C:\Dir\Cake\Source\Common\ClassFileLoaderCPP.cs:Zeile 59.
bei System.Linq.Enumerable.<>c__DisplayClass7_03.<CombineSelectors>b__0(TSource x)    bei System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
bei System.Collections.Generic.List1..ctor(IEnumerable1 collection)
bei System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
bei Sas.FABA.BuildTools.Common.ClassFileLoaderCPP.Load[T](String folder, String filePattern, LoaderFilters filters) in C:\Work\Cake\Source\Common\ClassFileLoaderCPP.cs:Zeile 41.
bei Tests.ClassFileLoaderCppTest.LoadTest() in C:\Dir\Cake\Source\Tests\ClassFileLoaderCppTest.cs:Zeile 15.

@StephanBueeler do you pass this FlatFileTest.cpp to C++#? If you do, you shouldn't. C++# only works with headers to generate an API. CPP-s contain implementations, not interfaces, so C++# can not, should not and will not work with them.

@ddobrev Yes I do. Because I just want to use a small portion of C++#.
My main goal is to parse cpp-Testfiles to extract the methodname and its attributes (like TESTCASE_AUTHOR, TESTCASE_DESCRIPTION etc.). I want to use C++# to do this, because Clang seems to be a more difficult solution.
Is this possible? And if not, have you got any other idea of doing this?

@StephanBueeler aren't all methods you want parsed declared in a header as well? Why don't you parse the headers instead? Is the reason that those attributes are only declared in the CPP? If so, is there a way you could move them to the headers?

@ddobrev That's irrelevant for the issue at hand. Stephan would face the same issue with headers.
@StephanBueeler Look at the ParserOptions class, it provides methods for setting up the include context in the parser for Visual Studio.

@tritao if the methods are declared in the headers along with those attributes, the latter would be parsed as macros and @StephanBueeler would be able to read them from the AST.

It makes zero difference to Clang whether the source code we pass comes
from a .c or .h file. The issue here is an incorrect include search setup.
On Sep 25, 2017 13:24, "Dimitar Dobrev"<EMAIL_ADDRESS>wrote:

@tritao https://github.com/tritao if the methods are declared in the
headers along with those attributes, the latter would be parsed as macros
and @StephanBueeler https://github.com/stephanbueeler would be able to
read them from the AST.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mono/CppSharp/issues/963#issuecomment-331864637, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AOLKpfnemmiYTlbIZxCl0Fnvn5X-Cq0vks5sl5t4gaJpZM4PikA0
.

@tritao I was assuming the content of that CPP. If that content is actually declarations rather than definitions, then yes, the extension doesn't matter. Anyway, I hope you're right that this can be fixed with a simple configuration.

@StephanBueeler if @tritao is right and you get this to work with just configuration, please close this issue.

@StephanBueeler How did you end up fixing the issue? Post here so people can find the solution next time.

@tritao I didn't. I haven't had time to work on this problem, but now I'm on it again.
I've made this simple method "GetASTContext" in order to parse a file.
GetASTContextMethod.txt
It's basically your same exact example, but I still have problems with the following appearing issue:
When I parse the source file, following exception appears:
GetASTContextMethodException.txt
It seems that I'm missing some header files, but how can I find and include them ?

Maybe try going for a newer language version, C++11 or C++14.

That brought me further. Now, looking at the ASTContext, something came into my mind.
I am trying to parse C++ code to read out the contents of "#defines".  It appears that they don't show up in the AST tree.  Am I missing a setting or is this by design?
If there are any other ways to do this such as inline methods I may be able to do this.  Would this help?  If not I may just need to parse the values out by text parsing.
Thanks in advance for all your help.

@StephanBueeler you should be able to find them in the lists of macros declaration have.

I'm back with two more questions:

Is it possible to ignore all header files and parse just one simple file?
When trying to parse following file:
ErrorFile.txt
It throws a System.InvalidCastException: 'The object of type "CppSharp.AST.Class" couldn't be converted to "CppSharp.AST.ClassTemplateSpecialization".' Is this an error by me?

The headers you want parsed are those added to Module.Headers, however, dependencies are parsed as well;
We might have a bug. Do you use the NuGet or master? If it's the latter, please try debugging and post the results.


Clients MUST support gzip

From the spec – http://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3-1
“User-agents MUST support gzip compression. Regardless of the
Accept-Encoding sent by the user-agent, the server may always send
content encoded with gzip or deflate encoding.”
This change adds transparent decompression of gripped content.
I found this when I modified client code to use SPDY to talk to an
origin server. The origin is using nginx. I was getting errors when
trying to unmarshall JSON:
invalid character '\\x1f' looking for beginning of value

Enabling debug logging, I saw the request:
Header:               map[Url:[/public/dashboards?slug=carers-allowance] Version:[HTTP/1.1] Host:[example.gov.uk] Scheme:[https] Accept:[application/json] User-Agent:[Performance-Platform-Client/1.0]  Method:[GET]]

and a response:
map[Status:[200] Content-Type:[application/json] Via:[1.1 varnish] Date:[Thu, 12 Feb 2015 19:52:58 GMT] Cache-Control:[max-age=300] Access-Control-Allow-Origin:[*] X-Frame-Options:[SAMEORIGIN] X-Varnish:[1873677853<PHONE_NUMBER>] Age:[0] X-Cache:[HIT] Content-Encoding:[gzip] Version:[HTTP/1.1] Server:[nginx] Alternate-Protocol:[443:npn-spdy/2 443:npn-spdy/2] Strict-Transport-Security:[max-age=2628000]]
Data:                 [1f 8b 08 00 00 00 00 00 00 ... 05 af e6 9f 47 2a 3c 00 00]

This shows that the response is coming back compressed, even though the
client didn’t ask for that.

Seems to be a resource leak somewhere. Seeing
Error: Max concurrent streams limit exceeded. and not sure if this is due to my change.

Resource leak isn't due to this change. It's an existing thing that I'll open a separate issue for.

I'm not too keen to add transparent decompression, since "net/http" doesn't (see "net/http.Transport.DisableCompression"'s documentation) and the client may wish to store the compressed version directly, without having to recompress after transparent decompression.

What about a different patch?
In this instance, responses were compressed even though the client didn't ask for compressed responses. It feels like a client shouldn't have to decompress that response.

Ah, fair point, I'll get to work

Tweaked patch that checks the request to see if the Accept-Encoding header was set.

Sorry, didn't see you'd also done roughly the same thing. Thanks a lot for your help; much appreciated =)

np, thanks for fixing it.


Ox Cart using wheat + Army upkeep by Money or Food (or both)

I would like to know if it would be possible:

Oxcart "eats" 1x wheat from the stockpile as he is delivering goods - if no wheat then he is destroyed together with goods before the dropoff (or waits indefinitely until wheat is brought to the stockpile - whichever is easier to code).

Units have money upkeep to compensate for late-game massive resources and money stockpiling for no real usage. If no money, it hits you with a massive negative impact for popularity to simulate riot. ( Or connect them to food usage - as it stands now army doesn't eat if I am not mistaken - only civilians. ) Huge standing armies/garrisons waiting for Your Highness's dreams to make an even bigger army should cost you more than a single weapon and a couple of coins.

Negative/Positive buildings cost to destroy are massive or impossible. No more mister Bad Guy for the first half-hour - get the production going and then mister Good Guy when attacking the enemy. Like people have no memory whatsoever.

Thanks for Your time! Enjoy the weekend

1, ox eats wheat - This is not really a good idea in my opinion. An ox carries 86 gold, and now you are forcing a cost of 23 gold to recieve it (purchasing wheat), or more if you take into account the amount of bread you can make out of that one wheat (32-48 gold sell value depending on fear factor). the dying ox isnt realistic as he just respawns. And stone is needed early for castle, or for gold for troops, when you dont have wheat arriving yet.
2, units have money upkeep - I can see an arguement for it, though i personally dont like it, maybe thats because i play a low-resource start multiplayer game mode (Called bootstrap - no gold or stone to begin with) and popularity can be awkward at the best of times without being punished for keeping a few units alive to defend while you get your base rebuilt. The food usage is not a good idea as it just incentivizes providing no food and full beer.
3, good/bad things cost to destroy - again i see an arguement here, however it depends on gamemode, traditional multiplayer with peacetime this might pay off (though they would never try it i dont think), with bootstrap mode, you rarely see either good or bad things, and when you do, you dont often see people trying to switch.
As far as I can see, all this will achieve is to prevent anyone from using good things, as bad things you earn enough to counter the weaker army, but good things can wreck your economy so bad that even the extra strength doesnt make up for it for more than a few minutes. Which means someone would only build good things after they have enough troops to win the game, and they are going all-in, while bad things could still be used as much as they currently are.
Maybe a better alternative would be a "memory approach" where your good/bad things effective level would be the average of your good/bad things settings for the last 5-10minutes. So if you go bad guy for 5 minutes, you have to be good guy for 5 minutes before you start getting the good guy bonuses. But again, good things are underpowered enough already that this would most likely just result in nobody using them ever.


Make sure output_data_dir exists.

Make sure output_data_dir exists.
Should fairly safe to call directory creation since we do not expect anyone else creating the directory at the same time as code is running.
No  tests added since I am not sure if can properly test it without running on EASE.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Closing this pull request. Will post a different one based on discussed approach in a moment.


Register method exits at the start of the application

Consider the patch here. There is only one matched line which is return null and that is not reached in left version. In the current implementation, a method exit event is registered after a breakpoint is reached so we do not get any method exit events as well. Hence, we need to implement what the title says.

Method exits are not a priority right now and hence they have been disabled here.


Removal of UuidValue.nil, get a const nil UUID

With the latest version of this library, the UuidValue.nil constant has been deprecated, in favor of using Namespace.nil.uuidValue, but this change also implies that the expression is not const anymore.
Solutions:

Keep UuidValue.nil as a const constructor to UuidValue and remove the deprecation flag
Find a way to make Namespace.nil.uuidValue constant (I don't think it's possible though)
Add a const constructor to UuidValue fromNamespace to generate an UuidValue from the namespace enum

For now, the only workaround I have to circumvent the deprecation warning and keep my constant uuids is to manually generate them with const nilUuid = UuidValue.raw("00000000-0000-0000-0000-000000000000") which is not ideal
Implementation of fromNamespace could look like:
  const UuidValue.fromNamespace(Namespace ns) :
    uuid = ns == Namespace.nil || ns == Namespace.NIL ?
      "00000000-0000-0000-0000-000000000000" :
        ns == Namespace.dns || ns == Namespace.DNS ?
          "6ba7b810-9dad-11d1-80b4-00c04fd430c8" :
            ns == Namespace.url || ns == Namespace.URL ?
              "6ba7b811-9dad-11d1-80b4-00c04fd430c8" :
                ns == Namespace.oid || ns == Namespace.OID ?
                  "6ba7b812-9dad-11d1-80b4-00c04fd430c8" :
                    ns == Namespace.x500 || ns == Namespace.X500 ?
                      "6ba7b814-9dad-11d1-80b4-00c04fd430c8" :
                        ns == Namespace.max || ns == Namespace.MAX ?
                          "ffffffff-ffff-ffff-ffff-ffffffffffff" :
                            "00000000-0000-0000-0000-000000000000"; // can't throw an exception here otherwise it's not constant anymore

Hey, I don't understand what your purpose is, can you provide an application example?
If you just want to get the corresponding string UUID, you can use Namespace.nil.value

Maybe you want: https://github.com/dart-lang/language/issues/2780

Indeed, that's the feature I need.
The use case is to have my UUIDs be able to default to the nil UUID in case I don't specify one.

Sorry for the delay. I think I will do the 3rd option with FromNamespace. That feels the least intrusive way to provide you what you need without breaking others. There are a lot of users of this library, and I have to balance needs versus not breaking others.
I will try to get a new version up today with the changes.

Ok, I uploaded 4.5.1 with fromNamespace using a mostly similar block of code as you provided. I just didn't like duplicating the strings, so I found a way to keep it all coming from 1 source. Give it a go, and let me know if you have any other issues and we can reopen this or start a new one.

Ok, I uploaded 4.5.1 with fromNamespace using a mostly similar block of code as you provided. I just didn't like duplicating the strings, so I found a way to keep it all coming from 1 source. Give it a go, and let me know if you have any other issues and we can reopen this or start a new one.

Hey, wouldn't it be better to write it like this?
  UuidValue get uuidValue => switch (this) {
        nil || NIL => const UuidValue.raw(InternalConstants.zNIL),
        dns || DNS => const UuidValue.raw(InternalConstants.zDNS),
        url || URL => const UuidValue.raw(InternalConstants.zURL),
        oid || OID => const UuidValue.raw(InternalConstants.zOID),
        x500 || X500 => const UuidValue.raw(InternalConstants.zX500),
        max || MAX => const UuidValue.raw(InternalConstants.zMAX),
      };

Let Dart solve the rest.

Ok, I uploaded 4.5.1 with fromNamespace using a mostly similar block of code as you provided. I just didn't like duplicating the strings, so I found a way to keep it all coming from 1 source. Give it a go, and let me know if you have any other issues and we can reopen this or start a new one.

Hey, wouldn't it be better to write it like this?
  UuidValue get uuidValue => switch (this) {
        nil || NIL => const UuidValue.raw(InternalConstants.zNIL),
        dns || DNS => const UuidValue.raw(InternalConstants.zDNS),
        url || URL => const UuidValue.raw(InternalConstants.zURL),
        oid || OID => const UuidValue.raw(InternalConstants.zOID),
        x500 || X500 => const UuidValue.raw(InternalConstants.zX500),
        max || MAX => const UuidValue.raw(InternalConstants.zMAX),
      };

Although deprecation warnings are used, there will still be people who use deprecated properties because they did not change in time, right?
In this case, the uppercase enumeration will become InternalConstants.zNIL, which is a difficult trade-off.
Is this a bug? Not sure. Consider it a known issue.
Let Dart solve the rest.

My thought was that if they are using a new feature, they are already upgrading their code to use it, so they can take the extra few seconds to lowercase their enums.
But if you think it will cause problems for s lot of people, I can expand it. But that means anyone using the new function, will get depreciation warnings, even if they use the new value.
Maybe the better approach is to at least document that it only works with lowercase enums?
You are also correct on the switch statement, that is better. I was low on free time and just copy and pasted the fromNamespace one effectively. The const part doesn't make it const until there is a language change, but figured I'd get a head start.
If anyone thinks these are serious issues, I can revert uuidValue to be just UuidValue.raw(value) like it used to be. And I can add the deprecated values to the switches and branches.


Include hpp and c files in CMakeLists.txt

Which branch your pull-request should merge into?

dev: Current 2.x BugFixs or Features

Describe your changes
Issue ticket number and link
Checklist before requesting a review
For each PR

[ ] Add Copyright if it missed:
- "Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md)."

[ ] I have performed a self-review of my code.
Optional:

[ ] I have checked readme and add important infos to this PR.
[ ] I have added/adapted some tests too.

For core/new feature PR

[ ] I have checked readme and add important infos to this PR.
[ ] I have added thorough tests.

#1583


Macro to find next/previous string

Am trying to define macros that will that move the cursor to the next/previous space. My first go at this:
settings.json
    "macros": {
        "goNextSpace": [
            "actions.find",
            {"command": "type", "args": {"text": " "}}
        ]
    }

and keybindings.json
    {
        "key": "alt+shift+]",
        "command": "macros.goNextSpace"
    }

Naturally enough, this is opening the find text input, which I don't want.. it is also inserting a space.. Any clues how I can make a macro that will just go to the next space without requiring the text input - and how to make the corresponding previous version?
Also, when I hover the mouse over macros.goNextSpace in keybindings.json, I get a pop-up that says Value is not accepted. Valid values: ....
Rob
:)

I was also not getting a simple macro to work. Tried the fork https://marketplace.visualstudio.com/items?itemName=ctf0.macros&ssr=false#overview which seems to do the job as expected.

Brilliant. I will try it

Got this to work using vscode-powertools at last


Update latest image tag to 3.4.6

The current latest tag is 3.4.3, which is 3 patch versions behind at this point.  https://wiki.shibboleth.net/confluence/display/IDP30/ReleaseNotes#ReleaseNotes-3.4.6(Oct2,2019)

Note that 3.4.6 is required for the latest version of shib-cas-authn: https://github.com/Unicon/shib-cas-authn3/releases/tag/3.3.0 .  3.4.6 is necessary to fix a security flow problem with ExternalAuthentication, such as via CAS.

I think the Unicon images have been abandoned since I left the organization in July. I no longer have commit access or I would personally keep them updated.
I've thought about forking the project and updating them, but I don't know if anyone would use/trust Docker Hub images from the jtgasper3 org as much as they would them from the unicon org. Thoughts?

Good to know.  The other option is seeing how much effort it would be to migrate to the TIER Shibboleth IdP containers.
https://hub.docker.com/r/tier/shib-idp
https://spaces.at.internet2.edu/plugins/servlet/mobile?contentId=140181885#content/view/140181885

I migrated out config to the TIER images, but it ended up being quite a task since the TIER images are using a full tomcat setup instead of the simple jetty over an exploded war overlay.  The Unicon image architecture seems like a much better design.
@jtgasper3 - If Unicon is no longer able to support it, but there are other institutions that could benefit from this, perhaps we could fork it into the Azusa Pacific University organization and I could add you as an outside maintainer to the org.  I'm going to do some tests between the two setups and compare the performance between the two.  One thing is for sure - image builds for this repo are much faster than the TIER image builds when using the shib-cas-authn3 plugin since it means rebuilding the war file.

I migrated to use the TIER images but I definitely prefer the approach of this image (Jetty, multistage builds, issues on the github repo). I think it's still possible to influence the development of the TIER/TAP images though and maybe that's the place to put effort now.

@netscruff - I prefer these images as well.  It looks like there's a broken link in the Dockerfile in the repo for updating to 3.4.6.  If Unicon isn't going to maintain this anymore and @jtgasper3 would rather not use his namespace, I could fork it under the Azusa Pacific University org and add @jtgasper3 as an external member.

I got our images fully ported over to the TIER images.  I have to agree with @netscruff that jetty with the simple overlay is a better architecture for containerization.  There are other small but not insignificant things, like logging and not having to rebuild the war file for added Java deps, that are also done better out of box with these images.

I'm quite partial to this image too. I've tried to optimize it in every way I can think of.
I'm good hosting it under jtgasper3, I just didn't know if folks would trust it. But if you folks are fine with it, then I'll give it ago. I've got a bit of traveling during December, but I'll get the image current this month.

I added myself as a watcher on https://github.com/jtgasper3/docker-shibboleth-idp .  Thanks, @jtgasper3, and please feel free to reach out to me if you'd like any help with testing or development.

This is an old thread already, but as I stumbled upon it, I believe others might too. So to let you know: CSC.fi has a fork and they seem to be doing wonderful work in getting this image updated: https://github.com/CSCfi/shibboleth-idp-dockerized . There seems to be quite many forks of this Unicon project (which seems abandoned) and I don't know about activity of those other forks, but CSC guys have done very good work around Shibboleth, so in my opinion their work is worth of following.

@vwbusguy I have updated Java 8, Jetty 9 and Shibboleth IdP to the latest release (i.e., Update latest image tag to 3.4.7)
based on Unicon's Shibboleth IdP and SP Docker image which have been cited in README.
Quote the answer to Issue Jetty crashes when running the idp #4

I have validated all the the three (3) projects with the latest commit (i.e., commit #22) based on README tutorial by git clone the github repository (i.e., git clone https://github.com/winstonhong/Shibboleth-SAML-IdP-and-SP) on brand-new Ubuntu 18.04.

https://github.com/winstonhong/Shibboleth-SAML-IdP-and-SP


Create pkg-config files from CMake

Fixes #10727
@nanahpang
@jtattermusch

@zackgalbreath  I started the tests. In the meantime, you'll need to sign the CLA.

It would also be nice to add some check for the .pc files being setup correctly to one of our distribtests so that this gets continously tested.

@zackgalbreath  have you been able to figure out the CLA signing process?

@zackgalbreath  can you please regenerate the CMakeLists.txt to resolve the merge conflict?
It would be good to expand our distribtests to make sure the generated .pc files are actually installed and that they work as expected.
The scripts being run by our distribtests are here: https://github.com/grpc/grpc/tree/master/test/distrib/cpp

The EasyCLA check is looking good, glad that it finally worked for you!

Are these four failing checks something I should look into?

tasks.distribtest.cpp_linux_x64_jessie_routeguide fails with
https://source.cloud.google.com/results/invocations/96da7424-2661-4830-be5a-536ef2842063/targets/github%2Fgrpc/tests
+ make
protoc -I ../../protos --cpp_out=. ../../protos/helloworld.proto
g++ -std=c++11 `pkg-config --cflags protobuf grpc`  -c -o helloworld.pb.o helloworld.pb.cc
protoc -I ../../protos --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` ../../protos/helloworld.proto
g++ -std=c++11 `pkg-config --cflags protobuf grpc`  -c -o helloworld.grpc.pb.o helloworld.grpc.pb.cc
g++ -std=c++11 `pkg-config --cflags protobuf grpc`  -c -o greeter_client.o greeter_client.cc
g++ helloworld.pb.o helloworld.grpc.pb.o greeter_client.o -L/usr/local/lib `pkg-config --libs protobuf grpc++` -pthread -Wl,--no-as-needed -lgrpc++_reflection -Wl,--as-needed -ldl -o greeter_client
/usr/bin/ld: cannot find -lcares
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
Makefile:44: recipe for target 'greeter_client' failed

The above error seems to be happening because our Makefile build actually links all the dependent libraries statically (e.g. cares, libz) as part of libgrpc, so e.g. -lcares should not be used for the pkgconfig files generated by the Makefile.

Known failures:
https://github.com/grpc/grpc/issues/20519
https://github.com/grpc/grpc/issues/20472

This change breaks linux/grpc_distribtests_standalone test. https://fusion.corp.google.com/projectanalysis/summary/KOKORO/prod%3Agrpc%2Fcore%2Fmaster%2Flinux%2Fgrpc_distribtests_standalone

@nanahpang  I think you're wrong.
According to the build history the distribtests were green for a few more builds after merging this PR but they broke once https://github.com/grpc/grpc/pull/20380/files got merged.
The first failing build is https://source.cloud.google.com/results/invocations/3323a229-9ae7-4c3a-abd3-3ef410cacd9d/targets
This PR got integrated earlier at https://source.cloud.google.com/results/invocations/e821ab54-3f6d-4ac1-859b-5e40a841a63c/targets

Yes, I have noticed that the failure happened when #20380 got merged. But the changes in #20380 doesn't modify pkg-config. Maybe that PR didn't sync with your changes. I will ask Mark to sync and rebuild that PR first.

LGTM, btw.


Step 5.5 Output temporary URI can be confusing

In Step 5.5 we state that

You won't be using this yet, but let's go ahead and provide an output Data for the temporary URI of our blurred photo.

Can we add an explanation on why this is necessary?

I've updated the text, can you take a look if it makes more sense now?


hotfix comment out a test that takes too long

remove the final test that spins up two more PABs; this makes
everything too slow.
add some comments

Pre-submit checklist:

Branch

[x] Commit sequence broadly makes sense
[x] Key commits have useful messages
[x] Relevant tickets are mentioned in commit messages
[x] Formatting, materialized Nix files, PNG optimization, etc. are updated

PR

[x] Self-reviewed the diff
[x] Useful pull request description
[x] Reviewer requested

Remaining tests appear to actually fail?

@michaelpj removed them all. It's not that they don't work; it's just the waiting isn't long enough on the mac mini.


EnableRelaySupport throws an exception when trying to stitch 2 separate schemas, that are using a relay

Description
Version 11.2.2. EnableRelaySupport throws an exception when trying to stitch 2 separate schemas, that are using a relay.
Exception:

HotChocolate.SchemaException: For more details look at the Errors property.

The name Node was already registered by another type. (HotChocolate.Types.Relay.NodeType)

How to Reproduce
Steps to reproduce the behavior:

Create a service A with EnableRelaySupport() and configure node as described in docs
Create a service B with EnableRelaySupport() and configure node as described in docs
Create a service with EnableRelaySupport() and schema stitching
Not sure if it is important, schema stitching is used via Redis as described here

Expected behavior
There is no exception and node queries are routed to correct upstreams/schemas. As well node queries a combined into one.
Additional context
When EnableRelaySupport() is not used, graph types that implemented Node interface are grouped correctly, but the nodes for queries are adjusted with schema name in front.

This is not supported yet. We are working on schema stitching improvements in the August release cycle. Closing this for now.

Maybe at least update docs, that this is not supported?

@umnik03 I planned on starting to document Relay stuff for v11/12 this weekend - will make sure to include a note!

thank you :)


Fix length scale in scale-dependent analysis

The length-scale is currently the stencil spacing, it should be the stencil width.

Closed with https://github.com/ContactEngineering/SurfaceTopography/pull/115


Change name of non-test class

Changes the name of the class TestChainBreakResolutionAPI to ChainBreakResolutionAPI, which is only used for inheritance and is not a collection of tests itself, so that Pytest doesn't pick it up as a test while also keeping unittest happy.

Codecov Report

Merging #488 (0523adc) into master (3e15d25) will decrease coverage by 2.81%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##           master     #488      +/-   ##
==========================================
- Coverage   90.87%   88.07%   -2.81%
==========================================
  Files          24       24
  Lines        1677     1677
==========================================
- Hits         1524     1477      -47
- Misses        153      200      +47

Impacted Files
Coverage Δ

dwave/system/coupling_groups.py
12.50% <0.00%> (-81.25%)
:arrow_down:

dwave/system/samplers/clique.py
74.66% <0.00%> (-14.00%)
:arrow_down:

dwave/system/samplers/dwave_sampler.py
84.15% <0.00%> (-2.74%)
:arrow_down:

dwave/system/samplers/leap_hybrid_sampler.py
75.35% <0.00%> (-2.37%)
:arrow_down:

dwave/system/composites/embedding.py
96.57% <0.00%> (-1.15%)
:arrow_down:

dwave/system/testing.py
96.66% <0.00%> (-0.84%)
:arrow_down:

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


task: update the sdk to latest prod

Description
Manually update the SDK with latest prod while we workout some openapi issues

@gssbzn Breaking changes job detected breaking change.

Breaking changes job detected breaking change:
https://github.com/mongodb/atlas-sdk-go/actions/runs/6159985507/job/16715911164?pr=188

yes but that's expected and it says optional so not sure what the next steps are, I assumed it was ok to ignore and now we know we need a major version bump


Private is a reserved word in strict mode

Hi,
Thanks for this package. In account.js, Account.setPrivacy method has a parameter name private. Changing that to isPrivate would fix strict mode errors I guess.

thx, done, will test soon


bug: [6] is dangling at #6374.

Bug Report
Cairo version:
c3e3fa82880b25e83461075ea2061eb650fe82c3
Current behavior:
I execute the command cairo-run -p . in this repository
Expected behavior:
The Cairo project files should get compiled and execute src/main.cairo file.
Steps to reproduce:

Clone this repository.
Install the specified Cairo version along with Rust etc.
Execute: cairo-run -p .

Error message
Error: Failed setting up runner.

Caused by:
    [6] is dangling at #6374.

Might be a duplicate of https://github.com/starkware-libs/cairo/issues/2454

I have the same issue after last update, when I uncomment the last assert:
#[test]
#[available_gas(2000000)]
fn find_min_test() {
    let mut vec = ArrayTrait::new();
    vec.append(i33 { inner: 25_u32, sign: true });
    vec.append(i33 { inner: 127_u32, sign: false });
    vec.append(i33 { inner: 128_u32, sign: true });

    let (min, max) = find_min_max(vec);

    assert(min.inner == 128_u32, 'min: -128');
    assert(min.sign == true, 'min: -128');
    assert(max.inner == 127_u32, 'max: 127');
    //assert(max.sign == false, 'max: 127');
}

i'm pretty sure this is an issue with accessing members of structs or enums, when we have ap-revocation (caused by recursion for example) - it causes some confusion for the compiler with which variable should be a localvar (the encapsulating value, or the member). we are working on solving it currently.
in the meantime - a hack that should mostly work is calling:
#[inline(never)]
fn identity<T>(t: T) -> T { t }

on the member before the ap-revocation on the member - so it would be moved out of the struct, and would definitely be copied locally.

Thank you so much for the answer @orizi . I finally managed to find a workaround for the problem. In my case, it was related to returning a Tuple in a specific function:
fn find_min_max(vec: @Array::<i33>) -> (i33, i33) {
    // Initialize variables.
    let mut min_value = i33 { inner: 65535_u32, sign: false };
    let mut max_value = i33 { inner: 65535_u32, sign: true };

    __find_min_max(vec, ref min_value, ref max_value, 0_usize, );

    return (min_value, max_value);
}

fn __find_min_max(vec: @Array::<i33>, ref min_value: i33, ref max_value: i33, n: usize, ) {
    // TODO: Remove when automatically handled by compiler.
    match try_fetch_gas() {
        Option::Some(_) => {},
        Option::None(_) => {
            let mut data = array_new::<felt>();
            array_append::<felt>(ref data, 'OOG');
            panic(data);
        },
    }

    // --- End of the recursion ---
    if n == vec.len() {
        return ();
    }

    // --- Check the minimum value and update min_value if necessary ---
    let check_min = i33_min(min_value, *vec.at(n));
    if (min_value != check_min) {
        min_value = check_min;
    }

    // --- Check the maximum value and update max_value if necessary ---
    let check_max = i33_max(max_value, *vec.at(n));
    if (max_value != check_max) {
        max_value = check_max;
    }

    // --- The process is repeated for the remaining elemets in the array ---
    __find_min_max(vec, ref min_value, ref max_value, n + 1_usize);
}

For my case, I splitted the function into two separate ones as it was possible here, but maybe for other cases, it's not. I hope it's useful for someone that encounters this issue. Here is the fixed function:
fn find_min(vec: @Array::<i33>) -> i33 {
    // Initialize variables.
    let mut min_value = i33 { inner: 65535_u32, sign: false };

    __find_min(vec, ref min_value, 0_usize);

    return min_value;
}

fn __find_min(vec: @Array::<i33>, ref min_value: i33, n: usize) {
    match gas::withdraw_gas_all(get_builtin_costs()) {
        Option::Some(x) => {},
        Option::None(x) => {
            let mut data = ArrayTrait::new();
            data.append('Out of gas');
            panic(data);
        },
    }

    // --- End of the recursion ---
    if n == vec.len() {
        return ();
    }

    // --- Check the minimum value and update min_value if necessary ---
    let check_min = int33::min(min_value, *vec.at(n));
    if (min_value > check_min) {
        min_value = check_min;
    }

    // --- The process is repeated for the remaining elemets in the array ---
    __find_min(vec, ref min_value, n + 1_usize);
}

Thank you.


Uncaught Invariant Violation with Select component

Hello, I am getting
Uncaught Invariant Violation: getNodeFromInstance: Invalid argument.

in the browser console when using the Select component and the Select does not function correctly.
I am using Chromium Version 51.0.2704.79 Built on 8.4, running on Debian 8.5 (64-bit)
with semantic-react 8d65a15
Here is my component:
class MySelect extends React.Component {
  constructor() {
    super()
    this.state = {
      active: false,
    }
  }

  render() {
    const { active } = this.state
    return (
      <Select
        selection
        active={active}
        placeholder="Hi"
        onClick={() => this.setState({ active: true })}
        onRequestClose={() => this.setState({ active: false })}
        onSelectChange={val => console.log(val)}
      >
        <Option key="a" value="a">a</Option>
        <Option key="b" value="b">b</Option>
      </Select>
    )
  }
}

This is what I get upon refreshing (and force refreshing) the page with MySelect mounted:

Sorry about that! Will check & fix today

Oops! I should have checked my dependency versions.
This is not an issue on the latest version of React 15.2.1, but is present on 15.1.0, so I have solved this by updating to the latest React :)

Ok, thank you for information, i'll check with 15.1.0

Can't reproduce on react 15.1.0 . Not sure why you got this error.

Thats odd, sorry about that. I suppose this can be closed then, I no longer have an issue :) Thanks for your work!

Ok, closing, thanks!


[SPARK-12429][Streaming][Doc]Add Accumulator and Broadcast example for Streaming

This PR adds Scala, Java and Python examples to show how to use Accumulator and Broadcast in Spark Streaming to support checkpointing.

@tdas could you take a look before I start to add Java and Python examples?

Test build #48018 has started for PR 10385 at commit 9928ca5.

Test build #48018 has finished for PR 10385 at commit 9928ca5.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):\n  * public class JavaTwitterHashTagJoinSentiments \n  * case class UnresolvedAlias(child: Expression, aliasName: Option[String] = None)\n

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48018/
Test PASSed.

Test build #48038 has started for PR 10385 at commit 78d15bd.

Test build #48038 has finished for PR 10385 at commit 78d15bd.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48038/
Test PASSed.

Merged build finished. Test PASSed.

Test build #48120 has started for PR 10385 at commit 9e241e7.

Test build #48120 has finished for PR 10385 at commit 9e241e7.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):\n  * class JavaWordBlacklist \n  * class JavaDroppedWordsCounter \n

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48120/
Test PASSed.

Added Java and Python examples.

lgtm

Small comments, other LGTM.

Test build #48222 has started for PR 10385 at commit 455968a.

Test build #48222 has finished for PR 10385 at commit 455968a.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):\n  * class JavaWordBlacklist \n  * class JavaDroppedWordsCounter \n

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48222/
Test PASSed.


feat: add autodetect output option to generate config

infracost generate config now supports creating a config file from the native "auto-detect" functionality. If no template-path or template is provided, generate will output the auto-detected projects.

Nice this seems kind of huge. Do we need tests?

Good shout, added some tests + tweaks


Running out of disk space for CouchDB

OS: Ubuntu 14.04.1
KernelVersion: 4.19.90
Architecture:x86_64
CouchDB version: 1.6.1
Erlang version: R16B03
It's a single node,a little traffic,maybe about sixty dbs,each with around ten view_functions average
Our Couchdb database directory  is /var/lib/couchdb
After couchdb restart , df -h to check free 30G,even du -sh  show no change in disk take up.
Find the question(root file system space is not enough):

After restart couchdb:

And also I find the largest db file have a compact file  dpl_job.compact，which compaction can't be really restart.so this db will never be compact.so It will increase always.
I try every methods to compact this database,autocompaction, url， futon compact and cleanup operation. whether delete(wiil produce a new smaller one) or not.
Below is I test in my  own machine. this db takes no such big in disk,but the problem is the same

this maybe related

This is some part of log,because of log level limits maybe not so detailed
couch-5985.log

It looks like the compactor is failing to compact the database. It's hard to say immediately why, but behaves as if the documents appeared in the sequence index but then miss from the main doc id index.
Perhaps try to stop any updates to the database, stop replications, and try to compact again manually. Otherwise investigate if the perhaps there is a failing disk.
As this is 1.6, try to upgrade to latest 1.7. Then, try to replicate that db to a new copy. But, seeing as we have these missing document bodies that appear in the changes feed that might fail as well.

I try stop the replicate, delete the dpl_job.compact,restart couchdb. catch the log
[Mon, 14 Mar 2022 02:55:56 GMT] [info] [<0.1327.0>] Starting compaction for db "dpl_job"
[Mon, 14 Mar 2022 02:55:56 GMT] [info] [<0.117.0>] <IP_ADDRESS> - - POST /dpl_job/_compact 202
[Mon, 14 Mar 2022 02:55:56 GMT] [error] [emulator] Error in process <0.1332.0> with exit value: {function_clause,[{couch_db_updater,'-copy_docs/4-fun-3-',[not_found],[{file,"couch_db_updater.erl"},{line,862}]},{lists,map,2,[{file,"lists.erl"},{line,1224}]},{lists,map,2,[{file,"lists.erl"},{line,1224}]},{couch_db_updater,copy_docs...
[Mon, 14 Mar 2022 02:55:56 GMT] [error] [<0.1327.0>] ** Generic server <0.1327.0> terminating
** Last message in was {'EXIT',<0.1332.0>,
{function_clause,
[{couch_db_updater,'-copy_docs/4-fun-3-',
[not_found],
[{file,"couch_db_updater.erl"},
{line,862}]},
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
{couch_db_updater,copy_docs,4,
[{file,"couch_db_updater.erl"},
{line,861}]},
{couch_db_updater,copy_compact,3,
[{file,"couch_db_updater.erl"},
{line,961}]},
{couch_db_updater,start_copy_compact,1,
[{file,"couch_db_updater.erl"},
{line,1004}]}]}}
** When Server state == {db,<0.1326.0>,<0.1327.0>,<0.1332.0>,
<<"1647226556413367">>,<0.1328.0>,<0.1324.0>,
<0.1330.0>,
{db_header,6,36085,0,
{433507267,{55,456,65074},88060},
{433509119,543,43262},
{433522899,[],20453},
140,417682521,nil,10},
36085,
{btree,<0.1324.0>,
{433507267,{55,456,65074},88060},
#Fun<couch_db_updater.10.58444962>,
#Fun<couch_db_updater.11.58444962>,
#Fun<couch_btree.5.15886126>,
#Fun<couch_db_updater.12.58444962>,snappy},
{btree,<0.1324.0>,
{433509119,543,43262},
#Fun<couch_db_updater.13.58444962>,
#Fun<couch_db_updater.14.58444962>,
#Fun<couch_btree.5.15886126>,
#Fun<couch_db_updater.15.58444962>,snappy},
{btree,<0.1324.0>,
{433522899,[],20453},
#Fun<couch_btree.3.15886126>,
#Fun<couch_btree.4.15886126>,
#Fun<couch_btree.5.15886126>,nil,snappy},
36085,<<"dpl_job">>,
"/var/lib/couchdb-5985/dpl_job.couch",[],[],nil,
{user_ctx,null,[],undefined},
nil,10,
[before_header,after_header,on_file_open],
[{user_ctx,
{user_ctx,null,
[<<"_admin">>],
<<"{couch_httpd_auth, default_authentication_handler}">>}}],
snappy,nil,nil}
** Reason for termination ==
** {function_clause,
[{couch_db_updater,'-copy_docs/4-fun-3-',
[not_found],
[{file,"couch_db_updater.erl"},{line,862}]},
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
{couch_db_updater,copy_docs,4,
[{file,"couch_db_updater.erl"},{line,861}]},
{couch_db_updater,copy_compact,3,
[{file,"couch_db_updater.erl"},{line,961}]},
{couch_db_updater,start_copy_compact,1,
[{file,"couch_db_updater.erl"},{line,1004}]}]}
[Mon, 14 Mar 2022 02:55:56 GMT] [error] [<0.1327.0>] {error_report,<0.31.0>,
{<0.1327.0>,crash_report,
[[{initial_call,
{couch_db_updater,init,['Argument__1']}},
{pid,<0.1327.0>},
{registered_name,[]},
{error_info,
{exit,
{function_clause,
[{couch_db_updater,'-copy_docs/4-fun-3-',
[not_found],
[{file,"couch_db_updater.erl"},{line,862}]},
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
{couch_db_updater,copy_docs,4,
[{file,"couch_db_updater.erl"},{line,861}]},
{couch_db_updater,copy_compact,3,
[{file,"couch_db_updater.erl"},{line,961}]},
{couch_db_updater,start_copy_compact,1,
[{file,"couch_db_updater.erl"},{line,1004}]}]},
[{gen_server,terminate,6,
[{file,"gen_server.erl"},{line,744}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,239}]}]}},
{ancestors,[<0.1326.0>,<0.1323.0>]},
{messages,[]},
{links,[<0.1326.0>]},
{dictionary,[]},
{trap_exit,true},
{status,running},
{heap_size,4185},
{stack_size,27},
{reductions,1744}],
[]]}}
[Mon, 14 Mar 2022 02:55:56 GMT] [error] [<0.1326.0>] ** Generic server <0.1326.0> terminating
** Last message in was {'EXIT',<0.1327.0>,
{function_clause,
[{couch_db_updater,'-copy_docs/4-fun-3-',
[not_found],
[{file,"couch_db_updater.erl"},
{line,862}]},
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
{couch_db_updater,copy_docs,4,
[{file,"couch_db_updater.erl"},
{line,861}]},
{couch_db_updater,copy_compact,3,
[{file,"couch_db_updater.erl"},
{line,961}]},
{couch_db_updater,start_copy_compact,1,
[{file,"couch_db_updater.erl"},
{line,1004}]}]}}
** When Server state == {db,<0.1326.0>,<0.1327.0>,<0.1332.0>,
<<"1647226556413367">>,<0.1328.0>,<0.1324.0>,
<0.1330.0>,
{db_header,6,36085,0,
{433507267,{55,456,65074},88060},
{433509119,543,43262},
{433522899,[],20453},
140,417682521,nil,10},
36085,
{btree,<0.1324.0>,
{433507267,{55,456,65074},88060},
#Fun<couch_db_updater.10.58444962>,
#Fun<couch_db_updater.11.58444962>,
#Fun<couch_btree.5.15886126>,
#Fun<couch_db_updater.12.58444962>,snappy},
{btree,<0.1324.0>,
{433509119,543,43262},
#Fun<couch_db_updater.13.58444962>,
#Fun<couch_db_updater.14.58444962>,
#Fun<couch_btree.5.15886126>,
#Fun<couch_db_updater.15.58444962>,snappy},
{btree,<0.1324.0>,
{433522899,[],20453},
#Fun<couch_btree.3.15886126>,
#Fun<couch_btree.4.15886126>,
#Fun<couch_btree.5.15886126>,nil,snappy},
36085,<<"dpl_job">>,
"/var/lib/couchdb-5985/dpl_job.couch",[],[],nil,
{user_ctx,null,[],undefined},
nil,10,
[before_header,after_header,on_file_open],
[{user_ctx,
{user_ctx,null,
[<<"_admin">>],
<<"{couch_httpd_auth, default_authentication_handler}">>}}],
snappy,nil,nil}
** Reason for termination ==
** {function_clause,
[{couch_db_updater,'-copy_docs/4-fun-3-',
[not_found],
[{file,"couch_db_updater.erl"},{line,862}]},
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
{couch_db_updater,copy_docs,4,
[{file,"couch_db_updater.erl"},{line,861}]},
{couch_db_updater,copy_compact,3,
[{file,"couch_db_updater.erl"},{line,961}]},
{couch_db_updater,start_copy_compact,1,
[{file,"couch_db_updater.erl"},{line,1004}]}]}
[Mon, 14 Mar 2022 02:55:56 GMT] [error] [<0.1326.0>] {error_report,<0.31.0>,
{<0.1326.0>,crash_report,
[[{initial_call,{couch_db,init,['Argument__1']}},
{pid,<0.1326.0>},
{registered_name,[]},
{error_info,
{exit,
{function_clause,
[{couch_db_updater,'-copy_docs/4-fun-3-',
[not_found],
[{file,"couch_db_updater.erl"},{line,862}]},
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
{couch_db_updater,copy_docs,4,
[{file,"couch_db_updater.erl"},{line,861}]},
{couch_db_updater,copy_compact,3,
[{file,"couch_db_updater.erl"},{line,961}]},
{couch_db_updater,start_copy_compact,1,
[{file,"couch_db_updater.erl"},{line,1004}]}]},
[{gen_server,terminate,6,
[{file,"gen_server.erl"},{line,744}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,239}]}]}},
{ancestors,[<0.1323.0>]},
{messages,[]},
{links,[<0.88.0>]},
{dictionary,[]},
{trap_exit,true},
{status,running},
{heap_size,987},
{stack_size,27},
{reductions,308}],
[]]}}
[Mon, 14 Mar 2022 02:55:56 GMT] [error] [<0.88.0>] Unexpected exit of database process <0.1326.0> [<<"dpl_job">>]: {function_clause,
[{couch_db_updater,
'-copy_docs/4-fun-3-',
[not_found],
[{file,
"couch_db_updater.erl"},
{line,
862}]},
{lists,
map,
2,
[{file,
"lists.erl"},
{line,
1224}]},
{lists,
map,
2,
[{file,
"lists.erl"},
{line,
1224}]},
{couch_db_updater,
copy_docs,
4,
[{file,
"couch_db_updater.erl"},
{line,
861}]},
{couch_db_updater,
copy_compact,
3,
[{file,
"couch_db_updater.erl"},
{line,
961}]},
{couch_db_updater,
start_copy_compact,
1,
[{file,
"couch_db_updater.erl"},
{line,
1004}]}]}

It looks like the compactor is failing to compact the database. It's hard to say immediately why, but behaves as if the documents appeared in the sequence index but then miss from the main doc id index.
Perhaps try to stop any updates to the database, stop replications, and try to compact again manually. Otherwise investigate if the perhaps there is a failing disk.
As this is 1.6, try to upgrade to latest 1.7. Then, try to replicate that db to a new copy. But, seeing as we have these missing document bodies that appear in the changes feed that might fail as well.

I try the 1.7.1 copy the failed database from 1.6.1,still failed  to compact.where can I find the old version of couchdb. such as deb package for ubuntu 14.0.4

Thanks for trying on 1.7. One last possible thing to try could be to replicate the database to a new database. If that fails as well, and there is a good chance it might, you can try doing an _all_docs query with include_docs=true and copy those documents manually to a new database (with a script).
Since Ubuntu https://help.ubuntu.com/community/EOL#Ubuntu_14.04_Trusty_Tahr end of life was 3 years ago we don't support it any longer.

Replicate the couchdb is ok, this problem can be solved by that.But we stiil  want to how to aviod this problem because it happened in client.In the last I want to know if 1.7.1 contains commit of this issue  https://github.com/apache/couchdb/issues/1001.May be the same question for this problem

Thanks for trying on 1.7. One last possible thing to try could be to replicate the database to a new database. If that fails as well, and there is a good chance it might, you can try doing an _all_docs query with include_docs=true and copy those documents manually to a new database (with a script).
Since Ubuntu https://help.ubuntu.com/community/EOL#Ubuntu_14.04_Trusty_Tahr end of life was 3 years ago we don't support it any longer.
Replicate the couchdb is ok, this problem can be solved by that.But we still  want to how to aviod this problem because it happened in client. I hope some peole can help me of question belowed for this problem.

If we didn't to process this database.If this will increase continuously to take up the rest available space of its filesystem.
Why does this problem happen,only 40 documents to take so much disk space,is there any problem of our way to use CouchDB
In the last I want to know if 1.7.1 contains commit of this issue  https://github.com/apache/couchdb/issues/1001. May be the same question for this problem
If 1.7.1 didn't contains such commit, I will try to install from source code, which will be my best choice of 1.7 latest.No matter it from github or official website.

Do you have any document attachments in that database, or any views that emit a lot of rows and/or data, or a lot of deleted/removed documents? I think those factors could explain the disk usage.
Also, what is the disk usage of the replicated database? Is it similar to the original one?

attachments

Yes, a lot of views in some of most common use database. And I learn about difference between df and du cmd, is  phantom file.So when use lsof|grep deleted, I found a lot of such  deleted file in ubuntu.But how can I to avoid such use by that.


Crash on startup (MacOS 10.14.6) - Fatal error: unexpected enum case 'SpotifyEPlS(rawValue: 0)'

Description
I'm building the repository from scratch, because I implemented some changes (small popover) that I would like to keep. The project builds fine, but then it crashes as soon as I open Spotify, with this Exception: "Fatal error: unexpected enum case 'SpotifyEPlS(rawValue: 0)'" (seems to be the same as https://github.com/kmikiy/SpotMenu/issues/218). Which is a bit weird since Apple Scripts work fine through the Script Editor App.

It also crashes with the following (same error as https://github.com/kmikiy/SpotMenu/issues/220):
[General] An uncaught exception was raised
[General] [Fabric] Value of Info.plist key "Fabric" must be a NSDictionary.
Steps to Reproduce

Open SpotMenu
Open Spotify
Crash...

Expected behavior: Being able to see the song being played, etc. But as soon as I open Spotify, SpotMenu crashes.
Actual behavior: Crashes
Reproduces how often: 100%
Versions
SpotMenu version: 1.9 (I would like to keep this version because of the changes I made. I already updated it accordingly to Swift 4.0 and added the changes introduced afterwards)
MacOS version: 10.14.6

Same issues over here...


gen-unicode-data: Some small fixes for GenNormalization

Fixes some issues with the GenNormalization script:

The data is inside a "15" directory, so the script doesn't actually work right now:

GenUtils/Files.swift:19: Fatal error: The file “DerivedNormalizationProps.txt” couldn’t be opened because there is no such file.

The NormData (CCC and QC properties) are created by copying a Set in to an Array, which means the order is random and changes every time you run the script. This makes it difficult to diff.

It doesn't create the output directory before writing, which it should.

@swift-ci please test

@swift-ci please test macOS platform

@swift-ci please benchmark

Just checking that there was no perf impact. There shouldn't have been anyway because the order was actually random before.
Only a couple of dubious/flaky results.
Performance (x86_64): -O

Regression
OLD
NEW
DELTA
RATIO

ArrayAppendGenericStructs
760.0
1305.0
+71.7%
0.58x (?)

Code size: -O
Performance (x86_64): -Osize

Regression
OLD
NEW
DELTA
RATIO

FlattenListLoop
1381.0
1650.0
+19.5%
0.84x (?)

Improvement
OLD
NEW
DELTA
RATIO

FlattenListFlatMap
4693.0
4271.0
-9.0%
1.10x (?)

Code size: -Osize
Performance (x86_64): -Onone

Regression
OLD
NEW
DELTA
RATIO

CxxStringConversion.cxx.to.swift
99.0
116.25
+17.4%
0.85x (?)

Improvement
OLD
NEW
DELTA
RATIO

ArrayAppendGenericStructs
1795.0
1207.5
-32.7%
1.49x (?)

I'd rather not edit the actual data files in this PR and save editing those on new Unicode version bumps.


I'm doing a chat using angular 6, it gave me error when using the ngFor directive to show the messages from the firebase.  Needing your programmers help

error

It's impossible to say from the images you provided.  You might get better feedback from Stack Overflow.

Without seeing your component.ts we cannot help.

Aaaaand still not enough information to be able to tell what you're doing. You might want to put this up on StackBlitz.


Module / RX version formatting

Nightly build for TX16S, 2.8.0-nightly (ba814db3), places the 'e' from Multimodule on a second line while there is plenty of space to slide the version to the right.

Thanks for the report. FYI, this is the wrong repo to be reporting this on - this is the repo for the buddy firmware flasher, not the main firmware ;)
Ah, I see the problem - and there actually isn't enough space, since it's supposed to be one one line. I'll probably change it to MPM, but I bet the NV14 screen is even worse since it's portrait orientation (i.e. TX16S screen, rotated 90 degrees), so might have change it so the version is shown on a second line.

@freshollie You can close this issue - it has been resolved (even though it was in the wrong repo) ;)


Mapster Tool failing silently

As the title says.  No output of any kind regardless of the input values.  Tried both the msbuild way and command line method.
.Net: 8.0.100-rtm.23519.30
Mapster: 8.4.1-pre01+c504336c8a374f37ac9c19dc19be635c3f337036
I know this might be due to unsupported dotnet versioning.  Is there any guidance on how to figure out what is going on?

Okay - I fixed it.  Bad parameter values. Still weird that it was failing silently, but we can chalk this up to user error.


Update Wycheproof ecdh_secp521r1_ecpoint_test.json to v1

Update Wycheproof testvector ecdh_secp521r1_ecpoint v0 to ecdh_secp521r1_ecpoint v1.

Checklist

[x] I've run tests to see all new and existing tests pass
[x] I've followed the code style of the rest of the project
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary

If you've made changes to gyb files

[ ] I've run .script/generate_boilerplate_files_with_gyb and included updated generated files in a commit of this pull request

Motivation:
We ought to use as many and as up to date test vectors as possible. Wycheproofs v0 were created 4 years ago and were due some upgrade.
Modifications:
Replaced the v0 with the v1 version, no other changed needed.
Result:
661 tests being run instead of v0's test count of ~237~

@swift-server-bot test this please


Parameters cannot be changed

On the GoodWe ES 5048 inverter, after the update to <IP_ADDRESS>, the parameters general, eco charge, eco discharge cannot be changed.

The same problem on GW3600S-BP . Since <IP_ADDRESS> works perfect.

The same problem on GW3600S-BP . Since <IP_ADDRESS> works perfect.

Ahoj. Jak to myslíš že od <IP_ADDRESS> funguje perfektně? Mě to funguje perfektně od verze <IP_ADDRESS>

Same for me.
`Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/goodwe/select.py:131
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 12:18:29 (15 occurrences)
Last logged: 12:41:20
[140477978537616] ES.set_operation_mode() takes from 2 to 3 positional arguments but 4 were given
[140477949340368] Error handling message: Unknown error (unknown_error) from <IP_ADDRESS> (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15)
[140477949340368] ES.set_operation_mode() takes from 2 to 3 positional arguments but 4 were given
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1787, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1824, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result()  # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 968, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 720, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/select/init.py", line 56, in async_select_option
await entity.async_select_option(option)
File "/config/custom_components/goodwe/select.py", line 131, in async_select_option
await self._inverter.set_operation_mode(
TypeError: ES.set_operation_mode() takes from 2 to 3 positional arguments but 4 were given`

Seems like I broke the code for ES inverters.
Please revert back to prev version for the time being, fix (with proper Eco V2 for ES) will come soon.

v<IP_ADDRESS> was just released and should fix the issues.


[964] Add azure tags and resource group to estimates

Description of Change

fixes #964
This PR adds support for azure tags and resourceGroups via the existing tags field in the estimations as described in #964
Checklist

[X] PR description included and stakeholders cc'd
[X] tests are changed or added
[ ] yarn test passes
(There are problems with some tests from the azure recommendations, but I did not change any values there...)
[X] yarn lint has been run
[X] git pre-commit hook is successfully executed.
(Please refrain from using --no-verify)
[X] yarn changeset was run and relevant packages have been updated as a major/minor/patch bump with descriptions
(Determine version update using Semantic Versioning)
[ ] relevant documentation is changed or added
(Was out of scope)

Notes
No points in the Out of scope section of the issue have been resolved yet.
© 2021 Thoughtworks, Inc.

@4upz I have added the azure tagging support as described in #964.
There is a new environment variable AZURE_RESOURCE_TAG_NAMES which should be filled with needed tags, and if needed the resourceGroup. For example: AZURE_RESOURCE_TAG_NAMES=["resourceGroup","project","customer"]. There is currently no way to include all tags, any wishes here?
These tags do not have the same formatting (user:... or azure:...) as the AWS tags. Is that a problem?
Tests have been updated and expanded to verify inclusion of tags.
It seems that I have to update the templates, but running the script deletes a lot of files that should be needed? Am I doing something wrong?
If something else is different than you expected, please let me know!
Also, when running the App against my Companies azure environment, I discovered three new unknown storage services: 'Data Processing Unit','Pay as you go Warm Storage','Standard Unit'. Should I add them in this PR as well? All Azure regions were at first marked as unknown, because somehow they are spelled differently when I run CCF, for example: northeurope is written as EU North and so on. Should I add these new region names?

@NicolasBissig thanks so much! I'll give it a review as soon as possible. To answer your questions:

No need to worry about including all tags. We have this in our roadmap for after tagging support is added for each provider, so it would be beyond the scope of this ticket.
It's totally fine for them to not match AWS tags. That is just the format in which AWS CUR includes tags in its table. We've included documentation to specify that behavior, and isn't expected for all cloud providers.
The script shouldn't be deleting files, as it should be adding any changes you made to the api, cli, or client package. However, most of your changes are in the Azure package which does not have a template. So feel free to skip this step.
That's awesome that you came across unknown services! Yes, please feel free to add them but in a separate PR if you don't mind. You may add the unknown regions to that same PR as well. The regions are due to a weird thing where Azure sometimes returns alternative spellings of regions in its consumption management results. We have a packages/azure/src/lib/AzureRegions.ts with all of the regions and known aliases where these missing aliases can be added.

Thanks so much for being thorough and I'll leave any more notes regarding the implementation in my review! However, if you have other questions or if anything is unclear, feel free to let me know 😄

I do see some of the tests are failing -- specifically recommendations. However, this could be due to being out of sync with recent changes to the trunk branch. I'll go ahead and merge this in, and will manually fix them if it persists after the merge.

Thank you @4upz !


Update POST /identifiers/name/exchanges endpoint to report recp field in POST body

The POST body for this endpoint currently looks like this (due to the addition of the top level rp field):
{
   exn: {
      a: {
         ...,
         i: "RECIPIENT"
      },
      rp: "RECIPIENT",
      ...
   },
   recp: ["RECIPIENT"]
}

This endpoint should be updated to use the field inside the exn and thus removing the body field recp.
Also, address the question from @lenkan https://github.com/WebOfTrust/signify-ts/pull/267#discussion_r1642577011

@pfeairheller  isn't the recp field in body required to set the multisig member AID when sending an exn message asking multisig members to join an operation?

@pfeairheller isn't the recp field in body required to set the multisig member AID when sending an exn message asking multisig members to join an operation?

The code should be switched to use the ri field in the exn message instead.

The only issue here with multi-sig is for each participant you will need to make a Signify <-> KERIA call instead of just 1.
@pfeairheller Does ri need to be defined for messages between multi-sig members, and match the local identifier of each recipient? If ri is different for each member - so different exns are being sent - it breaks one of the signify tests for /multisig/rpy notifications appearing.

@iFergal do you have a link to which test is breaking at which assertion due to that?

@lenkan I'd like to find time to dig into it but it might be because the SAIDs are different. https://github.com/WebOfTrust/signify-ts/actions/runs/10580083902/job/29314065407
 FAIL  examples/integration-scripts/multisig-vlei-issuance.test.ts (43.885 s)
  ✕ multisig-vlei-issuance (42765 ms)

  ● multisig-vlei-issuance

    No notifications with route /multisig/rpy

      492 |
      493 |         if (!notes.length) {
    > 494 |             throw new Error(`No notifications with route ${route}`);
          |                   ^
      495 |         }
      496 |
      497 |         return notes;

      at utils/test-util.ts:494:19
      at async retry (utils/retry.ts:34:28)
      at async waitAndMarkNotification (utils/test-util.ts:468:19)
      at async Object.run (multisig-vlei-issuance.test.ts:458:9)

@lenkan I think you are talking about for example, issuer sends grant to multisig identifier. In this case, it sends it to all the authorised endpoints in the OOBI that was resolved by the issuer. That may or may not be all the member agents.
That's a bit different than explicitly sending it to the local group members from another member (in which case you know all of the agents) but maybe we could leverage that.
An alternative that might be cleaner and still satisfy this issue is if in KERIA we check if rp is a local group hab and then auto send it to the participant endpoints, irrespective of the endpoint auth on the larger multisig OOBI.

@iFergal Right. Yeah, I knew it was different scenario, but I thought maybe the implementation was similar. But I didn't think of the part that it probably depends on when the AID was resolved by an OOBI.

An alternative that might be cleaner and still satisfy this issue is if in KERIA we check if rp is a local group hab and then auto send it to the participant endpoints, irrespective of the endpoint auth on the larger multisig OOBI.

Nice. From the point of view of a user of the API, this sounds clean to me.


Fix multi-byte Unicode comment tokens

Hi! Love the project, probably the best parser library I have worked with so far, has helped me quite a lot!
However I have found a small bug relating to multi-byte Unicode comments tokens: The example demonstrates a minimal example of the issue and I have implemented a very simple fix for the issue.
Thanks for the great work! I plan on sticking with this library since it very elegantly solves many of the problems I've experienced with other libraries, the automatic conflict resolution in particular is extremely helpful!
Aistis Raulinaitis

Thank you for the contribution.
I haven't really considered unicode support when writing the tokenizer.
It's on my to-do list.
On Tue, Oct 15, 2024 at 6:02 AM Aistis Raulinaitis @.***>
wrote:

Hi! Love the project, probably the best parser library I have worked with
so far, has helped me quite a lot!
However I have found a small bug relating to multi-byte Unicode comments
tokens: The example demonstrates a minimal example of the issue and I have
implemented a very simple fix for the issue.
Thanks for the great work! I plan on sticking with this library since it
very elegantly solves many of the problems I've experienced with other
libraries, the automatic conflict resolution in particular is extremely
helpful!
Aistis Raulinaitis
You can view, comment on, or merge this pull request online at:
https://github.com/chuckcscccl/rustlr/pull/5
Commit Summary

47afaa4
https://github.com/chuckcscccl/rustlr/pull/5/commits/47afaa455772f2a5b58173b7ee8d3788e4c7bdd3
fix multi-byte unicode comments

File Changes
(3 files https://github.com/chuckcscccl/rustlr/pull/5/files)

A examples/commentcalc/Cargo.toml
https://github.com/chuckcscccl/rustlr/pull/5/files#diff-28483276706a59229a5735c6da5e138e0af57048385a548f88c7fb5ac8ebb760
(7)
A examples/commentcalc/commentcalc.grammar
https://github.com/chuckcscccl/rustlr/pull/5/files#diff-85b25ff3898dcdcd8cafdb5aa0ddd524df0cbe133236ec31bc3e9f93062ab9de
(33)
M src/lexer_interface.rs
https://github.com/chuckcscccl/rustlr/pull/5/files#diff-ec6035eb780f9d56ba26417ba1d5c2414ea882d8aa89e88c328e71a4bc411387
(2)

Patch Links:

https://github.com/chuckcscccl/rustlr/pull/5.patch
https://github.com/chuckcscccl/rustlr/pull/5.diff

—
Reply to this email directly, view it on GitHub
https://github.com/chuckcscccl/rustlr/pull/5, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKUYAC7Q4DKXMIQ6SDMGJFDZ3TR2JAVCNFSM6AAAAABP6YNGN2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGU4DQMRXGMZTMMI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


[Plus] Start all sessions after container restarts

Right now we have to use POST /api/sessions for each session that previous was working.
We need to add a flag to show that WAHA needs to restart all sessions that have saved information (step 1)

Set environment variable when you start a container WHATSAPP_RESTART_ALL_SESSIONS=True
https://waha.devlike.pro/docs/how-to/config/
All configuration settings have been used in POST /api/sessions/start remain the same - webhook, proxy, etc


Update values.py to add 2021 Kia Sorento

Don't forget to include the dongleID from the device these were gathered from

@vanillagorillaa how do I do that?

Dongle ID: 3c492c4530c6ad7f

Don't forget to include the dongleID from the device these were gathered from

How do I fix this? Replied in a comment with dongle ID.


DatePicker localisation/format

Use case
My app uses the Polish language. In our language we have different rules for displaying date and time:

we use day.month.year or, more rarely, year-month-day date format,
we use leading zeros in out date format,
we use the 24-hour format (without the AM/PM suffix),
our week starts on Monday, not Sunday.

It would be nice to be able to customise these things in the DatePicker and TimePicker.
In the graphical version of the DatePicker, I would also like to be able to change the English month and weekday abbreviations to Polish.
Proposal
I would like to achieve something like this using additional API params in DatePicker and TimePicker:

@rklos let's open a separate issue for time picker localization.

Case of the TimePicker moved to https://github.com/macosui/macos_ui/issues/442


Re: My answer about using preferred pronouns

(Please use this issue for comments on My answer about using preferred pronouns.)

Hi Jon - I recall connecting one of your previous posts with the letters of C.S. Lewis, and it's happened again. So, FWIW, and apropos of this in particular: "That can be awkward and ambiguous, of course, but the fault lies in our language failing to keep pace with cultural changes." — here's Lewis to Sister Penelope, writing on 10 January 1952:

I don’t quite feel we shd. gain anything by the doctrine that Adam was a hermaphrodite. As for the (rudimentary) presence in each sex of organs proper to the other, does that not occur in other mammals as well as in humans? … If so there wd. be no more ground for making men (I mean, humans) hermaphroditic than any other mammal. (By the way, what an inconvenience it is in English to have the same word for Homo and Vir). No doubt these organs have spiritual significance: there ought spiritually to be a man in every woman and a woman in every man. And how horrid the ones who haven’t got it are: I can’t bear a ‘man’s man’ or a ‘woman’s woman’.

~ Collected Letters, Volume III, pp. 157-8. It seems Lewis was feeling the same "fault in our language" as you were describing in your post. ("FWIW", as noted above!)

What a great find! Looking up the Latin words, I agree with him that having two words would help in cases like this.
I hadn't heard of the idea that Adam was a hermaphrodite until I read a commentary by Robert Alter. He's fairly dismissive of the idea.

Alter's instinct was sound, I reckon. And, just in case any one else stumbles on this little thread, here are some usage notes on Latin homo and vir (might have helped to include that in my original comment - sorry!).


Regenerate Falcon7bGptqPT MLIR for benchmarking

We might need to regenerate the MLIR of Falcon7bGptqPT as there is a bytecode serialization error after LLVM integration
https://github.com/openxla/iree/actions/runs/7146990893/job/19466252969

Hi @mariecwhite can you take a look into this issue?

I tried regenerating and got errors related to CUDA. @ramiro050 do you mind regenerating the mlir?

Is this Falcon with weights zeroed out?

Yes zeroed out version but can we have both? We should start using real weights where we can.

Fixed in https://github.com/openxla/iree/pull/15900. It uses the version with real weights. I also tried running it on mobile but it was taking >2 hours so sticking to running it on x86.


Release as ROS Debian packages blocked

by https://github.com/CogRob/catkin_grpc/issues/17

grpc is fixed, submitted a new PR: https://github.com/ros/rosdistro/pull/16033
It has already been merged. Let's see if it will pass this time.

Build succeed. http://build.ros.org/job/Ibin_uT64__gcloud_speech__ubuntu_trusty_amd64__binary/


Add TCPS support for Oracle DB

What does this PR do?

This PR adds support to connect to Oracle DB via TCPS.
New config options added:

protocol: Allows to specify TCPS as connection protocol. TCP is default.
jdbc_truststore_path: Used when connecting via JDBC. This specifies the file path of the client truststore.
jdbc_truststore_type: Supported truststore types include SSO (Oracle wallet), JKS (Java format Keystore), and PKCS12.
jdbc_truststore_password: This is used in case there is a password for the truststore. This shouldn't be necessary for SSO truststores.

More information on connecting to Oracle DB via JDBC with SSL can be found in the original Oracle whitepaper.
Motivation

Customer request
Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached

Hi,
Not sure it has been reported already, since the update to agent 7.34.0 containing that change, the integration reports errors.
2022-03-17 13:18:26 CET | CORE | ERROR | (pkg/collector/worker/check_logger.go:68 in Error) | check:oracle | Error running check: [{"message": "'NoneType' object has no attribute 'upper'", "traceback": "Traceback (most recent call last):\n  File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/base.py\", line 1008, in run\n    initialization()\n  File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/base.py\", line 423, in load_configuration_models\n    instance_config = self.load_configuration_model(package_path, 'InstanceConfig', raw_instance_config)\n  File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/base.py\", line 442, in load_configuration_model\n    config_model = model(**config)\n  File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/pydantic/main.py\", line 404, in __init__\n    values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data)\n  File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/pydantic/main.py\", line 1014, in validate_model\n    input_data = validator(cls_, input_data)\n  File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/oracle/config_models/instance.py\", line 55, in _initial_validation\n    return validation.core.initialize_config(getattr(validators, 'initialize_instance', identity)(values))\n  File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/oracle/config_models/validators.py\", line 15, in initialize_instance\n    protocol = values.get('protocol').upper()\nAttributeError: 'NoneType' object has no attribute 'upper'\n"}]
We need to add protocol: TCP for each monitored database to fix the error even if it's supposed to be the default.


Exploit Config's Logics

Use the logics configured in the Config and provide default ones too.
See pac4j/pac4j#810.
This is scheduled for 2.x but if the need arises, it can be backported to 1.x for the SecurityLogic (the others are not present in 1.9.x).

See pac4j/pac4j#810 for the customization of Logics (1.9.x included)


Update faq-defender-for-servers.yml

Update FAQ Answer to "Can I enable Defender for Servers on a subset of machines in a subscription?" with new feature Defender for Servers at the resource level available as GA

@dcurwin
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#please-close


"/usr/bin/env: node: No such file or directory" error building atom-shell branch with Debian-ish Node.js package installed

This just came up in a thread in the discussion group.
This is a known Node.js 'issue' too. The Debian package is behind the Node.js releases because the relevant Debian maintainers are also maintaining other dependent packages that will break when Node.js is upgraded.
These instructions on installing Node.js on Debian or Ubuntu (or related) should probably be followed instead of installing Node.js via package manager.

I just ran into this again; this worked for me on an Ubuntu 14.04 computer:
sudo apt-get install nodejs
sudo apt-get install npm
sudo apt-get install nodejs-legacy

The last package symlinks nodejs (which is what the node command is named in the first package) as node.

Someone just reported this on Gitter with a slightly different error message:

usr/bin/env: node: no file or directory exists


Why wfdb.wrsamp when generate .png images?

I used the given image generator to generate PNG image files from WFDB files.
I noticed that along with generated PNGs, the tool also generate new WFDB files, and these newly generated binaries and headers are not the same as input WFDB files. Is there any reason that the code is designed in this way?

The ECG image does not show the entire ECG signal, so the image generator code creates new WFDB files that only contain the parts of the signal that it plots in the ECG image. It replaces the unplotted parts of the signal with NaN values.
For example, for 12-lead ECG with a 10-second duration, the code will generate, by default,
(1) a grid with 4 columns and 3 rows that shows 2.5 seconds of signal for each lead, where the left-most column has the first 2.5 seconds of the signal for its 3 leads, the second-to-left-most column has the next 2.5 seconds of the signal for its 3 leads, and so on; and
(2) a long strip with 1 column and 1 row that shows the entire 10 seconds of the signal for 1 lead, where the time in the long strip aligns with the times in the grid.
If this is unclear, or if you change the default settings, then you can always check the plotted parts of the signal by inspecting the WFDB files that the image generation code creates.


Fix addDeveloperProduct not returning a product id

When using the new api, it returns a completely different id. I can then use that id to grab the real product id using a GET api.

@Neztore there we go.

When will the changes be fixed?


Retrieving Client keys: SSH/SFTP not enabled by default

This is an informational post, not an issue.
I have successfully installed PIVPN about 5 times now over the past few months and it's worked great. I recently decided to wipe it out and start again (for various reasons).
So, last night I re-downloaded the NOOBS installer (full, not Lite), which presumably retrieves the latest version of Raspian.
Two things I noticed during the install that are different from last time I did it (a few months ago):

The screen/step that displays Certificate Information (Country, City, State, Org, etc.). is gone. I know this wasn't critical info, so I'm guessing the developers just removed it.
But more importantly...
After completing the install and generating a client cert, I was unable to SSH/SFTP in using another computer (obviously) on the same LAN, I tried using WinSCP and Linux command line.
I finally figured out the problem. SSH is not longer enabled by default. I know it used to be, because I never had this problem before. To enable, there's a nice "control panel" accessible using the following command: sudo raspi-config
Within there, it's under 7. Advanced Options
Just turn on SSH, then reboot (sudo reboot), and you should be fine.

I don't do much with Rasbian, so this may be obvious to others. But just in case, i thought I'd share.

Or you can use DietPi, which has ssh enabled by default. Marking this as resolved, but will add information tag.


Poller[T] Should expose headers of response

Feature Request
Our legacy code would grab the "Azure-AsyncOperation" out of a response and store if for something else to poll later.
Now there is just resume token but it would be nice backcompat to let me get the headers out of a poller so I don't have to change both places at once and can move to resume token at a leisurely pace rather than having to get all recievers to adjust first.
My other options i the mean while are to inject a percallpolicy on the client to extract the header but since those are set on constructor rather than each call it means I have to isolate my clients more or I run into race conditons.

client := Newclient(..., options)
client.Beginwhatever.(...

opId := captureHeaderPolicy.OperationId

Other solutions are even mroe abstraction breaking
func getOperationID[T any](poller *runtime.Poller[T]) (string, error) {
	token, err := poller.ResumeToken()
	if err != nil {
		return "", err
	}
	raw, err := pollers.ExtractToken(token)
	if err != nil {
		return "", err
	}
	var asJSON asyncPoller
	if err := json.Unmarshal(raw, &asJSON); err != nil {
		return "", err
	}

	return parseOperationIDFromURL(asyncPoller.Op)

Maybe every response should provide a way to inspect the underlying response, like the policy.Request, which exposes .Raw()
Could all response type be extended to expose a .Raw() func that returns the underlying *http.Reponse?

Our current hypothesis is that the majority of users don't care about the raw HTTP response which is why we don't directly expose it in the response envelopes (we did but removed it).  It also created some confusion in some user studies.
We have runtime.WithCaptureResponse that allows capturing of the raw HTTP response on an as-needed basis.  Can you try it?

Oh, wow... yes, I think this "solves" it, but it's really weird and not discoverable at all.
looking at the doc, I just noticed this :
WithHTTPHeader .
I wrote multiple PerRequest policies with if/else statements to do this in our code... it's completely hidden and unnatural to use the context as the input of a function.
why do we have an option argument if not to pass... options?

"users don't care about the raw HTTP response". obviously we do.
when we get an error, the AzureError has an operationID and correlationID, and we want to track that in our app.
Not just have a string in the error struct to parse.
Response can have meaningful headers for other reasons, that are inaccessible.
ETags, LastModified, etc... all these are on the response object.
I'm confused at what is confusing with .Raw() returning the *http.Response behind the typed struct.
I'm all for minimal API, but don't amputate me and make it harder than it should be. otherwise we'll end up rolling our own again to not have bad workarounds.

For APIs that return a model, we, and a few of the other languages, had users start looking in the RawResponse field for the model which is why we removed it. That's not to say we couldn't add it later, but we wanted more data (it's easier to add than to remove).
I agree that our current solution for retrieving the raw response (in the success case) is unintuitive (and needs better docs/examples so it's discoverable). With our hypothesis that this is an "advanced" scenario, we felt it was acceptable for the API to be a bit clunky.
For the error case, we should be returning an *azcore.ResponseError type which does provide access to the raw response. If you're seeing otherwise, please open an issue so we can get it fixed.
Using the options type for optional HTTP headers is an interesting idea, and not one we had considered. I agree this would make it much more discoverable. I will bring this up with the team.

@serbrech we're evaluating the idea to add the optional HTTP headers to the options parameter type.  Can you please provide some details on how many headers you add and how often (i.e. every API call, selects calls, etc).


Write alpha version of tfjs-tflite-node

Write an alpha version of tfjs-tflite-node that support running TFLite models in Node.js. Also, support loading a single external delegate to accelerate inference.
Write the following files:

binding/node_tflite_binding.cc for constructing a TFLite interpreter, passing tensors to it, and running it.
src/index.ts to expose this binding to JavaScript.
src/index_test.ts to test the bindings, including running a model and checking its output.
src/delegate_plugin.ts to provide an API for TFLite delegates.

Add library files and headers for the tflite C API in cc_deps/. Configure the build to use these files in binding.gyp.

This change is

@huningxin @honry Here's the first PR for tfjs-tflite-node.


Relax repo parsing rules

currently only the these locations are being parsed.
@locations %{mission: "missions", sidequest: "quests", path: "paths", contest: "contests"}
I think we want to relax the rules a little so all folders within the assessment repo are searched for *.xml files.

currently only the these locations are being parsed.
@locations %{mission: "missions", sidequest: "quests", path: "paths", contest: "contests"}
I think we want to relax the rules a little so all folders within the assessment repo are searched for *.xml files.

Yes, the addition of the "practical" folder may be a good time to implement this: Instead of hard-wiring "practical" (with or without "s"), you might just change the policy so that all folders are searched for .xml files. It may be more manageable, if we do this only in a flat structure. That way, we can add meta-information, or---who knows---some staging folders, without disturbing the live system.

@martin-henz  I feel like this might be a little confusing. The most flexible and the most straight forward one would be to traverse the repo recursively and parse ALL files! That way how we choose the manage the files is really up to the teaching team. To me all files in this repo should be read for prod. Trying to distinguish which files should be parsed and which not adds an layer of unnecessary complexity. (We can always add a max depth in case anyone is worried about security)

@martin-henz I feel like this might be a little confusing. The most flexible and the most straight forward one would be to traverse the repo recursively and parse ALL files! That way how we choose the manage the files is really up to the teaching team. To me all files in this repo should be read for prod. Trying to distinguish which files should be parsed and which not adds an layer of unnecessary complexity. (We can always add a max depth in case anyone is worried about security)

I agree. Would you look for particular file extensions, such as *.xml?


type mismatch when adding new field

I was learning more about CQRS and when learning added a name field and a NameChangeCommand, I can create a user with a name but using the CLI command we get the following error, if you could provide some insight as to why or when this is happening i would be very grateful. If you require any further information I can provide the files i have edited
In ReflectionEmbeddedProperty.php line 81:
Warning: ReflectionProperty::getValue() expects parameter 1 to be object, string given

We have added a __toString() i can provide a link to my repo with my changes on if that would help?
https://github.com/dodgyprincess/cqrs-practice

@dodgyprincess I downloaded you repo and did some tests. This are my results: https://github.com/dodgyprincess/cqrs-practice/commit/1a3a0671ba166233c29b0a9820dd0237dc75cc7c#r29179818

I'll close it as is not directly related with the repo ;)


Roles assigned based on group memberships

I followed these steps and if I assign the AWS directly to a user, it works fine.
But if I granted the role to a security group(premium AD free trial enabled), I dont see the AWS app in myapps.microsoft.com. Please confirm if I need to wait longer, I have logged out and logged in.
The app got removed instantly after I removed the user from the enterprise application - users and groups.

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

ID: 8fa5814d-91e2-2f75-77e7-62a8597f340c
Version Independent ID: 458e93d7-a180-4c2f-5077-9b9d124d726a
Content: Tutorial: Azure Active Directory integration with Amazon Web Services (AWS)
Content Source: articles/active-directory/saas-apps/amazon-web-service-tutorial.md
Service: active-directory
GitHub Login: @jeevansd
Microsoft Alias: jeedes

please close this, it took like 20 minutes before it showed up after mapping an AD group.

Hi @g0pinath Glad to hear that it! If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Rename comment visibility options, create a new ones, and update help text

-=Renames=-

Private => Applicant
Reviewers and Staff => Reviewers
Internal => Team
Public => All

-=To create=-

Applicant and Reviewers
Private

-=Help text changes=-

Applicant: Visible to applicant and team (default)
Reviewers: Visible to reviewers and team.
Applicants and Reviewers: Visible to applicants (including partners), reviewers, and team.
Team: Visible only to team.
Private: Visible only to author.
All: Visible to any user who has access to the submission. If the submission is public, that means he comment is publicly visible.

Relates to #1087

@danblah  See how it looks in the screenshot below. Are all these options really needed? I'm afraid the users will be a bit overwhelmed by all the options. All users will not see all the options but staff will.

My suggestion is that we at least skip the new "Private" option that makes the comment visible only to the user. This demands a rewrite of the comment access function that now is based on groups.
If someone want to have private notes, why should they add it do the system?

All good to remove the private option.
On the interface, what if have it be a pop up box from a button titled "Visibility". On click, you have checkboxes for the following:

Applicant (default)
Team (only visible to users in the role Staff)
Partners
Reviewers

The help text below updates as options are selected to say:
Visible to: OTF team, Applicants, Partners, Reviewers (etc).
Then there's a save/submit or whatever button and it goes back to the comment edit screen.

@danblah So then we are down do:

Rename Private => Applicant
Rename Internal => Team
Rename Reviewers and Staff => Reviewers
Replace Public => Partners

Four options is what we have today so then the UI can stay the same.

Those are the right options and I like that they related to roles.
I am proposing a different interface though I don't know if its possible. Right now its a radio button with only one option that requires a lot of help text because I don't think its intuitive. I'm proposing that you have a set of checkboxes for the commenterd to select any of the above that apply to them, clearly indicating that those are who can see the comment. I think that makes would allow us to dismiss the help text all together. Is what I'm saying make sense here?

The new interface with checkboxes is not implemented but the names are updated and a partner option is added.
Will add a new issue for the improved interface.

Related: https://github.com/OpenTechFund/opentech.fund/issues/1445

blah asked for small word change from Applicant to Applicant(s) on July 11.

All features are visible and functional during test. Thanks!


Some Jupyter/Lab/widget tidying

Overview
Some tidying of the JS/Jupyter/Lab hairball as I think about how to integrate #289.
Work-in-progress:

Rename wwt.js to widget.js in the frontend; that's more accurate
Include @imbasimba's doc fix while I'm here
Work on frontend docs/comments
Remove long-neglected examples
Remove some superfluous file reads in the Qt webserver infrastructure
Move interactive_figure static files out of nbextension/static, since they don't need to be / belong there.
Move webserver static files for the same reason.

Checklist
N/A, no new functionality or bugfixes: this is refactoring.

@imbasimba I've been thinking about how to approach the Python/JS/HTML architecture for your #289, and as part of that I spent some time reminding myself how all of the moving parts fit together here (Python, WWT engine, Jupyter, JupyterLab, Qt ...). This PR will break yours, but I think it also sets us up to move away from the manually-coded HTML/JS here to start using the research app, which IMO would be a big win.


[Feat] Add a setting to use 5e-style death roll rules for natural 1s and 20s.

This is already part of the system:


Running a cloud function from Index.js

Issue Description
I can not run a cloud code function (defined in main.js) from an express route (index.js)
In index.js
app.post('/test',  function (req, res) {
  demoFunction(req.body.input).then(function(output){
    //do some function
  })
});

var demoFunction = function (passedInput) {
  console.log("demoFunction start")
  return Parse.Cloud.run("cloudCodeFunction", {input: passedInput}, {useMasterKey: true}).then(function (output) {
       //function
        return output.info;
      })
      .catch (function(err) {
        console.log("ERROR!")
        console.log(err);
      })
}

In main.js
 Parse.Cloud.define("cloudCodeFunction", function(request, status){
        console.log('ranCloudFunc');
        var query = new Parse.Query("myClass");
        query.equalTo("field", request.params.input)
        query.find({
            useMasterKey: true,
            success: function(objects) {
              response.success(objects[0]);
            }, error: function(error) {
                response.error(error)
            }
        });
    })

Expected Results
Cloud code function to run when a POST request is made to /test
Console logs should have:
demoFunction start
ranCloudFunc
Actual Outcome
Console logs have:
demoFunction start
ERROR!
ParseError { code: undefined, message: 'unauthorized' }
and the cloud code function does not get performed.
Environment Setup

Server

parse-server version: 2.2.18
Remote server: Heroku

I don't think your syntax is quite right on useMasterKey in main.js.
Try adjusting your useMasterKey syntax to this:
    var query = new Parse.Query("myClass");
    query.equalTo("field", request.params.input);
    query.find({ useMasterKey: true })
      .then(function(objects) {
        response.success(objects[0]);
    }, function (error)
      response.error(error)
    });

@OpConTech Nope, that still doesn't work. I don't think theres a problem with the function in main.js since the console debug line 'ranCloudFunc' never gets printed to the console. So there error is before.

  That error message you are getting where it says "unauthorized" will happen when useMasterKey: true syntax is wrong and makes it by the compiler but still does not work correctly.

@bcootner I managed to reproduce what you were trying, and I succeeded running a cloud function without any problems from index.js.
In your main.js file:
Parse.Cloud.define("cloudCodeFunction", function(request, response) {
  response.success("Hello " + request.params.input);
});

In your index.js file:
app.get('/goodtest/:input',  function (req, res) {
  goodDemoFunction(req.params.input).then(function(output) {
    res.send(output);
  })
});

var goodDemoFunction = function (passedInput) {
  console.log("demoFunction start")
  return Parse.Cloud.run("cloudCodeFunction", {input: passedInput}, {useMasterKey: true});
}

Run npm start and then in another terminal tab run: curl http://localhost:1337/goodtest/world, you'll see it works.
If your demo function in index.js is returning a promise, you cannot use .then() in both places, inside the function and inside your app.post or app.get.
And besides that, on a side note, remember that the Parse JS SDK always returns Parse.Promise, and they don't have a catch function. Take a look here.


Create documentation structure

Need to create documentation structure

Description have to include:

Introduction
Entities

Providers
Injections
Catalogs

Advanced practices

Inject decorator
Overriding of providers
Overriding of catalogs

Introduction
Providers

Instance providers & Injections
Static providers
Callable provider
External dependency provider
Config provider
Providers delegation
Overriding of providers

Topics:

Introduction
Installation
Providers

Instance providers & Injections
Static providers
Callable provider
External dependency provider
Config provider
Providers delegation
Overriding of providers

Catalogs
Decorators

@inject decorator
@override decorator

Examples
Feedback

Also GA integration into RTD is needed.


Update reference-connect-sync-functions-reference.md

Couple of small updates based on feedback we received

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

#sign-off