SyntaxError: Unexpected token '?'

Hi, when I'm running it directly in my pc via npm run start it's working but when I't trying to run it in docker I'm getting below error.
I'm not sure where it's coming from. Do you have any idea what might be the reason?
bot-gateway_1  |                 ...(options.extraProviders ?? []),
bot-gateway_1  |                                             ^
bot-gateway_1  |
bot-gateway_1  | SyntaxError: Unexpected token '?'
bot-gateway_1  |     at Module._compile (internal/modules/cjs/loader.js:895:18)
bot-gateway_1  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
bot-gateway_1  |     at Module.load (internal/modules/cjs/loader.js:815:32)
bot-gateway_1  |     at Function.Module._load (internal/modules/cjs/loader.js:727:14)
bot-gateway_1  |     at Module.require (internal/modules/cjs/loader.js:852:19)
bot-gateway_1  |     at Module.Hook._require.Module.require (/usr/src/app/node_modules/require-in-the-middle/index.js:80:39)
bot-gateway_1  |     at require (internal/modules/cjs/helpers.js:74:18)
bot-gateway_1  |     at Object.<anonymous> (/usr/src/app/node_modules/nestjs-unleash/src/unleash-strategies/index.ts:3:1)
bot-gateway_1  |     at Module._compile (internal/modules/cjs/loader.js:959:30)
bot-gateway_1  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)

My dependencies
  "dependencies": {
    "@google-cloud/bigquery": "^5.5.0",
    "@google-cloud/pubsub": "^2.7.0",
    "@google-cloud/trace-agent": "^5.1.1",
    "@nestjs/common": "^7.6.1",
    "@nestjs/config": "^0.4.2",
    "@nestjs/core": "^7.6.1",
    "@nestjs/jwt": "^7.2.0",
    "@nestjs/passport": "^7.1.5",
    "@nestjs/platform-express": "^7.6.1",
    "@nestjs/schedule": "^0.4.1",
    "@nestjs/swagger": "^4.7.6",
    "@nestjs/terminus": "^7.0.1",
    "class-transformer": "^0.2.3",
    "class-validator": "^0.12.2",
    "compression": "^1.7.4",
    "dayjs": "^1.9.7",
    "dotenv": "^8.2.0",
    "gcp-metadata": "^4.2.1",
    "helmet": "^3.23.3",
    "lru-cache": "^6.0.0",
    "measurement-protocol": "^0.1.1",
    "nestjs-pino": "^1.3.0",
    "nestjs-unleash": "^1.2.0",
    "passport": "^0.4.1",
    "passport-http": "^0.3.0",
    "passport-local": "^1.0.0",
    "pino-pretty": "^4.3.0",
    "pino-stackdriver": "2.1.1",
    "reflect-metadata": "^0.1.13",
    "rxjs": "^6.6.3",
    "source-map-support": "0.5.18"
  },
  "devDependencies": {
    "@nestjs/cli": "^7.5.4",
    "@nestjs/schematics": "^7.2.5",
    "@nestjs/testing": "^7.6.1",
    "@types/express": "^4.17.9",
    "@types/helmet": "0.0.47",
    "@types/jest": "25.1.4",
    "@types/lru-cache": "^5.1.0",
    "@types/node": "^13.13.36",
    "@types/passport-http": "^0.3.8",
    "@types/passport-local": "^1.0.33",
    "@types/supertest": "^2.0.10",
    "@types/universal-analytics": "^0.4.4",
    "@typescript-eslint/eslint-plugin": "^2.34.0",
    "@typescript-eslint/parser": "^2.34.0",
    "commander": "^6.2.1",
    "eslint": "^6.8.0",
    "eslint-config-prettier": "^6.15.0",
    "eslint-plugin-import": "^2.22.1",
    "husky": "^4.3.6",
    "jest": "^26.6.3",
    "jest-junit": "10.0.0",
    "prettier": "^1.19.1",
    "pretty-quick": "^2.0.2",
    "supertest": "^4.0.2",
    "ts-jest": "25.5.0",
    "ts-loader": "^6.2.1",
    "ts-node": "^8.10.2",
    "tsconfig-paths": "^3.9.0",
    "typescript": "^4.1.3"
  },

Hm, locally I was running node 14 where in Docker I had node 12. After changing to node14 in docker file it's working.

Hm, locally I was running node 14 where in Docker I had node 12. After changing to node14 in docker file it's working.

@pmb0 I'm having this issue too (running locally. node version v14.16.0. nest version v7.6.7).
Any idea what is wrong ?

Hi @nllahat , the Nullish coalescing operator (??) needs Node.js ^14.0.0. are you sure you use v14?

However, it was not my intention that this only runs with new / recent Node.js versions. I should adjust the ts settings.

@pmb0 sorry. my mistake. I ran it with node 13.4.


[Enhancement] disable static map property

added disableStaticMap property for ExportVideoPanelPreview. The property prevents the creation of MapboxLayers from passed layers and can be useful for capturing layers that don't use web-mercator projection.

Were you able to test this in an example?

Looks like CI broke. Going to try a recent fix used on deck https://github.com/visgl/deck.gl/pull/5572/files

Were you able to test this in an example?
Tried it with the globe. Will try examples later.


I have a conditon like this "a in (a,b,c,d,e)",how do I use "in" in a conditon?

I have a conditon like this "a in (a,b,c,d,e)",how do I use "in" in a conditon?

The nice things about easy rules is that rules are written in Java, so you can use any Java construct to implement the "in" operator.
Here is an example with a condition that checks if a fact is in a list of values:
    static class Example {
        public static void main(String[] args) {
            @org.jeasy.rules.annotation.Rule
            class MyRule {

                @org.jeasy.rules.annotation.Condition
                public boolean condition(@Fact("value") String value) {
                    return Arrays.asList("a", "b", "c").contains(value);
                }

                @org.jeasy.rules.annotation.Action
                public void action() {
                    System.out.println("yes");
                }
            }

            RulesEngine engine = new DefaultRulesEngine();
            Facts facts = new Facts();
            facts.put("value", "a");
            Rules rules = new Rules();
            rules.register(new MyRule());
            engine.fire(rules, facts); // prints "yes"
        }
    }

I have a conditon like this "a in (a,b,c,d,e)",how do I use "in" in a conditon?

Facts facts = new Facts();         facts.put("x","c");         Condition containsCondition = new SpELCondition("{'a','b','c'}.contains(#x)");         containsCondition.evaluate(facts);         assertThat(containsCondition.evaluate(facts)).isTrue();
`
Facts facts = new Facts();
facts.put("x","c");
Condition containsCondition = new MVELCondition("['a','b','c'] contains x ");
containsCondition.evaluate(facts);
assertThat(containsCondition.evaluate(facts)).isTrue();
`

3ks,actually the value in array was in the mysql,but I think i have some idea to solve this.


[DO NOT MERGE] Auto PR to update dependencies of istio

This PR will be merged automatically once checks are successful.
none

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
3b555f5fa1548beb4c9ebb3840ddbd6183400bab
link
/test istio-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
d0c879d781297782cac063a47048610524e53968
link
/test istio-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
19230b1d8bda04ef1b09c7fa1cc022ff3803aeb3
link
/test istio-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Is there a way to use this without custom fonts

I know that powerline needs special fonts to make everything pretty.
Is there a way to just use regular symbols? Installing patched fonts is kinda a pain.
I know the airline project was able to achieve this.

An alternative (though somewhat avoiding the issue) is to distribute the modified font yourself, if you have the rights to -- or make an integrated means of installing/making it available.
The 3270 font has squares for continuation lines, awkwardly.


[fix] [bk] Correctct the bookie info after ZK client is reconnected

Motivation
After PIP-118: reconnect broker when ZooKeeper session expires, the Broker will not shut down after losing the connection of the local metadata store in the default configuration.
However, before the ZK client is reconnected, the events of BK online and offline are lost, resulting in incorrect BK info in the memory. You can reproduce the issue by the test BkEnsemblesChaosTest. testBookieInfoIsCorrectEvenIfLostNotificationDueToZKClientReconnect(90% probability of reproduce of the issue, run it again if the issue does not occur)
Modifications
Refresh BK info in memory after the ZK client is reconnected.
Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository: x

/pulsarbot rerun-failure-checks


Create All Volunteer Training

On the create all Volunteer Training page, when you are selecting a date or time, two dropdowns pop up and sometimes, the date dropdown will prevent the user from selecting a date!

This has been fixed it just not being merged into development yet!


add a button to remove items from parameter list

Fixes #52

This also contains some changes to GenericPlanForm to follow javascript conventions:
camelCase instead of snake_case and using private instead of _


Adding an example of lock-free telemetry aggregation between kernel s…

Last week was my first time using aya, and also my first time writing an eBPF program using Rust. My use case was fairly simple - writing a small telemetry agent to gather detailed network byte rate data - but I struggled to find what I needed in the existing documentation and example. I was able to get a few hints in the discord channel and decided to contribute back this stripped down version to the aya documentation.

Hi @avirtuos! Sorry for late reaction.
Usually we add examples to the book with a text chapter talking about it. And the sections of code are being included in the *.md files. Would that be something you're interested in adding?
If not, I think maybe it's time to add some examples repo, where adding just code without docs would be fine.

Hey @vadorovsky ,
Thanks for the reply. I'd be open to updating the book. I think it might make sense for me to enhance the existing section on classifiers since that make use of the tc-egress example that this PR was inspired by (https://github.com/aya-rs/book/blob/main/docs/book/programs/classifiers.md). What are your thoughts on that approach?
I'm also curious if you'd be willing to let me update this chapter as part of a separate PR so that we can get this example out there sooner for prospective users of aya who may be right now struggling to get started with the existing example set. I think its fairly common for folks to check the example directory based on other posts I saw online.
Thanks.


Cannot read property 'scale' of null   in   _onTextureUpdate

Steps to Reproduce
after call destroy of the text
Environment

pixi.js version: e.g. 4.8.1
Browser: _e.g. Chrome  67.0.3396.79
Device: e.g. Desktop

Can you make a jsfiddle which reproduces the problem. We can use this to verify fix.

i had made a mistask, sorry
thank you for your reply;


Session > Charging Curve: Display the phases' curves in the consumption chart for AC chargers when available

Done


Multipul file Upload is not working on Asp.net core with openApi new release!!

I am sharing some code.
[HttpPost("fileUploads")]
public IActionResult Index([FromForm] FileUploadRequest fileUploadRequest)
{
var outPut = _fileUploader.ExtractFilesAndScan(fileUploadRequest);
return Ok(new
{
outPut.FilesUploaded,
outPut.FilesScanned,
ScanResult = outPut.ScanResult.ToString(),
outPut.Messages
});
}
public void Apply(OpenApiOperation operation, OperationFilterContext context)
{
if (operation.Tags.All(p => p.Name != "FileUploads")) return;
        var fileParameter = operation.Parameters.FirstOrDefault(x => x.Name == "file");
        if (fileParameter != null)
            operation.Parameters.Remove(fileParameter);

        var uploadFileMediaType = new OpenApiMediaType()
        {
            Schema = new OpenApiSchema()
            {
                Type = "object",
                Properties =
                {
                    ["Files"] = new OpenApiSchema()
                    {
                        Description = "Upload File",
                        Type = "file",
                        Format = "formData",
                        MultipleOf = 10
                    }
                },
                Required = new HashSet<string>() { "Files" }
            }
        };

        operation.RequestBody = new OpenApiRequestBody
        {
            Content = { ["multipart/form-data"] = uploadFileMediaType }
        };
    }

still Gettingf Issue not able to find any value in controller request.

In the latest version, file uploads are supported out-of-the-box - no need for an operation filter:
https://github.com/domaindrivendev/Swashbuckle.AspNetCore#handle-forms-and-file-uploads

In the latest version, file uploads are supported out-of-the-box - no need for an operation filter:
https://github.com/domaindrivendev/Swashbuckle.AspNetCore#handle-forms-and-file-uploads


Firebase offline first

Does this js works with the new firebase version?

Two potential issues: First, the need for a debug version (which is included with every release, just append -debug to the file before downloading.
Second is that v0 is long deprecated, it's pinned to v1.0.6 of our JS client and we're currently at 2.3.2. I would try this with the latest version (debug or minified) to see if it works.

Thanks, I didn't know where to find the latest version. I will have a shot at updating this repo to use the more recent API
We're using this in production; any timeframe for v0 ceasing to work?

Yep, no problem. I basically just try to get people to upgrade from v0 since we've implemented a ton of new features, performance improvements, and bug fixes since then. No immediate plans for deprecation (we try to always implement backwards compatible changes), but I would try to upgrade for the performance and bug fixes if for no other reason :)

+1 for an update on this repo!

Also +1 for an update.


Schema stitching - multiple requests to the same endpoint when a combined query is executed

I have two micro-services with GraphQL endpoints. One of them is used for pagination and the combined query looks like this:
const pagingQuery = gql`
  query combinedQuery ($paging: PagingInputType, $filter: FilterInputType)  {
    items(paging: $paging, filter: $filter) {
      name
      id
    }
    total(filter: $filter)
  }
`;

When I execute it without schema stitching, I can see one POST request containing this combined query.
As soon as I merge two schemas and execute the same combined query, I see two separate POSTs (for items and for total) to one and the same endpoint. As far as I understand, the combined query is being split into separate fields and each of them is delegated to the appropriate schema, so they are executed separately. The problem is that in cases when fields belong the the same schema (GraphQL endpoint) we still get separate requests to this endpoint and loose the benefit of queries combination.
Is there any ideas how to avoid multiple requests to the same GraphQL endpoint when a combined query is being executed?

One way (if I understand you correctly) is to delegate the whole query.
It would be:
resolvers: {
      ...resolvers,
      Query: {
        ...resolvers.Query,
        combinedQuery: async (x,
          { paging, filter },
          context,
          info) => {
          let result = await info.mergeInfo.delegateToSchema({
            schema: paginationSchema,
            operation: 'query',
            fieldName: 'paginationQuery',
            args: { paging, filter },
            context,
            info
          })

          return result
        }

Closing, see #884


feat(DHIS2-17002): display custom text before and after a section

This PR adds the ability to configure custom HTML text before and after a section. This implements DHIS2-17002
Implementation notes

I added a library to sanitise the html content before displaying it. I wanted to just use react-html-parser initially as is the case with custom forms, but that doesn't sanitise HTML properly (beyond stripping script tags), and the authors of the library themselves recommended using DomPurify

Related maintenance PR: https://github.com/dhis2/maintenance-app/pull/2812

text_before_after_section.webm
Context
This is part of an epic to provide native configurations options to data entry forms to reduce the necessity for custom forms. Users are currently building custom forms as a workaround for shortcomings of the configuration options (ability to transpose, or customise a cell design) or implementation (such to avoid issues with RTL issues). This is an RFC that describes the approach and the priorities for form configuration options. This is based on a thorough investigation by the functional design team for custom form use cases in real-life implementations. Based on that investigation, the ability to transpose forms and adding free-text descriptions were identified as the top functionalities to support.

@michael-markevich this story might have security implications. We're allowing users to add html content to display before and after a data entry form. I've used a library here that sanitises the HTML and only allows certain HTML tags (including links but it takes care of xss through href).
This sanitisation happens when displaying the form - I am wondering whether we should be actually sanitising  the content when configuring it in the maintenance app, or is it enough to sanitise when displaying it? I am just wary of implicitly changing something people enter in the maintenance app.

Also have a look at the display options types: https://github.com/dhis2/aggregate-data-entry-app/blob/72c96bf4e3c144e0d05908868a43a1c7f773e547/src/data-workspace/category-combo-table-body-pivoted/category-combo-table-body-pivoted.js#L149-L154
An object seems expected but a string is used, and the names of the before and after text seems different

(PS why is displayOptions a string instead of an object? Just curious)

thanks for the review @KaiVandivier  - displayOptions is a string because of a limitation of the backend hibernate mapping, where we'd need to either have it as a string, or map it into Java objects - discussion is here.


Importing as ES6 module without build step

What problem does this feature solve?
As ES6 module support is finally shipped in Chrome without flags, many of us may consider getting rid of a build step in development stage.
And Vue.js is almost there being shipped with vue.esm.js bundle among other options. But unfortunately this module doesn't work out of the box when we import it and try to use avoiding webpack build step. Just only because process.env.NODE_ENV present.
If I try to manually add something like this
const process = {
  env: {
      NODE_ENV: "development"
  }
};

at the top of the module, it seems like everything works as expected.
What does the proposed API look like?
As such setup is only relevant in development, maybe consider adding one more bundle like vue.esm.dev.js?

We've got this request before - the short answer is not for now.

Shipping pure ESM directly to production is still a no-go for the foreseeable future, and it also lack support for the recommended toolchains. This means the build would only be useful for prototyping.
However for prototyping, you can just include Vue via <script src> and it doesn't make much difference and is not worth the complexity in adding yet another dist format.


Temporarily remove telemetry

Closes #8247

For reference this is in 8.0b2 although not mentioned in release notes: https://github.com/thunderbird/thunderbird-android/releases/tag/K9MAIL_8_0b2
https://github.com/thunderbird/thunderbird-android/compare/K9MAIL_8_0b1...K9MAIL_8_0b2


npm error

can u help with this error?

It might have to do with the space in your "ng-2 admin" directory, but no promises. Try removing the space and running it again.

the first ng-2 admin is the folder/directory name followed by the second sub-directory which is cloned and have no space in it

Hey @yatinkapur, I believe @zbagley is right and this most likely the issue. Try cloning the project from scratch.


Visual glitch with the holo planet selector

Looked from above

Looked from below

which is the correct one?

Is there something other than the blue, professionally name "holo effect thingy" that's wrong?

nope

Aright, should be fixed for next build then


Iterate with PR comments and code review

Functionality to iteratively amend PRs; currently it regenerates the PR every time you run it on an issue, I'd like it to respond code review/pull request comments, adding new commits and a new comment.
Draft for this is PR #28.
TODO is:

[ ] rail_v1 is missing an amendment implementation (but all the models are there)
https://github.com/irgolic/AutoPR/pull/28/files#diff-4318038294852a7dbaf7f9e132470168fea537d7593c95755296b0b467228edcR162
[ ] event service needs to correctly interpret the github event for these two new events https://github.com/irgolic/AutoPR/pull/28/files#diff-8d5dc9a95027cb9ebfb8a5c88201744a8e02367997013b710a71a4a7fe321cffR25
[ ] workflow file (in whichever repo you're testing with) needs to pass along code review comments too
https://github.com/irgolic/AutoPR/blob/main/.github/workflows/create-pr-from-issue.yml#L4
[ ] comment trigger needs to handle PR comments and code review correctly (maybe don't need to use 🚀 emoji for code review submissions to trigger?)
https://github.com/irgolic/pull-request-comment-trigger/blob/master/index.js
[ ] generation service needs to handle the two new event types https://github.com/irgolic/AutoPR/blob/main/autopr/services/generation_service.py#L46

Accidentally triggered it with the rocket emoji lol
It failed because Github Action tokens can't edit workflows, I'd need to replace it with a personal access token. It also can't pull the branch of #28 – when this issue is solved, we will be able to iterate on PRs in the PR comments section itself. But cute effort honestly, it created correct little stubs ready to be filled out.

Closed by #28, code review split off into https://github.com/irgolic/AutoPR/issues/109


Authorize.net CIM Fixes

I've done some maintenance and added some documentation to make the Authorize.net CIM gateway a bit more usable for me and can hopefully benefit others as well.  Here are the things I have added in these commits:

Added an option when initializing the gateway to optionally override the default direct_response delimiter of ',' (comma)
Added additional fields to be parsed in the direct response for Authorize.net's Transaction Version 3.1.  These fields include things such as card_type and account_number (masked) to be returned with the response.  It is completely backwards compatible to version 3.0 (all tests still pass with additional tests added for new direct_response type).
Added requires to create_customer_profile as previously marked by a "TODO add requires" in accordance with the Authorize.net CIM XML Guide.  Added documentation to match.
Refactored Response.authorization to not be nil when returning a processed transaction response and a gateway transaction_id exists.  It now returns that transaction_id as the authorization in the response.  Modified tests to account for this response.

This looks solid, but can you (a) update against master and (b) squash the related commits? Thanks!

To clarify: I'm cool with multiple commits, but would prefer one commit per logical change.

Sorry about that.  I've squashed it all down and rebased upstream/master.  Should be good to go now.


I2C OpenCM9.04C board using Arduino IDE

I'm attempting to connect to an IMU (Adafruit BNO055) using an OpenCM9.04 board with I2C. I tried using the Wire.h library and the I2CDev library, but it still doesn't recognize the connection. I have the wires connected to pins 24 and 25 for SDA and SCL connections. At the beginning of my code, I tried using wire.begin(14,15) and wire.begin(24,25) to initialize the I2C but it doesn't seem to work. Any idea how I can connect with the IMU? I know the IMU works because I can get it working for an Arduino Uno, but not for the OpemCM9.04.

Hi, @TahaShafa
I can not check the operation because I do not have that hardware.
Wire.h in OpenCM 9.04 uses software i2c, which can cause this problem because of the slow speed.
In the case of I2CDev, it is an API that is incompatible with the Wire example code. Unless you modify the code to match the I2CDev API, it will not be available.

This issue will be closed since there were no actions for a while. You can reopen this issue to show this issue to the users whenever. Thanks.

Hi There,
I just happen to see this closed issue. Actually I have just encountered the exact same issue and I think I should put my solution here as a clue.
The main reason openCM9.04 and BNO055 cannot work together correctly is about the clock stretching. The BNO055 will pull down the SCL to low before and after the ACK signal for about 120 microseconds each. The hardware I2C of other devices can detect such a scenario and hold communication during that time. Yet the SlowSoftI2CMaster lib is lacking such ability, continuing sending the clock signal during that time which would not show up because of the SCL pulling low. And therefore the whole signal sequence afterward would be messed up because of such clock missing.
My simple solution is in SlowSoftI2CMaster.cpp, below L98, L104, L120, L126, adding the following code:
while(digitalRead(_scl)!=HIGH);
This line will do the job to detect the scenario I mentioned before and confirm the clock signal's integrity. You can change this code to some other detection methods with a timeout if there do have a possibility that something can pull the SCL to low for an unacceptable amount of time.

I was also trying to use OpenCM9.04 with Adafruit BNO055. The above solution does not work for me but it is really close. Instead, I only added the following line after line 103 and line 121(both lines are setHigh(_scl);) in SlowSoftI2CMaster.cpp located at Arduino15/packages/OpenCM904/hardware/OpenCM904/1.5.1/libraries/Wire.
while(digitalRead(_scl)!=HIGH);

I also noticed that if I tried to pull the data from the sensor too fast(greater than about 300Hz), it will return zeros from time to time. As long as the polling rate is not too fast. It works pretty well.


updated catalog modal design

Description
Updating Modal design
Notes for Reviewers

Incorporating feedback that was overlooked in the previous update #1349
Reason for Delay: A particular modal had a design bug visible, it turns out the source file had a syntax error, which I fixed.
Fixing responsiveness issues

Signed commits

[X] Yes, I signed my commits.

@thisiskaransgit Alignment and padding issues in the header. Also, let's get clear on the placement of x, it's odd to have it on the left, I'm aware of the design that we have a badge on the top-right.
Just to confirm, did we ever had a complete UX and design made for this modal? cc @ritiksaxena124

@Chadha93 No major design was needed here, and the placement of elements on the position was intentional. The suggestion was provided in Slack, since the last PR wasn't concluded with all the requests, this one was needed.

note the need for a different color for the “X”(previously it was black)
You might add a bit of space between the design diagram and the buttons or put the buttons at the bottom of the modal.
or put an outline around the diagram’s screenshot (which are all the same right now, but will become MeshMap Snapshots)
Note the disjointed type label in the Related Patterns card (something to fix (bring inline with the rest of the design)). (edited)
Do not use bold text.
Change the color of the external link button, too.
give it some space between the card name and make is the larger to be almost the same size as the card name.
The white space between the card name and the first “WHAT THIS PATTERN….” is wasted and can be cut-down.
The “Related Patterns” section title can be captialized.
Finally, if you move the screenshot, buttons and related patterns back to the left side, where they were, you can vertically split the card into two sections such that the left side has a different background than the main card, providing clarity to the user, making it easier to digest the information. (edited)
It's fine to keep the card name in bold.

Suggestion: we should show only relevant details on modal not all details because what is the point of having a separate page when we are showing all details on modal


Cannot get corpus dir

According to the README, I can get the corpus dir. But when I run the recommended command, I get an error
λ python -c "from allofplos.plos_regex import corpusdir; print(corpusdir)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'corpusdir'

Environment:
λ python --version
Python 3.5.2
λ pip freeze
allofplos==0.10.2
certifi==2018.1.18
chardet==3.0.4
idna==2.6
lxml==4.1.1
peewee==3.1.0
pkg-resources==0.0.0
python-utils==2.3.0
requests==2.18.4
six==1.11.0
tqdm==4.19.5
Unidecode==1.0.22
urllib3==1.22

Most likely the doc is outdated, here is how I do it:
python -c "from allofplos.plos_regex import get_corpus_dir; print(get_corpus_dir())"
/home/sbassi/projects/plos/sbrepo/allofplos/allofplos/allofplos_xml

will make a branch for the doc update.

:+1: Thanks @sbassi !!

Your version works great for me:
λ python -c "from allofplos.plos_regex import get_corpus_dir; print(get_corpus_dir())"
/home/egh/.virtualenvs/allofplos2/local/lib/python3.5/site-packages/allofplos/allofplos_xml

I'd like to point out that you could do
python -c "from allofplos import get_corpus_dir; print(get_corpus_dir())"
since it's contained at the top level allofplos/init.py
On Mon, Feb 26, 2018 at 2:38 PM, Erik Hetzner<EMAIL_ADDRESS>wrote:

Your version works great for me:
λ python -c "from allofplos.plos_regex import get_corpus_dir; print(get_corpus_dir())"
/home/egh/.virtualenvs/allofplos2/local/lib/python3.5/site-packages/allofplos/allofplos_xml
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PLOS/allofplos/issues/85#issuecomment-368676358, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACXg6GVbSw0j38Xxn0S5Az28FpcwC6jRks5tYzJbgaJpZM4SUBGR
.

I'd like to point out that you could do
python -c "from allofplos import get_corpus_dir; print(get_corpus_dir())"

since it's contained at the top level allofplos/init.py

labeled as a bug because it is a documentation bug


python3 examples/yolov3.py: assert self.lazydata.realized is None AssertionError

python3 examples/yolov3.py:
...
Modules length: 24
Loading weights file (237MB). This might take a while…
running inference…
Traceback (most recent call last):
File "/home/dh/tinygrad/examples/yolov3.py", line 628, in
prediction = infer(model, img)
File "/home/dh/tinygrad/examples/yolov3.py", line 244, in infer
prediction = model.forward(Tensor(img.astype(np.float32)))
File "/home/dh/tinygrad/examples/yolov3.py", line 561, in forward
x = predict_transform(x, inp_dim, anchors, num_classes)
File "/home/dh/tinygrad/examples/yolov3.py", line 321, in predict_transform
prediction.gpu_()
File "/home/dh/tinygrad/tinygrad/tensor.py", line 74, in to_
assert self.lazydata.realized is None
AssertionError
What is the problem? thank you!

There has been large changes in tinygrad since that example was written and tinygrads API has changed.
You can run the example on an older version of tinygrad
git checkout 121d5a17ee436d043bcd49053ef4dc4114a56718
GPU=1 python3 examples/yolov3.py

You could send in a pull request.. but since the API is so unstable it might be a bit wasteful. Stuff will likely change again. Or so I think. For example, operation fusing which is in the pipeline will require at least one change to the tinygrad API.

There has been large changes in tinygrad since that example was written and tinygrads API has changed.
You can run the example on an older version of tinygrad
git checkout 121d5a17ee436d043bcd49053ef4dc4114a56718
GPU=1 python3 examples/yolov3.py

You could send in a pull request to fix it.. but since the API is so unstable it might be a bit wasteful. Stuff will likely change again. Or so I think. For example, operation fusing which is in the pipeline will require at least one change that I can think of to the tinygrad API.

Thank you very much for your help. I'll see if I can solve this problem.


Sentinel Support?

Does this client support sentinel commands and other stuff related to sentinel and master election and etc.?

not support


Workaround to fix crash and the bug from google sign in

@lunarraid

When we get the error code 12501(Sign in in progress) it tries once more and if it fails again, returns the error.

Were you unable to determine if it was possible to just keep the activity open?

@lunarraid no, I couldn't find anything to keep it open.

Ok, this probably works for now then. Let's merge and update the hash verydice is pointing to. However, take a look at https://github.com/react-native-community/react-native-google-signin. It looks like that project is being actively maintained and updated again, and if we can do some PRs for that repo that get accepted, we can get off of having to maintain ours.

@lunarraid okay but this is not an issue of library. This bug is from the native google auth library referenced by the module. So I'm not sure if they will fix the issue on their side.


App timeout after Installation

I installed V2.2.4 of the Add-On and restarted HA and am unable to get the Add-On to start. I have uninstalled and reinstalled all with the same issue.
My HA install is as follows:
Intel 11th Gen NUC
Intel Celeron N4505
32GB RAM
512GB NVME HDD
Generic X836-64
Core   2024.1.2
Supervisor   2023.12.0
Operating System   11.3
Frontend   20240104.0
I pulled the following from the Add-In log-
[1] Info: No new settings file. Attempting to restore from legacy configuration
01/08/2024 16:03:11 [1] Info: Anonymous Telemetry Disabled
01/08/2024 16:03:11 [1] Info: Backup interval configured to every 24 hours
01/08/2024 16:03:11 [1] Warning: Token cache is empty
01/08/2024 16:03:12 [7] Info: To sign in, use a web browser to open the page
https://microsoft.com/devicelogin and enter the code LDFNA8H6J to authenticate.
Reading the comments I went to the MS site (https://microsoft.com/devicelogin) and entered the code above and got a "That code didn't work. Check the code and try again." message
I reviewed the Supervisor logs and found the following error "24-01-08 16:05:10 WARNING (MainThread) [supervisor.addons.addon] Timeout while waiting for addon OneDrive Backup to start, took more than 120 seconds" followed by the following:
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.check] System checks complete
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
24-01-08 15:39:30 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
24-01-08 15:41:25 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
24-01-08 16:02:41 INFO (MainThread) [supervisor.addons.addon] Creating Home Assistant add-on data folder /data/addons/data/de91e161_hassio_onedrive_backup
24-01-08 16:02:41 INFO (MainThread) [supervisor.host.apparmor] Adding/updating AppArmor profile: de91e161_hassio_onedrive_backup
24-01-08 16:02:41 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/lavinir/amd64-hassonedrive with tag 2.2.4.
24-01-08 16:02:47 INFO (MainThread) [supervisor.addons.manager] Add-on 'de91e161_hassio_onedrive_backup' successfully installed
24-01-08 16:03:10 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on ghcr.io/lavinir/amd64-hassonedrive with version 2.2.4
24-01-08 16:03:10 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from de91e161_hassio_onedrive_backup
24-01-08 16:03:11 INFO (MainThread) [supervisor.api.middleware.security] /addons access from de91e161_hassio_onedrive_backup
Any help is appreciated and I donated for cofee in advance :)

Appreciate the coffee but it's not a requirement for asking for help :)
Please try the following (for reference this is also explained in the readme here

Restart the addon
Open the addon Web UI
You should have a banner on top asking you to authenticate with a code and a link. Complete this within a few minutes.

Make sure you have a successful login. Just a reminder this needs a Personal MS account (OneDrive for business is not supported).

Thanks for the reply,
However, I can’t get the add-on to start so I can’t make it past step #1.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows
From: @.>
Sent: Tuesday, January 9, 2024 12:48 PM
To: @.>
Cc: @.>; @.>
Subject: Re: [lavinir/hassio-onedrive-backup] App timeout after Installation (Issue #163)
Appreciate the coffee but it's not a requirement for asking for help :)
Please try the following (for reference this is also explained in the readme herehttps://github.com/lavinir/hassio-onedrive-backup?tab=readme-ov-file#installation-instructions

Restart the addon
Open the addon Web UI
You should have a banner on top asking you to authenticate with a code and a link. Complete this within a few minutes.

Make sure you have a successful login. Just a reminder this needs a Personal MS account (OneDrive for business is not supported).
—
Reply to this email directly, view it on GitHubhttps://github.com/lavinir/hassio-onedrive-backup/issues/163#issuecomment-1883598733, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACJSK33MYELTJUX6JXLZXZTYNWGHZAVCNFSM6AAAAABBSFPNKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBTGU4TQNZTGM.
You are receiving this because you authored the thread.Message ID: @.***>

Hello Lavinir,
This issue exists in my HA also, I just installed the addon and it doesnt start at all, however as you mentioned it seems running.
I am a bit confused because the Addon page shows a red circle as it was not running, but in the background backup completed and syncronized.
Also for sure the WebUI is not working for me...
Shall I upload something which can help you analyze this?
Thanks,
kissrac

Walk me through it. You install, then click start but you don't get any 'started' indication?
What do you see when you try to open the WebUI?
Could you please share your logs ?

Hi,
Yes, I have installed it, tried to start the addon, but it is not starting.
If I try to start from the sidebar, it is just circling...
When I check the log I can see that I would need to authenticate, but I did that, that's why I mentioned that it seems to be running.
However no configuration possibility or on demand backup/restore...
Please find the logs below:
Add-on log:
OneDrive Backup
[1] Info: No new settings file. Attempting to restore from legacy configuration
03/04/2024 14:09:05 [4] Info: Anonymous Telemetry Disabled
03/04/2024 14:09:05 [4] Info: Backup interval configured to every 24 hours
03/04/2024 14:09:05 [4] Warning: Token cache is empty
03/04/2024 14:09:08 [14] Info: To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code LECCE6XF7 to authenticate.
03/04/2024 14:10:01 [11] Info: Creating new backup
03/04/2024 14:10:01 [11] Info: Starting full local backup
03/04/2024 14:10:06 [11] Info: Backup complete
03/04/2024 14:10:06 [11] Info: Found 1 backups to upload.
03/04/2024 14:10:06 [11] Info: Uploading hass_backup_2024-03-04-14-10 (03/04/2024 14:10:01)
03/04/2024 14:10:06 [11] Info: Fetching Local Backup (Slug:d6711cdd)
03/04/2024 14:10:06 [15] Info: Backup (d6711cdd) fetched successfully
03/04/2024 14:10:07 [11] Info: Starting file upload. (Size:32860160 bytes. Attempt: 1/3)
03/04/2024 14:10:13 [16] Info: Upload completed successfully
Supervisor log:
24-03-04 14:10:33 WARNING (MainThread) [supervisor.addons.addon] de91e161_hassio_onedrive_backup is already running!
24-03-04 14:11:04 WARNING (MainThread) [supervisor.addons.addon] Timeout while waiting for addon OneDrive Backup to start, took more than 120 seconds
24-03-04 14:12:04 WARNING (MainThread) [supervisor.addons.addon] Timeout while waiting for addon OneDrive Backup to start, took more than 120 seconds
24-03-04 14:12:33 WARNING (MainThread) [supervisor.addons.addon] Timeout while waiting for addon OneDrive Backup to start, took more than 120 seconds
Thanks for checking it!

Perhaps the banner is not showing up, could you please make sure this isn't related ?

After a while, the issue just fortunately got solved, however unfortunatel I dont know how or why... now everything works fine as expected 💯


Warhammer Online (return of reckoning) Black Screen with sound and cursor

Black Screen, with cursor and sound playing
Software information
Warhammer Online, Windowed and fullscreen tested.
System information

GPU: GTX 1080Ti
Driver: 418.56
Wine version: 4.5 staging
D9VK version: b91f6e21

Apitrace file(s)
none atm, can do if needed
Log files

d3d9.log:
WAR_d3d9.log

dxgi.log:
WAR_dxgi.log

Ok i got it running with winetricks d3dcompiler_47, i can see menu buttons, hear music. crashes after loading screen though:
Wine errors:
0087:fixme:d3dx:D3DXLoadSurfaceFromMemory Unhandled filter 0x3.
0087:fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Generation of mipmaps for compressed pixel formats is not implemented yet.
0087:fixme:d3dx:D3DXLoadSurfaceFromMemory Unhandled filter 0x3.
0087:err:d3d:x8r8g8b8_to_dxtn Failed to allocate memory for conversion
0087:fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Texture loading failed.
0087:fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Texture loading failed.
0087:fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Texture loading failed.
0087:fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Generation of mipmaps for compressed pixel formats is not implemented yet.
0087:fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Texture loading failed.
0087:fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Texture loading failed.
0087:fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Texture loading failed.
0087:fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Generation of mipmaps for compressed pixel formats is not implemented yet.
0087:fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Texture loading failed.
0087:fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Texture loading failed.
0087:fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Texture loading failed.

d3d9.log:
https://pastebin.com/zGzsdWrE
d3d9.log was 144MB big, but with spamming the same thing constantly so i used pastebin and cut the crap out of it

Just updating this here with new information:
d9vk: 65b8ace7
I'm now able to get into the game, but it doesn't render much:

log: https://pastebin.com/HDCyEXU3

wine d9vk verison spam errors
warn:  Direct3DDevice9Ex::SetMaterial: Stub

Both D3DXLoadSurfaceFromMemory and D3DXCreateTextureFromFileInMemoryEx are in d3dx9_36
https://github.com/wine-mirror/wine/blob/4e44d74afb12b40f673e3be0a91cd523013544cd/dlls/d3dx9_36/texture.c#L566
https://github.com/wine-mirror/wine/blob/4e44d74afb12b40f673e3be0a91cd523013544cd/dlls/d3dx9_36/surface.c#L1818
Maybe native version could help.

Don't use Wine's d3dx9. They're not accurate and don't work with d9vk. I should investigate why but given the real ones don't have issues, just use those for now.

wine-tkg-staging-esync-marchopt-git-4.7
d9vk verison spam errors
warn: Direct3DDevice9Ex::SetMaterial: Stub
cant see name and hp bar
cant see all spell effects
wine errors a lot of spam (warn:  Direct3DDevice9Ex::SetMaterial: Stub and warn:  Direct3DDevice9Ex::LightEnable: Stub)
edit-wine-errors.log

Game uses NVAPI + fixed function...

@mylucky2018 how do you get it to render? i have same wine-tkg-staging-esync-marchopt-git-4.7 and tried all the latest D9VK versions, but it still renders like it's on the picture i posted here. Did you do any additional tricks?

gpu gtx 750
nvidia driver 418.56
success at any wine version staging / vanilla / aur etc....
my installation process
wineboot -u
env WINEPREFIX=$HOME/.wine2/ror /usr/bin/winecfg
env WINEPREFIX=$HOME/.wine/ror sh winetricks --unattended --force allfonts msxml3 d3dx9 dotnet40
env WINEPREFIX=$HOME/.wine/ror /usr/share/d9vk/setup_dxvk.sh install
work WAR.exe or WAR-64.exe
Just as usual nothing special setup method.
only bug cant see name and hp bar and no all spell effects
and only graphics bug in select char window ( there is no graphics problem when entering the game )

@mylucky2018 Thanks. I only had winetricks dotnet40, installed d3dx9 also now and i dont see any issues, hp bar and spell effects seemed to work also, didnt test too long atm. I didnt install the allfonts.

Is this fixed? Can this be closed?

still need to install d3dx9 via winetricks to make it render properly. but the original black screen issue is gone. So i think the original issue can be closed?

@Joshua-Ashton is there any way you fix the bright ground texturing that happen in wined3d (and btw also in d9vk but that should not happen)

in some spots lightning tries to pop but it doesn't correctly displays
d9vk

wined3d

I noticed clipping fog effects are not present

If you're seeing the same issue with D9VK and WineD3D, make sure you have the Microsoft versions of both d3dcompiler and d3dx9 installed.

yeah the bright groundtexture issue is superbly annoying and i have no clue what causes it. It also happens with wined3d
Upper one is how it should look:

So managed to get the apitrace finally (thanks to masush5 from frog discord server)
This apitrace is with wined3d: https://mega.nz/#!MOh2VKLb!7qOb_2KdSmX5wQi3UR1sodY0fQ8Yg8qdyt9Gi2372ro
overly bright groundtexture happens with both, d9vk and wined3d so i dont know if this apitrace is of any help.
i also needed to install d3dx9_34.dll otherwise with both d9vk and wined3d the game doesnt render at all.

the launcher's window (launcher is a .net app) renders black. I remember I didn't had this issue in older d9vk releases.

The odd thing is that it renders black for me only on the left monitor. on the right monitor its all fine.
Anyway this game still has the overly bright ground texture issue and it still requires d3dx9_34 to render correctly (minus the bright ground texture)

without d3dx9_34  (just using the d9vk without any d3dx9 stuff from winetricks) it renders like this:

and the d9vk.log:
WAR_d3d9.log

I don't care about supporting wine's d3dx9 implementations, they're broken.

Gonna close it as its not D9VK problem anymore.

Just to understand (because I need to understand) @Joshua-Ashton about the bright texture issue why I could happen in both wine3d3 and d9vk but not on windows ? Could it be becuase it's "should" already be broken on window (but fixed by some magic ?)


Disabling CIS Level 2 Patching

Question
I am fairly confident that the issue is with my syntax but I cannot seem to figure out how to call your role and have it run only CIS level 1 patching.
Playbook
---
- name: RHEL CIS Hardening
  hosts: rheltester
  roles:
    - role: rhel_hardening
      tags:
        - level1-server
      vars:
        rhel8cis_level_1: true
        rhel8cis_level_2: false
        system_is_ec2: true
  vars:
    ansible_connection: ssh
    ansible_user: ec2-user
    ansible_ssh_private_key_file: ~/keys/privkey.pem
    ansible_ssh_extra_args: '-o StrictHostKeyChecking=no'

Hosts.ini
[rheltester]
a.b.c.d

Command
ansible-playbook -vv -i hosts.ini rhel-hardening-playbook.yml

Output
.
.
.
TASK [rhel_hardening : <IP_ADDRESS> | L2 | PATCH | Ensure SELinux policy is configured] ***********************************************************************************************************
task path: /Users/ps/IdeaProjects/ansible/roles/rhel_hardening/tasks/section_1/cis_1.7.1.x.yml:33
redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux
[WARNING]: Reboot is required to set SELinux state to 'enforcing'
changed: [a.b.c.d] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "Config SELinux state changed from 'disabled' to 'enforcing'", "policy": "targeted", "reboot_required": true, "state": "enforcing"}

It does the level 1 CIS patching just fine but it is also doing level 2 which I do not want.
Environment (please complete the following information):

ansible-playbook [core 2.11.3]
python version = 3.9.6 (default, Jun 29 2021, 05:25:02) [Clang 12.0.5 (clang-1<IP_ADDRESS>)]

Hello @picnicsecurity,
Those aren't the vars you think they are... so the issue is kind of what you have but mostly a confusing element in defaults/main.yml that we need to add some comments around. The rhel8cis_level_1/rhel8cis_level_2 vars are not used for enabling/disabling the levels of control, they are used the goss auditing feature for compliance checking.
With that we do have tags for the levels on each of the controls. So you can add the --tags "level1-server,level1-workstation" to only run the level1 server/workstation controls. You can also use --skip-tags for the opposite to skip level2 server/workstation tasks as well. In Tower/AWX there is a tags/skip tags field as well and those would be listed there.
Let me know if using the tags helps and we will add some comments around the level_1/level_2 vars to make them less confusing.
George

Ah gotcha that makes sense thank you for clarifying that.
I thought me doing
tags:
        - level1-server

Would have accomplished that?
I added the --tags "level1-server,level1-workstation" to my ansible command and it would appear to working exactly as desired. Have not seen a L2 pop up yet. What is the difference between level1-server and level1-workstation?
Thanks!

I also tried this syntax and it still did the L2 tasks
---
- name: RHEL CIS Hardening
  #debugger: always
  hosts: rheltester
  roles:
    - { role: rhel_hardening, tags: ['level1-server', 'level1-workstation']}

@georgenalen when you have a chance can you take a look at this please? I haven't been able to figure out the syntax for calling your role yet.
---
- name: RHEL CIS Hardening
  #debugger: always
  hosts: rheltester
  roles:
    - { role: rhel_hardening, tags: ['level1-server', 'level1-workstation']}

---
- name: RHEL CIS Hardening
  hosts: rheltester
  roles:
    - role: rhel_hardening
      tags:
        - level1-server
        - level1-workstation

Neither of the above work and Level 2 will apply to the hosts. The only thing that works is using the command ansible-playbook rhel_cis_level_1.yml --tags "level1-workstation, level1-server".

@georgenalen have you had the chance to update how the tags work and or verify if I am using the tags correctly yet?

hi @picnicsecurity
Thank you for taking the time to confirm this. Apologies for the delay is responding, supported clients I'm afraid take priority. However you have raised a couple of things and some typos have appeared in the config (which will shortly be corrected in an upcoming release). Thank you again for highlighting this.
With regard to the questions, I am hoping to try and extend to comments added by @georgenalen
run level1 or level2
level1 generally lower risk to service disruption (although each circumstance is different)
level2 - greater risk of service disruption and other requirements that will affect a system. e.g. more space, selinux context etc
When wanting to call the relevant level to run on your system running as part of the playbook command is the way to ask for a tag to be used or skipped.
e.g.
ansible-playbook site.yml --tags level1-server

or alternative
ansible-playbook site.yml --skip-tags level2-server

These both give the same result.
The examples you have provided
---
- name: RHEL CIS Hardening
  hosts: rheltester
  roles:
    - role: rhel_hardening
      tags:
        - level1-server
        - level1-workstation

This has added a tag that can be used to call the role you have added, but doesn't define what the role will run. It will still run everything contained in the role if you ask for one of those tags.
workstation or server
While there are cases where these will not stand the following generally explains the difference.
note: RedHat derivatives may not follow this setup.

Server

Tend not to have a gui and different functionality of the system (in RedHat this is the comment in /etc/redhat-release stating server)

Workstation

Tend to be systems used as such (in the file /etc/redhat-release these normally have the label client or workstation) these also in majority of cases have a GUI installed.

I hope that this helps?
Best regards
uk-bolly

hi @picnicsecurity
Thank you again for the feedback.
An update the latest devel branch has now been released and this should address the issues you have seen here.
Please feel free to close the issue is all is working as expected  or feedback accordingly.
Thanks again
uk-bolly

Closing Issue

Thought I responded to this but thank you for the updated response! I am re-visiting this in the coming months and will post my results once I have them.


Remove gasp with pyftsubset --no-hinting

If I'm correct, gasp can be dropped as well here when removing hinting data?

i think one may want to keep a gasp table in an unhinted font, e.g. in gftools there's a script to fix-unhinted-fonts that sets all gasp ranges to smooth for unhinted fonts:
https://github.com/googlefonts/gftools/blob/d285d05e2f2643fdfabfffd2a2d5cec2d8a4e4c2/Lib/gftools/fix.py#L142-L143

if you don't want to keep gasp you can always pass --drop-tables+=gasp

One could argue that --no-hinting woud remove all hinting-related stuff, but I trust your judgement :-) Agreed that it's always possible to manually remove it, so I'm closing this issue.
For Wakamai Fondue I'm trying to detect hinting (without going overboard in complexity). I ignore this specific here, to avoid false positives.


[BugFix][Cherry-Pick][Branch-2.5] Fix ORC late materialization bug when contains complex type column

cp from #27971
What type of PR is this:

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[ ] 3.1
[ ] 3.0
[ ] 2.5
[ ] 2.4

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)


Executing search on mobile using the keyboard 🔎 key does not close the keyboard

Description

When you use mobile keyboard's 🔎 key to submit search from the header, the keyboard doesn't close.
Reproduction

Open https://search-staging.openverse.engineering/search/image?q=cat on a mobile phone.
In the header search bar, change the search term.
Press the mobile keyboard 🔎 button.
See error: the keyboard is still open.

Screenshots

https://user-images.githubusercontent.com/15233243/166218654-2760bf88-f0c5-4a5f-96a3-de0ff3468b76.mp4
Environment

Device: Samsung phone
OS: Android
Browser: Firefox

Additional context

The solution is probably to blur() the input element on search form submit.
Resolution

[ ] 🙋 I would be interested in resolving this bug.

Can reproduce on iOS as well. My search also resulted in recommendations to manually invoke blur so we should just go ahead and do that.


Trying to 'docker service create' w/ non-existent image never times out, chews CPU

Output of docker version:
$ docker version
Client:
 Version:      1.12.0-rc2
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   906eacd
 Built:        Fri Jun 17 20:35:33 2016
 OS/Arch:      darwin/amd64
 Experimental: true

Server:
 Version:      1.12.0-rc2
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   a7119de
 Built:        Fri Jun 17 22:09:20 2016
 OS/Arch:      linux/amd64
 Experimental: true

Output of docker info:
$ docker info
Containers: 64
 Running: 1
 Paused: 0
 Stopped: 63
Images: 271
Server Version: 1.12.0-rc2
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 522
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host overlay null
Swarm: active
 NodeID: 1iw918nblauer800gaxwtcyty
 IsManager: Yes
 Managers: 1
 Nodes: 1
 CACertHash: sha256:859d2b3ba1360713500512897ff6b6df1237975d7b79bfc57319daefc3efe72b
Runtimes: default
Default Runtime: default
Security Options: seccomp
Kernel Version: 4.4.13-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 1.954 GiB
Name: moby
ID: C2PY:RMJT:LQIX:BQFA:DENP:OIQC:6VCU:DID4:27BT:PAAM:IUEF:EULO
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 48
 Goroutines: 121
 System Time: 2016-06-28T23:41:44.584015126Z
 EventsListeners: 1
No Proxy: *.local, 169.254/16
Username: nathanleclaire
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 <IP_ADDRESS>/8

Additional environment details (AWS, VirtualBox, physical, etc.):
Docker for Mac, latest beta
Steps to reproduce the issue:
Note there are no services and resource usage of the Docker host is minimal.
$ docker service ls
ID  NAME  REPLICAS  IMAGE  COMMAND

Now try to run a service with a decent amount of replicas with an image that does not exist.  This might happen if for instance you mis-type something or your automation fails / is buggy.  Or if the network is unreliable.
$ docker service create --replicas 20 ngnix
2a8b7lbh1ncdh2rksyfe3ga09

Describe the results you received:
Swarm mode spins forever trying to schedule it, check out this CPU usage (this is with only that faulty service running).

Describe the results you expected:
docker should time out at some point trying to pull this faulty image?  At the very least, it should not chew up so much CPU.
Consider the analogy of a client trying to access a network endpoint which does not exist, for instance.  Do most network clients sit forever trying to access an endpoint when it is not available?  Or do they time out after a certain amount of time failing to make the request?
Additionally, what happens if you attempt to docker service create with no network available?  Better to fail fast than seem to succeed and put the burden of understanding why on the user IMO.
Cute animal picture

/cc @vieux @aluzzardi @stevvooe @aaronlehmann @abronan

See https://github.com/docker/swarmkit/issues/1015

"Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?"

No, and I'll use all your CPUs. 🐹
But, let me give you a new rhyme to live by:

SwarmKit doesn't quit.

Consider the analogy of a client trying to access a network endpoint which does not exist, for instance. Do most network clients sit forever trying to access an endpoint when it is not available? Or do they time out after a certain amount of time failing to make the request?

In this analogy, if my upstream goes down, I have to get out of bed (figuratively, maybe systemd does it for me) and restart the process until the network is available again. With the approach in swarm mode, when the upstream recovers, the service will converge and everything will work again. This means I can deploy my service before my image or even before I deploy my registry.
docker/swarmkit#1015 is apt, but I do agree this is using too much CPU. I suspect we need a little back off when re-trying tasks. We deferred this to the orchestrator in https://github.com/docker/swarmkit/pull/978 and I suspect we just need to backoff there as failures pile up, rather blast the nodes with new tasks.
A circuit breaker based failure detection algorithm with periodic tests would work well here:

Encounter bunch of failures.
Hang out for awhile.
Dispatch a small number of tasks to see if they are successful.
If successful, dispatch everything, if not, return to 2.

cc @aaronlehmann
In the mean time, could you grab a CPU profile?

In the mean time, could you grab a CPU profile?

Happy to -- Does swarmkit / Docker integration have some ways to do this out of the box? (I think I recall someone mentioning swarmkit might make pprof information accessible through an endpoint?)

@nathanleclaire: There is a parameter called "restart delay" (--restart-delay in service create) which controls how long the orchestrator will wait before restarting a failed task. The default is to pause 5 seconds between attempts, and I just confirmed this behavior in -rc2. I'm not seeing it chew much CPU because of the 5 second delay.
Currently we don't do backoff beyond this fixed delay, but it's something to consider.

Here's pprof output: https://www.dropbox.com/s/369zqxyoc201zqc/pprof.localhost%3A8080.samples.cpu.005.pb.gz?dl=1
$ go tool pprof ~/Downloads/pprof.localhost-8080.samples.cpu.005.pb.gz
Entering interactive mode (type "help" for commands)
(pprof) top5 -cum
0.06s of 9.40s total ( 0.64%)
Dropped 460 nodes (cum <= 0.05s)
Showing top 5 nodes out of 274 (cum >= 1.81s)
      flat  flat%   sum%        cum   cum%
         0     0%     0%      7.33s 77.98%  runtime.goexit
         0     0%     0%      3.25s 34.57%  github.com/docker/swarmkit/agent.(*Agent).run
     0.02s  0.21%  0.21%      3.25s 34.57%  github.com/docker/swarmkit/agent.(*worker).Assign
     0.04s  0.43%  0.64%      1.90s 20.21%  github.com/docker/swarmkit/agent.(*taskManager).run
         0     0%  0.64%      1.81s 19.26%  runtime.mcall
(pprof)

graph as well if you are interested :)

The CPU usage happens in spikes, I'm guessing once every 5 seconds due to the setting @aaronlehmann mentioned

@nathanleclaire CPU of the worker or the manager?

@aluzzardi In this case, it's both -- just one node

@nathanleclaire Any way to reproduce this on a 2 machine swarm with the manager being drained?
The goal would be to determine if the spike is happening at the orchestration layer (manager) or execution layer (worker).
Also, by any chance, is this happening in AWS? In that case a screenshot of the CPU graph would really help determine if the spikes map the restart attempts

The displayed profile is on Docker for Mac, but sure I'd be happy to try it out on AWS as well.

@nathanleclaire awesome, thanks! Out of curiosity: how did you fetch a pprof profile out of Docker for Mac? Is the engine started in debug mode?

how did you fetch a pprof profile out of Docker for Mac?

We should really have a button for that. @justincormack @dsheets @FrenchBen

@nathanleclaire awesome, thanks! Out of curiosity: how did you fetch a pprof profile out of Docker for Mac? Is the engine started in debug mode?

Somewhat curiously, the daemon doesn't seem to be started with debug enabled.  To get the profile I followed instructions here, sorta.
What I did:
In one window, forward D4M unix socket proxy to localhost:8080 (not sure if pprof can connect directly to unix socket, it might be do-able):
$ socat -d -d TCP-LISTEN:8080,fork,bind=localhost UNIX:/var/run/docker.sock

Then go tool pprof on localhost:8080/debug/pprof/profile.
$ go tool pprof http://localhost:8080/debug/pprof/profile
Fetching profile from http://localhost:8080/debug/pprof/profile
Please wait... (30s)
Saved profile in /Users/nathanleclaire/pprof/pprof.localhost:8080.samples.cpu.007.pb.gz
Entering interactive mode (type "help" for commands)
(pprof) exit

As you can see it drops the pprof file in a subdirectory of ~ which can be imported by go tool pprof later for further analysis.
e.g., you could export a graph like above if you have dot / graphviz installed:
$ go tool pprof -png ~/pprof/pprof.localhost\:8080.samples.cpu.007.pb.gz >007.png

It probably wouldn't be too bad to throw together a little container to get all of this to happen automatically.

@nathanleclaire Thanks!

👍

You can also collect them with curl:
$ curl --unix-socket /var/run/docker.sock http:/debug/pprof/goroutine\?debug\=2

Oh nice, hadn't realized getting the raw dump was that simple.

we should document that somewhere :-)

FWIW having this loop running on my Docker install for a while (hours I guess?) resulted in a multi-gigabyte log file as well.

The UX of it is covered in #23706 . The fact that CPU goes up is specific to this issue. Moving to P2

I believe this has been fixed with default restart delay.
Closing this down - @nathanleclaire are you okay with this?

@aluzzardi which release is this fix in, is that in 1.12 or will be in 1.13? (so that I can set the correct milestone)

seems reasonable


Migration Tool only works on Windows, but Xperience is supported on Windows, macOS, and Linux

Brief bug description
Although Kentico Xperience 13 ASPNET Core applications work on windows, linux, and macOS (via .NET 8) and Xperience by Kentico solutions also support the same operating systems, this migration tool is currently Windows-only.
This is because the ConsoleHelper class uses some DLL imports to Windows-only DLLs.
If we need the console output manipulation provided by this class we could use something like Spectre Console instead so this migration tool could be run in non-Windows environments
Repro steps

In a macOS or linux environment
Follow the setup instructions
Do a dotnet build in the Migration.Toolkit.CLI project
Run the executable in the bin/Debug/net8.0 folder
See the following exception

Unhandled exception. System.DllNotFoundException: Unable to load shared library 'kernel32.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable:

Expected behavior
This tool works in all environments supported by Xperience by Kentico
Test environment

Platform/OS: macOS M1
Browser Safari
Version 29.5.2

Additional context
If I comment out the code in EnableVirtualTerminalProcessing then the migration tool works great in macOS.
Screenshots
n/a

Hi @seangwright, I have consulted this request with PM and our architects. Considering that, as tkrch writes, the Migration tool requires running source instance, we currently don't see this as a priority investment. If we see requests from the customers and partner agencies, we can open the issue again, but for now I am closing this one.


Create CODE_OF_CONDUCT.md

Fixes #15

Thank you @tschmidtb51 ! I updated the file. This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.1, available at
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].


index-buffers: Fix broken links

Apologies for a broken force push. GitHub does not allow me to reopen that PR now so I'll recreate.


Suggestions for improvements to az configure

I think this would be more idiomatic/intuitive than the interactive wizard:
$ az config output tsv

$ az config telemetry on

Note the subcommand format and config in favor of configure.

The options SEEMS to exist (at least or -output) but still goes interactive:

Welcome to the Azure CLI! This command will guide you through logging in and setting some default values.

Your settings can be found at /Users/jimsander/.azure/config
Your current configuration is as follows:

[cloud]
name = AzureCloud

[core]
first_run = yes
output = tsv
collect_telemetry = yes

[logging]
enable_log_file = yes

Environment variables:
AZURE_STORAGE_KEY = REDACTED
AZURE_STORAGE_ACCOUNT = REDACTED

Do you wish to change your settings? (y/N):```

Hi there,
We have the ‘az configure’ command that is interactive.
We have the ‘az xxx  –output’ option to change the output for a specific execution…
But would be good to have an option to change the configuration ‘globally’ in a non-interactive way?
Ex.: az configure –output tsv
If we need to change just one option of our global configuration, it’s not nice to go through all the configure ‘(y|n)’ prompts.
I know we have the option to just go to the configuration file (~/.azure/config) and change it, but as we have a tool to do it, I think would make sense to have a “non-interactive* way to re-configure it.

Just to update this issue, the config options can be set with environment variables as well which would be for non-interactive scenarios.
e.g. for setting the default output type, export AZURE_CORE_OUTPUT=table
See https://docs.microsoft.com/en-us/cli/azure/azure-cli-configuration?view=azure-cli-latest#cli-configuration-values-and-environment-variables

Closed the issue as this seems like a good option for users though it's a different approach to $ az config output tsv or $ az config telemetry on


Implement Cancel-My-Jobs operation

Add support for the Cancel-My-Jobs (JPS2) operation.

[master b9df263] Implement Cancel-My-Jobs operation (Issue #86)


Animation system/ctp 36 animation swapping

Bug fix
PlayerObject and GameObject are conflict.
Now, we use the GameObject::mObjectState.

Drop and pick item's icon is completed


Add helper function to organize insert data before insert

Merged into brady/update-mpi-schema so it should be ready for review once that PR is up


unable to build mongodb connector

I tried to build and install MongodB connector from Github (it would be great if there was one built already and available to be used with crossdata)
Documentation is not correct https://github.com/Stratio/stratio-connector-mongodb/blob/master/doc/src/site/sphinx/about.rst
This file talks about non-existent file that should be created during package target/stratio-connector-mongodb-[VERSION]/bin/stratio-connector-mongodb-core[VERSION] start
Managed to create rpm and tried to install it into running crossdata vagrant machine but for some reason it does not install correctly.
[root@crossdata vagrant]# rpm -i stratio-connector-mongodb-0.5.0_SNAPSHOT.noarch.rpm
cp: cannot stat `/opt/sds/stratio-connector-mongodb/template/MongoDBConnector': No such file or directory
warning: %post(stratio-connector-mongodb-0.5.0-0.1.20150718.222944.noarch) scriptlet failed, exit status 1
Parts were installed but it looks like not everything. I tried to execute
[root@crossdata vagrant]# service stratio-connector-mongodb start
stratio-connector-mongodb: unrecognized service
It looks like documentation is wrong - the service name is connector-mongodb
[root@crossdata vagrant]#  service connector-mongodb start
env: /etc/init.d/connector-mongodb: Permission denied
After fixing permissions looks like this script is referencing file that does not exist
[root@crossdata init.d]#  service connector-mongodb start
/etc/init.d/connector-mongodb: line 1: /opt/sds/stratio-connector-mongodb/bin/stratio-connector-mongodb: No such file or directory
/etc/init.d/connector-mongodb: line 1: exec: /opt/sds/stratio-connector-mongodb/bin/stratio-connector-mongodb: cannot execute: No such file or directory

We have troubles in some deb and rpm generation.
We are going to check it and solve it as soon as possible.

Hello,
We have fixed the release 0.4 documentation  https://github.com/Stratio/stratio-connector-mongodb/tree/branch-0.4. We have explained better how to compile and execute the connector.
Now we are working to improve the master branch documentation and rpm generation.
Thanks for the feedback.


Can not find issuer 'C=US,O=(STAGING) Internet Security Research Group,CN=(STAGING) Doctored Durian Root CA X3' for certificate 'C=US,O=(STAGING) Let's Encrypt,CN=(STAGING) Artificial Apricot R3'

We use this library to generate LE certificates for our app (thanks for this library)!
We have a unit test covering the certificate-generating process on the LE staging V2 endpoint.
The code we're using to generate the certificate is:
var acmeContext = new AcmeContext(WellKnownServers.LetsEncryptStagingV2, <account key>);
var order = await acmeContext.NewOrder(new[] { hostname });
// (authorization and challenge validation code omitted...working fine)
var privateKey = KeyFactory.NewKey(KeyAlgorithm.ES256);
var cert = await order.Generate(new CsrInfo
                {
                    CountryName = CsrCountryName,
                    State = CsrState,
                    Locality = CsrLocality,
                    Organization = CsrOrganization,
                    OrganizationUnit = CsrOrganizationUnit,
                    CommonName = hostname
                }, privateKey);
var pfxBuilder = cert?.ToPfx(privateKey);
return pfxBuilder?.Build($"letsencrypt-cert-{hostname}", password);

Just in the last day or two, we've started seeing our unit test of this code above fail deterministically with the following message:

"Can not find issuer 'C=US,O=(STAGING) Internet Security Research Group,CN=(STAGING) Doctored Durian Root CA X3' for certificate 'C=US,O=(STAGING) Let's Encrypt,CN=(STAGING) Artificial Apricot R3'."

I'm not the strongest when it comes to cryptography, but based on what I could see, the issuers in this embedded folder are used for the search.
Is it possible that LetsEncrypt made a change and a new one needs to be added now?

Same here.
It is working fine for the real environment, but fails for staging.

Hi, the problem is that to build your PFX chain the code expects to find the root issuers cert in the machine cert store or you need to provide it.
The old issuers were embedded in certes as an assembly resource, which is why it knows about those.
The problem with root certificates and ACME is that acme doesn't declare a way for you to get the root certs when they change, so you have to go get them from the CA and then make them available to whatever uses them.

The code to add a custom issuer is roughly this:
var issuerDer= <read a issuer pem file from somewhere and convert to binary/der>
var pfx = certificateChain.ToPfx(csrKey);

 pfx.AddIssuers(issuerPem);

var pfxBytes = pfx.Build(certFriendlyName, pwd);

The reason the issuer shouldn't really be embedded is there are now many different ACME implementation (public and private) and they all have different root issuer certs. Note that even if you provide the issuer cert the pfx you build won't actually be trusted unless that issuer root is in your clients trust store.

@webprofusion-chrisc Nice, thanks for the elaboration!
We grabbed the certificate binary from here (as reference from here), then modified our certificate-generation logic to accept optional additional issuers to add before the final call to Build (as per your code). We're just adding this "doctored" issuer in our unit test. Works fine now!
Closing this now.


Images are not zoomed in the center of the viewport when document is displayed within an iframe

Images are not zoomed in the center of the viewport
When zooming is used in a site embedded as an iframe the zooming effect while works it is not positioned in the center of the visible part of the window.
To Reproduce
Simple embed a page as an iframe resizing the frameHeight to be equal to the full size of the child content.
    <iframe
      id="cpv-iframe"
      class="myframe"
      width="100%"
      height="1000px"
      :src="url"
      @load="load('cpv-iframe')"
    >
    </iframe>

with load ...
    load(id) {
      window.onmessage = (e) => {
        if (Object.prototype.hasOwnProperty.call(e.data, 'frameHeight')) {
          document.getElementById(id).style.height = `${
            e.data.frameHeight + 30
          }px`
        }
      }
    },

Expected behavior
The image should zoom and center in the visible part of the document within the iframe.
The function getWindowCenter is not retrieving the center of the window but the center of the full document/iframe.
Additional context
Any help or direction to implement this fix so the zoom effect works also inside an iframe is welcome and I will try to implement and to make a pull request.

Would it be possible for you to reproduce this issue in codepen?

Here you are:
https://codepen.io/piixiiees/pen/abZOJzJ

Thanks! I don't have much bandwidth to work on this, but feel free to give it a try.
You probably want to begin with understanding the Zooming.open() method, more specifically these method calls which basically translate & transform the target image and then inject the overlay element. We're currently calculating the transformation and inserting the overlay based on the element's document window, that's why we faced this issue. Therefore, we need to do those operations against the root window instead of the iframe window. I guess one key thing is to get the position of the image relative to the root window instead of the iframe window, which might not be very straightforward.
Anyway, that's my thoughts and if you still want to give it a shot, feel free to do so and let me know if you have any questions!


Solar production not working with Energy panel with version 0.11

Hi,
I have a SunPower system with a PVS5. I installed hass-sunpower 0.11 via HACS over core-2021.12.7.
The problem is that "Power Meter PVS5M690930p Lifetime Power" seems to be always zero.
Looking at the SunPower console it looks like they have the correct data for the Total production, From grid, and each inverter

The json response from the DeviceList command seems to always show 0 for the device with SERIAL=PVS5M690930p.
           }, {
                    "ISDETAIL":     true,
                    "SERIAL":       "PVS5M690930p",
                    "TYPE": "PVS5-METER-P",
                    "STATE":        "working",
                    "STATEDESCR":   "Working",
                    "MODEL":        "PVS5M0400p",
                    "DESCR":        "Power Meter PVS5M690930p",
                    "DEVICE_TYPE":  "Power Meter",
                    "SWVER":        "17",
                    "PORT": "",
                    "DATATIME":     "2022,01,02,18,51,09",
                    "ct_scl_fctr":  "50",
                    "net_ltea_3phsum_kwh":  "0.08",
                    "p_3phsum_kw":  "0",
                    "q_3phsum_kvar":        "0",
                    "s_3phsum_kva": "0",
                    "tot_pf_rto":   "1",
                    "freq_hz":      "60",
                    "CAL0": "50",
                    "origin":       "data_logger",
                    "OPERATION":    "noop",
                    "CURTIME":      "2022,01,02,18,51,21"
            }, {

Is this a problem with my SunPower installation?
Thanks.

This little python script produces the results I am looking for.
It matches what I see in the console DeviceList, and adds to grid with +/-.
#!/usr/bin/python3
import sys
import requests
import json
this is the default URL for the admin interface of SunPower PVS5
pvs5_url = "http://<IP_ADDRESS>:8080/cgi-bin/dl_cgi?Command=DeviceList"
r = requests.get(pvs5_url)
if r.status_code != 200 :
print(r.status_code)
else:
p = float(0)
for device in r.json()["devices"]:
if device["MODEL"] == "PVS5M0400c":
c = float(device["p_3phsum_kw"])*1000
cs = str(device["SERIAL"])
if device["MODEL"] == "PVS5M0400p":
pc = float(device["p_3phsum_kw"])*1000
ps = str(device["SERIAL"])
if device["MODEL"] == "AC_Module_Type_D" and device["STATE"] != "error":
print(" I "+str(device["SERIAL"])+" "+str(float(device["p_3phsum_kw"])*1000))
p = p + float(device["p_3phsum_kw"])*1000
print(" C "+cs+"  "+str(c))
print(" P "+ps+"  "+str(p)+" "+str(pc))
print(" G               "+str(p - c))
sys.exit()
./devicelist.py
I<PHONE_NUMBER>10629 62.300000000000004
I<PHONE_NUMBER>12493 62.300000000000004
I<PHONE_NUMBER>13415 64.60000000000001
I<PHONE_NUMBER>19103 62.300000000000004
I<PHONE_NUMBER>19359 62.300000000000004
I<PHONE_NUMBER>19575 57.6
I<PHONE_NUMBER>03522 60.0
I<PHONE_NUMBER>03940 60.0
I<PHONE_NUMBER>03944 62.300000000000004
I<PHONE_NUMBER>03947 62.300000000000004
I<PHONE_NUMBER>07146 55.300000000000004
I<PHONE_NUMBER>07512 62.300000000000004
I<PHONE_NUMBER>07867 57.6
I<PHONE_NUMBER>10333 55.300000000000004
I<PHONE_NUMBER>11574 64.60000000000001
I<PHONE_NUMBER>11689 64.60000000000001
I<PHONE_NUMBER>10074 52.699999999999996
I<PHONE_NUMBER>12953 62.300000000000004
I<PHONE_NUMBER>12959 62.300000000000004
I<PHONE_NUMBER>13708 66.9
I<PHONE_NUMBER>14568 64.60000000000001
I<PHONE_NUMBER>14825 59.9
I<PHONE_NUMBER>15147 60.0
C PVS5M690930c  2185.1
P PVS5M690930p  1404.3999999999999 0.0
G               -780.7

I think you just have a 'different' installation than I do, I won't say summing those values is broken.
Interesting, so your PVS doesn't have an overall production sum.  This should be fairly straight forward to add to the code.

It took them 5 or 6 tries to get the proper placement of the sensors. It probably took a month to get it right after hooking up to pge.
They started out with swapping production and grid, and then reversing the polarity of the sensors.  It seemed like it took more attempts than possible combinations.
Then their numbers still did not match the ones downloaded from pge.
It was very confusing. So I was very happy to see the integration with HA.

Let me know if there is anything I can do to help. Happy to test any changes.

Hi @krbaker I don't know if your install is 'different' than mine however my Onboard Production Meter is "Not Used" but I am showing an overall production sum. I have a Utility Provided Meter on the Exterior of my house that track total production.
I have a PVS6 with a W serial number.

I'm on the same boat where "Onboard Production" is not used.
I add up all the inverter values to get production for lifetime_power and power
I just created a ticket as I'm trying to solve for Kwh to home and Kwh to grid #54

I added an option here https://github.com/krbaker/hass-sunpower/tree/issue-22-sum-inverters and it will go out with the next release.


Update README.md

Added clarification on using the saved LinkedIn HTML as input for the scrapper. If using the private version (the one by default showing to you when logged in), the scrapper will not work.

It is indeed more clear Thanks @haschdl !


Release Confluence 1.5.1

Pull request description
Release Confluence 1.5.1
Checklist

[ ] I have added unit tests
[ ] I have applied the change to all applicable products
[x] I have added the change description to the changelog.md and Chart.yaml files
[ ] (Atlassian only) I have run the E2E test (if applicable)
[ ] (Atlassian only) Internal Bamboo CI is passing

Is index.yaml updated included as well?

@nanux , based on the release process  updating the index (by running generate_chart_repo.sh script) is the next step and after merging this PR.

@nanux , based on the release process  updating the index (by running generate_chart_repo.sh script) is the next step and after merging this PR.

You are right, thanks for the reminder.


Delete redundant source code

Two varaibles api_version_major and api_version_minor are already initialized in line 1029.

Please sign the CLA and after that we can merge this.
https://github.com/triton-inference-server/server/blob/master/CONTRIBUTING.md

@CoderHam @Tabrizian Hello.
I sent the CLA to<EMAIL_ADDRESS>


Fixes Groups Editor batch add/remove nodes

Uses get_next_selected(NULL) to get first selected item

Before this fix, batch add/remove will only affect the first selected item if you select nodes from bottom to top:

Thanks!


Animated avif is supported since Safari 16.1 on iOS and iPad OS.

Animated avif is supported since Safari 16.1 on iOS and iPad OS.
https://developer.apple.com/documentation/safari-release-notes/safari-16_1-release-notes#New-Features

Not actually the case, see: https://github.com/Fyrd/caniuse/pull/6937#issuecomment-1900986502
If you can find a test case that proves otherwise, please share!


Mobile compatibility

Hey guys,
I was trying to get this running on iOS, now that iOS 10 allows playing HTML5 videos inline through the "playsinline" parameter.
I can see the 3 videos displayed, I can press play and they do all play, but only for a frame, and then all 3 stop/pause, until I press "play" again to see the behaviour repeat itself.
Is there a way to allow for continuous play on iOS?
It's working fine in Chrome on a Mac, btw.
Here's a test link if you want to give it a go: http://bit.ly/html5sync
cheers

Hi, I will test this behaviour as soon as possible, but time for the project is rare right now... the last time I checked Safari mobile, the video started in fullscreen mode, so it wasn't possible to use this lib on iOS as intended.

Thanks.
I figured with iOS 10's new "playinline" argument for the  element, maybe there was a way to do it!
cheers


FEAT: Dataset fragmentation

Added dataset splitting facility for the sake of testing on smaller dataset

bruh why it has that revert stashed


Add Yarn lock file

And update the build/README.md file, telling users to use yarn instead of npm.
Supersedes #7872

Superseded by #8092


How to get rtsp link inside of Axis Encoder?

I'm trying to push the stream to AWS Kinesis by Gstreamer inside of a P7304 4-channel encoder. But one problem is I don't know what exactly the RTSP link from inside of the Axis Encoder? Could you tell me how could I get the RTSP link?

If I understand correctly, you are trying to write an ACAP which should have video over RTSP as the source and wants to forward it to AWS Kinesis?
To connect over RTSP inside an ACAP should be the same URL as when connecting to it from the outside, you just need to change the ip to either <IP_ADDRESS> or to localhost.
How to connect over RTSP and the URL is documented in the VAPIX documentation here:
https://www.axis.com/vapix-library/subjects/t10037719/section/t10051110/display?section=t10051110-t10003610
So for example, you could try rtsp://<IP_ADDRESS>/axis-media/media.amp?video=1
Does that answer your question?

If I understand correctly, you are trying to write an ACAP which should have video over RTSP as the source and wants to forward it to AWS Kinesis?
To connect over RTSP inside an ACAP should be the same URL as when connecting to it from the outside, you just need to change the ip to either <IP_ADDRESS> or to localhost.
How to connect over RTSP and the URL is documented in the VAPIX documentation here:
https://www.axis.com/vapix-library/subjects/t10037719/section/t10051110/display?section=t10051110-t10003610
So for example, you could try rtsp://<IP_ADDRESS>/axis-media/media.amp?video=1
Does that answer your question?

@johan-bjareholt  That's exactly what I want. Thank you very much.


Re-use JS runtime for multiple requests

Currently a new JS runtime is initialized per request.
We need to use a single runtime to process requests in parallel.
Easy way to do it:

send incoming hyper requests through a channel, together a oneshot channel for sending back the response
main loop receives requests and invokes the JS handler
keep a map of requests with associated request id (type is already present in fetch)
send response to the oneshot channel when the JS promise finishes

But won't running multiple functions on the same runtime lead to stuff like static variables not being cleaned up between function invocations etc.? Are we sure we want to create that kind of error scenario for the users?

Extra information (reused proc macro?):
https://github.com/Redfire75369/spiderfire/tree/master

Are we sure we want to create that kind of error scenario for the users?

The performance difference will be huge.
I think this should be expected, it's how regular servers behave.


[Fix] _conv_flops_compute when padding is a str and stride=1

The _conv_flops_compute wasn't supporting the case when padding is either 'valid' or 'same' when stride=1.
This PR adds the support for this.

@microsoft-github-policy-service agree

@zhiruiluo please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree

Hi @cli99 Regrettably, a test failure occurred during the pip building phase. However, based on my analysis, it appears that this issue is not related to the changes made in this pull request. Therefore, I kindly request that the necessary checks be approved to run once again.

Hi @cli99, I have applied pre-commit checks which caused the only failure in the test.

Hi @cli99 @tjruwase. I believe this is good to merge into master. Could you guys find a time to merge this PR?


[hakari] elide build metadata when printing dep versions

@sunshowers I wasn't sure how to tackle the format version stuff you mentioned in #52. The existing dep-format-version is documented to only impact the format of the workspace-hack = ... line that gets added to other crates, and now the format of dependencies in the workspace-hack crate itself. Wasn't sure if you wanted to add a new format version option, or just generalize the dep-format-version option and update the various docstrings.

This commit elides build metadata when printing dependency versions for the workspace-hack crate's Cargo.toml. Without this change, cargo build in the resulting workspace will produce a warning about superfluous build metadata (if a dependency under management has a version that includes build metadata).
Fix #52.

Thanks! Going to take it from here.

🎉 ❤ thank you so much, @sunshowers!


Admin - Linking to API (user / stream)

Added server-side function at UserController for updating a user by id (rather than updating self)
Hooked up read and update for users
Hooked up read and stop for streams
Added live / all streams pages, stream view page (able to view / stop stream)

It's fine even if it doesn't make it for this sprint; we can just shift it over to the next.

@yj-soh The linter failed, you can check the problem in travis' log.

OK. Good to merge.


*: Update deployment document and outdated description.

What type of PR is this?
/documentation
/enhancement
Which issue(s) this PR fixes?
Fixes #290 #297
What this PR does?
Summary:

api: Set the default sidecar image tag to latest.
charts: Update Chart version number and description.
docs: Update the outdated description.

Special notes for your reviewer?

ping @molliezhang


stable/prometheus

scrape the kubelet targets (public kubelet metrics endpoint and cadvisor metrics) directly

Signed-off-by: Mario Constanti<EMAIL_ADDRESS>@mgoodness
@gianrubio
Which issue this PR fixes

fixes #11837

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[ ] DCO signed
[ ] Chart Version bumped
[ ] Variables are documented in the README.md

/retest


No issue, just a message

Dear Jean,
as your domain is no longer active this is the only way for me to send you a message.
If you have ever wondered on which project I worked while using your great war2tools lib, have a look here:
https://github.com/hsbgit/war25
I made everything of my project public. It runs on Linux and Windows.
I wished I would have come further, however, my family and work is blocking me from making much more progress alone. My hope is that other warcraft2 enthusiasts around the world may discover this work and contribute to it.
Feel free to close / delete this isse :) and thanks for your work 🥇

Hi, thanks for the message, I really appreciate :)
I have not yet taken the time to build and run your project (because I still have to run the wargus extracter ;)), but the screenshots look truly amazing :sparkles:
I will definitely give it a try soon :+1:


unpausing P4 data

@astopy  we're out of data on Planet Four. Would you be willing to unpause these subjects if they aren't retired. Thanks
PSP_002558_0955
PSP_003231_0950
PSP_003921_0850
PSP_004088_0950
PSP_002399_1025
PSP_002544_1025
PSP_002900_1025
PSP_003322_1025
PSP_003345_0955
PSP_003982_0845
PSP_002822_0955
PSP_003468_0955
PSP_003798_0955
PSP_003864_0955
PSP_003758_0950
PSP_003222_0845

Sure, those are active now.

Thanks


history.pushState updates page path to /undefined when optional URL is undefined

Reproduce here.
Steps to reproduce:

Call history.pushState(anything, anything, undefined)
Notice the page path changes to /undefined

Expected Behavior
The third URL parameter is optional and the current path should be used when URL is not passed.
Versions
Edge 25.10586.672.0
EdgeHTML 13.10586

Hi @mkhatib , thanks for reporting the issue! I believe this is a browser API issue rather than a JavaScript issue so filing the bug on Edge issue tracker through these steps would be the better action. Feel free to re-open the issue if it's determined as a Chakra issue. Thanks!

Thanks @liminzhu - filed: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10825440/


Feature: support user plugins directory

This helps differentiate core plugins from user plugins, allowing easier pshazz updates when using plugins that are not part of the main repository.  ------Original by @Deide
Here I put $userplugindir first, which make sense when users want to override default plugins by their plugins stored in $userplugindir.

Cool, thanks for catching this. I suppose my inexperience with Powershell left me feeling a little bit timid when it came to contributing. But this is great because I use a couple of my own plugins.


Need a map for users to interact with so that they can pull the zipcode if they do not know it

future release


Plugins - notify a plugin when a tsconfig.json file changes

A plugin can define plugin specific properties in the plugin section of the tsconfig.json file. When the user edits a tsconfig.json then the plugin should be notified so that it can react to setting changes.

Piping events from tsserver to the plugin regarding changes to the config file that in sections that do not touch project configuration requires some reworking of the server. Today we make multiple assumptions about what changes require a requery for errors vs others. It also seems that the plugins in general need to monitor other files, e.g. tslint.json for the tslint plugin. I would recommend adding a file watcher on the tsconfig.json as well, and triggering a refresh of errors if the lint configuration section changes. With https://github.com/Microsoft/TypeScript/issues/15914 in (PR: https://github.com/Microsoft/TypeScript/pull/23824), the plugin should be able to trigger a refresh to errors using project.refreshDiagnostics.

@mhegazy having the plugin watch the tsonfig.json makes sense. Is there a way for a plugin to find out which tsconfig.json file should be watched?

Calling getProjectName on a ConfiguredProject should give you the path to the tsconfig.json/jsconfig.json file path. The path is also stored on CompilerOptions.configFilePath ( that is an internal property, so does not show in the .d.ts, but we can make it visible through a helper).


Feature request: isDirty

Great library! It would be handy to also report if the current branch has uncommitted changes.
Cheers!

I'm not sure how to detect this without shelling out (I don't think the .git internal file structure has dirty information).
One of the goals of this library is to avoid shelling out to the 'git' CLI...

Ah, fair enough! Thanks anyway!


Warning fix

Lots of warning are still present in tests files.
Based on branch "float_support".

Manually merged.


Add/Font-Family Manrope with static file

Change request solved: Added font license in notice file (SIL Open Font License 1.1).
https://github.com/eclipse-tractusx/eclipse-tractusx.github.io/blob/main/NOTICE.md


bug: Shows question has been downvoted even when we remove the downvote

Recently i noticed that a toast shows up when we remove the downvote and it shows question has been downvoted .

It is a minor issue if You want to address it . i will update it today.

Can you specify the steps to reproduce, in which page it is creating the problem?

If you go to any of the question post on 100xdevs you can see that whenever we remove any upvote or downvote it shows the question has been upvoted or vice versa based on the action.

I have already solved this and raise a pr along with other enhancements in #1255


High severity vulnerability affecting this repo

Hi there,
We noticed that your repo has a high severity vulnerability:

Regular Expression Denial of Service
Affected package: minimatch <=3.0.1

Here is the test report for this repo.
If you’d like to fix this vulnerability, Snyk lets you generate a pull request that recommends the best upgrade path - there’s a link to fix this vulnerability on the test report.
Stay secure :-)
Snyk Community

Thanks for the warning, it's something we are aware of and tracking.