Problems with Python3.7

Hi, I need to use Python3.7 with this boilerplate but I been getting these errors when I update from 3.6 to 3.7:
flask-react-spa: python3 manage.py db upgrade
Traceback (most recent call last):
  File "/Users/.../flask-react-spa/backend/magic.py", line 331, in models
    raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 62, in <module>
    main()
  File "manage.py", line 58, in main
    cli.main(args=sys.argv[1:])
  File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/flask/cli.py", line 557, in main
    return super(FlaskGroup, self).main(*args, **kwargs)
  File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/click/core.py", line 1061, in invoke
    cmd_name, cmd, args = self.resolve_command(ctx, args)
  File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/click/core.py", line 1100, in resolve_command
    cmd = self.get_command(ctx, cmd_name)
  File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/flask/cli.py", line 515, in get_command
    rv = info.load_app().cli.get_command(ctx, name)
  File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/flask/cli.py", line 367, in load_app
    app = call_factory(self, self.create_app)
  File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/flask/cli.py", line 114, in call_factory
    return app_factory(script_info)
  File "manage.py", line 34, in <lambda>
    create_app=lambda _: create_app(),
  File "/Users/.../flask-react-spa/backend/app.py", line 49, in create_app
    static_url_path=STATIC_URL_PATH
  File "/Users/.../flask-react-spa/backend/app.py", line 69, in _create_app
    register_models(app)
  File "/Users/.../flask-react-spa/backend/app.py", line 139, in register_models
      for model_name, model_class in bundle.models:
RuntimeError: generator raised StopIteration

It happens in this method:
def register_models(app):
    """Register bundle models."""
    models = {}
    for bundle in app.bundles:
        for model_name, model_class in bundle.models:
            models[model_name] = model_class
    app.models = models

Some quick Googling shows this:
PEP 479 is enabled for all code in Python 3.7, meaning that StopIteration exceptions raised directly or indirectly in coroutines and generators are transformed into RuntimeError exceptions. (Contributed by Yury Selivanov in bpo-32670.)

Any ideas how to fix this?

I believe you can replace the raise StopIteration calls with return () ?
On Mon, Nov 25, 2019 at 9:31 PM unrealfuzzy<EMAIL_ADDRESS>wrote:

Hi, I need to use Python3.7 with this boilerplate but I been getting these
errors when I update from 3.6 to 3.7:
flask-react-spa: python3 manage.py db upgrade
Traceback (most recent call last):
File "/Users/.../flask-react-spa/backend/magic.py", line 331, in models
raise StopIteration
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 62, in
main()
File "manage.py", line 58, in main
cli.main(args=sys.argv[1:])
File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/flask/cli.py", line 557, in main
return super(FlaskGroup, self).main(*args, **kwargs)
File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/click/core.py", line 1061, in invoke
cmd_name, cmd, args = self.resolve_command(ctx, args)
File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/click/core.py", line 1100, in resolve_command
cmd = self.get_command(ctx, cmd_name)
File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/flask/cli.py", line 515, in get_command
rv = info.load_app().cli.get_command(ctx, name)
File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/flask/cli.py", line 367, in load_app
app = call_factory(self, self.create_app)
File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/flask/cli.py", line 114, in call_factory
return app_factory(script_info)
File "manage.py", line 34, in
create_app=lambda _: create_app(),
File "/Users/.../flask-react-spa/backend/app.py", line 49, in create_app
static_url_path=STATIC_URL_PATH
File "/Users/.../flask-react-spa/backend/app.py", line 69, in _create_app
register_models(app)
File "/Users/.../flask-react-spa/backend/app.py", line 139, in register_models
for model_name, model_class in bundle.models:
RuntimeError: generator raised StopIteration
It happens in this method:
def register_models(app):
"""Register bundle models."""
models = {}
for bundle in app.bundles:
for model_name, model_class in bundle.models:
models[model_name] = model_class
app.models = models
Some quick Googling shows this:
PEP 479 is enabled for all code in Python 3.7, meaning that StopIteration exceptions raised directly or indirectly in coroutines and generators are transformed into RuntimeError exceptions. (Contributed by Yury Selivanov in bpo-32670.)
Any ideas how to fix this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/briancappello/flask-react-spa/issues/16?email_source=notifications&email_token=AATVELH6WMW6DALC4YOFZVLQVSRB3A5CNFSM4JRSJFB2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H377H4A,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AATVELCM4ALS4U4YQVOOR5DQVSRB3ANCNFSM4JRSJFBQ
.

I don't really understand what calls raise StopIteration. Seems like it's some internal Flask module.

I believe you can replace the raise StopIteration calls with return () ?
…
On Mon, Nov 25, 2019 at 9:31 PM unrealfuzzy @.***> wrote: Hi, I need to use Python3.7 with this boilerplate but I been getting these errors when I update from 3.6 to 3.7: flask-react-spa: python3 manage.py db upgrade Traceback (most recent call last): File "/Users/.../flask-react-spa/backend/magic.py", line 331, in models raise StopIteration StopIteration The above exception was the direct cause of the following exception: Traceback (most recent call last): File "manage.py", line 62, in  main() File "manage.py", line 58, in main cli.main(args=sys.argv[1:]) File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/flask/cli.py", line 557, in main return super(FlaskGroup, self).main(*args, **kwargs) File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/click/core.py", line 1061, in invoke cmd_name, cmd, args = self.resolve_command(ctx, args) File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/click/core.py", line 1100, in resolve_command cmd = self.get_command(ctx, cmd_name) File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/flask/cli.py", line 515, in get_command rv = info.load_app().cli.get_command(ctx, name) File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/flask/cli.py", line 367, in load_app app = call_factory(self, self.create_app) File "/Users/.../flask-react-spa/env/lib/python3.7/site-packages/flask/cli.py", line 114, in call_factory return app_factory(script_info) File "manage.py", line 34, in  create_app=lambda _: create_app(), File "/Users/.../flask-react-spa/backend/app.py", line 49, in create_app static_url_path=STATIC_URL_PATH File "/Users/.../flask-react-spa/backend/app.py", line 69, in _create_app register_models(app) File "/Users/.../flask-react-spa/backend/app.py", line 139, in register_models for model_name, model_class in bundle.models: RuntimeError: generator raised StopIteration It happens in this method: def register_models(app): """Register bundle models.""" models = {} for bundle in app.bundles: for model_name, model_class in bundle.models: models[model_name] = model_class app.models = models Some quick Googling shows this: PEP 479 is enabled for all code in Python 3.7, meaning that StopIteration exceptions raised directly or indirectly in coroutines and generators are transformed into RuntimeError exceptions. (Contributed by Yury Selivanov in bpo-32670.) Any ideas how to fix this? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#16?email_source=notifications&email_token=AATVELH6WMW6DALC4YOFZVLQVSRB3A5CNFSM4JRSJFB2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H377H4A>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATVELCM4ALS4U4YQVOOR5DQVSRB3ANCNFSM4JRSJFBQ .

If you look at the top of the traceback, it says line 331 in backend/magic.py (but there are other cases too; best to do a search and replace across the code base)

Yeah I just handled the iterator conversion into lists and it worked okay.


Allow thrown error from an endpoint be rendered with $error.svelte?

Is your feature request related to a problem? Please describe.
If you have a form that points to an endpoint, and the submission is not hijacked by js, ideally if the method function throws an error, user would see a rendered error page instead of a barebone error message.
Describe the solution you'd like
Endpoint can export a flag to signal that the corresponding method function's thrown error should be rendered with $error.svelte.
Something like
export const renderPostError = true
// or
export const renderError = {post: true}
// or
export async function post() {}
post.renderError = true

Describe alternatives you've considered
How important is this feature to you?
Not very, it's only visible when the endpoint is displayed as a full page.
Additional context

It's not as simple as that, as I just realized.
As mentioned in #1203, the endpoint also needs to take into consideration if the request was from a form or fetch, in other words, error rendering should be conditional.
The only elegant solution I can think of, is that there needs to be a standardized way to signal svelte kit that if the request was made by an Ajax mechanism.
This is only for the (very) edge case where users have js disabled, and some exception was thrown in the endpoint. Probably not worth the time to optimize for.


Scaf should install required packages without elevated permissions

Ensure the following do not require sudo or running scaf install as root:

kubectl
kind
tilt (this one is already ok)
scaf script

Look at how tilt is installed as an example. However, fix the prompt so that it doesn't just do it anyway after the warning:

Going to re-open, it appears that we are still using sudo even when copying to $HOME/.local/bin


Adding required alert for all inputs fields in donate form

Is your feature request related to a problem? Please describe.
I observed that whenever we are submitting donate form without filling any info it was not generating any alert.
Describe the solution you'd like
I'll add required alert in donate form.
Additional context
I am SSOC'24 Contributor.
Please assign me this task.

Please assign me this issue

Can you Assigne this issue under SSOC'24,I can keep alerts


Fix security.get_api_key and security.query_api_keys APIs

Added missing fields invalidation, access and type.
Added ApiKeyRead using the OverloadOf behavior as some fields are optional with the Authenticate API but always defined when reading API keys.

I just realized that it's not Read vs. Write: security.authenticate uses ApiKey but only ever writes name and id: https://github.com/elastic/elasticsearch/blob/ea90fbc10d3371e5e3b9921a81a4936c2e39d5f4/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authc/Authentication.java#L737-L744. I'll create a specific ApiKey class just for that API.


Reorder by default

winter.build_schedule_locally(
    program_name=program,
    data=too_list
)

to do reordering by default, but enable the option to keep the original order. And then the user is responsible for checking things, with no reordering done on the server side.
local_schedule.sort_values(by=["filter", "validEnd"], inplace=True)
local_schedule.reset_index(inplace=True)
local_schedule.drop(columns=["index"], inplace=True)
local_schedule["obsHistID"] = range(len(local_schedule))

I think this is risky and I'll defer to users instead


deduplicate common address and phone types

Coverage remained the same at 89.813% when pulling 4ad05cc54fa50fe8ac4adedf4e5a89bcdd64ec38 on deduplicate-common-types into e96f3b873ccc58d5207bc48b83d7768aeb84df5f on develop.


HDDS-9658. NPE while cleanup deleted container data

What changes were proposed in this pull request?
volume is not fully initialized when ContainerReader is performing verify and cleanup container data. So causing NPE for temp directory and container deleted path.
while reading volume, temp dir and deleted container dir is initialized before reading container with working dir (as one used for reading container data at same co-location).
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9658
How was this patch tested?

test case updated to cover same scenario

created over wrong base branch.


Fixed listing cartridge groups in cli

Could not list down cartridge groups as "scalingDependents" was missing from cxf-servlet.xml
Changed error messages to have more details

Thanks for the fix Pubudu!! I have now merged this pull request to master branch.


Refresh Token Expire Date

Environment

Operating System: Linux
Node Version:     v23.2.0
Nuxt Version:     3.14.159
CLI Version:      3.15.0
Nitro Version:    2.10.4
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      default
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction
  auth: {
    isEnabled: true,
    globalAppMiddleware: true,
    baseURL: 'http://<IP_ADDRESS>:8000/userarea/',
    provider: {
      type: 'local',
      token: {
        signInResponseTokenPointer: '/access',
        type: 'Bearer',
        cookieName: 'auth.access',
        headerName: 'Authorization',
        maxAgeInSeconds: 60 * 3,
        sameSiteAttribute: 'lax',
        secureCookieAttribute: false,
        httpOnlyCookieAttribute: false,
      },
      endpoints: {
        signIn: { path: 'login', method: 'POST' },
        signOut: { path: 'logout', method: 'POST' },
        getSession: { path: 'user-info', method: 'GET' },
        signUp: false
      },
      refresh: {
        isEnabled:true,
        refreshOnlyToken: true,
        token: {
          signInResponseRefreshTokenPointer: '/refresh',
          refreshRequestTokenPointer: '/refresh',
          cookieName: 'auth.refresh',
          maxAgeInSeconds: 1800,
          sameSiteAttribute: 'lax',
          secureCookieAttribute: false,
          httpOnlyCookieAttribute: false,
        },
        endpoint: {
          path: 'refresh',
          method: 'POST',
        },
      },
    },
    sessionRefresh: {
      enablePeriodically: 1000 * 30,
      enableOnWindowFocus: true,
    },
  },

Describe the bug
I have Django JWT Backed with access (5 minutes exp) & refresh token (90 days exp)
the refresh token rotation is not active so I used refreshOnlyToken:true.
I want my refresh token cookie to be expired in 90 days. but I can't set maxAgeInSeconds to 60 * 60 * 24 * 90 because max time is 24 days.
what is the approach here ?
Additional context
No response
Logs
No response

because max time is 24 days.

Could you please elaborate why? Is it a technical limitation from JavaScript side, our library or Django? Afaik, browser limits on cookie age are high enough for your usecase

I want my user to have the refresh token cookie for 90 days. because it's standard to keep the refresh token for this amount of days but I can't set the maxAgeInSeconds to 90 days. so it's gonna be expired after 24 days but it should be kept for 90.

I don't understand what you mean? You mean that the max delay argument supplied to the setInterval function is 24.8 days?
https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval#return_value
https://github.com/sidebase/nuxt-auth/blob/218a8465fd01fbf70562ab4cc1083dea3931d1a1/src/runtime/utils/refreshHandler.ts#L46-L52
Yes, it's logical that you can't set the timer longer than 24 days, but you have to keep in mind that setInterval is only valid while the browser tab is active and it won't persist across reloads. As it's highly improbably of anyone keeping the tab open for over 24 days (or your 90 days), I am not sure what exactly are you trying to achieve?
Maybe a better implementation would've been to set the interval to the actual expiry date of the refresh token, but that's another story.


Preserve row order of input file?

Thanks for csvtotable! It works great except for one (minor) issue. The rows of my input files are sorted in a specific order but csvtotable appears to automatically (re)sort the data on the first column when generating the html table. Not a huge deal, but it would be nice to have the option to preserve the row order of the input file. Again, thanks for csvtotable!

It wasn't intentional, will fix this behavior in upcoming release.

Sorry I'm 3 years late - I was just wondering if you're able to help guide me to which section of the code I should update so that the row order is preserved. I'd be happy to do a fork and pull request. Thanks!

Sorry I'm 3 years late - I was just wondering if you're able to help guide me to which section of the code I should update so that the row order is preserved. I'd be happy to do a fork and pull request. Thanks!

I found the issue and made a patch. Pull request #33.

I found the issue and made a patch. Pull request #33.


MySQL-python-1.2.5 dict convert issue

hue/desktop/core/ext-py/MySQL-python-1.2.5/MySQLdb/cursors.py
query = query % dict((key, db.literal(item))
                                     for key, item in args.iteritems())

I don't know how to write query
Do I need to change it to the following
query = query.format(**dict((key, db.literal(item))
                                     for key, item in args.iteritems()))

db.execute("insert into xx value({a})", **{"a":1})

Yes, and this will be clean-up with https://issues.cloudera.org/browse/HUE-8737 (@wing2fly )


Use FLAG exported constant to count occurrences

Thought experiment for https://github.com/zeit/arg/issues/11.
Although, doing this, I just realized Boolean isn't a very useful constructor to begin with since -x false is true because Boolean('false') === true. I also checked out http://wiki.bash-hackers.org/howto/getopts_tutorial to understand the expected behavior, it seems to use a trailing colon to be a "flag" or "switch".

I'm -1 on this, see https://github.com/zeit/arg/issues/11#issuecomment-445632111. Using Boolean is very clear you're going to either get true or false(ey) values.
Note that getopts isn't GNU option parsing, which is what most people expect from CLI programs nowadays. The most common pattern to follow can be seen here: https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html

@Qix- It looks like getopts uses the colon after an argument name and it's up to the user to aggregate the flags as a counter. Would it make sense to decorate in a similar way? I'm definitely trying to come up with an elegant solution here without making anything worse 😄

I'm not sure what you mean. getopts is 100% a different CLI notation than GNU arguments, and would be a completely breaking change with how users pass options to their programs - one that isn't commonly used anymore.

Sorry, typo - meant getopt. It’s the one linked in the GNU docs you sent me.

I’m also not trying to change any parsing behaviour. I think it makes sense to follow GNU parsing closely.

I see what you mean now.

Would it make sense to decorate in a similar way?

No, I don't think so - it just means more pre-processing of argument keys on our end for a strange syntax that isn't clear just by looking at the argument specification passed to arg().
I think the discussion in #11 is leading to something very unobtrusive and backwards compatible.

@Qix- Thanks! I'll leave you to come up with the preferred approach. Feel free to close these PRs and ping me when it's done so I can update the TypeScript definition.

Closing in favor of #27. Thank you again for these cool prototypes :)


test: Add helper function for generating blocks for p2p_syncing_test.py

I like the idea of making it an example but it uses private modules so I don't know if we want to expose them just for this example.


Feature improvement in exit

When the exit confirmation message appears, if you enter anything other than yes/no, ask again in the relevant section.

It was done. Thank you for your Issue.


Added XGboost integration

Describe changes
I implemented two XGBoost materializers to enable support for storing XGBoost native objects.
Pre-requisites
Please ensure you have done the following:

[x] I have read the CONTRIBUTING.md document.
[x] If my change requires a change to docs, I have updated the documentation accordingly.
[x] If I have added an integration, I have updated the integrations table.
[ ] I have added tests to cover my changes.

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Other (add details above)

@schustmi @AlexejPenner Applied all your requested changes. @schustmi Now materializers clean up before returning :-)


Add Slack display name requirements to new developer guide

This is a...

[x] Feature Request
[ ] Bug Report

Problem:
The other day I was informed that when interracting with the Kubernetes Developer Community on slack  I should change my Slack display name to be the same as my github handle.  The person telling me then wondered if we had this documented in the new developer guide.  I checked and this does not appear to be mentioned in the new developer guide.
Proposed Solution:
Add a section to the new developer guide (https://github.com/kubernetes/community/blob/master/contributors/devel/welcome-to-kubernetes-new-developer-guide.md)  to mention that when interracting with the Kubernetes Developer Community on slack all contributors should make sure  their Slack display name is the same as their github handle.
Page to Update:
https://github.com/kubernetes/community/blob/master/contributors/devel/welcome-to-kubernetes-new-developer-guide.md

Great!  I'll add this one to my todo list. Thanks!

It'd also be good to keep the icon the same between GH and slack. I think that's more recognizable. But that's okay, it depends on guys' wish.


ticdc: sha256sum of golang download needs update

    @dveeden I think we need to change this sha value.

Originally posted by @hi-rustin in https://github.com/pingcap/tiflow/pull/7240#discussion_r984186774

/severity minor

/type bug
/area ticdc

/assign


.Net: get helper needs to be added back to the handlebars planner

In PR https://github.com/microsoft/semantic-kernel/pull/4343, the get helper was removed from the handlebars planner. Unfortunately, this means that the planner is unable to retrieve variables correctly while inside of a #with or #each block helper.
For example, for the prompt "please add all the numbers between 55 and 65", the planner now generates the following plan
{{set "start" 55}}
{{set "end" 65}}

{{!-- Step 2: Create an array with values from start to end --}}
{{set "numbers" (range start end)}}

{{!-- Step 3: Initialize a variable to sum all the numbers --}}
{{set "sum" 0}}

{{!-- Step 4: Loop through the array and sum all the numbers --}}
{{#each numbers}}
  {{set "sum" (MathPlugin-Add sum this)}}
{{/each}}

{{!-- Step 5: Print the sum --}}
{{json sum}}

Without the {{get}} helper, the LLM is unable to correctly retrieve the sum variable defined outside of the #each block. Because of this, an error is thrown.

I was facing this same issue while experimenting with the HandlebarsPlanner. You can use ../sum to force context to the parent context outside the '#each'. Reference: https://handlebarsjs.com/guide/expressions.html#changing-the-context
Updated Example
{{set "start" 55}}
{{set "end" 65}}
{{!-- Step 2: Create an array with values from start to end --}}
{{set "numbers" (range start end)}}
{{!-- Step 3: Initialize a variable to sum all the numbers --}}
{{set "sum" 0}}
{{!-- Step 4: Loop through the array and sum all the numbers --}}
{{#each numbers}}
{{set "sum" (MathPlugin-Add ../sum this)}}
{{/each}}
{{!-- Step 5: Print the sum --}}
{{json sum}}
However, plan generation currently doesn't provide context on this detail in CreatePlanPrompt.handlebars, so I've been generating plans, then editing them by hand as a workaround.

Closing as this has been addressed by #4528
Note: I am working on increasing the test coverage for Handlebars planner. If the new tests reveal more issues related to the removal of the get helper, we may revisit this issue.


Fluent Arguments

Adds a fluent interface to both the ArgumentBuilder and ProcessSettings
that allows arguments to be neatly chained.

If you merge this and deploy a new package I can release my Powershell add-on that makes use of the fluent arguments.
PS: I :heart: cake

Hello @SharpeRAD,
First of all, let me thank you for contributing to Cake.
Cake :heart:  you to! :smile:
I have some objections with the PR though.

I don't really see the need for an IProcessArgumentList since all extensions for the ProcessBuilder already are fluent. Am I missing something here?

The NamedParameter is a good initiative, but it only covers one named parameter case, where the argument looks like -key value. It won't cover other cases such as -key=value, /key=value, /key:value (or other permutations of those). The reasoning about the ProcessArgumentBuilder is to be generic, so we haven't implemented any specific parameters for this reason. I actually think it would be better if you could provide this functionality directly from your PowerShell project for now.

No examples or use case of the added functionality in the PR description.

No unit tests for the added functionality.

This is not meant as discouragement in any way, but I think we need to have a discussion about the functionality proposed in this PR.
Best regards
Patrik

Sorry I should have included an example! I'm allowing classes that use the ArgumentBuilder to share the same extension methods, making for some very clean alias calls:
StartProcess("Example.exe", new ProcessSettings().Append("Accept").Append("Request"));

It allows add-ons to use the ArgumentBuilder in new contexts, eg: in my PowershellSettings class.
Did i mention  I :heart: cake

I accept your concerns regarding NamedArgument and address them in my latest commit with a format field:
StartProcess("Example.exe", new ProcessSettings().AppendNamed("Action", "AcceptPR", "/{0}={1}"));

You can also set the default format in the ArgumentBuilder constructor:
new ProcessArgumentBuilder("/{0}={1}").AppendNamed("Action", "AcceptPR");

Fixed a few silly mistakes, added some missing extension methods and where possible replaced existing Append calls with AppendNamed equivalents.
Final commit shows that the proposed changes work for all existing use cases.

Hello @SharpeRAD,
First of all, let me apologize for the late answer.
I'm really happy that you're entusiastic about your changes, but I'm afraid that we cannot accept this pull request in it's current state. It's simply too many things implemented at once, and no unit tests for the new/changed functionality.
I think the interface for the argument builder is a good idea, but I don't think we should change every call in the code base to be fluent (I'm thinking about the commit Putting Fluent arguments to use). I also think that this functionality would benefit from a discussion since it affects most tools and aliases.
The named parameter addition is also something that I feel is something that could be better implemented outside of Cake as an addin. This is something that is nice to have, but the construct we have today is kept simple for a reason. The NamedParameter does not feel very intutitive and I prefer to keep the functionality around the ArgumentBuilder simple and rather build some kind of wrapper that is more specialized in a case like this.
Please see the Contribution Guidelines, and make sure you submit one PR per feature. Also start an issue about things that you would like to work on to make sure that the additions you want is aligned with the Cake project.
We're happy to assist/continue the discussion if you have any follow-up questions or feedback. Come to out Gitter room and we'll be happy to continue the discussion.
Best regards
Patrik


Add headers option

This PR allow a user to set extra headers on each requests using the headers options
Here a usage
$('.videos').infiniteScroll({
    append: false,
    history: false,
    responseType: 'text',
    headers: function () {
      return [['X-Session-Id', localStorage.getItem('X-SessionFront-Id')]]
    },
    path: function() {
      self.current_page = this.loadCount + 2
      if( self.current_page <= count ) {
        return path + self.current_page
      }
      self.update()
    },
    status: '.scroll-status',
})

Thank you for this contribution! This looks straightforward. I may re-tool this a bit.
Related #791

Infinite Scroll v4 has been released. Infinite Scroll v4 adds a new option, fetchOptions, which allows you to set headers and other fetch options.
fetchOptions: {
  mode: 'cors',
  cache: 'no-cache',
  credentials: 'same-origin',
  headers: {
    'X-Session-Id': '33vscths658h7996d324rqft1s',
  },
},

Thank you for your original contribution. While I did not merge it in, your effort did help me decide to support the feature.

Infinite Scroll v4 has been released. Infinite Scroll v4 adds a new option, fetchOptions, which allows you to set headers and other fetch options.
fetchOptions: {
  mode: 'cors',
  cache: 'no-cache',
  credentials: 'same-origin',
  headers: {
    'X-Session-Id': '33vscths658h7996d324rqft1s',
  },
},

Thank you for your original contribution. While I did not merge it in, your effort did help me decide to support the feature.


mission || about page

Good Lord, man. :)

Hahaha. Just creeped up when I was vetting issues assigned to me! :)


Batching of integrals for Polarizable Embedding

For large environments, pyscf can run into memory issues in PE calculations. This PR splits up the integral computations into individual batches, depending on how much memory is available.
Furthermore, this PR adds the feature to use repulsive potentials on the environment sites to avoid electron spill-out (https://doi.org/10.1021/acs.jctc.9b01162).

I have no idea why the tests are failing... can anyone help me with this please? 😄

Codecov Report

Merging #700 into master will decrease coverage by 0.28%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #700      +/-   ##
==========================================
- Coverage   82.98%   82.69%   -0.29%
==========================================
  Files         667      666       -1
  Lines      128888   128687     -201
==========================================
- Hits       106957   106422     -535
- Misses      21931    22265     +334

Impacted Files
Coverage Δ

solvent/test/test_pol_embed.py
25.16% <0.00%> (-71.42%)
:arrow_down:

geomopt/berny_solver.py
6.20% <0.00%> (-67.45%)
:arrow_down:

geomopt/geometric_solver.py
4.06% <0.00%> (-66.67%)
:arrow_down:

geomopt/addons.py
20.00% <0.00%> (-55.00%)
:arrow_down:

geomopt/test/test_berny_solver.py
55.55% <0.00%> (-37.04%)
:arrow_down:

solvent/__init__.py
39.58% <0.00%> (-20.84%)
:arrow_down:

__config__.py
80.00% <0.00%> (-15.00%)
:arrow_down:

geomopt/test/test_geometric_solver.py
55.55% <0.00%> (-14.82%)
:arrow_down:

lib/misc.py
66.18% <0.00%> (-4.15%)
:arrow_down:

grad/rhf.py
85.71% <0.00%> (-2.15%)
:arrow_down:

... and 16 more

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 2443e70...f4e055e. Read the comment docs.

The memory estimation for PE is still a bit unreliable, so I'm going to make some tweaks before this can be merged.


Time difference issue while adding the promotion in the listing and at the time of adding the promotion.

Description
Test Environment--
-- Shopware version: Version <IP_ADDRESS>
Describe the bug
On the promotion page, Added the promotion with some specific time but in the listing, the same time is not showing. Time is showing in the list as per other time zone format.
To Reproduce
Steps to reproduce the behavior:

Go to the marketing>promotion page.
Click on Add promotion.
Select the "valid from" and "valid until" date and input the other required detail
And then click on the Save button.
5.Here time Showing in the listing is different at the time of adding promotion.

Expected behavior
It must be same time in the listing and at the of adding promotion. And promotion should be applied in the cart as per the selected time.
Screen recording
promotion.mp4.zip

Hello,
Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.
If you feel like this issue is still impacting you, please create a new issue and let us know.
Thank you again for your valuable feedback.

Hello,
Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.
If you feel like this issue is still impacting you, please create a new issue and let us know.
Thank you again for your valuable feedback.


/ipam/prefixes/UUID/available-ips endpoint doesn't consider IPs in child prefixes

Environment

Nautobot version (Docker tag too if applicable): 2.3.10
Python version: 3.11
Database platform, version:
Middleware(s):

Steps to Reproduce

Create a prefix (e.g. <IP_ADDRESS>/28)
Create a child prefix under the created prefix (e.g. <IP_ADDRESS>/29)
Create an IP in the child prefix (e.g. <IP_ADDRESS>)
Make an API call for /ipam/prefixes/UUID_OF_PARENT_PREFIX/available-ips; note the IP created in step 3 is included in the response
Make an API call for /ipam/prefixes/UUID_OF_CHILD_PREFIX/available-ips; note that the IP created in step 3 is not included in the response

Expected Behavior
"available" to me implies a set of IPs in a prefix which minus the IPs in that prefix which exist in Nautobot. In other words, "available" means "available to created", not "all the possible IPs in a given prefix".

Observed Behavior
Observed behavior is documented in the "step to reproduce".

I'm thinking this isn't news to you, but just so it's documented here: This appears to be change in behavior compared to 1.6.

This is very likely related to #6170 which resulted in us adding a new method that get IPs that does account for child prefixes. We should just need to change these endpoints to use that method.


integrate stm32f103x official libs to PLAT[STM32F103-ISO]

i pull the  source from github.com  ,and fix up the startup file ,make has worked ,but it dose not work when i flash the elf file  to device, it lose libs,and the tree of source has the stm32 libs directory only,but not build yet,so i add it to Makefile and fix some mistakes,and Its already running in my device now!

please merge your commits into LITEOS:develop branch

OK


405: Method Not Allowed

I think it does not work anymore. They must have change something. Do you have this message as well?
Or is it related to your latest commits?

It works now... strange

Now I have this response:
{
    "detail": [
        {
            "loc": [
                "body",
                130
            ],
            "msg": "Unterminated string starting at: line 1 column 131 (char 130)",
            "type": "value_error.jsondecode",
            "ctx": {
                "msg": "Unterminated string starting at",
                "doc": "{\"action\":\"next\",\"messages\":[{\"id\":\"cd465ab7-3ee4-40e7-8e48-ade9926ad68e\",\"role\":\"user\",\"content\":{\"content_type\":\"text\",\"parts\":[\"prompt",
                "pos": 130,
                "lineno": 1,
                "colno": 131
            }
        }
    ]
}

it works now


test: add story for chat lhs header

Add stories
I've broken out the environment check so that we can test the two versions

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


issuee

mention h-Farm in the project Readme

fixed in https://github.com/diaraand/test-repo/commit/c7ab10b31849b2cba5bb99b05383d25f50db4d53


dataURI not show in Firefox

Version
5.0.2
Reproduction link
https://codepen.io/brucewar/pen/zYoLaKo
Steps to reproduce
see codepen
What is expected?
show as Chrome
What is actually happening?
not show

Could you tell us what version of Firefox are you using?

I can reproduce in latest version

I can reproduce in latest version

Could you tell us what version of Firefox you are using?

maybe firefox bug，must set width and height for svg

Yes. width and height are required for the image if you are using SVG renderer.

According to this question, it should be a bug of Firefox.


New fetch enable

OT PR here to check AscentLint (https://github.com/lowRISC/opentitan/pull/15528). It's vendored from my repository so that one shouldn't be merged. Instead we'll vendor across Ibex from the master repository once this is merged.

AscentLint looks good so merging


Unexpected behaviour duing continious master election

Hi,
I am trying to write a code for a cluster, where only one node would periodially download a file and store it for everyone else. I don't want to put the file via promote because I want to know who is the leader first, so that only that node does work. I plan to write the file to another key and let everyone observe. I could probably still use promote, but the file should still be readable if it is stale and I'll probably have to put an empty value during initial campaign call.
Anyway, it seems like I cannot implement a continious master election. I am having spurious wake-up from client.campaign(...) for both leaders and not leaders. This is due to lease expiry during the campaign call.
Here is the code that reproduces the issue
use etcd_client::*;
use tracing::info;

async fn elect_and_work(
    idx: i32,
    mut etcd_client: Client,
    etcd_path: String,
) -> anyhow::Result<()> {
    loop {
        let resp = etcd_client.lease_grant(10, None).await?;
        let lease_id = resp.id();
        // info!("grant ttl:{:?}, id:{:?}", resp.ttl(), resp.id());
        let election_path = format!("{}/test_election", etcd_path);

        // campaign
        let resp = etcd_client
            .campaign(election_path.as_str(), "123", lease_id)
            .await?;
        let leader = resp.leader().unwrap();
        info!(
            "Won election name: idx={}, {:?}, leaseId:{:?}, my_lease: {:?}",
            idx,
            leader.name_str(),
            leader.lease(),
            lease_id,
        );
        let (mut keeper, mut keeper_responses) = etcd_client.lease_keep_alive(lease_id).await?;
        for _ in 0..5 {
            info!("Keeping alive (idx={})...", idx);
            keeper.keep_alive().await?;
            if let Some(resp) = keeper_responses.message().await? {
                info!(
                    "Lease on idx={}, {:?} kept alive, new ttl {:?}",
                    idx,
                    resp.id(),
                    resp.ttl()
                );
            }
            tokio::time::delay_for(tokio::time::Duration::from_secs(3)).await;
        }
    }
}

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    ::std::env::set_var("RUST_LOG", "election_repro=info");
    let endpoints = vec!["http://<IP_ADDRESS>:2379"];
    tracing_subscriber::fmt::init();
    let etcd_client = etcd_client::Client::connect(endpoints, None).await?;

    let mut join_handles = vec![];

    for idx in 0..5 {
        let client = etcd_client.clone();
        let join = tokio::spawn(async move {
            elect_and_work(idx, client, "/election_repro".into())
                .await
                .unwrap();
        });
        join_handles.push(join);
    }
    futures::future::join_all(join_handles).await;

    Ok(())
}

The log:
Dec 28 16:55:42.986  INFO election_repro: Won election name: idx=0, Ok("/election_repro/test_election"), leaseId:7587851380158607485, my_lease:<PHONE_NUMBER>158607485
Dec 28 16:55:42.987  INFO election_repro: Keeping alive (idx=0)...
Dec 28 16:55:42.988  INFO election_repro: Lease on idx=0,<PHONE_NUMBER>158607485 kept alive, new ttl 10
Dec 28 16:55:45.989  INFO election_repro: Keeping alive (idx=0)...
Dec 28 16:55:45.991  INFO election_repro: Lease on idx=0,<PHONE_NUMBER>158607485 kept alive, new ttl 10
Dec 28 16:55:48.992  INFO election_repro: Keeping alive (idx=0)...
Dec 28 16:55:48.993  INFO election_repro: Lease on idx=0,<PHONE_NUMBER>158607485 kept alive, new ttl 10
Dec 28 16:55:51.994  INFO election_repro: Keeping alive (idx=0)...
Dec 28 16:55:51.995  INFO election_repro: Lease on idx=0,<PHONE_NUMBER>158607485 kept alive, new ttl 10
Dec 28 16:55:54.996  INFO election_repro: Keeping alive (idx=0)...
Dec 28 16:55:54.998  INFO election_repro: Lease on idx=0,<PHONE_NUMBER>158607485 kept alive, new ttl 10
Dec 28 16:56:05.031  INFO election_repro: Won election name: idx=4, Ok("/election_repro/test_election"), leaseId:7587851380158607493, my_lease:<PHONE_NUMBER>158607493
Dec 28 16:56:05.031  INFO election_repro: Won election name: idx=1, Ok("/election_repro/test_election"), leaseId:7587851380158607487, my_lease:<PHONE_NUMBER>158607487
Dec 28 16:56:05.032  INFO election_repro: Won election name: idx=0, Ok("/election_repro/test_election"), leaseId:7587851380158607512, my_lease:<PHONE_NUMBER>158607512
Dec 28 16:56:05.032  INFO election_repro: Won election name: idx=2, Ok("/election_repro/test_election"), leaseId:7587851380158607489, my_lease:<PHONE_NUMBER>158607489
Dec 28 16:56:05.032  INFO election_repro: Won election name: idx=3, Ok("/election_repro/test_election"), leaseId:7587851380158607491, my_lease:<PHONE_NUMBER>158607491
Dec 28 16:56:05.033  INFO election_repro: Keeping alive (idx=1)...
Dec 28 16:56:05.034  INFO election_repro: Keeping alive (idx=4)...
Dec 28 16:56:05.034  INFO election_repro: Keeping alive (idx=3)...
Dec 28 16:56:05.034  INFO election_repro: Keeping alive (idx=0)...
Dec 28 16:56:05.034  INFO election_repro: Keeping alive (idx=2)...
Dec 28 16:56:05.035  INFO election_repro: Lease on idx=3,<PHONE_NUMBER>158607491 kept alive, new ttl 0
Dec 28 16:56:05.035  INFO election_repro: Lease on idx=1,<PHONE_NUMBER>158607487 kept alive, new ttl 0
Dec 28 16:56:05.035  INFO election_repro: Lease on idx=4,<PHONE_NUMBER>158607493 kept alive, new ttl 0
Dec 28 16:56:05.035  INFO election_repro: Lease on idx=2,<PHONE_NUMBER>158607489 kept alive, new ttl 0
Dec 28 16:56:05.035  INFO election_repro: Lease on idx=0,<PHONE_NUMBER>158607512 kept alive, new ttl 10
Dec 28 16:56:08.037  INFO election_repro: Keeping alive (idx=2)...
Dec 28 16:56:08.037  INFO election_repro: Keeping alive (idx=4)...
Dec 28 16:56:08.037  INFO election_repro: Keeping alive (idx=1)...
Dec 28 16:56:08.037  INFO election_repro: Keeping alive (idx=3)...
Dec 28 16:56:08.037  INFO election_repro: Keeping alive (idx=0)...
Dec 28 16:56:08.038  INFO election_repro: Lease on idx=0,<PHONE_NUMBER>158607512 kept alive, new ttl 10
Dec 28 16:56:08.038  INFO election_repro: Lease on idx=2,<PHONE_NUMBER>158607489 kept alive, new ttl 0
Dec 28 16:56:08.038  INFO election_repro: Lease on idx=1,<PHONE_NUMBER>158607487 kept alive, new ttl 0
Dec 28 16:56:08.038  INFO election_repro: Lease on idx=3,<PHONE_NUMBER>158607491 kept alive, new ttl 0
Dec 28 16:56:08.038  INFO election_repro: Lease on idx=4,<PHONE_NUMBER>158607493 kept alive, new ttl 0
Dec 28 16:56:11.039  INFO election_repro: Keeping alive (idx=4)...
Dec 28 16:56:11.039  INFO election_repro: Keeping alive (idx=2)...
Dec 28 16:56:11.039  INFO election_repro: Keeping alive (idx=0)...
Dec 28 16:56:11.039  INFO election_repro: Keeping alive (idx=3)...
Dec 28 16:56:11.039  INFO election_repro: Keeping alive (idx=1)...
Dec 28 16:56:11.040  INFO election_repro: Lease on idx=3,<PHONE_NUMBER>158607491 kept alive, new ttl 0
Dec 28 16:56:11.040  INFO election_repro: Lease on idx=0,<PHONE_NUMBER>158607512 kept alive, new ttl 10
Dec 28 16:56:11.040  INFO election_repro: Lease on idx=2,<PHONE_NUMBER>158607489 kept alive, new ttl 0
Dec 28 16:56:11.040  INFO election_repro: Lease on idx=1,<PHONE_NUMBER>158607487 kept alive, new ttl 0
Dec 28 16:56:11.040  INFO election_repro: Lease on idx=4,<PHONE_NUMBER>158607493 kept alive, new ttl 0
Dec 28 16:56:14.042  INFO election_repro: Keeping alive (idx=3)...
Dec 28 16:56:14.042  INFO election_repro: Keeping alive (idx=1)...
Dec 28 16:56:14.042  INFO election_repro: Keeping alive (idx=2)...
Dec 28 16:56:14.042  INFO election_repro: Keeping alive (idx=0)...
Dec 28 16:56:14.042  INFO election_repro: Keeping alive (idx=4)...
Dec 28 16:56:14.043  INFO election_repro: Lease on idx=0,<PHONE_NUMBER>158607512 kept alive, new ttl 10
Dec 28 16:56:14.043  INFO election_repro: Lease on idx=2,<PHONE_NUMBER>158607489 kept alive, new ttl 0
Dec 28 16:56:14.043  INFO election_repro: Lease on idx=3,<PHONE_NUMBER>158607491 kept alive, new ttl 0
Dec 28 16:56:14.043  INFO election_repro: Lease on idx=4,<PHONE_NUMBER>158607493 kept alive, new ttl 0
Dec 28 16:56:14.043  INFO election_repro: Lease on idx=1,<PHONE_NUMBER>158607487 kept alive, new ttl 0
Dec 28 16:56:17.044  INFO election_repro: Keeping alive (idx=2)...
Dec 28 16:56:17.044  INFO election_repro: Keeping alive (idx=4)...
Dec 28 16:56:17.044  INFO election_repro: Keeping alive (idx=3)...
Dec 28 16:56:17.044  INFO election_repro: Keeping alive (idx=0)...
Dec 28 16:56:17.045  INFO election_repro: Keeping alive (idx=1)...
Dec 28 16:56:17.046  INFO election_repro: Lease on idx=0,<PHONE_NUMBER>158607512 kept alive, new ttl 10
Dec 28 16:56:17.046  INFO election_repro: Lease on idx=4,<PHONE_NUMBER>158607493 kept alive, new ttl 0
Dec 28 16:56:17.046  INFO election_repro: Lease on idx=2,<PHONE_NUMBER>158607489 kept alive, new ttl 0
Dec 28 16:56:17.046  INFO election_repro: Lease on idx=3,<PHONE_NUMBER>158607491 kept alive, new ttl 0
Dec 28 16:56:17.046  INFO election_repro: Lease on idx=1,<PHONE_NUMBER>158607487 kept alive, new ttl 0
Dec 28 16:56:27.537  INFO election_repro: Won election name: idx=0, Ok("/election_repro/test_election"), leaseId:7587851380158607519, my_lease:<PHONE_NUMBER>158607519
Dec 28 16:56:27.539  INFO election_repro: Keeping alive (idx=0)...
Dec 28 16:56:27.539  INFO election_repro: Lease on idx=0,<PHONE_NUMBER>158607519 kept alive, new ttl 10
Dec 28 16:56:30.541  INFO election_repro: Keeping alive (idx=0)...
Dec 28 16:56:30.542  INFO election_repro: Lease on idx=0,<PHONE_NUMBER>158607519 kept alive, new ttl 10
Dec 28 16:56:33.543  INFO election_repro: Keeping alive (idx=0)...
Dec 28 16:56:33.544  INFO election_repro: Lease on idx=0,<PHONE_NUMBER>158607519 kept alive, new ttl 10
Dec 28 16:56:36.546  INFO election_repro: Keeping alive (idx=0)...
Dec 28 16:56:36.547  INFO election_repro: Lease on idx=0,<PHONE_NUMBER>158607519 kept alive, new ttl 10

Notice how first election runs correctly. Only one client gets to win the election. Everyone else waits.
The leader sends keep-alives as expected. To simulate failure it stops sending keep-alive after 5 times. Now the interesting part begins.
New election runs. Someone wins, but everyone's campaign call completes. I'd expect an error to be returned at this point, but instead everyone gets a LeaderKey with their own lease_id. Did everyone just won and lost instantly? I am not sure, but it does not look like it. Only one can successfully update keep-alive on the lease and this is idx=0 because this client got a chance to refresh the lease due to completing the loop. Still, I don't really known the leader.
Eventually they all complete this strange loop, refresh their grants and participate in the correct election again.
What is most suprising none of this ever resurns Result=Err. Is there anything wrong in my code and I should check something else? Should Err be returned on wrong lease? Both?
Thanks,
Igor.

You can't depend on etcd's election to do your business.
In my opinion, the etcd election service APIs exposed by etcd-client are only used for etcd's maintenance scenarios.

I am trying to write a code for a cluster, where only one node would periodially download a file and store it for everyone else.

According to the descrption, I think you should get a distributed lock firstly, then do your business.  See Client::lock() and Client::unlock()

You can't depend on etcd's election to do your business.
In my opinion, the etcd election service APIs exposed by etcd-client are only used for etcd's maintenance scenarios.

I am trying to write a code for a cluster, where only one node would periodially download a file and store it for everyone else.

According to the descrption, I think you should get a distributed lock firstly, then do your business.  See Client::lock() and Client::unlock()

Thank you for your response!

You can't depend on etcd's election to do your business.

I could not find any mention of this in the documentation. Use of etcd, Zookeeper and similar services for master election is a very common scenario. The API is not marked as internal.
Anyway, I've replaced master election with a lock, but it works in the same way. After lock-holder releases the lock by failing to keep-alive the lease - everyone awakens. They all get Ok(LockResponse(...)) and without additional calls I cannot determine who won. Probably master election is a very lightweight wrapper over a lock, so it has the same behavior.
During the lock-holder expiry, others were blocking on their original lease which is long expired. This is when the first surprise happens - Ok(LockResponse), I'd expect an error.
When I try to immediately run a keep-alive, I get ttl()=0 and break.
let (mut keeper, mut keeper_responses) = etcd_client.lease_keep_alive(lease_id).await?;
keeper.keep_alive().await?;
if let Some(resp) = keeper_responses.message().await? {
  if resp.ttl() == 0 {
    break;  // Let's create a new lease and start over.
  }
  // I win!

This is the only way that I see so far to figure out who won. Ok(LockResponse) is completely not informative as it can spuriously be returned without actually acquiring the lock.

Thank you for your response!

You can't depend on etcd's election to do your business.

I could not find any mention of this in the documentation. Use of etcd, Zookeeper and similar services for master election is a very common scenario. The API is not marked as internal.
Anyway, I've replaced master election with a lock, but it works in the same way. After lock-holder releases the lock by failing to keep-alive the lease - everyone awakens. They all get Ok(LockResponse(...)) and without additional calls I cannot determine who won. Probably master election is a very lightweight wrapper over a lock, so it has the same behavior.
During the lock-holder expiry, others were blocking on their original lease which is long expired. This is when the first surprise happens - Ok(LockResponse), I'd expect an error.
When I try to immediately run a keep-alive, I get ttl()=0 and break.
let (mut keeper, mut keeper_responses) = etcd_client.lease_keep_alive(lease_id).await?;
keeper.keep_alive().await?;
if let Some(resp) = keeper_responses.message().await? {
  if resp.ttl() == 0 {
    break;  // Let's create a new lease and start over.
  }
  // I win!

This is the only way that I see so far to figure out who won. Ok(LockResponse) is completely not informative as it can spuriously be returned without actually acquiring the lock.

You can't depend on etcd's election to do your business.

Sorry, maybe I misled you.
In fact, the election and lock interfaces are not included in etcd API Reference.
In golang, election and lock are not in clientv3, but etcdserver.  So I think election and lock APIs are used by etcd server, not client. There is a concurrency package implements concurrency operations on top of etcd such as distributed locks, barriers, and elections.
Perhaps you need a concurrency-like crate in rust.

You can't depend on etcd's election to do your business.

Sorry, maybe I misled you.
In fact, the election and lock interfaces are not included in etcd API Reference.
In golang, election and lock are not in clientv3, but etcdserver.  So I think election and lock APIs are used by etcd server, not client. There is a concurrency package implements concurrency operations on top of etcd such as distributed locks, barriers, and elections.
Perhaps you need a concurrency-like crate in rust.


Add CC error codes doc

Purpose
Add Choreo Connect Router error codes doc to troubleshooting guides.

@praminda, pls send this fix to 4.0.0 as well


Wrong heading structure on website

This issue is from the accessibility audit of the Design System website by DAC in July 2024.
DAC's description

Page: Accessibility and Password input
WCAG reference: none (Usability)
Issue ID: DAC_Illogical_Heading_Structure_Usability_01 and DAC_Illogical_Heading_Structure_Usability_02

Accessibility page
The heading structure of the page does not make use of a logical heading structure. The ‘Accessibility’ heading is marked as a
, and the sub-headings of this heading are marked up as
. This means that screen reader users may not be able to identify the structure and relation of content throughout the page.

Current code:

Accessibility

[…]

Accessibility changes to the Design System to meet WCAG 2.2

[…]

Accessibility strategy

[…]

Password input
The heading structure of the page does not make use of a logical heading structure. The ‘Password input’ heading is marked as a
, and the sub-heading of this heading is marked up as
. This means that screen reader users may not be able to identify the structure and relation of content throughout the document.

Current code:

Password input

[…]

New WCAG 2.2 criteria affect
this component

[…]

DAC's proposed solution
Headers should be logical and reflect the structure of information on the page, briefly introducing the topic(s) that follow them.
Additional instances
As this can potentially happen on any page, this work should include checking all the other pages for a wrong heading structure.
It might be worth making two different cards for this: One for checking and recording all instances, the other for fixing them.
To save time, it makes sense to audit all the body copy issues together:

#4010
#4013
#4023
#4024
#4025

Needed roles
Content designer

Prematurely closed. Still needs https://github.com/alphagov/govuk-design-system/pull/4054 to be merged.

This should not be closed until the whole website has been audited for this issue.
Or you could split this card into two (or more) cards.

Reopening as this isn't done yet. (See my previous comment.)

To detect, we can:

use a tool such as WAVE or Axe to find badly-nested headings

To resolve, we can:

reshuffle heading structure to avoid skipping heading levels
in difficult cases, we can write or remove the need for headings, but we'll avoid doing this if possible

Just for more context, this is what the GOV.UK content guidance says about headings.


Pledged for Cause (SKAUL05)

PR for Code for Cause

Nice @SKAUL05 Education is always on priority.


OMA-14 Add Tocbot to blog post Nunjucks template

tocbot negatively impacts website performance and affects the lighthouse score for the website.
Will be regenerating toc at build time and using mostly CSS for styling to ensure perfect lighthouse scores.


User.find() returns DynamoDB error (The number of conditions on the keys is invalid)

After creating the user, I cannot retrieve it with User.find().
Ruby version 2.5.5
Dynamoid version 3.2.0
Running DynamoDB local.
Dynamoid config:
require 'dynamoid'

Dynamoid.configure do |config|
  config.region = 'eu-west-1'

  config.namespace = nil
  config.endpoint = 'http://localhost:8000'
end

User model:
class User
  include Dynamoid::Document

  table name: :users

  range :email
  field :full_name
end

Creating the user:
2.5.5 :028 > u = User.create(email: 'hello')
D, [2019-06-19T17:12:53.158710 #18858] DEBUG -- : put_item | Request "{\"TableName\":\"users\",\"Item\":{\"created_at\":{\"N\":\"1560957173.114342\"},\"updated_at\":{\"N\":\"1560957173.115739\"},\"id\":{\"S\":\"cb974bf0-27ff-472b-b7b2-abd1104533b0\"},\"email\":{\"S\":\"hello\"}},\"Expected\":{\"id\":{\"Exists\":false},\"email\":{\"Exists\":false}}}" | Response "{}"
D, [2019-06-19T17:12:53.159615 #18858] DEBUG -- : (42.27 ms) PUT ITEM - ["users", {:created_at=>0.1560957173114342e10, :updated_at=>0.1560957173115739e10, :id=>"cb974bf0-27ff-472b-b7b2-abd1104533b0", :email=>"hello", :full_name=>nil}, {}]
 => #<User:0x00007fc7d43c23e8 @new_record=false, @attributes={:created_at=>Wed, 19 Jun 2019 17:12:53 +0200, :updated_at=>Wed, 19 Jun 2019 17:12:53 +0200, :id=>"cb974bf0-27ff-472b-b7b2-abd1104533b0", :email=>"hello", :full_name=>nil}, @associations={}, @attributes_before_type_cast={:created_at=>Wed, 19 Jun 2019 17:12:53 +0200, :updated_at=>Wed, 19 Jun 2019 17:12:53 +0200, :id=>"cb974bf0-27ff-472b-b7b2-abd1104533b0", :email=>"hello", :full_name=>nil}, @attributes_changed_by_setter={}, @mutations_from_database=nil, @validation_context=nil, @errors=#<ActiveModel::Errors:0x00007fc7d43ae050 @base=#<User:0x00007fc7d43c23e8 ...>, @messages={}, @details={}>, @previously_changed={}, @mutations_before_last_save=nil>

While finding the user by email works fine:
2.5.5 :051 > User.where(email: 'hello').first.email
W, [2019-06-19T17:27:07.595056 #18858]  WARN -- : Queries without an index are forced to use scan and are generally much slower than indexed queries!
W, [2019-06-19T17:27:07.595119 #18858]  WARN -- : You can index this query by adding index declaration to user.rb:
W, [2019-06-19T17:27:07.595150 #18858]  WARN -- : * global_secondary_index hash_key: 'some-name', range_key: 'some-another-name'
W, [2019-06-19T17:27:07.595181 #18858]  WARN -- : * local_secondary_index range_key: 'some-name'
W, [2019-06-19T17:27:07.595214 #18858]  WARN -- : Not indexed attributes: :email
D, [2019-06-19T17:27:07.595379 #18858] DEBUG -- : (0.02 ms) SCAN - ["users", {:email=>{:eq=>"hello"}}]
D, [2019-06-19T17:27:07.602412 #18858] DEBUG -- : scan | Request "{\"TableName\":\"users\",\"ScanFilter\":{\"email\":{\"ComparisonOperator\":\"EQ\",\"AttributeValueList\":[{\"S\":\"hello\"}]}}}" | Response "{\"Items\":[{\"created_at\":{\"N\":\"1560957173.114342\"},\"id\":{\"S\":\"cb974bf0-27ff-472b-b7b2-abd1104533b0\"},\"updated_at\":{\"N\":\"1560957173.115739\"},\"email\":{\"S\":\"hello\"}}],\"Count\":1,\"ScannedCount\":2}"
 => "hello"

Retrieving the user by id fails:
2.5.5 :029 > User.find(u.id)
D, [2019-06-19T17:12:58.305273 #18858] DEBUG -- : get_item | Request "{\"TableName\":\"users\",\"Key\":{\"id\":{\"S\":\"cb974bf0-27ff-472b-b7b2-abd1104533b0\"}}}" | Response "{\"__type\":\"com.amazon.coral.validate#ValidationException\",\"message\":\"The number of conditions on the keys is invalid\"}"
Traceback (most recent call last):
       16: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/dynamoid-3.2.0/lib/dynamoid/finders.rb:48:in `find'
       15: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/dynamoid-3.2.0/lib/dynamoid/finders.rb:143:in `_find_by_id'
       14: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/dynamoid-3.2.0/lib/dynamoid/adapter.rb:88:in `read'
       13: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/dynamoid-3.2.0/lib/dynamoid/adapter.rb:148:in `block (2 levels) in <class:Adapter>'
       12: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/dynamoid-3.2.0/lib/dynamoid/adapter.rb:54:in `benchmark'
       11: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/dynamoid-3.2.0/lib/dynamoid/adapter.rb:148:in `block (3 levels) in <class:Adapter>'
       10: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/dynamoid-3.2.0/lib/dynamoid/adapter_plugin/aws_sdk_v3.rb:393:in `get_item'
        9: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/aws-sdk-dynamodb-1.30.0/lib/aws-sdk-dynamodb/client.rb:2601:in `get_item'
        8: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/aws-sdk-core-3.54.2/lib/seahorse/client/request.rb:70:in `send_request'
        7: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/aws-sdk-core-3.54.2/lib/seahorse/client/plugins/response_target.rb:23:in `call'
        6: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/aws-sdk-core-3.54.2/lib/aws-sdk-core/plugins/response_paging.rb:10:in `call'
        5: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/aws-sdk-core-3.54.2/lib/aws-sdk-core/plugins/param_converter.rb:24:in `call'
        4: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/aws-sdk-core-3.54.2/lib/aws-sdk-core/plugins/idempotency_token.rb:17:in `call'
        3: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/aws-sdk-core-3.54.2/lib/aws-sdk-core/plugins/jsonvalue_converter.rb:20:in `call'
        2: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/aws-sdk-dynamodb-1.30.0/lib/aws-sdk-dynamodb/plugins/simple_attributes.rb:117:in `call'
        1: from /Users/mpevec/.rvm/gems/ruby-2.5.5@attendance-tracker/gems/aws-sdk-core-3.54.2/lib/seahorse/client/plugins/raise_response_errors.rb:15:in `call'
Aws::DynamoDB::Errors::ValidationException (The number of conditions on the keys is invalid)

Is something wrong with User model? Is setup incorrect?

It's because you have a range key (range: email) in your model. When you have a composite key, the find function expects both of the primary key's components - the hash key and the range key.
Try something like:
User.find(u.id, range_key: 'hello')

Well, it seems I forgot DynamoDB basics... Thanks!


[Event Request] Codeunit 427 "ICInboxOutboxMgt" - procedure CreateOutboxSalesCrMemoTrans - OnCreateOutboxSalesCrMemoTransOnBeforeInsertOutboxTransaction

Please add an Event OnCreateOutboxSalesCrMemoTransOnBeforeInsertOutboxTransaction in CreateOutboxSalesCrMemoTrans in Codeunit 427 "ICInboxOutboxMgt"
CreateOutboxSalesCrMemoTrans(SalesCrMemoHdr: Record "Sales Cr.Memo Header")
    var
        OutboxTransaction: Record "IC Outbox Transaction";
        Customer: Record Customer;
        ICPartner: Record "IC Partner";
        SalesCrMemoLine: Record "Sales Cr.Memo Line";
        ICOutBoxSalesHeader: Record "IC Outbox Sales Header";
        ICOutBoxSalesLine: Record "IC Outbox Sales Line";
        ICDocDim: Record "IC Document Dimension";
        TransactionNo: Integer;
        RoundingLineNo: Integer;
        IsCommentType: Boolean;
        IsHandled: Boolean;
    begin
        IsHandled := false;
        OnBeforeCreateOutboxSalesCrMemoTrans(SalesCrMemoHdr, IsHandled);
        if IsHandled then
            exit;

        Customer.Get(SalesCrMemoHdr."Bill-to Customer No.");
        ICPartner.Get(Customer."IC Partner Code");
        if ICPartner."Inbox Type" = ICPartner."Inbox Type"::"No IC Transfer" then
            exit;

        GLSetup.LockTable();
        GetGLSetup();
        TransactionNo := GLSetup."Last IC Transaction No." + 1;
        GLSetup."Last IC Transaction No." := TransactionNo;
        GLSetup.Modify();
        with SalesCrMemoHdr do begin
            OutboxTransaction.Init();
            OutboxTransaction."Transaction No." := TransactionNo;
            OutboxTransaction."IC Partner Code" := Customer."IC Partner Code";
            OutboxTransaction."Source Type" := OutboxTransaction."Source Type"::"Sales Document";
            OutboxTransaction."Document Type" := OutboxTransaction."Document Type"::"Credit Memo";
            OutboxTransaction."Document No." := "No.";
            OutboxTransaction."Posting Date" := "Posting Date";
            OutboxTransaction."Document Date" := "Document Date";
            OutboxTransaction."Transaction Source" := OutboxTransaction."Transaction Source"::"Created by Current Company";

            OnCreateOutboxSalesCrMemoTransOnBeforeInsertOutboxTransaction(OutboxTransaction); <-- NEW EVENT

            OutboxTransaction.Insert();
        end;

        ...
    end;

    [IntegrationEvent(false, false)]
    local procedure OnCreateOutboxSalesCrMemoTransOnBeforeInsertOutboxTransaction(var OutboxTransaction: Record "IC Outbox Transaction")
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 42200.


added compare object for comparison checks

Later: To use compare object with is.sorted to extend and improve its functionality

Thanks!


Fine-Uploader PHP issues unanswered

I raised a question/issue on stackoverflow which has gone unanswered. http://stackoverflow.com/questions/28347173/fine-uploader-php-installation-directory
I raised 2 issues (1 to create an issue within Github for the above) plus another in what appears to be the correct place https://github.com/FineUploader/fine-uploader-php-docs/issues
These too have gone unanswered as has an attempt to make contact through Widen.
I really don't know what else to do or how long I am expected to wait for a response but I have to say that I am not impressed by the level of response. I'll give this one last shot and wait for a couple of days before turning to an alternative solution.

Sorry about that.  Fine Uploader PHP is a separate product from the traditional library.  You're right, it's unacceptable for us to have let your support requests go unanswered for so long.  At this time, due to resource limitations, we are not able to provide the same support for Fine Uploader PHP that we have consistently provided for the JavaScript library.  Fine Uploader PHP is in a beta state at the moment.  We have decided to shelve Fine Uploader PHP until we are able to secure enough developers to provide consistent support and evolution of that product.  We will link back to the project on our website once this happens.
Fine Uploader JavaScript (the library represented here) will continue to grow and be supported as it always has been.

Thankyou at least for making a response.
Please update the 2 issues that I created in https://github.com/FineUploader/fine-uploader-php-docs/issues and also reply to http://stackoverflow.com/questions/28347173/fine-uploader-php-installation-directory to save anyone else from wasting their time. I see that you have now removed the invitation to try the PHP version from your home page.

Absolutely.  They will be updated know with a reference to this case.


How to convert from a quantization-aware training model to a post-training quantization model?

want to ask the same question

It seems that converting from a quantization-aware training model to a post-training quantization model is not yet supported by the document. https://nervanasystems.github.io/distiller/algo_quantization.html
Is there any plan to do this?

I (and I think from the Issues entries, many others as well) would also be interested :)

Hi,
Sorry for the really late response...
The way QAT was implemented - the model is re-quantized each minibatch run. So, in the end of the training, the model is actually already quantized and ready to use, i.e. the .weights are already quantized and so are the activations. No need to PostTrainQuantize the model.

@zhengge  @dongzhen123  could you please elaborate what you mean when you say "convert the model", and also what do you aim to accomplish from this?
Thanks.


Add sanity checks to catch dropped MongoDB requests

MongoDB is dropping requests without errors for some reason (caught dropping score data). Add sanity checks to score replacement code that spams inserts until the data has been found to have been inserted.
Affected leaderboard: 3ADB7906D8C63B89A62D279FB02FE0AF5E8FB9A2|_ExpertPlus_SoloStandard
Also look into a leaderboard-level score pull from ScoreSaber for fixing situations like this.

Added sanity checks and notifications for errors on score replacements. Still need to look into leaderboard-level score pulls.

Between BeatLeader and ScoreSaber, leaderboard-level pulls aren't worth implementing.


doc needs fix

In https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/scratch.md, the "Alternate, manual approach:" list is messed up, because the markdown interpreter requires extra spaces before sub-list, e.g.
the following markdown source code:
1. aaa
- bbb

won't be rendered as

aaa

bbb

but

aaa

bbb

I opened an issue for this because it's an interesting fact, and to remind myself to fix it.

Instead of doing this as a separate PR, I'd suggest that you add it to the review thread on #11454. Somehow I missed that when I was reviewing the PR (but it hasn't been submitted yet).


must not match the "" regex is not working properly for value = *

Hi,
I have a use case where in I'm trying to write a BDD which should FAIL if the value of a attribute is *
Example:
  policy = <<EOF {   "Version": "2012-10-17",   "Statement": [     {       "Action": [         "ec2:Describe*"       ],       "Effect": "Allow",       "Resource": "*"     }   ] } EOF
here I want to fail the test if Action property value = * ( i.e. Allow any action)
here is the error message

Examples:
| key    | regex |
| Action | @"*" |
Failure: Action property in aws_iam_policy resource matches with @"*" regex. It is set to None.

If my Action Value is *, then BDD works fine, but even If dont have * in the Action Value, I still get the same error shown above. i.e the error message says It is set to None
I am testing on v 1.0.10

Hmm I think we may need to escape * since it has a meaning in regex.
I will have a look but first I need to fix #106

#72

mind if you can share your plan.out.json please ?
Detailed IAM stuff might fail for now, since 1.1 will have that functionality.

somehow I could not attach any files today...so pls see the plan.out.json content below
{
	"format_version": "0.1",
	"terraform_version": "0.12.1",
	"planned_values": {
		"root_module": {
			"resources": [
				{
					"address": "aws_iam_policy.policy",
					"mode": "managed",
					"type": "aws_iam_policy",
					"name": "policy",
					"provider_name": "aws",
					"schema_version": 0,
					"values": {
						"description": "My test policy",
						"name": "test_policy",
						"name_prefix": null,
						"path": "/",
						"policy": "{\r\n  \"Version\": \"2012-10-17\",\r\n  \"Statement\": [\r\n    {\r\n      \"Action\": [\r\n        \"ec2:Describe\"\r\n      ],\r\n      \"Effect\": \"Allow\",\r\n      \"Resource\": \"*\"\r\n    }\r\n  ]\r\n}\r\n"
					}
				}
			]
		}
	},
	"resource_changes": [
		{
			"address": "aws_iam_policy.policy",
			"mode": "managed",
			"type": "aws_iam_policy",
			"name": "policy",
			"provider_name": "aws",
			"change": {
				"actions": [
					"create"
				],
				"before": null,
				"after": {
					"description": "My test policy",
					"name": "test_policy",
					"name_prefix": null,
					"path": "/",
					"policy": "{\r\n  \"Version\": \"2012-10-17\",\r\n  \"Statement\": [\r\n    {\r\n      \"Action\": [\r\n        \"ec2:Describe\"\r\n      ],\r\n      \"Effect\": \"Allow\",\r\n      \"Resource\": \"*\"\r\n    }\r\n  ]\r\n}\r\n"
				},
				"after_unknown": {
					"arn": true,
					"id": true
				}
			}
		}
	],
	"configuration": {
		"provider_config": {
			"aws": {
				"name": "aws",
				"expressions": {
					"region": {
						"constant_value": "us-west-1"
					},
					"skip_credentials_validation": {
						"constant_value": true
					},
					"skip_requesting_account_id": {
						"constant_value": true
					}
				}
			}
		},
		"root_module": {
			"resources": [
				{
					"address": "aws_iam_policy.policy",
					"mode": "managed",
					"type": "aws_iam_policy",
					"name": "policy",
					"provider_config_key": "aws",
					"expressions": {
						"description": {
							"constant_value": "My test policy"
						},
						"name": {
							"constant_value": "test_policy"
						},
						"path": {
							"constant_value": "/"
						},
						"policy": {
							"constant_value": "{\r\n  \"Version\": \"2012-10-17\",\r\n  \"Statement\": [\r\n    {\r\n      \"Action\": [\r\n        \"ec2:Describe\"\r\n      ],\r\n      \"Effect\": \"Allow\",\r\n      \"Resource\": \"*\"\r\n    }\r\n  ]\r\n}\r\n"
						}
					},
					"schema_version": 0
				}
			]
		}
	}
}

Here is the test that you can use for failing these tests ;
Feature: Test for https://github.com/eerkunt/terraform-compliance/issues/115

  Scenario: Ensure IAM Actions does not have everything in it
    Given I have aws_iam_policy defined
    Then it must contain policy
    And it must contain Statement
    And Then its value must not match the "^\*$" regex

Please note that Advanced IAM tests will also be implemented in future features #72

Thanks for the correct regex for *. the BDD works as expected now.
Thanks!


[tiered storage] repackage the offloader implementation from org.apache.pulsar.broker.offload to org.apache.bookkeeper.mledger.offload.jcloud

Motivation
Since #2371 moves offloader implementation to its own module, and it is bascially implementing mledger interfaces.
So it makes more sense to put the offloader implementation under package org.apache.bookkeeper.mledger.offload rather than org.apache.pulsar.broker.offload.
Changes
Rename the package

retest this please

rerun java8 tests


The API returned an error: Error: invalid_grant

After restarting my Pi the calendar was giving me an error message.
I tried troubleshooting with node authorize.js and received the following:
The API returned an error: Error: invalid_grant
Any advice for that?

Hi @daha1989, invalid_grant usually indicates that the access token is incorrect or invalid. I would try this steps:

Make sure the email used during node authorize.js is the same OR has access to the credentials in Google Cloud.
Completely delete the current token by navigating to the MMM-GoogleCalendar directory and deleting token.json, if you connect to the raspberry through SSH try running rm -rf token.json to delete the token, once deleted run node authorize.js again.
If step 2 doesn't work try creating a new credential and repeating the authorize process.

Let me know how it goes!

It worked. Thanks a lot!


support generate multiple repo release note.

What type of PR is this?
/kind feature

What this PR does / why we need it:
we need to generate release notes for multiple repo at the same time, and support more personalized kind for our projects.
Which issue(s) this PR fixes:

Special notes for your reviewer:
Does this PR introduce a user-facing change?

/assgin @zheng1 @wansir

/lgtm


Nomination interval: Raise default and parse as seconds

Having nomination interval expressed in milliseconds is overkill and only makes sense in tests,
where the overhead is very low, and we don't parse the config anyway.
Experience has shown that a low value create issues in the network,
so raise it to something more tolerant.

All fixed


recv error

Hi,
in the configuration phase with last libcurl (7.52.1) i have this error: "checking for recv... no"

I don't have the same error in config phrase, but it have darwinssl issue while compile.
Can you please post config.log for detail errors.

Please try latest version of libcurl, if this still occurs reopen this.


Add a print_message() or similar function in admin CLI

With each change that goes in for the admin CLI there is a chance that Python 3.5 incompatible changes get checked in - especially try - except blocks (uses except (exception name), e:) and print statements.
There are multiple places where new print messages keep getting added and those break the admin CLI on VSphere 6.5 (Python 3.5).
Instead define a new print_message() function that is called everywhere in the CLI code and it in turn uses the correct syntax for printing.

Closing, may be just rely on using a coding guideline to be Python 3.5 compliant when making changes.


[Issue #349] feat: sync addresses' unconfirmed txs

Description:
Part of #349. When initially syncing existent addresses, also looks for unconfirmed txs and syncs them.
Test plan:

Stop the automatic syncing of addresses with yarn docker js
Create a paybutton with one of your addresses
Send a tx to it
Before it gets confirmed, sync it with curl http://localhost:3000/address/transactions/sync/[youraddress]. The output should display this transaction identifiable by the confirmed: false property.
It should also appear on the button detail view, also with the confirmed column set to no.

Depends on:

[x] #350

@chedieck conflicts

I get this when trying to run yarn docker js in paybutton-dev (which I assume is the correct container:

I get this when trying to run yarn docker js in paybutton-dev (which I assume is the correct container:

These yarn docker commands are not supposed to be run inside the containers, but outside. Part of what the commands do is to get inside the correct container, so if there is anyway you can get a unix command line your local clone of the paybutton-server/ repo, you would only have to run yarn docker js from there (I don't understand much about windows, but I know that now exists something called WSL which maybe serves as that)

I'm going to let Scott test this one.


cache downloadBoost task files

currently everytime I build the project, it downloads boost (:react-native-mmkv:downloadBoost), which is, well, large (> 100mb). and so it makes my builds very slow
is there anything I can do right now ?

i dont know why it happened and why it doesnt now, I'm closing it and reopen if it happen again


Support quoted string values

This PR adds proper support for strings with spaces by allowing to specify quoted strings.
Note that our parser is now using exactly the same Word as configshell-fb[1], but also supports quoted strings.
With this PR we will be able to fix https://github.com/ceph/ceph-salt/pull/113#discussion_r402032528 and also improve our ConfSectionNode because we will no longer use the = char which is a reserved char for configshell.
This also means that the following command:
ceph-salt config /Cephadm_Bootstrap/Ceph_Conf/global set osd crush chooseleaf type = 0

will change to:
ceph-salt config /Cephadm_Bootstrap/Ceph_Conf/global set "osd crush chooseleaf type" 0

As a result, we also improve usability by having more explicit parameters on set command:
# ceph-salt config /Cephadm_Bootstrap/Ceph_Conf/global help
  ...
  - set parameter value
  - remove parameter

[1] https://github.com/open-iscsi/configshell-fb/blob/master/configshell/shell.py#L116
Signed-off-by: Ricardo Marques<EMAIL_ADDRESS>
To Do:

[ ] after this PR is merged, merge https://github.com/SUSE/sesdev/pull/224

added a To Do item in the PR body: "after this PR is merged, mergehttps://github.com/SUSE/sesdev/pull/224"


Add separate compile with target=debug to help track down bugs

Allows people downloading from build artifacts to use target=debug to get better errors while godotcord isn't stable.

Yes, don't but don't forget to add for commits as well.

Yes, don't but don't forget to add for commits as well.


[move core modules] replace LibraCoin::T with Libra::TLBR::T

Introduce Libra module
Introduce LBR module
All uses of LibraCoin now use Libra::T<LBR::T>

The meat of this change is the Libra and LBR modules. Everything else is refactoring to support the changes there (in particular, to Move and MVIR functional tests).

Motivation
Refactor coin mechanics to leverage Move generics.
Have you read the Contributing Guidelines on pull requests?
Y
Test Plan
Updated all Move functional tests, which continue to pass.

:umbrella: The latest upstream changes (presumably 494ae392e275dc9beb08bb73da7fd475263ef08f) made this pull request unmergeable. Please resolve the merge conflicts.

@bors-libra r=bob-wilson

:pushpin: Commit 287ebd2 has been approved by bob-wilson

:hourglass: Testing commit 287ebd21a3242c43ab7c116ddfa7d4558c6591ff with merge 4cf5dec7f04fb1e02d1aaea27c338d3a44a799c8...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: bob-wilson
Pushing 4cf5dec7f04fb1e02d1aaea27c338d3a44a799c8 to master...


Sketch of user interface

Starting from particles.jl,

using sliders as in the example in sliders.jl or the example Simon send
bare bones (remove dependencies, create copy of FitzHughNagumo.jl which only contains what is necessary
strip code from ballast

Is there anything else that needs to be done for this in Makie?

Only cosmetics: I‘d like to fix the background color of the sliders and align the densities correctly


[Question] - It looks like a proxy is needed everytime

When initializing without providing any proxy (I do not need one)
@Bean
public OpenAI llm() {
  return OpenAI.builder()
                .openaiApiKey(openAiKey)
                .openaiProxy("")
                .temperature(0.9f)
                .build()
                .init();
}

i got the error:
Did not find OPENAI_PROXY, please add an environment variable `OPENAI_PROXY` which contains it, or pass `OPENAI_PROXY` as a named parameter.
	at com.hw.langchain.utils.Utils.getFromEnv(Utils.java:72)

I seems the parameter is totally required:
https://github.com/HamaWhiteGG/langchain-java/blob/main/openai-client/src/main/java/com/hw/openai/OpenAiClient.java#LL71C1-L71C1

Yup, that's a bug, had the same issue

@clun @fmatar Thank you for reporting the bug. I have fixed it by adding a default value of "".
https://github.com/HamaWhiteGG/langchain-java/blob/main/langchain-core/src/main/java/com/hw/langchain/llms/openai/OpenAI.java#L45
openaiProxy = Utils.getOrEnvOrDefault(openaiProxy, "OPENAI_PROXY","");


Garbled code appears in the display under Windows 2008 R2

When I test under Windows 2008 R2, the routine doesn't work normally, and I don't know why?

Sorry, I do not have access to that Windows system, I am afraid you are going to have to debug that yourself.

This happens in all terminals (cmd.exe, ConEmu, and Windows Terminal) on Windows. Not clear if this is something Termina.Gui can address, but may be just the way it is. Leaving open in case anyone has ideas.

Para mim, isso só acontece durante o redimensionamento. Depois de soltar o botão, o Windows parece bem redesenhado.


Failed to convert code to blocks

Repro step:

Navigate to https://makecode.microbit.org/beta

Switch to "{}JavaScript" and copy the following code into content panel:
let value = ""
function writeText() {
value = "Sunset" + "Tomorrow"
basic.showString(value)
return value
}
let result: string = writeText()
basic.showString(result)

Switch back to "Blocks"

Expected Result:
If the code exists error, it should have prompt. if not, it should be converted to "blocks" successfully.
Actual result:

In looking at the code, there is an error generated, but it is skipped and not reported.
The issue is due to the newly generated block workspace XML failing to load in pxtblocks::patchBlocksFromOldWorkspace() with the unreported error

Attempt to connect incompatible types.

from Blockly. I assume the function writeText() is typed to return void, can Blockly functions return values?, and the assignment to the string variable is causing the error.
The generated block XML for the JavaScript is below.
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="pxt-on-start">
<statement name="HANDLER">
<block type="typescript_statement">
<mutation declaredvars="value" numlines="1" line0="let value = """ />
<next>
<block type="typescript_statement">
<mutation numlines="4" line0="function writeText(): string  {" line1="    value = "Sunset" + "Tomorrow"" line2="    return value" line3="}" />
<next>
<block type="device_print_message">
<value name="text">
<block type="typescript_statement">
<mutation numlines="1" line0="writeText()" />
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>

Yeah we don't currently support functions with return types in Blocks.
I would have imagines you would end up with a grey block though. @riknoll is this an interesting edge case?


AddActionToRunAfterDetectChanges

Hello,
We are using ChangeTracker to update entities, "LastUpdated" and "UserId", in extending DbContext with dependency injection, since we are using libraries, is there a way to send data to ChangeTracker Configuration ?

I assume from your comment that you are using the configuration's AddActionToRunAfterDetectChanges method now, but you want to provide extra data to the function after context.ChangeTracker.DetectChanges();. I also assume that the data you want to provide changes during the the context's use (fixed values are, of course, simple).
If that is what you want to do I can't see a simple way to do that within the GenericEventRunner library, as the function is stored in the GenericEventRunner's configuration, which is registered as a singleton.
Have you thought about using context.ChangeTracker.StateChanged? It will trigger when (most) of the state changes happen. There isn't much EF Core docs on this, but have a look at this issue I raised when writing the EF Core in action book will give you an idea. If you already have the second edition of my book, then I have a a whole section on this in section 11.4.4

Thank you for your response, I will take a look


Implement RTL support

Describe the problem
PatternFly now provides RTL language support, but topology has a few instances where it's causing problems. Node labels are one trouble spot.
How do you reproduce the problem?
Add dir="rtl" to the <body> tag to see it in RTL. Note that English text will still be readable left to right, but should be right aligned where it was previously left aligned, etc.
Screenshots

Any other information?
See the RTL handbook for help - in particular, the helper multiplier might be of use.  https://www.patternfly.org/developer-resources/right-to-left-handbook#patternfly-rtl-helpers

@srambach Would RTL expect node label elements to be completely reversed?
LTR:   <Icon> <Badge> <Label> <Context Menu>

@andrew-ronaldson ^^

@jeff-phillips-18 Yes - I think those elements would be reversed in position as you list. Just FYI to clarify, unless you actually translate the text into an RTL language, though, the words themselves will read left to right. But yes, I'd expect the elements to reverse to be <Context Menu> <Label> <Badge> <Icon>.

What @srambach said! Thanks Sarah!


Remove XML and JSON from Homestar after pull is completed

💡 Summary
What is the work, as a high-level summary?
Motivation and context
When considering the security posture of Homestar for the CAL migration, it would be beneficial if there were no production Jira data on it once the pull/parse/push was completed.

Per https://github.com/cisagov/assessment-data-export/blob/47860401ef72befb18720388cade8281584812a3/src/ade/assessment_data_export.py#L308 the XML file pulled down from Jira is removed within the script.
We currently use an intermediate file for the JSON of derived output that is then uploaded to S3. This file is not removed within the script. This could be resolved without significant modification by deleting the file after verifying successful upload. Another option would be eschew an intermediate file entirely and simply upload the JSON output directly to S3.

I like the second option more of it is stable.


Added BTC.COM Block Explorer to Services

https://bch.btc.com/

Going to close this since we already have a link to btc.com. We should really only link to a site once.


Migrate to grpc-dotnet

Is your feature request related to a problem? Please describe.
https://grpc.io/blog/grpc-csharp-future/

TL;DR grpc-dotnet (the Grpc.Net.Client and Grpc.AspNetCore.Server nuget packages) is now the recommended gRPC implementation for .NET/C#. The original gRPC C# implementation (the Grpc.Core nuget package) will enter maintenance mode and won’t be getting any new features and will only receive important bug fixes and security fixes going forward. The ultimate plan is to phase out Grpc.Core completely at some point in the future. This announcement describes the reasons why we have decided to do so and lays out the plan in more detail.

Describe the solution you'd like

Migrate the internal backend to the https://github.com/grpc/grpc-dotnet without breaking the API.
We need to migrate the client to a higher .net version https://github.com/camunda-community-hub/zeebe-client-csharp/issues/277
Release with this change a new major version

Describe alternatives you've considered
Stick with the grpc-core
Additional context
This would solve https://github.com/camunda-community-hub/zeebe-client-csharp/issues/194

Hey @Zelldon, it has been a long time since there has been a release of a new version. What is you policy regarding not falling to for behind software updates?
My bootstrap project is highly dependent of your project and I would regret to see that it will be failing because of this.
For the time being could you add Apple M1 support to your project? (https://github.com/einari/Grpc.Core.M1)
Hopefully you will be able to release a new version which will fix a lot of issues including this one.
Thanks!
Arjan

Tbh I was also thinking for a while to create a new release but always miss it. I try to do it soon. Please remind me if I miss it again

@arjangeertsema https://github.com/camunda-community-hub/zeebe-client-csharp/releases/tag/1.3

Hi @Zelldon, now that .net 3.1 has already reached EOL, developers naturally look forward to code with .net 6.0 & Above. But the zb-client library has an internal dependency on Grpc.core, this has to be migrated to grpc-dotnet  Without this support in the C# client, we are forced to stick to .net core 3.1 on the MAC, since the native Grpc library in C# is not available for arm based images.

Can we help? (contribute)

Hey @xlegalles, absolutely, contributions are welcome!

Ok, I've started to work on it and quickly found a problem: the keepAlive option is not supported by the new implementation
https://github.com/grpc/grpc-dotnet/blob/4c410dcc3942e8705602d63f03f8b6b8b9df8e72/doc/implementation_comparison.md#fine-grained-transport-control-keepalive
So it seems that the AddKeepAliveToChannelOptions method in ZeebeClient.cs cannot be supported anymore. But I don't know the consequences of this?

So the documentation is not up-to-date: found this discussion  about it with a solution.

I've pushed a PR. The pipeline needs to be updated as my branch targets net5.0, net6.0 and net7.0.