sevctl export fails with HTTP400 error

Running sevctl export fails with HTTP400:
# sevctl export --full /opt/sev/cert_chain.cert
error: final http request failed: Status(400, Response { status: 400, headers: {"date": "Tue, 27 Sep 2022 08:16:59 GMT", "content-type": "text/html;charset=ISO-8859-1", "content-length": "25", "set-cookie": "JSESSIONID=BF211667273C8442B60BFF9856368DD3; Path=/cek; Secure; HttpOnly", "connection": "close", "": ""}, body: [13, 10, 13, 10, 13, 10, 52, 48, 48, 13, 10, 45, 13, 10, 66, 97, 100, 32, 82, 101, 113, 117, 101, 115, 116] })
caused by: http request #1 failed: Response { status: 400, headers: {"content-length": "25", "": "", "content-type": "text/html;charset=ISO-8859-1", "set-cookie": "JSESSIONID=B96B8FA7F1DD7CF8A6BA36E2602D24AF; Path=/cek; Secure; HttpOnly", "date": "Tue, 27 Sep 2022 08:16:44 GMT", "connection": "close"}, body: [13, 10, 13, 10, 13, 10, 52, 48, 48, 13, 10, 45, 13, 10, 66, 97, 100, 32, 82, 101, 113, 117, 101, 115, 116] }; http request #2 failed: Response { status: 400, headers: {"date": "Tue, 27 Sep 2022 08:16:49 GMT", "content-type": "text/html;charset=ISO-8859-1", "connection": "close", "": "", "set-cookie": "JSESSIONID=36115A083C50C75DDA3E74DFD20DA589; Path=/cek; Secure; HttpOnly", "content-length": "25"}, body: [13, 10, 13, 10, 13, 10, 52, 48, 48, 13, 10, 45, 13, 10, 66, 97, 100, 32, 82, 101, 113, 117, 101, 115, 116] }; http request #3 failed: Response { status: 400, headers: {"content-length": "25", "connection": "close", "": "", "set-cookie": "JSESSIONID=860A83BB61210C249C6497BB964AC2DA; Path=/cek; Secure; HttpOnly", "content-type": "text/html;charset=ISO-8859-1", "date": "Tue, 27 Sep 2022 08:16:54 GMT"}, body: [13, 10, 13, 10, 13, 10, 52, 48, 48, 13, 10, 45, 13, 10, 66, 97, 100, 32, 82, 101, 113, 117, 101, 115, 116] }

The decoded chain boils down to:
400
-
Bad Request

This appears to be a problem with the AMD server, using sevtool built from sources today:
# ~/sev-tool/src/sevtool --generate_cek_ask
--2022-09-27 05:08:41--  https://kdsintf.amd.com/cek/id/8a0c01551d43704314f71d8bcde4060a4a1860c861f03fac28c3606c56753eedc7ae1c845dd53e76cff3db94b430e9de3e8f3de2d80a24456fed6fe2676d2fa6
Resolving kdsintf.amd.com (kdsintf.amd.com)... <IP_ADDRESS>, <IP_ADDRESS>
Connecting to kdsintf.amd.com (kdsintf.amd.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 400
2022-09-27 05:08:41 ERROR 400: (no description).

Trying again
--2022-09-27 05:08:48--  https://kdsintf.amd.com/cek/id/8a0c01551d43704314f71d8bcde4060a4a1860c861f03fac28c3606c56753eedc7ae1c845dd53e76cff3db94b430e9de3e8f3de2d80a24456fed6fe2676d2fa6
Resolving kdsintf.amd.com (kdsintf.amd.com)... <IP_ADDRESS>, <IP_ADDRESS>
Connecting to kdsintf.amd.com (kdsintf.amd.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 400
2022-09-27 05:08:48 ERROR 400: (no description).

Trying again
--2022-09-27 05:08:54--  https://kdsintf.amd.com/cek/id/8a0c01551d43704314f71d8bcde4060a4a1860c861f03fac28c3606c56753eedc7ae1c845dd53e76cff3db94b430e9de3e8f3de2d80a24456fed6fe2676d2fa6
Resolving kdsintf.amd.com (kdsintf.amd.com)... <IP_ADDRESS>, <IP_ADDRESS>
Connecting to kdsintf.amd.com (kdsintf.amd.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 400
2022-09-27 05:08:54 ERROR 400: (no description).

Trying again
--2022-09-27 05:09:00--  https://kdsintf.amd.com/cek/id/8a0c01551d43704314f71d8bcde4060a4a1860c861f03fac28c3606c56753eedc7ae1c845dd53e76cff3db94b430e9de3e8f3de2d80a24456fed6fe2676d2fa6
Resolving kdsintf.amd.com (kdsintf.amd.com)... <IP_ADDRESS>, <IP_ADDRESS>
Connecting to kdsintf.amd.com (kdsintf.amd.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 400
2022-09-27 05:09:02 ERROR 400: (no description).

Trying again
Error: command to get cek_ask cert failed

Command Unsuccessful: 0x15

This is form a Genoa pre-production server, and that seems to be the root cause for the problem. The same procedure from a Rome machine reportedly works.

@c3d have you tried this on a Milan server? I would assume this error would persist. The certificate chain was changed for SNP. All sevctl utilities expect pre-SNP certificate chains. As such, I would assume Naples + Rome to work fine, and Milan + Genoa not to.
I'll check this out while I'm ssh'd into virtlab613

@tylerfanelli I had some confirmations from someone from AMD that this was probably due to the machine being a prototype. There might be an exception process in such cases.


Symfony installer pulls old symfony demo app.

sargath ~/public_html/symfony_demo $ symfony  -V
Symfony Installer version 1.5.0
sargath ~/public_html $ symfony demo

 Downloading the Symfony Demo Application...

    6.68 MB/6.68 MB ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  100%

 Preparing project...

 ✔  Symfony Demo Application was successfully installed. Now you can:

    1. Change your current directory to xxx/public_html/symfony_demo

    2. Execute the php app/console server:run command to run the demo application.

    3. Browse to the http://localhost:8000 URL to see the demo application in action.

sargath ~/public_html/symfony_demo $ app/console -V
Symfony version 2.7.6 - app/dev/debug

I think that it might be related to method
   protected function getRemoteFileUrl()
    {
        return 'http://symfony.com/download?v=Symfony_Demo';
    }

Because when I go by hand to http://symfony.com/download?v=Symfony_Demo.tgz
It downloads Symfony version 2.7.6 - app/dev/debug
So url does not provide highest version of demo app though.

That's really weird, as the latest version of the demo uses Symfony 2.8.2
@javiereguiluz can you check this ? This looks like an issue on symfony.com where it uses an old archive

Yes, this is an issue on our side. I can't estimate the time it will take us to solve this, but I hope it's sooner than later. Thanks.

Gladly closing this as "fixed". The symfony demo command now installs the most recent Symfony Demo version. Thanks!

@javiereguiluz are you sure about this ? I've just try it and :
sargath ~/public_html $ symfony -V
Symfony Installer version 1.5.0
sargath ~/public_html $ symfony demo

 Downloading the Symfony Demo Application...

    6.68 MB/6.68 MB ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  100%

 Preparing project...

 ✔  Symfony Demo Application was successfully installed. Now you can:

    1. Change your current directory to /home/sargath/public_html/symfony_demo

    2. Execute the php app/console server:run command to run the demo application.

    3. Browse to the http://localhost:8000 URL to see the demo application in action.

sargath ~/public_html $ cd symfony_demo
sargath ~/public_html/symfony_demo $ app/console -V
Symfony version 2.7.6 - app/dev/debug
sargath ~/public_html/symfony_demo $

...also http://symfony.com/download?v=Symfony_Demo.tgz downloading still same sized archive

I've just tested and it works for me. I didn't update the Symfony Installer and I didn't do anything special:

@javiereguiluz  hmmm that is weird ... but i found that if  I use link with *.tgz it goes with old version but using http://symfony.com/download?v=Symfony_Demo.zip I'm getting 2.8.4-DEV so it might be related what Distill that is selecting package type regarding to OS or something.

@javiereguiluz additionally I'm on archlinux OS

@javiereguiluz I think from today it is OK, now the right version is being downloaded

@sargath cool! If you have any other problem, please ping me because we'd like to monitor this issue very closely. Thanks!


[FEATURE] get a list of indices and aliases for which my user has been granted permission

Is your feature request related to a problem?
We are developing an application where user will be able to connect to their OpenSearch instance and expand their connection to see a list of the indices & aliases that they may have permissions. We have been investigating several options as described in this forum thread but so far there hasnt been any good solution. We are noticing that there doesnt seem to be a singe REST API call that would just return the indices, aliases and user permissions.
What solution would you like?
Working with elasticsearch we found that we can call _security/user/_privileges without any specific permissions set for the user and that will return information about what permissions the user has and which indices/aliases the user can see. This would be a great enhancement to th Opensearch platform.
What alternatives have you considered?
As described in the forum thread above, we have tried various options, but can never seem to get the simple answer of what indices and aliases can my user see.

[Triage] Hi @chet5619, thanks for filing this issue. There are some complexities with resolving the roles into the indices, permissions, etc. Basically, any time you do that, you had to resolve all roles which is computationally expensive. If you are interested, you could create an API to take the roles mappings and then return the resolved roles (with index patterns not concrete indices) from these mappings. If you would think this would be of help, you are more than welcome to contribute an API for review :)

We've got another issue tracking this request, closing this issue in favor of the previous feature request https://github.com/opensearch-project/security/issues/2652


Issue with bundling jss

I didn't manage to bundle jss (https://github.com/cssinjs/react-jss depends on https://github.com/cssinjs/jss) successfully using rollup
demo repo: https://github.com/caub/rollup-plugin-commonjs-issue
demo live: https://caub.github.io/rollup-plugin-commonjs-issue/index.html
console error:
Uncaught TypeError: (0 , _jss.create) is not a function
    at rollup.js:6240
    at createCommonjsModule (rollup.js:10)
    at rollup.js:6200

that create function is exported there: https://github.com/cssinjs/jss/blob/master/src/index.js#L52
I'm not completely sure it's a rollup issue, but webpack works
cc @kof

after updating a bit react-jss, I have this issue at build time now:
> NODE_ENV=production rollup -c

index.js, vendor.js → dist...
[!] Error: 'default' is not exported by ../../../react-jss/lib/index.js
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
index.js (3:7)
1: import React from 'react';
2: import ReactDOM from 'react-dom';
3: import injectSheet from 'react-jss';
          ^
4: import Wheel, { OpacityRange } from './src';

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! color-wheel-demo@ build: `NODE_ENV=production rollup -c`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the color-wheel-demo@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/caub/.npm/_logs/2018-05-03T16_37_39_493Z-debug.log

which really appears to be a rollup issue, and particularly this plugin (responsible to import CJS modules)
react-jss src/index default export is this: https://github.com/cssinjs/react-jss/blob/master/src/index.js#L8
transpiled by babel into<EMAIL_ADDRESS>(the end of)

Hey folks (this is a canned reply, but we mean it!). Thanks to everyone who participated in this issue. We're getting ready to move this plugin to a new home at https://github.com/rollup/plugins, and we have to do some spring cleaning of the issues to make that happen. We're going to close this one, but it doesn't mean that it's not still valid. We've got some time yet before the move while we resolve pending Pull Requests, so if this issue is still relevant, please @ me and I'll make sure it gets transferred to the new repo. :beer:


VS Code opens files with differently cased filenames as different files

From https://github.com/Microsoft/vscode/issues/67523#issuecomment-481045970:
Try opening on macOs or Windows:
code test.txt
code Test.txt
And you'll see VS Code handling the same file as two different ones in each their editor, but the Finder/Explorer treats it as the same file.

/duplicate https://github.com/Microsoft/vscode/issues/12448


Detailed Action Boolean View

Detailed Action Boolean View provides boolean values a view that dynamically changes labels depending on the boolean state. An additional action is provided to allow updates to the data provided and put to the defined targetDAO. Boolean value labels and actions labels are provided when defining the view at a property level.
Ex:
{
  class: 'Boolean',
  name: 'myBoolean',
  view: {
    class: 'foam.u2.DetailedActionBooleanView',
    trueLabel: 'this label will display when prop value is true',
    falseLabel: 'this label will display when prop value is false',
    trueActionLabel: 'switch to false',
    falseActionLabel: 'switch to true',
    targetDAOKey: 'myDAO'
  }
}

To omit the action and display a checkbox that doesn't not update the data object, you can define showAction as false. This will update the property value but will require a put to a desired DAO.
Below is a screenshot of the view (Ablii  theme applied):

Action is aware of display mode 'RW' (Connect theme applied):

Setting autoSave to true on view will put the object to the targetDAO on action click. Otherwise the action will set the property value to a new value.

@jlhughes Do you think this should be in FOAM or maybe a u2 package inside nanopay?

I see this as nanopay specific UI behaviour.

replaced by https://github.com/nanoPayinc/NANOPAY/pull/9447


getting error 'parserOptions.operations' in yarn workpsace

I like this package😍
I use yarn workspace and getting error
ESLint: 7.17.0

Error: Rule 'require-id-when-available' requires 'parserOptions.operations' to be set and loaded. See http://bit.ly/graphql-eslint-operations for more info
Occurred while linting /home/miyata/dev/experiments/eslint-graphql-example/packages/packageB/src/sample.graphql:1
    at requireSiblingsOperations (/home/miyata/dev/experiments/eslint-graphql-example/node_modules/@graphql-eslint/eslint-plugin/index.cjs.js:24:15)
    at SelectionSet (/home/miyata/dev/experiments/eslint-graphql-example/node_modules/@graphql-eslint/eslint-plugin/index.cjs.js:876:34)
    at /home/miyata/dev/experiments/eslint-graphql-example/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/home/miyata/dev/experiments/eslint-graphql-example/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/home/miyata/dev/experiments/eslint-graphql-example/node_modules/eslint/lib/linter/node-event-generator.js:254:26)
    at NodeEventGenerator.applySelectors (/home/miyata/dev/experiments/eslint-graphql-example/node_modules/eslint/lib/linter/node-event-generator.js:283:22)
    at NodeEventGenerator.enterNode (/home/miyata/dev/experiments/eslint-graphql-example/node_modules/eslint/lib/linter/node-event-generator.js:297:14)
    at CodePathAnalyzer.enterNode (/home/miyata/dev/experiments/eslint-graphql-example/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:711:23)
    at /home/miyata/dev/experiments/eslint-graphql-example/node_modules/eslint/lib/linter/linter.js:952:32

I created sample repo https://github.com/takumiya081/eslint-graphql-not-work-sample
eslintrc: https://github.com/takumiya081/eslint-graphql-not-work-sample/blob/main/packages/packageB/.eslintrc.js

@takumiya081 execution of ESLint and loading the files is done based on cwd while the script is executed.
If you are using this in a monorepo setup, you can either use .js extension for the eslint config file and then you can use __dirname to build the actual path, or you can put the entire eslint configuration in the root of your monorepo.

@dotansimha
thank you for helping.
I fix eslint.config.js like that
      parserOptions: {
        schema: path.resolve(__dirname, '../packageA/schema.graphql'),
        operations: [path.resolve(__dirname, './src/**/*.graphql')],
      },

but got same error.
I tried removing .graphqlrc.yml file, then it's work.
When exists graphql-config file in monorepo,
https://github.com/dotansimha/graphql-eslint/blob/a2b71f6be17ff57614f57b3648ae2256cc834ea9/packages/plugin/src/sibling-operations.ts#L70
projectForFile  is
GraphQLProjectConfig {
  filepath: '/home/miyata/dev/experiments/eslint-graphql/.graphqlrc.yml',
  dirpath: '/home/miyata/dev/experiments/eslint-graphql',
  name: 'default',
  extensions: {},
  schema: 'packages/packageA/schema.graphql',
  include: undefined,
  exclude: undefined,
  isLegacy: true,
  _extensionsRegistry: GraphQLExtensionsRegistry {
    _extensions: { endpoints: [Object], 'graphql-eslint-loaders': [Object] },
    loaders: { schema: [LoadersRegistry], documents: [LoadersRegistry] }
  }
}

so siblings is empty array

@dotansimha
thank you for helping.
I fix eslint.config.js like that
      parserOptions: {
        schema: path.resolve(__dirname, '../packageA/schema.graphql'),
        operations: [path.resolve(__dirname, './src/**/*.graphql')],
      },

takumiya081/eslint-graphql-not-work-sample
but got same error.
I tried removing .graphqlrc.yml file, then it's work.
When exists graphql-config file in monorepo,
https://github.com/dotansimha/graphql-eslint/blob/a2b71f6be17ff57614f57b3648ae2256cc834ea9/packages/plugin/src/sibling-operations.ts#L70
projectForFile is
GraphQLProjectConfig {
  filepath: '/home/miyata/dev/experiments/eslint-graphql/.graphqlrc.yml',
  dirpath: '/home/miyata/dev/experiments/eslint-graphql',
  name: 'default',
  extensions: {},
  schema: 'packages/packageA/schema.graphql',
  include: undefined,
  exclude: undefined,
  isLegacy: true,
  _extensionsRegistry: GraphQLExtensionsRegistry {
    _extensions: { endpoints: [Object], 'graphql-eslint-loaders': [Object] },
    loaders: { schema: [LoadersRegistry], documents: [LoadersRegistry] }
  }
}

so because documents property is undefined, siblings is empty array

I see, you can add skipGraphQLConfig: true to skip the loading of .graphqlrc.yml :) (see https://github.com/dotansimha/graphql-eslint/blob/master/docs/parser-options.md)

thank you!!


jupyterlab 3.6.5 unable install jupyterlab-execute-time

hi, when i prepared to install jupyterlab-execute-time, i got the problem.How can i fix it?

it show that jupyterlab >=3.6.5 <3.7.0, my version is 3.6.5。

Hi,
Maybe this greate extension is not working in v3.6.5. Only in v4.0.3, I can see the execution timestamp in each cells unfortunately.

Any chance of tweaking a version of this plugin to work with jlab >=3.7.0 <3.6.4?  Those are the versions lf jlab that MANY people are on right now and will continue to be for some time.

Hi.
We plan to yank 3.0.0 for one that locks 3.0.1 to lab@4. This should let pip install the right thing. Sorry for the confusion!

This was fixed with yanking 3.0.0 and releasing 3.0.1.

Thank you for being responsive on that, it is greatly appreciated


update battery info functions

get battery information as a percentage
provide a unregister function for not listening to battery updates.

Battery percentage as percentage, integer - done
No need for unregister function.


more progress on the documentation

:white_check_mark: Build SMT 0.1.55 completed (commit https://github.com/SMTorg/SMT/commit/d9965c6f83 by @bouhlelma)


Wrapper.emitted() does not register events from fowarded listeners

Version
1.0.0-beta.30
Reproduction link
https://gist.github.com/vvanpo/77af34a1392fae3319a42048b736acb3
Steps to reproduce
git clone https://gist.github.com/77af34a1392fae3319a42048b736acb3.git
cd 77af34a1392fae3319a42048b736acb3
yarn
yarn jest

What is expected?
One expects that any event that can be captured by a listener set on a component would be observable in Wrapper.emitted().
What is actually happening?
Because listener registered with v-on is simply forwarded to a child, as documented in https://vuejs.org/v2/guide/components-custom-events.html#Binding-Native-Events-to-Components, the emitted() object remains empty even with event listeners have been successfully invoked.

I'd say this is a bug that should be fixed. Would you be interested in giving it a crack?

I would, but the more I think about it the more complicated it seems. For example, how should
https://gist.githubusercontent.com/vvanpo/2e272bff546317aac0e929f43d5f9429/raw/99bb6bac5142a31be3d02dc2c67d0b5bfedc8a41/test.js
behave?
How would @vue/test-utils be able to know exactly which listener was forwarded?

Something I missed: https://vue-test-utils.vuejs.org/api/wrapper/#emitted

Return an object containing custom events

So my reproduction examples are incorrect, as emitted() is not supposed to return DOM events.
I'm inclined to just close this, as there is distinct difference between a forwarded listener and a call to $emit(). Maybe the best solution here is just to add an explanation of this difference to the documentation, with an example of a mocked listener to mitigate the problem.

Right. I see what you mean. I’m sorry for not catching the difference in you original gist.
I’ll close this issue. Please feel free to improve the docs in a PR. Thank you for your investigation and time spent 🙏🏻🚀


launchpad have no iterm2

➜  ~ brew cask install iterm2 --force
==> Satisfying dependencies
complete
==> Downloading https://iterm2.com/downloads/stable/iTerm2-2_1_4.zip
Already downloaded: /Users/json/Library/Caches/Homebrew/iterm2-2.1.4.zip
==> Verifying checksum for Cask iterm2
==> It seems there is already an App at '/Applications/iTerm.app'; overwriting.
==> Removing App: '/Applications/iTerm.app'
==> Moving App 'iTerm.app' to '/Applications/iTerm.app'
🍺  iterm2 staged at '/usr/local/Caskroom/iterm2/2.1.4' (0B)
It seems to be OK，I try lots of times,Finder have it.
but launchpad have no iterm2 icon,other app don't have this problem,
hey guys,how I can fix it?

We don’t touch Launchpad at all, we just move the app. You’ll need to find the answer somewhere else.


Inconsistent behavior with user-defined domains, presolve, memory allocation

What version of OR-tools and what language are you using?
Version: master
Language: C++
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
CP-SAT
What operating system (Linux, Windows, ...) and version?
Windows 10
What did you do?
We solve a 3-dimensional container loading problem with the start positions of items as integer variables.
Case 1: We set the domains of the variables with
yStartPosition.emplace_back(this->cp_model.NewIntVar({ 0, container.Dy - minDimItem }));

Case 2: We set the domains of the variables with
yStartPosition.emplace_back(this->cp_model.NewIntVar(
     operations_research::Domain::FromFlatSpanOfIntervals(yStartPoints)));

to reduce the number of possible start points. yStartPoints is a std::vector<int64>.
What did you expect to see
Consistent behavior in all runs.
What did you see instead?
The program runs without any errors using Case 1. However, in Case 2, sometimes the program terminates with various errors and sometimes it runs as expected, even for the same instance. The errors are a kind of mystery for us and we have attached some screenshots of the call stack.

See also the model proto files
protoModel_Case1.txt
protoModel_Case2.txt
Anything else we should know about your project / environment
We use Visual Studio 2019 with std:c++latest.

case 1 file is truncated.

case 1 file is truncated.

Sorry, don't know how the last 100 lines got lost. I have updated protoModel_Case1.txt. This should be complete.

Which parameters are you using when solving ?

Which parameters are you using when solving ?

The program terminates unexpectedly with different paramter settings. We have tested default settings, turning off presolve, multi-threading and single-threading.

The program terminates unexpectedly with different paramter settings. We have tested default settings, turning off presolve, multi-threading and single-threading.

I have just run it on the master branch multiple times, without any problem.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le ven. 8 janv. 2021 à 10:24, FelTam<EMAIL_ADDRESS>a écrit :

The program terminates unexpectedly with different paramter settings. We
have tested default settings, turning off presolve, multi-threading and
single-threading.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2322#issuecomment-756647762,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3KM7E4OLNSWXYL7NQLSY3FMBANCNFSM4VZJKNIQ
.

I have just run it on the master branch multiple times, without any problem.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le ven. 8 janv. 2021 à 10:24, FelTam<EMAIL_ADDRESS>a écrit :

The program terminates unexpectedly with different paramter settings. We
have tested default settings, turning off presolve, multi-threading and
single-threading.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2322#issuecomment-756647762,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3KM7E4OLNSWXYL7NQLSY3FMBANCNFSM4VZJKNIQ
.

It could be a mismatch between protobuf versions. Have you updated it
independently from the or-tools library?
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le ven. 8 janv. 2021 à 10:31, Laurent Perron<EMAIL_ADDRESS>a écrit :

I have just run it on the master branch multiple times, without any
problem.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68
53 00
Le ven. 8 janv. 2021 à 10:24, FelTam<EMAIL_ADDRESS>a écrit :

The program terminates unexpectedly with different paramter settings. We
have tested default settings, turning off presolve, multi-threading and
single-threading.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2322#issuecomment-756647762,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3KM7E4OLNSWXYL7NQLSY3FMBANCNFSM4VZJKNIQ
.

It could be a mismatch between protobuf versions. Have you updated it
independently from the or-tools library?
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le ven. 8 janv. 2021 à 10:31, Laurent Perron<EMAIL_ADDRESS>a écrit :

I have just run it on the master branch multiple times, without any
problem.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68
53 00
Le ven. 8 janv. 2021 à 10:24, FelTam<EMAIL_ADDRESS>a écrit :

The program terminates unexpectedly with different paramter settings. We
have tested default settings, turning off presolve, multi-threading and
single-threading.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2322#issuecomment-756647762,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3KM7E4OLNSWXYL7NQLSY3FMBANCNFSM4VZJKNIQ
.

The error was in determining the new starting points. Memory was corrputed in a corner case. I thought I've checked this, but well..
Now everything is working fine. I am sorry for wasting your time and thank you for the quick support and building such a great tool.

The error was in determining the new starting points. Memory was corrputed in a corner case. I thought I've checked this, but well..
Now everything is working fine. I am sorry for wasting your time and thank you for the quick support and building such a great tool.


JSS does have theming with react-jss

https://github.com/cssinjs/react-jss#theming

This is so far out of date it's not even funny, I should probably add a warning to the readme


Overview

Added an overview page and added tests for installation and a very rudimentary CI test, testing if Cosmicfish can generate a spectroscopic Fisher and plot it. The test is also available for the user to test if they have installed CF correctly

@santiagocasas please review thank you thank you


Fix prow execution

The gce_run.sh bash script is executed from the e2e folder, which causes some issues during the prow execution. This change modifies that behavior to run it from its own folder. This also deprecates the usage of E2E_instance.txt file.

/lgtm
/approve

/lgtm

@aravind254 would appreciate a review and lgtm when you get a chance, Thanks

/retest

/lgtm

/approve


Disable RmlUI document if scene is not visible

IMO it would make more sense for component to follow scene->IsUpdateEnabled(). This knob specifically disables updates to scene and all of it's components, while UI alone can be disabled explicitly by calling component->SetEnabled(false).

IMO it would make more sense for component to follow scene->IsUpdateEnabled(). This knob specifically disables updates to scene and all of it's components, while UI alone can be disabled explicitly by calling component->SetEnabled(false).

Will disabling updates stop UI from rendering? I don't think so.
Calling SetEnabled is not convenient. The problem is that switching between application states should switch visible rmlui elements. For classic UI I solve this by replacing a UI Root element in UI subsystem. There is no such thing in RmlUI subsystem.
There should be a better way of doing this but coming up with it may take a long time.

Will disabling updates stop UI from rendering? I don't think so.

It does not, but it could. E_SCENEUPDATECHANGED event could be added, which fires whenever Scene::SetUpdateEnabled() is called. Then component can subscribe to this event and show/hide UI.

Calling SetEnabled is not convenient.

This is an option for other usecases. Maybe we want invisible scene still doing UI, maybe we want visible scene not doing UI. Combination of E_SCENEUPDATECHANGED+SetEnabled allow both

Ok, I'll update the PR tonight.

It does not, but it could

But should it?
We render scene that is not updated all the time in the Editor.
Why should we render Scene and not render UI?

That makes sense :thinking:

@gleblebedev did you check that render to texture works as expected (e.g. in samples)?

Is it also done with component? Why component?

Our workflow is component-centric, it was a natural fit for ui in the editor. But maybe component is implemented wrong. Maybe ui should be rendered as an overlay on the scene. In that case not rendering scene would not render ui automagically. Although input handling would start to depend on viewport rect. It would also play well with editor...


phoneNo in the example

Apparently it fails to mask a number. Ss the matter of fact in your own example the
"phoneNo":123456789
gets masked as
"phoneNo":**45678
I would simply suggest of masking numbers with numbers in that case.

Hello mario-imperato,
thanks for your suggestion but the purpose of jsonmask is for logging data only which is used in middleware for log the request / response json.


Should it be installed only in dev environment?

{:phoenix_profiler, "~> 0.1.0", github: "mcrumm/phoenix_profiler", only: [:dev]}

Can we do this?
My concern was, we are configuring PhoenixProfiler in application.ex - if the module is not available, in production that might generate error.
The above question arrived due to a peculiar problem I am facing.
I have deployed two Phoenix Applications on to one EC2 instance. When I compiled the 2nd application it generated an error message with PhoenixProfiler. I had to remove Profiler from the 2nd application and deploy again.
Sorry, this is not an issue with your library. But, I did not know where to ask.

Hi @cvkmohan! Right now you need to install the package in all environments, but you would configure the profiler on your Endpoint only in the :dev environment.
Can you share the error that was generated in the 2nd application? It could absolutely be an issue, because this library is very new :)

Thanks @mcrumm
(RuntimeError) attempted to enable profiling but no profiler is configured on the endpoint
    (phoenix_profiler 0.1.0) lib/phoenix_profiler/utils.ex:92: PhoenixProfiler.Utils.enable_profiler_error/2
    (phoenix_profiler 0.1.0) lib/phoenix_profiler.ex:45: PhoenixProfiler.on_mount/4
    (phoenix_live_view 0.17.6) lib/phoenix_live_view/lifecycle.ex:148: anonymous fn/4 in Phoenix.LiveView.Lifecycle.mount/3
    (phoenix_live_view 0.17.6) lib/phoenix_live_view/lifecycle.ex:183: Phoenix.LiveView.Lifecycle.reduce_socket/3
    (phoenix_live_view 0.17.6) lib/phoenix_live_view/utils.ex:299: anonymous fn/6 in Phoenix.LiveView.Utils.maybe_call_live_view_mount!/5
    (telemetry 1.0.0) /home/ubuntu/my_app/deps/telemetry/src/telemetry.erl:293: :telemetry.span/3
    (phoenix_live_view 0.17.6) lib/phoenix_live_view/channel.ex:949: Phoenix.LiveView.Channel.verified_mount/8
    (phoenix_live_view 0.17.6) lib/phoenix_live_view/channel.ex:58: Phoenix.LiveView.Channel.handle_info/2

is the error message.

Thanks for the report! Closing in favor of #52 – stand by! :)


Fix product subscription react template

WHY are these changes introduced?
This PR fixes product subscription react template. Generally, it works right now. However, as soon as we add hook to App component, it breaks. The reason is because the render function expects a function returning a React element.
WHAT is this pull request doing?
Fix the render call and use useExtensionApi to query for extensionPoint.
How to test your changes?
N/A
Measuring impact
How do we know this change was effective? Please choose one:

[ ] n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
[ ] Existing analytics will cater for this addition
[ ] PR includes analytics changes to measure impact

Checklist

[ ] I've considered possible cross-platform impacts (Mac, Linux, Windows)
[ ] I've considered possible documentation changes

Note that: I double check other react template. Both checkout_post_purchase and pos_ui_extension are also wrong.


[glossary] more style guide content for snippets

@chenopis @abiogenesis-now @heidecke FYI and PTAL
Added some more specific guidance for snippets in a separate README file.

This change is

atm putting readme in _data/glossary is breaking the build (fails glossary_test.go). But this may not be the right location for it in any case. Discussing w/ @abiogenesis-now. Any ideas from @chenopis or @heidecke most welcome. A couple of other issues are also outstanding:

whether we need the id field (currently not documented)
still need to add link to style guide in _data/glossary/_example.yml

@Bradamant3 We might also want to create a file, /docs/home/contribute/glossary-snippets.md that mainly just {% includes %} the README.md file so that it's also in the regular docs path for people to read or so we can link to it in the style guide.

@Bradamant3 I wasn't able to figure out how to fix the history on this, but I was able to isolate your commit and push it onto the chenopis-glossary-project branch.

Closing this PR because it's essentially merged---hope I'm not being too preemptive 😅


.gitignore updates related to Python verification

@geneh,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


RSDK-4941 - use org api key in examples

I wonder why logging was imported if it wasn't needed? Otherwise, LGTM!

@purplenicole730 I think it was being used before in creating the options (log_level=logging.DEBUG) but the with_api_key method just goes with defaults.

I wonder why logging was imported if it wasn't needed? Otherwise, LGTM!

@purplenicole730 I think it was being used before in creating the options (log_level=logging.DEBUG) but the with_api_key method just goes with defaults.

 I forgot that we set log_level in the options and was more focused on the function change. Ignore me, haha 😁


Terraform-ing addons

I've Terraformed 3 out of the 4 addons in Typhoon. End result is here: https://github.com/JordanP/terraform-playground
It works well. What do you think of the approach ?

I maintain that for Terraform is favored for infrastructure and existing config formats are favored for platforms/applications. For example, you'll see we reject the ignition terraform provider and favor the native document. Terraform should not be about re-inventing every config in HCL. Terraform may not always be the leading infra declaration language and forcing platform/applications into dependency on it harms future portability.
In this case, Kubernetes manifests are the way I'd prefer those manifests be maintained. But you're welcome to use whatever format you like, I'm glad the addons were useful to you!


feat(forge fmt): Option for changing if/else clause format

Component
Forge
Describe the feature you would like
Today forge fmt automatically "cuddles" elses:
if (true) {
  // ...
} else {
  // ...
}

I could not find a way to change this.
While this is a common format there are two other common formats:
if (true) {
  // ...
}
else {
  // ...
}

if (true)
{
  // ...
}
else
{
  // ...
}

Could we maybe add a new fmt option, e.g. if_braces_style ?
Additional context
No response

Closing as won't fix for now. While it would be nice to have these we currently don't have the bandwith atm.


Does not give version error if using LLVM 13

When using LLVM 12, configuring CMake gives me an error indicating the correct LLVM version(7 ~ 11) required.
But when only LLVM 13(current latest) is installed, the error message is hard to diagnose.
CMake Warning at CMakeLists.txt:8 (message):
  CMAKE_INSTALL_PREFIX is set to /usr/local.  This is not recommended.

CMake Error at /usr/lib/llvm-13/lib/cmake/llvm/LLVMExports.cmake:1501 (message):
  The imported target "llvm-omp-device-info" references the file

     "/usr/lib/llvm-13/bin/llvm-omp-device-info"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib/llvm-13/lib/cmake/llvm/LLVMExports.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/llvm-13/cmake/LLVMConfig.cmake:299 (include)
  CMakeLists.txt:76 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/yonggyulee/Documents/GitHub/eos/cmake-build-debug/CMakeFiles/CMakeOutput.log".

I apologize for hijacking, but it seems that I am facing the exact same issue while trying to compile openmp-13.0.0.src.tar.xz on my set-up, ad that @spoonincode  knows how to debug this error.
Set-up:
clang -v
Debian clang version 13.0.1-++20211105082941+216200aff268-1~exp1~20211105203515.22
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/8
Candidate multilib: .;@m64
Selected multilib: .;@m64

uname -a
Linux travail 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux

and the error I obtain after issuing
cmake -DCMAKE_C_COMPILER=clang

is
CMake Error at /usr/lib/llvm-13/lib/cmake/llvm/AddLLVM.cmake:877 (add_executable):
  add_executable cannot create target "llvm-omp-device-info" because an
  imported target with the same name already exists.
Call Stack (most recent call first):
  /usr/lib/llvm-13/lib/cmake/llvm/AddLLVM.cmake:1230 (add_llvm_executable)
  libomptarget/tools/deviceinfo/CMakeLists.txt:15 (add_llvm_tool)

CMake Error at /usr/lib/llvm-13/lib/cmake/llvm/LLVM-Config.cmake:92 (target_link_libraries):
  Cannot specify link libraries for target "llvm-omp-device-info" which is
  not built by this project.
Call Stack (most recent call first):
  /usr/lib/llvm-13/lib/cmake/llvm/AddLLVM.cmake:926 (llvm_config)
  /usr/lib/llvm-13/lib/cmake/llvm/AddLLVM.cmake:1230 (add_llvm_executable)
  libomptarget/tools/deviceinfo/CMakeLists.txt:15 (add_llvm_tool)

That error message is indeed hard to debug, should I understand that I must downgrade my version of llvm?
Thanks!

@aubertc a bit confused on the question -- is it about building eosio? It seems you're on Debian 10? There is no need to build LLVM on Debian 10 what is provided in the standard packages is new enough.

Yes, my question is a bit unrelated and I apologize for that -- it is not about building eosio, but about building openmp for llvm, and the error message I receive is very similar to the one you copied, and you seemed to have an idea where this error message was coming from (is it "simply" because I am trying to use llvm 13 to compile something that can be compiled only with llvm 10?), so I was wondering if you could explain it to me.
And I am using a more modern version of llvm than the one shipped with debian for some external reasons.


Using multi select / checkboxes widget in FormBuilder

I am trying to have multi select option of checkboxes in FormBuilder Input Types. However, I can only see Dropdown, Short Answer, Long Answer, Array and some other input types in the dprodown menu.

I wonder if there is a way to get multi select input type here?

Related to #106


Figure out how to talk to the Ethereum blockchain from React Native.

Figure out how to access Web3.js from React Native
Figure out a way to connect with the infura servers since Metamask won't be accessible on mobile.

Here's a gist I found discussing a potential solution to this issue.
https://gist.github.com/dougbacelar/29e60920d8fa1982535247563eb63766

Here's a gitlab repo I found
https://gitlab.com/sashamihaha/rn-ethereum-starter/tree/dev

That looks like a solid resource! Looking forward to checking it out.
Here's an issue that suggest we might have to use vanilla React-Native instead of Expo for our development. Let's explore further and see what's up.
https://github.com/concensus/react-native-ios-concensus/issues/3

has anybody had any success in doing this?
I am trying to invoke web3.eth.accounts.create() from react-native.
Any help would be appreciated

Likewise, followed many 'solutions' online, but having issues getting web3 set up in Expo, which I enjoy using.

Likewise, followed many 'solutions' online, but having issues getting web3 set up in Expo, which I enjoy using.

Hey, I am myself trying to connect to web3 using expo, any news, didi you figure it out, it seems there are no working solid solutions up to this day..


Change shortcut for tilemap painting tools

Fixes #64017
first add CMD as a Key the same way CMD as been added to KeyModifiersMask
Then replace all KEY::CTRL by KEY::CMD

Bump @groud :)

cc @bruvzg as they did some recent working on keyboard/input stuff. Not sure if there is a better way of doing this. On the Input singleton maybe it would be nice to have is_modifier_key_pressed?

APPLE_STYLE_KEYS was removed, and there's CMD_OR_CTRL mask to specify shortcuts that are Cmd+ on macOS and Ctrl+ on other systems.

Not sure if there is a better way of doing this. On the Input singleton maybe it would be nice to have is_modifier_key_pressed?

What would be the difference from is_key_pressed?
PR seems fine, but I would rename CMD to CMD_OR_CTRL for consistency with current masks, and #ifdef APPLE_STYLE_KEYS should be changed to #ifdef MACOS_ENABLED.

What would be the difference from is_key_pressed?

Ah I forgot that we don't distinguish between left/right modifier keys. I also thought it might be helpful as a way to check for if  CMD_OR_CTRL is pressed as that is not currently possible. But yeah, just adding CMD_OR_CTRL to the key list like you suggest works well.

Just made the changed based on what was discussed here without changing what was done on the bottom ( changed the name of the CMD for CMD_OR_CTRL and changed the APPLE_STYLE_KEYS by MACOS_ENABLED.
It would have been cool to be able to use modifiers but at some point we need to know if the modifier is pressed or no for preview even if there is no input to check modifiers from. This why we need to have it as a key and not just a key modifier

I'll look into it. Do you think i should create a new pull request or should i had to this one and rename it ?

I have already found at least two (still going through all occurences of calling is_key_pressed(Key::CTRL)) other places where using Control instead of command prevents you from using the functionality just as in his case because it needs a left click and using ctrl makes a right click. I think they should also be included in this PR.
I think after i am done with the is_key_pressed(Key::CTRL) i'll look into the is_ctrl_pressed as they might also have the same bugs just because people didn't test on mac and didn't think of using is_command_or_control_pressed() (or the code was developed before the function was implemented).

Thanks!


english translation?

Hello can I have permission to translate it to english please? Thanks

Yes Sure. Do it and send me a pull request if you finished :)

Added the en.lua and br.lua for the English and Brazilian Portuguese translations ;)


chore: strictly load testing-flags.json when needed

This PR

Stops attempt to load testing-flags.json in unit testing.
Related Issues

Notes

Follow-up Tasks

How to test

@skyerus I'm changing the title to "chore", since though this is a fix, it's not a "user-facing" fix.


Fix formcheckbox and formradio. Fixes #65

Fixes issue #65

value property must have default value true. Bug existed prior to #64 , but somehow the new code made this causing the simple checkbox failures

#64 removed the ability to have an array as v-model.

additional fixes for FormRadio

Still open issues :

input event is removed. We need to either update the docs or make input event working again
lots of unittests fail due to the complete change of the inner working of the FormCheckbox

fix unittests and remove tests no longer relevant

Hey @jclijmans
Unit testing & eslint errors are fixed in https://github.com/cdmoro/bootstrap-vue-3/pull/67
Input event should also be triggered now
I still need to work on BFormRadio to have it working with BFormRadioGroup (probably next week)


Stream Proof

add stream proof feature

??

https://github.com/danielkrupinski/GOESP

@dapaster GOSESP does not have as many features as Osiris

If @danielkrupinski start a project with "Stream Proof" is because he won't add "Stream Proof" for Osiris.

You can inject GOESP and Osiris in one process
Ex. Osiris with aim, GOESP with WH

bad idea, couldn't recommend.

Maybe bad idea, but i try to inject GOESP and Osiris, and working

thx, i'ill use GOESP and Osiris

But don't enable conflict functions. Maybe crash, or something else.

Expect more frequent crashes and laggy gameplay


[Bug] executeUser may no permission to access engineConnExec.sh

Search before asking

[X] I searched the issues and found no similar issues.

Linkis Component
linkis-computation-governance
Steps to reproduce

make any parent path of ENGINECONN_ROOT_DIR to no execute permission for others. For example, ENGINECONN_ROOT_DIR is /home/hadoop/linkis/tmp, and /home/hadoop permission is rwx------ (In fact, default permission of user home is exactly this in centos)
use non-hadoop user as executeUser to submit job, such as hadoop2
see error log that hadoop2 has no permission to /home/hadoop/linkis/tmp/xxxxxx/engineConnExec.sh

Expected behavior
With no execute permission of any parent path of a file, user cannot access that file. ECM should change all parent path of ENGINECONN_ROOT_DIR to have execute permission for others, better to be rwxr-xr-x
Your environment

Linkis version used: 1.1.2
Environment name and version:

cdh-5.14.2
hdp-3.1.5
hive-2.1.1
spark-3.2.1
scala-2.12.2
jdk 1.8.0_121
....

Anything else
No response
Are you willing to submit a PR?

[x] Yes I am willing to submit a PR!

提供最新版DataSphereStudio全家桶安装服务。
包括（DataSphereStudio, Linkis, Exchangeis(Datax, Sqoop), Scriptis, Streamis(Flink), Visualis, DolphinScheduler)

另外包含 元数据，数据安全，数据质量，数据血缘。（这些都是DataSphereStudio不自带的服务）
包含hadoop集群搭建（hive, spark, flink, kafak, kylin）
提供上述所有系统二次定制开发服务
提供系统搭建运维疑难问题解决

添加备注，DSS大数据
持续为DataSphereStudio开源贡献力量


[FancyZones] 2 layouts displayed over each other

... the right layout is shown in background (see yellow arrow).

Workaround is to restart application.

Looks like we have encountered the same issue. Mine is #3876
Can you specify what you did before this happened?

I believe this had happened when I went from office (using 38" display) to home (34" display). As currently the zones do not adjust from 38" to 34" (bigger resolution to smaller). I had to change them and I have selected the different layout. And then it started to show 2 layouts over each other. When I have chosen a third layout (different to previous 2), I got 3 layouts over each other.
But as I said, I believe it is because of different display used at home and at office.

I ran into this bug today after I detached my Surface Book 3 clipboard and reattached it. After first reattaching, none of my widows returned to their assigned FancyZone area. In fact, when moving windows with Shift key, it appeared as though there were none configured for the external monitor. So I assigned zones, but that resulted in the issue described here; overlapping duplicate zones.

Closing this as duplicate of https://github.com/microsoft/PowerToys/issues/3876
Please add your comments there.
Thanks.


fix: nixos specific no such file or directory

I was getting no such file or directory errors in NixOS.
It turns out that the shebang was causing this error.
To address this problem, this PR explicitly tells the OS to execute the script using dash

[!NOTE]
this will make it easier to spot people who did not install dash and complaining about the bar is not working

I'd like to propose a different fix for this: change the shebang to #!/bin/env dash and tell me if the issue persists @orhnk.

Test #196 please.


Bugfix when copying the ExperiemntData object and add warning to _retrieve_data

Summary
As said in #1314 , copy method in Experiment Data class will now copy the provider attribute to the copied instance and warnning if data isn't retrieved due to provider=None .
Details and comments
Some details that should be in this section include:

Why this change was necessary
This is a bug that the provider isn't copied. In addition, _retrive_data() method in the ExperimentData class doesn;t retirive data if provider is not provided. Added a warning so the user will know.

It all started with #1314. I understand that you did some debugging, which revealed that the cause of #1314 was that providers were not copied.
Is there a way to add a test that reproduces the code snippet of #1314, and verifies that the issue has really been resolved?

I added to a test under test_copy_metadata method in test_db_experiment_data.py. There I checked if the provider of the experiment data is copied. In FakeBackend class I put provider=FakeProvider() in the initialization.


Don't create GCP projects

Currently, we offer to create a GCP project as part of the installation process. However, doing so is error-prone and typically not all that helpful. Let's stop creating one and instead offer docs explaining that having a project is a prerequisite.

Also, remove the cleanup.sh script (if creating projects isn't something Four Keys does, than deleting them shouldn't be either).


Initializing AOS using Asynchronously Loaded CSS

I'm trying to use AOS while asynchronously loading CSS based on the following pattern (based on Filament Group):
<link rel="stylesheet" href="/path/to/my.css" media="print" onload="this.media='all'; this.onload=null;">
The problem, however, is that on page load, all elements with an AOS animations fire in reverse and then disappear. I'm figuring this has to do with the timing of CSS being loaded and AOS being initialized. Anyone know of a way to get AOS to work properly so that I can async load CSS (using this pattern to implement CriticalCSS).
This is: Question
Specifications

AOS version: 2.3.4
Browser: All major modern browsers

Hi @jayhlee, have you tried manually triggering
AOS.refresh()

on the onload-event already?

Hi @sebastian-marinescu,
I tried that, but that didn't work. I've even tinkered around having AOS initialize and/or refresh when document.readyState === 'complete', but that doesn't work either.

Hi @jayhlee, that's a shame ^^
You could try initializing it with the CSS-Load. So for example:
<link rel="stylesheet" href="/path/to/my.css" media="print" onload="this.media='all'; activateAOS(); this.onload=null;">

And inside your JS or next to your  something like this:

Or even with a little timeouts for the layouts/paints maybe:

I'm not sure this should be the final solution, but it should make clear, if it's really because of the async CSS.

Hi @sebastian-marinescu,
Thanks for the suggestions. Both options work—sort of.
The only problem is that the animations that have trigger points that are within the viewport on load do not fire. Only the animations outside the viewport, when triggered upon scroll down, are fired and work as they should.
In other words, when I load a web page that has animations "above the fold", the animations don't animate. Only elements that have animations farther down the web page animate and behave as normal. Something else, aside from timing, seems to be affecting how this works. Mystery!

Hi @jayhlee, ok, so do you have the CSS for your above-the-fold content in your Critical CSS, or asked differently: do all elements above-the-fold have their widths/heights somehow set (aka no CLS)?
If so, try initializing AOS as soon as possible, after your critical CSS loaded - that should take care for the above the fold, hopefully. Then in your non-critical CSS onload-callback, refresh (or "refreshHard", try both to be sure) your AOS - that should take care of everything below-the-fold.

Hi @sebastian-marinescu,
I actually didn't include CriticalCSS because AOS wasn't working with the CSS deferred. I did try adding CriticalCSS to test the solutions you recommended, but the issue remains. I created a basic page to help illustrate the issue. You'll see that the "first headers" don't animate, but the "second headers" do animate when you scroll to them.
<!DOCTYPE html>

  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>AOS Test</title>
  <link
    rel="stylesheet"
<EMAIL_ADDRESS>    media="print"
    onload="this.media='all'; activateAOS(); this.onload=null;"
  />

First header

    First header with delay

Paragraph here to create vertical space.

Second header

    Second header with delay

Paragraph here to create vertical space.


grpc based service is unable to differentiate array of custom model and single type of custom model

array of custom models and scalar type of custom model is treating the same way in the generation setValidFieldSet method.
This is leading to other errors in proto generation

Working on this

This got fixed


Remove autoselect

Initially thought of having autoselect functionality in the component itself. Now its not needed.

Close this PR may be? @rahulravindrancopart

@Shobhit1 yup. We moved to https://github.com/copartit/g2-ops-component-library.


QBatchNorm2d RuntimeError 'shape invalid'

Hi,
It's me again. I'm running similar code to that I used in issue #8 but this time I'm using a ResNet model with batch normalization on the CIFAR-10 dataset (I used your custom collate_fn to add an addition channel to the images). The code for the model is given below:
class Quat_Block(nn.Module):
    """
    A quaternion ResNet block.
    """
    def __init__(self, in_channels: int, out_channels: int, downsample=False):
        super().__init__()

        stride = 2 if downsample else 1

        self.conv1 = layers.QConv2d(in_channels, out_channels, kernel_size=3,
                                    stride=stride, padding=1, bias=False)
        self.bn1 = layers.QBatchNorm2d(out_channels)

        self.conv2 = layers.QConv2d(out_channels, out_channels, kernel_size=3,
                                    stride=1, padding=1, bias=False)
        self.bn2 = layers.QBatchNorm2d(out_channels)

        # Shortcut connection
        if downsample or in_channels != out_channels:
            self.shortcut = nn.Sequential(
                layers.QConv2d(in_channels, out_channels, kernel_size=1,
                               stride=2, bias=False),
                layers.QBatchNorm2d(out_channels)
            )
        else:
            self.shortcut = nn.Sequential()

    def forward(self, x):
        out = F.relu(self.bn1(self.conv1(x)))
        out = self.bn2(self.conv2(out))
        out += self.shortcut(x)
        return F.relu(out)

class Model(nn.Module):

    def __init__(self):
        super().__init__()
        num_segments = 3
        filters_per_segment = [4, 8, 16]
        architecture = [(num_filters, num_segments) for num_filters in
                        filters_per_segment]

        # Initial convolutional layer.
        current_filters = architecture[0][0]
        self.conv = layers.QConv2d(1, current_filters, kernel_size=3, stride=1,
                                   padding=1, bias=False)
        self.bn = layers.QBatchNorm2d(current_filters)

        # ResNet blocks
        blocks = []
        for segment_index, (filters, num_blocks) in enumerate(architecture):
            for block_index in range(num_blocks):
                downsample = segment_index > 0 and block_index == 0
                blocks.append(Quat_Block(current_filters, filters, downsample))
                current_filters = filters

        self.blocks = nn.Sequential(*blocks)

        # Final fc layer.
        self.fc = layers.QLinear(architecture[-1][0], 10)
        self.abs = layers.QuaternionToReal(10)

    def forward(self, x):
        out = F.relu(self.bn(self.conv(x)))
        out = self.blocks(out)
        out = F.avg_pool2d(out, out.size()[3])
        out = out.view(out.size(0), -1)
        out = self.fc(out)
        return self.abs(out)

I'm getting the following error:
/home/sahel/Documents/code/quaternion_lth/htorch/htorch/layers.py:577: UserWarning: torch.cholesky is deprecated in favor of torch.linalg.cholesky and will be removed in a future PyTorch release.
L = torch.cholesky(A)
should be replaced with
L = torch.linalg.cholesky(A)
and
U = torch.cholesky(A, upper=True)
should be replaced with
U = torch.linalg.cholesky(A.transpose(-2, -1).conj()).transpose(-2, -1).conj() (Triggered internally at  ../aten/src/ATen/native/BatchLinearAlgebra.cpp:1284.)
  ell = torch.cholesky(cov + self.eye, upper=True)
Traceback (most recent call last):
  File "train.py", line 47, in <module>
    H.train_model(
  File "/home/sahel/Documents/code/quaternion_lth/helper_methods.py", line 192, in train_model
    accuracy = test_model(model, testloader, device)
  File "/home/sahel/Documents/code/quaternion_lth/helper_methods.py", line 249, in test_model
    outputs = model(images)
  File "/home/sahel/Documents/code/env/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/sahel/Documents/code/quaternion_lth/models/resnet.py", line 172, in forward
    out = F.relu(self.bn(self.conv(x)))
  File "/home/sahel/Documents/code/env/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/sahel/Documents/code/quaternion_lth/htorch/htorch/layers.py", line 587, in forward
    weight = self.weight.view(4, 4, *shape)
RuntimeError: shape '[4, 4, 1, 4, 1, 1]' is invalid for input of size 16

I can't figure out if this is because of an error in my implementation of the model or because of an error in the QBatchNorm2d function.
Note: In the file layers.py, in line 545 you're missing an argument for the method init.constant_(), which is probably the first error that'll show up if you run the QBatchNorm2d function.

Thanks a lot for this! There was indeed a mistake on the BatchNorm, the channels in input should not be divided by 4. We pushed a fix for this (and the constant_ part), let me know if everything is alright 👍🏻

Yes, it's working fine now, thanks!


Expand documentation on hook scripts

What New Or Updated Would You Like To See?
The documentation on hook scripts needs to be expanded. See this issue comment for a good starter on this.
Why Is It Needed?
It's clear that people know about or know how to use, hook scripts.
Additional Context?
N/A

As per this comment, make sure to include information about --skip-hooks

@pauby I've picked this up.


Document how to create custom differs with their own tokenize/equals/etc methods

Oh, this is a duplicate of https://github.com/kpdecker/jsdiff/issues/149!


fix(cli): sigsev on null schema

Description
Previously, we did not handle schema being a nullptr
Fixes: https://github.com/foxglove/mcap/issues/847

Can we add some explanation of the supported encodings to the command help as well?

What do you mean by explanation?
Are the changes made sufficient?

Can we add some explanation of the supported encodings to the command help as well?
What do you mean by explanation?

I was talking about this line at the bottom of the file:
 	catCmd.PersistentFlags().BoolVarP(&catFormatJSON, "json", "", false, "print messages as JSON")

we could add some similar list of supported encodings so that the command's --help explains what is supported.
The other changes look pretty good to me as-is, but will leave to @wkalt / @james-rms for final approval.


Support for IdentityServer4 Tokens in IdentityServer3.AccessTokenValidation (bis)

This is the same problem as case #108. I'm opening a new issue since #108 is already closed.
I keep getting this error when validating the IS4 token on a .NET Full Framework Web Api using IdentityServer3.AccessTokenValidation.
System.InvalidOperationException: Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at IdentityServer3.AccessTokenValidation.DiscoveryDocumentIssuerSecurityTokenProvider.<RetrieveMetadata>b__1(JsonWebKey key) in c:\local\identity\server3\AccessTokenValidation\source\AccessTokenValidation\Plumbing\DiscoveryDocumentIssuerSecurityTokenProvider.cs:line 152
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ResolveIssuerSigningKey(String token, SecurityToken securityToken, SecurityKeyIdentifier keyIdentifier, TokenValidationParameters validationParameters) in c:\workspace\WilsonForDotNet45Release\src\System.IdentityModel.Tokens.Jwt\JwtSecurityTokenHandler.cs:line 1295
   at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters) in c:\workspace\WilsonForDotNet45Release\src\System.IdentityModel.Tokens.Jwt\JwtSecurityTokenHandler.cs:line 940
   at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateToken(String securityToken, TokenValidationParameters validationParameters, SecurityToken& validatedToken) in c:\workspace\WilsonForDotNet45Release\src\System.IdentityModel.Tokens.Jwt\JwtSecurityTokenHandler.cs:line 671
   at Microsoft.Owin.Security.Jwt.JwtFormat.Unprotect(String protectedText)
   at Microsoft.Owin.Security.OAuth.OAuthBearerAuthenticationHandler.<AuthenticateCoreAsync>d__0.MoveNext()
    ProcessId=17344
    DateTime=2016-11-16T11:37:30.4829567Z

My Identity Server 4 is working OK in a number of other scenarios.
I tried using https, since there is no RequireHttpsMetadata = false option in the IdentityServer3.AccessTokenValidation middleware, but that didn't help. Also tried the .SetSigningCredential(cert), didn't work either.
Isn't this a bug? The log shows an InvalidOperationException because there are no elements in the sequence. It would be better to check the sequence and generate a more informative error message.
No criticism, just trying to help.
Ronald Wijnsema

OK - I can repro the issue.
It happens when using raw RSA keys in IS4 (e.g. by using the temporary signing credential feature). You can workaround the issue by using an X509 certificate to sign your tokens instead.
Will track here
https://github.com/IdentityServer/IdentityServer3.AccessTokenValidation/issues/125
and close this.

It turns out this is more than a simple change.
Do you have this scenario? Or are you just temporarily using raw RSA keys because you call AddTemporarySigningCredential ?

Hello Dominick,
Thanks for picking up this so quickly.
I used the X509 certificate workaround you suggested, and it's working now. It was a little bit of a hassle (one more magic step, for me that is), but it's a reasonable thing to do. Also, I'm still in a development environment, as are many other developers using IS4 I suppose.
For the future I feel this is a common scenario, so it would be nice if it could be fixed in the future.
As far as I'm concerned you can close this case.
Ronald Wijnsema

done in v2.13.0


Reduced write performance with every additional index by factor ~2

My Environment

ArangoDB Version:       3.4.0
Storage Engine:            RocksDB
Deployment Mode:       Single Server
Deployment Strategy:   Manual Start in Docker
Configuration:               default
Infrastructure:               local via Docker (18.09.0-ce with ovlerlay2 and Native Overlay Diff: true)
Operating System:        From ArangoDB Docker Image
Used Package:              Docker - official Docker library

Component, Query & Data
Affected feature:
RocksDB write performance with multiple indexes.
Steps to reproduce

Create Collection via arangosh

db._create('myCollection', {
    'keyOptions': {
        'allowUserKeys': false,
        'type': 'autoincrement',
        'increment': 1,
        'offset': '100000000000000000',
    }
});

Insert some documents with query profiler.

db._profileQuery(`
FOR i IN 1..1000
  INSERT {
    name: CONCAT("test", i),
    value: 100 + FLOOR(RAND() * (150 - 100 + 1))
  } IN myCollection
`);

Add an index and do step 2

db.myCollection.ensureIndex({ type: "skiplist", fields: [ "_key" ], unique: true });

Add an index and do step 2

db.myCollection.ensureIndex({ type: "hash", fields: [ "name" ]});

Problem:
Reduced write performance with every additional index by factor ~ 1,5 - 3. Almost same behavior if collection is created with all indexes and only one insert run. I have also a drastically write performance drawbacks in my benchmark suite if I add indexes.

Execution time without index: 0.01620
Execution time with 1 index: 0.04259
Execution time with 2 index: 0.06600

Expected result:
Not that much performance drawback or is this a normal behavior?

Hi,
thanks again for sharing your results and your benchmark suite.
Closing this as solved with the availability of ArangoDB 3.7.


Safe Access to Contiguous Storage

This is a proposal for safe access to borrowed memory, formerly known as "BufferView".
This proposal is a companion to (and depends on) Non-Escapable Types and on Lifetime Dependency Annotations for Non-escapable Types.

Typo:

a more straight-forward~s~ understanding

Looks like these lines were supposed to be at the same indentation
 let span = Span<UInt8>(unsafeBytes: buffer, owner: buffer)
	let decoded = myBase64Decoder.decode(span)


Unable to connect to intuit oauth platform

I am working with an AWS Lambda that connects to the QBO API.
Here is a gist of the oauth service I wrote >>
intuit-oauth version: 3.0.2
Node.js version 12
To get the OAuth started I get a fresh refresh token from the QBO playground and store that in a json file. After that it keeps getting renewed. I don't think the refresh token is the problem since it works fine locally and I can see it in the log output.
When I run test locally it works perfectly every time, but only once after I deploy it to AWS.
After the one success and then waiting around 15 minutes to run a test on AWS Lambda I get this error:
PopsicleError: Unable to connect to "https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer"
    at Request.error (/var/task/node_modules/intuit-oauth/node_modules/popsicle/dist/request.js:41:16)
    at ClientRequest.<anonymous> (/var/task/node_modules/intuit-oauth/node_modules/popsicle/dist/index.js:131:39)
    at ClientRequest.emit (events.js:326:22)
    at ClientRequest.EventEmitter.emit (domain.js:483:12)
    at TLSSocket.socketErrorListener (_http_client.js:427:9)
    at TLSSocket.emit (events.js:314:20)
    at TLSSocket.EventEmitter.emit (domain.js:483:12)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  cause: Error: connect ETIMEDOUT <IP_ADDRESS>:443
      at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16) {
    errno: 'ETIMEDOUT',
    code: 'ETIMEDOUT',
    syscall: 'connect',
    address: '<IP_ADDRESS>',
    port: 443
  },
  code: 'EUNAVAILABLE',
  popsicle: Request {
    Url: Url {
      protocol: 'https:',
      slashes: true,
      auth: null,
      host: 'oauth.platform.intuit.com',
      port: null,
      hostname: 'oauth.platform.intuit.com',
      hash: null,
      search: null,
      query: [Object: null prototype] {},
      pathname: '/oauth2/v1/tokens/bearer',
      path: '/oauth2/v1/tokens/bearer',
      href: 'https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer'
    },
    rawHeaders: [
      'Authorization',
      'Basic QUJJd1JpUHdLVlFJcmhiUzJ6bjNvOXNWS2lHTHFuRk0yT2d4bHhXRlpHRWJ6Z1kyNlM6N2RsdUVIN1hKNE5Rb1JHbG1qWTFmZ0VvTGt4ZjdreHM1WjNVdmcxVA==',
      'Content-Type',
      'application/x-www-form-urlencoded',
      'Accept',
      'application/json',
      'User-Agent',
      'Intuit-OAuthClient-JS_3.0.2_Linux_4.14.209-112.339.amzn2.x86_64_linux',
      'Content-Length',
      '89',
      'Accept-Encoding',
      'gzip,deflate'
    ],
    middleware: [ [Function], [Function] ],
    opened: true,
    aborted: false,
    uploaded: 1,
    downloaded: 0,
    timeout: 0,
    method: 'POST',
    body: 'grant_type=refresh_token&refresh_token=AB11620585757X1ISX92Nj7a5o2kHSwY2nO7cKmcJYvcGND8Qu',
    events: [Object: null prototype] { abort: [Array] },
    transport: { use: [Array], abort: [Function: abort], open: [Function: open] },
    _promise: Promise { <rejected> [Circular] },
    _raw: ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      _last: true,
      chunkedEncoding: false,
      shouldKeepAlive: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: true,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      _contentLength: null,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      socket: [TLSSocket],
      connection: [TLSSocket],
      _header: 'POST /oauth2/v1/tokens/bearer HTTP/1.1\r\n' +
        'Authorization: Basic QUJJd1JpUHdLVlFJcmhiUzJ6bjNvOXNWS2lHTHFuRk0yT2d4bHhXRlpHRWJ6Z1kyNlM6N2RsdUVIN1hKNE5Rb1JHbG1qWTFmZ0VvTGt4ZjdreHM1WjNVdmcxVA==\r\n' +
        'Content-Type: application/x-www-form-urlencoded\r\n' +
        'Accept: application/json\r\n' +
        'User-Agent: Intuit-OAuthClient-JS_3.0.2_Linux_4.14.209-112.339.amzn2.x86_64_linux\r\n' +
        'Content-Length: 89\r\n' +
        'Accept-Encoding: gzip,deflate\r\n' +
        'Host: oauth.platform.intuit.com\r\n' +
        'Connection: close\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: noopPendingOutput],
      agent: [Agent],
      socketPath: undefined,
      method: 'POST',
      insecureHTTPParser: undefined,
      path: '/oauth2/v1/tokens/bearer',
      _ended: false,
      res: null,
      aborted: true,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'oauth.platform.intuit.com',
      protocol: 'https:',
      [Symbol(kCapture)]: false,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype]
    },
    uploadLength: 89,
    uploadedBytes: 89
  },
  error: 'Unable to connect to "https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer"',
  authResponse: AuthResponse {
    token: Token {
      realmId: '',
      token_type: '',
      access_token: '',
      refresh_token: '',
      expires_in: 0,
      x_refresh_token_expires_in: 0,
      id_token: '',
      latency: 60000,
      createdAt:<PHONE_NUMBER>498
    },
    response: '',
    body: '',
    json: null,
    intuit_tid: ''
  },
  intuit_tid: '',
  originalMessage: 'Unable to connect to "https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer"',
  error_description: ''
}

I solved this so closing it.
The problem was that I was saving my refresh token in a JSON file and the Lambda was resetting after 15 minutes and my updated token was gone and the token was now back to the original one in the function zip file. Refactored to save to a DB table and everything works great.

I solved this so closing it.
The problem was that I was saving my refresh token in a JSON file and the Lambda was resetting after 15 minutes and my updated token was gone and the token was now back to the original one in the function zip file. Refactored to save to a DB table and everything works great.


Static Analysis corrections on c++ model classes

Minor refactoring based on static analysis and manual review of the code of models:

Eliminate unnecessary value parameter to constant reference to avoid unnecessary copies.
Eliminate unused include.

Post discussion with @fmassa, we might not want these changes to keep the C++ API easy to understand. Let me know if there is any thing we want to cherrypick from here else feel free to close the PR.

so this might not be tested on CI.

Thanks for letting me know. I re-enabled locally the C++ tests on test_cpp_models.py and they passed. The only ones failing on macOS are the MNASNet which I did not update in this PR. So we should be good.


Introduce component owners

fixes #3581
This is a disruptive change, so when we roll it out we should monitor it carefully and roll it back/fix it quickly if anything misbehaves.
@dyladan to verify that, is component-owners compatible with github teams? In your examples I only saw individual usernames

FYI, https://github.com/dyladan/component-owners/pull/19 needs to be fixed before we can apply this

FYI, https://github.com/dyladan/component-owners/pull/19 is merged now (thanks @dyladan!) I will rework this PR and make it available asap


feat: add support for GetProjectBatch and GetVersionBatch

The API for both endpoint is paginated, so this implementation return an iterator that allow the library user to controle how he wants to consume the response.

Hi @zaibon ! thanks so much for the PR.
did u try to fix the linting errors? if not, it's not a problem don't worry. I'll check those locally once the PR is merged

@edoardottt I addressed the linting errors. CI is happy now 😄

Thank u so much @zaibon .
I'm gonna review the PR. Before that, which tests did u use? So I can try them (plus others if necessary) locally
Thanks again :)

At the moment, my implantation does not support requesting a specific page. It only exposes an easy API to walk over all the pages in order.


Allow building on FreeBSD

Description
With this set of change, we are able to successfuly run:
./gradlew publishToMavenLocal -Dbuild.snapshot=false

This step is used in the OpenSearch repository context when building
plugins in the current state of the CI.
While here, reorder OS conditions alphabetically.
Before building, the openjdk14 package was installed and the environment
was adjusted to use it:
sudo pkg install openjdk14
export JAVA_HOME=/usr/local/openjdk14/
export PATH=$JAVA_HOME/bin:$PATH

Issues Resolved
n/a
Check List

[x] New functionality includes testing. (n/a)

[x] All tests pass

[x] New functionality has been documented. (n/a)

[x] New functionality has javadoc added (n/a)

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

I was not sure about which branch to target, so I committed on top of main.  Please tell me if I need to rebase on top of 1.0 / 1.x.

start gradle check

Looks like a real problem:
Could not determine the dependencies of task ':distribution:archives:buildFreebsdTar'.
> Could not resolve all task dependencies for configuration ':distribution:archives:jdk_bundled_freebsd_x64'.
   > Could not find adoptopenjdk_15:freebsd:15.0.1.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/adoptopenjdk_15/freebsd/15.0.1/freebsd-15.0.1.pom
       - https://api.adoptopenjdk.net/v3/binary/version/jdk-15.0.1+9/freebsd/x64/jdk/hotspot/normal/adoptopenjdk
     Required by:
         project :distribution:archives

@smortex Are you stuck? I can take a look.

start gradle check

start gradle check

I am open to having this backported to 1.x so we can use it in 1.2.

Should I open a PR cherry-picking these changes and targeting the 1.x branch or do I have to do nothing (e.g. the label will trigger this automagically)?

I am open to having this backported to 1.x so we can use it in 1.2.

Should I open a PR cherry-picking these changes and targeting the 1.x branch or do I have to do nothing (e.g. the label will trigger this automagically)?

You have to open the PR, it's not automatic. If you know of a bot that can do that, we'd love that.


Changes to Deposit

Hi Christian,
while playing with the Deposit class I stumbled across several things, which I find suspicious. I wrote a test class to demonstrate, what kind of behaviour I would expect. It contains three tests - all of which fail with the current implementation.
I amended the Deposit class to fit my expectation and pass the tests. (I also changed some things in the documentation).
Let me know, what you think of it and if I am maybe mistaken!
BR
Boris
The three issues are:

In the current implementation a deposit set up with the current
market rate (as calculated by getRate) does not have getValue=0. This is
because the rate calculation was slightly flawed (line 92).

The value of a deposit should be the present value of the payout
cashflow (which I would expect to be at start date) and the payback
cashflow at maturity. This was not the case.

The getValue function did not take into account the argument
evaluationTime. The implementation provided in this change, asserts that
the value after maturity is zero and neglects the payout cashflow once
it is in the past.

These three things are checked by the DepositTest class.

I see the change. I fine with it, but there should be a guideline that Deposit is only used or discount curve (OIS or Funding Curve) and never used to specify the fixing of a forward curve (e.g. 3M LIBOR). This should be done by a FRA using time 0 as fixing or by special "Fixing" product.
Previously deposit was used in spreadsheet to set the fixing of a forward curve - but in my opinion this in unsafe and not consistent with a true multi-curve setup. I will check back with Niklas since the change originated from his fork.

A small modification to this pull request, as I realized that the check for matured deposits was not consistent.

Thank you.


HAWQ-1028. Add '-d' option for hawq state

This option is not used at all, just add it to be compatible with Ambari since Ambari is using this option.
After Ambari removed it, we will remove it again.

+1

+1


depending on definition of writable stream

there is a check for a writable stream
isStream.writable = function (stream) {
    return  stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object';
};

if you do this:
     const z = fs.createWriteStream(dest);
     z.write('summa');
     z.end();
     return z;

calling end() will set writable to false, but it's still a writable stream, it's just no longer writable.
do you think this is a bug or is this the desired behavior? I think it would be better to remove that check to see if writable !==false...

then again, if end is called, you may not be able to listen to events because all the events may have already fired, kind of a weird one.

This was added due to https://github.com/sindresorhus/is-stream/pull/1.

I have opened #20 which fixes this.


relink "request features"

Link to "request features" redirects to retirement of UserVoice.  See link to "give feedback" (under "get resources") at https://developer.microsoft.com/en-us/office-scripts

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

ID: f67f2ac9-6bd4-a5fc-20b0-e0b055dbe61c
Version Independent ID: a0f30a07-4ebf-ac33-6797-43ae7306bede
Content: Office Scripts documentation
Content Source: docs/overview/index.md
Product: excel
Technology: scripts
GitHub Login: @o365devx
Microsoft Alias: o365devx

Thanks for reporting this @rootsmusic. I'll find out the correct place to request features and update the links.

Hi @rootsmusic,
Thanks again for raising this issue. The current guidance for feature requests is to raise them in Excel. Use the Send feedback button in the Code Editor's overflow menu (...).


Cover complete Xenon API surface with CLI

Some of the FileSystem methods are not yet accessible from the CLI. These are:

appendFile

could be implemented as --append in copy/upload/download sub command

createFile
createSymbolicLink
exists

alternative is to ask for list of parent

readSymbolicLink

could be part of list command by showing link target or dereferencing

setPosixFilePermissions
writeToFile with size

without size can be done using stdin (-) as source in copy/upload/download sub command

Do we want any of these implemented? And if so in which order?

These commands are much less used as the existing commands. So make them low priority.


Don't panic if we have an empty logStorage spec

Description

For PR author

[ ] Tests for change.
[ ] If changing pkg/apis/, run make gen-files
[ ] If changing versions, run make gen-versions

For PR reviewers
A note for code reviewers - all pull requests must have the following:

[ ] Milestone set according to targeted release.
[ ] Appropriate labels:

kind/bug if this is a bugfix.
kind/enhancement if this is a a new feature.
enterprise if this PR applies to Calico Enterprise only.

we generally do not recommend 1-node clusters

@rene-dekker what is our recommendation? We can potentially default to the bare-minimum that we'd recommend.

We recommend 3 nodes, 1 replica. Defaulting to this comes with a big downside, which is that they need at least 3 PVs and 3 K8s Nodes provisioned to the cluster. For this reason I was an advocate of making Spec.Node & Spec.Node.Count a mandatory part of the CRD.
That being said I think it is fine to merge the current solution, it does unblock the rare event that a user runs into this.

I think this is safe to merge as is, then. We can add validation if we find it is a problem, but the main issue was having codepaths that could result in a panic at all.


Demo: Export settings function

Hi,
Recently I had to setup a new dev machine, including re-installing things like eslint.
Couldn't remember how to start using it so I went to the demo page and found myself searching for some "export these settings" functionality.
I don't know how people use the demo page but if trivial to make that functionality might be a cool addition.
Just my 2 cents, feel free to close this "issue" at will! :smiley:

I'm not sure how hard it would be. @ilyavolodin any thoughts?

It shouldn't be too hard to add. However, currently rule configuration for the demo only supports on/off mode, and a lot of our rules are configurable. I was planning to add ability to configure rules and at the same time add ability to export selected configuration.

I will do this.

Presumably we can either put the output in a modal popup or just use something like https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL (which seems to have decent browser support per http://caniuse.com/#feat=bloburls) to allow them to download a file created dynamically in the browser. Should be a fun project.


Error at $start: calc(icon - label); in _extended-fab-theme.scss

I've tried to use
@use '@angular/material' as mat;
@include mat.checkbox-density(-1);

in my angular project's scss file, but got the following error:
./src/styles.scss - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Expected "(" or ".".
    ╷
157 │   $start: calc(icon - label);
    │                    ^
    ╵
<EMAIL_ADDRESS>157:20                 @use
  @material\fab\_fab.scss 43:1                                               @use
<EMAIL_ADDRESS>2:1                  @use
<EMAIL_ADDRESS>4:1  @forward
  @angular\_index.scss 18:1                                                  @use
  src\styles.scss 1:1                                                        root stylesheet

Could you please help me what am I doing wrong? Thank you!

Update:
It turns out that I had this line in my package.json:
"@material/fab": "^11.0.0",
After removing this, the code compiled successfully.


Edit Node button is available if delete permission is available

User Story
As an Automate User I should edit the Nodes tab if the view permission is available for me.
Acceptance Criteria

Admin should be able to view the Nodes tab
Any user with edit permission for Nodes should be able to edit the Nodes tab

Implementation Details
UI Design
Definition of Done

All things specified in User Story Acceptance Criteria should be fulfilled.
UI should exactly match UX design.
Cypress Coverage for new Feature.
All Exceptions are Handled Properly
Ensure logs have no unnecessary data.
Test coverage for new feature is done to at-least 70%.
Docs changes PR is Raised.
Swagger Documentation updated.
Smoke Test done.
Ensure Build and Integration Pipelines are Green.
PR has 2 approvers.
All Code Review Comments are Resolved.
Screen shot of the feature developed is provided in the issue.
Ensure compatibility with all supporting browser.
Demo the feature to UX.
Link to the UX wireframe/Requirement Document.

Completed in https://github.com/chef/automate/pull/6275


Add wsk cli support for importing/exporting API configuration in YAML format

Update the following command:

wsk api get --format yaml  Add a new option --format that takes either json or yaml
wsk api create --config-file api.yaml  The import logic looks at the file extenstion, if .yaml or .yml, the file is treated as YAML; otherwise the file is treated as JSON

Fixes #2170

pg1/1481

It adds a new dependency for go github.com/ghodss/yaml
Need to check if it's Apache friendly

@dubee - Updates based on comments.  Travis passed.  pg4/223

pg3/588

@csantanapr - ready for merge.  Thanks!


How to parse a weird JSON structure?

Well, I have a JSON that have a weird structure, I cannot parse this correctly:
[
  {
    "object": {
    }
  },
  {
    "object": {
    }
  }
]

This library could use the annotation @JsonObject to do it, like @JsonObject(find="object"). What do you think about? Anyone can help me?

Here is my workaround:
JSONArray jsonArray = new JSONArray(json);
int size = jsonArray.length();
ArrayList<Object> jsonObjects = new ArrayList<>(size);
for(int i = 0; i < size; i++) {
  jsonObjects.add(jsonArray.getJSONObject(i).get("object"));
}

You should be able to parse that as an array of objects that have an "object" field. What was the issue you had exactly?


WIP: Fix Django 5.0 compatibility issues

Fixes #9964, blocked by https://github.com/wagtail/django-modelcluster/issues/169.

Please check the following:

[ ] Do the tests still pass?[^1]
[ ] Does the code comply with the style guide?

[ ] Run make lint from the Wagtail root.

[ ] For Python changes: Have you added tests to cover the new/fixed behaviour?
[ ] For front-end changes: Did you test on all of Wagtail’s supported environments?[^2]

[ ] Please list the exact browser and operating system versions you tested:
[ ] Please list which assistive technologies [^3] you tested:

[ ] For new features: Has the documentation been updated accordingly?

Please describe additional details for testing this change.
[^1]: Development Testing
[^2]: Browser and device support
[^3]: Accessibility Target

@laymonage There may not be another release of django-modelcluster until some time closer to Django 5, so to unblock this I'd suggest adding an install_extras line to the Github Actions config to install it from git, as we've previously done here for example: https://github.com/wagtail/wagtail/commit/177bc53aa0407002a05ff588e0a348678700420f


Module format "umd" does not support top-level await. Use the "es" or "system" output formats rather.

Doesn't support UMD output?

Vite doesn't support UMD.

I get a similar error:
[web-extension:manifest] Module format "iife" does not support top-level await. Use the "es" or "system" output formats rather.

Does it also not support iife? Is there more information to help me debug why Vite doesn't support UMD or IIFE? I guess it only supports em and cjs.

I found can userollup-plugin-tla to resolve umd format top-level-await support.

I found can userollup-plugin-tla to resolve umd format top-level-await support.

found this by accident, solved my problem. u sexy


goals

create an interactive game of nim
advise a player whether they have a winning strategy from the current piles
advise WHAT a winning move would be, or that none exists

misconception


Fix line unit discount amount and reason

I want to merge this change because it fixes OrderLine's unit_discount and unit_discount_reason values. I want to make sure all the discounts applied are visible in the fields.
This PR also deprecates the unit_discount_type and unit_discount_value fields. Since multiple discounts can affect a single line, the fields have no sense.
Internal issue: https://linear.app/saleor/issue/SHOPX-1531

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[x] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations

Docs

[ ] Link to documentation:

Pull Request Checklist

[ ] Privileged queries and mutations are either absent or guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migrations are either absent or optimized for zero downtime
[ ] The changes are covered by test cases
[ ] All new fields/inputs/mutations have proper labels added (ADDED_IN_X, PREVIEW_FEATURE, etc.)
[ ] All migrations have proper dependencies
[ ] All indexes are added concurrently in migrations
[ ] All RunSql and RunPython migrations have revert option defined

Converted to draft as it requires business decision

We decided to not change the unitDiscount filed behaviour to not break current implementations. This will be fixed in next Saleor version by exposing OrderLineDiscount db objects  through orderLine.discounts API field.


How to disable the debuff magic of BOSS frame？

Not entirely sure how it works, but i think it always shows if it is a boss debuff (cast by the boss) or if it is in the boss aura filter (which you can find in the settings)


CAMEL-8652 Update MongoDB Java Driver to 2.13.1 and Embed-Mongo to 1.47.2

Hi everyone,
This PR is related to:
https://issues.apache.org/jira/browse/CAMEL-8652
Thanks.
Bye,
Andrea

Already merged


Allow passing custom dns alt names

Add parameter which provided interface for adding custom DNS Alternative
Names to infrastructure certificates

Came out of working with a customer deployment.

I think for now we just merge this. 👍
But, it might be interesting to also state and ponder a possible bigger design question that might be relevant now or in the future...

I posit that there are two sets of parameters relevant to users of PECDM.

Parameters pertinent to creating the PE cluster; things like provider, cloud_region, etc.
Parameters pertinent to configuring the PE cluster; basically, everything that a user supplies PECDM, but which is effectively just a pass-through to PEAdm.

Right now, for pass-through parameters, we fully duplicate a set of PEAdm parameters in PECDM. However, we don't fully duplicate every possible PEAdm parameter. Rather, we've kind of hand-picked which ones seem most relevant, and for less common use cases provided the extra_peadm_params parameter hash, which a use can use to additionally supply any legal PEAdm parameter.
The one we're adding here is a bit different, in that we're combining automatically generated information with additional user-supplied information, and giving the combined data to PEAdm.
What is the rubric we use to decide which PEAdm parameters are "above the line", and get duplicated in PECDM, and which parameters are "below the line", and can only be passed through via extra_peadm_params? Is there a definable rubric? Might be useful to jot down, if anybody has such a thing in their head.

@reidmv Excellent question. Now that I reflect, I'd probably set a more strict criteria. An individual should be able to launch a new PE cluster for demonstrations, testing, and development without knowing PEADM or Terraform so parameters should reflect that use case, one can get started by looking at the PECDM documentation alone. Once you're ready to go to production it should be an requirement to understand PEADM so anything beyond getting started would be a extra_peadm_params provided parameter.
This in mind, it would be more correct to implement a solution which extracts dns_alt_names from extra_peadm_params. I did have a second thought about dns_alt_names because it isn't required since we compute it but I decided to include it as a parameter because that is less cumbersome than extracting it from extra_peadm_params.
I want to get rid of the stack parameter, which has been around for a while and replace it by adding tag/label support to each Terraform module and passing the desired metadata in that way through extra_terraform_vars


WIP: Use Python >=3.9 zoneinfo

Codecov Report

Merging #78 (2a19618) into master (7649657) will decrease coverage by 0.11%.
The diff coverage is 85.29%.

:exclamation: Current head 2a19618 differs from pull request most recent head 72fe208. Consider uploading reports for the commit 72fe208 to get more accurate results

@@            Coverage Diff             @@
##           master      #78      +/-   ##
==========================================
- Coverage   95.11%   94.99%   -0.12%
==========================================
  Files         104      104
  Lines        3788     3798      +10
==========================================
+ Hits         3603     3608       +5
- Misses        185      190       +5

Impacted Files
Coverage Δ

...ango_utils_tests/tests/admin_utils/test_filters.py
92.06% <68.75%> (-7.94%)
:arrow_down:

bx_django_utils/user_timezone/checks.py
100.00% <100.00%> (ø)

bx_django_utils/user_timezone/middleware.py
100.00% <100.00%> (ø)

bx_django_utils_tests/tests/test_stacktrace.py
100.00% <100.00%> (ø)

...ls_tests/tests/test_user_timezone/test_humanize.py
100.00% <100.00%> (ø)

..._tests/tests/test_user_timezone/test_middleware.py
100.00% <100.00%> (ø)

...ests/tests/test_user_timezone/test_templatetags.py
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Add Unlock wallet button everywhere, where it is necessary

Compare this two screens - on top one isn`t possible to step out to unlocking settings. Just minor change that brings a lot of comfort.

#1361 will add buttons to import or unlock wallets in SwapView
Unlock wallet

Import wallet


Request for Documentation: Poll results from 10/17/2019

Mattermost user jelena.gilliam from https://community-release.mattermost.com has requested the following be documented:

See the original post here.
This issue was generated from Mattermost using the Doc Up plugin.

test

test

test


Broken Formatter.html link in javadoc

Currently in 5 places there is a link to non-existent page http://download.oracle.com/javase/1,5.0/docs/api/java/util/Formatter.html#syntax
https://github.com/rest-assured/rest-assured/search?q=Formatter.html&type=Code
We could replace it with new link: https://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#syntax

https://github.com/rest-assured/rest-assured/pull/1302 fix


报错：KeyError: 'BboxOverlaps2D is not in the mmengine::task util registry. Please check whether the value of BboxOverlaps2D is correct or it was registered as expected.

当我想使用mmdet在kitti数据集上训练一个poolformer作为backbone的retinanet_r50_fpn时报错：
KeyError: 'BboxOverlaps2D is not in the mmengine::task util registry. Please check whether the value of BboxOverlaps2D is correct or it was registered as expected.

请问解决了吗


Flexible server also supports Geo-redundant backup storage although it's under preview.

For "Cross region DR", flexible server also supports Geo-redundant backup storage although it's under preview.

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

ID: 3e4deba6-4073-0174-e4cf-ee02458fb764
Version Independent ID: 13b2c9e1-283b-41b7-99f2-9008e53ee7f3
Content: Compare Azure Database for PostgreSQL - Single Server and Flexible Server
Content Source: articles/postgresql/flexible-server/concepts-compare-single-server-flexible-server.md
Service: postgresql
Sub-service: flexible-server
GitHub Login: @sr-msft
Microsoft Alias: srranga

Thank you @LifeRyuto for catching that. We will update it soon.

Documentation is updated. Closing this now.

#please-close


Changed App.jsx to stateless functional component

How's this?

Closing, as already solved https://github.com/Kornil/simple-react-app/pull/13/
Thanks again for your contributions!