Version Ruby and version Rails

What version of Ruby (and Rails) can the project work on?

@MrConstantine At the moment we use Rails 4.2.11 and Ruby 2.5.


auto-gpt: init at 0.5.0

Description of changes
I'm opening this PR just in case anyone is interested in taking over and finishing it.
there are a couple of things missing
packaging "forge" and agbenchmark from the repo and the auto-gpt-plugin-template dependency.
it's 80% of the way there but it still needs a final push. I don't have time at the moment, so I would be happy for anyone to take over. I don't need attribution, and would be happy to review a PR.
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 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
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

I think @superherointj worked on auto-gpt-plugin-template, find it here: https://github.com/nixpkgs-friendly/nixpkgs-friendly-overlay/tree/master/pkgs/python


Need to bring in html form widget for generic editing capability

The data filed is crammed to one line. It should be shown in multi-line fashion.

Done.

Multi-line editing component added. The HTML editing is in issue #137


WIP: Add support for custom proxy headers using a ConfigMap

fixes #180

This change is

Coverage decreased (-0.1%) to 44.223% when pulling cbccff82cd3ed57b357e620795b6566f74809e93 on aledbf:set-headers into 4eb527d4a975551075397cb195a30500004778b7 on kubernetes:master.

Coverage decreased (-0.2%) to 44.183% when pulling cbccff82cd3ed57b357e620795b6566f74809e93 on aledbf:set-headers into 4eb527d4a975551075397cb195a30500004778b7 on kubernetes:master.

Coverage decreased (-0.2%) to 44.223% when pulling 5cc5669938108ab7429bc7eee40c18a6ba18150a on aledbf:set-headers into 2045786e376b83e79d709c0286f1ca9972958658 on kubernetes:master.

This is a huge help for what I am working on, thanks!!

@aledbf, any chance we can get the StoreToNodeLister added? I am not sure how else to get the node IPs for my NodePort targets.

Coverage increased (+1.4%) to 45.818% when pulling f7a27ebcc2c87d6b7437bfbb3058bbd114168c00 on aledbf:set-headers into 2045786e376b83e79d709c0286f1ca9972958658 on kubernetes:master.


Activation code using Auth::register facade

Hello guys, im having an issue, and i would like to ask if there is a way to generate the activation code when im using the  Auth Facade:
$user = Auth::register([
    'name' => 'Some User',
    'email' =><EMAIL_ADDRESS>    'password' => 'changeme',
    'password_confirmation' => 'changeme',
]);

Eveything is fine, but i cant see the activation code generated... any idea?
Thank you

Closing as it has been over a month since any activity on this occurred.


upgrade to 1.6.2 issue

My component is working in 1.5, it is declared like below:

(function() {
'use strict';

angular
    .module('myModule')
    .component('myComponent', myComponent());

function myComponent() {
    var component = {
        bindings: {
            dateOptions: '='
        },
        templateUrl: 'myComponent.component.html',
        controller: MyController
    };
    return component;
}

function MyController() {
    var vm = this;

    vm.getData = getData;

    vm.$onInit = function() {

    };

    function getDate() {
        var options = {
            config: vm.dateOptions.config
        };
    }

}
})();

html:
<div  class="datearea" ng-click="$ctrl.getDate()">

</div>

when I fire the ng-click, it says:
Cannot read property 'config' of undefined
which is the line : config: vm.dateOptions.config
Really interest to know what caused this issue? And I would not use the temp fix: $compileProvider.preAssignBindingsEnabled(true);
Just thinking if it is the problem with this style as controller is hoisted functions.

it turns out that dateOptions was not properly sent by it's parent, nothing wrong with this style.

getDate and getData, did you misspell something?


Add rule to detect duplicate block names

@MalteJanz @Christian-Rades Not sure if we need to cover this, for me a duplicate block declaration already causes a hard twig exception. 🤔
Test in base.html.twig of sw platform:
{% block base_body %}
    <body class="{% block base_body_classes %}is-ctl-{% if controllerName is not empty %}{{ controllerName|lower }}{% endif %} is-act-{% if controllerAction is not empty %}{{ controllerAction|lower }}{% endif %}{% endblock %}">

+    {% block base_body_inner %}{% endblock %}

    {% block base_body_inner %}
        {% block base_noscript %}

It does kaboom for me.

@tobiasberge The idea is to find these errors without running the code.
I suspect you still need to attempt to render the template to get the exception.

@tobiasberge Sure this specific rule does not provide many benefits (because the symfony twig linter also checks for duplicated twig block names). But I would still include it for the sake of completeness and maybe nicer error messages 😄
Also this could be really beneficial for our Administration Twig.js templates (if ludtwig gets mature enough and maybe some day finds it's way back to the Twig.js templates...). Because there is currently no Twig validation at all 🙈


Hi, I believe the fixed grammar does not fix the issues depicted below? What is wrong there IMO:

Hi, I believe the fixed grammar does not fix the issues depicted below? What is wrong there IMO:

the function name in the declaration and the function callsites have the same color - pretty sure this didn't use to be the case..? See function foo and the callsite.
standard modules such as table and string have some sort of special treatment, which results in problems like depicted - string is colorized differently from other functions. I don't think the built-in modules should be special cased, because you don't have to open them by default. My example is contrived, but we actually had a real world use-case where this showed up.

Originally posted by @sammalt in https://github.com/sumneko/lua.tmbundle/issues/2#issuecomment-1061523816

2. standard modules such as table and string have some sort of special treatment, which results in problems like depicted - string is colorized differently from other functions. I don't think the built-in modules should be special cased, because you don't have to open them by default. My example is contrived, but we actually had a real world use-case where this showed up.

This is a bug, I will fix it.

the function name in the declaration and the function callsites have the same color - pretty sure this didn't use to be the case..? See function foo and the callsite.

The token of call used to be support.function.any-method.lua, but now it is entity.name.function.lua, I will fix it

Please install this extension to check if it fixed: https://marketplace.visualstudio.com/items?itemName=sumneko.lua-grammar
Make sure the version of the extension is 0.0.2

Wow, that was fast. Yep, it looks good, thank you! With the default Dark theme, the function name and the calls look the same, but with some other themes the colors are now different. The built-in module problem is gone as well.


Report fatal error on bad CSV

It used to crash the processing and not report why.
Se the no whitespace changes diff for a clear picture that not much changed.
Pivotal story: 116220055

LGTM


Run python file in terminal, Error the active file is not a python source file

Environment data

VS Code version: 1.31
Extension version (available under the Extensions sidebar): 2019.1.0
OS and version: win10 x64
Python version (& distribution if applicable, e.g. Anaconda): 3.7.2
Type of virtual environment used (N/A | venv | virtualenv | conda | ...):N/A
Relevant/affected Python packages and their versions: XXX

Expected behaviour
XXX
Actual behaviour
XXX
Steps to reproduce:

XXX

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
XXX

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
XXX

Hello,
Did you add ".py" at the end of the file? Are you using ".py" when declaring the file on terminal?
Mind sharing how are you using the command?
When you execute other scripts it works? Or the same occurs?
We may need more info to help you solving your problem.

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.


jinja2: no filter named to json

Before you open an issue, please make sure you have tried the following steps:

Make sure your environment is the same with (https://mace.readthedocs.io/en/latest/installation/env_requirement.html).
Have you ever read the document for your usage?
Check if your issue appears in HOW-TO-DEBUG or FAQ.
The form below must be filled.

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04
NDK version(e.g., 15c): r15c
GCC version(if compiling for host, e.g., 5.4.0): 5.4.0
MACE version (Use the command: git describe --long --tags): v0.13.0-0-g9a06864
Python version(2.7):
Bazel version (e.g., 0.13.0):

Describe the problem
no filter named to json when building standalone. I tried the method in #620's https://github.com/XiaoMi/mace/issues/620#issuecomment-608426958. But apt-get install python3-jinja2==2.8.1 automatically, which will generate the problem jinja2.exceptions.TemplateAssertionError: no filter named 'tojson'.
P.S. A possible solution would be to upgrade jinja2 https://github.com/simonw/datasette/issues/100#issuecomment-344864254, but not sure how to do it (apt-get upgrade python-jinja2 would always give me a 2.8.0). PyPI can get jinja2 2.11.0, but is of no use as mentioned above. Btw, aptitude gives me 2.8.0, too.😣
To Reproduce
Steps to reproduce the problem:
bash tools/bazel-build-standalone-lib.sh [-abi=abi][-runtimes=rt1,rt2,...][-static]

Error information / logs
Please include the full log and/or traceback here.
build shared lib for armeabi-v7a + cpu_gpu_dsp
Starting local Bazel server and connecting to it...
............
write version v0.13.0-0-g9a06864 to /home/parallels/.cache/bazel/_bazel_parallels/5ff1ff2df121917af4fe9fa25c7709ef/external/local_version_config/gen/version
Traceback (most recent call last):
  File "/home/parallels/.cache/bazel/_bazel_parallels/5ff1ff2df121917af4fe9fa25c7709ef/external/mace//mace/python/tools/encrypt_opencl_codegen.py", line 130, in <module>
    encrypt_opencl_codegen(FLAGS.cl_kernel_dir, FLAGS.output_path)
  File "/home/parallels/.cache/bazel/_bazel_parallels/5ff1ff2df121917af4fe9fa25c7709ef/external/mace//mace/python/tools/encrypt_opencl_codegen.py", line 104, in encrypt_opencl_codegen
    encrypted_code_maps, 'str2vec_maps.cc.jinja2', output_path)
  File "/home/parallels/.cache/bazel/_bazel_parallels/5ff1ff2df121917af4fe9fa25c7709ef/external/mace//mace/python/tools/encrypt_opencl_codegen.py", line 60, in write_cl_encrypted_kernel_to_file
    cl_encrypted_kernel = env.get_template(template_path).render(
  File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 812, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 786, in _load_template
    template = self.loader.load(self, name, globals)
  File "/usr/lib/python2.7/dist-packages/jinja2/loaders.py", line 125, in load
    code = environment.compile(source, name, filename)
  File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 565, in compile
    self.handle_exception(exc_info, source_hint=source_hint)
  File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 754, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/parallels/.cache/bazel/_bazel_parallels/5ff1ff2df121917af4fe9fa25c7709ef/external/mace//mace/python/tools/str2vec_maps.cc.jinja2", line 28, in template
    {{key|tojson}}, {
jinja2.exceptions.TemplateAssertionError: no filter named 'tojson'
ERROR: /home/parallels/mace/mace/codegen/BUILD.bazel:26:1: no such target '@local_opencl_kernel_encrypt//:gen/encrypt_opencl_kernel.cc': target 'gen/encrypt_opencl_kernel.cc' not declared in package '' defined by /home/parallels/.cache/bazel/_bazel_parallels/5ff1ff2df121917af4fe9fa25c7709ef/external/local_opencl_kernel_encrypt/BUILD.bazel and referenced by '//mace/codegen:encrypt_opencl_kernel_gen'
ERROR: /home/parallels/mace/mace/codegen/BUILD.bazel:26:1: no such target '@local_opencl_kernel_encrypt//:gen/encrypt_opencl_kernel.h': target 'gen/encrypt_opencl_kernel.h' not declared in package '' defined by /home/parallels/.cache/bazel/_bazel_parallels/5ff1ff2df121917af4fe9fa25c7709ef/external/local_opencl_kernel_encrypt/BUILD.bazel and referenced by '//mace/codegen:encrypt_opencl_kernel_gen'
ERROR: Analysis of target '//mace/libmace:libmace_dynamic' failed; build aborted: Loading failed
INFO: Elapsed time: 6.718s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (33 packages loaded)

I think it should be okay to install jinja2 by pip, but not sure why #620 (forced to use apt or aptitude) happens?

@LovelyBuggies
Please try this pip install jinja2==2.10.
I'm not sure about #620, may be different versions of python are used.

Please try this pip install jinja2==2.10.
I'm not sure about #620, may be different versions of python are used.

Yeah, I tried, the fact is that I had jinja2==2.11.2 installed, but got jinja2: no filter named to json error when running bash tools/bazel-build-standalone-lib.sh [-abi=abi][-runtimes=rt1,rt2,...][-static].
$ bash tools/bazel-build-standalone-lib.sh [-abi=abi][-runtimes=rt1,rt2,...][-static]
build shared lib for armeabi-v7a + cpu_gpu_dsp
Starting local Bazel server and connecting to it...
...........
write version v0.13.0-0-g9a06864 to /home/parallels/.cache/bazel/_bazel_parallels/5ff1ff2df121917af4fe9fa25c7709ef/external/local_version_config/gen/version
Traceback (most recent call last):
  File "/home/parallels/.cache/bazel/_bazel_parallels/5ff1ff2df121917af4fe9fa25c7709ef/external/mace//mace/python/tools/encrypt_opencl_codegen.py", line 20, in <module>
    import jinja2
ImportError: No module named jinja2
ERROR: /home/parallels/mace/mace/codegen/BUILD.bazel:26:1: no such target '@local_opencl_kernel_encrypt//:gen/encrypt_opencl_kernel.cc': target 'gen/encrypt_opencl_kernel.cc' not declared in package '' defined by /home/parallels/.cache/bazel/_bazel_parallels/5ff1ff2df121917af4fe9fa25c7709ef/external/local_opencl_kernel_encrypt/BUILD.bazel and referenced by '//mace/codegen:encrypt_opencl_kernel_gen'
ERROR: /home/parallels/mace/mace/codegen/BUILD.bazel:26:1: no such target '@local_opencl_kernel_encrypt//:gen/encrypt_opencl_kernel.h': target 'gen/encrypt_opencl_kernel.h' not declared in package '' defined by /home/parallels/.cache/bazel/_bazel_parallels/5ff1ff2df121917af4fe9fa25c7709ef/external/local_opencl_kernel_encrypt/BUILD.bazel and referenced by '//mace/codegen:encrypt_opencl_kernel_gen'
ERROR: Analysis of target '//mace/libmace:libmace_dynamic' failed; build aborted: Loading failed
INFO: Elapsed time: 6.132s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (33 packages loaded)

$ pip3 show jinja2
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Name: Jinja2
Version: 2.11.2
Summary: A very fast and expressive template engine.
Home-page: https://palletsprojects.com/p/jinja/
Author: Armin Ronacher
Author-email<EMAIL_ADDRESS>License: BSD-3-Clause
Location: /home/parallels/.local/lib/python3.5/site-packages
Requires: MarkupSafe
Required-by:

If I used the method at https://github.com/XiaoMi/mace/issues/620#issuecomment-608426958, i.e., using apt-get to install, the error jinja2: no filter named to json will occur because of the jinja2 version issue.

What's the output of python --version

$ python --version
Python 2.7.12
$ python3 --version
Python 3.5.2

P.S. I am not using python2.

How do you ensure bazel use python3?

How do you ensure bazel use python3?

I cannot ensure, actually. Let me try 3.6+ and remove python2 :)


Is pools close if their ownership moves?

Hello, i'm currently trying to use your package but i have some issues.
Here is my code:

#[actix_web::main]
async fn main() -> std::io::Result<()> {
    dotenv().ok();

    let ip_address_and_port = match env::var("IP_ADDRESS_AND_PORT") {
        Ok(variable) => variable,
        Err(_) => panic!("Cannot found 'IP_ADDRESS_AND_PORT' env variable."),
    };

    let db_conn_string = match env::var("DB_CONN_URL") {
        Ok(variable) => variable,
        Err(_) => panic!("Cannot found 'DB_CONN_STRING' env variable."),
    };

    let pool = database::create_db_pool(db_conn_string.as_str()).await;

    let server = HttpServer::new(move || {
        App::new()
            .app_data(web::Data::new(pool.clone()))
            .wrap(from_fn(authlogic::refresh_cookies))
            .service(navctrl::home_controller)
            .service(navctrl::about_us_controller)
            .service(navctrl::contact_controller)
            .service(routers::admin_panel_router())
            .service(routers::posts_router())
    });

    server.bind((ip_address_and_port.as_str()))?.run().await?;

    Ok(())
}

in this code, the pool variable is released when the server variable ends because of the move semantics and the pool variable freed from memory. In this case, is connection closed or not in the end of that code?

Hi.

In this case, is connection closed or not in the end of that code?

Which one? I mean that i see no code here that creates a connection so it's hard to answer the question.

in this code, the pool variable is released when the server variable ends because of the move semantics and the pool variable freed from memory

Note that Conn if created from a pool holds a copy of this pool so it won't vanish while Conns exists. Also I believe that the copy is also alive within the factory closure

let pool = database::create_db_pool(db_conn_string.as_str()).await;

obviously the pool variable, just this code: let pool = database::create_db_pool(db_conn_string.as_str()).await;.  I don't think this isn't obvious, the source code is this:

pub async fn create_db_pool(url: &str) -> mysql_async::Pool {
    return mysql_async::Pool::new(url);
}

Also i don't create a standalone connection, i create a connection pool.
If i pass that pool value with web::Data::new() code that inside in the "server" variable takes the ownership of that pool variable, even that value is a clone.

Oh, I see - pool is a reference-counted smart pointer. Every clone of a pool instance points to the same pool instance (see corresponding section in the docs)

Oh, I see - pool is a reference-counted smart pointer. Every clone of a pool instance points to the same pool instance (see corresponding section in the docs)
Practically this means that pool won't close as long as there exist a clone.

This is so abstract answer, because of that i'm writing this for make things Clear: my assumption is if there is no unclosed single connection and if ownership moves into another data structure that means pool were closed automatically. Is that right?

Hmm..
First let me mention that there is no such thing as "async destructor" in Rust, that's why you have to explicitly call pool.disconnect() to disconnect it gracefully. Now if pool instance is moved (say in a way it is moved into a closure in your example) than it won't be disconnected nor deallocated even if it is the only instance of this pool.
If you want to gracefully close the pool you need to keep a clone somewhere so that you can call disconnect (see docs):
#[actix_web::main]
async fn main() -> std::io::Result<()> {
    dotenv().ok();

    let ip_address_and_port = match env::var("IP_ADDRESS_AND_PORT") {
        Ok(variable) => variable,
        Err(_) => panic!("Cannot found 'IP_ADDRESS_AND_PORT' env variable."),
    };

    let db_conn_string = match env::var("DB_CONN_URL") {
        Ok(variable) => variable,
        Err(_) => panic!("Cannot found 'DB_CONN_STRING' env variable."),
    };

    let pool = database::create_db_pool(db_conn_string.as_str()).await;
    let pool_clone = pool.clone();

    let server = HttpServer::new(move || {
        App::new()
            .app_data(web::Data::new(pool.clone()))
            .wrap(from_fn(authlogic::refresh_cookies))
            .service(navctrl::home_controller)
            .service(navctrl::about_us_controller)
            .service(navctrl::contact_controller)
            .service(routers::admin_panel_router())
            .service(routers::posts_router())
    });

    server.bind((ip_address_and_port.as_str()))?.run().await?;

    pool_clone.disconnect().await?;

    Ok(())
}

Understand. Because it's an Arc type, that means all the clones are reference to the same pool if we close one of them we'll be close every one of them. Thanks.


Overwrite flag for uploading

Hi,
In the Live SDK there was an option to specify an overwrite querystring to control the overwrite behavior:
"By default, the file, photo, video, or audio with the same name will be overwritten, if it already exists. You can add an overwrite query-string parameter with a value of false to not overwrite the existing file, photo, video, or audio. Or you can add an overwrite query-string parameter of ChooseNewName if you want to upload a duplicate copy of the file but let OneDrive choose a new file name for the uploaded file."
(source: https://msdn.microsoft.com/en-us/library/office/dn659726.aspx)
Is this also available in the new API? Otherwise there would have to be some overhead of checking if a file with the same name exists before uploading, which would mean an extra REST call.

What you're looking for is the @name.conflictBehavior attribute, which lets you specify for a content upload what to do if a file with that same name already exists.
This is documented on the Create API page, but works on any of the POST actions for uploading files.

Great, thank you. I take it that means I need to use the multipart upload and not the PUT method, correct?

It works on PUT, but since there isn't a JSON body you have to move the parameter into the query string. Something like this:
PUT<EMAIL_ADDRESS>This will create existing_file 1.txt if existing_file.txt exists. This doesn't appear to be covered by our documentation right now, so I'll make sure we update that.

Thanks. Last question, would this work for large file upload as well?

@rgregg , ty for including @name.ConflictBehaviour in PUT upload api it solves one of my problem
because making multipart/related query in android is little bit tedious (due to lib we using)


Add helper to Counter to track concurrent executions.

A common pattern we have is:
counter.inc(1)
try {
  expensiveWork()
} finally {
  counter.dec(1)
}

This lets us see how many times we're calling expensiveWork
concurrently.
Thanks @fedeoasi for the original idea and implementation.

Nice idea!

Is the pull request ok? Anything I should change?

It looks good to me! With tests and docs, very good ☺ . I am still thinking about a even more descriptive name for the function.

Now I just have to find some time to merge it and do a release.

Ah, yes. Naming. The hardest part...
I wasn't fully happy with concurrentCount. Another idea was activeCount. Need to try to think of some other names.

I think I'll settle for countConcurrency ? This is more in line with the current count method.

The code is counting the concurrent invocations of the counter, not the function being passed in. The original name also has the same problem to a degree though. In some sense, the argument being passed in doesn't matter for purposes of the counter.
That being said, I'll update the pull request with the new name.

The code is counting the concurrent invocations of the counter

Hmm, I thought that countConcurrenyOf counts the number of concurrent executions of the passed in function. Am I wrong?

It doesn't track what function was passed in. It only evaluates it. Therefore, it can't keep track of how much a particular function was evaluated.
So if you ran the following statements in 2 different threads, you would see the counter potentially go to 2
Thread 1:
counter.countConcurrencyOf(foo())

Thread 2:
counter.counterConcurrencyOf(bar())

In our use case, we always pass in the same function though. I'm not sure what the actual use case would be for passing in different functions to the same counter. So the above is mostly technicalities.

Alright, that is indeed a nasty abuse of the api. In light of this, perhaps simply countConcurrency would be better. Some more docs will be needed also. I can write that if you want.

Given that I'm not sure what the use of it would be, I'm not that concerned about it. If you like the old name (or another), I'm happy to open a pull request to change it though. Let me know.
What sort of documentation would you want?

You could for example count access to a shared resource.
I changed the name to countConcurrency, changed the scaladoc and added some text to the manual.
This now part of version 3.5.1. Thanks!


python37Packages.azure-mgmt-devtestlabs: 3.0.0 -> 4.0.0

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-azure-mgmt-devtestlabs/versions.
meta.description for python37Packages.azure-mgmt-devtestlabs is: '"This is the Microsoft Azure DevTestLabs Management Client Library"'.
meta.homepage for python37Packages.azure-mgmt-devtestlabs is: '"https://github.com/Azure/sdk-for-python/tree/master/azure-mgmt-devtestlabs"

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 4.0.0 with grep in /nix/store/3bdk4xr27c52lpfgm2ngxjh7svzfx1dj-python3.7-azure-mgmt-devtestlabs-4.0.0

directory tree listing: https://gist.github.com/e54af6317e031f8c58e48fdfce492e7d

du listing: https://gist.github.com/2e09dd535d490920ab48ab840a98ded9

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

8 total rebuild path(s)
2 package rebuild(s)
2 x86_64-linux rebuild(s)
2 i686-linux rebuild(s)
2 x86_64-darwin rebuild(s)
2 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
python27Packages.azure-mgmt-devtestlabs
python37Packages.azure-mgmt-devtestlabs

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/3bdk4xr27c52lpfgm2ngxjh7svzfx1dj-python3.7-azure-mgmt-devtestlabs-4.0.0 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A python37Packages.azure-mgmt-devtestlabs https://github.com/r-ryantm/nixpkgs/archive/aa486995d9e5b5fc8f00419c07d27875b88840b2.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3bdk4xr27c52lpfgm2ngxjh7svzfx1dj-python3.7-azure-mgmt-devtestlabs-4.0.0
ls -la /nix/store/3bdk4xr27c52lpfgm2ngxjh7svzfx1dj-python3.7-azure-mgmt-devtestlabs-4.0.0/bin

cc @mwilsoninsight for testing.

nix-review builds, macos 10.13 & non-nixos linux x86_64... no tests though...


getReloads() is not working

Trying to use getReloads({}) but yields 400 bad request error:
https://github.com/qlik-oss/qlik-api-ts/blob/main/reloads.js
It seems in the docs that there is no need to pass any params to "api/v1/reloads" for retrieving list of reloads
import { reloads, spaces } from '@qlik/api';

const mySpaces = await spaces.getSpaces({}); // works fine
console.log(mySpaces.data);

const myReload: any = await reloads.getReload('65b3b6339dabfe13223f8539'); // works fine
console.log(myReload.data);

const tenantReloads: any = await reloads.getReloads({}); // 400 error
console.log(tenantReloads.data);

(curlys are mandatory due to typescript):

@rkassoss, I'm not on the team that maintains this lib, but it may be worth examining the request in the Network tab of the browser's Developer Tools to see if there's something missing, extra, or corrupted with the request, ex. the bearer token is missing in the request headers. I know it's not the same client but see below where I performed a simple GET request using qlik-cli against the same REST API endpoint. It completed successfully without any parameters in the querystring. Providing more details about the request may help our team identify the issue faster.

hey @rkassoss
It looks like you've found a bug. We will look into it.

Thanks @JoelDCarter ,  Yes, using "qlik-cli reloads" or Postman, directly to "api/v1/reloads" works fine without any params or queries. Tried also passing something in the query like {limit:100} but got the same 400 Bad Request error.
Thanks for confirming @nilzona !

Hi @rkassoss, here's an update.
We've been able to reproduce the issue and it seems to be due to credentials and not due to the query-parameters as the error-message might suggest. Listing all reloads is only allowed for users with the tenant-admin scope (if I understood things correctly) and for whatever reason this scope is lacking in this particular embedding scenario. Still looking into why that is.

Thanks for confirming @glooms !
My user is in fact an admin and therefore I am able to use getSpaces({}) or getUsers({}) without an issue.
Any workaround you could recommend for developing a single page app that allows users to view/manage their reloads in real time?

@rkassoss
I suspect there's some limitations to webIntegrationID
can you try to do another admin call .. for example
import { auth,  webhooks } from "@qlik/api";

// set the auth
auth.setDefaultHostConfig(...);

const { status, data } = await webhooks.createWebhook({name: "ABC", url:"abc.com"})

@nilzona ,
Gave "webhooks" a try:
Getting a different error - forbidden 403 with an infinite loop for authorizing the request.
Seeing the same result for both Auth scenarios: when using OAuth2 or WebIntegrationID

I've been digging into this a bit more ...
So when using this library in a cross-site Web Application you will not be able to use web-integration ID for admin related tasks. All admin permissions are stripped away from the user when accessing api's with a web-integration ID.
When using OAuth there is not yet any scope that can be used in a web application (single-page-app oauth client) that will allow a user to fetch all reloads. The classic.admin scope is not allowed in a single-page-app oauth client.
The 400 repsonse is however mis-leading and I consider it to be a bug. I have raised an issue to the team owning the service that the response should really be 403. But either way it will not make the api work for you.
At the moment this api will not work in a web application ... only if you're running the @qlik/api library in a NodeJS application with either an API key or a Oauth client with the type "Web" and M2M enabled ... with the classic/admin scope.

Thanks @nilzona! Appreciate you looking into this.
I will go ahead and set up an OAuth2-Web scenario and go from there.

Will close this one for now


Automated cherry pick of #3824: fix resize disk

Cherry pick of #3824 on release/2.13.
#3824: fix resize disk

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.13@4deaf1b). Click here to learn what that means.
The diff coverage is 52.63%.

@@              Coverage Diff               @@
##             release/2.13   #3825   +/-   ##
==============================================
  Coverage                ?   6.94%
==============================================
  Files                   ?     499
  Lines                   ?   84273
  Branches                ?       0
==============================================
  Hits                    ?    5854
  Misses                  ?   77923
  Partials                ?     496

Flag
Coverage Δ

#aFlag
6.94% <52.63%> (?)

Impacted Files
Coverage Δ

pkg/compute/guestdrivers/kvm.go
3.37% <0%> (ø)

pkg/compute/models/guests.go
0.59% <0%> (ø)

pkg/hostman/diskutils/nbd/nbdman.go
57.5% <83.33%> (ø)

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 4deaf1b...a824dad. Read the comment docs.


TypeError: 'float' object cannot be interpreted as an integer

Recent python script update : https://github.com/SteamDatabase/SalienCheat/commit/e8ad440d2cc0960b9bc3a68e1b40245df64afb63
Loops a few times on getting level and then crashes on
Player Level: 0it [00:00, ?it/s]
Planet progress: 0it [00:00, ?it/s]

                                ]

2018-06-22 15:50:11 | Loaded token from token.txt
Player Level: 0it [00:00, ?it/s]

Zone progress: 0it [00:00, ?it/s]
                                /s]

2018-06-22 15:50:12 | Getting player info...
Player Level: 0it [00:01, ?it/s]

Zone progress: 0it [00:01, ?it/s]
                                /s]

2018-06-22 15:50:12 | Finding planet...
Player Level: 0it [00:01, ?it/s]

Zone progress: 0it [00:01, ?it/s]
Player Level 10         51% |###############################################################4                                                             |      00:01 Planet progress: 0it [00:00, ?it/s]

2018-06-22 15:50:13 | Found 5 uncaptured planets: [4, 5, 6, 7, 8]
Player Level 10         51% |###############################################################4                                                             |      00:02

Zone  progress: 0it [00:01, ?it/s]
Player Level 10         51% |###############################################################4                                                             |      00:02 Planet progress: 0it [00:00, ?it/s]

2018-06-22 15:50:15 | Joining planet 8..
Player Level 10         51% |###############################################################4                                                             |      00:03

Zone  progress: 0it [00:01, ?it/s]
Player Level 10         51% |###############################################################4                                                             |      00:03 Planet progress: 0it [00:00, ?it/s]

2018-06-22 15:50:15 | Planet name: #TerritoryControl_PlanetMold-breaking_Metroidvanias_I (8)
Player Level 10         51% |###############################################################4                                                             |      00:04

Zone  progress: 0it [00:00, ?it/s]
Player Level 10         51% |###############################################################4                                                             |      00:04 Planet (8) progress      8% |##########2                                                                                |      00:09

2018-06-22 15:50:15 | Current players: 98370
Player Level 10         51% |###############################################################4                                                             |      00:04

Zone  progress: 0it [00:00, ?it/s]
Player Level 10         51% |###############################################################4                                                             |      00:04 Planet (8) progress      8% |##########2                                                                                |      00:09

2018-06-22 15:50:15 | Giveaway AppIDs: [340000, 251730, 201420, 334940]
Player Level 10         51% |###############################################################4                                                             |      00:04

Zone  progress: 0it [00:00, ?it/s]
Player Level 10         51% |###############################################################4                                                             |      00:04 Planet (8) progress      8% |##########2                                                                                |      00:09

2018-06-22 15:50:15 | Finding conflict zone...
Player Level 10         51% |###############################################################4                                                             |      00:04

Zone  progress: 0it [00:00, ?it/s]
Player Level 10         51% |###############################################################4                                                             |      00:04 Planet (8) progress      8% |##########2                                                                                |      00:09

Player Level 10         51% |###############################################################4                                                             |      00:04 Planet (8) progress      8% |##########2                                                                                |      00:09

2018-06-22 15:50:15 | Fighting in zone 88 (3) for 2mins
Player Level 10         51% |###############################################################4                                                             |      00:04

Zone  progress: 0it [00:00, ?it/s]
Player Level 10         51% |###############################################################4                                                             |      00:04 Planet (8) progress      8% |##########2                                                                                |      00:10

Zone  progress: 0it [00:00, ?it/s]Traceback (most recent call last):
  File "cheat.py", line 356, in <module>
    for i in range(120 / 2):
TypeError: 'float' object cannot be interpreted as an integer
Exception ignored in: <bound method tqdm.__del__ of Player Level 10         51% |#####     |      00:05>
Traceback (most recent call last):
  File "C:\Tools\python3\lib\site-packages\tqdm\_tqdm.py", line 882, in __del__
  File "C:\Tools\python3\lib\site-packages\tqdm\_tqdm.py", line 1087, in close
  File "C:\Tools\python3\lib\site-packages\tqdm\_tqdm.py", line 439, in _decr_instances
  File "C:\Tools\python3\lib\_weakrefset.py", line 109, in remove
KeyError: <weakref at 0x000001E889C55D18; to 'tqdm' at 0x000001E889C67470>
Exception ignored in: <bound method tqdm.__del__ of Planet (8) progress      8% |8         |      00:18>
Traceback (most recent call last):
  File "C:\Tools\python3\lib\site-packages\tqdm\_tqdm.py", line 882, in __del__
  File "C:\Tools\python3\lib\site-packages\tqdm\_tqdm.py", line 1087, in close
  File "C:\Tools\python3\lib\site-packages\tqdm\_tqdm.py", line 439, in _decr_instances
  File "C:\Tools\python3\lib\_weakrefset.py", line 109, in remove
KeyError: <weakref at 0x000001E889C55D18; to 'tqdm' at 0x000001E889C67BA8>
Exception ignored in: <bound method tqdm.__del__ of Zone  progress: 0it [00:00, ?it/s]>
Traceback (most recent call last):
  File "C:\Tools\python3\lib\site-packages\tqdm\_tqdm.py", line 882, in __del__
  File "C:\Tools\python3\lib\site-packages\tqdm\_tqdm.py", line 1087, in close
  File "C:\Tools\python3\lib\site-packages\tqdm\_tqdm.py", line 439, in _decr_instances
  File "C:\Tools\python3\lib\_weakrefset.py", line 109, in remove
KeyError: <weakref at 0x000001E889C55D18; to 'tqdm' at 0x000001E889C67C18>

dunno what you are running the code on, but progress bar are displaying wrong

Just running it on normal old command prompt on windows 10

I see. I haven't tried windows native python + cmd. But I wouldn't expect it to work properly. Try using cmder, it might get the progress bars to display correctly.

cmder outputs it the same way at first, but after the first zone and it starts actually doing the fighting and updating info it starts looking normal.
The big thing I mainly notice in the python script whenver I do a test run with them are that the timers at the end of the progress stuff is always counting up instead of counting down like the php scripts.


Missing tests

When running the code coverage there are still a few lines uncovered:
-------------------------------------|---------|----------|---------|---------|-------------------
File                                 | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------------------------|---------|----------|---------|---------|-------------------
All files                            |   98.62 |    94.48 |     100 |   98.62 |
 lib                                 |     100 |    88.88 |     100 |     100 |
  request.js                         |     100 |       90 |     100 |     100 | 15,36
  response.js                        |     100 |       90 |     100 |     100 | 16
  server.js                          |     100 |    83.33 |     100 |     100 | 18
 lib/errors                          |   99.09 |    91.66 |     100 |   99.09 |
  access-denied-error.js             |     100 |      100 |     100 |     100 |
  insufficient-scope-error.js        |     100 |      100 |     100 |     100 |
  invalid-argument-error.js          |     100 |      100 |     100 |     100 |
  invalid-client-error.js            |     100 |      100 |     100 |     100 |
  invalid-grant-error.js             |     100 |      100 |     100 |     100 |
  invalid-request-error.js           |     100 |      100 |     100 |     100 |
  invalid-scope-error.js             |     100 |      100 |     100 |     100 |
  invalid-token-error.js             |     100 |      100 |     100 |     100 |
  oauth-error.js                     |      95 |    91.66 |     100 |      95 | 18
  server-error.js                    |     100 |      100 |     100 |     100 |
  unauthorized-client-error.js       |     100 |      100 |     100 |     100 |
  unauthorized-request-error.js      |     100 |      100 |     100 |     100 |
  unsupported-grant-type-error.js    |     100 |      100 |     100 |     100 |
  unsupported-response-type-error.js |     100 |      100 |     100 |     100 |
 lib/grant-types                     |   99.61 |    97.14 |     100 |   99.61 |
  abstract-grant-type.js             |   97.56 |       85 |     100 |   97.56 | 101
  authorization-code-grant-type.js   |     100 |    97.72 |     100 |     100 | 147
  client-credentials-grant-type.js   |     100 |      100 |     100 |     100 |
  password-grant-type.js             |     100 |      100 |     100 |     100 |
  refresh-token-grant-type.js        |     100 |      100 |     100 |     100 |
 lib/handlers                        |    98.6 |    96.38 |     100 |    98.6 |
  authenticate-handler.js            |   98.97 |    98.38 |     100 |   98.97 | 63
  authorize-handler.js               |   98.59 |    96.55 |     100 |   98.59 | 43,215
  token-handler.js                   |   98.31 |    94.44 |     100 |   98.31 | 120,124
 lib/models                          |   82.14 |    73.07 |     100 |   82.14 |
  token-model.js                     |   82.14 |    73.07 |     100 |   82.14 | 19,23,27,31,35
 lib/response-types                  |     100 |      100 |     100 |     100 |
  code-response-type.js              |     100 |      100 |     100 |     100 |
 lib/token-types                     |     100 |    91.66 |     100 |     100 |
  bearer-token-type.js               |     100 |    91.66 |     100 |     100 | 51
 lib/utils                           |     100 |      100 |     100 |     100 |
  token-util.js                      |     100 |      100 |     100 |     100 |
 lib/validator                       |     100 |      100 |     100 |     100 |
  is.js                              |     100 |      100 |     100 |     100 |
-------------------------------------|---------|----------|---------|---------|-------------------

I checked the files and all of them were missing checks for thrown Errors/Exceptions. Since throwing specific errors in specific situations is a crucial part of the standard we should at least check, whether these errors are correct / compliant or not.

@jorenvandeweyer made already the first step for real integration tests in his #100 PR
Tbh I think we should implement more of those tests.

I agree!

Will be covered in V5 release. see #219


sam local start-api sends timeouts on some computers

Hello
I am running version 0.41.0 of aws-sam-cli. When running the template hello world of go. On some computers we get the error "timeout 5 seconds" on those same computers sometimes it works and sometimes it doesnt. We have increased the timeout up to 60 seconds and nothing. All computers are running Ubuntu 18 LTS.  When creating a node project the api url works correctly.
Has this happened to anyone?

Interesting, does --debug have any clues?

Closing.
Feel free to reopen if there is further information or issue.


Imposible to use many sliders in the same time on a device with touch screen (by multitouch)

Steps to reproduce

Having a device with a touch screen
Having two sliders on the same screen
Start dragging first slider
Start dragging second slider in the same time using another finger
Continue dragging both sliders in the same time
Demo: http://jsfiddle.net/1o71k7j5/1/

Expected behaviour
Both sliders are dragged correctly, according to the corresponding finger that initiated the drag
Actual behaviour
Only the second touched slider is moving when moving both fingers. Also this slider moves incorrectly because it follows the movement of the finger that initiated the drag on the other slider.
Notes
We already done some internal test by extending your component and adding the fix to the above issue. We want to create a pull request for this change. But before starting to integrate this fix on your library we would like to know if you think that it would be ok to integrate it?
Thank you and looking forward for your response.

Hello. Any pull requests are always welcome. The only conditions are:

it does not break other features
it keeps the test coverage at 100%

Thus, I would be more than happy to provide any useful information if you need. ;)


Components Library

Tasks:

[x] Milestone 1 - Components Library Infrastructure

~Setup storybook~
~Create migration plan for existing components (see readme.md)~
Create Jest visual snapshot tests (see Storyshots)
Generate snapshot of storybook for every PR

Make sure that the storybook is building
Copy everything from the dist folder of the storybook into the snapshot folder (see prepareSnapshot.ts)

[ ] Milestone 2 - Extract Node System from NME

Copy all node graph components to shared components library
Remove dependencies on Babylon
Create stories for node graph
Create local styling for node graph in .scss files so it can be imported anywhere and look right (instead of relying on application-specific stylesheets)
Delete node graph components in NME and integrate the shared components version
Refactor node graph to be "React-ive" (ie using components, JSX, props rather than imperatively adding DOM elements)

[ ] Milestone 3 - Extract GUI editor components

Extract each UI element from GUI editor one-by-one, prioritizing components that will be used in VSM

If it's already an independent component, move it to the shared components library. If not, create a new component
Extract styling from GUI editor stylesheets into local component-based styles
Rewire the GUI editor to use the shared component

Tentative list of components needed:

Bar
Divider
ColorDisplay
ColorPicker
LabelAndElement
Toggle
NumericInput
PaneGroup
Pane
Icon
TextInput
UnitButton
PropertyLine
SwitchInput
DropDownInput
SliderInput
ColorInput

At this point, we are ready to build VSM

[ ] Milestone 4 - Extract remaining UI components, use them inside of our existing tools

Will need to plan this at a later stage

Design Goals

[ ] Alignment of UI language across tools

Design layout of Inspector utilizing design language from GUI Editor
Update layout for ACE utilizing design language from GUI Editor
Update layout for NME utilizing design language from GUI Editor
Update layout for Texture Editor utilizing design language from GUI Editor
Validate layout for Performance Profiler
Design layout for embedded version of Performance Profiler

[ ] Accessibility

Define dark mode/light mode parameters for our design language
Validate our tools for baseline accessibility using MS tooling

[ ] New Assets

Create glyph fonts for icons to reduce overhead of image downloads
Identify how to split icon sets to multiple fonts so that our downloads are as small as possible for the given tool
New icons as needed for above designs
New component layouts as needed for tool parameters that don't conform to the components specified in GUI Editor

Closing as @carolhmj is doing this step by step when needed as part of the work for VSM


How to add new Team Sites?

Category

[x] Question
[ ] Bug
[ ] Enhancement

I am trying to modify starterkit.xml to add 3 more team sites. As @erwinvanhunen explained in this video: PnP Webcast - Introduction to PnP Tenant Templates, I modified the xml file, and saved it as a new .pnp file. However, when I am trying to apply it, I am getting an error as below:
Message: {"DocumentsUrl":null,"ErrorMessage":null,"GroupId":"41caf2ed-db30-4b5d-bd0d-f46e7b007d8a","SiteStatus":1,"SiteUrl":null}
Is there something else that I need to change/add? There is not any hierarchy.json to modify. Thank you for the help.
Thanks for your contribution! Sharing is caring.

Hi, I noticed this was an old ticket, and I'm just checking to  see if you found a solution ,or if you no longer need support on this.  If so, we'll close the ticket. Thanks!


[DO NOT MERGE] Bump UAA to 75.7.0

What
Bumping UAA to version 75.7.0 in line with cf-deployment 16.23.
With this, we are also switching back to using upstream over our locally maintained fork, as a PR with a bugfix for expiring invite links was finally merged.
This also addresses CVE-2021-22001 for the platform.
How to review

Code review
Deploy to dev-environment (currently rolling out to schmie)
Manually test that the sign-up process for new users is indeed working as expected (prior invitation links were not working).

How to deploy
Please note, that this branch is currently branched off branch bump-cf-deployment-to-16.23 and will need a git rebase origin/main before merging, once the PR for that branch has been merged.

🚨⚠ Please do not merge this pull request via the GitHub UI ⚠🚨

This seems to still be breaking / prematurely expiring sign-up links for users.


Android Chrome Performance issue when rendering a large ImageLayer with a static source

Describe the bug
Currently, OpenLayer's performance on an Android phone using chrome is much worse than using Firefox when rendering a large ImageLayer with a static source, say a 10,000 x 7,000 pixels image.
To Reproduce
Steps to reproduce the behavior:

Open the example project reproducing the issue, which was forked from the static image example, found here on both Chrome and Firefox on Android (Tested on Oneplus 7 Pro running Android 11)
Run the example
Try pinching to zoom and panning
Notice that on Chrome, pinching to zoom will be smooth for a second, and then completely freeze the page for a couple seconds, back and forth, while on Firefox, the freezing doesn't occur

Expected behavior
Both Chrome and Firefox to be able to pinch to zoom and pan without freezing every few seconds.

@ahocevar Sorry for disturbing, but I just wanted to know if this bug is acknowledged, or was successfully reproduced, since there has been no comment on it, so I thought it flew under the radar. Thanks.

@KhatibFX I noticed that the example is even slow on my desktop in Safari, but given the pixel size of the image, this is not a surprise. Handling huge images is obviously very different in different browsers. My recommendation would be to use a different technique than a static image, e.g. a cloud optimized GeoTIFF or create tiles.
There might be ways to make OpenLayers handle huge images better, but I personally don't have the resources to investigate that further. If you have, or know someone who has, we'd of course accept a pull request with any improvements that people could come up with.

@KhatibFX Please test if #14444 improves the situation for you.


body.shouldCollide documentation is inaccurate in use of the word "prevent"

/**

This is used to test if bodies connected by the same joint will register a collision.
Returns false only if body is in joint list and its collideConnected flag is false
*/

/**

This is used to prevent connected bodies (by joints) from colliding,
depending on the joint's collideConnected flag.
*/
shouldCollide(that: Body): boolean {
// At least one body should be dynamic.
if (this.m_type != DYNAMIC && that.m_type != DYNAMIC) {
return false;
}
// Does a joint prevent collision?
for (let jn = this.m_jointList; jn; jn = jn.next) {
if (jn.other == that) {
if (jn.joint.m_collideConnected == false) {
return false;
}
}
}
return true;
}

/**
 * This is used to test if bodies connected by the same joint will register a collision.
 * Returns false only if body is in joint list and its collideConnected flag is false
  */

/**
 * This is used to prevent connected bodies (by joints) from colliding,
 * depending on the joint's collideConnected flag.
 */
shouldCollide(that: Body): boolean {
  // At least one body should be dynamic.
  if (this.m_type != DYNAMIC && that.m_type != DYNAMIC) {
    return false;
  }

  // Does a joint prevent collision?
  for (let jn = this.m_jointList; jn; jn = jn.next) {
    if (jn.other == that) {
      if (jn.joint.m_collideConnected == false) {
        return false;
      }
    }
  }
  return true;
}

Thanks, fixed it in the source code (will generate updated api docs soon).


Navbar not working in mobile devices

Yep reproduced! The trick will be comparing with https://fly.io/docs/ and figuring out what I stripped out that removed the functionality. I do remember testing it early on (and I think it worked) so likely I fussed something up.

Our page is missing essential javascript functionality as https://fly.io/docs/ has. This minified javascript file has our required menu toggle, I'm talking about https://fly.io/public/javascripts/docs.js , but it includes several other things like js for algolia search as well.

Thanks that's helpful! I must have removed it and not checked all functionality. I'm at work but will put in a PR later this evening to fix it up.

okay @heykapil please test! https://github.com/vsoch/tw-jekyll/pull/4

Not working. Thanks for trying out ! I have removed extra code from https://fly.io/public/javascripts/docs.js to this https://imkapil.netlify.app/assets/js/menu.js
This worked for me. Please see it in action from any mobile device. https://imkapil.netlify.app

Thats's weird, because it worked locally for me. Could you please open a PR with your fix for me to test?

Also it works fine in my preview.... https://9-447414597-gh.circle-artifacts.com/0/tw-jekyll/docs/index.html
screen shot after I turned into mobile and clicked the menu. Are you sure you tested the right thing?

Yup, menu is working in this https://9-447414597-gh.circle-artifacts.com/0/tw-jekyll/docs/index.html preview. Also, it is including algolia search engine for fly.io, look how search looks in desktop mode.

ah that's the reason it's not working! Could you please provide that as clear feedback next time, because I was only looking at the explicit opening /closing of the menu and did not look at the search.
I've updated the PR and here is the new preview: https://10-447414597-gh.circle-artifacts.com/0/tw-jekyll/index.html

Thanks @vsoch , Menu is working. Noticed in preview that menu button when clicked to expand items moves a bit right and when clicked to close menu items, it moves bit left. Similar thing here https://imkapil.netlify.app/
Just this small tweak and you can close this issue.

I'm going to merge the PR since the issue is already present and the PR is an improvement, and if you have a suggested fix I'd be happy to test it out in another one. Thanks!

It doesn't bother me that much, so I don't see actively working on it for a fix, but I will leave the issue open if others have suggestions. Thanks again!


Add: Label TV

Channel Name
Label TV
Alternative Names (optional)
No response
Network (optional)
No response
Owners (optional)
No response
Country
SN
Subdivision (optional)
No response
City (optional)
Dakar
Broadcast Area
c/SN
Languages
fra
Categories (optional)
news
NSFW
FALSE
Launched (optional)
No response
Closed (optional)
No response
Replaced By (optional)
No response
Website (optional)
https://www.labeltelevision.com/direct
Logo
https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSIvM1cQHntfFoBUYfNw8BOqmttTOTpo5VFRRao1RN9q4bLoG-awMNo7jCkiPL9eFKfYDw&usqp=CAU
Notes
No response

Already in the database: https://iptv-org.github.io/channels/ga/LabelTV


Maintain Uniformity while Navigating

Footer position can be fix while navigating to different sections

Counter
Timer
World Clock

Please assign me this issue my PR is ready to be merged

Please assign me this issue my PR is ready to be merged

Okay

@param-code I'd like to work on this issue, could you please assign it to me?"


one tabnine process for all IDE including vscode, sublime, IDEA?

I see that tabnine launches one process per editor of vscode, sublime, IDEA. Can we have one tabnine process shared by all of them so that it can take less resource in PC?

Linking it to #238 (contains more information) and closing it as duplicate


Proposal to upgrade svelte 4.x -> 5.x

Request for Upgrading of svelte 4.x to 5.x for the admin ui.

Please don't open issues like this or at least elaborate why that would be beneficial. Are there any issues with the current version that you are experiencing?
In any case, there are plans to rewrite the Admin UI to make it extendable but that remains a low priority for now.


jello demo not working

On your animation testing page, the "jello" option doesn't work. Other than that, really awesome, clear documentation and examples!

"Jello" is working now. Check it. Press the "animate it" button if you're still having trouble.


Create hexagone.txt

https://hexagone.academy

@miasolutions I am sorry, I have to close the request without merging, because this organization is a training center, not a college, nor a university. Please ensure that you are familiar with this repository rules located at the bottom of this page.
Please apply for an appropriate licensing option (which may also be free) at https://www.jetbrains.com/community/education/#courses
Thank you for the understanding!


[Build] Add explicit -module-name for release compiles

It really bugs me that we have very different behavior for debug vs release, can we just resolve that?

What do you mean? Use swift tool instead of shell for release builds?

Yeah, they have pretty different behavior (e.g., release builds aren't properly handling dependencies because of this).

done but It looks like to use -whole-module-optimization need to hack a bit on llbuild and generate different -output-file-map where "" contains paths to .o and .d, I'll try to get that in soon.

This PR is now dependent on merge of https://github.com/apple/swift-llbuild/pull/28

@swift-ci please test

@swift-ci please test

@mxcl @ddunbar please review

LGTM, one request which can be cleaned up in a follow on.

followup here:  https://github.com/apple/swift-package-manager/pull/319


update master branch for metacontrol_sim

Currently is behind MVP_world

The MVP_world has been merged in https://github.com/rosin-project/metacontrol_sim/pull/48
@chcorbato  Do we need to update anything else?

Looks complete to me: #63
We need to check with Nadia about the repo rosin-experiments


feature: add transform() operation to transform shapes by a 4x4 matrix

Expected Behavior
We need to have a transform(matrix, object(s)) operation similar to Openscad's MultMatrix
Actual Behavior
There is none
Steps to Reproduce the Problem
there is no such function.
Specifications

Version: Any
Platform: Any
Environment: Any

This has now been added to https://github.com/jscad/scad-api starting at version 0.5.0 and will be included here soon.

Closed by #340


Disable linters temp

Add necessary functionality to sass-lint for use.

Coverage decreased (-0.04%) to 97.337% when pulling c9a3b658aa7b2f06915a108e68c397d24b6451aa on macdonaldr93:disable-linters-temp into a4db3f85bd3cb38bfe329c168ca006198055175c on sasstools:develop.

Coverage decreased (-0.04%) to 97.337% when pulling 646a7bf749ccbec3887ed025955e7d23d5db2c09 on macdonaldr93:disable-linters-temp into a4db3f85bd3cb38bfe329c168ca006198055175c on sasstools:develop.


did you try this project on labelstudio?

Hello,
I want to train the model on a custom dataset. To do I have to annotate some images on labelstudio. Did you try to integrate this project on labelstudio?

@widedh no I haven't integrated it, what you can do is, do the annotations using this code, & cross verify the annotionas which are not correct, then you can use any tool to do it manually, but it's not giving 100% accuracy to all images.


Font in Path route is too small

What happened?
The font in the Paths page is too small. Make it bigger.

This bug is fixed by #457. 😎


Requirements

Thank you for making this library available. I followed the requirements below on my virtual environment:
python (3.5-3.6)
Tensorflow <= 1.15
Numpy
sklearn
I use python 3.5.6, Tensorflow 1.14.0, NumPy 1.16.4, scikit-learn 0.20.1 but I am still having requirement issue below on that virtual environment:
ERROR: Could not find a version that satisfies the requirement DAGMM
ERROR: No matching distribution found for DAGMM
Can you please clarify the requirements? That would be great.

@aktaseren

I use python 3.5.6, Tensorflow 1.14.0, NumPy 1.16.4, scikit-learn 0.20.1 but I am still having requirement issue below on
that virtual environment:

I think package versions in your environment are sufficient to execute dagmm.
I used to check package dependency, I wrote down Dockerfile in feature branch,
executed test code. This code was executed correctly.
feature branch : https://github.com/tnakae/DAGMM/compare/feature_docker-image
Procedure

check out feature branch

git checkout feature_docker-image

build image and execute test code

docker-compose up --build

Message from test code (omitted warnings)
dagmm_1  |  epoch 100/1000 : loss = 2.821
dagmm_1  |  epoch 200/1000 : loss = 2.047
dagmm_1  |  epoch 300/1000 : loss = 1.942
dagmm_1  |  epoch 400/1000 : loss = 1.889
dagmm_1  |  epoch 500/1000 : loss = 1.834
dagmm_1  |  epoch 600/1000 : loss = 1.771
dagmm_1  |  epoch 700/1000 : loss = 1.676
dagmm_1  |  epoch 800/1000 : loss = 1.474
dagmm_1  |  epoch 900/1000 : loss = 1.228
dagmm_1  |  epoch 1000/1000 : loss = 1.003
dagmm_1  | fitted_energy = -2.398
dagmm_dagmm_1 exited with code 0

@tnakae thank you for that quick recommendation and docker image. The docker image guided me well. Weirdly, from sklearn.externals import joblib line was making an error on these requirements. Joblib is removed from scikit-learn as its own library although I made it downgraded to scikit-learn 0.20.1. I updated that line as import joblib in dagmm.py on my local machine. It is working now.


Push icon is a filled square of accent color or a monochrome

I can't get the push icons to show up for android devices.
icon is:

I apply the accent color and add it to my manifest as:
in config.xml
<config-file parent="/manifest/application" target="AndroidManifest.xml">
            <meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@drawable/notification_icon" />
        </config-file>

in package.json
      "cordova-plugin-firebasex": {
        "ANDROID_ICON_ACCENT": "#FF0076B2"
       }

the issue is during push for android devices,

either the push icon is in monochrome or

the push icon is a filled accent rectangle

I checked the platform folder and see all the mdpi, ldpi xhdpi monochrome drawables called "notification_icon.png" there.

Android only supports monochrome icons in the statusbar - polychromatic images are not supported.


changelog: Fix repetition of feature levels in changelog.md.

This typo was introduced in 70c0abc2e59d9b221a.

Merged, thanks for fixing @sahil839!


Run static code analysis on a daily schedule

User Story

Value

Questions / Assumptions

Definition of done

[ ] readme has been updated
[ ] user docs have been updated
[ ] another team member has reviewed
[ ] tests are green

Reference
How to write good user stories

PRs to resolve across multiple repos
https://github.com/ministryofjustice/modernisation-platform/pull/1231
https://github.com/ministryofjustice/modernisation-platform-terraform-bastion-linux/pull/20
https://github.com/ministryofjustice/modernisation-platform-environments/pull/162
https://github.com/ministryofjustice/modernisation-platform-ami-builds/pull/9
https://github.com/ministryofjustice/modernisation-platform-terraform-ecs/pull/6

https://github.com/ministryofjustice/modernisation-platform/pull/1243
https://github.com/ministryofjustice/modernisation-platform-terraform-bastion-linux/pull/22
https://github.com/ministryofjustice/modernisation-platform-environments/pull/171
https://github.com/ministryofjustice/modernisation-platform-ami-builds/pull/14
https://github.com/ministryofjustice/modernisation-platform-terraform-ecs/pull/8


Cleanup ldap demo data

After users have been synced the following message is logged:
kopano_server | Mon Nov 12 21:45:45 2018: [error  ] Not all objects in relation found for object "sales"
kopano_server | Mon Nov 12 21:45:45 2018: [error  ] Not all objects in relation found for object "dutch-users"
kopano_server | Mon Nov 12 21:45:45 2018: [error  ] Not all objects in relation found for object "groep1"

There must be must be an obsolete reference in the ldap import.

I already created a small LDAP image which creates a full LDAP tree based on environment variables.
Look here:
https://github.com/nupplaphil/kopano-ldap/tree/initial_docker/docker
I can add it per PR to this repo if wanted

Hi, it seems we have chosen a similar base for our ldap efforts. I do like the possibility to have some demo users in the ldap. Do you think you can integrate this easily into your pr (e.g. have a default env to import demo users)?

I'm believing that docker images should be build for out-of-the-box productive environment usage. Therefore I don't think that having demo-data in an image is best practice for docker images.
Normally you have something like an .example directory to store such demo-data and their usage.
If I'd see a "kopano/ldap" image. I'd like to include it in my docker environment and start it with my domain.
=> And I got 3 demo-users as well without wanting them.

Ah I understand your point of view :-)
This is right for companies, but not for "private nerds" as I am. I know from nextcloud or similar other open source projects that they deliver some kind of out-of-the-box environments for private usage as well.
But it's not a problem if you/we don't like it in this repository. I can make a fork of the ldap directory and create a docker-hub-image based on the latest changes of this repository :-)

Maybe as a result out of this the readme could make it clearer that the bundled ldap is optional and how to modify the git repo to remove the demo users?

hm .. Sorry for hijacking this issue. Shall I open a new one? :-(
I think the ldap image isn't usable for companies, because - as you said - they are using their own ldap environment and it isn't usable for private persons, because of the demo data.
So if a private person wants to use a full-blown mailserver, it has to adapt the ldap-image before using it. Maybe we can adapt the Makefile to make an ldap test environment and an ldap production environment. I think we should service the ldap image as easy as possible so everybody can use it nearly out-of-the-box :-)
So I'd rather prefer  to adapt the README to explain how to add a demo-data-set if wanted (make build-test ?)


private method `include' called for String:Class (NoMethodError)

Gemfile
# A sample Gemfile
source "https://rubygems.org"

gem 'kumogata2'
gem 'amino'
gem 'rake'

group :development do
  gem 'pry'
  gem 'pry-doc'
end

Run Commands
$ bundle
$ kumogata2
/Library/Ruby/Gems/2.0.0/gems/kumogata2-0.1.5/lib/kumogata2/ext/string_ext.rb:35:in `<top (required)>': private method `include' called for String:Class (NoMethodError)
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/kumogata2-0.1.5/lib/kumogata2.rb:16:in `<top (required)>'
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/kumogata2-0.1.5/exe/kumogata2:3:in `<top (required)>'
    from /usr/bin/kumogata2:23:in `load'
    from /usr/bin/kumogata2:23:in `<main>'

Thanks for your report 😃
This issue has been fixed.
Please try v0.1.6

Thanks!
but another problem happend...
% kumogata2 convert single-hvm.rb
[ERROR] undefined method `match' for nil:NilClass

% kumogata2 list
[ERROR] undefined method `match' for nil:NilClass

Please write your ruby version and run kumogata2 wih --debug option, and puts backtrace.

# A sample Gemfile
source "https://rubygems.org"

gem 'kumogata2'
gem 'amino'
gem 'rake'

group :development do
  gem 'pry'
  gem 'pry-doc'
end

$ kumogata2 convert single-hvm.rb --debug
[ERROR] undefined method `match' for nil:NilClass
/Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/aws-sdk-core/endpoint_provider.rb:67:in `block in partition_matching_region': undefined method `match' for nil:NilClass (NoMethodError)
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/aws-sdk-core/endpoint_provider.rb:66:in `each'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/aws-sdk-core/endpoint_provider.rb:66:in `find'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/aws-sdk-core/endpoint_provider.rb:66:in `partition_matching_region'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/aws-sdk-core/endpoint_provider.rb:55:in `get_partition'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/aws-sdk-core/endpoint_provider.rb:26:in `endpoint_for'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/aws-sdk-core/endpoint_provider.rb:10:in `resolve'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/aws-sdk-core/endpoint_provider.rb:80:in `resolve'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/aws-sdk-core/plugins/regional_endpoint.rb:24:in `block in <class:RegionalEndpoint>'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/seahorse/client/configuration.rb:64:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/seahorse/client/configuration.rb:64:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/seahorse/client/configuration.rb:199:in `block in resolve_defaults'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/seahorse/client/configuration.rb:57:in `each'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/seahorse/client/configuration.rb:57:in `each'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/seahorse/client/configuration.rb:198:in `resolve_defaults'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/seahorse/client/configuration.rb:194:in `value_at'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/seahorse/client/configuration.rb:183:in `block in resolve'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/set.rb:232:in `each_key'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/set.rb:232:in `each'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/seahorse/client/configuration.rb:183:in `resolve'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/seahorse/client/configuration.rb:171:in `apply_defaults'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/seahorse/client/configuration.rb:144:in `build!'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/seahorse/client/base.rb:68:in `build_config'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/seahorse/client/base.rb:19:in `initialize'
	from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.3.11/lib/seahorse/client/base.rb:105:in `new'
	from /Library/Ruby/Gems/2.0.0/gems/kumogata2-0.1.6/lib/kumogata2/client.rb:6:in `initialize'
	from /Library/Ruby/Gems/2.0.0/gems/kumogata2-0.1.6/exe/kumogata2:18:in `new'
	from /Library/Ruby/Gems/2.0.0/gems/kumogata2-0.1.6/exe/kumogata2:18:in `main'
	from /Library/Ruby/Gems/2.0.0/gems/kumogata2-0.1.6/exe/kumogata2:46:in `<top (required)>'
	from /usr/bin/kumogata2:23:in `load'
	from /usr/bin/kumogata2:23:in `<main>'

``ruby
$ ruby -v
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]

Thanks!

Thank you for your report 😃
Please try the following:
gem update kumogata2
gem update kumogata2-plugin-ruby
export AWS_REGION=ap-northeast-1
kumogata2 convert single-hvm.rb

I'm sorry to late...
I try it again today, then it works completely!!
$ kumogata2 validate example.rb
Template validated successfully

$ kumogata2 convert example.rb
{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Description": "Kumogata Sample Template\nYou can use Here document!\n",
  "Parameters": {
    "InstanceType": {
      "Default": "t2.micro",
      "Description": "Instance Type",
      "Type": "String"
    }
  },
  "Resources": {
    "myEC2Instance": {
      "Type": "AWS::EC2::Instance",
      "Properties": {
        "ImageId": "ami-XXXXXXXX",
        "InstanceType": {
          "Ref": "InstanceType"
        },
        "KeyName": "your_key_name",
        "UserData": {
          "Fn::Base64": "#!/bin/bash\nyum install -y httpd\nservice httpd start\n"
        }
      }
    }
  }
}

Thanks for support me :)

Thanks!


Stacked Chards doesn't work if any modifiers applied

Checklist

[* ] I updated the card to the latest version available
[ *] I cleared the cache of my browser
[ *] I verified that I'm really running the lastest version in my browser console
[* ] I checked if there is another issue opened with the same problem - reporting differently, but same, but different

Describe the bug
Whenever you modify the graph and ask for stacking to be implemented it breaks the stacking of the graphs.
ie if you modify the yaxis command to remove the values on the side, or ask it to remove the values in the legend or apply a min or max value it fails to render the stack at all.
When producing a stacked graph the memory that is being used in Chrome and Firefox skyrockets so much that it often causes the tab to crash. Over 1.5GB up to 2.5GB per tab.
Version of the card
Version:2.12
Makes it impossible to edit the page by the GUI editor as it simply hangs the page whilst it reloads, uses bup the memory and crashes.

I think that I have the same issue.
Updated from version 2.0.4 to 2.1.2 - this breaks stacked charts that have been working for a long time.
Tried to roll back:

2.1.1 Still broken
2.1.0 Still broken
2.0.4 Works again!

2.0.4

2.1.2

When is this going to get fixed? It looks like it's been a bug that's been around for some time now and no updates in sight!

Still not been fixed
18 Dec 2024 10:41:24 github-actions[bot] @.***>:

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.
—
Reply to this email directly, view it on GitHub[https://github.com/RomRider/apexcharts-card/issues/790#issuecomment-2550185690], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AA5UBEHZFCKI6DPLOYP4BYL2GDOFHAVCNFSM6AAAAABQAPQAKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJQGE4DKNRZGA].
You are receiving this because you authored the thread.
[Tracking image][https://github.com/notifications/beacon/AA5UBEEOV7LHEUUQECNUI332GDOFHA5CNFSM6AAAAABQAPQAKSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUYAC7NU.gif]


orb-mcu-util: hw rev: overwrite file if content is different

to prevent useless writes to flash.
++ use tokio::fs instead of std::fs

@TheButlah i noticed the issue while trying to make this command smarter 😬


Support JSON mode.

Any plan to integrate modules such as lm-format-enforcer. Support JSON mode.

Yes! This is our top priorities.

Is there currently any work happening here? I could look into it if not.

context-free grammar

it would be cool if the llama cpp GBNF grammars could be standardize so we can do stuff like the image , between different LLM frameworks.

In our roadmap, anything https://github.com/outlines-dev/outlines supports can be part of vLLM, as long as any other frameworks that support LogitsProcessors API.

This looks good, just read through outlines - seems super useful.
When do we get it :D

Have someone done benchmark on latency introduced by outlines?

Is this already supported as described here https://github.com/vllm-project/vllm/issues/1191?

I would also love to see this feature make it into vllm!

Is this already supported as described here #1191?

I suspect the same ...
e.g. https://github.com/vllm-project/vllm/pull/3211

"request_format": { "type": "json_object" } seems to work for me. Also requires a prompt specifically asking for json response.

Is this already supported as described here #1191?

I suspect the same.
Specifically https://github.com/vllm-project/vllm/pull/3211 implements handling for "request_format": { "type": "json_object" } in the completion request body, which is what I'm familiar with when we say "JSON mode".

Yep, that should do it.


Pwdlocker flux like

Propagating method handleAction from top component toward second level of children cause problems.
Exactly, method handleAction that is passed from PWDLocker component to the Password component via Passwords component, which creates Password component, cause Type error in console.

Not needed anymore


Creating a Diagnostic Setting to a FunctionApp to log to a Log Analytics Workspace

Library name and version
Azure.ResourceManager.AppService 1.0.01, Azure.ResourceManager 1.4.0
Query/Question
I want to configure the FunctionApp to log to a Log Analytics Workspace using the Diagnostic Setting. However I can't see how to do this with the Azure.ResourceManager api.
I have created a function using the following code:
var webSiteData = new WebSiteData(location);
webSiteData.Kind = "functionapp";
var funcResponse = await resourceGroup.GetWebSites().CreateOrUpdateAsync(WaitUntil.Completed, functionName, webSiteData);
var funcResource = funcResponse.Value;

There's a GetSiteDiagnostics() but no equivalent Update method. There's very limited samples for this API and even looking through the source code is hard as the comments are all autogenerated seem to restate class/method names - is there some other resource that would help?
Any help would be appreciated!
Environment
.Net runtime
Visual Studio for Mac.

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

Hi @richaplinvs Thank you for using Azure SDK for .NET.
It seems like you are looking at a wrong package. The correct package would be:Azure.ResourceManager.Monitor
The code sample you may refer:
     //Create a Diagnostic Setting
     var scope = appServicePlan.Id;
     var dsname = "ds1";
     var diagnostSettingCollection = client.GetDiagnosticSettings(scope);
     var diagnostSettingData = new DiagnosticSettingData()
     {
         WorkspaceId = new ResourceIdentifier(workspace.Id),
         StorageAccountId = new ResourceIdentifier(storageAccount.Id),
         Metrics =
         {
             new MetricSettings(true)
             {
                 Category = "AllMetrics",
             }
         }
     };
     var diagnost = await diagnostSettingCollection.CreateOrUpdateAsync(WaitUntil.Completed, dsname, diagnostSettingData);
     Console.WriteLine(diagnost.Value.Data.Id);


Unique Track IDs?

Just came across this and its brilliant.
thanks.
Is there a way of retrieving the unique ID for tracks?
regards

Last.fm doesn't return musicbrainz IDs consistently for all tracks, so this package just filters that field out.


Custom handling of google, facebook authentication

Hello, does anyone know how to add custom handling of side-provider auth request (google e.t.c.). We need to path additional data for user with auth request, but I can't find how to handle it.
Here is example workflow:

User press auth/register via Google
We adding some custom data to request (chosen user language for example)
Hasura receiving the data and handle it. Here we need somehow to catch additional data we sent and store it into database

You should be able to do that yourself. In the user_providers table there is an access token with the requested scopes you can use to get extra information and do whatever you need with it so my advice would be to create an event on insert on that table and write a serverless function that uses the token to retrieve the information and update the user's data via graphql.

Hi @dbarrosop, thank you for the answer, but I'm not sure where I should make request with this token? I see this table, but htere is only two tokens provider's name and some more ids with no scopes. What should I call?
Thank you in advance

The access token is for the provider in question so you will have to consult their documentation to know which endpoints/requests you need to perform. There are some examples here for inspiration.

Great, thank you very much!)


Bump Aptible CLI to v0.9.0

cc @fancyremarker
I'm also making a little change here to run the specs as part of the build.

All right, well, I tried, and didn't work..! (we don't have the test deps in the build)
We should try and find a better way to ensure the dependencies we ship and the dependencies we test are identical, without shipping all our test dependencies.


cmd/link: relocation target type not defined

What version of Go are you using (go version)?

$ go version
go tip

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env

What did you do?

package main

type Foo[T any] interface {
	CreateBar() Bar[T]
}

type Bar[T any] func() Bar[T]

func (f Bar[T]) CreateBar() Bar[T] {
	return f
}

func abc[T any]() {
	var b Bar[T] = func() Bar[T] {
		var b Bar[T]
		return b
	}
	var _ Foo[T] = b()
}

func main() {
	abc[int]()
}

What did you expect to see?
What did you see instead?
main.main: relocation target type.noalg.main.Foo[main.T₄] not defined

I can't reproduce with:
go version devel go1.18-8854368cb0 Sat Sep 25 01:24:46 2021 +0000 darwin/arm64

I can't reproduce with:
go version devel go1.18-8854368cb0 Sat Sep 25 01:24:46 2021 +0000 darwin/arm64

Cl352117  also fixed this issue.
I think this is another case of Cl352117 .  I want to add a test case, just to cover this.


Update five-simple-examples.doc.js

Fixes https://github.com/facebook/flow/issues/1526

@facebook-github-bot shipit


WM touch/pen warning messages after 1.9.1

[WARNING           ] [Input       ] WM_Touch/WM_Pen not supported by your version of Windows
[WARNING           ] [Base        ] Unknown <wm_touch> provider
[WARNING           ] [Base        ] Unknown <wm_pen> provider

Introduced by https://github.com/kivy/kivy/commit/5a9a29f8e8e753b38226999f66365d96fc4b6293.
@tshirtman pingly.


fix(deepMap): incorrect previous value when listening deep store

To use structuredClone as part of the core, we would have to rewrite notify, which would add about 20 bytes to the atom, just to support deepMap mutability.
I think until we make notify a public API, it's better to use structuredClone only inside deepMap.

Thanks. Released in 0.10.3.


[BUG]: enumerations are camelCase and not UPPERCASE

Chapter 6.1.3 (page 10) states that enumerations have be in upper case. Still the following enumerations are in lower case:

state->actionState->actionStatus (page 39)
state->error->errorLevel (page 40)
state->safetyState->eStop (page 40)

This also applies to action blocking types in section 6.12, they're capitalized, though in other parts of the spec camelCase is used for other elements of the protocol.

It was discussed during meetings that all values for enumerations shall be UPPERCASE. Whenever this is not the case, be it in the JSON Schemata or in the specification document, it is an error.
For future implementations, please always use uppercase enums as values.
As soon as we have a process how to treat these bugfixes in regard to the specification document, we will update the document and schemata.

Discussion within VDA and VDMA started

Fixed in https://github.com/VDA5050/VDA5050/commit/3d4590b828943f2247eed1b10c72b45062ec6204


[doom-gruvbox] Inconsistencies with official colour specs

According to the official gallery here https://github.com/morhetz/gruvbox/wiki/Gallery, constants should be gruvbox-violet, and types should be gruvbox-yellow.
I have created a PR, you can find it here: https://github.com/hlissner/emacs-doom-themes/pull/471

Merged.


Buff magnum

Magnum ammo upgrades

About the PR

Improvements to the magnum ammo so that revolvers are not bad weapons, thanks to metalgearsloth for fixing the vector issue, now revolvers can crit a target without armor in three shots
Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

:cl:

tweak: After detectives complained about the weakness of the .45 magnum cartridge, NT upgraded the cartridge to a higher lethal force.

After accepting this change, I will change the revolvers so that they differ from each other

ah nice this will be interesting


Enable changing the API Secret in case it is compromised

This would require a call from the API consumer that provides the API Secret, which we could then use to decrypt the TOTP Keys, re-encrypting them with a new API Secret that we then return to the consumer.

Putting in backlog to consider.


Timber::get_posts() return too many posts when querying multiple post_types and using sticky_posts

Expected behavior
Given an array of wp_query arguments with a numberposts value set, Timber::get_posts() should return that number of posts maximum, irrespective of the other query arguments.
Also: Timber::get_posts() should return the exact same posts as WordPress' get_posts() given the same arguments.
Actual behavior
Timber::get_posts() returns more than numberposts posts when using an array of post types in combination with some sticky posts. It looks like the sticky posts get added to the posts-array afterwards, increasing the number of posts by the number of sticky posts.
If ignore_sticky_posts=true is added to the query arguments, the correct number of posts is given.
Note that using WordPress' get_posts() does return the correct amount because ignore_sticky_posts=true is defined as default in get_posts() (wp-includes.php/post.php:1759).
Steps to reproduce behavior

Create a query-arguments array with multiple post_type as array and a numberposts value e.g.

$latestPostsArgs = array(
    'post_type' => ['news', 'workshops'],
    'numberposts' => 10,
    'post_status' => 'publish'
);

Make sure you have more than numberposts posts of said post types
Mark a few of these posts as sticky post
Fetch the posts e.g.
$posts = Timber::get_posts($latestPostsArgs);
Note that the number of posts returned is greater than the numberposts value because of the sticky posts that get added:
echo count($posts); //prints 13, in my case
Also note that when using WordPress' get_posts() using the same query arguments, the correct number of posts is returned:
$wpPosts = get_posts(latestPostsArgs);
echo count($wpPosts); //prints 10
Also note that if we add 'ignore_sticky_posts'=>true to the query arguments, the correct number of posts is returned

What version of WordPress, PHP and Timber are you using?
WordPress 4.9.8, PHP 7.2.8, Timber 1.8.1
How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)
Composer/Packagist
Proposed fix
Because WordPress' get_posts() sets ignore_sticky_posts=true as default, I think the same should be applied to Timber::get_posts(). The best way to do so may be by adding another "fix"-action in QueryIterator.php's constructor.
I will add a PR in a few moments with a proposed fix.

Hi @bartvanraaij
I think you are right Timber::get_posts() should behave just WP get_posts - we'll be waiting for your PR and we'll discuss it further.


Unexpected token export when testing with jest.

I use this library with React 15.6.2 and want to test my code with jest 22.2.1. When I run the tests, I get the following error:
export default {
^^^^^^
SyntaxError: Unexpected token export

I have updated module, can you please update to v0.0.8 and verify it? Thanks.

Thanks, it works now!


feat(cli/login): add the ability to pass a token via the login cli

added the ability to pass a --token flag for the redocly login cli

Hi @HamishBuckmaster.
Does the environment variable work for you? You can find it here

Hi @HamishBuckmaster.
Does the environment variable work for you? You can find it here

Hi @IgorKarpiuk, yeah it does but this is a more explicit way in my opinion in giving the consumer the choice, what do you think?

Hey @HamishBuckmaster.
We're not sure. Are you aware of any other CLI tools that accept access token as arg?

I think the additional argument is a good idea, but let's name it something more descriptive, like --auth-token or something?
I think it's reasonably common to have the option to either pick up the env or pass as a parameter - GitHub does it with gh for example https://cli.github.com/manual/gh_auth_login

I believe passing a token in the CLI arg is a bad for security reasons.
I'm fine with the way github does it using stdin:
gh auth login --with-token < mytoken.txt

We also support an ENV variable as was pointed before.
@HamishBuckmaster do you see any benefits of:
REDOCLY_AUTHORIZATION=xxx redocly push ...

vs
redocly push --token=xxx

Thanks @HamishBuckmaster for the contribution, but we're going to continue to recommend the environment variable approach for the time being. Don't hesitate to open an issue or more pull requests on the project in future :)


Replace unicode characters with literals in test_string

Should hopefully fix #28824 as it's difficult for me to test this.
All tests pass (34/34) with godot --test string
@RicardRC would be nice if you could check this out.

It would be nice to also add the lower case as comment, for maximum clarity. (lines 1072~)
// абвгдеёжзийклмнопрстуфхцчшщъыьэюя
I'll test and report tonight.

Sadly, it does not solve it. I'll post details in the bug report (#28824) to keep it all together.

I'm obviously shooting into the air but I added MSVC flag to allegedly force compilation to use /utf8 encoding, not sure if this would help. 😄

Not into the air,
The two commits by themselves solve nothing, just change the error wording.

I'm confused, how many ways does MSVC have to set the encoding to UTF-8? This was already done by @WindyDarian for the same issue in #27915 (and then further refined as this flag fails on MSVC 2013).

I'll try again tonight from a clean clone. I hope it was just some loose derived file lingering around.

@RicardRC You said you were using Visual Studio 2019 in #28824 which concerns me. I am not sure if Scons recognize it thus I am guessing the line if int(env['MSVC_VERSION'].split('.')[0]) >= 14: #vs2015 and later in platform/windows/detect.py added in #28051 may fail (may worth locally printing the version number before it to check?). Will grab VS 2019 and check tonight.

The commit to SConstruct alone was enough on clean engine download to solve the problem. No more UTF-8-BOM required, no errors, no warnings. Happiliy pecking to make the game now. I'd consider it solved.

I guess this PR could be closed, but a proper fix would be required for VS2019 then. Perhaps setting MSVC_FLAGS=['/utf8'] is a more portable way to define it across multiple Visual Studio versions? I think it would still fail on VS2013 though. 🤔

Just wanted to give an update. Installed Visual Studio Community 2019, from the current master branch when I run "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 && cd %cd% && scons p=windows vsproj=yes -j6, it still builds with MSVC 14.1 and generates vs2017 project files (may because I also have VS2017 installed), and build still succeeds with win10 set to Japanese locale. Guess different things can happen with vs2019 based on the environment. So I think I have no opinion on what's best here without being able to repro the issue.

O

This may be closed anyway as it solves only the symptoms of the problem, here's the line that seems to solve the issue #28824: https://github.com/godotengine/godot/pull/28906/files#diff-cc8093822b396591a5530a463c87d048R313

If that's the only thing needed to fix the issue, maybe we should not do the rest of the changes? Actual unicode characters are a lot more readable.

Yes, I amended the changes, but left some clarification comments. Also noticed that the usage of String::utf8() might also help the issue in some way, at least for consistency.

Thanks!


Doesn't seem to work with Iris and/or Sodium

I generally use Optifine/Optifabric for my shaders and it's worked fine with LightOverlay for the last few versions; however, out of curiosity I decided to try out Iris (https://irisshaders.net) and Sodium (https://www.curseforge.com/minecraft/mc-mods/sodium/download/3542074) as an alternative to OF; it seems to work pretty well but I did notice that when I am using these two mods, pressing F7 for Light Overlay no longer seems to do anything. I'm not sure whether it's Iris or Sodium that's the culprit.
Not an emergency issue (and tbh I may stick with Optifine for now anyway) but I thought I would mention it!
Thanks for your work on this! It's one of my must-have mods. :)

Duplicate of #5, this may be caused by how Iris modifies how things are rendered, unfortunately I am not an expert in this.


Adding JWKSetCache Customization

Summary
Adding support for JWKSetCache customization
Issue Type

Bug fixing

Additional Information
Related to https://github.com/microsoft/azure-spring-boot/issues/802 and https://github.com/microsoft/azure-spring-boot/pull/804

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

/azp run

@bcannariato Hi, IT seems failed.  The code style check doesn't pass so the maven build failed, please refine the codes to meet the agreement of code style check. You can refer to the microsoft.azure-spring-boot details to see the details.

@bcannariato Hi, IT seems failed. The code style check doesn't pass so the maven build failed, please refine the codes to meet the agreement of code style check. You can refer to the microsoft.azure-spring-boot details to see the details.

Can you tell me what the errors with checkstyle are? It says you can re-run in the build to get proper logs for it.

@neuqlz can we chat tonight potentially, I see you are in China so our timezones don't line up. I can be on around 9 PM CST which should be 11 AM your time I believe. Hopefully we can work together to debug these build issues to get this pull request done

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1

See the complete overview on Codacy

/azp run

Hi @bcannariato
Sorry I have a meeting at 11 AM. But doesn't matter. I can solve the problem for you. ^_^
It seems that there needs my reply: /azp run to run the IT pipeline every time. So it is difficult for you to see the build error logs. As you said, because of the different time zone and IT pipeline running conditions, that will take too much extra effort for you to solve it. That is unnecessary. The errors are just like: some line is too long etc. It pretty easy to solve. So I will merge it into the master and then I solve it by myself.