Implement Bubble Sort (Python)

Implement Bubble Sort in Python
We need a simple bubble sort algorithm written in Python for our repository.
This issue is great for beginners looking to contribute in open source. If you wish to fix this issue please comment that you are working on it . Please read the readme.md and contributing.md files to learn how to contribute.
If you wish to contribute another algorithm or the same algorithm in a different language, please see if it hasn't been implemented and issue a new request if no issue has been made.
If you are going to work on the issue yourself, make sure you comment on the issue to let others know.

I would like to work on this!

@punkyoon There already seems to be a pull request. You could work on Heap Sort. Thank you anyway.


Remove button styling from "no results" text

Fixes

Fixes #215  by @zackkrida
Description

Added a noresult props to MetaSearchForm.vue, the parent component will pass a boolean(true/false if the query has 0 elements).
Remove the old no more image button.

If no more image:

If 0 image in query(no results):

Testing Instructions

Search something e.g.spacexs
Seach something to give no result e.g.spacexxxxxxxxxx

Checklist

[x] My pull request has a descriptive title (not a vague title like Update index.md).
[x] My pull request targets the default branch of the repository (main) or a parent feature branch.
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[ ] I added or updated tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

Hi, I think I added the string for no-results-title in src/locales/en.json. I am not sure if it is the right way to update this string. Is it possible to guide me through? Thanks

Great work @Kevan-Y! I rebased to get the updates of the main branch and fixed the paths in the openverse.pot file (we just discovered this issue here, it will be treated separately). Thank you!


fix(polyfills): optimized safe version of Object.assign polyfill

:tada: This PR is included in version 4.0.0-beta.6 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Skip the audit action on forks

Motivation
On forked repositories, the audit job fails daily with:
Error: Issues are disabled for this repo

Solution
This change adds a guard so that this run is skipped when the repo owner
is not kube-rs. This prevents daily GitHub notifications about action
failures.

Codecov Report

Merging #793 (240e7cb) into master (7b3c216) will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #793      +/-   ##
==========================================
+ Coverage   72.01%   72.04%   +0.02%
==========================================
  Files          55       55
  Lines        3727     3727
==========================================
+ Hits         2684     2685       +1
+ Misses       1043     1042       -1

Impacted Files
Coverage Δ

kube-runtime/src/wait.rs
70.00% <0.00%> (+2.00%)
:arrow_up:

Continue to review full report at Codecov.

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

Thanks for this!


Update Settings Activity

Implement classic settings activity with reset functionality, remove save / cancel buttons (replace by backwards navigation and reset button)

Check out this one: http://angrytools.com/android/button/


Adding GS305EPP to list of supported devices

Checklist

[X] I have filled out the template to the best of my ability.
[X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
[X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.
FR not based on a common problem (private one ;-)
Describe the solution you'd like
I recognized that in v0.6.5 the GS308EPP was added by a new class and device. First test with switch firmware V<IP_ADDRESS> was sucessful (besides the issue I mentionned yesterday on power off / power on). I'm assuming to add the GS305EPP class would be a "low hanging fruit". Latest firmware version of GS305EPP is same as GS308EPP. Thanks für your effort.
Describe alternatives you've considered
Can't suggest no alternative solutions (besides simply editing the models.py file with unforseen consequences)
Additional context
n.a.

I'm currently splitting the integration in the HA part and a generic module published on PyPi (netgear-plus) and adding unit tests. Once that's finished I will start adding the unsupported models on the backlog.


Fix reports-as-webpages ToC sizes/weights

Depends (and is based on) #5908
Adjusts reports-as-webpages ToC styles to meet the spec

Closing for PR hygiene


add another disk to dashboard

Hi! how can I add another disk to the dashboard? I have another mountpoint with fstype "ext4" but nothing shows up, thanks!

Hi,
This dashboard only graph docker stuff not your host. For that you can use other dashboard from Grafana's community.

Hi, ok thanks for the reply!


update jp translation to nightly 2023-07-01T20.53

The text on lines 801-803 has been withheld because we could not find it in the application.
If the text is only visible to group owners, etc., please let us know via screenshot!

Ah the lines you are referring to are used in the group dialog members tab when you have moderation permissions for the group you can see this extra info as icons with tooltips.


ensure the SkipAdminCheck attribute is set for Java21 runtime

Ensure that the SkipAdminCheck attribute is set on the request if the x-google-internal-skipadmincheck header is found.
This was done by the RpcConnector used by jetty 9.4, but was not being done by the DelegateRpcExchange for the jetty12 runtimes.

something interesting: for EE10 even without this change, and the request attribute com.google.apphosting.internal.SkipAdminCheck being null the request still flows all the way to the App's HTTP handler:

I personally think that JettyServletEngineAdapter is a better place to introduce this logic.

I personally think that JettyServletEngineAdapter is a better place to introduce this logic.

new DelegateRpcExchange(upRequest, upResponse) is called directly by JettyServletEngineAdapter.serviceRequest. And its not just about setting the attribute, we also want to mark the DelegateRpcExchange as secure even though it might have been http not https so it bypasses the CONFIDENTIAL transport guarantee.
So I think it should be done in the DelegateRpcExchange like this.

something interesting: for EE10 even without this change, and the request attribute com.google.apphosting.internal.SkipAdminCheck being null the request still flows all the way to the App's HTTP handler:

looking into this now

something interesting: for EE10 even without this change, and the request attribute com.google.apphosting.internal.SkipAdminCheck being null the request still flows all the way to the App's HTTP handler:

@gchux Servlet constraints combine in an non obvious way.  The weaker of the constraints typically wins in the merge. See https://jakarta.ee/specifications/servlet/6.0/jakarta-servlet-spec-6.0#combining-constraints


cloneDeep not that deep

To save others hours of headaches, a small update for testing running Vuex store with modules.

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[x] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes
[x] No

If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:

[x] It's submitted to the dev branch.
[x] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[ ] All tests are passing: https://github.com/vuejs/vue-test-utils/blob/dev/.github/CONTRIBUTING.md#development-setup
[ ] New/updated tests are included

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:
Documentation update to save others from making the same mistake I made.

cool. thanks!


Fix a small bug

In file sct_dmri_concat_bvecs.py. (Sorry for the inconvenience, I just discovered it after sending the pull request, you've been too fast.)

can we close it or does it still need to be merged?

Merged in commit #1b71d95. We can close it.


Python files etc. with encoding comment (PEP263) open wrong as UTF-8 always. "Stage selected ranges" false-uses UTF-8 even when enc changed

Steps to Reproduce:
Create Python file with encoding magic comment ( PEP263 ) in first or second line. E.g.
# -*- coding: latin_1 -*-
# test comment aouAOUäöüßàá

or :

# -*- coding: latin-1 -*-
...

# -*- coding: iso-8859-1 -*-
...

Open the file in VSCode => The encoding shown in status line (bottom right) is always wrong as UTF-8 and nonsense chars are displayed.  In practice this causes a great mix up - particularly when there are only few beyond ASCII chars and you don't notice it problem for long. I have many files (e.g. stuff migrated from Python 2 which had no UTF8 default, rather a LATIN-1 fall back) which do not use UFT-8 default encoding and have an encoding magic tag.
Then when the encoding is force-changed (click on UFT-8 in status line) via "Reopen with Encoding" and later selection-right-click "Stage selected ranges" is done (partial git add-ing) UTF-8 is somehow used always while feeding things to git - even when the right encoding is used otherwise (for file display, save etc.) . This causes all lines with beyond ASCII chars to be messed into the git staging area and so on ....
The same problem exists for other file types like Ruby which use a similar coding tag / magic comment ( coding[:=]\s*([-\w.]+)   in first 2 lines ).  Note that this kind of encoding defintion in text / script files is used rather universally - comparable to the XML encoding tag.
(Using the Python extension does not improve that. Anyway this issue is too basic and belongs to the editor core)
Hints for implementation:

`regex_encoding_cmnt = "coding[:=]\s*([-\w.]+)"
See how SciTE, notepad++  detect such encoding definitions from encoding magic comments/tags (and XML tag. and even HTML content type tag meanwhile I think)

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.53.2
OS Version: Win10 up-to-date/ver2004

VS Code uses the chardet library, and @bpasero already requested support for this there
https://github.com/aadsm/jschardet/issues/41

VS Code uses the chardet library, and @bpasero already requested support for this there
aadsm/jschardet#41

I think, no matter whats added to jschardet or not, it is and was completely odd to even try to use jschardet in that context from the beginning:
jschardet is a (poor) port of Python's chardet. And not even the Python library will look for PEP263 or XML style tags - because that is not the purpose of these libs. They are specifically designed for human natural language text "soups" - like mp3 ID3 song texts which motivated jschardet. It is not for programming language source code with precise definitions for the handling of encodings: When there is a wrong encoding definition, it is deterministically the programmers fault. Python chardet will likely never parse source code tags (off-topic), and the author of jschardet seems to not be convinced at all - and if he would, that would deviate from the intention of "Port of python's chardet" and the nature of the lib.  So this will likely never come.
Also the jschardet does not guess UTF-8 when I check my example "latin-1" scripts, but some "ISO-8859-2" or "windows-1250 (Hungarian)" when the text contains a few ISO-8859-1/latin-1 (German) letters. Because it does not support ISO-8859-1.  It has only a very small subset of Python's chardet. And the guess would be very weak anyway with typically only few such chars.
Thus VS Code does not just use that output e.g. "ISO-8859-2" of jschardet (because of the low probability?), but probably uses the UTF-8  Python 3 default - because of ".py" ..
So think there is no better option, than to detect those 2 or 3 wide spread tag variants - with high (or only) priority before using any text-based guesser. Anyway I think there is no good reason at all to use a text-based guesser like jschardet in addition on source code. Lottery and deterministic compilers don't fit together.
I think the issue should be re-opened or be addressed somehow.
See also:
https://github.com/microsoft/vscode/issues/36230#issuecomment-483259489
(and the other comments in #36230)


Italics and bold remove link syntax highlighting in markdown

It would be nice if __ and ** would be colored, too, much like []() or >.

Please reopen if you still see this with our new markdown extension.

Verified, but created the related issue https://github.com/Microsoft/vscode/issues/7785

Still occurring, just more obvious now:

The style overriding link styling is:
.monaco-editor.vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.italic {
    font-style: italic;
    color: rgba(86, 156, 214, 1);
}

I actually remade this issue and put a PR out so closing in favor of #10984


Added basic operations on notification templates

Implemented:

List all templates
Get template by id
Delete template
Update template status

@unicodeveloper I fixed your remarks, hope it's more readable now

@unicodeveloper I fixed your remarks, hope it's more readable now

Yes, this is good!

Think we can merge it if no other comments. @wh1337 said before that failing tests are ok for now, bc it's a ci problem

e59bd17abbed6c194f188f9987331864

Can you attach a screenshot of passing tests locally whilst we fix the CI issue?

LGTM ⭐

Please update the readme @Badabum

Thanks @wh1337 please this has to go in today. 🙏🏿


JSON data source for Marker and "category" from JSON

problem connecting JSON as source for marker and make category of marker using a attribute from JSON.....any help or tips

This is not supported feature. Every single options must be passed as an attribute for HTML readability.
If you want to set a marker options as javascript, please use marker.setOptions(JSON)


Performance profile: Instruments vs Xcode

As noticed in (#109), the measurements of Instruments' time profiler and Xcode's xctestplan completely are different. It's frustrating, because I cannot use the former to see why the latter takes so long. Ideally, I would just measure some real-world use case, but I haven't gotten around to replacing my arbitrary precision solution yet. As a quick and illustrative example, the following takes 8.18 seconds with Instruments' time profiler but 54.5 seconds with Xcode's xctestplan:
func testDividingFullWidth() {
    var lhs = _blackHoleIdentity((UInt256.max))
    var rhs = _blackHoleIdentity((UInt256.max, UInt256.max))

    for _ in 0 ..< 100_000_000 {
        _blackHole(lhs.dividingFullWidth(rhs))
        _blackHoleInoutIdentity(&lhs)
        _blackHoleInoutIdentity(&rhs)
    }
}

I'm hoping Instruments is correct on this one, not so much because it's faster, but because the xctestplan measurements make pointers seem unusable. Like, single digit addition (pointer-based) appears somewhat faster than full-width addition in Instruments' time profiler, but 2x slower in the measurements of Xcode's xctestplan.

// *.xcscheme 🚀

LastUpgradeVersion = "1400"
version = "1.3"
...
buildConfiguration = "Release"

// *.xcscheme 🐌

LastUpgradeVersion = "1430"
version = "1.7
...
buildConfiguration = "Release"

Hm. It seems unrelated to xctestplan. I now have a plan that's fast, but I don't know what's different about it 😵💫

So, after seven eternities, I found the xctestplan option that matters:

Does anyone know what it does? Leaving it "on" leads to garbage performance.

I found this excerpt from  at developer.apple.com:

Note: Code coverage data collection incurs a performance penalty. Whether the penalty is significant or not, it should affect execution of the code in a linear fashion so performance results remain comparable from test run to test run when it is enabled. However, you should consider whether to have code coverage enabled when you are critically evaluating the performance of routines in your tests.

Hm, the mystery is solved. I find it strange, however, that it was enabled by default. I've not had that problem before.


dynamodb UpdateItemAsync's outcome returns INCOMPLETE_SIGNATURE

Confirm by changing [ ] to [x] below:

[x] I've gone though Developer Guide and API reference
[x] I've searched for previous similar issues and didn't find any solution

Platform/OS/Hardware/Device
What are you running the sdk on?
macOS 10.14.5.
Describe the question
My test program uses (AWS SDK for C++ with latest version) to update items from dynamodb local.
UpdateItemAsync gets Aws::DynamoDB::DynamoDBErrors::INCOMPLETE_SIGNATURE error, but get nothing from UpdateItemOutcome.
But UpdateItem works fine for me.
My test codes:
void UpdateItemOutcomeReceived(const Aws::DynamoDB::DynamoDBClient* sender,
                               const Aws::DynamoDB::Model::UpdateItemRequest& request,
                               const Aws::DynamoDB::Model::UpdateItemOutcome& outcome,
                               const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context)
{
    AWS_UNREFERENCED_PARAM(sender);
    AWS_UNREFERENCED_PARAM(request);
    AWS_UNREFERENCED_PARAM(context);

    if (!outcome.IsSuccess()) {
      std::cout << "UpdateItem failed. " << std::endl;
      std::cout << "ExceptionName: " << outcome.GetError().GetExceptionName() << std::endl;
      std::cout << "ShoudRetry: " << outcome.GetError().ShouldRetry() << std::endl;
      std::cout << "Message: " << outcome.GetError().GetMessage() << std::endl;

      // print `Aws::DynamoDB::DynamoDBErrors::INCOMPLETE_SIGNATURE`
      ErrorType(outcome.GetError().GetErrorType());
      return;
    }
    std::cout << "Item was updated" << std::endl;
}

int main(int argc, char** argv)
{
    const std::string USAGE = "\n"
        "Usage:\n"
        "    update_item <tableName> <partitionKey> <rangeKey> \n\n"
        "Where:\n"
        "    tableName       - name of the table to put the item in\n"
        "    partitionKey    - the key value to update\n"
        "    rangeKey        - attribute=updated value\n\n"
        "Examples:\n"
        "    update_item bucket_stats liulan .dir.bucket1.1\n";

    if (argc < 4)
    {
        std::cout << USAGE;
        return 1;
    }

    Aws::SDKOptions options;
    options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Trace;
    Aws::InitAPI(options);
    {
        const Aws::String tableName(argv[1]);
        const Aws::String uid(argv[2]);
        const Aws::String bi(argv[3]);

        Aws::Client::ClientConfiguration clientConfig;
        clientConfig.endpointOverride = "http://localhost:8000";
        clientConfig.scheme = Aws::Http::Scheme::HTTP;
        clientConfig.maxConnections = 256;
        Aws::DynamoDB::DynamoDBClient dynamoClient(clientConfig);

        // *** Define UpdateItem request arguments
        // Define TableName argument
        Aws::DynamoDB::Model::UpdateItemRequest request;

        // using String = Aws::String;
        // using Aws::DynamoDB::Model::AttributeValue;
        using Aws::String;
        using Aws::DynamoDB::Model::AttributeValue;

        Aws::Map<Aws::String, AttributeValue> keyMap {
          { "uid", AttributeValue(uid) },
          { "bi", AttributeValue(bi) },
        };

        // Construct the SET update expression argument
        String update_expression("SET "
          "sc.#sc.#total   = sc.#sc.#total + :size, "
          "sc.#sc.#total_r = sc.#sc.#total_r + :size, "
          "sc.#sc.#entries = sc.#sc.#entries + :num, "
          "sc.#sc.#actual  = sc.#sc.#actual + :size"
        );
        std::cout << update_expression << std::endl;

        Aws::Map<String, String> expressionAttributeNames;
        expressionAttributeNames["#sc"]      = "standard";
        expressionAttributeNames["#total"]   = "total_size";
        expressionAttributeNames["#total_r"] = "total_size_rounded";
        expressionAttributeNames["#entries"] = "num_entries";
        expressionAttributeNames["#actual"]  = "actual_size";

        // Construct attribute value argument
        Aws::Map<String, AttributeValue> expressionAttributeValues {
          { ":size", AttributeValue().SetN(1024) },
          { ":num", AttributeValue().SetN(1) },
        };

        request.WithTableName(tableName)
               .WithKey(keyMap)
               .WithExpressionAttributeNames(expressionAttributeNames)
               .WithExpressionAttributeValues(expressionAttributeValues)
               .WithUpdateExpression(update_expression);

        // // Update the item works fine.
        // const Aws::DynamoDB::Model::UpdateItemOutcome& result = dynamoClient.UpdateItem(request);
        // if (!result.IsSuccess()) {
        //   std::cout << result.GetError().GetMessage() << std::endl;
        //   return 1;
        // } else {
        //   std::cout << "Item was updated" << std::endl;
        // }

        std::function<void (const Aws::DynamoDB::DynamoDBClient *,
                      const Aws::DynamoDB::Model::UpdateItemRequest&,
                      const Aws::DynamoDB::Model::UpdateItemOutcome&,
                      const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)> updateItemHandler = UpdateItemOutcomeReceived;
        // UpdateItemAsync get error type: Aws::DynamoDB::DynamoDBErrors::INCOMPLETE_SIGNATURE
        dynamoClient.UpdateItemAsync(request, updateItemHandler);

    }
    Aws::ShutdownAPI(options);
    return 0;
}

Logs/output
➜  ./update_item_async bucket_stats liulan .dir.bucket1.1
SET sc.#sc.#total   = sc.#sc.#total + :size, sc.#sc.#total_r = sc.#sc.#total_r + :size, sc.#sc.#entries = sc.#sc.#entries + :num, sc.#sc.#actual  = sc.#sc.#actual + :size
[1]    97044 segmentation fault  ./update_item_async bucket_stats liulan .dir.bucket1.1

➜  ./update_item_async bucket_stats liulan .dir.bucket1.1
SET sc.#sc.#total   = sc.#sc.#total + :size, sc.#sc.#total_r = sc.#sc.#total_r + :size, sc.#sc.#entries = sc.#sc.#entries + :num, sc.#sc.#actual  = sc.#sc.#actual + :size
UpdateItem failed.
ExceptionName:
ShoudRetry: 0
Message:
The request signature does not conform to AWS standards.

sorry for the lack of response, I'm setting up an environment to properly test this, as a quick question though, does this also happen on non-local dynamodb ??

I provide a compliable program, so you can reproduce the problem.
https://gist.github.com/Rjerk/837615a8a0d82a7a7c9bc99343f2e4ee

Hi Rjerk,
I just ran your code and it succeeds for me... kind of lost on trying to reproduce this... Could you get the log level to debug and share a sanitized version of your logs? just add this line before the initApi(options):
options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Debug;
That might give us a better idea on what's happening.

Hi Rjerk,
I just ran your code and it succeeds for me... kind of lost on trying to reproduce this... Could you get the log level to debug and share a sanitized version of your logs? just add this line before the initApi(options):
options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Debug;
That might give us a better idea on what's happening.

@KaibaLopez  Did you uncomment these lines for using UpdateItemAsync?
        // // UpdateItemAsync failed
        // auto updateItemHandler = std::bind(&UpdateItemOutcomeReceived,
        //                            std::placeholders::_1, std::placeholders::_2,
        //                            std::placeholders::_3, std::placeholders::_4);
        // dynamoClient.UpdateItemAsync(req3, updateItemHandler);

My output:
➜  tmp ./test
[1]    95760 segmentation fault  ./test

➜  tmp ./test
UpdateItem failed.
ExceptionName:
ShoudRetry: 0
Message:
The request signature does not conform to AWS standards.

Here's my log:
[INFO] 2020-07-14 01:15:59.895 Aws_Init_Cleanup [0x11271e5c0] Initiate AWS SDK for C++ with Version:1.7.364
[DEBUG] 2020-07-14 01:15:59.896 FileSystemUtils [0x11271e5c0] Environment value for variable HOME is /Users/rjerk
[DEBUG] 2020-07-14 01:15:59.897 FileSystemUtils [0x11271e5c0] Home directory is missing the final / appending one to normalize
[DEBUG] 2020-07-14 01:15:59.897 FileSystemUtils [0x11271e5c0] Final Home Directory is /Users/rjerk/
[INFO] 2020-07-14 01:15:59.897 Aws::Config::AWSConfigFileProfileConfigLoader [0x11271e5c0] Initializing config loader against fileName /Users/rjerk/.aws/credentials and using profilePrefix = 0
[DEBUG] 2020-07-14 01:15:59.897 FileSystemUtils [0x11271e5c0] Environment value for variable HOME is /Users/rjerk
[DEBUG] 2020-07-14 01:15:59.897 FileSystemUtils [0x11271e5c0] Home directory is missing the final / appending one to normalize
[DEBUG] 2020-07-14 01:15:59.897 FileSystemUtils [0x11271e5c0] Final Home Directory is /Users/rjerk/
[INFO] 2020-07-14 01:15:59.897 Aws::Config::AWSConfigFileProfileConfigLoader [0x11271e5c0] Initializing config loader against fileName /Users/rjerk/.aws/config and using profilePrefix = 1
[DEBUG] 2020-07-14 01:15:59.897 FileSystemUtils [0x11271e5c0] Environment value for variable HOME is /Users/rjerk
[DEBUG] 2020-07-14 01:15:59.897 FileSystemUtils [0x11271e5c0] Home directory is missing the final / appending one to normalize
[DEBUG] 2020-07-14 01:15:59.897 FileSystemUtils [0x11271e5c0] Final Home Directory is /Users/rjerk/
[DEBUG] 2020-07-14 01:15:59.897 Aws::Config::ConfigFileProfileFSM [0x11271e5c0] found profile default
[DEBUG] 2020-07-14 01:15:59.898 Aws::Config::ConfigFileProfileFSM [0x11271e5c0] found access key fakeMyKeyId
[INFO] 2020-07-14 01:15:59.898 Aws::Config::AWSProfileConfigLoader [0x11271e5c0] Successfully reloaded configuration.
[DEBUG] 2020-07-14 01:15:59.898 FileSystemUtils [0x11271e5c0] Environment value for variable HOME is /Users/rjerk
[DEBUG] 2020-07-14 01:15:59.898 FileSystemUtils [0x11271e5c0] Home directory is missing the final / appending one to normalize
[DEBUG] 2020-07-14 01:15:59.898 FileSystemUtils [0x11271e5c0] Final Home Directory is /Users/rjerk/
[DEBUG] 2020-07-14 01:15:59.898 Aws::Config::ConfigFileProfileFSM [0x11271e5c0] found profile default
[DEBUG] 2020-07-14 01:15:59.898 Aws::Config::ConfigFileProfileFSM [0x11271e5c0] found region us
[INFO] 2020-07-14 01:15:59.898 Aws::Config::AWSProfileConfigLoader [0x11271e5c0] Successfully reloaded configuration.
[INFO] 2020-07-14 01:15:59.903 CurlHttpClient [0x11271e5c0] Initializing Curl library with version: 7.54.0, ssl version: LibreSSL/2.6.5
[DEBUG] 2020-07-14 01:15:59.911 ClientConfiguration [0x11271e5c0] ClientConfiguration will use SDK Auto Resolved profile: [default] if not specified by users.
[WARN] 2020-07-14 01:15:59.911 ClientConfiguration [0x11271e5c0] Retry Strategy will use the default max attempts.
[DEBUG] 2020-07-14 01:15:59.912 FileSystemUtils [0x11271e5c0] Environment value for variable HOME is /Users/rjerk
[DEBUG] 2020-07-14 01:15:59.912 FileSystemUtils [0x11271e5c0] Home directory is missing the final / appending one to normalize
[DEBUG] 2020-07-14 01:15:59.912 FileSystemUtils [0x11271e5c0] Final Home Directory is /Users/rjerk/
[INFO] 2020-07-14 01:15:59.912 Aws::Config::AWSConfigFileProfileConfigLoader [0x11271e5c0] Initializing config loader against fileName /Users/rjerk/.aws/credentials and using profilePrefix = 0
[DEBUG] 2020-07-14 01:15:59.912 FileSystemUtils [0x11271e5c0] Environment value for variable HOME is /Users/rjerk
[DEBUG] 2020-07-14 01:15:59.912 FileSystemUtils [0x11271e5c0] Home directory is missing the final / appending one to normalize
[DEBUG] 2020-07-14 01:15:59.912 FileSystemUtils [0x11271e5c0] Final Home Directory is /Users/rjerk/
[DEBUG] 2020-07-14 01:15:59.912 FileSystemUtils [0x11271e5c0] Environment value for variable HOME is /Users/rjerk
[DEBUG] 2020-07-14 01:15:59.912 FileSystemUtils [0x11271e5c0] Home directory is missing the final / appending one to normalize
[DEBUG] 2020-07-14 01:15:59.912 FileSystemUtils [0x11271e5c0] Final Home Directory is /Users/rjerk/
[INFO] 2020-07-14 01:15:59.912 ProfileConfigFileAWSCredentialsProvider [0x11271e5c0] Setting provider to read credentials from /Users/rjerk/.aws/credentials for credentials file and /Users/rjerk/.aws/config for the config file , for use with profile default
[INFO] 2020-07-14 01:15:59.912 ProcessCredentialsProvider [0x11271e5c0] Setting process credentials provider to read config from default
[WARN] 2020-07-14 01:15:59.912 STSAssumeRoleWithWebIdentityCredentialsProvider [0x11271e5c0] Token file must be specified to use STS AssumeRole web identity creds provider.
[DEBUG] 2020-07-14 01:15:59.912 DefaultAWSCredentialsProviderChain [0x11271e5c0] The environment variable value AWS_CONTAINER_CREDENTIALS_RELATIVE_URI is
[DEBUG] 2020-07-14 01:15:59.912 DefaultAWSCredentialsProviderChain [0x11271e5c0] The environment variable value AWS_CONTAINER_CREDENTIALS_FULL_URI is
[DEBUG] 2020-07-14 01:15:59.912 DefaultAWSCredentialsProviderChain [0x11271e5c0] The environment variable value AWS_EC2_METADATA_DISABLED is
[DEBUG] 2020-07-14 01:15:59.916 ClientConfiguration [0x11271e5c0] ClientConfiguration will use SDK Auto Resolved profile: [default] if not specified by users.
[WARN] 2020-07-14 01:15:59.916 ClientConfiguration [0x11271e5c0] Retry Strategy will use the default max attempts.
[INFO] 2020-07-14 01:15:59.917 EC2MetadataClient [0x11271e5c0] Creating AWSHttpResourceClient with max connections 2 and scheme http
[INFO] 2020-07-14 01:15:59.917 CurlHandleContainer [0x11271e5c0] Initializing CurlHandleContainer with size 2
[INFO] 2020-07-14 01:15:59.921 InstanceProfileCredentialsProvider [0x11271e5c0] Creating Instance with default EC2MetadataClient and refresh rate 300000
[INFO] 2020-07-14 01:15:59.921 DefaultAWSCredentialsProviderChain [0x11271e5c0] Added EC2 metadata service credentials provider to the provider chain.
[DEBUG] 2020-07-14 01:15:59.926 Aws::Config::ConfigFileProfileFSM [0x11271e5c0] found profile default
[DEBUG] 2020-07-14 01:15:59.926 Aws::Config::ConfigFileProfileFSM [0x11271e5c0] found access key fakeMyKeyId
[INFO] 2020-07-14 01:15:59.926 Aws::Config::AWSProfileConfigLoader [0x11271e5c0] Successfully reloaded configuration.
[INFO] 2020-07-14 01:15:59.934 CurlHandleContainer [0x11271e5c0] Initializing CurlHandleContainer with size 256
[INFO] 2020-07-14 01:15:59.971 CurlHandleContainer [0x11271e5c0] Cleaning up CurlHandleContainer.
[INFO] 2020-07-14 01:15:59.971 CurlHandleContainer [0x11271e5c0] Cleaning up CurlHandleContainer.

Oh ok I see the problem, my bad!
You have a segmentation fault because the async method is multithreaded, so you need a mutex to lock them to make sure the processes ends before you try to do anything else with them, there's a lot of ways for this but for example on your code you could add:
pthread_cond_t service_cond = PTHREAD_COND_INITIALIZER;
pthread_mutex_t service_mutex = PTHREAD_MUTEX_INITIALIZER;

void UpdateItemOutcomeReceived(const Aws::DynamoDB::DynamoDBClient* sender,
                               const Aws::DynamoDB::Model::UpdateItemRequest& request,
                               const Aws::DynamoDB::Model::UpdateItemOutcome& outcome,
                               const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context)
{
....
std::cout << "Item was updated" << std::endl;
    pthread_cond_signal(&service_cond);

}
...
main(){
....
        pthread_mutex_lock(&service_mutex);
        dynamoClient.UpdateItemAsync(req3, updateItemHandler);
        pthread_cond_wait(&service_cond, &service_mutex);
        pthread_mutex_unlock(&service_mutex);
}Aws::ShutdownAPI(options);
}

Let me know if this works for you.

@KaibaLopez
It works!
So all async methods such as ListTablesAsync/GetItemAsync, they all need mutex, right?

Yes, at least as far as I know, to be honest the project grew organically so there might be exceptions somewhere and if you happen to find one please report it, but yea I believe all of them need them.

Yes, at least as far as I know, to be honest the project grew organically so there might be exceptions somewhere and if you happen to find one please report it, but yea I believe all of them need them.

All my questions are settled, thanks!


docs: How to deploy KubeCF with Kind

This document contains basic instructions on how to deploy KubeCF with Kind and it should be used only for evaluation purposes.

Closing in favor of #5


Fixes to apiserver for subresources and naming

@derekwaynecarr @liggitt review please

@liggitt got here first, but I agree with his comments and otherwise LGTM

cc @lavalamp

Updated with comments, and added one more which correctly allows POST /api/v1beta3/events to be called (so that an event can be posted without a namespace).


EverythingPowerToys: Add version 0.78.0

[X] I have read the Contributing Guide.

/verify

package request https://github.com/ScoopInstaller/Extras/issues/12916

/verify

@aliesbelik is there anything else that I need to do to push the approval along?

/verify


[ASCII-2448] Add e2e test for IMDSv2 transition

What does this PR do?
This PR aims to add e2e tests for IMDSv2 transition, it tests both cases for IMDSv1 enable or disable.
Motivation
Ensure no regression happens on hostname resolution for IMDSv2 transition
Describe how to test/QA your changes
Possible Drawbacks / Trade-offs
Additional Notes

/merge


zitadel: init at 2.36.3; nixos/zitadel: init

Description of changes
ZITADEL is a identity and access management platform. This PR creates a Nix derivation for it, as well as a NixOS module for running it as a service.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[x] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

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

1 package blacklisted:

nixos-install-tools

1 package built:

zitadel

Anything missing on this? I'm eager to try it out :+1:


Inconsistent representation of ssh_authorized_keys by provider and Matchbox

I've detected that Matchbox expects that ssh_authorized_keys metadata as a list, while terraform-provider-matchbox handles it as a string.
It would be nice to be able to handle multiple ssh_keys as Matchbox does.

Dup #19


I want to Contribute to this Project

Hey I am preparing for GSOC so I want to contribute to this project.
I am comfortable in HTML/CSS and have a working knowledge of JavaScript

Hey! I am Govind I am beginner at open source and I want to contribute to this project. Please help me to get started.


Issue w/ fill_mean in ReceptiveField

From @nbara

Isn't there a small bug Line 414 of receptive_field.py ? delayed[...] = fill_value is over-indented isn't it? Meaning the fill_value is effectively only applied when epoch_axis is not None?

I took a look and think this is true...we should fix this!

Yes feel free to make a PR w/test (true TDD!)

thanks @nbara for pointing this out!


Conflict with Latex Suite Plugin

Describe the bug
Open LaTeX Suite with Copilot plugin at the same time, and when you press the Tab key again it will not auto-complete but indent.
To Reproduce
Steps to reproduce the behavior:

Installing the LaTeX Suite plug-in
Press Tab while displaying Copilot's complement again

This plugin works FANTASTIC and I hope you can fix this!

Hi @ProudBenzene, thanks for using the plugin!
I fixed the issue, you can update the plugin to version 1.0.1.
Here's a screencast of using this plugin with the LaTeX Suite plugin activated at the same time after the update :
https://github.com/Pierrad/obsidian-github-copilot/assets/32339081/37c43c80-5011-4f3d-a495-cd7b470247ed
Please tell me if this solves your issue!

I didn't encounter any problems in testing the new version, thanks for the prompt fix!🥳


fix(form-field,select): handle form field controls inside toolbar

Adds special handling for the cases where a form field is placed inside a toolbar.
Fixes #10622.

bumping to minor since this could break people's UIs, I don't expect it to affect most poeple though


Response is not passed to the request after Validator returns false

As the title states I have a top-level validator which tests each response against an error code. If it fails I want to read a message from the response and display it, but the response is not passed back to the callback.
My Code:
Bridge.client().config().validators(new ResponseValidator() {
            @Override
            public boolean validate(@NonNull Response response) throws Exception {
                return response.asJsonObject().getInt("error") == 0;
            }

            @NonNull
            @Override
            public String id() {
                return "default-validator";
            }
        });

My Request:
 Bridge.client().get("someURL").request(new Callback() {
            @Override
            public void response(Request request, Response response, BridgeException e) {
                if(e == null){
                   //Do something
                }else{
                    switch(e.reason()){
                        case BridgeException.REASON_RESPONSE_VALIDATOR_FALSE:
                            try {
                                Toast.makeText(getActivity(), "A problem occured:" + " " + response.asJsonObject().getString("msg"), Toast.LENGTH_LONG).show(); //Nullpointer here
                            } catch (JSONException | BridgeException e1) {
                                Toast.makeText(getActivity(), "A problem occured. Please try again.", Toast.LENGTH_LONG).show();
                            }
                            break;
                    }
                 }

            }
        });

Something wrong with my ocde or an  library-issue?

That means your validator method returned false. Return true to indicate success.

Yes, sure. I return false if the JSONObject I receive has a field error with 1. (All responses I get from my server have that in common) Isn't that what the Validator is for? If it fails (For example: Wrong Password) and the validator returns false I want to show the user why it failed and that info is in the field msg, which I can't access because the Response is not passed back.

You can throw an Exception within the validator method and the message will be passed to your response.

Ahh yes thank you, didn't think of that.
I don't want to annoy you, but why did you make the design decision to not pass back the response, if the validator returned false? I think there are some use-cases (like mine) where it would be helpful.

You can still get the response from the BridgeException you get when the response is invalid or unsuccessful. You can get the Request too.
BridgeException e = // ...
if (e.reason() == BridgeException.REASON_RESPONSE_VALIDATOR_FALSE) {
        // Validator returned false, REASON_RESPONSE_VALIDATOR_ERROR
        // can be used for throwing an Exception inside the validator.
        String validatorId = e.validatorId();
        Response response = e.response();
        Request request = e.request();
}

Okay, thank you! Is this documented in the README? If not, maybe add it? :)

It is: https://github.com/afollestad/bridge#error-handling

And https://github.com/afollestad/bridge#validators

Okay, thank you again. I should read everything :D


Release winit 0.15.0

I was originally planning on making a 0.14.1 that would just have some bug fixes in it, but overhauling keyboard handling on macOS resulted in a breaking API change, and while waiting for people to test that PR I ended up adding some other stuff... so, yeah, this is a full-size release now.
(I'm going to relax now. Hopefully no one reports any critical bugs in the next few days.)

Two blockers so far: https://github.com/tomaka/winit/issues/507#issuecomment-390541724 https://github.com/tomaka/winit/pull/518#issuecomment-390496023


Update data_stream_api.md, correct example results

In section Converting between DataStream and Table, the comment at the end of the code sample showing what the program should print is incorrect. Results of the program are uppercased.
A copy/paste from my terminal after running the sample verbatim:
5> +I[BOB]
4> +I[ALICE]
6> +I[JOHN]

What is the purpose of the change
To reduce confusion/increase clarity among readers of the docs.
Brief change log

Update results in-comment to match results as output from example program

Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
(no)

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? no

@rmetzger I updated the description right about the time you added that tag. Let me know if there are more steps I should take to clarify. Should be 100% self-explanatory in the 6-line diff.


feat(ssr): always define __dirname and __filename

Description
Fixes #6899 by injecting __dirname and __filename as arguments to the initModule function.
Additional context
I couldn't figure out where to add a test case for this. None of the SSR playgrounds seemed appropriate. I'll be happy to add a test case if reviewers can point me in the right direction.

What is the purpose of this pull request?

[x] Bug fix
[ ] New Feature
[ ] Documentation update
[ ] Other

Before submitting the PR, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Read the Pull Request Guidelines and follow the Commit Convention.
[x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[ ] Ideally, include relevant tests that fail without this PR but pass with it.

Personally, I suggest you add a dependency that uses __dirname and __filename in the ssr-deps playground for testing.

@ygj6 Dependencies are not processed in the same way though. I could mark it as noExternal but I feel it's still a different case.

These variables are not meant to be defined in ES module scope

@aleclarson I'm aware. But in the present situation we have something that works in production and fails in development when targeting CJS (which is the default). Should I change the code to not inject them when the target is ESM or forget about it and make it into a plugin?

I agree with Alec too. Vite supports ESM in SSR dev only and it would be odd to polyfill this by default. The default SSR output now is also ESM so in most case in the future this shouldn't be a problem.
Re dev/prod inconsistency, I think it's more important for prod to match dev, instead of dev to match prod, since we spend the larger amount of time in dev.

@bluwy This was before ESM became the default output format. Now I agree a plugin is probably the better place to provide this functionality. It may still be useful to inject it when targeting CJS but I understand if the consensus is to just skip it.

I think we should avoid more complexity in core. Thanks for the PR @cyco130, I also agree that this is now better as a plugin. Let's close it for now, at least until there is more demand.


Enable ArcGIS Connector

Hello,
First off thanks for making this repo. My question is about enabling the ability to add ArcIGIS server endpoints as data sources. It seems this is possible with carto but not entirely sure the steps to enable it with this repo. I am currently getting Unsupported/Unrecognized file type (1002) when attempting to add the ArcGIS services, so I assume it is disabled by default. Any help is much appreciated, thanks.

Yes, it is disabled in the config file arcgis_enabled: false at https://github.com/sverhoeven/docker-cartodb/blob/master/config/app_config.yml#L411 .
You could

Fork this repo
Edit config file so it says arcgis_enabled: true
Build the Docker image
Run Docker image
Test the Arcgis data source

When successful I will accept a PR that enables argis by default.

great, thanks


Change password hint text wording

Trello: https://trello.com/c/TieWrBG5/44-password-reset-link-from-logged-in-session
Following a requested content change on the password change form to remove hint text - previously was Repeat password used above. I've updated the password reset form where this was copied from as well:

The functional tests don't check the hint text (neither do the unit tests!). Checked with @JaneEastwood and @constancecerf that the hint text should be removed entirely on both password change and password reset forms.


When creating an agent pod, transient error is not retried

Pre-requisites

[X] I have double-checked my configuration
[X] I have tested with the :latest image tag (i.e. quay.io/argoproj/workflow-controller:latest) and can confirm the issue still exists on :latest. If not, I have explained why, in detail, in my description below.
[X] I have searched existing issues and could not find a match for this bug
[X] I'd like to contribute the fix myself (see contributing guide)

What happened? What did you expect to happen?
What happened ？
When I use the HTTP template, I find it pending all the time.

Then I saw that the workflow status was error, and encountered a transient error.

error is : failed to create Agent pod. Reason: Operation cannot be fulfilled on resourcequotas "xxxx": the object has been modified; please apply your changes to the latest version and try again
What did you expect to happen?
I hope to encounter transient errors that can be retried.
Version(s)
v3.4.17
Paste a minimal workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
None

Logs from the workflow controller
None

Logs from in your workflow's wait container
None

Is anyone paying attention to this issue?

Is it possible to have a stable and reproducible workflow?

Is it possible to have a stable and reproducible workflow?

ResourceQuota conflicts are not easy to reproduce. I simulated another resourcequota shortage situation by modifying the requests value of the agent pod for reproduction and testing.

Change this value to an impossible value.
https://github.com/argoproj/argo-workflows/blob/0dfecd6e3a18c7bb884000e1e98d8305440d8d49/workflow/controller/agent.go#L180
Create and run an HTTP template

@shuangkun cc

okay


In Headings not text-align.

How to text-align an heading?
Whatever from h1 to h6 nothing to do with text-align:center, right, left or justify.
It works with p tag.
How to?

This is a bug, we will fix it in the next release :)
You can also configure you're heading definition in your custom template so that all h1 or hx are aligned in a particular way.

Insert <xsl:call-template name="text-alignment" /> to base.xslt line 95 after

it is still not fixed


Detected vulnerable npm dependencies

Describe the bug
Current tensormap client project is not having the latest npm modules. This enforces a threat on security side as there are vulnerable npm packages as dependencies.
To Reproduce
Steps to reproduce the behavior:
Navigate to client project and run 'npm audit'
Expected behavior
Should list number of vulnerabilities along with the vulnerable packages.
Screenshots

Following are the identified vulnerable packages.
@adobe/css-tools  <=4.3.1
Severity: moderate
@babel/traverse  <7.23.2
Severity: critical
axios  0.8.1 - 0.27.2
Severity: moderate
follow-redirects  <1.15.4
Severity: moderate
nth-check  <2.0.1
Severity: high
postcss  <8.4.31
Severity: moderate
semver  6.0.0 - 6.3.0 || 7.0.0 - 7.5.1
Severity: moderate
tough-cookie  <4.1.3
Severity: moderate
word-wrap  <1.2.4
Severity: moderate
Desktop (please complete the following information):

OS: Linux
Browser: Chrome

I am working on a fix for this issue.

@sonodew hey, figured the main issue was react-scripts, so I have moved to Vite, there are no dependency issues anymore, look into my PR!

Hi @Teak-Rosewood, there is no issue with react-script. We can move that into dev dependencies and check the audit logs. react-scripts does have a false alarm on certain npm packages:ref -> git stackoverflow.
On the other hand, moving from react-script to vine needs full test suit on UI side to verify the UI will be rendered without any issue. Current code base does not have such test suit and I believe in that case using vine is not the right solution.

@sonodew create-react-app has since been deprecated, and considering the tests that have been currently made are quite basic, and a few dont work, I think it would be ideal to switch to vite or next, i am currently in the process of writing tests in vite, will be pushing some soon!

@Teak-Rosewood agree. In that case the PR should come along with those test cases since introducing vite or nextjs (if we do not rely on SSR we should go with vite) is a feature and not a solution for a existing issue in my opinion.


New icons and app support

Added icons for VSCodium, Bear notes and Drafts.
Also added Firefox nightly and Safari technology preview to the list of apps in data.js, using the pre-existing icons.

That's nice, thanks for these icons!


Add custom resource feature and more

AFAIK, Marathon only handles predefined resources (i.e. "cpus", "mem", "disk", "ports").  While this satisfies most of user's need, it may not suffcient for certain environments.
This branch adds several enhancements like:

ability to add custom resources on launching/updating apps
ability to handle heterogeneous resource matching (e.g. request ScalarResource for SetResource, etc.)
ability to use regular expression on SetResource matching,
ability to specify a simple conditional constraints on regular expression matching.

For the explanation, assume that we have only one mesos-slave with following resources:
ScalarResource("cpus", 10)
ScalarResource("mem", 100)
// "disk" refers to the shared storage, network attached, with large amount of space.
ScalarResource("disk", 10000)
// "gpu" referes to the graphic cards locally attached.
SetResource("gpu", Set("gpu-1", "gpu-2", "gpu-3", "gpu-4"))
// "ephermeral" refers to the local storage, for ephemeal purpose.
SetResource("ephemeral", Set("sdd-10", "hdd-100", "sdd-100", "hdd-80"))

Now, if the application needs exactly "gpu-1" and "gpu-3", the user can POST /v2/apps using
{
    "id": "/product/service/my-app",
    "cmd": "env && sleep 300",
    "args": ["/bin/sh", "-c", "env && sleep 300"],
    "resources": [ { "name": "gpu",
                     "value": [ "gpu-1", "gpu-3" ] } ],
    ...
}

However, if the user just want to use two GPUs, then he or she can use following JSON request:
{
    "id": ...,
    "cmd": ...,
    "resources": [ { "name": "gpu",
                     "value": 2 } ],
    ...
}

To match SetResource request to SetResource offer, you may use a regular expression pattern.   A string in SetResource request may have the form "#N;CONSTRAINT#PATTERN", where N is the number of resource requesting, CONSTRAINT is an optional simple Java-like expression to restrict the matching, and PATTERN is the regular expression to match against the offer.
Assume that the app needs two hdds from "ephemeral" resource.  Then the user may specify "#2#hdd-.*" like this:
{
    "id": ...,
    "cmd": ...,
    "resources": [ { "name": "ephemeral",
                     "value": [ "#2#hdd-.*" ] } ],
     ...
}

Assume that the app needs two ephermerals, and the user does not care whether they are hdds or sdds, but the user wants them larger than 99.  Then the user may specify "#2;m[1]>99#[sh]dd-(.*)" like this:
{
    "id": ...,
    "cmd": ...,
    "resources": [ { "name": "ephemeral",
                     "value": [ "#2;m[1]>99#[sh]dd-(.*)" ] } ],
     ...
}

Note that there are a few restrictions on the CONSTRAINT:

the conditional expression can only deal with number(double) and boolean.
If the regular expression has subgroups, you may refer them as m[1], m[2], and so on.
It provides most conditional expression and comparison operators such as >, <, >=, <=, ==, !=, &&, || in addition to +, -, *, /, ().

Thank you,

Hi @cinsk,
I am interested in the feature of custom resource types. I have a couple of questions:
1- Is the feature working or still in development?
2- Are there any news about merging this pull request into Marathon?
3- You added multiple features in this pull request. Is the first commit the only one related to custom resource types? Or are the other commits needed as well?
Thank you.

Hi, Ahmed Kaseb.
Answer of Q1:  In the marathon code base, this is working. (not fully tested though)
However, to support custom resource, we need more work.  This patch is a custom resource support on the scheduling-side (i.e. Marathon source tree).   We also need to implement/update executor-side (i.e. Mesos source tree).   In details, this handles custom resource matching in TaskBuilder class, then pass the allocated resource via an environment variable, AUX_RESOURCES. In the executor side (Mesos executor, or other custom executor), the executor should aware of this AUX_RESOURCES variable, and deal with it so that the task application can understand the custom resources.  Especially, if the task runs in docker container, the executor should build docker command-line with --device option.
Answer of Q2
Since our team uses our own custom framework/executor, we have not tested fully. However, if the Marathon team has interest to support this feature, we are willing to continue to work on this.  As I explained in above, we need custom resource support on executor side.  So are you going to use mesos executor as before?  In that case we need to patch mesos code base.
Answer of Q3
The whole 4 commit are needed (2 for major update, others are minors however.)

Thanks for this PR! We will try to look into this and see where it will fit.

Hi @cinsk, thank you very much for your PR. Unfortunately, we are not ready quite yet. See the discussion in https://github.com/mesosphere/marathon/issues/375. After agreeing on an API format, I would like to move ahead with a PR focussing on scalar custom resources only.


Even short distance landmark route uses too many nodes

This route is not even 600km but uses more than 1.5 mio nodes with the landmark algo even after #1376. Which is strange as a west-to-east route can get be much longer (>4000km) and still crosses Paris.
Again the splitting seems not to work.

A misconfiguration after the dropwizard deployment.


CogVideoX-Fun-V1.1-5b-InP -> Sizes of tensors must match except in dimension 2. Expected size 480 but got size 576 for tensor number 1 in the list.

Tried to load up the new CogVideoX-Fun-V1.1-5b-InP into CogVideoXFun Sample and got : Sizes of tensors must match except in dimension 2. Expected size 480 but got size 576 for tensor number 1 in the list.
The 480 was constant but the 576 varies based on how I set the Base Resolution. Did some quick math and to get it to equal 480 I needed value to be 640, so I altered nodes.py with the below and it worked. Not sure if pull request is needed to update list to add 640 or if I did something wrong with the existing nodes?
class CogVideoXFunSampler:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"pipeline": ("COGVIDEOPIPE",),
"positive": ("CONDITIONING", ),
"negative": ("CONDITIONING", ),
"video_length": ("INT", {"default": 49, "min": 5, "max": 49, "step": 4}),
"base_resolution": (
[
256,
320,
384,
448,
512,
640,  <-----------
768,
960,
1024,
], {"default": 768}
),

Can confirm this fixed my issue too. I thought this model can accept varied resolutions.


(PUP-8439) Change how Timespan and Timestamp interprets one parameter

Prior to this commit, a Timespan[x] and Timestamp[x] would be
interpreted as Timespan[x,x] and Timestamp[x,x] respectively. This
was inconsistent with Float and Integer whose interpretation of
one parameter is that the second parameter is unlimited.
This commit changes the Timespan and Timestamp data types so that
they intepret one single parameter the same way as Float and
Integer, i.e. T[x] == T[x, <unlimited>].

If this is a bugfix shouldn't this go to oldest maintained branch where it can be fixed?

@hlindberg, there's been other fixes to the Timespan and Timestamp data types that makes this change dirty (hard to track) if applied to maintenance and then merged to master. I would prefer if this got into master in and then, if we think there's a real need for it, gets backported to maintenance.


Add Alt field to InsertImage option from toolbar

Is there the possibility to add a field for Alt text here? I will not let the user to have access to the source code

No, not at the moment. This dialog needs more work, including the option to upload images. Happy to accept a PR for that.

It is available in v1.2.1.

Very nice editor. Thank you @petyosi 🙏🏻


Tagging matching

User Story
As a user, i want to be able to define how things are tagged.
We have different sources for tags:

On-premises
AWS
Azure
GCP

It is possible that the strategy to set up those tags is different , or even that different strategies have been used in different parts of the providers (i.e. Amazon use by deparment).
We need an UI that allows the user to define how the tags will be stored.
Impacts
Ex. API, UI, Docs
Role
Assumptions

UI Details
Acceptance Criteria

[ ]
[ ]

I don't believe this is for Release 1.
There isn't much in the way of details (investigation around tagging from different providers, implementation, acceptance criteria) ... Perhaps this should be in Aha! for the time being.

Closing this an copying it to Aha! until is ready to be introdcued


Turned RequestScheduler.prioritize off for karma tests

From here: https://github.com/AnalyticalGraphicsInc/cesium/issues/3241

Fix test failures when running with Karma (makes Travis CI fail): npm run test -- --exclude WebGL --browsers Electron --failTaskOnError --suppressPassed

This disables request prioritization since it interferes with tests that expect a request to go through immediately. I made a similar fix before for jasmine tests: https://github.com/AnalyticalGraphicsInc/cesium/blob/3d-tiles/Specs/spec-main.js#L61-L62
@pjcozzi @mramato is there a better alternative here?

I'm OK with this change since it's the simplest solution.  The only alternative would be to enabled/disable it in beforeAll/afterAll for the specific test suites that need it.
Travis is still failing because of WebGL tests that are not tagged correctly, but I assume you'll fix that in another PR?

The only test failing for me is Core/Recatangle can pack... and it's fine in master.

The only test failing for me is Core/Recatangle can pack... and it's fine in master.

The problem is you are running locally on a webgl enabled browser.  There are 8 test failures:
https://travis-ci.org/AnalyticalGraphicsInc/cesium/builds/149837649#L937
To reproduce locally, disable WebGL in Firefox and then run the Cesium non-webgl unit tests.

Rectangle.pack fails because the packable interface changed recently and that function now needs to return the packed array (i.e. the result parameter).  That will fix it.

To reproduce locally, disable WebGL in Firefox and then run the Cesium non-webgl unit tests.

Ah alright.

Rectangle.pack fails because the packable interface changed recently and that function now needs to return the packed array (i.e. the result parameter). That will fix it.

Rectangle.pack looks ok to me. I'm not sure why it's failing.
I fixed the other tests.

Thanks, I'll check out the Rectangle test and see if it's an easy fix.

@lilleyse please cherry pick this for #3476.  Also merge master into that branch.


Added a Heroku button

Added a Heroku button for one-click deployment and the necessary Procfile and app.json file descriptors

I created a Heroku account to test the deployment button. But it asked my credit card details after I clicked on "Deploy for Free". So I will just assume your changes work :-) Many thanks!

@jkutner I've just read in the documentation https://devcenter.heroku.com/articles/account-verification#verification-requirement that "Credit card information is not required for free apps without add-ons".
What do you think if I remove the addons from the app.json file to lower the barrier to deploy to Heroku?

Yes, please remove them. Thanks for catching that!


SOC2 Compliance

Is there currently a way to make sure that all the infrastructure generated by parallelcluster is SOC2 compliant? This includes alarms for the DBs and instances.

+1 on this.
I'm not entirely sure what SOC2 compliance means, but in the Federal security space it would be nice to be able to easily configure things like the alarms, secret rotation for the Slurm accounting database, point-in-time-recovery for the DynamoDB, etc.


Godot uses old versions of Rider from Toolbox Cache

Tested versions
v4.2.1.stable.mono.official [b09f793f5]
System information
Godot v4.2.1.stable.mono - Windows 10.0.19044 - GLES3 (Compatibility) - NVIDIA GeForce RTX 3090 Ti (NVIDIA; <IP_ADDRESS>67) - Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz (4 Threads)
Issue description
When Jetbrains Rider selected in Godot as External Editor and it is installed via Jetbrains Toolbox Godot might pickup wrong version of Rider.
Jetbrains Toolbox maintains several caches, even if in Toolbox only one version is currently active some old files might be present in the system.
In fact even when Rider removed completely Godot manages to launch it.
Note: I double checked - there's no separate version of Rider installed in the system, and Windows Task Manager says path of the executable is
....AppData\Local\JetBrains\Toolbox\apps\Rider\ch-0\231.9011.39\bin
So it is definitely some Toolbox cache
Steps to reproduce

Install Jetbrains Toolbox
Install Rider 2023.1.1
Update Rider to 2023.3.3
Launch Godot
Create new project
Editor>Editor Settings>Dotnet>Editor>External Editor select JetBrains Rider and Fleet
Create C# script, build project
Double click on script

E.R. Rider 2023.3.3 opened
A.R. Rider 2023.1.1 opened

Close Rider
Go to Toolbox, remove Rider completely
Double click on script in Godot

E.R. Message appears that Rider not found, maybe internal editor opened
A.R. It launches Rider 2023.1.1
Minimal reproduction project (MRP)
Test2.zip

Hello, thanks for the report. I expect this should be fixed by

#88544

The mentioned PR should be included in Godot 4.3 dev 4. Can you still reproduce this in a newer version of the engine?

@raulsntos
Hello, yes it works fine in new version.

Had installed Rider 2023.3.3, upgraded via toolbox to 2024.1.1.
Opened script from Godot 4.3 dev 4
AR=ER launched 2024.1.1
Closed Rider, downgraded via toolbox to 2023.3.3, opened script in Godot
AR=ER launched 2023.3.3
Closed Rider, removed Rider via Toolbox, opened script in Godot
AR=ER Error show in output

/root/godot/modules/mono/editor/GodotTools/GodotTools/Ides/Rider/RiderPathManager.cs:112 - Error when trying to run code editor: JetBrains Rider or Fleet. Could not find path to the editor.


Microsoft MLA

This feature has locked me out. I can't even change my password in the portal because, for some reason, my old password doesn't work.

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

ID: 276c38fe-aa72-6afa-23d8-14ff206c6f50
Version Independent ID: 9ffe59dd-c667-4802-1da0-6917638804c5
Content: Troubleshoot two-step verification - Azure Active Directory
Content Source: articles/active-directory/user-help/multi-factor-authentication-end-user-troubleshoot.md
Service: active-directory
GitHub Login: @eross-msft
Microsoft Alias: lizross

Hi @lriera2323 , at what stage does this happen? Are you trying to log into the portal itself? What is the error you receive?

Are you the global administrator of the tenant? If you are truly locked out you can have a global admin of the tenant reset your password, or if SSPR is enabled you can reset it yourself by going to this link: https://aka.ms/sspr

We will proceed to close this thread. Please try the link above or ask your global admin to reset your password. If you still have issues feel free to tag me in the comments and I will gladly continue the discussion.


[WIP][F] Build browse schema route

This is turning out to be more of a bear than I thought...

Adds browse route (may need to change name later...)
Adds atomic Pagination component
Adds atomic PageCount component

TO DO:

[ ] Add browse page to items route
[ ] Add generic list item and styles to browse list
[ ] Consult folks on if the article and issue should follow style conventions in other lists
[ ] Remove current issue and featured issues from browse page
[ ] Build and style grid
[ ] Determine how the grid vs list view will be chosen. Ordering name?

Hey @jen-castiron in response to the last item in your list—"Determine how the grid vs list view will be chosen. We talked it over in a recent planning meetiong, but perhaps we should discuss this with Alexa. There's an issue—WDP-459—that's related to this.

I do think that in the first iteration, at least, you could just pick a single list style (grid or list) and use that until the API gives you what you need to pick a more appropriate style.


Update spyder splash for spyder4

Th splash still says spyder 3
Are we going to update the logo two? Maybe for the logo we are using in https://spyder-ide.github.io/
@ccordoba12 @goanpeca

We're waiting to see if Anaconda.com help us to create a new logo.
For now we can bump the number from 3 to 4 in the splash screen.


Fail to configure either cloud or local dyson

I have 2 Dyson devices, one Pure+Cool, one Pure+Cool+Humidity.
None of the instructions or integrations around Internet work.
1st of all, for neither of my devices the Device SSID is in

remote controller wrap
wifi sticker
device label on the package
any other location of the device

I have the serial numbers for both devices from the Dyson Android app.
I have the credentials for both devices via get_devices.py from libdyson
Log config in configuration.yaml is
logger:
    default: info
    logs:
        libdyson: debug
        custom_components.dyson_local: debug
        custom_components.dyson_cloud: debug

Initialization of the Dyson Cloud in Home Assistant ends up in the following entry in Home Assistant log:
2021-12-24 14:43:41 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 98, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 181, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 157, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 252, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 325, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/dyson_cloud/config_flow.py", line 71, in async_step_email
self._verify = await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/libdyson/cloud/account.py", line 127, in login_email_otp
)
File "/usr/local/lib/python3.9/site-packages/libdyson/cloud/account.py", line 107, in request
headers=DYSON_API_HEADERS,
File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 416, in send
self.cert_verify(conn, request.url, verify, cert)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 227, in cert_verify
raise IOError("Could not find a suitable TLS CA certificate bundle, "
OSError: Could not find a suitable TLS CA certificate bundle, invalid path: /usr/local/lib/python3.9/site-packages/libdyson/cloud/certs/DigiCert-chain.crt

Initialization of the Dyson Local in Home Assistant / manual setup with Serial, Credential and Device Type ends up in UI message 'Failed to connect' with following in Home Assistant log:
2021-12-24 15:03:10 DEBUG (zeroconf-ServiceBrowser-_dyson_mqtt._tcp-_360eye_mqtt._tcp-294) [custom_components.dyson_local.config_flow] Found device at <IP_ADDRESS>
2021-12-24 15:03:10 DEBUG (Thread-28) [libdyson.dyson_device] Connected with result code 0
2021-12-24 15:03:10 INFO (MainThread) [libdyson.dyson_device] Connected to device VW3-EU-KEA0247A
2021-12-24 15:03:10 DEBUG (Thread-28) [libdyson.dyson_device] Disconnected with result code 7
2021-12-24 15:03:12 DEBUG (Thread-28) [libdyson.dyson_device] Connected with result code 0
2021-12-24 15:03:12 DEBUG (Thread-28) [libdyson.dyson_device] Disconnected with result code 7
2021-12-24 15:03:13 DEBUG (Thread-28) [libdyson.dyson_device] Connected with result code 0
2021-12-24 15:03:13 DEBUG (Thread-28) [libdyson.dyson_device] Disconnected with result code 7
2021-12-24 15:03:15 DEBUG (Thread-28) [libdyson.dyson_device] Connected with result code 0
2021-12-24 15:03:15 DEBUG (Thread-28) [libdyson.dyson_device] Disconnected with result code 7
2021-12-24 15:03:17 DEBUG (Thread-28) [libdyson.dyson_device] Connected with result code 0
2021-12-24 15:03:17 DEBUG (Thread-28) [libdyson.dyson_device] Disconnected with result code 7
2021-12-24 15:03:18 DEBUG (Thread-28) [libdyson.dyson_device] Connected with result code 0
2021-12-24 15:03:18 DEBUG (Thread-28) [libdyson.dyson_device] Disconnected with result code 7
2021-12-24 15:03:20 DEBUG (Thread-28) [libdyson.dyson_device] Connected with result code 0
2021-12-24 15:03:20 DEBUG (Thread-28) [libdyson.dyson_device] Disconnected with result code 7
2021-12-24 15:03:21 DEBUG (Thread-28) [libdyson.dyson_device] Connected with result code 0
2021-12-24 15:03:21 DEBUG (Thread-28) [libdyson.dyson_device] Disconnected with result code 7
2021-12-24 15:03:23 DEBUG (Thread-28) [libdyson.dyson_device] Connected with result code 0
2021-12-24 15:03:23 DEBUG (Thread-28) [libdyson.dyson_device] Disconnected with result code 7
2021-12-24 15:03:24 DEBUG (Thread-28) [libdyson.dyson_device] Connected with result code 0
2021-12-24 15:03:24 DEBUG (Thread-28) [libdyson.dyson_device] Disconnected with result code 7
2021-12-24 15:03:26 DEBUG (Thread-28) [libdyson.dyson_device] Connected with result code 0
2021-12-24 15:03:26 DEBUG (Thread-28) [libdyson.dyson_device] Disconnected with result code 7
2021-12-24 15:03:27 DEBUG (Thread-28) [libdyson.dyson_device] Connected with result code 0
2021-12-24 15:03:27 DEBUG (Thread-28) [libdyson.dyson_device] Disconnected with result code 7
2021-12-24 15:03:29 DEBUG (Thread-28) [libdyson.dyson_device] Connected with result code 0
2021-12-24 15:03:29 DEBUG (Thread-28) [libdyson.dyson_device] Disconnected with result code 7
2021-12-24 15:03:30 DEBUG (Thread-28) [libdyson.dyson_device] Disconnected with result code 0
2021-12-24 15:03:30 DEBUG (MainThread) [custom_components.dyson_local.config_flow] Failed to connect to device:

System Health

version
core-2021.12.5

installation_type
Home Assistant OS

dev
false

hassio
true

docker
true

user
root

virtualenv
false

python_version
3.9.7

os_name
Linux

os_version
5.10.63-v7l

arch
armv7l

timezone
Europe/Helsinki

Home Assistant Community Store

GitHub API
ok

Github API Calls Remaining
4610

Installed Version
1.18.0

Stage
running

Available Repositories
934

Installed Repositories
21

Home Assistant Cloud

logged_in
false

can_reach_cert_server
ok

can_reach_cloud_auth
ok

can_reach_cloud
ok

Home Assistant Supervisor

host_os
Home Assistant OS 7.0

update_channel
stable

supervisor_version
supervisor-2021.12.2

docker_version
20.10.9

disk_total
14.1 GB

disk_used
8.7 GB

healthy
true

supported
true

board
rpi4

supervisor_api
ok

version_api
ok

Same issue here. Do you solved?

I'm abe to connect my dyson vacuum trough local integration using serial and credentials, but dyson cloud still does not work, i Would to have the map on my home assistant.

Same issue here. Do you solved?

No, that is the reason I created this ticket.

Hi. Could by any chance be located in Norway? It seems like the cloud integration does the classic Region code "NO" is parsed as "false" or zero in python and
Using the libdyson directly it works with using "NO" as region code, but errors out if you provide "no"

Hi. Could by any chance be located in Norway? It seems like the cloud integration does the classic Region code "NO" is parsed as "false" or zero in python and
Using the libdyson directly it works with using "NO" as region code, but errors out if you provide "no"

Nope, my region is FI

My country is italy.

OSError: Could not find a suitable TLS CA certificate bundle, invalid path: /usr/local/lib/python3.9/site-packages/libdyson/cloud/certs/DigiCert-chain.crt

Looking at this in a bit more detail - looks like the dyson-cloud expect libdyson  installed. Which is not.
Starting to install libdyson manually and manually 'pip3 install XXX' from libdyson requirements.txt I can install

paho_mqtt
requests
zeroconf
attrs
but not cryptography. 'pip3 install cryptography ends up in all kinds of error messages including these:
error: command 'gcc' failed: No such file or directory
Package 'libffi', required by 'virtual:world' not found'
And I definitely don't have gcc installed on my Home Assistant

Of course apt is not available in Home Assistant OS so no 'apt' so no possibility to 'apt-get install libffi' as suggested in

Exact same error here using the cloud version. Certificate related.

This ticket should probably be split or linked as initially I didn't know whether the issues with local and cloud are related. The libdyson certificate issue seems to be the same as #84

Testing local connection again. Still utter failure. Dyson local re-installed on HASS, everything restarted.
Have done the same several times and for some reason model 520 now works. BTW - model 520 is not a desk model but a floor model.
Device Type list in adding an integration doesn't match

 , 358E is missing from the list

Any issue regarding connection using the cloud should have been fixed in v0.16.4-3. Please note that I am not a maintainer of ha-dyson-cloud and I can't do anything about it, you should consider ha-dyson-cloud as an unmaintained project.


client/creation: get crypto() from global scope, not window

fix for https://github.com/timonson/gentle_rpc/issues/14

You are right, thank you very much @pawelmhm !


observation search broken when place chosen

Basically our search index doesn't include place IDs, because that would be a giant pain to calculate when indexing. However, another solution might be to cache place IDs in the observations table whenever the coordinates change or place boundaries change, and then index those as some kind of array attribute (pretty sure this can be done with Thinking Sphinx).
The other alternative would just be to disallow unsupported attribute filters like places when performing text searches.

We can now search most places in Elasticsearch, and fallback to querying the DB when a place is not in ES. I am also considering storing our cached observations_places as an array of place_ids in ES since it can't store all geometries, and is not 100% precise with the ones it can store. Regardless, we can search on places now


Feature/stretch

Nikita, as I remember there was some problem with booting at fit update (at WB5)? Does it affect this code?

I sure want to recheck it, but I can't connect my WB5 to network because eth0 has a known problem with up-down blinking, and eth1 is not detected by system at all.
I will recheck it now with old Wheezy image on this particular board, but it looks like these are stretch problem both with wb5 and wb6.


Get balance of Address

We can query a contract but not an Address.
Given the utxo model we may not be able to effectively query an address though.

Can't implement. Maybe in the distant future.


[Question] Can I bind additional models after triton has started serving?

My first thoughts were as follows
thread #1
def serve():
  with Triton() as triton:
    triton.bind(some_model)
    thread#2.start(triton)
    triton.serve()

thread #2
def add_model_handler(triton):
  loop:
    new_model = some_event.recv()
    triton.bind(new_model)

However, this doesn't actually work. If I want to add a new model, should I use .stop and then .serve again? I'd like to know the proper way to do it.

This is possible by using the RemoteTriton class's bind method to add new models to the server after it has started.
Here's an example of how you can achieve this:
sequenceDiagram
    participant User
    participant Thread1 as Triton Server Thread
    participant Thread2 as Model Binding Thread
    participant TritonInstance as Triton Inference Server

    User->>Thread1: Start Triton Server
    Thread1->>TritonInstance: Initialize Triton Server
    Thread1->>TritonInstance: Bind Initial Model (AddSub)
    Thread1->>Thread2: Start Model Binding Thread
    Thread1->>TritonInstance: Serve (Blocking)
    Thread2->>TritonInstance: Connect Remotely to Triton
    loop Every 15 seconds
        Thread2->>TritonInstance: Bind New Model
        TritonInstance->>Thread2: Acknowledge Model Binding
    end
    alt Stop Condition Triggered
        Thread2->>TritonInstance: Stop Triton Server
        TritonInstance->>Thread1: Stop Serving
    end

Here's a Python code example that demonstrates this approach:
import numpy as np
import threading
import time
from pytriton.decorators import batch
from pytriton.model_config import ModelConfig, Tensor
from pytriton.triton import RemoteTriton, Triton, TritonConfig

# Configuration for Triton
triton_config = TritonConfig(
    cache_config=[f"local,size={1024 * 1024}"],  # 1MB cache
)

main_triton = None
main_triton_stop = False

# Inference function for the initial model
@batch
def _add_sub(**inputs):
    global main_triton_stop
    a_batch, b_batch = inputs.values()
    add_batch = a_batch + b_batch
    sub_batch = a_batch - b_batch
    main_triton_stop = True
    return {"add": add_batch, "sub": sub_batch}

# Thread 1: Starts the Triton server and binds the initial model
def serve():
    print("Starting Triton server thread...")
    with Triton() as triton:
        global main_triton
        main_triton = triton
        triton.bind(
            model_name="AddSub",
            infer_func=_add_sub,
            inputs=[Tensor(shape=(1,), dtype=np.float32), Tensor(shape=(1,), dtype=np.float32)],
            outputs=[Tensor(shape=(1,), dtype=np.float32), Tensor(shape=(1,), dtype=np.float32)],
            config=ModelConfig(max_batch_size=8, response_cache=True)
        )
        # Start the secondary thread to handle new models
        thread2 = threading.Thread(target=add_model_handler, args=(triton,))

        thread2.start()

        # Run the Triton server (blocking call)
        print("Starting Triton server...")
        triton.serve()
        print("Triton server stopped.")

# Thread 2: Handles dynamic model binding
def add_model_handler(triton):
    print("Starting model binding thread...")
    global main_triton
    with RemoteTriton(url='localhost') as triton:
        while True:
            time.sleep(15)
            new_model_name = f"NewModel_{time.time()}"
            print(f"Binding new model: {new_model_name}")
            triton.bind(
                model_name=new_model_name,
                infer_func=_add_sub,  # Replace with actual inference function
                inputs=[Tensor(shape=(1,), dtype=np.float32), Tensor(shape=(1,), dtype=np.float32)],
                outputs=[Tensor(shape=(1,), dtype=np.float32), Tensor(shape=(1,), dtype=np.float32)],
                config=ModelConfig(max_batch_size=8, response_cache=False)
            )
            print("New model bound successfully.")
            time.sleep(60)
            print("Checking for stop")
            if main_triton_stop:
                print("stopping Triton")
                main_triton.stop()
                break

# Start the main serve thread
serve_thread = threading.Thread(target=serve)
serve_thread.start()

# Block the main thread to keep the program running
serve_thread.join()

This approach allows you to dynamically bind new models after the server has started, without needing to stop and restart the server.

Thread 1 (Triton Server Initialization and Serving):

This thread starts the Triton server, binds the initial model (AddSub), and then runs the server in a blocking mode.
It also starts a secondary thread (Thread 2) for handling dynamic model binding.

Thread 2 (Dynamic Model Binding):

This thread connects to the running Triton server remotely.
It binds new models at regular intervals (every 15 seconds), simulating dynamic model addition during runtime.
The thread checks for a condition (main_triton_stop) to determine when to stop the Triton server.

If this example doesn't fully address your question, please provide more details or clarify your requirements so we can assist you further.

@piotrm-nvidia It's exactly what I wanted. Thank you for your response.


Enable proper logging

Since we're using zuul pod, we're losing some logs, masked by the
community.general.make module.
Adding the capacity to tee in a log file should ensure we keep track
of the potential issues.
This patch modifies all of the test targets in the Makefile to use the
new LOG_DIR parameter.
As a pull request owner and reviewers, I checked that:

[X] Appropriate testing is done and actually running

It works, provided we get this patch in:
https://review.rdoproject.org/r/c/config/+/53035
Here's the nice log for pre-commit:
https://logserver.rdoproject.org/70/1570/fbc95f6ac681613b394a35cd61605b86b7e94ca4/github-check/cifmw-pod-pre-commit/43fb3e7/pre_commit.log

/check all

/test all

recheck

Thanks Cédric, this is a massive improvement, much faster and even easier to read than the Prow pre-commit job.
Two points:
1.  [1]

2. In the job output.log we should add a link to the log. I might push a patch for this today if I get time.

[1] https://logserver.rdoproject.org/99/1499/90292a48b7e190190ed5677c3dfd82d16b19897f/github-check/cifmw-pod-pre-commit/f4e75ec/pre_commit.log

My idea for point 2 here: https://github.com/openstack-k8s-operators/ci-framework/pull/1579

I tested this on a PR with lint errors(just to test your PR, not because I suck ;) ) and I can see the output could be improved by passing the --nocolor argument to ansible-lint. [1]
In the job output.log we should add a link to the log. I might push a patch for this today if I get time.
[1] https://logserver.rdoproject.org/99/1499/90292a48b7e190190ed5677c3dfd82d16b19897f/github-check/cifmw-pod-pre-commit/f4e75ec/pre_commit.log

My idea for point 2 here: #1579

(a pity we can't get threads in here like gitlab...)
I saw #1579 - but I think we can leverage Zuul and its artifacts, allowing to get that data directly in the main/frontpage, and direct log access via the "artifacts" tab. Though I don't remember how to do this, there's a Zuul thing, we'll have to ask some other Zuul-savvy ppl.
For the --no-color: yes, but.... having colors when running locally is good imho. I thought tee had some option for that, but apparently it doesn't :/. Lemme find a way to keep the color in local shell but pipe cleaned content.

/approve


Running flow examples throws Support for the experimental syntax 'classProperties' isn't currently enabled (29:30):

Error:
ERROR in ./src/interop/MyBanner.component.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: /Users/prisc_000/working/RNAMPLIFY/genType/examples/flow-react-example/src/interop/MyBanner.component.js: Support for the experimental syntax 'classProperties' isn't currently enabled (29:30):

  27 |
  28 | export class TopLevelClass {
> 29 |   static MiddleLevelElements = {
     |                              ^
  30 |     MyBannerInternal: App
  31 |   };
  32 | }

Solution is npm i -D @babel/plugin-proposal-class-properties
Then in webpack.config.js add it to babel-loader plugins config:

use: {
          loader: "babel-loader",
          options: {
            presets: [
              "@babel/preset-env",
              "@babel/preset-flow",
              "@babel/preset-react"
            ],
            plugins: [
              [
                "@babel/plugin-proposal-class-properties",
                {
                  "loose": true
                }
              ]
            ]
          }
        }

Just an FYI.

Thanks, one of the last examples makes webpack unhappy.


(wip) rust extension module

Description

Checklist

[ ] Build runs successfully
[ ] Docs updated

Release checklist (maintainers only)

[ ] Version updated in pyproject.toml
[ ] Version updated in src/whenever/__init__.py
[ ] Version updated in changelog
[ ] Branch merged
[ ] Tag created and pushed
[ ] Published
[ ] Github release created

@JaykeMeijer I've taken a first stab at (the basics of) a Date class, have a look 👀

@JaykeMeijer I've taken a first stab at (the basics of) a Date class, have a look 👀

Slowly starting to look at this, big learning curve ahead with the Python/Rust integration so might take me some time to get to useful comments. First feedback though is that the installation and setup is a very smooth process, so well done on that!

@JaykeMeijer note that this PR is a bit in a messy state. One important note is (for now) you need to clone pyo3 repo alongside it due to a potential bug (see https://github.com/PyO3/pyo3/issues/4093)


no-modules export lacks function overloading

Describe the Bug
no-modules was a useful setup for web extensions but it seems it's broken for overloaded functions that require a memory buffer.
Steps to Reproduce

Follow https://rustwasm.github.io/docs/wasm-bindgen/examples/without-a-bundler.html#using-the-older---target-no-modules
Change alert to boop (alert doesn't work in background files)
Add "background": {"scripts": ["out.js", "background.js"]} in the extension manifest
In background js have the following:

function boop(hey) {
  console.log(hey);
}
async function run() {
  let glob = await wasm_bindgen("out.wasm");
  glob.greet("person");
}
run();

Expected Behavior
The output is Hello, person!
Actual Behavior
The output is Hello, !
Additional Context
It seems the fix should be:
Change the end of out.js
        return result.then(({instance, module}) => {
            wasm = instance.exports;
            init.__wbindgen_wasm_module = module;

            return wasm;
        });
    }

    self.wasm_bindgen = Object.assign(init, __exports);

To:
        return result.then(({instance, module}) => {
            wasm = instance.exports;
            init.__wbindgen_wasm_module = module;

            return Object.assign({}, init, __exports);
        });
    }

    self.wasm_bindgen = init;

Thanks for the report! I think I may be getting a bit lost here though? I'm not sure what this has to do with function overloading, background js, extensions, etc.
Is the issue that in --no-modules mode it's difficult to get the exported memory from the wasm module? Or is it possible but perhaps not as great as it could be?

My understanding of the issue was that wasm wasn't modifiable and so the object assign wasn't overloading the function.
For example the output of wasm has a function called boop and also __exports one too which wasn't being 'overloaded' to the returned output of the function.

Sorry I'm still not quite understanding what the issue is and what can be done to fix it :(
The expected interface is to instead of glob.greet("foo") you use wasm_bindgen.greet("foo") in your example above, but is this basically a feature request to get the former working?

Using wasm_bindgen.greet("person");:

TypeError: wasm is undefined

Using:
  let glob = await wasm_bindgen("pkg/rust_component_bg.wasm");
  glob.greet("person");

I get the following:

Hello, !

Sample code here: https://github.com/jonathanKingston/wasm-extension and npm run build and web-ext run should be all you need to see the console log outputs above.
Maybe I'm doing something blatently wrong though.

For the first example, you need to initialize (via await wasm_bindgen("the/path/to/wasm")) first before functions can be used. For the latter glob.greet is likely the raw wasm module itself and it's expecting two integers of a pointer/length to a string, but your string is being coerced to zero which prints an empty string.

I believe it's #2062


Agents that don't run forever

class SayHelloWorld5TimesAgent < Sublayer::Agents::Base
  trigger TimeTrigger.new(5)

  goal_condition { @greeting_count == 5 }

  check_status { puts "Current hello world count is: #{@greeting_count}" }

  step do
    @greeting_count += 1
    puts "hello world"
  end

  def initialize
    @greeting_count = 0
  end
end

There may be a desire to have "stop" conditions for an agent.
The code above is "wrong" in the sense that "goal conditions" and "status checking" is meant for the repetition of steps. Triggers are meant for the "starting" of the step/goal condition flow, and in some ways the agent itself.
so "starting" is directly related to "triggers" and status/goals/steps is the repetitve "action" but "stopping" the entire agent itself is currently not yet a thing.

Bringing the conversation here over from Discord.
Couple things to thing about with this...
I know there are probably a lot of them, but would love to see some examples of agents that we'd want to stop on their own (and not sit around waiting for a trigger) where you wouldn't just kill the process yourself.
We're also exploring bringing back the CLI/TUI from an earlier version of the framework for controlling and building agents, and in that case being able to control execution directly between multiple agents, actions, and generators


Weirdass error i think it is time to make a new version @mategol

Traceback (most recent call last):
File "PyInstaller\loader\pyimod03_ctypes.py", line 53, in init
File "ctypes_init_.py", line 376, in init
FileNotFoundError: Could not find module 'C:\Users\vrmxl\AppData\Local\Temp_MEI264962\libopus-0.x64.dll' (or one of its dependencies). Try using the full path with constructor syntax.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "source_prepared.py", line 108, in
File "discord\opus.py", line 280, in load_opus
File "discord\opus.py", line 203, in libopus_loader
File "ctypes_init_.py", line 454, in LoadLibrary
File "PyInstaller\loader\pyimod03_ctypes.py", line 55, in init
pyimod03_ctypes.install..PyInstallerImportError: Failed to load dynlib/dll 'C:\Users\bendover\AppData\Local\Temp\_MEI264962\libopus-0.x64.dll'. Most likely this dynlib/dll was not found when the application was frozen
read this
If u are creating a new version obf it properly crypt it plzz.

Disable all your Antiviruses
Redownload the Pysilon from Github again
Recompile Again.
This time, it might work

add 266sebee on discord for help

Hey, just use the ModdedPysilon version, it covers every bug and it make sure your discord account never get banned.
Leave me a star if you like my project ;)


Enable py-upgrade

We keep % formats as in some cases they were used for speed. (Even though the difference is unlikely to matter in practice.)
∮ python -m timeit '"{} {} {}".format("foo", "bar", "baz")'
1000000 loops, best of 5: 231 nsec per loop
∮ python -m timeit '"%s %s %s" % ("foo", "bar", "baz")'
2000000 loops, best of 5: 148 nsec per loop

And the real reason I'm opening this pull request is that I needed one to test the Read the Docs integration. But it will be nice to stop having to think about f-strings in reviews.

∮ python -m timeit '"{} {} {}".format("foo", "bar", "baz")'
1000000 loops, best of 5: 231 nsec per loop
∮ python -m timeit '"%s %s %s" % ("foo", "bar", "baz")'
2000000 loops, best of 5: 148 nsec per loop

The first example doesn't test the performance of f-string, bur rather the string.format() method which AFAIK is the slowest. This link has some benchmarks from all methods demonstrating that f-strings are the fastest.

Yes. The thing is pyupgrade by default will upgrade either to str.format or to f-strings, depending on the complexity of the variables declarations. Per https://github.com/asottile/pyupgrade#f-strings:

note: pyupgrade is intentionally timid and will not create an f-string if it would make the expression longer or if the substitution parameters are sufficiently complicated (as this can decrease readability).

So without that option, sometimes % formats will become str.format:
-    print("* [#%s](%s)%s: %s" % (str(issue.number), issue.html_url, breaking_hint, issue.title))
+    print("* [#{}]({}){}: {}".format(str(issue.number), issue.html_url, breaking_hint, issue.title))


SpeechRecognitionSink Fetch User Name?

I have this code:
func = getattr(recognizer, 'recognize_google', recognizer.recognize_google)
text = func(audio)
print(text)
which outputs:
it was such a unique thing
2024-05-12 19:17:49 INFO     discord.ext.voice_recv.extras.speechrecognition sxypotatoe said: it was such a unique thing
I'm able to print the text that is said ("it was such a unique thing"), but how do I grab the name that said it, ie "sxypotatoe" here?

nvm I get it through user.display_name

close the issue if you found it