Comments: Signup with AWS Cognito

Link to chapter - http://serverless-stack.com/chapters/signup-with-aws-cognito.html

Is this code functional? As I was able to register a new user. I found that The email attribute should be passed against the key email in the userAttributes parameter of SignUp API.  Finally, below is my updated signup() method which works just fine:
signup(email, password) {         const userPool = new CognitoUserPool({             UserPoolId: config.cognito.USER_POOL_ID,             ClientId: config.cognito.APP_CLIENT_ID         });         const attributeList = [];         attributeList.push(new CognitoUserAttribute({             Name: 'email',             Value: email         }));         return new Promise((resolve, reject) =>             userPool.signUp(email, password, attributeList, null, (err, result) => {                 if (err) {                     reject(err);                     return;                 }                 resolve(result.user);             })         );     }

@DushyantShukla Yeah it is functional. The tutorial has been updated so that the email can be passed in as the username. You can read more about the update here - https://github.com/AnomalyInnovations/serverless-stack-com/issues/123.
If you need to reference the old version of the tutorial, there is a hosted version here - https://59a70f2ccf321c2ccb15113f--serverless-stack.netlify.com.

Oops! Didn't know that! I appreciate the response. Thanks!

I noticed that the verification code comes from<EMAIL_ADDRESS>Where is this address set? Not seeing it in the code so I'm guessing in AWS somewhere?

When a user signs up I get this screen

But I get an email link instead:

which takes me to this page

I rechecked my pool with the advice in https://serverless-stack.com/chapters/create-a-cognito-user-pool.html but it seems the same to me.

Hmm can you check this setting?

It should have defaulted to Code instead of Link.

In   handleSubmit = async event =>
I get the following Warning when calling:
this.setState({
newUser: newUser
});
Warning: Can only update a mounted or mounting component. This usually means you called setState, replaceState, or forceUpdate on an unmounted component. This is a no-op.
Please check the code for the Signup component.
Anyone else has this problem? Any ideas to resolve this?

@elnbado This happens usually when you make the setState call after you move away from the page. Is your app redirecting after you hit the Signup button?

For some reason, my signup() method did not work until I added an attribute list to the userPool.signUp() call. Is this out of date?
this is what my working code looks like:
signup(email, password) {         const userPool = new CognitoUserPool({             UserPoolId: config.cognito.USER_POOL_ID,             ClientId: config.cognito.APP_CLIENT_ID         });         const attributeList = [];         attributeList.push(new CognitoUserAttribute({             Name: 'email',             Value: email         }));         return new Promise((resolve, reject) =>             userPool.signUp(email, password, attributeList, null, (err, result) => {                 if (err) {                     reject(err);                     return;                 }                 resolve(result.user);             })         );     }

@millergd The tutorial had been updated a while back to set the email as the username in the User Pool. This makes it so that you don't have to set the attribute. You can read more about it here - https://github.com/AnomalyInnovations/serverless-stack-com/issues/123.

@jayair yeah it looks like I was using an older version of the tutorial and setting up the userpool different.
However, I don't really understand the changes. Can you clarify what was the norm before and after the update?
Previously, we were **manually setting using the email as a user’s username**. There is one major issue with this; the username cannot be changed in your Cognito User Pool. AWS fixed this by adding the option of **using the email as the username** while logging in and signing up.

@millergd Yeah the issue with setting the email as the username manually (as we were doing before) was that the username in Cognito cannot be changed. So you would need to work around this in case your users need to change their email.
But with the new email as username setting that's been introduced recently, the User Pool sets a unique string as the username internally. This allows you to change a user's email (and username) easily.
Hopefully that makes sense. It is a bit confusing though.

I'm running into a weird compilation error:
./src/containers/node_modules/amazon-cognito-identity-js/es/AuthenticationHelper.js
  Line 20:  Import in body of module; reorder to top  import/first
  Line 22:  Import in body of module; reorder to top  import/first

Search for the keywords to learn more about each error.

Has anyone else encountered that while using amazon-cognito-identity-js in a CRA project?

Is there a link/reference to how to register the user with an Identity pool after sign up?

@PraneshBalekai What do you mean by registering a user with an Identity Pool?

I want to use Federated Identities in Cognito. I already created an identity pool and added my cognito user pool as an authentication provider. However, it does not automatically register as a new identity when I call confirmRegistration or authenticateUser. I tried to follow the method as given in use case 4 of   https://github.com/aws/amazon-cognito-identity-js and tried to refresh but it doesn't work (error: missing region in config, although it was all configured). Federated Identities was not covered in this tutorial but I was wondering if there is a guide or reference to managing federated identities in a reactJS app

@PraneshBalekai We do use Federated Identities in this tutorial. We call confirmRegistration right here - https://github.com/AnomalyInnovations/serverless-stack-demo-client/blob/master/src/containers/Signup.js#L106.
It sounds like you are getting an error because it wasn't configured properly.

Forgot Password use-case in Login/SignUp (or for 'extra credit') would be awesome!

Hi @jayair - I actually went through the full tutorial and got to end but only tested using my own login created through the CLI. Upon further testing, I realized that users get an error when trying to Sign Up. I don't see anything wrong with my Signup.js file but when I enter an email/password and click the "Signup" button, the "Signing up..." loader keeps spinning and I get a "[object Object] error from the browser. I also get a "POST https://cognito-idp.us-east-1.amazonaws.com/ 400 ()" error in the Console.
Have you ever encountered this issue or do you know what might be wrong? Thanks so much for the help!

Is there a specific reason why throughout the guide we create new CognitoUserPool on each function invocation in this and other similar functions:
signup(email, password) {
  const userPool = new CognitoUserPool({
    UserPoolId: config.cognito.USER_POOL_ID,
    ClientId: config.cognito.APP_CLIENT_ID
  });
 ...
}

IMHO it's better to create a CognitoUserPool once and use the exported const. For example I did it in the awsLib.js:
const userPool = new CognitoUserPool({
    UserPoolId: config.cognito.USER_POOL_ID,
    ClientId:   config.cognito.APP_CLIENT_ID,
});
export default userPool;

@grundmanise In this case we create one on every click. But yeah you could make it a part of some common code.

Hi Jayair, I'm getting a couple of errors I can't figure out. When my app page loads I get a "No userPool" alert. I can login as my test user just fine but then if I switch to a new page such as http://localhost:3000/notes/new (I just finished building this per Add the Create Note Page) then I get the same message. Also it appears that I am logged out. Any idea what I might have missed? Thanks!

When I try to sign up and recieve my confirmation code and then enter it in I get a message saying that "Auth.confirmSIgnup is not a function" . Here i screenshot and here is my code:
`handleConfirmationSubmit = async event => {
event.preventDefault();
this.setState({ isLoading: true });
try{
await Auth.confirmSignup(this.state.email, this.state.confirmationCode);
await Auth.signIn(this.state.email, this.state.password);
  this.props.userHasAuthenticated(true);
  this.props.history.push('/');

} catch (e) {
  alert(e.message);
  this.setState({isLoading: false});
}

}`

@EllaVader There is a tiny typo. It is Auth.confirmSignUp.

@viccooper142 Can you check this specific line in your src/index.js https://github.com/AnomalyInnovations/serverless-stack-demo-client/blob/configure-aws-amplify/src/index.js#L12?
It looks like Amplify might be trying to create an anonymous user every time you load your page.

@viccooper142 I think it's the order of the calls. Can you try moving the Amplify block below the imports and see if that fixes the issue?

@jayair  That worked! It was just the order. I copied your version of src/index.js and the error went away. Thanks!

@jayair thank you -- I missed that typo

Although I copied and pasted the exact code from the Signup.js in the repo, for some reason the redirect isn't working right.

I sign up
Enter the confirmation code
I get an alert saying "undefined"
I'm logged in, but I'm not redirected from the confirmation page.

@Tayl0rFay Couple of things. Can you double check that the signup actually worked by trying to login with the credentials (make sure you are logged out first)? And can you post your package.json here as well?

@jayair Yep, I'm able to sign in
{
  "name": "notes-app-client",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "amazon-cognito-identity-js": "^2.0.3",
    "aws-amplify": "^0.3.0",
    "react": "^16.3.2",
    "react-bootstrap": "^0.32.1",
    "react-dom": "^16.3.2",
    "react-router-dom": "^4.2.2",
    "react-scripts": "1.1.4"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  }
}

@Tayl0rFay One issue I see is the amazon-cognito-identity-js include. Compare it to the one we have in the tutorial - https://github.com/AnomalyInnovations/serverless-stack-demo-client/blob/master/package.json.
This might from an older version of the tutorial. I'm not sure if it's causing the problem but you can try removing it using npm uninstall.

This issue was moved to https://discourse.serverless-stack.com/t/comments-signup-with-aws-cognito/130


Use natchez-testkit instead of our own InMemory implementation

I had to update Scala 3, Scala Native, and Natchez itself in order to remove the duplicated InMemory implementation and use the one from upstream. (At some point this repo should probably have Scala Steward enabled.)

https://github.com/typelevel/steward/pull/55


Content-Length header must not be set

The content length hader must not be set since CURL sets the length automatically
So I suggest to remove the following line:
$headers[] = 'Content-Length: ' . strlen($data);
From function generateHeaders in File NTLM.php

Pushed up to master. Out of interest, was the calculated value incorrect, or were you getting two headers in the request?

P.S. Happy to accept pull requests if you'd like to fork the lib and make changes faster than I can get back to you.


Improve @Buildable by allowing updates of existing values.

The Builder accepts a value as source and initializes itself from it.
The API has two extra static methods: update[] och updater().

Thanks for the suggestion :) This was discussed in #19 before and I think with()-methods would be a well known pattern to solve this. What do you think?

Ah, I missed that -- "wither" is a weird name and there's actually an old English word meaning "against".
Anyway, with() methods would work just as well. Would that be a separate annotation? Will Buildable get deprecated?
I was just about to make another suggestion, adding even regular "setX" setters that allow a nicer xtend API similar to when using =>

Wither would be a new annotation, orthogonal to Data and Buildable. Project lombok also calls it wither, but if you have a better name that would be welcome. CopySetter sounds weird too =P

Ok, then you will accept suggestions for @Buildable, right?
@FluentlyUpdatable? but that applies also to @Buildable... Maybe unify Buildable and Wither and specify which kind of method names through a parameter? If anyone would want both APIs on a class, I think they should take a deep breath, go onut for a short walk and reconsider :-)

Well I would accept only one of the two. So either your proposal or the
wither proposal. Otherwise it will get too confusing for users.
If we go with yours, I would like to call the methods "copy" and not
"update". And they should be instance methods, not static. Also, some tests
are necessary :)
Am 18.03.2015 14:26 schrieb "Vlad Dumitrescu"<EMAIL_ADDRESS>
Ok, then you will accept suggestions for @Buildable, right?
@FluentlyUpdatable? but that applies also to @Buildable... Maybe unify
Buildable and Wither and specify which kind of method names through a
parameter? If anyone would want both APIs on a class, I think they should
take a deep breath, go onut for a short walk and reconsider :-)
—
Reply to this email directly or view it on GitHub
https://github.com/oehme/xtend-contrib/pull/28#issuecomment-82969442.

Ok, I think I will go with Wither, then. The name still bugs me though, @Buildable and @Cached describe properties of the annotated class, while @Wither is describing the builder. Obviously, @Withable is incomprehensible. What about just @Fluent?
I didn't add tests because Buildable disin't had any to start with and I thought I'd hear from you first.

Actually I was leaning more towards your approach as it is only slightly
longer for one change and much shorter for several changes. And it's
consistent with the build and builder methods. I was just thinking out
loud, not critizising. :)
I'll add some tests for Buildable itself, just write a few for the logic
you are adding.
Am 18.03.2015 17:38 schrieb "Vlad Dumitrescu"<EMAIL_ADDRESS>
Ok, I think I will go with Wither, then. The name still bugs me though,
@Buildable and @Cached https://github.com/Cached describe properties of
the annotated class, while @Wither https://github.com/Wither is
describing the builder. Obviously, @Withable is incomprehensible. What
about just @Fluent https://github.com/Fluent?
I didn't add tests because Buildable disin't had any to start with and I
thought I'd hear from you first.
—
Reply to this email directly or view it on GitHub
https://github.com/oehme/xtend-contrib/pull/28#issuecomment-83050412.

Ok, I added properly named setters so that the nice xtend API works when called from other classes (see Person example).
I started adding tests too, but I can't get to the Builder class - getCompiledClass("Foo.Builder") returns null. I'm digging, but if you have a quick suggestion that would help a lot.

I see that the compiledClesses only contain the original class, not the internal one. I suppose the builder is only accessible after the Java compilation.
If the Builder is not accessible, the only tests we can write are similar to the Person example code where we check the results. Or am I missing something?

But of course that the annotation can't be used from the same project... and the code compiled on the fly can't be executed....
Should the tests get their own project, or is "manual test by inspecting the generated code" good enough? :smile:  I'm afraid I'm not acquainted with gradle.

I suppose the builder is only accessible after the Java compilation.

compiledClasses does the Java compilation. The Builder is a nested class, so you have to get the Person class and then ask it for the nested Builder class.

Should the tests get their own project

No, have a look at the other existing tests. You can execute the generated code, you just need to use reflection.

Regarding the "name" vs "setName" issue (bug or not), we still can't use just 'name' unless the field is renamed. Do you think that it's better to just have one set of setters and have the field called '_name'?

No, just add the second set of setters for now and then let's see what the discussion in that bug brings up. I guess it will be flagged as a bug and removed, because if people used it they would probably have had problems and complained by now ;)

Ok, I updated everything, it's just the tests that remain. I'll see how good my 'reflection-fu' is...

Added tests for Buildable. I think they are enough, but please let me know if you think otherwise.

Oh, there's still a question to answer: can we just assume that the base class doesn't already have a 'copy' method? Is it okay to get an error in that case? If not, what do you think would be the best way to handle it (not creating the method seems risky in other ways, as the semantics may differ).

Is it okay to get an error in that case

Yes, @Buildable was not designed with inheritance in mind. So unless someone comes up with a valid use case, I would just give an error.

Updated with the latest comments (FOR loop in constructor and "copy" instead of "copier")

Just one more test to fixup and then this is good to go =)

I hope it's this that you mean.

Thank you for the great contribution =)

Your change will be in release 0.6.0, on Maven Central in a few hours

Great, thanks!


Enhance autocomplete module

This is out is about enhancing the autocomplete module works by:

[ ] Filter out functions that are already running.
[ ] Find deployable functions, perhaps all the unctions that are present in the config?
[ ] Update the complete services if still needed by code.

Parts of it done, so closing the topic for now.


Migrating the Profile Fragment UI to Constraint layout

Description
I successfully migrated the UI of the Profile Screen to Constraint layout from Frame and Linear Layout.
fixes #81
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented on my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings

Screenshot of successful build.

Screenshots / Screen Recordings

Note: Only ask for review when you complete all above.

Thanks @AdarshThakare


[Bug] [ERROR] Could not execute SQL statement. Reason: org.apache.doris.flink.exception.DorisRuntimeException: Load Doris data failed, schema size of fetch data is wrong.

Search before asking

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

Version
2.0.3
What's Wrong?
CREATE TABLE doris_sink (
--   PRIMARY KEY (id) NOT ENFORCED
task_id INT,
@timestamp TIMESTAMP WITHOUT TIME ZONE,
req_starttime TIMESTAMP WITHOUT TIME ZONE,
req_timeout BIGINT,
msg STRING,
PRIMARY KEY (task_id) NOT ENFORCED
) WITH (
'connector' = 'doris',
'fenodes' = '<IP_ADDRESS>:8030',
'jdbc-url' = 'jdbc:mysql://<IP_ADDRESS>:9030',
'table.identifier' = 'dnsbeat_metric.example_tbl_unique',
'username' = 'root',
'sink.label-prefix' = 'doris_label',
'doris.request.retries' = '3',
'doris.request.connect.timeout.ms' = '30000'
);
flink SQL-client 链接doris 作为输出到数据的终端  在flinksql 里边报了这个错误[ERROR] Could not execute SQL statement. Reason:
org.apache.doris.flink.exception.DorisRuntimeException: Load Doris data failed, schema size of fetch data is wrong.
What You Expected?
期待 flink结合doris   吧kafka的数据处理完成写到doris中
How to Reproduce?
No response
Anything Else?
No response
Are you willing to submit PR?

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

Code of Conduct

[X] I agree to follow this project's Code of Conduct

flink doris connector 1.5.1 fix it


📄Updated page.tsx

from IA - AI
many more pull request to come from me
love the work man💯

Thank you so much for your contribution 💯

No problem so what the goal now for these project (New things you are planning to add)


Enhancement - provide accurate feedback when invalid command is used.

The commit 991a0af tries to solve the issue where the user is given no feedback when they enter a invalid command. It also solves the issue where a user might be given incorrect feedback in the form of being told a invalid command will work if they are root.
9124c44 and 3e6fa03 are small fixes to 991a0af.
Before:
User is first told that their faulty command will run if they are root:
tom@freenas:~ % iohyve isorename
The isorename command needs root credentials!
Trying sudo doesn't help (unsurprisingly) but user is given no indication of what happened:
tom@freenas:~ % sudo iohyve isorename
After:
User is told their command is faulty and offered help:
tom@freenas:~ % iohyve isorename
'isorename' is not a valid command!
Try 'iohyve help' for more info.
Present functionality of informing when root is needed is retained:
tom@freenas:~ % iohyve renameiso
The renameiso command needs root credentials!

There's been some changes done to the script recently, including the naming and removal of some functions. There are also conflicts with this PR. If you can fix it, I'll test it and give it the good ol' merge.

Tom to resolve the conflicts you will need to:
Define where upstream is:
git remote add upstream https://github.com/pr1ntf/iohyve.git
Change to your fork's master branch:
git checkout master
Get the changes that 0.7.5 brought:
git fetch upstream
Merge your fork's master with upstream master:
git merge upstream/master master
Switch to your fix's branch:
git checkout verifyCommandv2.enh
Merge the difference between your fix branch and master.
git merge master
This is where the conflict will reveal itself. Git will output the files which are different. In this case, only the "iohyve" file has a conflict. Then you will open iohyve with your favorite editor and look for conflict markers. These lines start with "<<<<<<< HEAD", use "=======" as a separator, and use ">>>>>>> master" to mark the end of the conflict. You will recognize HEAD as your proposed changes and master is the upstream code. Make the necessary changes. Then a git commit -a -m "Merge with upstream 0.7.5"
See here for more information on code conflicts.
https://help.github.com/articles/resolving-a-merge-conflict-from-the-command-line/

You may also consider renaming the function from  __readonly_cmd to __root_req_cmd.

@pr1ntf 69cebe8 should fix the incompatibility, please tell me if there are any issues :)
Thanks @EpiJunkie for the advice.
I believe my classification of commands is correct, though perhaps "disks" doesn't need root?

Thank you for your work!

Thanks Tom, this was better than the solution I had been testing in my dev branch.


support netstandard2.0 only

replace deprecated package WindowsAzure.Storage with Microsoft.Azure.Cosmos.Table 1.0.8
Updated dependencies: Serilog 2.10.0

#67

@nblumhardt Please release a new version 6.0 for this nuget package. The deprecated WindowsAzure.Storage package is replaced and the target framework is now netstandard2.0 which can be used for .NET framework 4.7.2, .NET Core 2./3.1 and .NET 5.0

LGTM, Bert - thanks 👍


Humble Bundle / Store / Widget games

Steam Games Missing Linux Ports:
https://www.gamingonlinux.com/wiki/Steam_Games_Missing_Linux_Ports
The Binding of Isaac + Wrath of the Lamb DLC

Project link: https://edmundmcmillen.tumblr.com/
Project license: Unknown
Does it work on 64-bit only Linux: YES
Is source code available?: YES
Is source code stored in Git?: YES
List of Steam AppIds of supported games:

https://steamdb.info/app/113200/

Additional information
Flash game, Linux builds and .swf is still available on Humble Store. As Linux builds are bundled with outdated Flash, I suggest shipping it with latest 64 bit standalone Flash Player. Users can be asked to provide HB's swf.zip. I also tried it with flash alternative Ruffle; it worked but some functions are missing and graphical fidelity is lacking.
The Binding of Isaac + Wrath of the Lamb DLC:
https://www.humblebundle.com/store/the-binding-of-isaac-wrath-of-the-lamb-dlc
Flash Player Projector (64-bit):
https://fpdownload.macromedia.com/pub/flashplayer/updaters/32/flash_player_sa_linux.x86_64.tar.gz
https://www.adobe.com/support/flashplayer/debug_downloads.html
Command:
./flashplayer the_binding_of_isaac_wrath_of_the_lamb-linux-1.48-1355426233.swf
Botanicula

Project link: https://amanita-design.net/games/botanicula.html
Project license: Unknown
Does it work on 64-bit only Linux: YES
Is source code available?: NO
Is source code stored in Git?: NO
List of Steam AppIds of supported games:

https://steamdb.info/app/207690/

Additional information
Linux builds are still available on Humble Store. Users can be asked to provide HB's tar.gz release.
https://www.humblebundle.com/store/botanicula-collectors-edition
Draw a Stickman: EPIC

Project link: https://drawastickman.com/epic1
Project license: Unknown
Does it work on 64-bit only Linux: MAYBE
Is source code available?: NO
Is source code stored in Git?: NO
List of Steam AppIds of supported games:

https://steamdb.info/app/248650/

Additional information
Linux builds are still available on Humble Store. Users can be asked to provide HB's release.
https://www.humblebundle.com/store/draw-a-stickman-epic
Fractal

Project link: https://cipherprime.com/games/fractal/
Project license: Unknown
Does it work on 64-bit only Linux: MAYBE
Is source code available?: NO
Is source code stored in Git?: NO
List of Steam AppIds of supported games:

https://steamdb.info/app/61310/

Additional information
Linux builds are still available on Humble Store. Users can be asked to provide HB's release.
https://www.humblebundle.com/store/fractal
McPixel

Project link: http://mcpixel.net/
Project license: Unknown
Does it work on 64-bit only Linux: MAYBE
Is source code available?: NO
Is source code stored in Git?: NO
List of Steam AppIds of supported games:

https://steamdb.info/app/220860/

Additional information
Linux builds are still available on Humble Store. Users can be asked to provide HB's release. Likely to be a Flash or Air game.
https://www.humblebundle.com/store/mcpixel
Paper Sorcerer

Project link: http://www.ultrarunaway.com/paper-sorcerer.html
Project license: Unknown
Does it work on 64-bit only Linux: MAYBE
Is source code available?: NO
Is source code stored in Git?: NO
List of Steam AppIds of supported games:

https://steamdb.info/app/263560/

Additional information
Linux builds are still available on Humble Store. Users can be asked to provide HB's release.
https://www.humblebundle.com/store/paper-sorcerer
Potatoman Seeks the Troof

Project link: http://www.pixeljam.com/potatoman/
Project license: Unknown
Does it work on 64-bit only Linux: MAYBE
Is source code available?: NO
Is source code stored in Git?: NO
List of Steam AppIds of supported games:

https://steamdb.info/app/328500/

Additional information
Linux builds are still available on Humble Store. Users can be asked to provide HB's release. Likely to be a Flash or Air game.
https://www.humblebundle.com/store/potatoman-seeks-the-troof
Regency Solitaire

Project link: http://www.greyaliengames.com/regencysolitaire/index.php
Project license: Unknown
Does it work on 64-bit only Linux: MAYBE
Is source code available?: NO
Is source code stored in Git?: NO
List of Steam AppIds of supported games:

https://steamdb.info/app/351090/

Additional information
Linux builds are still available on Humble Store. Users can be asked to provide HB's release.
https://www.humblebundle.com/store/regency-solitaire
Scoregasm

Project link: http://charliesgames.com/Scoregasm/
Project license: Unknown
Does it work on 64-bit only Linux: MAYBE
Is source code available?: NO
Is source code stored in Git?: NO
List of Steam AppIds of supported games:

https://steamdb.info/app/202410/

Additional information
Linux builds are still available on Humble Store. Users can be asked to provide HB's release.
https://www.humblebundle.com/store/scoregasm
Shadowgrounds & Shadowgrounds Survivor

Project link: https://www.shadowgroundsgame.com/
Project license: SHADOWGROUNDS & SHADOWGROUNDS SURVIVOR SOURCE CODE LICENSE

https://github.com/vayerx/shadowgrounds/blob/linux/LICENSE.txt

Does it work on 64-bit only Linux: MAYBE
Is source code available?: YES
Is source code stored in Git?: YES

https://github.com/vayerx/shadowgrounds

List of Steam AppIds of supported games:

https://steamdb.info/app/2500/
https://steamdb.info/app/11200/

Additional information
Linux builds are still available on Humble Store. Users can be asked to provide HB's .bin release.
https://www.humblebundle.com/store/shadowgrounds
https://www.humblebundle.com/store/shadowgrounds-survivor
HB's .bin releases require libglade2-0:i386 to be installed. However, I am unable to run either of shadowgrounds-bin and shadowgrounds-launcher due to zlib dependency error. If source code can be compiled, user wouldn't need to provide HB builds. Following is the build instructions of the source code;
https://github.com/vayerx/shadowgrounds/wiki/Build
There is also a fork claiming to be the SDL2 port of the games;
https://github.com/Chaduke/shadowgrounds-SDL2
Vessel

Project link: https://store.steampowered.com/app/108500/Vessel/
Project license: Unknown
Does it work on 64-bit only Linux: NO
Is source code available?: NO
Is source code stored in Git?: NO
List of Steam AppIds of supported games:

https://steamdb.info/app/108500/

Additional information
Linux builds are still available on Humble Store. Users can be asked to provide HB's bin release.
https://www.humblebundle.com/store/vessel

Closing in favor of the user-packages support (https://github.com/luxtorpeda-dev/luxtorpeda/issues/65), which allows users to use luxtorpeda as a override launcher for steam games, which could be used to tell steam to launch the humble bundle games instead.


Simplified

Simplified the project for contributors

It's good practice to separate concerns. In my thinking the the pooling station, Diaspora, and County should be all stand alone apps.


Form section

In this pull request, I was able to:

Create a form in the index.html using the pair programming method.

Stylized this section in  HTML with CSS using flexbox the pair programming method.

In this pull request, I was able to:
-Give padding to the form.
-Style placeholders.


Jepack compose integration is freezing

So, basically just by adding this:
@Composable
public fun CropperWrapper(
    sourceImage: Bitmap,
    modifier: Modifier = Modifier,
) {
    AndroidView(
        modifier = modifier,
        factory = { context -> CropImageView(context) },
        update = { cropImageView ->
            cropImageView.setImageBitmap(sourceImage)
        }
    )
}

The app freezes with no error or issue being logged (as far as I saw).
Any ideas? I'll try and look through the source code to find a solution, but a helping hand would be great here. 👀

Only thing that I found until now is that it does not freeze if I remove the cropImageView.setImageBitmap(sourceImage) line.
But also does not show anything (as expected).

Okay, found an interesting solution. Seems like the problem is that it is entering a infine loop calling the onLayout method. Changing the parent layout to a LinearLayout as such:
@Composable
public fun ProCropper(
    sourceImage: Bitmap,
    modifier: Modifier = Modifier,
) {
    AndroidView(
        modifier = modifier,
        factory = { context -> LinearLayout(context) },
        update = { layout ->
            val cropper = CropImageView(layout.context)
            layout.addView(cropper)
            cropper.setImageBitmap(sourceImage)
        }
    )
}

Made it work like a charm. When I clear some time, I'll try to take a deeper look into this problem. But for now, let's call this a solution.

Thanks for sharing your workaround!

@williankl it's useful for me. thinks!
AndroidView(
    modifier = Modifier.fillMaxSize(),
    factory = { context: Context ->
        val viewRoot = LayoutInflater.from(context).inflate(
            R.layout.layout_picture_crop, null, false
        ) as LinearLayout
        cropImageView = viewRoot.findViewById<CropImageView>(R.id.cropImageView).apply {
            setImageBitmap(bitmap)
        }
        viewRoot
    },
    update = { layout ->
        layout.children.forEach { child ->
            if (child is CropImageView) cropImageView = child
        }
    })

it really works , but i want to konw why it happens ?


Swashbuckle.Core - Method MapHttpRoute not found

I've installed Swashbuckle 5.3.2. in my ASP .NET Web API 5.3.2. project. When trying to enable Swagger using the following code
GlobalConfiguration.Configuration.EnableSwagger(c =>                 {                     c.OperationFilter<ExamplesOperationFilter>();                 }).EnableSwaggerUi();
I get the following MissingMethodException
"An exception of type 'System.MissingMethodException' occurred in Swashbuckle.Core.dll but was not handled in user code
Additional information: Method not found: 'System.Web.Http.Routing.IHttpRoute System.Web.Http.HttpRouteCollectionExtensions.MapHttpRoute(System.Web.Http.HttpRouteCollection, System.String, System.String, System.Object, System.Object, System.Net.Http.HttpMessageHandler)'."
I'm not able to find a solution to this specific problem. Any ideas?

Same issue here. I upgraded an existing project and I am getting the same error. Have to think there is a dll version mismatch happening, but yet to identify it.

I got it working by uninstalling Swashbuckle 5.3.2 and installing Swashbuckle.Net45 (version 5.2.1) instead. You might also have to clean your solution and delete your Debug and Release folders to make sure you get rid of all the Swashbuckle 5.3.2 stuff before installing Swashbuckle.Net45.

@markus-bergendahl & @markshiffer  , Same issue here, Swashbuckle 5.4.0 and AspNet.WebApi 5.2.3.
Seems like @markshiffer is right, seems like dll version issue.
I fixed it, by added following to my web.config under
/configuration/runtime/assemblyBinding/ :
    <dependentAssembly>
        <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="<IP_ADDRESS>-<IP_ADDRESS>" newVersion="<IP_ADDRESS>" />
    </dependentAssembly>

Thanks PoulNielsen!  That did the trick for me.

This is still an issue with apps deployed to Azure. We are using ASP.NET 4.7.2:
    <system.web>
    <compilation debug="true" targetFramework="4.7.2" />
    <httpRuntime targetFramework="4.7.2" />
    <httpModules />
  </system.web>

We have this binding:
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="<IP_ADDRESS>-<IP_ADDRESS>" newVersion="<IP_ADDRESS>" />
      </dependentAssembly>
    </assemblyBinding>

The strange thing is that it IS working when running locally, just not when deployed to Azure as an App Service.

Same problem here

In order to sort out the issue, was necessary to replace the following binding redirect:

By the next one:

In order to sort out the issue, was necessary to replace the following binding redirect:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" />
        <bindingRedirect oldVersion="<IP_ADDRESS>-<IP_ADDRESS>" newVersion="<IP_ADDRESS>" />
      </dependentAssembly>
</assemblyBinding>

By the next one:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" />
        <bindingRedirect oldVersion="<IP_ADDRESS>-<IP_ADDRESS>" newVersion="<IP_ADDRESS>" />
      </dependentAssembly>
</assemblyBinding>


Fixes issue with plugin closing new tabs opened with telescope-helpgrep.nvim

I am the maintainer of telescope-helpgrep.nvim (https://github.com/catgoose/telescope-helpgrep.nvim), when I have the default action set to telescope.actions.select_tab the autocmds setup for tailwind-tools.nvim automatically close the tab created by Telescope.
I have added supported_filetypes to the config and used those filetypes as patterns in the autocmds

I haven't tried your plugin yet but I'm really confused, what's the specific autocmd that causes your issue and how is it even related?

https://github.com/catgoose/tailwind-tools.nvim/blob/bedc3c776898a936a483ea3de8b675644ee0b6fa/lua/tailwind-tools/conceal.lua#L45
When my plugin opens a help file with a new tab, if that autocmd does not match against filetypes that would have html classes it closes the tab immediately.
When I just tested I got this message when I opened a tab:

I have had some weird issues with neogit tabs lately now that I think about it.


Implement thread preempting and sleeping

might be a bit buggy. I haven't added TAP testing yet as I think there needs to be a discussion on the best way to do TAP with threads (especially with test plans comming after tests). I left in my test code though so if anybody wants to figure that out they can.
still todo:

[x] thread exit and such

should be good to merge, please review


Scheduler displays events in wrong cell.

Bug Report

Package versions:
devexteme version: ^20.2.3
devextreme-angular version: ^20.2.3

Steps to reproduce:

Create recurring event (in my case once a week)

Current behavior:

The three lower week rows are shifted into the upper three rows. Resizing the window fixes it.

Screenshots:

https://youtu.be/uljvu8_zCR8

Hello,
Thank you for the reply.

I reproduced this issue and forwarded it to our developers for further investigation.
We will update this report once any news is available.

Our R&D team investigated the issue and found that sometimes angular in debug mode loads styles after the javascript. This is a reason for rendering appointments incorrectly.
To resolve the issue, we suggest loading the main bootstrap module after the document is completely ready:
// main.ts
document.onreadystatechange = function () {
  if(document.readyState == "complete") {
      platformBrowserDynamic().bootstrapModule(AppModule)
        .catch(err => console.error(err));
    }
}

Also, a similar problem discussed on stackoverflow where the solution uses direct links to the DevExtreme styles inside the index.html.


Implement CLI hot-reload

Latest fresko version removed dependency to shelljs 🚀
However, if one's project is relying on fresko to automatically run npm/yarn/pnpm install on a project that just got upgraded to latest fresko version (which happened @sline-io today), developers will run into this issue:
Error: Cannot find module '/XXX/node_modules/shelljs/src/exec-child.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

This is due to the fact that the fresko CLI currently running into the developer's terminal was still the version which had the dependency to shelljs - but during the CLI run the fresko dependencies changed - removing here the path to shelljs
Implementing a hot-reload feature into fresko would solve this issue, here's how it'd work:

fresko is ran using git hooks - will save it's package version in memory
each time a prompt's command is ran, we will check again if fresko package version changed
if package version got changed, fresko would exit & reload itself, using the new version that just got installed
optional: find a way to recover the CLI current state, to avoid re-starting the prompt sequence from the beginning

though not a perfect solution, https://github.com/qhello/fresko/commit/6f16fecbe878a259bc9564ebd1fefbf80075caf3 will help mitigate this issue, as now the CLI will ship fully bundled 🎸


v3.2.3

Codecov Report

Merging #46 into master will decrease coverage by 6.09%.
The diff coverage is 15.9%.

@@            Coverage Diff            @@
##           master      #46     +/-   ##
=========================================
- Coverage   92.08%   85.99%   -6.1%
=========================================
  Files           3        3
  Lines         670      507    -163
=========================================
- Hits          617      436    -181
- Misses         53       71     +18

Impacted Files
Coverage Δ

dist/realdom.min.js
100% <ø> (ø)
:arrow_up:

dist/realdom.js
81.66% <15.9%> (-10.29%)
:arrow_down:

src/main.js
92.23% <0%> (-0.05%)
:arrow_down:

Continue to review full report at Codecov.

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


Introduce Constrained Substitution, CSubst, class

This is somewhat a blocker on: https://github.com/runtimeverification/pyk/pull/124
Working with that PR, it became clear that the Cover and Split nodes have some duplicate data. So here we factor out that data/functionality into the CSubst class, which stores a substitution and a constraint.

Class CSubst is added, with functionality:

apply: apply a CSubst to a CTerm to get a new CTerm.
add_constraint: return a new CSubst with the additional constraint.

Method CTerm.match_with_constraint now returns an Optional[CSubst] instead.
Adds methods CTerm.{to_dict,from_dict} and CSubst.{to_dict,from_dict}, and uses those directly in the various KCFG.{to_dict,from_dict} places.
Removes a method path_condition from kcfg.py which had no uses here.
Stores a CSubst directly as the data of a KCFG.Cover instead of storing a constraint/substitution directly.
Adjust KCFGExplore.cterm_implies to return a CSubst instead of a tuple of Subst, KInner.
Adjusts the tests to the new datastructures.
Increases the parallelism of tests on CI.

@Scott-Guest I've marked you as reviewer to give you a chance to look over this code, but your review is not necessary if you don't have time.


focus-visible with EDS core react

The EDS team has updated eds-core-react to use esm modules. This is good, as tree-shaking now works as expected and and bundle size in reduced. However, Next.js does some clever optimisation for the production bundle and the polyfill library for :focus-visible didn't work anymore.
The solution for Envis is to
a) Make the focus-visible library an explicit dependency for the web.
b) Import the library in _app.tsx
Since we use this library in our code beyond in the EDS component, this is the right thing to do as it's not optimal to implicit use a library from a library :)

See https://github.com/equinor/energyvision/commit/39e61429872ac80f3ad1547f59bfba530527abbc

@SvSven  I guess you have already verified this? Close?

Can confirm that I see the focus state again both locally and in production


Cyrillic-based keyboards not selectable on Mac

On Mac 12.5.1, I have had Erzya (myv) and Moksha (mdf) keyboards as well as several Latin-based keyboards Apurinã (apu), Lushootseed (lut), Tenino (tqn), Võro (vro).
After restarting my mac today, 2022-12-08, I have been unable to select a Cyrillic-based keyboard (a) from the keyboard, (b) manually attempting to select the language from the drop-down menu.
Upon adding a Mac Russian keyboard, both Erzya and Moksha mysteriously disappeared.
The same issue affects the keyboards: Mansi (mns), Kildin Saami, Khanty (kca)

I can confirm the behaviour reported: Today I installed the Mansi (mns) cyrillic-based keyboard, with the same result:
I installed the Mansi keyboard, and after restart the Divvun installer claims it to be installed, as excpected. The keyboard, however, is nowhere to be found  in the System menu for adding keyboards. DI lists the keyboard as installed ("No updates"), but to no avail. Latin-based keyboards (e.g. fao, rmn) work well, the problem seems to be the cyrillic-based one.
The issue is somewhat acute, since we work on mns this week, but it is of course a problem also genarally speaking.

Further confirmed by me using Mansi as a test case. @zoomix could you have someone look at this?
Details:

macOS 13.3.1 (a)
bundle properly installed as /Library/Keyboard\ Layouts/no.uit.giella.keyboards.mns.keyboardlayout.mns.bundle using Divvun Manager
not listed or visible at all in System Preferences (System Preferences > Keyboards > Input sources)

@dylanhand @SteffenErn — sorry, I forgot one step: you need to switch to the nightly channel in the app settings. After that the All repositories view will show Mansi near the bottom (it is written in Cyrillic, and the Cyrillic entries are towards the bottom - the actual packages are written in Latin, so should be no problem finding it).

We found the issue.
This occurs when the .keylayout file contains a self-closing  tag, such as:
<actions />`

The .keylayout file can be found in /Library/Keyboard\ Layouts/<your language>.bundle/Contents/Resources
The problem doesn't occur if this tag is either omitted or re-written as:
<actions></actions>

Our current plan to fix is to fork https://github.com/bbqsrc/xmlem and add an option to disable self-closing tags.

Our current plan fix is to fork https://github.com/bbqsrc/xmlem and add an option to disable self-closing tags.

Feel free to make a pull request and i can publish the fixes on cargo.

So, what next? I understand the pull request is now done.
From my perspective I would then like to have a working Mansi keyboard on PC (Mac and Windows), my coworkers are typing in hex codes. Does the code in keyboard-xxx (here: keyboard-mns) need any changes, and if so, what changes?

@bbqsrc the option to disable self-closing tags ended up causing other issues. MacOS being persnickety 😄
The fix was instead to remove the <actions \> tag altogether if it contained no children when generating MacOS layouts.
@Trondtr changes to keyboard-xxx repos should not be required for this fix to work on MacOS. I'm not sure about Windows though - are you having issue there too? If so please create an issue with details.
Next step is to merge this and then have kbdgen re-generate MacOS layouts so they're available in the nightly channel. Hopefully the merge will trigger that. Still learning the tool chain. Will merge (if no objections) and investigate how to deploy the layouts to nightly after lunch 😄

Please do merge.

@dylanhand rebuild of the keyboards do not happen automatically yet (cross-repo build deps have been planned, but not yet implemented). I will trigger new builds of the most critical keyboards as soon as the fix is merged and kbdgen has been rebuilt.

@snomos thanks for the info.
Just merged, so feel free to trigger new builds of the keyboards.

I was able to download and install Mns (Mansi) keyboard on my Mac M2 13.0.1
It seems to work fine in the command line, so I am happy.
The keyboards for mhr (Meadow & Eastern Mari), mrj (Hill Mari aka Western Mari), myv (Erzya), mdf (Moksha), kpv (Komi-Zyrian), yrk (Nenets), did not show up as possible keyboards to install.

@rueter all the mentioned keyboards have now been rebuilt to fix the issue. They also have a new version number. They should be available in Divvun Manager as updates.
For keyboards with a Sámi flag as menu item icon, it has been replaced with a best effort alternative. Feel free to suggest other flags or icons 😊

@snomos
The Cyrillic keyboards presently working are: myv, mdf, kpv
The mrj (Hill Mari aka Western Mari) keyboard is only partial. It contains none of the extras required for mrj, so we will have to work on that.
The mhr (Eastern & Meadow Mari) keyboard does not appear on my Ventura as a selectable, even after down loading it.
The udm keyboard, has a Saami flag and is, in fact, a Latin letter content. More work for us;)

Thanks for the feedback, I will look into the various points. Further discussion should take place in new issues specific for the relevant keyboards, if needed.
This issue is now fixed, thanks for reporting it 😊


Vault send:It is showing send amount instead of vault balance.

It is not showing the Vault balance but the send amount below Vault

Verified this issue on keeper app v 1.1.6(256)


No PVC was generated

As documented in https://github.com/datashim-io/datashim/blob/master/docs/Archive-based-Datasets.md, a PVC should be generaed for an archive dataset. I ran "kubectl apply -f https://github.com/datashim-io/datashim/raw/master/examples/templates/example-archive.yaml". A dataset was created correctly. The corresponding PVC did not exist.

Hello @davidyuyuan did you follow the instructions for archive-based dataset found here? I suspect that the example archive-based dataset you created results in no PVC created because the minio-conf secret is missing.

Closing this issue as the problem seems resolved


Use grype scans, not trivy

Trivy has been having too many errors recently, affecting the display of data on the chainguard images page. This PR switches image-comparison to use grype, not trivy.

@jspeed-meyers I happened to come across this PR. Could you tell us the errors in Trivy specifically?

Hi @knqyf263,
Thanks for the note. First, I want to make clear that I am a big trivy fan. I use it daily. That said, trivy (or it could be our particular use of trivy, to be fair) has been failing recently. I'll be specific.
This particular repo image-comparison currently stores thirty days of scan data (updated daily) on six different images scanned with trivy. These images are:

golang:latest
nginx:latest
php:latest
cgr.dev/chainguard/go:latest
cgr.dev/chainguard/nginx:latest
cgr.dev/chainguard/php:latest

See data.csv. This CSV then forms the basis of a visualization on the chainguard website: https://www.chainguard.dev/chainguard-images
Example image:

You'll notice in the example image that the php:latest CVE count drops to zero on January 4. The nginx:latest scan drops to zero on January 12. Since this seems to be an error, and not a reflection of reality, it distracts, IMO, the viewer. This is why the PR proposes using grype data rather than trivy data.
This data comes from an internal logging tool that Chainguard maintains that uses trivy and grype to scan both chainguard images and other comparable images once daily. It's not practical for me to share the logs with you. I'm sorry about that. But the log related to the nginx:latest failure scan is quite simple:
2023-01-12 15:32:43,394 Command '['trivy', '--debug', 'image', '-f', 'json', '-o', 'output/nginx:latest-trivy-2023-01-12-15:27:42.json', 'nginx:latest']' returned non-zero exit status 1.

The log doesn't return any other info. So I don't know what the error is. I will note--though it might be unrelated--that another trivy issue happened to coincide with these failures (at least roughly speaking) and I was wondering if our codebase had some errors because of those issues. We do scan some Java-based images internally.
I hope this provides at least some context. If you want further information, feel free to ask questions. Sorry I can't do better!
cc @luhring

Thanks for the detailed info! Yeah, it doesn't look good to show zero vulnerabilities, as you said. We don't intend to oppose scanner replacement. I just wanted to improve errors if you see something critical.
That issue comes from API unstableness Trivy relies on in Java scanning. Calling API leads to a timeout recently. It is a bit weird as the log message tells you timeout, though.
https://github.com/aquasecurity/trivy/issues/3421
We currently need this API call for better results, but we're planning to improve it shortly.
Again, thanks for sharing it. Please feel free to go ahead👍 I'm sorry for the inconvenience.


Link to "Properties" tab for ResolutionScale enum links to incorrect page

On the page for DisplayInformation::ResolutionScale, if you click the Button to go to Properties on the DisplayInformation class,

it leads to [the wrong page] (https://docs.microsoft.com/en-us/uwp/api/windows.graphics.display.displayinformation.autorotationpreferences?view=winrt-19041). It should direct here instead.

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

ID: bd4a6b76-b5ac-d343-f20b-1841380fbc99
Version Independent ID: 59b6019f-3cf0-6fb7-fc46-f714bb877a6c
Content: DisplayInformation.ResolutionScale Property (Windows.Graphics.Display) - Windows UWP applications
Content Source: winrt-api-build/xml/Windows.Graphics.Display/DisplayInformation.xml
Product: uwp
Technology: winrt-reference
GitHub Login: @stevewhims
Microsoft Alias: stwhi

Hi, @ackrumb, and thanks for filing this issue. It seems like the system is mistaking the first item under each API kind (methods, properties, events, etc.) as the landing page for that API kind.
As well as your repro, there's additional evidence for that because if you select that first item, then the second-last breadcrumb is plain text and not a hyperlink.
Since this isn't something writers can control, I'll track this as a bug with our content engineers. And since we're tracking it internally, and don't want to double-track it, I'll go ahead and close this issue. Leave it with me and I'll keep an eye on the issue. I've recorded this GitHub issue's ID in the bug so that there's a trail back here so that we'll be able to update this GitHub Issue with the outcome.
Thanks again!
Steve

Hey Steve,
thanks for that. I must've accidentally done this on my personal Github
instead of my corporate account. Would you mind sending the ADO bug to my
alias<EMAIL_ADDRESS>Thanks!
On Wed, Dec 16, 2020 at 2:27 PM Steven White<EMAIL_ADDRESS>wrote:

Hi, @ackrumb https://github.com/ackrumb, and thanks for filing this
issue. It seems like the system is mistaking the first item under each API
kind (methods, properties, events, etc.) as the landing page for that API
kind.
As well as your repro, there's additional evidence for that because if you
select that first item, then the second-last breadcrumb is plain text and
not a hyperlink.
Since this isn't something writers can control, I'll track this as a bug
with our content engineers. And since we're tracking it internally, and
don't want to double-track it, I'll go ahead and close this issue. Leave it
with me and I'll keep an eye on the issue. I've recorded this GitHub
issue's ID in the bug so that there's a trail back here so that we'll be
able to update this GitHub Issue with the outcome.
Thanks again!
Steve
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/winrt-api/issues/1910#issuecomment-747078263,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACWBDSNJU5U6TMWQF3QSL6TSVEX6FANCNFSM4U6SY6BA
.

Hi, @ackrumb! Yes--sent via email. :)
-Steve


Modularize convert into loader & transformer

This is an initial step of modularizing convert function into loader and transformer. I found a bit difficult to create the komposeObject interface due to Go import cycle problem. The easiest thing I can do is creating the shared struct komposeObject in a separate package which loader and transformer can use. Although I think komposeObject interface is still a good idea.
@kadel I'm looking for comment from your side.

#55

Hi @ngtuna I just give quick look to this PR.
kobject pkg looks goot.
But with loaders and transformers I had something little bit else in my mind.
I thought that every loader and every transformer would be in its own package.
so we would have kubernets, openshift, dockercompose and bundle packages.
Decisions which loader or transformer to use would be in app.go. You are on good track with loaders switch I think that there should be something similar for transformers also. If we put all that decisions outsde of tranfromers packages, it will be easy to add more transformers in the future.
But i guess this is little bit harder to do right now, as openshift and kubernetes are tight together right now :-( - but I can help with that.

@kadel Agreed. I suggest that I should add one more commit to the PR for creating separate packages for every loader and transformer, then we can merge it upstream and let people contribute more based on this construction.

I'm creating shared functions (lot of) for both k8s and openshift packages then we should be good. For the switch decision of which output provider that transformer should refer to, I think at this moment if --deploymentconfig is used, then go to openshift, otherwise go by default to k8s.

@kadel There are things happened on my mind:

Loader and transformer would be sit in their own packages no doubt. So we have at this time bundlefile, dockercompose, kubernetes, openshift packages.

With bundlefile & dockercompose, they shared the same sort of functions such as:

loadImage()
loadEnvvars()
loadPorts()
others: loadWorkingDir(), loadCommand(), loadVolumes(), etc

Similar to k8s and openshift, they also looks the same. Even they shared lot of common functions.

initRC()
initSC()
initDC()
initDS()
initDeploymentConfig() (OpenShift only)
configEnvvars()
configPorts()
configServicePorts()
configVolumes()
others: configWorkingDir(), configCommand(), etc

So, I would suggest to create loader and transformer interfaces. Then let bundlefile, dockercompose, k8s, openshift implement the interface they belong to. Upcoming providers and input formats will be implemented following this structure.
Thought?
/cc @runseb @janetkuo

:+1:  @ngtuna
I would only suggest to make those interfaces smaller and generic so it is easy to add more transformers/loaders in future.
for loader I can image just something like this:
loadFiles(files []string) (KomposeObject, err)

for transformer:
loadKomopse(kobject KomposeObject, format string) (map[string]string, err)

returned map[string]string would look for example like this:
{
   "foobar-rc.yaml": "
apiVersion: v1
kind: ReplicationController
.........
",
   "foobar-service.yaml": "
apiVersion: v1
kind: service
.........
}

That this returned map could be either saved to files, or displayed to stdout.
But I'm not sure if returning it as this big map is good idea. :-(

@kadel I'm gonna merge this PR to skippbox:loader-transfomer and then switch to work on that branch, because there are some changes of convert function I would like to rebase from skippbox:master. I will send another PR for that work.


Add PAM Metric for Reference-Free Audio Quality

This Pull Request adds support for the PAM (Prompting Audio-Language Models) metric, a reference-free metric introduced in the paper: PAM: Prompting Audio-Language Models for Audio Quality Assessment.
Main Changes:

utterance_metrics Folder: Added pam.y to compute the PAM metric for given audio samples.
versa/bin Folder: Added clap.py to extract CLAP embeddings, which are necessary for computing PAM.
PAM Configuration: Added pam.yaml in egs/separate_metrics for configuring PAM-related settings.
Updates to versa/scorer_shared.py: Integrated the PAM metric into the load_score_modules() and use_score_modules() functions to enable its usage.
Updated the list_scoring() function at line 555: Modified the condition elif io == "soundfile" to elif io == "soundfile" or io == "dir" to handle directory input.

Requested Feature

For PAM, there is an option to: Use all segments of the audio, or use only the first segment. Since CLAP only accepts audio segments of 7 seconds or less, if the audio is longer, it is split into smaller segments, and the average scores are computed. We need to add argument to choose either to use the first segment or all the segments.

Many thanks for your contribution!


Add jackd support

Hi there adding jackd support would be great. This is fairly minimal amount of work and would make it infinitely more useful given firefox jack support is experimental and chrome has none.

OS - Ubuntu 17.04 (but jack is cross platform)

chrome has none

This in itself is almost certainly a barrier to implementation considering GPMDP is based on Electron which is based on Chromium.
If someone puts together a PR for this I'd be happy to review it but this isn't something I'm prepared to have open as I have 0 intention of implementing this kind of thing.

Why would you use JACK for everyday use is beyond me. There is ALSA and PulseAudio for that, and you can add the JACK module for PulseAudio.


zq: 1.2.0 -> 1.3.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/brimdata/zed/releases.
meta.description for zq is: "A command-line tool for processing data in diverse input formats, providing search, analytics, and extensive transformations using the Zed language"
meta.homepage for zq is: "https://zed.brimdata.io"
meta.changelog for zq is: ""
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.3.0 with grep in /nix/store/8867ijbjc62bp1vhvblkys03cg1v1ali-zq-1.3.0
found 1.3.0 in filename of file in /nix/store/8867ijbjc62bp1vhvblkys03cg1v1ali-zq-1.3.0

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
zq

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/8867ijbjc62bp1vhvblkys03cg1v1ali-zq-1.3.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A zq https://github.com/r-ryantm/nixpkgs/archive/71a4ac6d8b00fb40815fcd0532149ff6b7fb1a39.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/8867ijbjc62bp1vhvblkys03cg1v1ali-zq-1.3.0
ls -la /nix/store/8867ijbjc62bp1vhvblkys03cg1v1ali-zq-1.3.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

zq

Maintainer pings
cc @knl for testing.

Result of nixpkgs-review pr 202529 run on x86_64-linux 1

1 package built:

zq


DEC-262: Allow the copyright text to be changed

WHY: The user may need to include additional copyright details for their exhibit
HOW: Added a copyright field to the exhibits schema and modified honeycomb to allow editing of this field. If the user specifies a custom copyright, it will use it, otherwise, it will use the previously defined copyright text. As an additional note, when the user first creates an exhibit, it will create a default value so that the copyright year is associated with the year in which the exhibit was originally created, as opposed to a dynamically changing value. They can of course always modify this after it's created.

Coverage increased (+0.02%) to 94.26% when pulling 78e7857de30f53696dd39ba27da912abe7baa119 on DEC-262 into e426a56cb39bc22f9fc1a57849485fadb7615a91 on master.

:+1:

Coverage increased (+0.02%) to 94.26% when pulling ca4f247db8a62211f3accf4300ccca8720f5a4a7 on DEC-262 into e426a56cb39bc22f9fc1a57849485fadb7615a91 on master.

Coverage increased (+0.02%) to 94.26% when pulling fc115d5d9d10a451062a457adf2b88ae17274f97 on DEC-262 into e426a56cb39bc22f9fc1a57849485fadb7615a91 on master.

Coverage increased (+0.02%) to 94.26% when pulling fc115d5d9d10a451062a457adf2b88ae17274f97 on DEC-262 into e426a56cb39bc22f9fc1a57849485fadb7615a91 on master.

:+1:


Handle non-dict returns in decorators

Codecov Report
Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (09012db) compared to base (c63ff0d).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #205   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines           33        39    +6
=========================================
+ Hits            33        39    +6

Impacted Files
Coverage Δ

camel_converter/decorators.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.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


How to get API_KEY?

After registering the openai account, generate the key here.
https://platform.openai.com/account/api-keys

@clearcodecn  After registering the openai account, generate the key here.
https://platform.openai.com/account/api-keys

thanks @yqchilde , yes you need to register with openai and grab an api key from there as this is a paid service.


Second Directory windows no fund

imagen

Can you attach the error output in the log this should give more detail on the origin of this problem.


VS Code web: quickpick disappear when a walkthrough is opened and focused

I noticed that a few months ago some changes related to the focus in quickpick and in inputbox were pushed.
Today I faced a bug that seems appeared after that improvements.
The bug is relevant for the web version. I've checked the case on VS Code desktop 1.86.0 and did not get any issues.
Does this issue occur when all extensions are disabled?: Yes/No
An extension helps me to show the bug, no reason to disable it.

VS Code Version: 1.86.0, Version: 1.87.0
OS Version: -

Steps to Reproduce:
The bug is reproducible on gitpod. I've prepared a simple extension to demonstrate

Go to Gitpod, create a workspace from https://github.com/vitaliy-guliy/vscode-test-extension
if the extension is not compiled automatically, open a terminal, install dependencies with npm install and then compile the extension with npm run compile
Run the extension
In the secondary browser window open Welcome page and go to Test walkthrough and focus the tile
Click Show button, enter some value and try to select any item from appeared quickpick.

In 99 percents the quickpick is appeared and then immediately closed.
A notification will show entered values.

@vitaliy-guliy I am unable to repro this issue.

Have you also considered setting ignoreFocusOut in your InputBoxOptions
		/**
		 * Set to `true` to keep the input box open when focus moves to another part of the editor or to another window.
		 * This setting is ignored on iPad and is always false.
		 */
		ignoreFocusOut?: boolean;

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!

@bhavyaus I also cannot reproduce this bug on gitpod anymore.
But it still reproducible in Eclipse Che nightly build with VS Code 1.88.0
Gitpod is still running with VS Code 1.87.0
I would not like to add ignoreFocusOut property as it makes the UX a bit confusing. The user have to focus the popup manually to continue entering the value.
This how does it look like with ignoreFocusOut: true property

Anyway, I will test it again on the Gitpod when it gets VS Code 1.88.x or later.
Thanks!

Reopening the issue as it is reproducible on Github Codespaces with VS Code 1.85.2

@bhavyaus could you please take a look? it looks like the issue is still actual and should be reopened

Investigating..

@vitaliy-guliy I am unable to repro this issue on  Github Codespaces with VS Code 1.85.2. Could you please include a recording/gif of the repro.

We closed this issue because we are unable to reproduce the problem with the steps you describe. Chances are we've already fixed your problem in a recent version of VS Code. If not, please ask us to reopen the issue and provide us with more detail. Our issue reporting guidelines might help you with that.
Happy Coding!

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

@bhavyaus have you had a chance to try to reproduce the bug?

I tried to reproduce it today, but seems it works

Ill verify on my end if the VS Code version bump fixed it. There have been a few changes in this area in the last few iterations.

@bhavyaus  I no longer have any issues with VS Code built from sources. Thanks.

I started to face the issue on gitpod again.
It is unstable and reproducible in 90% of cases
https://github.com/microsoft/vscode/assets/1655894/d5f80238-13e9-435b-928c-c9b7a7666c97
@bhavyaus could you take a look?


Cleanup: Remove updates.jenkins.io resources

In https://github.com/jenkins-infra/helpdesk/issues/2649#issuecomment-1515106548, it is discussed about using DigitalOcean or CloudFlare to host the update center index.
Since we have not bee able to continue working on this topic, the resources are costing monye that could be spent in agents for ci.jenkins.io for instance.
This PR fixes all the missing dependencies and removes unused resources

Waiting after the team meeting to merge


Fix NCCL test hang

The NCCL communicator tests sometimes hang because NCCL kernels are blocking, and mixing with LaunchN calls might cause a deadlock. Synchronizing on the stream before LaunchN seems to fix this issue.

@trivialfis

You mean per-thread default stream? I'm not sure it'll help here. The issue seems to be creating multiple NCCL communicators in the same process and mixing NCCL kernels with ours.

Thank you for the quick fix!


create-remdx does not provision a tsconfig.json

To reproduce, create any project with create-remdx using the convenience command:
npm init remdx

New projects lack a tsconfig.json, so we get errors in the editor:

Providing the tsconfig.json from https://github.com/nkzw-tech/dev-velocity-talk/blob/main/tsconfig.json resolves the error.

Working on a PR.


Client API should not use Java 8 classes

Currently we use CompleteableFuture. Since this is working with the JavaFX client API and Android we should remove it to be really compatible to Java 7

JDeferred works on Android and Java6 onwards

Yes! I would prefer using JDeferred or provide a small internal API based on Java7 (to avoid dependencies)

Reinventing the wheel because a minimum dependency policy only makes sense if the target platform has strict limits regarding memory and deployment size IMHO.


ORTModelForConditionalGeneration did not have generate() module after converting from T5ForConditionalGeneration

System Info
Machine: Apple M1 Pro
Optimum version: 1.3.0
Transformers version: 4.20.1
Onnxruntime version: 1.11.1

# Question
How to inference a quantized onnx model from class ORTModelForConditionalGeneration (previously using T5ForConditionalGeneration). I've successfully converted T5ForConditionalGeneration PyTorch model to onnx, then quantize it. But did not know why the `model.generate` was not found from ORTModelForConditionalGeneration model. How to inference?

A bit of context, this is text to text generation task. So generate a paraphrase from a sentence.

Who can help?
No response
Information

[X] The official example scripts
[X] My own modified scripts

Tasks

[ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[ ] My own task or dataset (give details below)

Reproduction
Sample code:
import os
from optimum.onnxruntime.modeling_seq2seq import ORTModelForConditionalGeneration
from transformers import T5ForConditionalGeneration,T5Tokenizer

save_directory = "onnx/"
file_name = "model.onnx"
onnx_path = os.path.join(save_directory, "model.onnx")

# Load a model from transformers and export it through the ONNX format
# model_raw = T5ForConditionalGeneration.from_pretrained(f'model_{version}/t5_keyword')
model = ORTModelForConditionalGeneration.from_pretrained(f'model_{version}/t5_keyword', from_transformers=True)
tokenizer = T5Tokenizer.from_pretrained(f'model_{version}/t5_keyword')

# Save the onnx model and tokenizer
model.save_pretrained(save_directory, file_name=file_name)
tokenizer.save_pretrained(save_directory)

Quantization code:
from optimum.onnxruntime.configuration import AutoQuantizationConfig
from optimum.onnxruntime import ORTQuantizer

# Define the quantization methodology
qconfig = AutoQuantizationConfig.arm64(is_static=False, per_channel=False)
quantizer = ORTQuantizer.from_pretrained(f'model_{version}/t5_keyword', feature="seq2seq-lm")

# Apply dynamic quantization on the model
quantizer.export(
    onnx_model_path=onnx_path,
    onnx_quantized_model_output_path=os.path.join(save_directory, "model-quantized.onnx"),
    quantization_config=qconfig,
)

Reader:
from optimum.onnxruntime.modeling_seq2seq import ORTModelForConditionalGeneration
from transformers import pipeline, AutoTokenizer

model = ORTModelForConditionalGeneration.from_pretrained(save_directory, file_name="model-quantized.onnx")
tokenizer = AutoTokenizer.from_pretrained(save_directory)

Error when:
text = "Hotelnya bagus sekali"
encoding = tokenizer.encode_plus(text,padding=True, return_tensors="pt")
input_ids, attention_masks = encoding["input_ids"], encoding["attention_mask"]
beam_outputs = model.generate(
        input_ids=input_ids,
        attention_mask=attention_masks,
    )

AttributeError: 'ORTModelForConditionalGeneration' object has no attribute 'generate'
Expected behavior
Can predict using same T5 class generate

Working like a charm. Thanks @echarlaix


General issue - Have a question about DataFlow

Hi there, thanks for this great work.
I have a question regarding DataFlow for these three cases below:
This is the CodeQL query to find a Path:
/** @kind path-problem */

import javascript
import DataFlow
import DataFlow::PathGraph

class ExampleTaint extends TaintTracking::Configuration {
  ExampleTaint() { this = "Example" }

  override predicate isSource(Node node) {
    exists(DeclStmt ds, VariableDeclarator d |
      d = ds.getADecl() and
      d.getBindingPattern().getAVariable().getName() = "source" and
      node = exprNode(d.getInit())
    )
  }

  override predicate isSink(Node node) {
    exists(FunctionNode f |
      f.getName() = "sink" and
      node = f.getParameter(0)
    )
  }
}

from ExampleTaint cfg, PathNode source, PathNode sink
where cfg.hasFlowPath(source, sink)
select sink, source, sink, "Source is at<EMAIL_ADDRESS>source, "here"

To the first example, a Path is found:
// index.js
const sink = require('./lib.js');
const source = 'source'; // Step. 1

sink(source);  // Step. 2

// lib.js
module.exports = function sink(val) { // Step. 3
  console.log(val);
};

To the second example, no Path is found:
// index.js
const fn = require('./lib.js');
const sink = fn();
const source = 'source';

sink(source);

// lib.js
module.exports = function fn() { // a function returning another function
  function sink(val) {
    console.log(val);
  }

  return sink;
};

I'm not sure if CodeQL could find a Path if intermediate routes containing a function returning another function. Or, should I miss something?
Thank you!  😊

Hi @qazbnm456,
Many thanks for your question. You are exactly right: while our JavaScript analysis can handle some uses of higher-order functions (mostly for reasoning about callbacks), the case of one function returning another is only partially supported. We'll look into whether it would be feasible to add support for the case you describe.


Bug Report: Policy initiative for private endpoints registers Azure OpenAI resources in wrong zone

Describe the bug
The ALZ policy initiative definition at [modules/archetypes/lib/policy_set_definitions/policy_set_definition_es_deploy_private_dns_zones.tmpl.json] leverages the built-in policy "Configure Cognitive Services accounts to use private DNS zones" (c4bc6f10-cb41-49eb-b000-d5ab82e2a091) registers it in "privatelink.cognitiveservices.azure.com". However, when creating an Azure OpenAI resource it should go under zone "privatelink.openai.azure.com".
The policy itself only has one zone parameter, so cannot specify both "privatelink.openai.azure.com" and "privatelink.cognitiveservices.azure.com", and Azure OpenAI resource matches the privateLinkServiceId criteria "Microsoft.CognitiveServices/accounts" as most Azure AI services.
The Azure OpenAI resource has a "kind" property that flags the "Microsoft.CognitiveServices/accounts" as OpenAI, but the private endpoint resource does not have any similar property usable in policy to distinguish it from private endpoints for regular cognitive services accounts.
Steps to reproduce

Create an Azure OpenAI resource with private endpoint without DNS integration.
Built-in policy runs over it and registers in the wrong zone.

Screenshots

Opened a bug for built-in policy definition here.

Hi @juanandmsft, thanks for raising this issue. May I kindly ask that you open an Azure support ticket for this issue so that it can be prioritized by engineering based on customer impact. This will be far more effective than our team tracking down owners and asking for them to address this (which we will do anyway).

Hi @juanandmsft! We've reached out to PG to address this issue and are tracking it in the backlog. As this is a built-in policy, there isn't much the ALZ team can do to resolve the issue. I highly recommend asking customers impacted by this to open support tickets to increase visibility and help PG validate impact - which will help them prioritize.
I'll be closing the issue here, but feel free to re-open or create a new issue should you need to.

@juanandmsft PG have acknowledged the issue and have suggested the following workaround: https://github.com/microsoft/industry/issues/380


Autocomplete component to have a default value prop

hi @MeisamMulla,
You did a great job in this project and it saves a lot of time to setup google autocomplete places api in vue projects.
I would like to have a defaultValue optional prop in the component to set a value of the autocomplete input field
My use case here is to show the user which place he selected previously.

closing this, figured out a way.


fix(deps): update terraform github.com/terraform-ibm-modules/terraform-ibm-key-protect-key-ring to v2

This PR contains the following updates:

Package
Type
Update
Change

github.com/terraform-ibm-modules/terraform-ibm-key-protect-key-ring
module
major
v1.0.1 -> v2.0.0

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, click this checkbox. ⚠ Warning: custom changes will be lost.

This PR has been generated by Renovate Bot.

:tada: This PR is included in version 2.0.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Fix Conversion project incoming trust sharepoint link edit view

Changes
The Conversion project's incoming trust sharepoint link edit view was displaying the outgoing trust sharepoint link field too.
This fixes this issue to correctly display only the incoming trust sharepoint link field.
Checklist

[x] Attach this pull request to the appropriate card in DevOps.
[x] Update the CHANGELOG.md if needed.

Might be worth adding a quick check in the feature tests users_can_change_the_sharepoint_links_spec.rb to check the correct fields are showing for transfers & conversions


the term 'xxxxxx' is not recognized as the name of a cmdlet

Hi,
Trying to run this via a simple script, that will just 'write-output 123', and I'm getting an error when trying to execute the one-liner:

any ideas? :)

I cannot reproduce this one. I would guess the encoding on your input file is wonky. Try recreating that file and see if that helps.
You can also try
[IO.File]::ReadAllText("C:\temp\Invoke-mimikatz.ps1")
and see if the script displays as expected. That is how the tool gets the script content to encode.


Inject code to last candidate

Rather than injecting into the first match of "" , it will inject into the last found occurrence of it. This will avoid overwriting code following the tag. Also works for the head regex.
PR Type
What kind of change does this PR introduce?
Fix injection candidate regex

[x] Bugfix
[ ] Feature
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other:

What is the current behavior?
matches the first occurrence of a tag and overrides code
Issue Number: N/A (there were multiple issues referring to this issue)
What is the new behavior?
matches the last occurrence of a tag
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Other information

adjusting the head regex may not fix the issue, but the body fix will, and it is the most commonly used / reported issue

I'm facing an issue due to this. Is there any plan to merge this fix?
For example:
<!DOCTYPE html>

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

Results in:

I'm facing an issue due to this. Is there any plan to merge this fix?
Highly doubt it. The extension hasn't been updated for over a year.


⚠ ClamAV has degraded performance

In 5d6a1c9, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 276 ms

Resolved: ClamAV performance has improved in 9b26b80.


handle false positive probability correctly

https://github.com/hashlookup/poppy/blob/28f37fac7ceb0184598831c755fd6e482dc5aa8a/poppy/src/bin/poppy.rs#L71
I would guess that the false positive probability is between 1 and 0, but that is not clear nor checked after setting this parameter.
Maybe it is useful to clamp the value (https://doc.rust-lang.org/stable/core/primitive.f64.html#method.clamp)
I misunderstood this value as a percent value and this leads to funny results.
user@system:   wc -l result_*
     37 result_0.0001.txt
     37 result_0.001.txt
     37 result_0.01.txt
     37 result_0.1.txt
 712976 result_1.0.txt
    458 result_2.0.txt
    458 result_3.0.txt
     70 result_5.0.txt
     37 result_10.0.txt
     37 result_15.0.txt

Hi @be-a-panther,
Thanks for reporting the issue.
Yes indeed the value is supposed to be in ]0;1]
I'll try to fix this asap


Fix Project history content minor changes in README.md file

I have fixed Some minor changes for "#Project history" content in  README.md file

@jrfnl
Would you please check this PR.

Thanks @dixitadusara !


Create dockerdev profile #5 done

Fixes - Create dockerdev profile #5
Description
Create the application-dockerdev.properties file
Modified docker-compose.run.xml
Modified the Dockerfile
Verified that compose.yaml application is launched using the new profile
Screenshots

@7vk Looks good. Thank you.


Toggle checkbox

Describe the bug
Not toggling the checkbox as needed.
I experience this issue when working with Telerik WinForms demo apps hub using Bug Tracker application
Code snippets
tried a few approaches of code:
option 1 - working for most of the checkbox control
_checkBox.Toggle();
option 2 - tried for this issue(following this issue https://github.com/FlaUI/FlaUI/issues/370):
checkbox.Focus()
checkbox.Patterns.Toggle.Pattern.Toggle();
checkbox.ToggleState = ToggleState.On;
checkbox.IsChecked = true;
Screenshots

the checkbox surrounded in red
Additional context
Add any other context about the problem here.

Ok, thanks for the answer(and good to hear that it is still supported)

Does it work now?

I have similar/same issue with checkboxes in WPF application. I don't use Telerik controls, and my checkboxes are built on templates (MVVM).
In FlaUInspect they are visible correctly with proper type CheckBox, TogglePattern is supported.
However standard Toggle() and assignment to IsChecked don't work as expected, so I have to use workarounds this way:
        public static void CheckBoxToggle(this CheckBox cb)
        {
            Mouse.Click(cb.BoundingRectangle.Center());
            Delay(CLICK_DELAY);
        }
        public static void CheckBoxSet(this CheckBox cb, bool check)
        {
            if (cb.IsChecked == check)
                return; // nothing to do if the check box is already in the same state
            cb.CheckBoxToggle(); // toggle it
        }


Patch 1

dear @papacrouz
Hello
Your new miner has made a lot of changes. I am new to Python programming and still do not know many commands.
Of course, your explanation for the new method, the choice of nonce number search method was very interesting and innovative.
Well, a new question and challenge:
How to turn this miner into a GPU miner?
I saw an old code example here:
https://github.com/Kiv/poclbm
Of course, this miner is very complicated for me. And it will still be difficult for me to understand how it works due to the old Python version used.
Of course, I guess the developer put in a lot of effort to write it, which is commendable.
But I guess you can write a gpu instance of your miner due to your very high skill.
Another question, how many transactions does Miner normally receive? And what does this depend on? Is this determined by the solockpool pool?
Thank you very much, I am waiting for your answer.
Yours sincerely, Hadi

Report a problem:
Where can I get the "context" module? I could not even install it via pip.
Didn't you mean "contextlib"?


How to define ESG & ESG-H?

I thought about adding
"fulfillsRequirementsOf": {
          "type": "array",
          "items": {
            "$ref": "common.json#/$defs/reference",
            "description": "If the component fulfills the requirements for example of a standard about a certain component type, then this standard can be defined here."
          }
}

to the categories of a component. But this could lead to confusion were to define that certain requirements were fulfilled. Usually, it's done within method. One option would be to already create domains like structural or safety and to add method there. Another option is to add only more strings to categories.

@HelenRoseWilson When I want to define the categories of a glass pane, the array of layer categories currently offers only glass, laminate and coated. Which terms could I add for "Einscheibensicherheitsglas", "ESG-H" and "begehbar"?

@HelenRoseWilson When I want to define the categories of a glass pane, the array of layer categories currently offers only glass, laminate and coated. Which terms could I add for "Einscheibensicherheitsglas", "ESG-H" and "begehbar"?

Am 19.01.2021 um 13:02 schrieb Christoph Maurer:

@HelenRoseWilson https://github.com/HelenRoseWilson When I want to
define the categories of a glass pane, the array of layer categories
https://github.com/ise621/building-envelope-data/blob/cc1de2f8f3f7bac3003155fe9259fdce61631171/schemas/layer.json#L7
currently offers only |glass|, |laminate| and |coated|. Which terms
could I add for "Einscheibensicherheitsglas", "ESG-H" and "begehbar"?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ise621/building-envelope-data/issues/168#issuecomment-762798001,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQVJLYXD5VIGTF3NSKH6ALLS2VYDVANCNFSM4WIVIJCA.

Am 19.01.2021 um 13:02 schrieb Christoph Maurer:

@HelenRoseWilson https://github.com/HelenRoseWilson When I want to
define the categories of a glass pane, the array of layer categories
https://github.com/ise621/building-envelope-data/blob/cc1de2f8f3f7bac3003155fe9259fdce61631171/schemas/layer.json#L7
currently offers only |glass|, |laminate| and |coated|. Which terms
could I add for "Einscheibensicherheitsglas", "ESG-H" and "begehbar"?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ise621/building-envelope-data/issues/168#issuecomment-762798001,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQVJLYXD5VIGTF3NSKH6ALLS2VYDVANCNFSM4WIVIJCA.

--
Dr Helen Rose Wilson
Solar Building Envelopes
Energy-Efficient Buildings
Fraunhofer Institute for Solar Energy Systems
Heidenhofstr. 2, 79110 Freiburg i. Br., Germany
Phone (bus.): +49 761 4588-5149
Phone (priv.): +49 761 441247
<EMAIL_ADDRESS>Web: www.ise.fraunhofer.de https://www.ise.fraunhofer.de


RFC: rename PyString -> PyStr, and PyLong -> PyInt

We currently have PyString to represent Python str, and PyLong to represent Python int.
While PyString is reasonably clear, PyLong is primarily a historical accident based on the fact that Python 2's integers were split between int and long types, and so the Python C API is based on PyLongObject etc.
Interestingly, we do currently expose PyInt as pyo3::types::PyInt as an import alias.
Similar history applies to PyString; we currently have a PyUnicode type alias kicking around which is again a throwback to Python 2's str and unicode split (they became approximately bytes and str respectively in Python 3).
I would propose the following:

Rename PyString to PyStr, and leave PyString and PyUnicode as deprecated type aliases for a couple versions.
Similarly rename PyLong to PyInt, and leave PyLong as a deprecated type alias for a couple versions.

The only counter-arguments I can see:

PyString -> PyStr is not worth the churn. I could accept this if people hold this strongly, though I also think such a migration is a straightforward find-and-replace and improves alignment with the Python naming.
PyLong -> PyInt is unappealing because we build upon PyLong_ C APIs. After some consideration I find this a non-argument; PyInt is a much clearer name in my opinion, and I don't think we would ever consider PyUnicode as better than PyStr or PyString. So by extension I see no reason to prefer C-API consistency of PyLong over PyInt.

Subject to agreement from maintainers that we want to make this change, I think this is a relatively easy change to implement, so tentatively marking as "Good First Issue".

Makes sense to me!

for me PyString make sense cause it's allocate.

for me PyString make sense cause it's allocate.

I do like this argument tbh; and if we chose to leave PyString as-is and just update PyLong -> PyInt, this argument would be a somewhat reasonable justification (alongside the benefit of avoiding churn).

I also think PyString is fine as is. PyStr can also make the impression that is would somehow be coupled to Rust's &str, which it is not really. Renaming PyLong to PyInt sounds reasonable to me, given that long is neither a thing in Rust or Python, and PyInt makes is clearer what it refers to.

It sounds like the conclusion here is PyString will stay as-is (we can deprecate the PyUnicode alias, I think, though).
On the other hand, we have broad agreement that PyLong -> PyInt is desirable.
Just need someone to find a moment implement, in that case 👍

Hi @davidhewitt
I would love to do changes for PyLong -> PyInt.
I'm still a beginner in rust & open-source. So, this issue would be a good starting point for me

Please feel free to go for it! I suggest starting with a PR and we can review and help iterate that way.

@davidhewitt is this issue ready to be closed? Seems the PR has been merged

@davidhewitt is this issue ready to be closed? Seems the PR has been merged

David mentioned deprecating the PyUnicode, that sounds like good idea to me :)

Yes I'd still like to see that deprecated. Should be a fairly straightforward PR for someone able to find a moment 😁

I see, I am happy to work on deprecating the PyUnicode alias, do we need to produce a warning or what's the plan for deprecating it other than removing it from the code?

We can use the #[deprecated] attribute on a type alias like we did in #4347


STORM-4055 Kafka Consumer ConcurrentModificationException fix

What is the purpose of the change
Kafka Consumer object is not thread safe. It must not be passed among threads for the purpose of collecting metrics. Instead Kafka Admin client can be used.
How was the change tested
mvn tests & tested collecting Console Metrics for a Kafka Spout in local cluster.

Might be something in your area of in interest @avermeer ?


Fix screenshot razor pages

This fixes the issue where the screenshot was selecting the wrong option.
Fixes #8394

Thanks @daveabrock

Has this been published yet? It appears so, but the corrected image doesn't appear live even with clearing the cache.

I just did a merge to live. It should show up in 15 minutes.


Lazy values are not shown if they get cached across trials

Is your feature request related to a problem? Please describe.
Not sure if this is a bug or intentional, just something I noticed when setting up an MRE from the docs.
Describe the solution you'd like
When running a trial with lazy outputs, where one of those lazy outputs is cached from a previous run, it does not get shown in the artifact manager report. I think I understand why you might not want to ever load in a lazy object to show the value, so I'm a little confused as to why it does happen, but only for non-cached outputs.
Describe alternatives you've considered
🤷♀
Additional context
Here's the script I was working with:
from dataclasses import dataclass

from curifactory import ArtifactManager, ExperimentParameters, Record, stage
from curifactory.caching import Lazy, PickleCacher

@dataclass
class MyParams(ExperimentParameters):
    number: float = 1.0

@stage(inputs=None, outputs=[Lazy("initial_value")], cachers=[PickleCacher])
def get_initial_value(record):
    my_value = 5
    return my_value * record.params.number

@stage(inputs=["initial_value"], outputs=["final_value"], cachers=[PickleCacher])
def multiply_again(record, initial_value):
    return initial_value * record.params.number

if __name__ == '__main__':
    manager = ArtifactManager("experiment_one")
    param_grid = [MyParams(number=number) for number in (0, 1, 2, 2)]
    for param in param_grid:
        record = Record(manager, param)
        result = multiply_again(get_initial_value(record))
    manager.generate_report()

And the result in the html report:

Good catch, this was intentional back when we first added lazy cache loading because we had no simple way around it at the time, but this would be a good thing to address now and it should be relatively trivial to do so.
The metadata that gets saved with each artifact includes the preview string ("(int) 10" etc), so this should just be a matter of grabbing it from the metadata file if it's a Lazy instance, without needing to load the underlying artifact.
I'll queue this up to fix!

🙏


vSphere cloud provider: re-use session for vCenter logins

Resolves #34491

Back port:  https://github.com/kubernetes/kubernetes/pull/34892
Once merged upstream.


Assembly Reference Issue

Currently getting the following assembly reference issues(have installed all the needed dependencies and updated Visual Studio):
Error	CS0246	The type or namespace name 'BaseVirtualScroll<>' could not be found (are you missing a using directive or
Error	CS0115	'VirtualScroll.BuildRenderTree(RenderTreeBuilder)': no suitable method found to override
Any suggestions on what I am missing?

Me too.

me too.
https://github.com/SamProf/BlazorVirtualScrolling/blob/master/src/BlazorVirtualScrolling/VirtualScroll.razor
Maybe VirtualScroll.razor need @namespace BlazorVirtualScrolling ?

Me too.

Me too.


Using checkFullPageScreen method, capturing images with duplicate viewport and is not scrolling to the bottom of the page

NOTE: Be aware of the fact that this module is only a plugin that provides all functionality from webdriver-image-comparison. So please check if this is an issue with this plugin or with webdriver-image-comparison.

Environment (please complete the following information):

Node.js version: 12.16.3
NPM version: 6.14.4
Browser name and version: Chrome 112/latest
Platform name and version:  Windows 10
WebdriverIO version: 7.6.1
wdio-image-comparison-service version:  5.0.3

Config of WebdriverIO + wdio-image-comparison-service
services: [
[
"image-comparison",
{
// Some options, see the docs for more
baselineFolder: join(process.cwd(), "./tests/Baseline/"),
formatImageName: "{tag}-{logName}-{width}x{height}",
screenshotPath: join(process.cwd(), ".tmp/"),
savePerInstance: true,
autoSaveBaseline: true,
blockOutStatusBar: true,
blockOutToolBar: true,
ignoreNothing: true
// NOTE: When you are testing a hybrid app please use this setting
// isHybridApp: true,
// Options for the tabbing image
},
]
]
Describe the bug
the checkFullPageScreen() does not seem to be scrolling. it takes several screenshots of the same top viewport instead of scrolling and taking screenshot.
To Reproduce
Steps to reproduce the behavior:
Access url : https://www.tangerine.ca/app/#/login/login-id
Attempt to take full page screenshot
await browser.checkFullPageScreen("TangerinloginfullPage", {
fullPageScrollTimeout: 3000,
});
Expected behavior
A screenshot of the entire page should be taken without duplicate viewport.
****Actual behavior Screen *****

experiencing the same. It seems to calculate the number of screenshots from the content height correctly and takes them but the methods sent to selenium getDocumentScrollHeight and scrollToPosition seem to be ignored resulting in duplicate screenshots of the top of the page.

Thanks for reporting!
It seems to me that the application itself is not scrollable but a container of it. It seems a solution to this would be to allow checkFullPageScreen to take a new parameter that points to an element for where the scrolling is suppose to happen. If element is given it should be passed into scrollToPosition.ts or handle this differently.
We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers!


chore(ff): add ff for upserting pipeline.

https://armory.atlassian.net/browse/CDSH-355
Tested locally

coverage: 54.625% (-0.3%) from 54.939% when pulling f6704c07d545e559eadc79daf98a2d2deeb24ef0 on CDSH-355 into 9e0f5bb2258e838e5275693489795c92e5fd227b on master.