Docs: Add search

Add search to the Gestalt docs

Notes

Under the hood this uses Algolia DocSearch: see the docs at https://docsearch.algolia.com/docs/what-is-docsearch/
The demo will trigger a reload to another page (so navigation will be slow)
Design is ok, we should add a search icon link and perhaps a reset button in a follow up PR
We could not use the Gestalt <SearchField /> since Algolia makes DOM mutations outside of the React tree

Duuuuuude! This is so cool!!!

Depends on #897


feat: Support talhelper NodeConfig additions

This is the PR for https://github.com/onedr0p/cluster-template/discussions/1251#discussioncomment-8274805. This is to allow node-specific customizations for Talos to be retained when running task configure and task talos:genconfig. This also adds support to these tasks for installing Talos system extensions (See: https://github.com/onedr0p/cluster-template/issues/1248).
For NodeConfig additions see: https://budimanjojo.github.io/talhelper/latest/reference/configuration/#nodeconfigs
For available system extensions: https://github.com/siderolabs/extensions
Example Usage (Adds Proxmox VM Guest Agent & CPU Microcode / GPU Pass-through support)
cluster:
  nodes:
    inventory:
      - name: "talos-a"
        address: "<IP_ADDRESS>"
        controller: true
        talos_disk_device: "/dev/sda"
        talos_node_config: &talosNodeConfigs |-
          schematic:
            customization:
              systemExtensions:
                officialExtensions:
                  - siderolabs/i915-ucode
                  - siderolabs/intel-ucode
                  - siderolabs/qemu-guest-agent
      - name: "talos-b"
        address: "<IP_ADDRESS>"
        controller: true
        talos_disk_device: "/dev/sda"
        talos_node_additions: *talosNodeAdditions
      - name: "talos-c"
        address: "<IP_ADDRESS>"
        controller: true
        talos_disk_device: "/dev/sda"
        talos_node_additions: *talosNodeAdditions

The config looks bit gnarly in the example config file, but looks good!

Ugh.. I meant to make this a PR but got wrapped up with other things and got distracted.
Basically I moved the logic to cluster.nodes.talos and added SUC support.
https://github.com/onedr0p/cluster-template/commit/2267494b982a04ffd0da383f3a1691798f7192d0


Typo in the despali.16.py file

At line 44  the coefficients for the interpolation of the mass function parameters is
coeffs = [[A1, A0], [a2, a1, a0], [p2, p2, p0]]
and should be
coeffs = [[A1, A0], [a2, a1, a0], [p2, p1, p0]]

Thanks @henriquelettieri for catching this! Being addressed in #1197


Nested Structs with custom Coercer

I didn't have access to make a branch and I got lazy so going to make this issue just so you have something to noodle on tomorrow if you're bored.
Sorbet-schema can be used to deserialize data into a struct with a custom coercer.
struct Example
const :country, Country
It can also be used to deserialize data into a struct with a nested struct.
struct Nested
const :name, String
struct Example
const :nested, Nested
It doesn't work though when you want to deserialize data into a struct with a nested struct that has a custom coercer.
struct Nested
const :country, Country
struct Example
const :nested, Nested
With this last example, it'll still create the Example struct with the Nested struct correctly created but country will not be coerced, it'll just be the string representation I passed as json. This is because the nested struct will get converted using the Struct coercer and this will just not consider any custom coercers https://github.com/maxveldink/sorbet-schema/blob/main/lib/typed/coercion/struct_coercer.rb#L24.
Here's a first draft at how I got it working but I'm sure there's a better way to do it.
       sig { override.params(type: T::Types::Base, value: Value).returns(Result[Target, CoercionError]) }
      def coerce(type:, value:)
        return Failure.new(CoercionError.new("Field type must inherit from T::Struct for Struct coercion.")) unless used_for_type?(type)
        return Success.new(value) if type.recursively_valid?(value)

        return Failure.new(CoercionError.new("Value of type '#{value.class}' cannot be coerced to #{type} Struct.")) unless value.is_a?(Hash)

        values = {}
        type.raw_type.props.each do |name, prop|
          if prop[:type_object].try(:raw_type).respond_to?(:props)
            Typed::HashSerializer
              .new(schema: Typed::Schema.from_struct(prop[:type_object].raw_type))
              .deserialize(value[name])
              .and_then { |struct| Typed::Success.new(values[name] = struct) }
              .on_error { |error| return Failure.new(CoercionError.new("Nested hash for #{type} could not be coerced to #{name}")) }
          else
            Coercion
              .coerce(type: prop[:type_object], value: value[name])
              .and_then { |coerced_value| Typed::Success.new(values[name] = struct) }
              .on_error { |error| return Failure.new(CoercionError.new("Value for #{name} could not be coerced to #{prop[:type]}")) }
          end
        end

        Success.new(type.raw_type.new(values))
      rescue ArgumentError, RuntimeError
        Failure.new(CoercionError.new("Given hash could not be coerced to #{type}."))
      end

That looks close to what we need to do; I think this also fixes #71

This is resolved by https://github.com/maxveldink/sorbet-schema/pull/102


refactor(hummock manager): load mem hummock version with version delt…

…a instead of version
I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
PLEASE DO NOT LEAVE THIS EMPTY !!!
load mem hummock version with version delta instead of version
rebuild version from version deltas
this PR is successor of #3503
Checklist
Refer to a related PR or issue link (optional)

Do we clean deltas in another PR?

Would we clean deltas in another PR?

here is a scheme:
In every restart, we delete all VersionDeltas and put a Version into meta store
is this OK?

Would we clean deltas in another PR?

here is a scheme: In every restart, we delete all VersionDeltas and put a Version into meta store
is this OK?

No, it is not enough. If the meta-node lives a long time without restarts, we may append a lot of VersionDeltas to ETCD and it will cause a long time to recover during next restart.


PLT-47 Add tutorial for using tx constraint API

Pre-submit checklist:

Branch

[x] Tests are provided (if possible)
[x] Commit sequence broadly makes sense
[x] Key commits have useful messages
[x] Formatting, PNG optimization, etc. are updated

PR

[x] Self-reviewed the diff
[ ] Useful pull request description
[ ] Reviewer requested

@koslambrou is this still a draft or it is finished?

Waiting review by @joseph-fajen


bedtools coverage -d -sorted not working properly

Hi,
combining the -d and -sorted option in the coverage module does not finish the job.
Extending the coverage -d example from:
$ cat a.bed
chr1  0  10
to:
$ cat a.bed
chr1	0	10
chr1	15	20
chr1	21	25
and then run bedtools coverage -sorted -d -a a.bed -b b.bed results in:
chr1	0	10	1	1
chr1	0	10	2	1
chr1	0	10	3	1
chr1	0	10	4	2
chr1	0	10	5	3
chr1	0	10	6	3
chr1	0	10	7	3
chr1	0	10	8	3
chr1	0	10	9	1
chr1	0	10	10	0
chr1	15	20	1	0
chr1	15	20	2	0
chr1	15	20	3	0
chr1	15	20	4	0
chr1	15	20	5	0
So there are no entries for the third line of a.bed. This doesn't change by adding more lines to a.bed.
The result for  bedtools coverage -d -a a.bed -b b.bed is complete as expected:
chr1	0	10	1	1
chr1	0	10	2	1
chr1	0	10	3	1
chr1	0	10	4	2
chr1	0	10	5	3
chr1	0	10	6	3
chr1	0	10	7	3
chr1	0	10	8	3
chr1	0	10	9	1
chr1	0	10	10	0
chr1	15	20	1	0
chr1	15	20	2	0
chr1	15	20	3	0
chr1	15	20	4	0
chr1	15	20	5	0
chr1	21	25	1	0
chr1	21	25	2	0
chr1	21	25	3	0
chr1	21	25	4	0
Is this a known issue and are there easy workarounds?
Adding a line to b.bed covering the last possible base to avoid this problem is rather unhandy with large bam files.
Thanks for your help :-)

If you switch to version 2.25 (or preferably the version in the repository) things will work fine. Please note that in this version, A and B have been flipped (see the docs):
cat a.bed
chr1	0	10
chr1	15	20
chr1	21	25
cat b.bed
chr1	3	15
bedtools coverage -d -a a.bed -b b.bed -sorted
chr1	0	10	1	0
chr1	0	10	2	0
chr1	0	10	3	0
chr1	0	10	4	1
chr1	0	10	5	1
chr1	0	10	6	1
chr1	0	10	7	1
chr1	0	10	8	1
chr1	0	10	9	1
chr1	0	10	10	1
chr1	15	20	1	0
chr1	15	20	2	0
chr1	15	20	3	0
chr1	15	20	4	0
chr1	15	20	5	0

I would love to agree with your, but I'm already working with version 2.25.
In your example the "error" is still present, as for position 21 - 25 there is no output...
Running the command without -sorted as in bedtools coverage -d -a a.bed -b b.bed returns the correct result:
chr1	0	10	1	0
chr1	0	10	2	0
chr1	0	10	3	0
chr1	0	10	4	1
chr1	0	10	5	1
chr1	0	10	6	1
chr1	0	10	7	1
chr1	0	10	8	1
chr1	0	10	9	1
chr1	0	10	10	1
chr1	15	20	3	0
chr1	15	20	4	0
chr1	15	20	5	0
chr1	21	25	1	0
chr1	21	25	2	0
chr1	21	25	3	0
chr1	21	25	4	0

Oops, I see. It works without -sorted but not with. Will post a fix soon.

Thanks :+1:

This should be fixed in master now. Thanks for reporting!


demo application

[ ] bootstrap
[ ] page with pagination, table, simple filter form
[ ] page with pagination, table, simple filter form, and streams
[ ] page with infinite scroll
[ ] page with simple filter form and operators
[ ] page with dynamic filter form

Hi,
we are lookin into flop for our uni project and struggling with some setup. Looking for a Demo Application, can you state how far you are already or when there is a potential date to publish it?

Hi @sielerjunjor, I haven't started on this yet, and there is no timeline. If you have concrete questions, feel free to open a discussion in this repo or a thread on elixirforum.com.


packer-azure build hangs while deleting the temp resource groups for centos

Hi,
I am trying to provision my packer build (builder azure-arm) but the packer build hangs once the provisioning is complete. It seems like packer is unable to delete the temp resource group that it created. I am making use of centos image. Can you please help???
My provisioner doesnt have anything special. for testing im just creating a folder and coping a file to it.
I just keep getting the logs message as:
azure-arm: Cleanup requested, deleting resource group...
I tried adding the following block in my provisioner as well:
{
"inline":[
"sudo /usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
],
"inline_shebang": "/bin/sh -x",
"type": "shell",
"skip_clean": true
}
Note: i am making use of the latest packer version v0.10.1. My work is blocked coz of this.

Support for Azure has been folded into the official Packer repository.  The version v0.10.1 is sourced from that repository.
There was an issue that has been fixed, but not released to address your issue (I think).  I would need more details to confirm, but you can review the details in the existing issue.
There are examples in the official repository for using Azure and Packer.
I'm closing this issue because you're referencing code that does not exist in this repository.  Please re-open the issue if necessary in the official repository.


Support lcobucci v5+ and drop support for anything below laravel 9

Support lcobucci/jwt ^5.0 and drop support for versions below Laravel 9
Description

Lcobucci made some breaking changes in its 5.0 release
Laravel 9 reached its EOL but should still be supported for people upgrading

Checklist:

[x] I've added tests for my changes or tests are not applicable
[ ] I've changed documentations or changes are not required
[ ] I've added my changes to CHANGELOG.md

@krenor can you solve the conflicts, please?

@krenor can you check out this conflicts for us?

@krenor are you able to check it for us?

@krenor are you able to check it for us?

I will try to find time for it this week 👍

@krenor are you able to check it for us?

I will try to find time for it this week 👍

Hi, how are you doing?
Can you manage some time this week to solve this? We would like to merge this feature.

I am also interested in this PR after the 2.3.0 release. All other dependencies in my app support lcobucci/jwt:^5.0 except this one, so this change would allow me to update

I am also interested in this PR after the 2.3.0 release. All other dependencies in my app support lcobucci/jwt:^5.0 except this one, so this change would allow me to update

Would you like to fix the conflicts and make this PR mergeable for us?

PR created here #248

Closing in favor of PR  https://github.com/PHP-Open-Source-Saver/jwt-auth/pull/248


QnAMaker nodejs samples are for Bot sdk V3 or V4?

I am looking at very promising concepts & samples here https://github.com/Microsoft/BotBuilder-CognitiveServices/tree/master/Node/samples/QnAMaker but confused if I can use this in my V3 BOT.
I would appreciate any help. Thank you.

These samples are v3 samples

Thanks @JasonSowers


Publish to npm repo

Interesting project!
It would be helpful if you could publish it to the npm repository so that it can be easily installed.

Hi, thanks for the issue. it's a useful reminder - I have been meaning to do this for some time! I will make a couple of improvements and try to publish this week.

I have now published - https://www.npmjs.com/package/passport-client-cert
Please note I have renamed the repo to passport-client-cert for clarity.

:+1:


Test result not available yet 4 days later

Technical details

Device name: Pixel 4a
Android version: 13
App version: 2.25.0

Describe the bug,  Steps to reproduce the issue
I got examined for a PCR test 4 days ago, on 25th August, got a QR code to scan in CWA which, since then, keeps showing "Test result not available yet". Today is 29 August.
Tapping the "Update" button shows a spinning animation, then it returns to the same view, same message as before. No result, no information when to expect the result etc. I can't even be sure the app got any updated status information at all.

Expected behaviour:

provide test results in a timely manner
add helpful information like expected result date or a contact phone number.

Possible Fix, Additional context
Possibly also fix the root cause being that the current German government does not take COVID seriously enough anymore?!

Hey @openmindculture,
thanks for opening this issue!
I recommend you take a look at https://www.coronawarn.app/en/faq/results/#qr_test, the FAQ entry on exactly your problem.
The CWA team can't help you get access to the test result, so I recommend to contact the testing station which performed the test.

See also https://www.coronawarn.app/en/faq/results/#test_result_issues.
PCR results are expected to be delivered within 48 hours.

See also https://www.coronawarn.app/en/faq/results/#test_result_issues.
PCR results are expected to be delivered within 48 hours.

Thanks! That information and contact option should best be integrated in the app.

And thanks support team for you quick intervention! The test result has finally arrived in my app.

@openmindculture
Nice to hear that the result is now available! Could you please close this issue now?

@openmindculture
Nice to hear that the result is now available! Could you please close this issue now?

Hi Tim, shouldn't I rather change its title? Information and contact options are still missing in the app, so that, apart from this single test result, the problem still exists!

@openmindculture I recommend to open a new issue in the https://github.com/corona-warn-app/cwa-wishlist repository. There is also a related issue from @vaubaehn open: https://github.com/corona-warn-app/cwa-wishlist/issues/795

@openmindculture

And thanks support team for you quick intervention! The test result has finally arrived in my app.

That is good! I doubt if anybody from the support team actually affected the delivery of your individual test result. It is more likely that the lab had not previously delivered the test result to the CWA Test Result Server (see Solution Architecture). Only the lab could report back about that though.
You can see on https://www.coronawarn.app/en/analysis/ that there were many PCR test results delivered every day (Test results provided) and that users were able to warn other users every day (Sharing behaviour).

The unresolved aspects are are covered by this existing issue:
[PCR Test Result] Notify User to Retrieve Test Result from Testing Site when Test Result is not available in CWA after +48hrs #795 so I am closing this issue as a duplicate.

@openmindculture
Did you intend to click on the close button?

@openmindculture
Did you intend to click on the close button?

Yes I did, but fooled by the complex UI! Sorry I still suffer from COVID. But now I will actually close the issue. Thanks for pointing out!


Added launch icon and set up correct launch names

Because I did flutter clean a lot of files got modified. I added images and image assets in Android Studio and xCode and modified the info.plist and AndroidManifest.XML. Apps might need reinstalling for the app to work. Please do test.

Changing project folder name created a lot of merge conflicts with each change. I reverted the commit, it's back to only project folder now, and added the launch icons and settings for appname in android and ios folders.


Issue with pushing asset as participant

Hi! I'm having a problem with pushing an asset as a participant. I'm following these instructions https://github.com/OrganicityEu/organicityeu.github.io/blob/master/doc/HowToPushAnAssetToTheExperimenterSite.md and it works for pushing an asset as experimenter. However, the same request format doesn't work for a participant. I added the participant to my experiment via experimenter portal and he accepted to be a part of experiment before the push was tried. I get 502 error code after about 20 sec. Is there something about Asset ID field format, request headers or something third specific for participants that I'm missing?

Can you contact me on the experimenters slack? So we can chat about the issue?


[App Service] Fix#21401: Update websites extension to latest SDK 6.0.1

webapp_show to show_app fixes
Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

App Service

@zhoxing-ms I re-recorded failing tests related to Webapps from other extensions as well like bot & networking - however, I see the following show up as FAILED but these are not related to Webapps extension - any clue how to get these fixed?
test_maps_creator
test_create_maps_account
test_kusto_cluster_life_cycle
test_kusto_database_life_cycle
test_natgateway

@panchagnula Could you try to sync the latest code from the remote dev branch, and then resolve these conflicts?

By the way, this PR doesn't seem to catch up with the release of this sprint and can only be postponed to the next sprint (04-05), do you think this time is acceptable?

By the way, this PR doesn't seem to catch up with the release of this sprint and can only be postponed to the next sprint (04-05), do you think this time is acceptable?
@zhoxing-ms we need this change for this release, I left to a comment abt test unrelated to websites failing, please help me that & I will merge again & re-record tests & push a new change.

@panchagnula Because this PR was submitted two days ago, and there are many CI issues and major changes such as bumping version. Unfortunately, CLI team is usually busy finishing various projects in the last few days of release, so our team don't have enough time to review and merge this PR.
So I'm so sorry that this PR can't catch up with this sprint release. But if this PR is very urgent, we can consider releasing hotfix for it in a few days, do you think this is acceptable?

In addition, we suggest that you should prepare the PR one week before the release date, so that we can have enough time for the PR review process.

In addition, we suggest that you should prepare the PR one week before the release date, so that we can have enough time for the PR review process.

Will make sure to not have PR in draft mode either.

@panchagnula Because this PR was submitted two days ago, and there are many CI issues and major changes such as bumping version. Unfortunately, CLI team is usually busy finishing various projects in the last few days of release, so our team don't have enough time to review and merge this PR.
So I'm so sorry that this PR can't catch up with this sprint release. But if this PR is very urgent, we can consider releasing hotfix for it in a few days, do you think this is acceptable?

@zhoxing-ms yes please work together to get this a hotfix post the normal milestone release. Could you also help me root cause for these failing tests unrelated to websites?
test_maps_creator
test_create_maps_account
test_kusto_cluster_life_cycle
test_kusto_database_life_cycle
test_natgateway

@panchagnula Those CI issues are caused by the changes to these yaml files in your PR. if you revert these changes, those tests can work normally.

Since your PR has nothing to do with these modules, why do you modify those yaml files?

@panchagnula Those CI issues are caused by the changes to these yaml files in your PR. if you revert these changes, those tests can work normally.
Since your PR has nothing to do with these modules, why do you modify those yaml files?

Oh - I didn't try to on purpose - let me remove these YAMLs. Thanks!

@panchagnula , I believe this PR introduced a new error when calling get_app_settings method from azure.cli.command_modules.appservice.custom module. To reproduce, I just ran the command to list app settings of my web app:
az webapp config appsettings list -n <webappName> -g <resourceGroup>
The error I get is:
The command failed with an unexpected error. Here is the traceback:
API version 2021-03-01 does not have operation group 'web_apps'
Traceback (most recent call last):
  File "D:\Code\AppConfig\azure-cli\env\lib\site-packages\knack\cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "d:\code\appconfig\azure-cli\src\azure-cli-core\azure\cli\core\commands\__init__.py", line 658, in execute
    raise ex
  File "d:\code\appconfig\azure-cli\src\azure-cli-core\azure\cli\core\commands\__init__.py", line 721, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "d:\code\appconfig\azure-cli\src\azure-cli-core\azure\cli\core\commands\__init__.py", line 713, in _run_job
    return cmd_copy.exception_handler(ex)
  File "d:\code\appconfig\azure-cli\src\azure-cli-core\azure\cli\core\util.py", line 240, in empty_on_404
    raise ex
  File "d:\code\appconfig\azure-cli\src\azure-cli-core\azure\cli\core\commands\__init__.py", line 692, in _run_job
    result = cmd_copy(params)
  File "d:\code\appconfig\azure-cli\src\azure-cli-core\azure\cli\core\commands\__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "d:\code\appconfig\azure-cli\src\azure-cli-core\azure\cli\core\commands\command_operation.py", line 121, in handler
    return op(**command_args)
  File "d:\code\appconfig\azure-cli\src\azure-cli\azure\cli\command_modules\appservice\custom.py", line 1150, in get_app_settings
    result = _generic_site_operation(cmd.cli_ctx, resource_group_name, name, 'list_application_settings', slot)
  File "d:\code\appconfig\azure-cli\src\azure-cli\azure\cli\command_modules\appservice\_appservice_utils.py", line 17, in _generic_site_operation
    operation = getattr(client.web_apps,
  File "D:\Code\AppConfig\azure-cli\env\lib\site-packages\azure\mgmt\web\_web_site_management_client.py", line 723, in web_apps
    raise ValueError("API version {} does not have operation group 'web_apps'".format(api_version))
ValueError: API version 2021-03-01 does not have operation group 'web_apps'

False alarm! I forgot to run azdev setup -c after getting latest code from dev branch. So this error only occurred in my dev environment. Sorry about the confusion!


enhancement avoid schema copy to reduce cpu usage

Proposed changes
Issue Number: close #xxx
Problem summary
some user reports that the cpu usage is quite high when data loading.
The flame graph shows that copy of the schema cost lots of cpu resources.

Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 36.89 seconds
load time: 504 seconds
storage size:<PHONE_NUMBER>7 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230117205043_clickbench_pr_82623.html


New dest + new source

Description
This is a combined branch from #95  and #99. These two PRs should be merged independently.
Fixes # (issue)
Quick checks:

[ ] I have followed the Code Guidelines.
[ ] There is no other pull request for the same update/change.
[ ] I have written unit tests.
[ ] I have made sure that the PR is of reasonable size and can be easily reviewed.

Most of this has been merged.


Post release automated changes for schemaregistry releases

Post release automated changes for azure-schema-registry-avro

API change check
API changes are not detected in this pull request.


Fix undefined Element #6610

If Element is undefined upon an application's compilation in development, it'll crash from this line:
PropTypes.shape({ current: PropTypes.any })

Using PropTypes.any seems to trigger a PropTypes.instanceOf(Element) validation call. If Element is undefined or null upon validation, then it crashes the process.  A solution I'm currently proposing is to include a globally scoped Element variable (a locally scoped variable will be removed by rollup during compilation because it deems it as being unused and unnecessary):
modules/Element.js
const Element = typeof Element === "undefined" ? function() {} : Element;

export default Element;

Then including the file into  modules/index.js
export { default as Element } from "./Element";
export { default as BrowserRouter } from "./BrowserRouter";
export { default as HashRouter } from "./HashRouter";
export { default as Link } from "./Link";
export { default as NavLink } from "./NavLink";

When compiled it'll add a single globally declared Element variable that fixes the compilation Reference Error:
var Element = typeof Element === "undefined" ? function () {} : Element;

The issue with the beta comes from an older version:
https://github.com/ReactTraining/react-router/blob/89a72d58ac55b2d8640c25e86d1f1496e4ba8d6c/packages/react-router-dom/modules/Link.js#L65
This shouldn't be an issue anymore; the PropTypes.any change came as a fix after the beta 7 was released, there just hasn't been a release since the change was made.

Ahh okay.


Rubocop beautification doesn't work

Description
Rubocop beautification doesn't work. I can see rubocop linters errors in the editor. If I run rubocop from the command line, it fixes all the errors.
Input Before Beautification
This is what the code looked like before:
class Calendar < ActiveRecord::Base
  has_many :users, through: :events, source: :eventable, source_type: 'User'

  validates :name, presence: true
end

Expected Output
The beautified code should have looked like this:
class Calendar < ActiveRecord::Base
  has_many :users, through: :events, source: :eventable, source_type: 'User'

  validates :name, presence: true
end

Actual Output
The beautified code actually looked like this:
class Calendar < ActiveRecord::Base
  has_many :users, through: :events, source: :eventable, source_type: 'User'

  validates :name, presence: true
end

Steps to Reproduce

Add code to Atom editor
Run command Atom Beautify: Beautify Editor
This beautified code does not look right!

Debug
Here is a link to the debug.md Gist: Gist
Tried to run this in terminal:
/Users/vladimir/.rbenv/shims/rubocop --auto-correct --config /Users/vladimir/projects/breakaleg/.rubocop.yml /var/folders/63/jzj7mjl17fg0hzkm8j8psf700000gq/T/temp11748-19165-1jm0d43.n8h7i4quxr

And it beautifies the tmp file correctly.
Tried to make the .rubocop.yml empty, tried on many different .rb files. Beautification just doesn't work.
Checklist
I have:

[x] Tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
[x] Reloaded (or restarted) Atom to ensure it is not a caching issue
[x] Searched through existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
so I know this is not a duplicate issue
[x] Filled out the Input, Expected, and Actual sections above or have edited/removed them in a way that fully describes the issue.
[x] Generated debugging information by executing Atom Beautify: Help Debug Editor command in Atom and added link for debug.md Gist to this issue

Have the same issue

Duplicate of https://github.com/Glavin001/atom-beautify/issues/1652

https://github.com/Glavin001/atom-beautify/pull/1685 has been merged. Await next release.

Published to v0.30.0


Changes to support auth service URL configuration

Added kb_sdk as a dependency, use kb-sdk to compile spec in Makefile
Added kbase.yml
Added auth url option to deploy.cfg
Added KB_SERVICE_NAME to start_service.tt to let Service.pm read in
same config stanza as Impl
Removed duplicate funcdef in spec file, updated Impl file to match
PR to dev-perl_auth branch, we can merge to develop when ready

Depends on https://github.com/kbase/kb_sdk/pull/191


Importing types doesn't work in jest environment

Vue version
3.3.2
Link to minimal reproduction
https://github.com/vojvodics/vue3.3.1-jest-reproduction-example
Steps to reproduce
Clone reproduction repository and run npm run test
What is expected?
Tests should pass
What is actually happening?
Tests are failing with the following error:
    [@vue/compiler-sfc] No fs option provided to `compileScript` in non-Node environment. File system access is required for resolving imported types.

System Info
No response
Any additional comments?
A hacky solution is provided in the repo example. It is based on these files:
https://github.com/vuejs/core/blob/v3.3.2/packages/vue/compiler-sfc/index.js
https://github.com/vuejs/core/blob/v3.3.2/packages/vue/compiler-sfc/register-ts.js
Also related:

https://github.com/vuejs/core/pull/8083
https://github.com/vuejs/core/issues/4294

*initially it was v3.3.1, but I updated it to v3.3.2 and it is still present

This is something that needs to be fixed in https://github.com/vuejs/vue-jest I believe. /cc @lmiller1990

I recently ran into the same issue, although I'm not using jest. Will put up a simple repro and link here
Discussion on discord

I have the same problem with version 3.2.2 and without jest.
Any news?

I have the same problem with version 3.2.2 and without jest. Any news?

I think this feature is available only from v3.3.x
See here

I have the same problem with version 3.2.2 and without jest. Any news?

I think this feature is available only from v3.3.x See here

My mistake, i'm using version 3.3.1

Hi there! Had anyone of you time to investigate? 🙂 Using the new cool vue 3.3 interface features (that is importing interfaces from elsewhere) our jest suite is now broken too 🥲 Would really like to step forward with vue 3.3 🥳.

@jenshoffmann1331 Did you try the hacky solution? You basically point to a different transformer than vue-jest (https://github.com/vojvodics/vue3.3.1-jest-reproduction-example/blob/main/jest.config.js#L6) and in that file you call registerTs before exporting vue-jest (https://github.com/vojvodics/vue3.3.1-jest-reproduction-example/blob/main/vue3JestHack.js)

@vojvodics: Yeah!  Works well, thank you!

I don't think we've tried vue-jest with Vue 3.3 yet. We should add some tests in that code base and see if there's any bugs or issues.
It sounds like this isn't an issue in Vue core, though - perhaps we should move the issue to vue-jest?

It looks like vue-jest need to apply this code to register TS
require("@vue/compiler-sfc").registerTS(() => require("typescript"));

Hmm... Adding the following to jest.config.ts seems to change the error:
  globals: {
    "vue-jest": {
      compilerOptions: {
        fs: fs
      }
    }
  },

    [@vue/compiler-sfc] Failed to resolve import source "@/stores/article". typescript is required as a peer dep for vue in order to support resolving types from module imports.


i18n(pt-BR): Update deploy.mdx translation

Update deploy.mdx translation
Updates the pt-br translation of the deploy.mdx guide.

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

pt-br
guides/deploy.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


SSR internal refactorings

Extract error code out to a separate module
Improve error reporting when a test fails
Refactor matching code
Update tests so that all paths in search patterns can be resolved

bors d+

FYI, SSR just saved me a bunch of time (well, if I exlclude gif recording and twitter bragging :) )
https://twitter.com/rust_analyzer/status/1279045923373559813

btw, I've fond SSR to take non-trivial amount of time for rust-analyzer repository. i think we can make it faster by using the following tricks (see search.rs):

use approximate text-matching before checking syntactic/semantic match. One day, we'll build a trigram index, and text searches would be :fire:-fast
allow the user to specify the scope somehow. Today, I needed to ssr in a single file, for example.

In terms of speed, I’ve been working on matching paths by resolving all paths in the pattern. Then when a path is encountered in the code we'd resolve that path and check if it resolved to the same thing as the corresponding path in the pattern. This means that we need a scope in which to resolve paths in the pattern. Initially I was thinking the “root”, but since there can be multiple roots, I eventually concluded that it might make sense to instead use the scope that the user was in when they invoked SSR. i.e. pass through a FilePosition. This means that the pattern should be able to refer to private paths in the current scope, or even local variables in the current scope.
Once we’ve resolved each path in the pattern, I was thinking I’d try to leverage the existing code in Definition::find_usages to find references. We can then restrict the search to just those nodes that correspond to those references.
This might look something like the following:

Suppose we’ve got two paths in our search pattern, foo and Some. foo is private to the current module and Some is public.
Start with the path that has the narrowest search scope, in this case foo and find references to it.
If foo is at depth 2 in the search pattern, then find parent().parent() of each reference to foo.
We could optionally, especially if we found lots of references to foo, look for references to Some within the intersection of foos search scope and Somes search scope, then intersect the resulting node sets.
Finally, attempt matching each of the nodes in the remaining node set.

This should I think make things pretty fast and would reuse the find_usages code without writing some very similar logic. It'd also mean that any future improvements to find_usages would be obtained by SSR for free. Does this approach sound reasonable?
One thing I've been thinking about is how to handle situations like use a::b::Foo as Bar. If our pattern then contains Foo, can we find code that references the alias Bar. I think using find_usages might help here provided we're not too aggressive with intersecting search scopes. It looks like currently find_usages on Foo will find the use-statement, however find-usages on the Bar in the use-statement doesn't find usages of Bar. But that's probably fixable. Effectively we'd need to follow chains of use-statements until we get to actual references.
I think we probably in addition to leveraging paths, we need some way to be able to restrict the scope of the search, even when it only contains public paths (or contains no paths). I guess common scopes might be the current file, the current crate or everything. Not sure of the best way. We could have separate "SSR in current file", "SSR in crate" options. That doesn't feel like it scales very well. Another option would be to allow some marker in the rule. e.g. ${:in(module)} or ${:in(crate)}. This format would be effectively an unnamed placeholder that wouldn't match any nodes, but could place constraints on where the match was permitted. The in constraint would be evaluated relative to the location where SSR was invoked from.

bors r+


Add support for SPOP key count

Add support for SPOP with count to return multiple set members.
List<V> spop(K key, long count);

Implemented.


Getting Something went wrong and Retrieval Error when trying to terminate admin user active session

How to reproduce:

Access console
List admin user
Go to Active sessions tab
Click on Terminate session by listing the current session
There will be 2 alerts one as successful and 1 as a error in terminating session
Then try to list users or try to do any operation in the console
Will end up in something went wrong errors

https://user-images.githubusercontent.com/31848014/164158612-f82e296f-bc21-46f4-b319-6dba0d6cbd33.mp4
Environment information (Please complete the following information; remove  any unnecessary fields) :
IS 5.12.0 alpha 20

when the session got terminated we need to show the "Your session has Expired". window and gracefully terminate the session. This error occurs since the tokens are revoked and the console app is active. So we need to gracefully termitate the app session

@savindi7 Is this fix resolving the error given when clicking the Terminate All option.
https://user-images.githubusercontent.com/31848014/165279982-1ec8992b-39c7-464b-ba9a-cc66579ac4bf.mp4

The fix has resolved the initial issue of the session not getting gracefully terminated. So IMO this is happening due to another issue which we need to check. Shall we create a new github issue for this.

Checked the 5.12.0 beta pack with myaccount and issue is not reproducible in the beta pack.
https://user-images.githubusercontent.com/31848014/165441187-137f87ca-9857-4c47-b6de-e467208f1193.mp4


fix: preprocess percentage values and convert them to floats, fixes #340

Description

Instead of attempting to convert percentage values to floats at the CSS implementation level, we instead convert them at the variable import level. This means you can directly use opacity variables and they'll already be real CSS values.
How and where has this been tested?

How this was tested:

cd components/vars
gulp update
git diff

Browser(s) and OS(s) this was tested with: n/a

To-do list

[x] If my change impacts other components, I have tested to make sure they don't break.
[x] If my change impacts documentation, I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.

[x] This pull request is ready to merge.

Note that the single failing visual regression test is because Avatar disabled now actually shows as disabled. This is ready to merge.


Cherry-pick #26352 to 2.47.0 branch

https://github.com/apache/beam/pull/26352

R: @jrmccluskey

Run Java PreCommit

Run Java_GCP_IO_Direct PreCommit

Run Java PreCommit


Syncing code from internal branch

This PR has multiple commits, one per logical change:

Update cheatsheet link in README.md to point to the web link [ci skip]

Adding a way to set the directory where screenshots are stored to the FAQs

making gesture view controller fit its content on smaller form factors like iPhone 4/4s

Adding newlines between reason and call-stack symbols that are printed on test failure

Making GREYAssertXXX resemble XCTAssertXXX with similar failure messages

Aligning misaligned colons

Adding missing comments to GREYConstants's direction enum

removing unnecessary logging each time something is checked for visibility

refactor some code in runloop and executor

Clean up the RichHTML functional test and Local HTML functional test. Turn live tests into hermetic tests.

:+1:


Pathlib.Path objects not serializable

It would be nice if pathlib.Path objects were serializable by default:
import pathlib
import tomli_w

root_dir = pathlib.Path("/")

data = {
    "target": {
        "ip": "xx.xx.xx.xx",
        "os": {
            "os": "win 10",
            "Arch": "x64",
            "root directory": root_dir # throws TypeError. would need to do str(root_dir)
        },
        "ports": {
            "ports": ["1", "2"],
            "1": {
                "service": "xxx",
                "ver": "5.9",
            }
        }
    }
}

output_file_name = "test.toml"
with open(output_file_name, "wb") as toml_file:
    tomli_w.dump(data, toml_file)

Very small QOL thing, but it would still be nice to not have to wrap each value in (str).

Thanks for the issue!
TOML doesn't have a filepath type so I don't want to support this. In theory we could call str on any type, but I'd rather be strict and limit us to types that match with something in TOML spec. It should be fairly straightforward to convert pathlib Paths prior to a tomli_w.dump call.


Add function:

1.draw 1 dimension picture
2.customize pic save path
changed:
keract/keract.py ---display_activations()
added param dim for dimension, only support 1 or 2
added dir for path to save picture, example:'pic/step1/'

LGTM but updating the docstrings to reflect the new parameters would be a good idea

I just finished a new version that support draw no-channel data into 1D picture. I will change into Plotly or some other visualize package next version, I hope to make it faster. If things go well, I will send a new pull request. Kercat is the life-savior!

You can probably replace your data_format parameter with keras.backend.image_data_format(). The only thing with plotly is it is an extra dependency that people are less likely to already have installed than matplotlib

I just finished a new version that support none-channel data into 1D picture, I had already pushed it, and I am planning changing matplotlib into Plotly and test if it’s faster than matlplotlib. If it works fine, I will send another pull request. This package is a life-savior!
发送自 Windows 10 版邮件https://go.microsoft.com/fwlink/?LinkId=550986应用

发件人: qwertpi<EMAIL_ADDRESS>发送时间: Friday, September 6, 2019 2:23:00 AM
收件人: philipperemy/keract<EMAIL_ADDRESS>抄送: zkx741481546<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>主题: Re: [philipperemy/keract] Add function: (#57)
LGTM but updating the docstrings to reflect the new parameters would be a good idea
―
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/philipperemy/keract/pull/57?email_source=notifications&email_token=AHNKS25MK4JAYIN6MSXLFW3QIFFAJA5CNFSM4IUA2N62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6AHKTI#issuecomment-528512333, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHNKS23L6JLNNTDJ3DSJOA3QIFFAJANCNFSM4IUA2N6Q.

I had tried Plotly, but it's not faster than matlibplot, I am hoping for a very low performance loss that I can draw during training

If user are not using keras, Keras.Backend wont work. But it seems a good choice for me

If user are not using keras, Keras.Backend wont work. But it seems a good choice to me

If the user isn't using keras then the Keras Activations + Gradients library won't work

How ready is this PR?

Updated here https://github.com/philipperemy/keract/pull/62 Thanks for contributing :)


We can't edit our Credentials/API . I have to keep submitting a new request and it automatically gets denied

Please let me know when you will have the Edit Credentials / API . i have been emailing the fleet email no reply for 2 weeks.
I have to submit a new app request which keeps getting automatically denied. Thank you.

Same issue here, we've been struggling for days.

See https://github.com/teslamotors/vehicle-command/issues/11#issuecomment-1797080505. No point in double-posting ;)

We are getting enter VALID URL ( Credentials)  error and we generated from AuthO. Can you help us diagnose ?

seems like sub-domains disallowed?


How to integrate serenity with Karate

IMPORTANT: If you have a general question please use Stack Overflow instead where Karate has a dedicated "tag": https://stackoverflow.com/questions/tagged/karate
If you are sure you have found a bug, please make sure you follow the instructions here: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

@akpune21 not supported


add a reboot --kexec

and clean up reboot command so that reboot --help doesn't just reboot with no prompt.

if we can clean up https://github.com/rancher/os/issues/1285 at the same time, that would be good.

done in #1965

I noticed that sudo reboot --kexec, when running in memory from iPXE boot without an installation hard disk attached, results in an error.
Screenshot


Documentation on Inference

Hi, I am very much new to this and just exploring dinov2. Is it kindly possible to release a step by step documentation to run inference for semantic segmentation on a single image or better a video?

#1

I prepared a self styled code for Webcam Dinov2, note the change in environment as an image in Linux. https://github.com/1ssb/webcamdino/edit/main/fuser.py


adding simple-parse example

In partial response to #133, I've created examples/simple_parse.c, a simple standalone program that parses a line of text into a json_t structure and prints it.  (As a by-product, simple_parse.c has a print_json() method that recursively walks and prints a json_t object.)
What's missing is a makefile for the example directory and extensions to the other makefiles -- I'm not familiar enough with CMake or Makefile.am to confidently create them.

Pleased to help.  jansson is a great tool.


Merge pull request #4 from Dee-Glit1015/Dee-Glit1015-patch-1

Merge pull request #3 from Dee-Glit1015/main

Merge Conflict Branch


Expose the underlying generator function from wrapper functions

Currently it's impossible to inspect the wrapped generator function if you want
to dynamically extract its source to produce documentation. With native async
functions this won't be a problem but right now the co.wrap wrapper is too
opaque for this use case.

Coverage remained the same at 100.0% when pulling b49eccd683bb9386f10ef65bc2b1ff5984594cf6 on ide:expose-generator-function into 735fd49a98f250124886f57b418d468709b5bbea on tj:master.

anyone else care about the name?

f3003783cac8e496a124186164c9d7e21a57fa96

oops wrong PR :P

3004f22e31e0f4731f31fb8e0479756e2f97f210 thanks!

Thanks :)


Set timeout to avoid long waiting during ProvisionedThroughputExceededException

When this exception occurs, there is a long waiting time before receiving the
response in the application from DynamoDb.
The level of configured provisioned throughput for the table was exceeded. Consider increasing your provisioning level with the UpdateTable API. (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ProvisionedThroughputExceededException; Request ID
Is it possible to set a timeout or ttl to the request in spring-data-dynamodb to return an error quicker? Or a better way to resolve this kind of situation?

Hi, I resolved this by adding a timeout on the dynamodb request:
AmazonDynamoDB dynamoDBClient = new AmazonDynamoDBClient(
new ClientConfiguration().withConnectionTimeout(2000).withRequestTimeout(2000));


Add contribute.json to the website

contribute.json is an initiative from Mozilla to provide human- and machine-readable metadata describing how to contribute to a given web site/service or repository.

Ideally, the contribute.json file should also be present at the root of the repo, and checked against the schema during CI.
That sounds like too much work for 3.30am

We could write a small python script that fetches the raw schema file from github and uses jsonschema@pypi to validate it against this file.

We could write a small python script that fetches the raw schema file from github and uses jsonschema@pypi to validate it against this file.

Yuh, that's pretty much what I had in mind.  :3
Do you think it's reasonable to leave it for a later PR though?

Yeah, of course. It's only useful when run in CI, and there aren't that many maintainers yet, so it's not really important. :)


Improper class casting can happen in RequestContext

https://github.com/paypal/squbs/blob/82ef1b1b6bf1f91cb64ba589554f22505a91a4d6/squbs-pipeline/src/main/scala/org/squbs/pipeline/RequestContext.scala#L48
This cast can fail.  It is worrisome because a client would normally expect the Failure to be some kind of HTTP thing.
AFAIK, AKKA only has the Scala implementation for the Java-based abstract HttpResponse, but we should still address this if the cost isn't too high.

Not worried about the casting to be failed (as there is one implementation), but I agree it looks unnecessary (at least without looking into details).  We should instead keep the API with jm.HttpResponse.

I never signed up for this email people. How do I get out of this forum?
On Mon, May 14, 2018, 3:39 PM Anil Gursel<EMAIL_ADDRESS>wrote:

Not worried about the casting to be failed (as there is one
implementation), but I agree it looks unnecessary (at least without looking
into details). We should instead keep the API with jm.HttpResponse.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/paypal/squbs/issues/654#issuecomment-388971803, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AjzPM2x-59wrgP_IRz3dXZlIl7OZx0VDks5tyfmigaJpZM4T6nnX
.

Just click on "Unwatch" button at the top.


Add E2E test for "Header no-trigger elements"

### Tasks
- [ ] Add E2E automation script

Given a logged-in user
And no-trigger scenario is loaded
When navigating to {country} floods
Then chat-section shows 'no events' message
And header should show {country} floods non-triggered
And all the "Header" elements should be present:
Header:

dev-menu/home button
header title (IBF Portal Uganda Floods non-triggered)
country logos
logged in as: Uganda manager
logout button

Test case available also: https://dev.azure.com/redcrossnl/121 Platform/_testPlans/define?planId=30494&suiteId=30580


Improve Min/Max performance

Code Changes
I have found that initializing a namedtuple costs about twice the time as initializing a tuple. With respect to this module, I setup a list of 1M single-digit integers to profile the rolling objects in the minmax module against using the line_profiler tool. I used a window size of 50 -- although the particulars of how many numbers and window sizing is inconsequential to the profiling results below.
Briefly, here are the results of profiling the original _update_window() function for the Max object:
Total time: 4.00087 s
File: rolling/rolling/minmax.py
Function: _update_window at line 136

Line #      Hits         Time  Per Hit   % Time  Line Contents
==============================================================
   136                                               @profile
   137                                               def _update_window(self, new):
   138    999951     503410.0      0.5     12.6          self._i += 1
   139    999951     961123.0      1.0     24.0          new_pair = pair(new, self._i + self.window_size)
   140                                                   # remove smaller values from the end of the buffer
<PHONE_NUMBER>    1052818.0      0.5     26.3          while self._buffer and self._buffer[-1].value <= new:
   142    999439     522761.0      0.5     13.1              self._buffer.pop()
   143    999951     466735.0      0.5     11.7          self._buffer.append(new_pair)
   144                                                   # remove any maxima that die on this iteration
<PHONE_NUMBER>     493749.0      0.5     12.3          while self._buffer[0].death <= self._i:
   146       513        272.0      0.5      0.0              self._buffer.popleft()

Of note is the Per Hit field. According to the line_profiler documentation, this is

the average amount of time spent executing the line once in the timer's units.

The timer's unit for this particular test is 1 microsecond.
Line 139 takes one microsecond to run due to creating the pair namedtuple object.
Switching from namedtuples to tuples, here are the results after profiling:
Total time: 3.46069 s
File: rolling/rolling/minmax.py
Function: _update_window at line 139

Line #      Hits         Time  Per Hit   % Time  Line Contents
==============================================================
   139                                               @profile
   140                                               def _update_window(self, new):
   141    999951     473326.0      0.5     13.7          self._i += 1
   142                                                   #new_pair = pair(new, self._i + self.window_size)
   143    999951     452888.0      0.5     13.1          new_pair = (new, self._i + self.window_size)
   144                                                   # remove smaller values from the end of the buffer
<PHONE_NUMBER>    1072247.0      0.5     31.0          while self._buffer and value(self._buffer[-1]) <= new:
   146    999439     474975.0      0.5     13.7              self._buffer.pop()
   147    999951     453792.0      0.5     13.1          self._buffer.append(new_pair)
   148                                                   # remove any maxima that die on this iteration
<PHONE_NUMBER>     533205.0      0.5     15.4          while death(self._buffer[0]) <= self._i:
   150       513        258.0      0.5      0.0              self._buffer.popleft()

Here, you can see line 143 running in half the time as before.
A final (very minor) change is to use if over while when removing any maxima/minima that should exit the window. Making this change won't disrupt the end-result because at most one value enters the window in any iteration. Here are the results after profiling:
Total time: 3.53752 s
File: rolling/rolling/minmax.py
Function: _update_window at line 137

Line #      Hits         Time  Per Hit   % Time  Line Contents
==============================================================
   137                                               @profile
   138                                               def _update_window(self, new):
   139    999951     511497.0      0.5     14.5          self._i += 1
   140    999951     467928.0      0.5     13.2          new_pair = (new, self._i + self.window_size)
   141                                                   # remove smaller values from the end of the buffer
<PHONE_NUMBER>    1094480.0      0.5     30.9          while self._buffer and value(self._buffer[-1]) <= new:
   143    999439     475525.0      0.5     13.4              self._buffer.pop()
   144    999951     454227.0      0.5     12.8          self._buffer.append(new_pair)
   145                                                   # remove any maxima that die on this iteration
   146    999951     533587.0      0.5     15.1          if death(self._buffer[0]) <= self._i:
   147       513        279.0      0.5      0.0              self._buffer.popleft()

The notable metric here is the reduced number of Hits on line 146 relative to the previous two profiling results.
Bookkeeping
All tests pass.
I have also incremented the patch version and added versions 0.3.0 and 0.3.1 (this PR) to the changelog.

Hey @ajcr,
No problem :) Happy to help.


add AWS CloudFormation resource deletion option

added option to delete AWS CloudFormations with --stacks flag

There should be option to omit specified stacks - i.e. an administrator deploys a monitoring resources, but this will delete them.

Please include 'STACKS' here to take care of cleanup of all regions
https://github.com/RedHatQE/cloudwash/blob/8a85f38f3182e9d5e22d005c01f5a7f356cf155b/cloudwash/providers/ec2.py#L13

Multi region cleanup should work now.

@laDok8 Please rebase, so that we can get that in soonish !!

@jyejare found typo putting exception instead of exceptions breaking VM exception functionality for all cloud providers, should i split this bug fix into separate PR?

@laDok8 Good Catch! Do you want to raise a separate PR for it and quick. We can also improve the settings validation in that PR as well. OR I can open a quick PR for it.

@laDok8 Would you like to cut new release this week or OK for waiting for next big release including all other major changes ?

it's ok, I'll wait

Adding in release 1.1.0 happening on 15th Nov 2022.


Facing typeError issue while using upstash lock

Problem:
I'm creating a chatapp where a user calls an api which  returns a roomId ,but i was facing a problem where if two users call that api at same time which i dont want to happen as it leads to race condition,to solve i had used upstash lock but facing type error

component calling the api

 const Room = ({params}:roomProps) => {
    const {userId}= params
    const [roomId,setRoomId] = useState();

    async function getRoomId() {
      const API_BASE_URL =
   process.env.NEXT_PUBLIC_MODE === "production"? "https://blinkchat-nu.vercel.app": "http://localhost:3000";

      try {
        const { data } = await axios.get(
          `${API_BASE_URL}/api/roomIdExists/${userId}`
        );
        const value =await data.mssg;
        setRoomId(value);

      } catch (error) {
        console.error("Error fetching roomId:", error);
        setRoomId(undefined); // Reset roomId on error
      }
    }

//USING UPSTASH LOCK HERE
   useEffect(() => {
    async function fixRaceCondtion(){
      //since two browsers were hitting this api at same time it was causing race condition
  //to prevent that we are using lock system from redis

    const lock = new Lock({
      id:`userId`,
      lease: 2000,
      redis:client,
    });

console.log("console log",lock)

    if(await lock.acquire())
    {
       getRoomId();
       await lock.release()
      }
      else{
          console.log("lock not acquired")
      }
  }

  fixRaceCondtion()
    // eslint-disable-next-line react-hooks/exhaustive-deps
    }, [userId]);

    if (roomId === undefined) {
      return
Loading...
;
    }

Hi, thanks for making an issue. The issue you're running into is because you are attempting to use this library on the cilent side, which is not allowed. @upstash/lock is intended to be used on the server (ie: an API endpoint or server component if using Nextjs). If you move this code to the server, it'll behave as expected.
For your use case, the lock should be acquired on the server in the case of multiple clients trying to connect to it, and having it on the client won't solve the issue. Also, it's a security concern to create the lock on the client side because it exposes your Redis credentials to anyone using the app.
Let me know if you have any questions!


Crash when starting the Server

When I start the Server they Server crashes
Steps to reproduce the behavior:

Download the plugin
put in plugin folder
Start Server
Login..... Error

Fixed by https://github.com/cooldogepm/BedrockEconomy/commit/1429d03f24e6949b437f199f96c8bea4a7e42349


Methods to access data stored in nested variables in.mat file.

I am trying to access the data which is present in nested variables in my .mat file (version 256).

At the top level, there is a variable named "Stock," which is of type 1x1 struct.
Under the "Stock" variable, I have two sub-variables: "Alpha," "Beta," which are also 1x1 structures.
Under "Alpha," I have two more variables: "A1," "A2,"each containing data stored in matrices of 100x20 uint8, 100x1 logical respectively.
Similarly, "Beta" contains "B1," "B2," with data stored in matrices of 100x20 single, 100x20 uint16 respectively.

My objective is to extract the data stored in variables A1, A2, B1, B2,
It appears that the Mat_VarRead() method works effectively when dealing with data at a single level without nested variables (or correct me if I'm wrong).
Please guide on suitable MatIO methods/sample code for the same.

@tbeu can give maybe a simple example.
You can find here how a mat struct is loaded in Nelson using matio:
https://github.com/Nelson-numerical-software/nelson/blob/master/modules/matio/src/cpp/LoadMatioStruct.cpp


Support QSPI Flash driver for Renesas RA6 devices

Add support for QSPI Flash driver for RA6 devices

Add QSPI Flash driver support on EK_RA6M5, EK_RA6M4, EK_RA6M3 and EK_RA6E2.

There is a lot of QPI in the code, shouldn't that be QSPI?

There is a lot of QPI in the code, shouldn't that be QSPI?

@de-nordic : Thank you so much for your review. We fixed issues which you pointed out.
Please check the updates at: https://github.com/zephyrproject-rtos/zephyr/compare/81878488837d751b4711ff629a61c9c098011dce..f462ce16a76f505fde14c40293db08f204f108a2
For "QPI" in the code, it isn't typo of "QSPI", this is support for QPI mode (4-4-4).
Could you please help us to recheck for the update? Thanks again.

rebases to resolve conflicts and separate the commits for clarity

rebase main to solve conflicts


chroot isolation: chroot() before setting up seccomp

Make the chroot() call before applying a seccomp filter, which might not allow us to do it.  Add more debugging messages.

LGTM
@TomSweeneyRedHat @pixdrift @vrothberg @umohnani8 PTAL

LGTM

@rh-atomic-bot r+


The repository does not generate a CC metadata file

Description
Each repo in the CC organisation should have a .cc-metadata.yml file. The OS@CC site repo generated from this one does not.
Expectation
The .cc-metadata.yml file should be present.
Resolution

[ ] I would be interested in resolving this bug.

It does, it's here: https://github.com/creativecommons/creativecommons.github.io-source/blob/master/.cc-metadata.yml

Hey @dhruvkb, can I work on this?

@dhruvkb could you give me some input as to what changes do I need to make exactly? It looks like there already is a .cc-metadata.yml file. Somewhat confused right now.

So @snehal199, each repository should have a .cc-metadata.yml file. This repo has one already.
But this repo is the source code for the actual OS@CC website which is in the repository creativecommons/creativecommons.github.io. That repo does not have one.
So the build process for the site needs to be changed in such a way that the .cc-metadata.yml site from this repo is copied over to the compiled site when building.

@dhruvkb, thank you for the feedback! I still didn't really understand what would be the way to resolve this issue. I looked up github actions since I don't really know how they work and found out some actions that copy files like scp-action and copy via ssh but I am not quite sure if any of these solve the problem.

@snehal199 let's take this from the top. Lektor has a build process that compiles the source code from this repo to a proper website that is in the creativecommons.github.io repo. This build process is: https://github.com/creativecommons/creativecommons.github.io-source/blob/6ff9518c0526f494a77a0ca6ebb3d8e307dc9639/.github/workflows/lektor-build-deploy.yml#L16
During this build process, Lektor copies everything in the assets/ directory to the root of the built site. So the files you see in the assets directory are also present in the root of the creativecommons.github.io repo, eg: LICENSE and README.md. The one file that is the exception is .cc-metadata.yml which has not been copied.
Why just this file? See this documentation page. Here scroll to Config Sections > [project] > excluded_assets. The text there says that files starting with . are not copied over to the built files. Since the file .cc-metadata.yml starts with a ., it is not being copied over, which is what we want.
So we must add .cc-metadata.yml to the included_assets key in the configuration:
https://github.com/creativecommons/creativecommons.github.io-source/blob/6ff9518c0526f494a77a0ca6ebb3d8e307dc9639/.lektorproject#L5
That should ensure that it is also copied over from assets/ to build/ during the build step. Hope this helps!

Thank you @dhruvkb for the detailed explanation ! I definitely made things much more clear :smiley:. Will open a pr soon.


Disable mypy incremental mode?

By default mypy’s incremental mode is enabled, which writes a cache of previous evaluation results. In our Makefile we wipe that cache with make clean
https://github.com/jenstroeger/python-package-template/blob/4f156fe9cce93eaf9094a2db954ff6344334aea4/Makefile#L118-L120
Stale cached values have been biting me and others several times now, and I’m tempted to disable incremental mode by default in our mypy.ini:
[mypy]
incremental=False

Thoughts? 🤔

@jenstroeger This isn't an issue imho.  Since the github actions are never really doing this, they are always clean builds disabling incremental is effectively ensuring you are always building what the github actions will build.

@brad-getpassport I’ve noticed this issue with local development: for example if the code stays the same but I update another package that my code depends on then mypy doesn’t pick up that change and begins to find “errors” where there aren’t any.
I agree that in CI this flag would have no impact because every Action starts with an empty cache anyway.

PR #197 and commit https://github.com/jenstroeger/python-package-template/commit/5149ddf0e599a8df237c1f4d91511c005c4272d9.


Add function for getting app version from chart version

Description
This PR fixes #
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

@leecalcote  I need this function to make some changes in nginx adapter


Implementation of CRUD operations on profile page for users

Will have to decide

What information to include (Preferred programming language?)
Whether to allow users to edit their names

To discuss

Will have to decide

What information to include (Preferred programming language?)
Whether to allow users to edit their names


add message to fix submodule unintentional problem

I'm probably the only person that didn't follow as instructioned, which led me
into a bad state, but this message should help anybody else to get out of the
same situation as I was.
Also note, this is different from "Updating your Clone". It only applies if the person knows that the local repository had initialize the submodules, otherwise nothing will happen.

Would be helpful to get this added to all repo's if decided to merge, LGTM


Keep PowerShell Gallery up to date

@dfinke would be great if publishing in the PowerShell Gallery could be done simultaneously and automatically when updating code on GitHub. This way they would always be in sync.
Especially for people running Update-Module on test or production systems.

That would be good, not enough tests or gates in place to make sure the release is a good one.
It is a goal.

I have to echo @dfinke  here. What is committed to GitHub is ready to test, what goes onto PSGallery has an implication of being ready for production (not in the sense of a legal warranty) .
Speaking for myself I wouldn't see "the developer has committed it"  as meaning "it is ready for production"

I see what you mean, never looked at it this way. I'll close the issue then until there are more tests to guarantee a solid release schedule. An other option would be to have dev branch and a stable branch. But I leave that open.

More interesting would be to "package" passing builds out of appveyor and eventually travis-ci.  Not in the gallery, but the community could grab a latest build before it is promoted to "production".


Piping Data To influxdb-cli/writerc

I am trying to pipe queries to influxdb-cli, but they just don't seem to work, even though the command line interface seems to work just fine:
$ influxdb-cli -d collectd <<< "list series"
collectd> Connecting to http://localhost:8086/db/collectd ...
list series
collectd> ✔ ready
$
I have to specify the database on the command line because it doesn't appear to read the ~/.influxrc files either, and attempts to write one with writerc five me this syntax error:
collectd> writerc
collectd> ✘ Error: syntax error, unexpected SIMPLE_NAME
writerc
^^^^^^^
I have no idea what I'm doing wrong.

Apparently I have the wrong code, yet again. Sorry.


Virtual display support with scrcpy

I'm testing the new feature of scrcpy where it is possible to create a virtual display (not an overlay screen) with the parameter scrcpy  --new-display=1920x1080/140.
But I'm unable to run Taskbar on this virtual display. It always opens on the main screen on the device itself and not on the virtual one. Is there an option I'm missing, or is this not implemented at the moment?
//sfm

Thanks for the hint. I did it in the wrong order. Creating a virtual display with scrcpy and then running taskbar did not work. But activating the desktop mode first ant then running scrcpy did work.


[bug] data-tauri-drag-region not working when in isolation mode

Describe the bug
If we have
  "tauri": {
    "pattern": {
      "use": "isolation",
      "options": {
        "dir": "../dist/preload"
      }
    },

Then <div data-tauri-drag-region="true"> won't work. And delete       "use": "isolation", makes it work again.
Reproduction

an existed example app with data-tauri-drag-region
can drag
add isolation config
can't drag

Expected behavior
Always can drag
Platform and versions
Environment
› OS: Mac OS 13.0.1 X64
› Node.js: 18.12.1
› npm: 8.19.2
› pnpm: 7.18.2
› yarn: 1.22.4
› rustup: 1.25.1
› rustc: 1.65.0
› cargo: 1.65.0
› Rust toolchain: stable-x86_64-apple-darwin
Packages
› @tauri-apps/cli [NPM]: 1.2.1 (outdated, latest: 1.2.2)
› @tauri-apps/api [NPM]: 1.2.0
› tauri [RUST]: 1.2.1,
› tauri-build [RUST]: 1.2.1,
› tao [RUST]: 0.15.6,
› wry [RUST]: 0.22.5,
App
› build-type: bundle
› CSP: default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
› distDir: ../dist
› devPath: http://localhost:1420/
› framework: React
App directory structure
├─ dist
├─ node_modules
├─ src-affine
├─ public
├─ scripts
├─ src-tauri
├─ .git
├─ .vscode
└─ src
Stack trace
No response
Additional context
And this don't have a proper ts type, and can't log anything
window.__TAURI_ISOLATION_HOOK__ = payload => {
  // eslint-disable-next-line no-console
  console.log('Tauri isolation hook', payload);

  return payload;
};

export {};

// TODO: find official typings if available
type IsolationPayload = unknown;

declare global {
  interface Window {
    __TAURI_ISOLATION_HOOK__: (payload: IsolationPayload) => IsolationPayload;
  }
}

This isolation mode is very difficult to use, normally we will load "devPath": "http://localhost:1420",provided by Vite, so we won't load HTML in the  "dir": "../dist/preload" , this is confusing.

And I'd like to load arbitrary HTML in public folder after build, which will replaced the HTML in the  "dir": "../dist/preload", will preload still work?

Can you share an example we can use to reproduce it? I couldn't do it using our isolation example.


Add legend to timeline rows

Add a dynamic legend to the row based on user configuration. Clicking on the legend could open the panel with row configuration.

https://www.figma.com/file/p4NqVu5OfDdKKGC2Ks72tG/Decomposition-%2B-Rows?node-id=1007-59556&t=ThYWn1vp8ttBZRS4-4

Question cam up about this today at a Clipper meeting. Our users definitely need a way to tell different lines apart without having to go into the timeline editor. For example the plot below shows the distance from the spacecraft to the earth and the sun, but I can't tell which is which without opening up the details for the row.


Pin Sphinx version (hot fix) to make graphviz directive work again

#148

Coverage remained the same at ?% when pulling 3366b977abab4f8c5e68f104437bc76328743fc9 on lpirl:pin-sphinx into 1ef062fad5060006566f8d6bd3b5a231ac7e0488 on nyergler:master.

We've gone ahead and dropped support for everything prior to 1.7; I think setup.py accurately reflects things (and the test suite is passing).


Warning: Missing argument 1 for CrudKit\Pages\BasicLoginPage::preprocess(), called in C:\xampp\htdocs\kit\vendor\skyronic\crudkit\src\CrudKit\CrudKitApp.php on line 51 and defined in C:\xampp\htdocs\kit\vendor\skyronic\crudkit\src\CrudKit\Pages\BasicLoginPage.php on line 67

Warning: Missing argument 1 for CrudKit\Pages\BasicLoginPage::preprocess(), called in C:\xampp\htdocs\kit\vendor\skyronic\crudkit\src\CrudKit\CrudKitApp.php on line 51 and defined in C:\xampp\htdocs\kit\vendor\skyronic\crudkit\src\CrudKit\Pages\BasicLoginPage.php on line 67

In /vendor/skyronic/crudkit/src/CrudKit/CrudKitApp.php, public function useLogin calls $login->preprocess (); I changed it to $login->preprocess ($this); and there are no errors.

Had the same issue, resolved with the fix by @rstuckart

@rstuckart solution works

Again, @rstuckart's solution works; line 52 in CrudKitApp.php. Many thanks rstuckart.

tried the solution, no more errors, but logging in with provided credentials apparently does nothing.. (I see the login form, and no error/wrong credentials message is shown)

If you look at the preprocess function in the BasicLoginPage class (vendor\skyronic\crudkit\src\CrudKit\Pages\BasicLoginPage.php) you will notice that the $app parameter is never used anywhere.
In my opinion a better fix to this issue would be to remove this $app parameter rather than passing an object that is useless.
For those who have difficulties to login, the Login/Pass to use are:
admin/demo
or
user/demo


Bundle in onPlayFromMediaId method is always empty. I need the Media Item Object.

override fun onPlayFromMediaId(mediaId: String?, extras: Bundle?) {
}
Android Auto Media App shows Content under the For you

Once the item is clicked i need the extras in onPlayFromMediaId method call which are packed on the creation of the item. But sadly the items are not available.
One way is to use the mediaId and load the content through api call. But the best way would be to get the extras through the Bundle. It is also not possible to save the whole data inside the app as the content shown under For you is old and app/sercice class cannot hold the content for long time.

@SigmanZero


handle long names in report figures and tables

[x] Closes #163 .
[x] Closes #242. 10 unique colors, then same colors but different shade for another 10. then the whole cycle repeats. good enough.
[ ] I am familiar with the contributing guidelines.
[ ] Tests added.
[ ] Updates entries to docs/source/api.rst for API changes.
[ ] Adds descriptions to appropriate "what's new" file in docs/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).
[ ] New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
[ ] Maintainer: Appropriate GitHub Labels and Milestone are assigned to the Pull Request and linked Issue.

To do:

[x] rotate x labels, make plot taller if any reduced name length is too long or there are too many forecasts

I would add a screen shot of the table but my mac seems to refuse to take screen shots right now :(

@alorenzo175 how do you feel about these hacks? any better ideas that are relatively quick?

I'm ok with the hacks, but is there any reason PALETTE can't be just be a generator, i.e. PALETTE = cycle(PALETTE) to avoid the repetition?

we don't want to share the generator among the functions
In [24]: PALETTE = cycle(['A', 'B', 'C'])

In [25]: def doit1():
    ...:     print(next(PALETTE))
    ...:

In [26]: def doit2():
    ...:     print(next(PALETTE))
    ...:

In [27]: doit1()
A

In [28]: doit1()
B

In [29]: doit2()
C


can't build wheel from guidata in winpython 3.4

same problem as https://github.com/spyder-ide/spyder/issues/2574
Googling it doesn't enlight me very much.
having guidata provided also as a wheel on pypi would hide the problem.

I have no clue regarding the "colorama" bug.
But FYI, there is already a wheel package for guidata on PyPI.

ok, thank you, closing


mbgl::ActorRef is not safe if the bind Actor is destroyed after  ActorRef be created

in the ActorRef document , it marks "sending a message to a   Ref whose Actor has died is a no-op", but actually is not safe.

You are right that it is only safe when the lifetime of the mailbox and the object match.

Would it be better to replace it with (std::shared_ptr)?

Might want @mwilsnd to comment on this.


Broken dependencies for Angular 12

Bug:
Trying to install     "@material-extended/mde": "3.0.3",
With angular 12 and it breaks because of new deps added:

What is the expected behaviour?
Expected behavior is to do version up and not break old one and to work with Angular 12 version.

What is the current behaviour?
Breaks with Angular 12 version.
What are the steps to reproduce?
Have Angular 12 project and try to run npm i with   "@material-extended/mde": "3.0.3", added in package.json
Which versions of Angular, Material-Extended, OS, TypeScript, browsers are affected?
"@angular/animations": "13.3.8",
"@angular/cdk": "13.3.7",
"@angular/common": "13.3.8",
"@angular/compiler": "13.3.8",
"@angular/core": "13.3.8",
"@angular/forms": "13.3.8",
"@angular/material": "13.3.7",
"@angular/material-moment-adapter": "13.3.7",
"@angular/platform-browser": "13.3.8",
"@angular/platform-browser-dynamic": "13.3.8",
"@material-extended/mde": "3.0.3",

devDependencies:
"@angular-devkit/build-angular": "13.3.5",
"@angular-eslint/eslint-plugin": "13.0.1",
"@angular-eslint/eslint-plugin-template": "13.0.1",
"@angular-eslint/template-parser": "13.0.1",
"@angular/cli": "13.3.5",
"@angular/compiler-cli": "13.3.8",
"@angular/language-service": "13.3.8",
"typescript": "4.6.4",

Resolved after using npm i  --legacy-peer-deps.
For anybody that has this problem.


pd-radio causes positioning issues in Firefox

We use the pd-radio component in an expandable item list. So the item content is shown after a expand action. The Issue here is now that the inner label of the pd-radio component is positioned absolute so it stays at the place at it will be rendered when the item is expanded. This behaviour causes empty space at the end of the list and a scrollbar in some Firefox versions.
From our view the absolute behaviour is not needed at all or at least should be wrapped in a relative context within the component itself (see possible solution).
Issue:

Possible Solution:

Can be reproduced in some Firefox versions. My Setup is following:

macOS Big Sur V 11.6
Firefox 92.0 (64Bit)

I was not able to reproduce this issue in firefox.
This styling was used to visually hide the  element similar to this.
I'll improve the visually-hidden style in the next release v2.3.1 to this:
position: absolute;     width: 1px;     height: 1px;     overflow: hidden;     clip: rect(0 0 0 0);     -webkit-clip-path: inset(0 0 0 0);     clip-path: inset(0 0 0 0);     margin: -1px;     padding: 0;     border: 0;
The relative position on the component is not needed in my opinion as the hidden element doesn't have a actual size.


Make PackageService::getClass static

It's called statically by Entity\Package::getClass and it does not contain any reference to $this

Do we call this anywhere non-statically that we should update?

Warnings Log only reported this warning here, but I didn't play a lot with the core.
A regex search for /::getClass\b/i on the whole core returns more potential places...

Do you mean switching from ->getClass to ::getClass?

@mlocati, yeah. IMO if this method is static we should take care to only call it statically for posterity even though it doesn't raise any errors.

IMO if this method is static we should take care to only call it statically for posterity even though it doesn't raise any errors.

It doesn't raise errors because it's conceptually correct.
Furthermore we have a couple of calls via the Concrete\Core\Support\Facade\Package facade  and via $app->make('Concrete\Core\Package\PackageService')->getClass();... Both call the PackageService->getClass non statically...


RuntimeWarning: 'robot.run' found in sys.modules after import of package 'robot', but prior to execution of 'robot.run'; this may result in unpredictable behaviour

I am running tests like this:
(py36env) c:\data\ohmyhardwork\ens\ensqacode>robot --pythonpath lib tests\Configuration.robot
c:\program files\python36\Lib\runpy.py:125: RuntimeWarning: 'robot.run' found in sys.modules after import of package 'robot', but prior to execution of 'robot.run'; this may result in unpredictable behaviour
  warn(RuntimeWarning(msg))
==============================================================================
Configuration
==============================================================================
FTP Server settings are manageable via configuration file        ..c:\program files\python36\Lib\runpy.py:125: RuntimeWarning: 'robot.run' found in sys.modules after import of package 'robot', but prior to execution of 'robot.run'; this may result in unpredictable behaviour
  warn(RuntimeWarning(msg))
FTP Server settings are manageable via configuration file        | PASS |
------------------------------------------------------------------------------
Configuration                                                         | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Output:  c:\data\ohmyhardwork\ens\ensqacode\output.xml
Log:     c:\data\ohmyhardwork\ens\ensqacode\log.html
Report:  c:\data\ohmyhardwork\ens\ensqacode\report.html

And I keep on getting this warning:
RuntimeWarning: 'robot.run' found in sys.modules after import of package 'robot', but prior to execution of 'robot.run'; this may result in unpredictable behaviour

This is the only link I can find through Google:
https://bugs.python.org/issue27487
But I don't know any workaround to get this warning disappear in Robot Framework... I just started learning how to use robot framework today. How can I suppress this warning?

Thanks for the report. Some findings:

I can reproduce the problem with Python 3.6 both on Linux and on Windows by running python -m robot.run but luckily python -m robot works without warnings.

The problem manifests itself using the robot command on Windows because there we use robot.bat with content like python -m robot.run. We hopefully get rid of the batch files in favor of exe files in RF 3.1 (#2415) but can at least change the code to python -m robot. Using python -m robot instead of robot is also an OK workaround.

Same problem occurs with python -m robot.rebot, python -m robot.libdoc, etc.

Need to investigate what's actually causing the warning. Hopefully we can refactor code to avoid it.

C:>robot --version still gives "RuntimeWarning: 'robot.run' found in sys.modules after import of package 'robot'" error
`C:>python -m robot --version
Robot Framework 3.0.2 (Python 3.6.4 on win32)
C:>robot --version
c:\program files (x86)\python36-32\lib\runpy.py:125: RuntimeWarning: 'robot.run' found in sys.modules after import of package 'robot', but prior to execution of 'robot.run'; this may result in unpredictable behaviour
warn(RuntimeWarning(msg))
Robot Framework 3.0.2 (Python 3.6.4 on win32)
`

Hi,
are there plans to fix this one in the next release please?
We trigger our RobotFramework tests from Jenkins which unfortunately treats all test runs as a failure when this warning occurs.

This SO question is about the exact same issue that we have:
https://stackoverflow.com/questions/43393764/python-3-6-project-structure-leads-to-runtimewarning
The root cause for the issue is that in robot/__init__.py we do from robot.run import run, run_cli which imports robot.run module before it is imported by -m robot.run. An answer to the question explains why the warning is emitted more thoroughly and also proposes some possible fixes. It seems what we could do is this:

Rename robot/run.py to runmod.py or something similar.
Change robot/__init__.py to import run and run_cli methods from runmod.py.
Create new robot/run.py that imports everything from runmod.py.
Repeat steps 1-3 with robot/rebot.py.

The above ought to be fully backwards incompatible still supporting python -m robot.run, python -c 'import robot; robot.run_cli(...) and also from robot.run import AnyEntryPoint. The main problem is that creating extra modules just to avoid the warning is annoying. This is especially annoying because, AFAIK, the warning is not really relevant for us and our code works fine.
An alternative to the above would be silencing RuntimeWarnings emitted by Python's runpy module that implements the -m functionality. This can be done by adding this into robot/__init__.py:
import warnings
warnings.filterwarnings('ignore', category=RuntimeWarning, module='runpy')

The main problem with the above solution is that it may hide future RuntimeWarnings that actually are relevant for us. We could make it more script by adding lineno=125, but then the workaround wouldn't anymore work if runpy module would be modified and lines adder or removed.

After thinking this a bit more, decided to take the easy route and just disable RuntimeWarnings by the runpy module. Decided to use this variant of the code to allow using -W (or PYTHONWARNINGS) to enable warnings:
import sys
import warnings

if not sys.warnoptions:
    warnings.filterwarnings('ignore', category=RuntimeWarning, module='runpy')


Add payment information and paypal button

How to get your ticket?
There are several options on how to get your ticket:
- Buy it at the door
All tickets can by bought at the door, so far we always had enough space for everybody who showed up.
Du to paypal fees day-tickets can be only bought at the door.
- Get it now! (recommended)
The pre-sale has started! Buying your ticket beforehands will help us being more fluid beforehands (since the festival is non-profit) and better plan ahead how many people will show up, how many T-Shirts have to be bought etc.
If you buy a ticket before but can't come we of course will refund you.
Pay via Paypal Checkout:
You can use the button below and get your ticket. You will get an email-confirmation including your ticket code and we will put you on the guestlist.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHmAYJKoZIhvcNAQcEoIIHiTCCB4UCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBCOJ2NAeRcE9y6r5jEG29ynuCHlaZnqpz+WtYxHApIxI6ecdcYHiYvnFoIcMWOsuMraoe3z3auRfEIo4y0UTHXShUaR3zcnU/QfdlaaG5eqozXoOuBJGsfwN/sufs9wVhmQOQgOd1dOAM2xf1JnrnNX9irXCbs8gknQB5X0R0H/jELMAkGBSsOAwIaBQAwggEUBgkqhkiG9w0BBwEwFAYIKoZIhvcNAwcECA/As5//jm/kgIHw2dXemYssWQLyFPetwQ6OXilei5LzMk67inoxSSDUwEaZqO+qtqJWUcN3x8EZkdT2rj8duu8AToacXPpT73szDRPLhWzmlrYnY9d07O9Y4+mHQW20VmCwgHung/HKeyAfJq5DFwTYcO9DRjo+/JtsSDr63uxqx62rj5HunigA7cRpxiQ8XKMGLZnusHi43mJOKFcUh53ZuDZDwwH6bi9aYA1sAiIww4ml1MHSIkDLywYCOePXZgz2HeHBbt3u+5O8Opz+LqjfX06RHMb5iBV5WcwX8phPj8j/Do1mVCzIKg8APRZU+nDxOkIBZ7tHwayAoIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTcwODI2MTUxMTAwWjAjBgkqhkiG9w0BCQQxFgQUa+0kAoG3l7z/I8Z5CfkXSama638wDQYJKoZIhvcNAQEBBQAEgYASOMo0CaqpXytYR4HEIa9fFptOftQ3Yq7IQZH4UaN2nK9NenIV4fFhmjGsgV0hx5qhKGJzsDBZe5a8b9Akzad24Ga/LexZcac9Jd5QvDbZemdy5O710TSiik8Pgf+Ike0bHoccCAJS528hEMA+7NK0MEzr1Dc52QCIxVYrhzMX4A==-----END PKCS7-----
">
<input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" width="1" height="1">
</form>

Pay via Bank Transfer
You can also pay via Bank Transfer to:
Philipp Eckert
IBAN: DE 1350 0105 1754 1053 2891 (INGDiBa)
This will save us some paypal fees. Please write an email to<EMAIL_ADDRESS>with your contact data and we will send you an email-confirmation including your ticket code and put you on the guestlist.
You can also use<EMAIL_ADDRESS>for Paypal Friends&Family payment if you are friends with v3nom, which will also save us some paypal-fees.

This page will be opened after successful payment:
http://deadline.untergrund.net/ticket_thanks.html
Text of the page:

THANK YOU FOR BUYING A TICKET!
You will get a confirmation mail within 24 hours including your ticket number.
We will add you to the guestlist. Simply say your name/nickname at the entrance desk and/or show them your confirmation mail and you will get your wristband (and t-shirt if you bought a supporter ticket)
See you there!


Popup on every page?

I am having great success with this project and integrating it with an existing custom CRM. Is there a code sample or an upgrade or something that would allow us to turn this into a popup when calls come in that is visible on every page of the CRM as opposed to only being on a separate page?  Also, if we are using this for multiple Twilio numbers can the name associated with the Twilio number also be displayed when a call comes in?

Hi @gloverconsulting I think it depends on how your CRM works. You need to instantiate a Twilio.Device and invoke device.register() and ideally, you're only doing this once per user session. This would be possible if there were a parent component or wrapper where the Twilio.Device could "live" and not be re-instantiated on each page.
For the phone number, you could show the name of the phone number, but this would need to depend on your own logic on the client side. You can inspect the "To" number for incoming calls within your 'incoming' call handler and display the appropriate name.

Thank you for your response.  Do you have a code example on how to inspect the "To" number for incoming calls within this system?
Patty
From: Brianna DelValle @.***
Sent: October 17, 2022 11:37 AM
To: TwilioDevEd/voice-javascript-sdk-quickstart-php
Cc: gloverconsulting; Mention
Subject: Re: [TwilioDevEd/voice-javascript-sdk-quickstart-php] Popup on every page? (Issue #44)
Hi @gloverconsulting https://github.com/gloverconsulting  I think it depends on how your CRM works. You need to instantiate a Twilio.Device and invoke device.register() and ideally, you're only doing this once per user session. This would be possible if there were a parent component or wrapper where the Twilio.Device could "live" and not be re-instantiated on each page.
For the phone number, you could show the name of the phone number, but this would need to depend on your own logic on the client side. You can inspect the "To" number for incoming calls within your 'incoming' call handler and display the appropriate name.
—
Reply to this email directly, view it on GitHub https://github.com/TwilioDevEd/voice-javascript-sdk-quickstart-php/issues/44#issuecomment-1281310750 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYAROUZVTXRVQGRIWAUYIUDWDWMFFANCNFSM5PVQSF3Q .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/AYAROU3Q4X6ZYNAQZJLYO73WDWMFFA5CNFSM5PVQSF32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJRPUAHQ.gif Message ID: @.*** @.***> >

This line is an example of how to check the 'To' number ($_REQUEST['To'])


Add initial design FAQ.

Signed-off-by: Erik Sipsma<EMAIL_ADDRESS>There are a few questions that come up from external users a lot around "why cloak", "why graphql", etc.
This is my first rough pass at trying to capture the main design goals of cloak specifically and why graphql ended up being a good fit for the API framework.
Please feel free to be brutally honest if something doesn't make sense, is too vague, is too wordy, is missing entirely, etc. These sort of high-level why questions are a bit tricky to get right, especially when my head has been buried in all of it for a while and I'm now trying to introduce it all to someone potentially for the first time.
Related: https://github.com/dagger/dagger/issues/3014
Also related: many discord questions, questions during demos, etc.

@vikram-dagger is this something that would be useful to reopen & merge?


[FIX] Fix default HTML element of Accordion component

Previously it was set to 'accordion' element, which wasn't part of HTML 5 spec - as a side effect, this has caused failures at the moment when enzyme was trying to mount this component during the tests.
Have changed default element to 'div'.

Made changes for the default 'as' prop for the accordionTitle and accordionContent to be div we well and added keys in the arrays of the accordion examples.

Guys, if nothing is provided as default value of the as property, it is 'div' by default. Because of this, I deleted the defaultProps which were setting just the as property to be 'div'. Apart from this, after the merge with the master, I noticed that the BaseComponent PR (https://github.com/stardust-ui/react/pull/21) had deleted the defaultProps from the Accordion.tsx component. I reverted this, but @alinais please approve it, so that we can be sure that it was a mistake and not an intentional remove.

I removed the defaultProps from Accordion when merging the BaseComponent PR.  It was done for the exact reason you noted.  The value accordion is not a valid HTML tag and setting the default to div is redundant.

Looking at the remaining changes after merging master, this PR is no longer required as it only updates a couple keys in the docs.


Only showing one Icon?

I have 3 boot entries but with this theme only one icon at a time is shown and when I use the arrow keys it cycles between the boot entries. How can I make it display all 3 icons?

Adjusted the resolution settings of rEFInd and this sorted it :) Awesome theme, thanks!


Difference between cleos create account and cleos system newaccount

There are currently two ways to create account, what's the difference?
cleos create account creator name OwnerKey ActiveKey
cleos system newaccount creator name OwnerKey ActiveKey
It seems that the system newaccount is have five extra Options.
 --stake-net TEXT            The amount of EOS delegated for net bandwidth
  --stake-cpu TEXT            The amount of EOS delegated for CPU bandwidth
  --buy-ram-bytes UINT        The amount of RAM bytes to purchase for the new account in kilobytes KiB, default is 8 KiB
  --buy-ram-EOS TEXT          The amount of RAM bytes to purchase for the new account in EOS
  --transfer                  Transfer voting power and right to unstake EOS to receiver

So is that redundant to keep cleos create account?

cleos system commands are for when the system contract is installed. cleos create account shouldn't be used with the system contract.


fix header to compile for OSX

Doesn't compile b/c of silly header difference, that resolves that.
reference https://stackoverflow.com/questions/2762010/osx-sys-io-h-not-found

Sorry about the trailing spaces removal, that's annoying.


Right clicking on button (On windows - Chrome and Firefox - not checked on IE)

Hi,
First of all, Let me thank you guys for the awesome library. I just love it. Though there is this wired behavior with buttons, when one right clicks on them, the get clicked (and perform the action). I'm not sure why this is happening, I tried but was not able to reproduce same behavior on my Linux box (Ubuntu 16.04). Following is the screen capture.

Thanks again.

Issue is related to react-tap-touch-plugin, the issue