Visual artefacts present in upscaled images when device is set to 'mps'

To see the code, please refer to: https://github.com/ericpesto/stable-diffusion-mac-background-image-generator/blob/b1b14ea9b7fbefd1976478f4becfd5d529b2a956/main.py#L66-L74

+1. I'm having the same problem. Did you find out how to solve it?

Found a solution when using mps:
Inside the folder RealESRGAN in the main.py, you must first call cpu() and then clamp.
Code in the repo line 77:
sr_image = res.permute((0,2,3,1)).clamp_(0, 1).cpu()
New code:
sr_image = res.permute((0,2,3,1)).cpu().clamp_(0,1)

Can confirm, works for me too, nice find!


I would like to jump into this organization.

My Github Username: hades-0701

Welcome to openAOD! I have sent an invite to join our organization. We also recommend joining our Discord server : https://discord.gg/wZ83xSJSsN. If you have any questions regarding contributing or anything else feel free to write here or ping me on Discord. Cheers. Have a great day ahead of you!


PyWal not reading/generating user templates

I must be missing something but I can't get PyWal to generates files based on the templates set in ~/.cache/wal/templates/
Here's my  ~/.cache/wal/ directory:
❯ ls
colors             colors-konsole.colorscheme  colors.scss              colors-wal-dmenu.h   colors-waybar.css  templates
colors.css         colors-oomox                colors.sh                colors-wal-dwm.h     colors.Xresources  wal
colors.hs          colors-putty.reg            colors-speedcrunch.json  colors-wal-st.h      colors.yml
colors.json        colors-rofi-dark.rasi       colors-sway              colors-wal-tabbed.h  schemes
colors-kitty.conf  colors-rofi-light.rasi      colors-tty.sh            colors-wal.vim       sequences

and my  ~/.cache/wal/templates/ directory:
❯ ls
colors2  dunstrc

The content of my colors2 file (created for testing purposes):
{color0}
{color1}
{color2}
{color3}
{color4}
{color5}
{color6}
{color7}
{color8}
{color9}
{color10}
{color11}
{color12}
{color13}
{color14}
{color15}

Output of wal:
❯ wal -i ~/Downloads/wallhaven-ym56zg.jpg
[I] image: Using image wallhaven-ym56zg.jpg.
[I] theme: Set theme to _home_arbaes_Downloads_wallhaven-ym56zg_jpg_dark_None_None_1.1.0.json.
[I] colors: Found cached colorscheme.
[I] wallpaper: Set the new wallpaper.
[I] sequences: Set terminal colors.
[I] export: Exported all files.
[I] export: Exported all user files.
[I] reload: Reloaded environment.

Any hint ?

Damnit reread the wiki page, i used .cache instead of .config... Don't bother me, I'll show myself out.


Bump version to 6.0.0

Includes

#99 Booleans should be true and false

MAJOR change because it alters the parameters passed to selection buttons. If you have been passing a checked attribute to any options then this should be removed and replaced with a string/array of current values for the whole set of options.
🍰_Pull request_ 💯

Where is the cake?


Issue of establishing driver connection with Neo4jGraphStore

Face the issue of establishing driver connection with Neo4jGraphStore:
ERROR:neo4j.io:Failed to write data to connection IPv4Address(('e9b1edc9.databases.neo4j.io', 7687)) (ResolvedIPv4Address(('<IP_ADDRESS>', 7687)))
Failed to write data to connection IPv4Address(('e9b1edc9.databases.neo4j.io', 7687)) (ResolvedIPv4Address(('<IP_ADDRESS>', 7687)))

Hi @Y-Sui! Please make sure check that your instance is still running.

Does it say this error but still work?
I had the same, the graph database was working but it still gave the error
But it's not really a big deal : https://github.com/neo4j/neo4j-python-driver/issues/706#issuecomment-1102269433


add README SSL doc link

add README SSL doc link

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

merged, thx


support qemu lazy mode

I make qemu match LazyDriverContext and add three items in QemuContext.So we can launch Qemu with net and block device mounted .The "interface" and "image" in QemuContext is used to store the net and block device configuration.The "callbacks" is used to send the event that devices is ready, after that we can start pod.

gofmt needed


Support for conditional breakpoints

It would be great if we could add conditional breakpoints, like this:

I was thinking it would be pretty easy to instead of just (BrightScriptDebugSession.ts line 605ish) doing:
lines[lineIndex] = `STOP\n${line} `;

We could instead do something (psuedocode):
if (breakpoint.isConditional()) {
  lines[lineIndex] = `if ${breakpoint.condition} then : STOP : end if\n${line} `;
} else {
  lines[lineIndex] = `STOP\n${line} `;
}

I ran into an issue when trying it out: DebugProtocol.Breakpoint doesn't have the conditions in it but DebugProtocol.SourceBreakpoint does. I haven't spent any time digging into it, so no idea how hard it'll be. I'll see if I can take a look soon though.

@nsillik  Been testing this and I think I have it working in a very ruff form. I will  continue to explore this today.

Fixed in #135

@nsillik we can close this issue now correct? I added support for this a couple months ago unless you have been having issues with it?


Support for AWS ECR

From @edkellena on February 1, 2018 9:21
Dependabot is complaining that it can't authenticate to our ECR docker registry and we should add the login details to the dashboard.  However AWS works differently and you need to run their CLI to generate your login creds (which are time-limited).
Something like ${aws ecr get-login --no-include-email --region $REGION}
An interesting problem for you to solve.  We could add IAM credentials into the dashboard to allow you to do this??
Copied from original issue: dependabot/feedback#81

Hello. Is there any love for this issue?

There is and in fact @nesl247 tweeted about it a few hours ago.
I'm keen on this but need to do some research on how it would work.

@fernandocarletti and I had just been discussing it prior to this (both work for the same company).
I wonder if a possible quick solution would be to allow the registry configuration in dependabot to be accessible via an API. We could then run a cronjob that calls that API with updated credentials every 11 hours or whatever.
That is until a more permanent solution could come about. Is there an API for updating it?

@greysteil I've configured our dependabot with a username and password that should work with AWS, however, it still doesn't appear to be finding any updates.
How does dependabot check to see what newer tags there are?

@nesl247 I'm crunching on getting Terraform support out this evening, but am planning to focus on Docker tomorrow. Barring a sea of bugs I'll get this sorted then 🙂

So I'm thinking, and hoping I'm wrong, but it may be that AWS does not fully support the registry API. This is hard for me to debug since I don't know how to. I have written a small script that I can execute that will actually connect to api.dependabot.com and provide a docker registry entry with a username and password that should work for pulling.
However, dependabot is not finding any new tags for one of our applications. In my case, the tags are short commit references like 62c0ade.
Sounds good @greysteil

Ah, it may be that Dependabot just isn't picking those up because they're not version-like, and it wouldn't have a way to order it.
Have you had a look at dependabot-script, to step through the logic there? It uses dependabot-core in basically the same way that the main Dependabot updater does, and is what I use to debug these issues if/when I need to step through the logic.

I wasn't aware of dependabot-script, good to know.
I'm not sure how we should do our tags then. I was so focused on getting dependabot connected to AWS I wasn't thinking about that. In my head, it was like "well, git knows this is newer than the last..".

We're switching to tagged releases. We were moving very fast, and skipped thinking about tagging for dependency docker images for us. So we'll keep this ticket back on track which is the support for ECR.

I was hoping to get to this yesterday but spent the day on a couple of Python issues. It’s top of my list for the next few days.

This is done! Sorry it took a while. That changes are in https://github.com/dependabot/dependabot-core/commit/e92672c2cb10a59e7646583bff60827222ccf099, and to use it you'll need to give Dependabot API keys for you AWS account (scoped using IAM to have read access only to ECR, of course).
I'm going to update the front-end to make it clearer how to add credentials.
Thanks for the feature request!

Hey that's awesome! I guess we'll wait on the frontend as I am not quite sure how to do it.

Frontend is added now (well, it's just some additional comments in the description of the fields under "config variables"). Happy to talk you through if not clear.

I saw that after I commented and had hoped I got the comment changed in time, guess not 😄 .

Looking into it!

Unfortunately we have a new issue.
build(deps): bump docker-php from 7.2-0.3 to 7.2-9658143 in /docker/cart-sync
This should have used 7.2-0.3.1. Instead, it's changed to the commit hashes.

Thanks for the ECR support, that part is great. I'm not sure if my above comment should be made into a new issue or not. I'm doing a new response since I know how quickly you respond sometimes 😄

Huh, that one is tricky! Did we just get unlucky here and have a commit sha version that happened to start with 7 digits (no letters)? If so I think the solution might be asking dependabot to ignore that specific version - I’ll make sure that’s possible for Docker now.

It's quite possible. Most of our hashes are 7 digits though, so unless this is permanently fixed, we're back to not using dependabot, or we stop using tags, which we started because of our previous discussion.

That's fine - I can put something in that stops it from switching from more traditional looking versions to 7 digit numbers. I'll do that now.

Sorry, I think I sounded a bit snippy, not my intention.
I think as long as the current tag is a version, the logic should be to not switch to commit hashes, even if it is newer. I would think the only time to switch to commit hashes if it it is currently using latest, or it already uses a hash.

Oh, hang on, I might be able to do one better. Give me a moment...

Yep, have made it work without the need to change the prefix to be non-numeric. Deploying now.

It's working beautifully. Thank you so much for the fast turnaround.

No worries - all helps to make Dependabot better! 🎉

One quick question, when using the api for updating private deps, do we have to specify docker-php for example as the dependency name, or the full namespace of the docker image? For example, something.something.aws.amazon.com/docker-php?

Just docker-php (or whatever the name in the PR title you're seeing is bump <name> from ...). 🙂

Awesome, thanks.


FancyZones make windows clip below taskbar

Environment
Windows build number: Microsoft Windows [Version 10.0.19613.1005]
PowerToys version: 0.19.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce
Use the SHIFT feature of Fancy Zones and place window in any position that's next to the taskbar.
Expected behavior
The window does not clip into the taskbar area.
Actual behavior
The window goes below the taskbar where I cant click it anymore.
Screenshots
https://imgur.com/a/0uGRHWQ

I have the same issue quite annoying for working with Teams.

I have the same issue. It occurs after a reboot, and after the monitors went to sleep. Opening and closing the fancy-zones manager on the affected monitor once (without any changes) fixes this issue. It first occurred after I updated from 0.18.4 to 0.19.0.

I have the same issue. Tried moving the taskbar to the top, and edited my zones to reflect that and now my app windows dont follow the zones on the bottom, and the application title bar gets hidden behind the taskbar on top. However when resizing without fancy zones it works.

This is the bottom of my screen, I made sure the zone was edited to go all the way to the bottom, but the gap shown is about the height of the taskbar which is now up on top (it's almost like the entire zone was pushed up to allow space for the taskbar thinking it would be on the bottom). The window behind is VSCode that was maximized regularly with windows.

Im on v0.19.0

@carldressler @timluyten @ichdasich @jackdonovan
it's a regression that will be fixed in 0.20.
As a workaround reapply the zoneset and it should solve the problem until you move the taskbar again.
Closing as duplicate of https://github.com/microsoft/PowerToys/issues/4694
Thanks.


Refactor authentication API into pipeline format

Refs #5508

Adds tests for authentication API methods that didn't have them.
Adds some missing catch handlers for inverted tests.
Adds a new error type TokenRevocationError that returns an HTTP status code 503 in the event there's a failure during token revocation so that the client is aware the token may still be valid.
No longer consider token_type_hint during the revocation process. When presented with a token /revoke will do its best to invalidate even without a valid hint.
Do not attempt to recover from missing owner user during setup. Missing fixtures should be fatal.

Hey, thank you for taking on this issue!
Although it looks like an oversight, not returning an error for invalid tokens was done according to the specification (https://tools.ietf.org/html/rfc7009):

The authorization server responds with HTTP status code 200 if the token has been revoked successfully or if the client submitted an invalid token.

Note: invalid tokens do not cause an error response since the client cannot handle such an error in a reasonable way.  Moreover, the purpose of the revocation request, invalidating the particular token, is already achieved.

Not ignoring token_type_hint was a bug :+1:.

An invalid token type hint value is ignored by the authorization server and does not influence the revocation response.

Although it looks like an oversight, not returning an error for invalid tokens was done according to the specification (https://tools.ietf.org/html/rfc7009):

That's how this is intended to work. An invalid/non-existent/previously revoked token will return a 200 status error.  However, if there's another type of error encountered (e.g., the server is somehow in a bad state) then a 503 status is returned so that the client knows that the token may not have been revoked and is free to retry at a later time. (https://tools.ietf.org/html/rfc7009#section-2.2.1)

oh, thanks for clarifying :+1:

Thanks for taking the time to review!


⚠ Bofrost.de has degraded performance

In 3c681c2, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1747 ms

Resolved: Bofrost.de performance has improved in 1fe9ca9 after 6 minutes.


Consistently use component level attributes

Context
Component-level attributes were only used if the component metadata was using Gradle
metadata. This was particularly confusing, as it was possible to define a component-
level attribute in a component-metadata rule, but it would be ignored during matching.
It was possible, however, to add attributes on variants of Ivy or Maven metadata,
but then the error messages in case there wasn't any match was even more confusing:
"Because there are no configurations with attributes"
This commit modifies the resolution engine so that it's possible to use component
level attributes independently of whether the underlying component metadata was
constructed from Ivy, Maven or Gradle metadata. It also changes the error messages
to mention either "configuration" or "variant" depending on whether the matching
strategy was using variant-aware dependency management or legacy configurations.
It was confusing because we have the IMPROVED_POM_SUPPORT flag which activates
variant construction from Maven metadata. This meant that in practice, if the flag
was active, we were using variants, but still the component level attributes were
not taken into account. If the flag wasn't active, then we would fail with the
error above, despite the fact we had rules on "configuration backed variants".
The separation of configuration/variant in error messages makes it easier for
us to understand in which case we are, since this wasn't always obvious. If we
see "variant", then now we know that the selection failed using the variant-aware
matching. If we see "configuration", then we know it's using the legacy mode.
This commit also needed to make the difference between "this component has no
variant" and "this component doesn't provide any mapping to variants", therefore
the introduction of the Optional on getVariantsForTraversal. This gives us
the opportunity to give the correct error message in case of failure using
the legacy mode.
Last but not least, this introduces a change in the attributes visible on variants
and artifacts. Before this commit, dependending on whether metadata was
Gradle metadata, the "status" attribute would be found or not. Now, the component
level attributes are always merged to variant and artifact attributes, which
means that it's consistent independently of the format. This can be a breaking
change, but a low risk one.
Context

Contributor Checklist

[ ] Review Contribution Guidelines
[ ] Make sure that all commits are signed off to indicate that you agree to the terms of Developer Certificate of Origin.
[ ] Check "Allow edit from maintainers" option in pull request so that additional changes can be pushed by Gradle team
[ ] Provide integration tests (under <subproject>/src/integTest) to verify changes from a user perspective
[ ] Provide unit tests (under <subproject>/src/test) to verify logic
[ ] Update User Guide, DSL Reference, and Javadoc for public-facing changes
[ ] Ensure that tests pass locally: ./gradlew <changed-subproject>:check

Gradle Core Team Checklist

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation
[ ] Recognize contributor in release notes

@adammurdoch Would you mind taking a quick look at this PR? I'm in particular wondering why there was a condition in DefaultArtifactTypeRegistry to only map attributes if the variant attributes were empty. I removed the condition to make my tests pass, and I had to adjust a few tests:

remove the one which checks that mapping doesn't happen if the variant doesn't have attributes
add the "status" attribute to the expectations for artifacts too, since it's now inherited from the component, and therefore the variant.

After this change, it should be pretty simple to check, for example, that a dependency graph only contains components with a given status.

I'm optimistically merging this, let me know if there's a problem.


ImageCache should check the file last updated timestamp

Changes to images (via updated timestamp) should be considered a dirty cache for the given file entry.

This has been added https://github.com/nhmkdev/cardmaker/commit/c2b4dca0194a6f4bdf2bbd4e1021afc23b667f7e


Add env vars into lambda functions

Is your feature request related to a problem? Please describe.

I have a lambda function in my amplify project that needs access to environment variables, e.g., Stripe keys. I thought I could set them in the env vars in the AWS Amplify Console or somewhere else, but it turns out that those don’t get passed through to lambda functions.
Describe the solution you'd like

I would love to be able to expose environment variables that I set in the AWS Amplify console (or some other generalizable and secure way that avoids having them encrypted and not stored directly in my source code) to my Amplify project’s lambda functions.
Describe alternatives you've considered

For now it appears that I have to go into the AWS lambda console and set these environment variables by hand.

Is there any progress on this front, I would like to be able to create environment variables in my lambda cloudformation template by passing them as parameters to the template. (ideally during an 'amplify push')

@hisham Today we released an updated flow as a part of the functions category to pass resource identifiers like the cognito userpool ID (managed and genrated by the Amplify CLI) to a lambda function as environment variables and also populate the corresponding lambda execution role to access these resources. You can install the latest version of the CLI and go through the amplify update function flow to update your existing functions to access your Amplify generated resources in the project.

@kaustavghosh06 are there docs on this?

@kaustavghosh06 How can you access the DynamoDB table generated using amplify add api? I it seems like you can only access tables that are generated by amplify add storage.
PS: I tried reverse engineering how Amplify adds environment variables. I created a Lambda function using the rest templateand one using thecrudtemplate. I then looked at their respective{name}-cloudformation-templatefiles to see how they get which env variable. I tried manually adding my AppSync's DynamoDB's ARN, but I couldn't figure out how Amplify adds env names. If you could provide a name to manually add your DynamoDB's ARN and table name we could use that as a workaround untilamplify update function(oradd) recognizes the DynamoDB  created by amplify add api`.

I also started using AWS Secrets Manager. The ENV environment variable is already provided in each lambda, so I did the following to use environment specific secrets:
const secret = await secretsManager.getSecretValue({
  SecretId: `${process.env.ENV}/appName/scopeName`
}).promise();

That allows you to create secrets with the following patterns:

dev/app/scope
staging/app/scope
prod/app/scope

@kaustavghosh06 why this issue was closed man? "Today we released an updated flow as a part of the functions category to pass resource identifiers like the cognito userpool ID ..." where are the docs? I saw this same comment from you many times here in many issues, sorry dude but we're not clairvoyant, we just want to use amplify. Thanks.

@LucasAndrad Sorry for not attaching a link to the docs when closing the docs. But here's the doc reference - https://docs.amplify.aws/cli/function#function-templates You can jump to - You can update the Lambda execution role policies for your function to access other resources generated and maintained by the CLI, using the CLI

@kaustavghosh06 I think what @LucasAndrad  meant is that your permission related solution is a workaround which requires custom AWS Resources, and does not allow one to add new ENV vars to a Lambda from the CLI.
I think the ticket was meant as a way to be done through the CLI, which would be nice to have.

Yes, the issue I am running into is getting non AWS related environment variables from Amplify to Lambda without having to access the console and keeping the configuration mostly in code. If there was a way either via the CLI or the Cloudformation stack (AS A REF - so secrets are not in source repo), things would be a lot more convenient.

@mrcoles Ah yes, I agree RE: secret keys. We're using AWS Secret Manager for those (and giving the Lambda access to the correct secret):
const AWS = require('aws-sdk')

module.exports = async () => {
  const secretsManager = new AWS.SecretsManager()
  const secret = await secretsManager.getSecretValue({ SecretId: 'YOUR_KEY' }).promise()
  if (!secret) {
    throw new Error('Secret not found')
  }
  return JSON.parse(secret.SecretString)
}

Add to the PolicyDocument in your CloudFormation template:
{
  "Effect": "Allow",
  "Action": [
    "secretsmanager:GetSecretValue"
  ],
  "Resource": {
    "Fn::Sub": [
      "arn:aws:secretsmanager:${region}:${account}:secret:YOUR_KEY",
      {
        "region": {
          "Ref": "AWS::Region"
        },
        "account": {
          "Ref": "AWS::AccountId"
        }
      }
    ]
  }
}

I'm very close to getting this working but getting an error saying the lambda does not have access to call getSecretValue on the secret arn. I can see that the policy document is being inlined as I expect in the lambda execution role. The only thing I can think of is that the error says it's an assumed role trying to call getSecretValue rather than the lambda execution role. Am I adding the policy in the wrong place? I tried updating the resource policy of the Secret to include my root account but that didn't change anything.

@ventinus It's not clear what you are or are not doing so I'm going to run down the gamut. First, make sure your lambda and secret share regions. Otherwise in your lambda you may need to switch regions before querying secrets manager. Now, when I set this up I setup the permission as * (I should probably adjust that!), so it may be that you need another permission like ListSecret or DescribeSecret, honestly I'm not sure. I'd try adding read permissions if the error is unclear. If that's not the issue, you might not have put the cloudformation in the right place. It should go in the cloudformation json in the root of the function you created in amplify. While you can setup your own role, I usually just piggy-back on the lambdaexecutionpolicy like so (notice the secrets manager entries and how they fit):
"lambdaexecutionpolicy": {             "DependsOn": [                 "LambdaExecutionRole"             ],             "Type": "AWS::IAM::Policy",             "Properties": {                 "PolicyName": "lambda-execution-policy",                 "Roles": [                     {                         "Ref": "LambdaExecutionRole"                     }                 ],                 "PolicyDocument": {                     "Version": "2012-10-17",                     "Statement": [                         {                             "Effect": "Allow",                             "Action": [                                 "logs:CreateLogGroup",                                 "logs:CreateLogStream",                                 "logs:PutLogEvents"                             ],                             "Resource": {                                 "Fn::Sub": [                                     "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*",                                     {                                         "region": {                                             "Ref": "AWS::Region"                                         },                                         "account": {                                             "Ref": "AWS::AccountId"                                         },                                         "lambda": {                                             "Ref": "LambdaFunction"                                         }                                     }                                 ]                             }                         },                        {                            "Effect": "Allow",                            "Action": [                                 "secretsmanager:*"                            ],                            "Resource": "*"                       },                     ]                 }             }         },
I hope this helps.

@ryanhollander thank you for your response, it worked using "*" for resource. I experimented a bit more with this and I am using the parameters.json file to pass the value of the secret id to the CFN template and I see it being logged correctly from within the lambda but when the function errors calling getSecretValue, the arn of the requested secret resource included some kind of hashing after the secret id, e.g. arn:aws:secretsmanager:us-east-1:XXXXXXXXX:secret:CloudFrontSigningKeys-DsCEwV whereas my logging of the secret id was only CloudFrontSigningKeys. I adjusted the resource in the template to add a * after my injected secret id and that worked.
I'm not sure where the hashing is coming from though I'd be surprised if it was coming from amplify. Again, thanks for your help!

@ventinus you're welcome!
I'm not sure I understand this part: I am using the parameters.json file to pass the value of the secret id to the CFN template
I may not completely understand what you are doing, but if it helps, all I do is add the permissions and call secretsmanager inside my lambda with the secretid (not the ARN), what is returned is a JSON object that has several bits of data in it, like this (this is actual in production code I use, but I changed the actual secret id):
const secrets = await secretsManager.getSecretValue({SecretId: "MySecretId"}).promise((data, err) => {
            if (err) console.log(`Error getting secret: ${err}`)
        });
        if (secrets.hasOwnProperty("SecretString")) {
            let secretString = secrets.SecretString;
            let secretJson = JSON.parse(secretString);
            let clientId = encodeURIComponent(secretJson['ClientId']);
            let clientSecret = encodeURIComponent(secretJson['Secret']);
...

Apologies for the lack of clarity, I'm defining the secret id in parameters.json so it lives in an easy to find place to update and I inject that parameter value as an environment variable to the lambda as well as in IAM policy.

@ventinus oh I see now, good idea. Thanks for clarifying.

I've got stuck with this to and found a solution that i think will work for me at least leveraging dynamic variables in CloudFormation: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html#dynamic-references-secretsmanager.

Add your secrets to AWS secrets manager, (Either via console or create a script that loads a local .env file and the update secrets manager)

Add the following cloudformation to let lambda use secret manager to resolve env vars

"Environment": {
  "Variables": {
    "ENV": {
      "Ref": "env"
    },
    "REGION": {
      "Ref": "AWS::Region"
    },
    "KEY1": "{{resolve:secretsmanager:amplify-dev:SecretString:key1}}",
    "KEY2": "{{resolve:secretsmanager:amplify-dev:SecretString:key2}}",
    "KEY3": "{{resolve:secretsmanager:amplify-dev:SecretString:key3}}"
  }
}

If you are like me and hate being dependant of using the AWS console to have a working app i've included a node script here for updating the secret from .env file you have locally.
require('dotenv').config();
const SecretManager = require('aws-sdk/clients/secretsmanager');

const { KEY1, KEY2, KEY3 } = process.env;

const sm = new SecretManager({ apiVersion: '2017-10-17', region: 'eu-west-1' });

const secretId = 'YOUR_SECRET_ID';
const secretString = JSON.stringify({
  KEY1,
  KEY2,
  KEY3,
});

const updateSecret = async () => {
  const params = {
    SecretId: secretId,
    SecretString: secretString,
  };

  try {
    const data = await sm.putSecretValue(params).promise();
    return data;
  } catch (err) {
    console.error(err);
    throw err;
  }
};

const createSecret = async () => {
  const params = {
    Name: secretId,
    SecretString: secretString,
  };

  try {
    const data = await sm.createSecret(params).promise();
    return data;
  } catch (err) {
    console.log('Failed to create secret');
    console.error(err);
    process.exit(-1);
  }
};

(async () => {
  console.log(KEY1, KEY2, KEY3);
  try {
    await sm
      .describeSecret({
        SecretId: secretId,
      })
      .promise();

    await updateSecret();
  } catch (err) {
    if (err.code === 'ResourceNotFoundException') {
      console.log(
        `Secret "${secretId}" does not exists in your current env, creating secret...`
      );
      await createSecret();
    }
  }
})();


how to set zuul.debug.host

I create a filter which extended SurgicalDebugFilter to route some request to another service for gray deployment.
I set the zuul.debug.host or zuul.debug.vip  like  "zuul.debug.host=http://localhost:9900".
But I can't get any response even the status is OK(200).
where is wrong. I don't konw.  How to set the config.

But I can't get any response even the status is OK(200).

Does this mean a 200 from the debug host or from the original request?
Have you debugged the filter?  Is it being invoked?

the filter is invokded, but the response is not expected. it seem the setting of zuul.debug.host is not valid.
how do it should be configed.  actually, I want to use it as the blue/green deployment.

sorry, I tried to remove the config(zuul.debug.host),the filter is invoked too. the request is routed the old
service. so it look the config( zuul.debug.host) is valid. but the response is not my expected.
I just want to let the request is routed the new service(for debug and test). how should I  config it?
Thank you!

I tried to trace the source code for zuulfilter。 it truely throw a exception  like（org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'localhost:8090' with class 'java.lang.String' to class 'java.net.URL'）。 it look like  the config（zuul.debug.host=localhost:8090） can't be converted to url.
the flowing is the code where throw exception.
try {
                    Object res = run();
                    zr = new ZuulFilterResult(res, ExecutionStatus.SUCCESS);
                } catch (Throwable e) {
                    t.setName("ZUUL::" + this.getClass().getSimpleName() + " failed");
                    zr = new ZuulFilterResult(ExecutionStatus.FAILED);
                    zr.setException(e);
                } finally {
                    t.stopAndLog();
                }

@AlexWei2013 what filter are you using? We don't have any explicit support for a property named zuul.debug.host.

@spencergibb I believe @AlexWei2013 is extending https://github.com/Netflix/zuul/blob/1.x/zuul-core/src/main/groovy/com/netflix/zuul/filters/SurgicalDebugFilter.groovy

@ryanjbaxter @royclarkson Yeah, I extended the SurgicalDebugFilter.groovy by java and only override the "patternMatches" menthod.

In your original post you said zuul.debug.host=http://localhost:9900 but then you said when you were debugging that zuul.debug.host=localhost:8090 (without the protocol).  Where did the protocol go?  Maybe you can provide a sample project that reproduces the issue?

I tried the both config(with http://  and without http://). same exception was throwed.

I uploaded the project to github. please see it by [(https://github.com/AlexWei2013/mytest/tree/master/apigateway)].
thank you.

I wonder what we can do about it since we don't own that filter.

I agree with @spencergibb seems like you might want to open an issue with Netflix.

I see. thank you for your support。
By the way， I want to create the function for blue/green test with spring cloud(zuul or others).  Could you give me some idea or example.

You might want to look at https://github.com/spring-cloud/spring-cloud-netflix/issues/1290.  If you have further questions please open another issue.


Cleaning up the codebase

When contributing I found navigating some of the code difficult because of the inconsistencies in its formatting and other styling issues.
As the first point I think all support for python2 should be dropped and modern (python 3.6) features should be made use of, for users that still need compat with previous versions the older versions are still available.
I'm not familiar with the complete structure of the current playsound module but I think it'd be clearer to have a module per OS implementation of the function with its own imports that is conditionally imported in the main module instead of the current approach with everything in one place leading to a bit messy structure because of the nesting necessary.
The Path handling currently immediately converts the accepted path to a string and then continues to do manual or os.path operations on that string, which could be made clearer by doing this the other way around and using the Path object's methods and only converting it to a string when it needs to be passed to an external function
Then there are general issues like wrong docstring quotation marks etc. and PEP 8 violations such as aligning statements with spaces. The naming seems to be mostly consistent on camelCase so that could be stuck to with the current snake_case renamed to that.
There are also some lines of code like https://github.com/TaylorSMarks/playsound/blob/9cf4af20caa5ae8586f88b65659681b24f0c4e69/playsound.py#L208 which seem questionable in their implementation and could be made clearer
If you think this is worth doing and agree with the proposals, I'd be willing to make the changes

Sorry, I’m not interested.
1 - I want to maintain Python 2 compatibility until ~7 years after the major OSs stop including it.
2 - Reformatting muddies git history.
3 - I disagree with a lot of pep8.
If you’re itching to make changes to playsound, you could add support for KDE (I left details for what I think it entails in another issue that’s still open) or you could improve how the tests run on Travis-CI so that they don’t require mocking anymore.
I’m split on splitting it into more files. If I knew it’d grow to what it is, I would have split it up earlier. But at this point, it’d muddy the git history.
Adding support for KDE could be done in a new file.
 I’m happy you’re interested in helping and about the contributions you’ve made already.

On Aug 15, 2021, at 20:03, Numerlor @.***> wrote:

When contributing I found navigating some of the code difficult because of the inconsistencies in its formatting and other styling issues.
As the first point I think all support for python2 should be dropped and modern (python 3.6) features should be made use of, for users that still need compat with previous versions the older versions are still available.
I'm not familiar with the complete structure of the current playsound module but I think it'd be clearer to have a module per OS implementation of the function with its own imports that is conditionally imported in the main module instead of the current approach with everything in one place leading to a bit messy structure because of the nesting necessary.
The Path handling currently immediately converts the accepted path to a string and then continues to do manual or os.path operations on that string, which could be made clearer by doing this the other way around and using the Path object's methods and only converting it to a string when it needs to be passed to an external function
Then there are general issues like wrong docstring quotation marks etc. and PEP 8 violations such as aligning statements with spaces. The naming seems to be mostly consistent on camelCase so that could be stuck to with the current snake_case renamed to that.
There are also some lines of code like https://github.com/TaylorSMarks/playsound/blob/9cf4af20caa5ae8586f88b65659681b24f0c4e69/playsound.py#L208 which seem questionable in their implementation and could be made clearer
If you think this is worth doing and agree with the proposals, I'd be willing to make the changes
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

I want to maintain Python 2 compatibility until ~7 years after the major OSs stop including it.

I guess I understand, but what's wrong with dropping it only for new vers? playsound worked fine for them so far and the current versions will continue to do so, from the jetbrains/PSF developer survey it's evident that the usage of python 2 is dropping off significantly so those who are still using it with playsound either have it working properly or fixed their use cases locally

Reformatting muddies git history.
I disagree with a lot of pep8.

What part of the history are you concerned about? For the git blame, the commits can be included in a .get-blame-ignore-revs file; as for going through it as a list, most the current commits seem to focus on fixing small mistakes which don't exactly offer much more than a reformatting commit.
I'm not saying the project should conform to PEP8, but some consistency in the style it uses would be nice.

I’m split on splitting it into more files. If I knew it’d grow to what it is, I would have split it up earlier. But at this point, it’d muddy the git history.

In my opinion the tradeoff of losing the linear history on the transition would be worth the clarity splitting the module up into a package brings.
What do you think of the functional changes to use more idiomatic code and to make some interfaces like winCommand more consistent?


Fixed grammatical error

Removed the word "tool" from the Monaco description sentence.

This PR can be closed, as it was already part of one of the recent documentation improvements. Nevertheless, thanks @chrismuiruriz for your contribution! :rocket: :100:


related with #643 / min water volume

Maybe I'm missing something, but it seems that this change doesn't do what the comment above it says it should do. Since a valid value is always >= 0, the else portion of the modifiedifstatement, which is supposed to apply to value == 0, never gets executed. It's also not clear to me what the issue #643 actually is as it refers to a discussion chain on the community forum that never clearly states what the bug is.

Hi @LRossman,
Sorry, I was confused with min vol in the Net1 file where is zero. Yes, the code is ok. I close this PR and issue.


docs(CONTRIBUTING): --verbose and --reload CLI flags

resolves #1054

I wonder if we should add a new section "Debugging" to CONTRIBUTING.md? It might be a better place to document the flags. We could also document how to run different versions of snowpack against the same project, and then only reference the Run local snowpack in another project section


GIPL 2.0 is referenced in the permafrost data endpoint but we're using GIPL 1.0

In the documentation endpoint example, look for GIPL 2.0 and remove it.

Moot; we are removing the GIPL1.0 data endpoint.


UI Related: More Library Management Book Functionalities

Issue Type:

[x] New UI Suggestion
[ ] Suggestion for existing UI
[ ] UI implementation
[ ] others

Description:
Adding screens for Collect Fine,Collect Fine Confirmation,Search Book,Search results, and Remove Book
ScreenShots / Video:

If you have any UI related suggestion then please share a screen shot or recorded video

PR Instruction:
    - Issue will be assigned on a first come first serve basis.
    - If you are thinking to make a pr then at first be sure to get assigned.
    - before pushing your PR please make sure to fetch upstream.
    - your pr should be pushed on the `develop` branch only.
    - try to complete your assigned task within specified and if you need more time then please let us   know.
         - for Level1 : max 3 days
         - for Level2 : max 5 days
         - for Level3 : max 7 day
      As the program has limited time only so please try to complete as fast as you can.
    - With your PR try to send a screenshot or screen recording of your work

@sitamadex11 I would like to work on this issue.

@sitamadex11  I would like to work on this issue

I have some experience on working with the UI part so I would like to work on this issue


[ZEPPELIN-5337] Spark scope mode is broken

What is this PR for?
Spark scope mode is broken because we use different scala shell output dir for each spark scala shell. This PR fix this issue by using a shared output folder for all the scala shell instances.
What type of PR is it?
[Bug Fix]
Todos

[ ] - Task

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-5337

How should this be tested?

UT is added

Screenshots (if appropriate)
Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

Thank @zjffdu for the fix!


Persistence

Have you looked into extracting the queue into a behaviour that could possibly support multiple backends? With the scheduler / queue distinction mentioned in #1 it would be a lot easier to shrink the size and scope of the queue genserver, and define a behaviour that even a user supplied module could adhere to.
The advantage is that if someone wanted to write a GenServer that acted as a queue but also persisted the job states to redis, ets, etc they could do so without any extra effort on your part.
Thanks!

I haven't, but I think that's a fantastic idea. I personally think a rabbitmq queue would be neat. :)
An early prototype of the library used Mnesia as the job queue, but I didn't feel confident enough in the solution, so I scrapped it. It'd be interesting to experiment with that again.
The method of persistence would, of course, be up to the implementor. However it worked though, it'd have to support bidirectional communications, so that the worker can return the result of a call to the requesting process. Though, I suspect that in cases where job persistence is needed, you wouldn't be using call anyways.
While I think it'd be really cool to offer a pluggable architecture, I'm also worried about trying to be everything to everyone, it sounds like a recipe for complexity. Maybe it's just a question of positioning, perhaps advertising Honeydew as "like the Task module, but with queues" would set expectations properly. (as an aside, I think moving the API to mimic Task is something that merits consideration)
Whacha think? :)

@benwilson512 Fixed! You can now plug in your own job queue module, or use the provided Mnesia queue configured to use DETS. You can also provide your own GenStage dispatcher to control how jobs are sent to workers.
Want to give it a spin and let me know what you think?

@koudelka How would one use Redis as a backing store?

@seivan It'd involve writing a "Queue" implementation, like https://github.com/koudelka/honeydew/blob/master/lib/honeydew/queue/erlang_queue.ex
You'd probably lose the pre-existing ability to send responses back to the calling process when the job completes, though.

@koudelka You mean a form of ACK/NACK ?
I think it can be "simulated" by using BRPOPLPUSH to a secon queue and eventually either remove it or push it on a fail/retry queue?

@seivan Yeah, that'd probably work. I don't plan on maintaining a Redis queue module myself, though.


android port?

mmm ... is it possible to port rdp-server to android? (to connect to my smartphone desktop from my PC)

Probably it is out of our scope.


guid handling is missing in docu

TenantId in ('51EF7260-D4AD-434E-83C1-E7CF127ECCAF','3160D7CB-5D57-4089-8248-2456813F19DE','2FB94273-0F36-4738-8D83-211AED85DFCB')
leads to "Operator '==' cannot be applied to operands of type 'System.Guid' and 'string'"
How can the values casted into a guid? using Sysdtem.Guid.Parse() makes the filter collapse
There was an error parsing the SQL expression. [Token line=1, column=19, Token in error= Guid, Additional details= The specified scope (System) is not supported.]  TrackingId:a779244f-c6ee-4bb2-bb9e-a95557715163_B7, SystemTracker:NoSystemTracker, Timestamp:2021-09-29T06:03:24 CorrelationId: 803acffd-eb7d-43b1-9eee-e4f95781a844

@compunited -
Thank you for your question.
Can you please share with us the URL of the document that you are having issues with?
Please note that we scope issues on this repo to feedback related to the docs. If you have a product question, please post it on Microsoft QnA or Stack Overflow. Thank you for your understanding.

@compunited -
Thank you for your question.
Can you please share with us the URL of the document that you are having issues with?
Please note that we scope issues on this repo to feedback related to the docs. If you have a product question, please post it on Microsoft QnA or Stack Overflow. Thank you for your understanding.

@compunited - Since we have not heard back from you we will now proceed to close this thread.
However if you can share additional information regarding the documentation you are referring and circle back on this thread , we will gladly reopen the issue and continue the discussion. Thank you.


wierd output on a Windows powershell

Hello,
As soon as I try to work with ghcid I see this as output:
tions=-ferror-spans --ghci-options=-j ...
'stty' is not recognized as an internal or external command,
operable program or batch file.
?[0m?[0m
?[0m* * * * * * * ?[0m
?[0mThe main module to load is ambiguous. Candidates are: ?[0m
?[0m1. Package chapter7' component chapter7:exe:chapter7-exe with main-is file: C:\Users\roelof\Documents\haskell\chapter7\app\Main.hs?[0m ?[0m2. Package chapter7' component chapter7:test:chapter7-test with main-is file: C:\Users\roelof\Documents\haskell\chapter7\test\Spec.hs?[0m
?[0mYou can specify which one to pick by: ?[0m
?[0m * Specifying targets to stack ghci e.g. stack ghci chapter7:exe:chapter7-exe?[0m
?[0m * Specifying what the main is e.g. stack ghci --main-is chapter7:exe:chapter7-exe?[0m
?[0m * Choosing from the candidate above [1..2]?[0m
?[0m * * * * * * *?[0m
?[0m?[0m
is there a way I can turn the output to normal ?
Roelof

Have you found which command can launch ghci? Something like "stack repl"? If so pass that to --command

I see that this command is used by the ghcid plugin on visual studio code:
Loading stack ghci --test --bench --ghci-options=-fno-code --ghci-options=-fno-break-on-exception --ghci-options=-fno-break-on-error --ghci-options=-v1 --ghci-options=-ferror-spans --ghci-options=-j ...
'stty' is not recognized as an internal or external command,
operable program or batch file.
?[0m?[0m
Specify main module to use (press enter to load none): Not loading any main modules, as no valid module selected
?[0m* * * * * * * *?[0m


Select: Fix size el-tag in multiple select

Size el-tag in multiple select is always small.
This change fix size el-tags as selectSize.

#7872


Changeset crashes when an array is passed to associate

To Reproduce
# assuming `projects "has_many :tasks"`
changeset = projects.changeset(:create, name: "Test")
  .associate([{ title: "Test" }], :tasks)

changeset.commit

Expected behavior
It should persist the project along with its tasks.

After some digging I realized it's not a trivial issue to solve and it's not obvious how it should work. There are some API considerations too here, so this is not just a bug-fix but actually a whole, complex feature to implement. I'll report another issue and schedule it for 6.0.0. For now I made it raise a NotImplementedError because previous crash was confusing.


Duplicate endpoints create conflicting data types

Description
Describe the bug
When having endpoints of the same name, eg tags/{tag}/export and labels/{label}/export, only one data type is generated (here ExportData) for all services, which is correct for the first, but wrong for all subsequent services.
Expected behavior
Data types free of conflicts, eg ExportData, ExportData1, etc
See my downstream issue here.
Reproducible example or configuration
To Reproduce

Create API with endpoints tags/{tag}/export and labels/{label}/export
Run script
Inspect type errors in services.gen.ts

OpenAPI specification (optional)
OpenAPI spec file
routes.json
System information (optional)

OS: macOS v14.4

Hi @CHE1RON, I might add support for invalid OpenAPI specs in future versions, but for now I'd recommend fixing your spec by making sure each operationId is unique. You might also try resolving the name yourself using services.methodNameBuilder(). I assume there's a reason you use the same identifier multiple times?

Hey there @mrlubos, the reason would be a lazy backend developer 😅
Honestly, our API endpoint naming scheme is pretty generic, but I'll see what I can do - thank you very much! 🙏

@CHE1RON ha! I feel pretty strongly about investing in your OpenAPI spec and I plan to add some content about this in the future. You can't expect the tooling to create perfect clients if your spec is shoddy. Of course that's not always an option, but if it is, I'd recommend doing that.
In this case, the issue itself could be handled. I plan to add strict and loose modes that would either throw on any invalid definition or try to compile at the expense of output quality. But again, try to solve the problem at the source if possible (your OpenAPI spec), which it sounds like you chose to do. I support that! 😀


Server crash

This server crash happens on server boot for some reason, but only once every so 3 boots or so.
[16:28:57] [Thread-611/INFO] [STDOUT]: [dan200.computercraft.core.computer.ComputerThread$1$1:run:109]: ComputerCraft: Error running task.
[16:28:57] [Thread-611/INFO] [STDERR]: [dan200.computercraft.core.computer.ComputerThread$1$1:run:110]: java.lang.NullPointerException
[16:28:57] [Thread-611/INFO] [STDERR]: [dan200.computercraft.core.computer.ComputerThread$1$1:run:110]:         at dan200.computercraft.core.filesystem.FileSystem.mountWritable(FileSystem.java:343)
[16:28:57] [Thread-611/INFO] [STDERR]: [dan200.computercraft.core.computer.ComputerThread$1$1:run:110]:         at dan200.computercraft.core.filesystem.FileSystem.<init>(FileSystem.java:303)
[16:28:57] [Thread-611/INFO] [STDERR]: [dan200.computercraft.core.computer.ComputerThread$1$1:run:110]:         at dan200.computercraft.core.computer.Computer.initFileSystem(Computer.java:461)
[16:28:57] [Thread-611/INFO] [STDERR]: [dan200.computercraft.core.computer.ComputerThread$1$1:run:110]:         at dan200.computercraft.core.computer.Computer.access$1100(Computer.java:27)
[16:28:57] [Thread-611/INFO] [STDERR]: [dan200.computercraft.core.computer.ComputerThread$1$1:run:110]:         at dan200.computercraft.core.computer.Computer$1.execute(Computer.java:725)
[16:28:57] [Thread-611/INFO] [STDERR]: [dan200.computercraft.core.computer.ComputerThread$1$1:run:110]:         at dan200.computercraft.core.computer.ComputerThread$1$1.run(ComputerThread.java:107)
[16:28:57] [Thread-611/INFO] [STDERR]: [dan200.computercraft.core.computer.ComputerThread$1$1:run:110]:         at java.lang.Thread.run(Thread.java:745)

Which version of CCTweaks are you running: do you have the file handle limit patches?

I do not, I am awaiting a release to install that on my server.
I'm running CCTweaks-1.8.9-1.0.1-patched-02

This is really weird: it appears that the mount for the computer is null. This can only happen if there is an error constructing FileMount but I'm not even sure how that can happen. Whilst I don't think this is a CCTweaks bug it is really odd: do you think you could upload your logs?

hmm I have way too much logs to figure out which logs to send you.

Has this happened again? Could you also bump to CCTweaks 1.2.0 and see if anything changes? Thanks!

I don't think it has happened again since I updated to 1.2.0.


Protocol 0.2.0

Update to the protocol as a result of libchan meeting with Matteo Collina.
Bump the version to 0.2.0 and name the set the previous version as 0.1.0.
Protocol changes:

Define stream provider to support multiple multiplexing protocols
Support CBOR in addition to Msgpack for channel message encoding
Add extended type codes definition
Require byte-streams to send "libchan-parent-ref"
Allow byte-streams as duplex or half-duplex
Add channel synchronization through ack definition
Add channel errors
Update description of relationship to Go channels

Other changes:

Add Derek and Matteo to authors
Reformatted to 80 character lines
Much cleanup and rewording

Ping @mcollina for review of initial draft
Matteo, I am still uncertain about the method for doing acks, you were as well. Think of possibly keeping acks much simpler, a simple integer message, 0 for non-error ack, and > 0 for error ack. When an error is received a string message can follow, then a remote close. If no string message is given then the close should still happen resulting in an EOF. The simple integer type will work well with msgpack and cbor as most messages will only end up being a single byte.

Sorry for not reading this through sooner, I was stuck in the consulting businness :(. I think we should add a header for the message encoding. This is necessary to ensure things works with different encodings.
I propose to add a mime type of application/libchan+msgpack5 or application/libchan+cbor.
Should I send a PR against this PR with my updates?
Thanks for adding me as an author :dancers:.

Excellent point, any newly created stream which will send data should have a content-type.
Types

application/vnd.libchan.send+msgpack5 - Encoded messages in msgpack5
application/vnd.libchan.recv+msgpack5 - Encoded responses in msgpack5
application/vnd.libchan.send+cbor - Encoded messages in cbor
application/vnd.libchan.recv+cbor - Encoded responses in cbor
application/octet-stream - Byte stream

Updated based on original feedback, still need to update for content types

:+1: for the types.
Just one question: what happens if the other party does not support that encoding?

I think the ":status" as used currently in spdy and defined in HTTP is missing here. I will add ":status" as the response header which should contain an HTTP status code. In the case of unsupported content-type, a 415 would be used.

Hmm looking more at the streams interface, I am thinking streams will need to have a function to handle the reply unless it would be expected the stream provider would be configured to know how to accept content-types and expose that to the stream user.  My goal would be after a new stream is accepted, it is always good and would never need to explicitly failed by the stream user because of invalid content-type.

Finally pushed the update. Going to revive this and get this work completed.

Updated with last comments and content types
Pushed an update to the streams library in support of this change https://github.com/dmcgowan/streams/commit/f02a9e7b00caabc2b0bc3d166a329354ea57ce4d. This will enable proper content type handling by libchan.


Cannot download reazonspeech dataset

Hi everyone, I'm trying to download and prepare reazonspeech but I got this error:
2024-07-01 15:17:59 (prepare.sh:37:main) Running prepare.sh
2024-07-01 15:17:59 (prepare.sh:39:main) dl_dir: /home/hoang/PycharmProjects/icefall/egs/reazonspeech/ASR/download
2024-07-01 15:17:59 (prepare.sh:42:main) Stage 0: Download data
2024-07-01 15:18:00,919 INFO [config.py:58] PyTorch version 2.3.1+cpu available.
2024-07-01 15:18:01,070 INFO [reazonspeech.py:98] Downloading ReazonSpeech part: tiny
Downloading builder script: 100%|███████████████████████████████████| 4.74k/4.74k [00:00<00:00, 7.02MB/s]
Downloading readme: 100%|███████████████████████████████████████████| 2.27k/2.27k [00:00<00:00, 4.26MB/s]
Traceback (most recent call last):
File "/home/hoang/miniconda3/envs/icefall/bin/lhotse", line 8, in
sys.exit(cli())
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/lhotse/bin/modes/recipes/reazonspeech.py", line 52, in reazonspeech
download_reazonspeech(target_dir, dataset_parts=subset)
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/lhotse/recipes/reazonspeech.py", line 99, in download_reazonspeech
ds = load_dataset(
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/datasets/load.py", line 2616, in load_dataset
builder_instance.download_and_prepare(
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/datasets/builder.py", line 1029, in download_and_prepare
self._download_and_prepare(
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/datasets/builder.py", line 1791, in _download_and_prepare
super()._download_and_prepare(
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/datasets/builder.py", line 1102, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/hoang/.cache/huggingface/modules/datasets_modules/datasets/reazon-research--reazonspeech/e16d1ee2aae813b6ea960f564f4dc8481f58bfa6074be491eb4a6ddde66330bb/reazonspeech.py", line 79, in _split_generators
meta_path = dl_manager.download_and_extract(_BASE_URL + ds['tsv'])
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/datasets/download/download_manager.py", line 434, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/datasets/download/download_manager.py", line 257, in download
downloaded_path_or_paths = map_nested(
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 484, in map_nested
mapped = function(data_struct)
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/datasets/download/download_manager.py", line 313, in _download_batched
return [
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/datasets/download/download_manager.py", line 314, in
self._download_single(url_or_filename, download_config=download_config)
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/datasets/download/download_manager.py", line 323, in _download_single
out = cached_path(url_or_filename, download_config=download_config)
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 201, in cached_path
output_path = get_from_cache(
File "/home/hoang/miniconda3/envs/icefall/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 633, in get_from_cache
raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})")
ConnectionError: Couldn't reach https://reazonspeech.s3.abci.ai/v2-tsv/tiny.tsv (ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='reazonspeech.s3.abci.ai', port=443): Max retries exceeded with url: /v2-tsv/tiny.tsv (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x754709e817c0>, 'Connection to reazonspeech.s3.abci.ai timed out. (connect timeout=100)'))")))
Please help me! Thank you very much !

@Triplecq Could you have a look?

Thanks for the note!
I just checked our hosting server on ABCI, and it seems that their service is down: https://abci.ai/en/about_abci/info.html
We will also send you a note if we could provide an alternative access to the data.
Thank you for your interests and patience.

谢谢你的留言！
我刚刚检查了我们在 ABCI 上的托管服务器，发现他们的服务似乎已关闭：https://abci.ai/en/about_abci/info.html
如果我们可以提供其他数据访问权限，我们也会向您发送通知。
感谢您的关注和耐心。

I can download the dataset from HF, but I don't know the structure directory of reazon, and I don't know how to store the downloaded data so that it can be properly processed by 'lhotse prepare reazonspeech'

I have already used the Common Voice recipe for training. It requires a bit of work to combine the ReazonSpeech data with the Common Voice data. For modeling, I am using character-level modeling instead of BPE.


feat: Jina AI Embeddings

Closes #132

#159  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tazarov and the rest of your teammates on  Graphite


[SPARK-31557][SQL] Fix timestamps rebasing in legacy parsers

What changes were proposed in this pull request?
In the PR, I propose to fix two legacy timestamp formatter LegacySimpleTimestampFormatter and LegacyFastTimestampFormatter to perform micros rebasing in parsing/formatting from/to strings.
Why are the changes needed?
Legacy timestamps formatters operate on the hybrid calendar (Julian + Gregorian), so, the input micros should be rebased to have the same date-time fields as in Proleptic Gregorian calendar used by Spark SQL, see SPARK-26651.
Does this PR introduce any user-facing change?
Yes
How was this patch tested?
Added tests to TimestampFormatterSuite

@cloud-fan @bersprockets @HyukjinKwon Please, review this PR.

Test build #122080 has started for PR 28408 at commit e966895.

Merged build finished. Test PASSed.

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

Test build #122080 has finished for PR 28408 at commit e966895.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

jenkins, retest this, please

Test build #122108 has started for PR 28408 at commit e966895.

Merged build finished. Test PASSed.

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

Test build #122108 has finished for PR 28408 at commit e966895.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

retest this please

Test build #122117 has started for PR 28408 at commit e966895.

Merged build finished. Test PASSed.

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

Test build #122117 has finished for PR 28408 at commit e966895.

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

Merged build finished. Test PASSed.

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

thanks, merging to master/3.0!


Error After Installation

After installing I get a few errors and then it crashes
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
Loading extensions:
Loaded extension: callback_save_generation_ffmpeg
Loaded extension: callback_save_generation_musicgen_ffmpeg
Loaded extension: empty_extension
Loaded 2 callback_save_generation extensions.
Loaded 1 callback_save_generation_musicgen extensions.
Loading Bark models
- Text Generation:               GPU: Yes, Small Model: Yes
- Coarse-to-Fine Inference:      GPU: Yes, Small Model: Yes
- Fine-tuning:                   GPU: Yes, Small Model: No
- Codec:                         GPU: Yes
Traceback (most recent call last):
File "C:\Projects\AI\audiogens\one-click-installers-tts-4.0\tts-generation-webui\server.py", line 14, in
from src.bark.clone.tab_voice_clone_demo import tab_voice_clone_demo
File "C:\Projects\AI\audiogens\one-click-installers-tts-4.0\tts-generation-webui\src\bark\clone\tab_voice_clone_demo.py", line 7, in
from models.bark_voice_cloning_hubert_quantizer.hubert.pre_kmeans_hubert import (
File "C:\Projects\AI\audiogens\one-click-installers-tts-4.0\tts-generation-webui\models\bark_voice_cloning_hubert_quantizer\hubert\pre_kmeans_hubert.py", line 16, in
import fairseq
ModuleNotFoundError: No module named 'fairseq'
Done!
Press any key to continue . . .
This is the output on launching start_windows.bat

Thanks for reporting it, could you please tell me if you are on Windows 11?
Fairseq might have failed to install. The workaround is to disable audio
cloning for now, by commenting it out from server.py.
On Tue, Jun 13, 2023, 4:59 AM James-Slam @.***> wrote:

After installing I get a few errors and then it crashes
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
Loading extensions:
Loaded extension: callback_save_generation_ffmpeg
Loaded extension: callback_save_generation_musicgen_ffmpeg
Loaded extension: empty_extension
Loaded 2 callback_save_generation extensions.
Loaded 1 callback_save_generation_musicgen extensions.
Loading Bark models

Text Generation: GPU: Yes, Small Model: Yes
Coarse-to-Fine Inference: GPU: Yes, Small Model: Yes
Fine-tuning: GPU: Yes, Small Model: No
Codec: GPU: Yes
Traceback (most recent call last):
File
"C:\Projects\AI\audiogens\one-click-installers-tts-4.0\tts-generation-webui\server.py",
line 14, in
from src.bark.clone.tab_voice_clone_demo import tab_voice_clone_demo
File
"C:\Projects\AI\audiogens\one-click-installers-tts-4.0\tts-generation-webui\src\bark\clone\tab_voice_clone_demo.py",
line 7, in
from models.bark_voice_cloning_hubert_quantizer.hubert.pre_kmeans_hubert
import (
File
"C:\Projects\AI\audiogens\one-click-installers-tts-4.0\tts-generation-webui\models\bark_voice_cloning_hubert_quantizer\hubert\pre_kmeans_hubert.py",
line 16, in
import fairseq
ModuleNotFoundError: No module named 'fairseq'

Done!
Press any key to continue . . .
This is the output on launching start_windows.bat
—
Reply to this email directly, view it on GitHub
https://github.com/rsxdalv/tts-generation-webui/issues/36, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABTRXI3MQCQJLAOLDT7XGODXK7COJANCNFSM6AAAAAAZEE7DWQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Ok, now it should only disable the voice clone tab with the newest update:
https://github.com/rsxdalv/tts-generation-webui/pull/37
Fairseq sometimes fails to install, we can handle that as the second part of this issue.

A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
Loading extensions:
Loaded extension: callback_save_generation_ffmpeg
Loaded extension: callback_save_generation_musicgen_ffmpeg
Loaded extension: empty_extension
Loaded 2 callback_save_generation extensions.
Loaded 1 callback_save_generation_musicgen extensions.
LLVM ERROR: Symbol not found: __svml_cosf8_ha
Done!
続行するには何かキーを押してください . . .
It did not start.
Windows 11.

Thank you for reporting this issue. This might be a bumba/llvmlite related
bug. By chance, are you using an AMD CPU?
I read that there might be an incorrect file, but maybe it's possible to
fix it with an environment variable, without modifying the system. Source:
https://github.com/lmcinnes/umap/issues/702#issuecomment-1002396093
On Tue, Jun 13, 2023, 8:16 PM ttyksi @.***> wrote:

A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
Loading extensions:
Loaded extension: callback_save_generation_ffmpeg
Loaded extension: callback_save_generation_musicgen_ffmpeg
Loaded extension: empty_extension
Loaded 2 callback_save_generation extensions.
Loaded 1 callback_save_generation_musicgen extensions.
LLVM ERROR: Symbol not found: __svml_cosf8_ha
Done!
続行するには何かキーを押してください . . .
It did not start.
Windows 11.
—
Reply to this email directly, view it on GitHub
https://github.com/rsxdalv/tts-generation-webui/issues/36#issuecomment-1589720491,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABTRXI3V5W2Z5RIDS26QJ2LXLCN6ZANCNFSM6AAAAAAZEE7DWQ
.
You are receiving this because you commented.Message ID:
@.***>

Thanks for your reply.
I am using an AMD CPU.
I will try about your method.
Thank you.

It installed properly for me now, thanks!


Config.BytesPerSlice/MinBytesPerSlice can be specified as a string

Jira: https://keboola.atlassian.net/browse/PSGO-294
Changes:

Bytes values in the processor config can be specified as a string.
The old way of entering the bytes value as an int remains also functional.

(toto som zabudol oznacit na review)


Add caching logic similar to now-cli's

From @matheuss on July 21, 2017 3:50
In the current now-cli we have a logic to store the user details (username, email etc) with a TTL of 8h.
I didn't copy it over when copying the login/deployment code over because I want to improve it. I'd want ~/.now/cache.json, that'd be used specifically to store stuff like that. Specially because username, for example, is not a configuration option – it depends on the API token.
@rauchg @nkzawa ~/.now/cache.json sounds great? Also cc @leo, since we would share such file with Now Desktop 👌
Assigning myself since I'd like to implement it and I implemented the current logic on now-cli, so it'll be trivial to do it here.
Copied from original issue: zeit/now#37

Closing this for now, since we have .now/config.json for that, which is now supported by all of our clients. All in all, we have two config files now: .now/config.json and .now/auth.json.
If we want to change any of that in the future, we need to think about migration and support again.

We should add cache.json, supported by Now Desktop and Now CLI! 👍

Thank you so much for the effort you have put into this issue! 😊
However, since we completely re-worked the entire codebase of Now CLI and this issue does not apply to the new code anymore, I'm closing it now.
You can read more about our biggest release yet here: https://zeit.co/blog/now-2


chore(deps): bumping syntax-highlighter

🧰 Changes
I've added improved highlighting for the Solidity language in https://github.com/readmeio/syntax-highlighter/pull/435, this pulls that work in here.

This PR was released!
🚀 Changes included in v6.62.2


支持Progress，text-overflow支持middle，以及fontFamily/image提供差异抹平的能力

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.jingcheng1988 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Please make posts uneditable after 1 day

This is also a recurring problem. People that want their problem removed from the forum after getting a (partial) solution. Do they want to hide their homework or?
imho it is against the spirit of an open source forum.
This is today's example - http://forum.arduino.cc/index.php?topic=503608.msg3434830#msg3434830

This could also prevent spammers from making seemingly legitimate posts or replies and then later editing the spam in after they've made it past the initial scrutiny. I have seen the former quite a bit but not the latter that I can recall. Maybe that just means it works.
The downside I can see to this is, for example, if I have something like a support thread for a project where I want to edit the download link in the first post of the thread on every release. Now I could just add a new reply to the thread for each release but on an active thread that can require the reader to do a lot of digging rather than getting all the info they need right at the top of the thread.

Or "a restore original text" option?  undo edit?
THe downside is indeed a good point...

Just bumping this but for a slightly different reason.
There was a slew of vandalised posts by the OP's which rendered all the assistance unintelligible in terms of reference.
Only way was to delete what had been in some cases quite valuable information had the original been there.
From the standpoint of a moderator I would love to see Robs option to RESTORE original text.

@cmaglie
Imho this looks still relevant on the forum but if no action is taken, this issue can better be closed.

It is still a very relevant feature request (present or future)...Two posts vandalised last week that I deleted and not sure about other mods.


npm ERR! write after end

Makes sure these boxes are checked befor submitting your issue - thank you!

[] Check that your node version is >= 6 and npm version is >=5(Run npm --version and node --version).
[] If you encounter any problems using the tool, please check if there has a new version to update(Run weex update [pluginname]@latest).
[] Check the FAQ, make sure there have not the same issue.

Your development environment

weex-toolkit verison (Run weex -v)
platform (Win/Mac/Ubuntu..)

The key error stack message.
Steps to reproduce the problem.(Maybe a dotwe link,)
wsh9729@BZ37YZ1M2 MINGW64 ~/workspace
$ npm -v
5.8.0

wsh9729@BZ37YZ1M2 MINGW64 ~/workspace
$ node -v
v8.9.1

wsh9729@BZ37YZ1M2 MINGW64 ~/workspace
$ npm install -g weex-toolkit
npm ERR! write after end
npm ERR! write after end
npm ERR! write after end
npm ERR! write after end

@unclekitty you can delete the cache file on /usr/local/lib/node_modules/weex-toolkit, and then install weex-toolkit again, or try npm i npm@4 -g, that's a bug on npm@5.


move responsibility for destroying messages from LocalMessage to LocalFolder

Quick refactoring PR: This moves the responsibility of destroying messages from being shared between LocalMessage and LocalFolder entirely into LocalFolder. The parts in LocalMessage included stuff like threading, which really isn't something a message itself should worry about.
This also allows a LocalFolder to destroy messages given their id, messageId and messagePartId, which should come in handy if we want to delete messages efficiently without loading their content first.

renamed mId to messageId and the previous messageId to messageIdHeader. should be clear now.

I have to say, I'm not big on LocalFolder being responsible for every action you can take on a message. I think we really want 'LocalActions' as a some kind of Controller/Visitor/Strategy, leaving LocalMessage and LocalFolder as models.
But this better than what have now.


✨ Support for .gitignore

What are you trying to do?
Provide an easy way to clear a directory of any files ignored by git. The formal definition can be found here .
My suggestion would be the following:
func (r *Directory) WithoutGitignore() *Directory
This directory with all files removed that would be ignored by git
Side Note:
I don't currently need this but WithoutUntracked and other exclusions based on git might be useful as well.
Why is this important to you?
All CI platforms I know (Gitlab CI, GitHub Actions, etc..) don't have access to files ignored by git.
When running dagger locally ignored files might be present due to the local development process.
Those files can interfere and create different pipeline results.
It would be very convenient to be able to reproduce CI platform behavior with little effort.
How are you currently working around this?
client.Host().Workdir().
    WithoutDirectory("node_modules").
    WithoutDirectory("apps/frontend/node_modules").
    WithoutDirectory("apps/backend/node_modules")

until it's decided if this will is a good candidate for the core API, you can currently do this by using the recently added include and exclude arguments in 0.4 https://github.com/dagger/dagger/pull/3583. In case you're wondering which is the pattern matching logic behind that include and exclude arguments, you can check it from here: https://github.com/moby/patternmatcher.  It basically supports exact, prefix, suffix and regexp matching.
. The .gitignore native feature will probably take some time as AFAIK there's no good native .gitignore parsers in Go that we could probably use outside the box.

I am not sure if simply parsing .gitignore files is sufficient as gitignored files are defined as followed:

A gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected

Using include and exclude might also cause problems, as tracked files, which match a .gitignore pattern will be removed. This file would have been present inside any CI framwork but now iw ignored.
To fully replicate this behavior one needs:

all .gitignore files and their content
the .git folder and its content.

Some extra, but probably unnecessary files for now

$GIT_DIR/info/exclude
Patterns read from the file specified by the configuration variable core.excludesFile

I hastily threw some code together using the go SDK, which should currently achieve this although I am not sure how to proceed from here.
func WithoutIgnored(client *dagger.Client, ctx context.Context, dir *dagger.Directory) (_ *dagger.Directory, _ error) {
	gitcontainer := client.Container().
		From("alpine/git").
		WithMountedDirectory(".", dir).
		Exec(dagger.ContainerExecOpts{
			Args: []string{"ls-files", "--ignored", "--exclude-standard", "--others", "--directory", "--no-empty-directory"},
		})

	exitcode, _ := gitcontainer.ExitCode(ctx)
	if exitcode != 0 {
		return nil, errors.New("git exited with non-zero exit code")
	}

	contents, err := gitcontainer.Stdout().Contents(ctx)
	if err != nil {
		return nil, err
	}

	lines := strings.Split(contents, "\n")

	for _, line := range lines[:len(lines)-1] {
		if strings.HasSuffix(line, "/") {
			dir = dir.WithoutDirectory(line)
		} else {
			dir = dir.WithoutFile(line)
		}
	}

	return dir, nil
}

I am not sure if simply parsing .gitignore files is sufficient as gitignored files are defined as followed:

I agree, that's why I didn't suggest parsing the .gitignore files since that wasn't going to be enough. One thing you can do though is to get the output of git status --ignored or git check-ignore  **/* and use that as an input for the exclude argument.

As @vito said in discord it looks like it is best to solve this issue by

running a git command to figure out the ignored files and then exclude:ing them

I think this leads us to two follow-up questions.

Does dagger want to provide such a feature or is it something every developer can copy/paste into their own util (Similar to the GoBuild utility used in hello-monorepo)?
If dagger wants to provide it; Where would it be implemented(Presumably the SDK or a separate module/library)?

I would love some input and discussion on this.

That's a good question.
I think it would be a great candidate for an extension (that are still not there, yet).
Otherwise, it would make us develop it in duplicate for each SDK language.
For now, until we have extension, I would suggest to create your own library of utility like that you would share in your SDK language.
Once the extensions are available, other SDKs would be able to use it as well.


Make certain features assignable

Currently, the following mappings are static:
shift+play -> tap tempo
shift+record -> stop
shift+clip -> record to clip
The following should also be available options for the first two:

cycle between devices (feature 1.2 had that 1.3 dropped)
cycle between velocity curves (1.2 had on/off but we can improve on that)

And delete clip should be available as an option for shift+clip
This will entail implementing setting loading/saving in grig.controller then using it for these 3 enum settings.

I'm not going to use a key assign to cycle between velocity curves but instead have that just an option. But as a bonus, it won't just be record and delete, but two other modes for shift+clip


Trying to connect to Azure EventHub unable to consume

Description
I'm trying to connect and consume azure eventhub using confluent kafka and It's hanging on Consume.
The polling operation never can consume the message.
How to reproduce
Create a new azure event hub, produce a new message and try to consume using my sample code.
This is the code used:
using System;
using System.Threading;
using Confluent.Kafka;
class Program
{
public static void Main(string[] args)
{
var conf = new ConsumerConfig
{
GroupId = "",
BootstrapServers = "",
// Note: The AutoOffsetReset property determines the start offset in the event
// there are not yet any committed offsets for the consumer group for the
// topic/partitions of interest. By default, offsets are committed
// automatically, so in this example, consumption will only start from the
// earliest message in the topic 'my-topic' the first time you run the program.
AutoOffsetReset = AutoOffsetReset.Earliest,
SaslPassword = "",
SaslUsername = "",
SecurityProtocol = SecurityProtocol.SaslSsl,
SaslMechanism = SaslMechanism.Plain,
SslCaLocation = @"file.pem",
EnableAutoCommit = false
};
using (var c = new ConsumerBuilder<Ignore, string>(conf)
.Build())
{
c.Subscribe("****");
CancellationTokenSource cts = new CancellationTokenSource();
Console.CancelKeyPress += (_, e) =>
{
e.Cancel = true; // prevent the process from terminating.
cts.Cancel();
};
        try
        {
            while (true)
            {
                try
                {
                    var cr = c.Consume(cts.Token);
                    Console.WriteLine($"Consumed message '{cr.Message.Value}' at: '{cr.TopicPartitionOffset}'.");
                }
                catch (ConsumeException e)
                {
                    Console.WriteLine($"Error occured: {e.Error.Reason}");
                }
            }
        }
        catch (OperationCanceledException)
        {
            // Ensure the consumer leaves the group cleanly and final offsets are committed.
            c.Close();
        }
    }
}

}
Checklist

[ ] Confluent.Kafka nuget version.
Latests
[ ] Operating system.
Windows

Confluent doesn't offer support for EventHubs (i.e. I won't try and debug this for you).
You can get a lot of information about what the client is doing by setting the Debug config to all, that might help you pin point the issue.

Hi @mhowlett,
Thank you for your response. Reading the log you ask me to enable I see this:
%7|1652685213.226|PROTOERR|rdkafka#consumer-1| [thrd:GroupCoordinator]: GroupCoordinator/0: Protocol parse failure for ApiVersion v3(flex) at 3/10 (rd_kafka_handle_ApiVersion:2131) (incorrect broker.version.fallback?)
%7|1652685213.227|PROTOERR|rdkafka#consumer-1| [thrd:GroupCoordinator]: GroupCoordinator/0: ApiArrayCnt -1 out of range
Could this be the source of my error?

Hi @mhowlett,
Trying to solve the issue, I have added manually the topic partitions to the consumer and it works:
`
string topic = "topicName";
var partitions = new List();
for (int i = 0; i < 10; i++)
{
partitions.Add(new TopicPartitionOffset(new TopicPartition(topic, new Partition(i)), Offset.Beginning));
}
c.Assign(partitions);
c.Subscribe(topic);
`
Dont know why buy I hope this workaround helps someone with my same problem.
If you know why this is working, please let me know.

%7|1652685213.226|PROTOERR|rdkafka#consumer-1| [thrd:GroupCoordinator]: GroupCoordinator/0: Protocol parse failure for ApiVersion v3(flex) at 3/10 (rd_kafka_handle_ApiVersion:2131) (incorrect broker.version.fallback?)

That's no a problem, just how the protocol works. It can be safely ignored.


Smoke test tar

Description
Adds automated tarball smoke testing
Adds github action to run automated tarball smoke testing
Issues Resolved
(#869)[https://github.com/opensearch-project/data-prepper/issues/869]
Check List

[x] New functionality includes testing.
[x] New functionality has been documented.
[x] Commits are signed with a real name per the DCO

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

Codecov Report

Merging #1200 (b58f5dd) into main (b29b348) will increase coverage by 0.11%.
The diff coverage is n/a.

:exclamation: Current head b58f5dd differs from pull request most recent head 41b42e6. Consider uploading reports for the commit 41b42e6 to get more accurate results

@@             Coverage Diff              @@
##               main    #1200      +/-   ##
============================================
+ Coverage     94.07%   94.18%   +0.11%
+ Complexity     1075     1068       -7
============================================
  Files           142      142
  Lines          3055     3045      -10
  Branches        277      270       -7
============================================
- Hits           2874     2868       -6
+ Misses          130      128       -2
+ Partials         51       49       -2

Impacted Files
Coverage Δ

...om/amazon/dataprepper/model/trace/JacksonSpan.java
100.00% <0.00%> (ø)

...per/expression/ConditionalExpressionEvaluator.java
100.00% <0.00%> (ø)

.../com/amazon/dataprepper/plugins/sink/FileSink.java
87.50% <0.00%> (+6.73%)
:arrow_up:

...om/amazon/dataprepper/plugins/sink/StdOutSink.java
100.00% <0.00%> (+13.33%)
:arrow_up:

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 b29b348...41b42e6. Read the comment docs.

That is correct. We do not produce a macOS archive. We have #845 open to add it. I'd like to see if there is specific demand for it.


virtual-workspace: must not return 404 due to stale informers

404 must not be returned by apiservers due to missing persmissions or due to stale caches. If the authorization cache is stale, we should return 403.
Also note that we must not leak existence when permission are lacking, i.e. the response should exactly be the same when a) a workspace does not exist b) there is no access for the user to a workspace.

The only left lister based call is for list. The others don't use the auth cache. Having the filtered list lister-based is not perfect but good enough.
Authz of the other requests uses SAR. So I think we can close this timebomb.


Make investment year and year of cost assumption independent for overnight

Addressing the issue #177.
The wildcard "planning_horizons" is unchanged - but input cost year (e.g., in prepare_sector_network) is now either equivalent to "planning_horizons" (for myopic) or config["costs"]["year"] (for overnight).
In that way, overnight can be run for e.g. 2050 with cost assumptions for 2030.

@ebbekyhl thanks a lot! I think we should change the config.yaml now as well, so that we only have the time dependent dictionaries, since we can run overnight scenarios now with planning horizon 2050. Then one would not have to comment in all the time-dependent settings for the myopic code, e.g. for the EV-share here


New patches for sun4i/mk802 and other machines

I need this to make everything work like it used to, including hanging USB ethernet off the OTG port, which requires host mode in the DTS (or the kernel driver mode doesn't matter).  The other USB host port is just way too slow...  With these patches your A20 wiki page works for mk802 tv-sticks/tablets (tested on mk802 1G).

Thanks Steve!

Np, thank you for keeping this stuff up to date.  Next is bpi-m3 with ethernet...


a question about a statement in the paper

Hello,
In the paper, you say "ActionFormer [Anne Hendricks et al., 2017] is used as the detection head" and then give Hendricks et al.'s paper as reference. But Hendricks et al.'s paper doesn't mention any model called ActionFormer. There is one paper called [ActionFormer](https://arxiv.org/pdf/2202.07925 by Zhang et al. Did you mean that paper and an error occurred during writing? I am asking to understand the details of the detection head of the architecture for temporal action localization.
Bests,
Püren

Apologies for the incorrect citation, and thank you for bringing it to our attention. We will promptly correct the error in the paper on arXiv.


name can be updated without forcing environment to be recreated

fixes https://github.com/Mongey/terraform-provider-confluent-cloud/issues/9
Field "name" can be updated without forcing the environment to be recreated.

thanks!


Added traffic to Statistics

I'm not sure whether adding this data verbatim is of much use. Should we do some preprocessing?

We use this data to display the Traffic of each node. I don't need it upstream, but i thought that it could be  usefull for other communitys.

What are you using this data for? We could work on a format that is useful for many communities.

atm we are using alfred_merged.json as information source for http://fmon.freifunk-troisdorf.de because of missing traffic data in nodes.json. with this commit we should be able to replace the source.