Dead URL in sample Machine Learning Regression project

This issue has been moved from a ticket on Developer Community.

Create new project: set the following filters:
Language="All languages",
Platform="Windows",
Project type="Machine Learning"
Three projects will be shown: Classifier, Clustering and Regression.
First two work fine but third one "Regression Project (cookiecutter)" fails due to dead sample data URL (http://mldata.org/repository/data/download/csv/stockvalues/).

Thanks. It looks like that mldata.org site is not coming back. We'll have to change the sample to use different data.

Any relationship to mldata.io?

Hi, I am original poster of this issue.
I tried different data from mldata.io and openml.org sites but without success. Seems that structure of that data does not correspond to the one expected by the sample application.
So seems like sample application has to be tuned (in addition to new URL).

Hi, I am original poster of this issue.
I tried different data from mldata.io and openml.org sites but without success. Seems that structure of that data does not correspond to the one expected by the sample application.

Thanks for following up. It is maddening that the data itself isn't part of this repository.

I would guess the data is available at this archive.org link but when I change the source-embedded URL and run the program I get an error:
Error tokenizing data. C error: Expected 1 fields in line 6, saw 2

@jabowery Amazing, it works! I downloaded this file, changed URL as the following:
URL = "file:///c:/Users/UserName/Downloads/stockvalues.csv"
and got nice plots :) If it's legal to use their data then it can be committed to the repo.

Thanks @jabowery and @valiko-ua !
We've checked the license using the Wayback machine, and it's fine.
I'll update the cookiecutter template and add the file to its repo.

I've updated the template. If you have the cookiecutter template already installed, you should be able to right click on it and select update. Or just delete the local template and clone it again.

Good work, thanks.

Right-clicking on installed cookiecutter and selecting "Check for updates" didn't help (it just showed message that check for update completed with green tickmark).
I had to delete it and install again, after that I could see your fixes.


Add a menu option for FRRouting Shell if the frr plugin is installed

The way forward would probably be to add some sort of plugin support for menu items, but I expect this won't mature any time soon since there aren’t a lot of other use-cases for it. Closing this now


#471 serializers: ensure float precision

As described in #471, storing float values that need higher precision than the default 6 would be rounded. This was true for all but postgresql prepared statements. Those were only supporting up to double and were off by a bit (maxdigits10 vs digits10).
Now, all streams I could find (except those in prepared statements for specific non-float types) should be using full precision. An internal test that rolls random double values worked fine with various high random values.
I'm not sure how to unit test this without having database backends, so a test is missing. Best I could come up with is serializing with some known-high-precision number and checking the string to be identical?

floats are ~odd~ floats :-)
26/94 Test #26: sqlpp11.core.serialize.In .............................................Subprocess aborted***Exception:   0.11 sec
[...]/sqlpp11/tests/core/serialize/compare.h 52
Expected: -->|tab_foo.omega IN(1.7,2.5,17,0)|<--
Received: -->|tab_foo.omega IN(1.70000004768371582031,2.5,17,0)|<--
terminate called after throwing an instance of 'std::runtime_error'
  what():  unexpected serialization result

Argh, sorry, I tried to reproduce it yesterday but managed to check out the wrong branch m(
I agree that one probably doesn't want it to serialise to that, although it of course is correct, just ugly, even for numbers this low (slightly adapted from cppreference).
One can set the precision for the float types specifically rather than using long-double for all. This does improve the ugliness slightly:  With 1.7 it still is 1.70000005 (float) 1.7 (double) and 1.69999999999999995559 (long double).
The easiest fix for the failing test is using a safe float like 1.25 instead of 1.7. The second easiest fix is using the ugly (but well defined) 1.70000004768371582031. Since users can be confused by that value (despite it being fine), the third option is using the specialised stream, which is adding a bit of overhead for visual effect only.
Do you have a preference?

One can set the precision for the float types specifically rather than using long-double for all. This does improve the ugliness slightly: With 1.7 it still is 1.70000005 (float) 1.7 (double) and 1.69999999999999995559 (long double).

I like this one, with a serialize test for each to set expectations.

I like this one, with a serialize test for each to set expectations.

Done. The test has the boilerplate to use the specific serializers as well, but commented out since it requires the dependencies, and I didn't want to add all the "if dependency is found" infrastructure which I don't see existing yet. I can offer to instead add it to some random respective connector-specific test?

Thanks for going the extra mile! Looks very good to me at this point.
Please let me know if you are OK with merging at this point, too?

Please let me know if you are OK with merging at this point, too?

Seems fine to me. :+1:
I had some very-close-to-zero values deserialize badly in our unit tests, but that seems to be a SQLite issue, not an sqlpp one:
input hex         float_safe_ostringstream  deserialized                  output hex
80a797b1d9baf781  -1.6798458567329104e-305  -1.67984585673291039419e-305  80a797b1d9baf781
80a797b1d9baf782  -1.6798458567329106e-305  -1.67984585673291064715e-305  80a797b1d9baf782

Serializer is fine :arrow_up: SQLite truncates.  :arrow_down:
sqlite> CREATE TABLE test (value REAL);
sqlite> INSERT INTO test VALUES (-1.6798458567329104e-305);
sqlite> INSERT INTO test VALUES (-1.6798458567329106e-305);
sqlite> SELECT * FROM test;
-1.67984585673291e-305
-1.67984585673291e-305

I think I'll change my tests to not assert bit-identical results ;)

Done, thanks!

Edit: allowed for some inaccuracy, got 5000 successful test runs.

:+1:


[core] upgrading to v5.11.12 breaks the build

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
./node_modules/@mui/base/useMenu/useMenu.d.ts:3:15
Type error: ',' expected.
1 | import { MenuItemMetadata, UseMenuListboxSlotProps, UseMenuParameters } from './useMenu.types';
2 | import { EventHandlers } from '../utils';

3 | import { type MenuUnstyledContextType } from '../MenuUnstyled';
|               ^
4 | /**
5 |  *
6 |  * Demos:
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Current behavior 😯
error is occurring now, so cant build now
Expected behavior 🤔
such error did not occur before
Context 🔦
I think this issue occured when updating the version.
it did not occur before when I was developing that app around 9 months ago.
Your environment 🌎
react 17.0.2
next 12.0.3

Hi, just run into similar issue while eecuting tsc, my envinfo:
System:
    OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
  Binaries:
    Node: 18.14.2 - ~/.asdf/installs/nodejs/lts-hydrogen/bin/node
    Yarn: Not Found
    npm: 9.5.0 - ~/.asdf/plugins/nodejs/shims/npm
  Browsers:
    Chrome: 109.0.5414.119
    Firefox: 110.0.1
  npmPackages:
    @mui/envinfo: ^2.0.8 => 2.0.8
    @mui/icons-material: ^5.11.11 => 5.11.11
    @mui/material: ^5.11.12 => 5.11.12
    @mui/styled-engine-sc: ^5.11.11 => 5.11.11
    @types/react: ^18.0.27 => 18.0.28
    react: ^18.2.0 => 18.2.0
    react-dom: ^18.2.0 => 18.2.0
    styled-components: ^5.3.8 => 5.3.8
    typescript: ^4.9.3 => 4.9.5

@gawliks The original issue is related to MUI Base because the type error is coming from @mui/base/useMenu. You didn't report the version of @mui/base so I lack this information. Please check and let me know the version of the @mui/base you are using (either as a dependency of @mui/material or as @mui/base itself).

Hi @hbjORbj - so the @mui/base is installed as a dependency:
@mui/material 5.11.12
├─┬ @mui/base 5.0.0-alpha.119

One of the reason may be because with the latest release, MUI Base was not released, we should have created a patch earlier for this. cc @hbjORbj we should have released a new version after you fixed this. Can anyone provide a reproduction so that we can be sure that this is the issue?

There was this breaking change in Base in the latest release.
However, your issue doesn't seem related to this change. It looks more related to this breaking change in Base introduced in v5.11.11.
We wrote a Codemod script you can run in order to adapt your codebase to the breaking changes. Please run the following command and get back to us if you still have trouble.
npx @mui/codemod v5.0.0/base-hook-imports <path>

This has happened to me as well. Below are the details.
The file node_modules/<EMAIL_ADDRESS>happens to have import { type MenuUnstyledContextType } from '../MenuUnstyled'; which leads to error as follows (in the editor):
Module '"../MenuUnstyled"' has no exported member 'type'. Did you mean to use 'import type from "../MenuUnstyled"' instead?

On running TSC it gives the error as follows:-
node_modules/@mui/material/node_modules/@mui/base/useMenu/useMenu.d.ts:3:15 - error TS1005: ',' expected.

3 import { type MenuUnstyledContextType } from '../MenuUnstyled';
                ~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error.

If I change the above line to  import type { MenuUnstyledContextType } from '../MenuUnstyled'; It fixes the error as I can run the tsc command without any of the errors.
ENV Details:
node: v14.16.0
npm: 6.14.11
react: 17.0.2
react-dom: 17.0.2
@mui/material: 5.11.11
@mui/styled-engine-sc: 5.11.11
@mui/styles: 5.11.11
typescript: 4.3.5
Please let me know if more information is needed on this

Same problem here

Running into the same error now.


Normalizing WWW to the naked domain

Our BasicNormalizer should normalize the "www" subdomain as there are many sites which can be accessed using the www subdomain as well as the naked domain.
Wikipedia, URL Normalization
Search the page for: "Removing or adding “www” as the first domain label"

Of course, this is a frequent reason for duplicates. However,

not all sites can be accessed with leading "www." stripped
many sites choose a domain name including "www." as canonical name and redirect you to avoid duplicates. Here a crawler must not strip the "www." or it sees only redirects. It can be only an optional operation.
stripping must be done carefully, e.g. "www.com" is a valid registered domain

Yes, I see there are many pitfalls here.
The Wikipedia suggestions:
How can this be done safely?
The intuitive option I see here is to resolve both urls (with and without www) and see if they go to the same page, but this seems a very costly operation for a normalizer.
Another option is to hold an internal DB (may be just an internal list) with all normalized urls (as the normalizer should be some sort of static singleton), and check if that url alredy was normalized with WWW or without WWW and normalize them in the same way
How would you suggest implementing this feature ?

The interface of URLFilter resp. BasicURLNormalizer is really basic - URL string in, URL string or null out. I would avoid implementing any overtly complex heuristics and in any case not to introduce site effects which may threaten performance (need to run safely on 100 millions of URLs). Make the stripping of "www." optional and/or move it to a new class (eg. AggressiveURLNormalizer, HomePageNormalizer) which does this and other potentially destructive normalizations, eg. removing the director index (index.html).

Even if aggresiveURLNormalizer is created, I still don't understand how it can be done.
Just stripping the www part (even optionally) seems like a bad practice as the URL might now be broken because maybe there is no page without www
How should one implement this part of normalization?

The way we've handled potentially bad normalization is by auto re-trying during the fetch process, if you get back a 404 where the domain might have had this normalization applied. E.g. in our crawler we assume that if there's a sub-domain, we wouldn't have normalized away the 'www' part, so we only retry if we get a 404 and the domain name == PLD.

I'm going to close this issue. I'd suggest opening another issue to implement a new, more aggressive/sophisticated normalizer as per @sebastian-nagel's suggestion above. There's a lot that could be done, e.g. sorting query parameters, support for stripping common session and ad-tracking parameters, getting rid of query parameters with really long values, etc. which could be part of more sophisticated normalization.


OptionButton/PopupMenu's letter jumping jumps multiple times when pressing a key

Godot version:
3.2.1 stable
OS/device including version:
Fedora 31
Issue description:
When using an OptionButton or PopupMenu and trying to jump to an item in the list by pressing a key every single input event gets registered. For example by pressing a key for the first time you will jump to the second item (to the first upon the press and to the second on the release; holding the key cycles through everything). ItemList and Tree work normally.
Steps to reproduce:
Create an OptionButton/PopupMenu. Add multiple items that start the same and press a key to jump to one of those items.
Minimal reproduction project:
OptionButtonPopupMenu.zip

Tried it running on Windows 10 64-bit, don't think I'm seeing the same behavior.

tried it on MacOS 10.15.3 now and it works as it does on my fedora machine. Here is a gif (of my linux machine). I only pressed the "a" twice but the focus jumped 4 times.

"PopupMenu::_gui_input" has the spot for handling key inputs and searching the items. I'd be curious what it does on Mac or Fedora. Seems like that input might be getting called twice for some reason. Tree and ItemList also have that _gui_input function with similar implementation. OptionButton actually allocates a PopupMenu, so it makes some more sense that you'd see it for both of those.

@BigRed-118 Looks like in the ItemList the entire code for the jump is wrapped in a big if (is_pressed) statement. In the PopupMenu that isn't the case, so the jump happens on press and release of a key. Not sure why windows wouldnt be effected though.

This was annoying to debug because every time it hit breakpoints for the WM_KEYDOWN message, it would focus on Visual Studio. WM_KEYUP won't be present unless focus is maintained on the godot window.
But after hitting the right spot for the WM_KEYUP handle, on the following line in _gui_input:
if (allow_search && k.is_valid() && k->get_unicode()) {
k->get_unicode() is returning 0 for me on Windows, so it doesn't enter that code to change the selection.

@Leleat This seems to be just a coincidence, otherwise Windows would see the same behavior. I think adding in the is_pressed check like the ItemList and Tree have would be valid.


robot_systemd: 0.1.1-1 in 'kinetic/distribution.yaml' [bloom]

Increasing version of package(s) in repository robot_systemd to 0.1.1-1:

upstream repository: https://github.com/LucidOne/robot_systemd.git
release repository: https://github.com/LucidOne-release/robot_systemd.git
distro file: kinetic/distribution.yaml
bloom version: 0.9.0
previous version for package: null

robot_systemd
* Added env-hook for environment
* Added documentation

released 0.1.2


Document design decisions for decentralized scaling and share performance evaluation

Hi guys modelmesh is great, especially I known IBM FASS OpenWhisk.
I'm wandering the reasons why you guys designed decentralized scale decisions?

do you guys have tested the performance benefits?
more thoughts behind this design would be appreciated~

We may need to pull together some docs from various places. There is a PDF and some wiki pages and conference presentations on performance evaluations and the https://github.com/kserve/modelmesh-performance repo


python311Packages.qtile: 0.25.0 -> 0.26.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.qtile is: A small, flexible, scriptable tiling window manager written in Python
meta.homepage for python311Packages.qtile is: http://www.qtile.org/
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.26.0 with grep in /nix/store/fjm3ryi9zsx8x9vcpqs6yj0qzyc2m9vp-python3.11-qtile-0.26.0
found 0.26.0 in filename of file in /nix/store/fjm3ryi9zsx8x9vcpqs6yj0qzyc2m9vp-python3.11-qtile-0.26.0

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

6 total rebuild path(s)

6 package rebuild(s)

First fifty rebuilds by attrpath

python311Packages.qtile
python311Packages.qtile-extras
python312Packages.qtile
python312Packages.qtile-extras
qtile

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/fjm3ryi9zsx8x9vcpqs6yj0qzyc2m9vp-python3.11-qtile-0.26.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python311Packages.qtile https://github.com/r-ryantm/nixpkgs/archive/bf4b368fc46b6b3e9cd18755acf10e78eef9a529.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/bf4b368fc46b6b3e9cd18755acf10e78eef9a529#python311Packages.qtile

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/fjm3ryi9zsx8x9vcpqs6yj0qzyc2m9vp-python3.11-qtile-0.26.0
ls -la /nix/store/fjm3ryi9zsx8x9vcpqs6yj0qzyc2m9vp-python3.11-qtile-0.26.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

4 packages failed to build:

python311Packages.qtile-extras
python311Packages.qtile-extras.dist
python312Packages.qtile-extras
python312Packages.qtile-extras.dist

5 packages built:

python311Packages.qtile
python311Packages.qtile.dist
python312Packages.qtile
python312Packages.qtile.dist
qtile

Maintainer pings
cc @arjan-s @Sigmanificient for testing.

Duplicate of https://github.com/NixOS/nixpkgs/pull/313604, fails to build


Update README.md

Code in the example has invalid ruby syntax.

I just figured out it's almost the same as #65.


Before and After each callback isn't passing in doc

When you try to use the callbacks for before_each and after_each it will throw a ArgumentError: wrong number of arguments (0 for 1) because the lambda function is expecting at least 1 argument but isn't receiving it.

Fixed by #25


ECS Submodule container-definition with port_mapping

Description
I am using the ecs service submodule to create the service. I am also using the container-definition submodule to generate the definition for the service. I am trying to assign the container definition to the service which works up to a point
the following is the service sub-module config:
module "ecs_tr_service" {
  source  = "terraform-aws-modules/ecs/aws//modules/service"
  version = "5.2.2"

  name        = "terrareg-serv"
  cluster_arn = var.ecs_cluster_arn

  cpu    = 512
  memory = 1024

  launch_type  = "FARGATE"
  network_mode = "awsvpc"

  desired_count            = 1
  enable_autoscaling       = true
  autoscaling_min_capacity = 1
  autoscaling_max_capacity = 1

  # Container definition(s)
  container_definitions = {
    terrareg = module.ecs_container_tr_def.container_definition
  }

  load_balancer = {
    service = {
      target_group_arn = aws_lb_target_group.this.arn
      container_name   = "terrareg"
      container_port   = var.tr_container_port
    }
  }

  subnet_ids = var.vpc_pri_sub_ids
  security_group_rules = {
    alb_ingress_5000 = {
      type                     = "ingress"
      from_port                = var.tr_container_port
      to_port                  = var.tr_container_port
      protocol                 = "tcp"
      description              = "Service port"
      source_security_group_id = var.alb_https_sg_id
    }
    egress_all = {
      type        = "egress"
      from_port   = 0
      to_port     = 0
      protocol    = "-1"
      cidr_blocks = ["<IP_ADDRESS>/0"]
    }
  }

  tags = var.tags
}

The following is the container-definition using the submodule
module "ecs_container_tr_def" {
  source  = "terraform-aws-modules/ecs/aws//modules/container-definition"
  version = "5.2.2"

  name      = "terrareg"
  cpu       = 256
  memory    = 512
  essential = true
  image     = "1234567890.dkr.ecr.eu-west-2.amazonaws.com/terrareg:latest"
  port_mappings = [
    {
      containerPort = 5000
      hostPort      = 5000
      protocol      = "tcp"
    }
  ]
  # Requires access to write to root filesystem
  readonly_root_filesystem = false
  tags = var.tags
}

When I do a terraform run I notice that portMappings is empty even though above port 5000 etc have been defined
#terraform run
.........
# module.ecs_tr_service.aws_ecs_task_definition.this[0] will be created
  + resource "aws_ecs_task_definition" "this" {
      + arn                      = (known after apply)
      + arn_without_revision     = (known after apply)
      + container_definitions    = jsonencode(
            [
              + {
                  + cpu                    = 256
                  + environment            = []
                  + essential              = true
                  + image                  = "12345678.dkr.ecr.eu-west-2.amazonaws.com/terrareg:latest"
                  + interactive            = false
                  + logConfiguration       = {
                      + logDriver = "awslogs"
                      + options   = {
                          + awslogs-group         = "/aws/ecs/terrareg-serv/terrareg"
                          + awslogs-region        = "eu-west-2"
                          + awslogs-stream-prefix = "ecs"
                        }
                    }
                  + memory                 = 512
                  + mountPoints            = []
                  + name                   = "terrareg"
                  + portMappings           = []            <---- this should NOT be an empty list
                  + privileged             = false
                  + pseudoTerminal         = false
                  + readonlyRootFilesystem = true

When I do apply the following error which I believe is because portMappings is empty
module.ecs_tr_service.aws_ecs_service.this[0]: Creating...
╷
│ Error: creating ECS Service (terrareg-serv): InvalidParameterException: The container terrareg did not have a container port 5000 defined.
│
│   with module.ecs_tr_service.aws_ecs_service.this[0],
│   on .terraform/modules/ecs_tr_service/modules/service/main.tf line 30, in resource "aws_ecs_service" "this":
│   30: resource "aws_ecs_service" "this" {

The output of the variable module.ecs_container_tr_def.container_definition looks correct:
terragrunt console
> module.ecs_container_tr_def.container_definition
{
  "cpu" = 256
  "environment" = tolist([])
  "essential" = true
  "image" = "123456789.dkr.ecr.eu-west-2.amazonaws.com/test:latest"
  "interactive" = false
  "logConfiguration" = {
    "logDriver" = "awslogs"
    "options" = {
      "awslogs-group" = "/aws/ecs//test"
      "awslogs-region" = "eu-west-2"
      "awslogs-stream-prefix" = "ecs"
    }
  }
  "memory" = 512
  "mountPoints" = tolist([])
  "name" = "terrareg"
  "portMappings" = tolist([
    {
      "containerPort" = 5000
      "hostPort" = 5000
      "protocol" = "tcp"
    },
  ])
  "privileged" = false
  "pseudoTerminal" = false
  "readonlyRootFilesystem" = false
  "startTimeout" = 30
  "stopTimeout" = 120
  "volumesFrom" = tolist([])
}

Versions

Terraform version:
Terraform v1.5.3
on darwin_amd64

why define the container definition separate from the service? Here is a working example https://github.com/terraform-aws-modules/terraform-aws-ecs/blob/2604124d05974c2ee47ff7194d62d55ac425a3cb/examples/fargate/main.tf#L84-L91

Thanks for the link. That is what I am doing as a workaround for the moment but would prefer to use the submodule if that's possible.
I would also like to find out if I am doing something wrong or if this is a bug.

@alexiskat I'm having the same behavior on my side as well so it seems to be a bug.
@bryantbiggs If one is defining multiple containers for a service might be easier to use the submodules to split the container definitions by multiple TF files for example.

If one is defining multiple containers for a service might be easier to use the submodules to split the container definitions by multiple TF files for example.

This module already has a number of sub-modules, so I'm not sure what else you would further separate. Also, the module is already designed to handle n-number of containers per service If one is defining multiple containers for a service might be easier to use the submodules to split the container definitions by multiple TF files for example.

@bryantbiggs That's precisely what the issue is!
When using the container definition submodule separate from the service one the port_mapping list always end ups being empty no matter what values you define on the container definition

That's precisely what the issue is!

I don't see how thats possible if the service module is passing those values directly to the container definition module https://github.com/terraform-aws-modules/terraform-aws-ecs/blob/2604124d05974c2ee47ff7194d62d55ac425a3cb/modules/service/main.tf#L556
perhaps there is something else going awry in your configuration

Lets look at the output provided by @alexiskat
terragrunt console
> module.ecs_container_tr_def.container_definition
{
  "cpu" = 256
  "environment" = tolist([])
  "essential" = true
  "image" = "123456789.dkr.ecr.eu-west-2.amazonaws.com/test:latest"
  "interactive" = false
  "logConfiguration" = {
    "logDriver" = "awslogs"
    "options" = {
      "awslogs-group" = "/aws/ecs//test"
      "awslogs-region" = "eu-west-2"
      "awslogs-stream-prefix" = "ecs"
    }
  }
  "memory" = 512
  "mountPoints" = tolist([])
  "name" = "terrareg"
  "portMappings" = tolist([
    {
      "containerPort" = 5000
      "hostPort" = 5000
      "protocol" = "tcp"
    },
  ])
  "privileged" = false
  "pseudoTerminal" = false
  "readonlyRootFilesystem" = false
  "startTimeout" = 30
  "stopTimeout" = 120
  "volumesFrom" = tolist([])
}

If we want to use the container_definition submodule separate from the service one we need to reference the output of the container_definition within the service module which looks like this:
module "ecs_tr_service" {
  source  = "terraform-aws-modules/ecs/aws//modules/service"
  version = "5.2.2"

(... module parameters ...)

  # Container definition(s)
  container_definitions = {
    terrareg = module.ecs_container_tr_def.container_definition
  }

(... more module parameters ...)

}

Replacing the var call by its actual content we get:
module "ecs_tr_service" {
  source  = "terraform-aws-modules/ecs/aws//modules/service"
  version = "5.2.2"

(... module parameters ...)

  # Container definition(s)
  container_definitions = {
    terrareg = {
      "cpu" = 256
      "environment" = tolist([])
      "essential" = true
      "image" = "123456789.dkr.ecr.eu-west-2.amazonaws.com/test:latest"
      "interactive" = false
      "logConfiguration" = {
        "logDriver" = "awslogs"
        "options" = {
          "awslogs-group" = "/aws/ecs//test"
          "awslogs-region" = "eu-west-2"
          "awslogs-stream-prefix" = "ecs"
        }
      }
      "memory" = 512
      "mountPoints" = tolist([])
      "name" = "terrareg"
      "portMappings" = tolist([
        {
          "containerPort" = 5000
          "hostPort" = 5000
          "protocol" = "tcp"
        },
      ])
      "privileged" = false
      "pseudoTerminal" = false
      "readonlyRootFilesystem" = false
      "startTimeout" = 30
      "stopTimeout" = 120
      "volumesFrom" = tolist([])
    }
  }

(... more module parameters ...)

}

The port mapping parameter is passed as portMappings when the service module is expecting port_mappings. So port_mappings defaults to an empty list
Same probably is also true for Mount Points, Pseudo Terminals and other 2 word parameters. (camelCase versus snake_case). 1 word parameters work fine because the name matches.

please provide a proper reproduction in Terraform so we can help triage and troubleshoot. Closing this one for now since its not reproducible


Add Accept headers to request, in order to avoid blocking because of mod_security default

As suggested (via e-mail):
You bot is being blocked by default with mod_security users with the core rule set due to a missing Accept: headers...
Sample log entry...
[Wed Aug 09 17:31:43.092235 2017] [:error] [pid 24450] [client <IP_ADDRESS>] ModSecurity: Warning. Operator EQ matched 0 at REQUEST_HEADERS. [file "/etc/httpd/modsecurity.d/activated_rules/modsecurity_crs_21_protocol_anomalies.conf"] [line "47"] [id "960015"] [rev "1"] [msg "Request Missing an Accept Header"] [severity "NOTICE"] [ver "OWASP_CRS/2.2.9"] [maturity "9"] [accuracy "9"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/MISSING_HEADER_ACCEPT"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "www.atitd.com"] [uri "/"] [unique_id "WYtG-07PGRyBBSPejSylKgAAAAg"]

We added the "Accept" header in the last commits.


Resources

Some minor resources added, plus an extra troubleshooting section with the fix to a bug that took me a while to figure out

Otherwise looks good to me :D

Perfect, thanks <3


[priority:HIGH] convert existing website to react website

Hi, right now we have a static and normal HTML website. But, it's time to go higher. We are thinking to develop this open-source website into a dynamic react js website.
For this, I will be helpful if you collaborate with me. We will convert our work between us. For example, if I want to create a navbar, I will work on the header components, and you will work on the desired component you want.
So basically, anyone can be assigned to this issue. There is no limit.
Requirement
Have to good understanding of JavaScript, ReactJs (no need  professional, just know how react works and some knowledge about react components), Tailwind CSS, react styled-components.
That's it...!!!
You can join discord - JOIN

I want to work on this, Please Assign it to me @devvsakib

I want to work on this, Please Assign it to me @devvsakib

I want to work on this, Please Assign it to me @devvsakib

sure, navigate there #75

Can i also want to contribute in this..


PKG -- [util-node-http-modules] Use programmatic check instead of multiple entry points to determine environment

Using multiple entry points to determine whether running in a node environment proved unreliable and prone to bugs.  This fix would allow util-node-http-modules to adopt a more standard method of determining whether running in a node environment.

Closing this PR in favour of #1265 which should be a more long-term fix.


Adding bindinfo object to CSV

OperandBindInfo is being added to the CSV
that will help expose our config maps and secrets to other services running in the cluster
This is for backward compatibility

@horis233 The comments have been resolved.


SyntaxError

Hitting == on a 1+1 line, I'm getting a SyntaxError: invalid syntax at
https://github.com/casey/reap.vim/blob/master/reap.py#L110
/usr/bin/python3 is python3.5.

I'm using f-string syntax, which is new in Python 3.6. I'll change it to use .format, which should work with 3.5. I should probably figure out what the minimum supported python version is.

Check out #3, which I just opened. Unfortunately, the ast module that python uses isn't stable between versions, so as written it's currently only compatible with Python 3.7. ;_;


Improve estimator.py doc-strings

Fixed typos
Warped python terms with ` characters
A lot of tf terms are now links to their docs

I signed it!

Thanks for the cleanup! Much appreciated.


(how to) Force animation replay

Hi
I’m trying to re-activate the same animation for a DOM element, each time an input gets updated.
The animation is defined as css keyframes that is assigned to a css class and the trigger I’m using now is by removing and then re-assigning that css class, with a slight of delay in order to enable the browser to process and render that change before a new one is received.
This seems to me as cumbersome at best, and more so as error prone.
To my understanding, it’s also not exactly what angular 2 animation is about, as I don’t really have different states and transitions between them, but rather just an animation which I wish to re-activate over and over.
I ran into this article - http://blog.assaf.co/native-slide-toggle-for-angular-2-and-animate/, which seem to support what I need, as it exposes ‘onComplete’ etc., but turns out to be obsolete as per the latest Angular RC.
Am I missing something? Is there a way to elegantly do so without writing my own “animation” API, so that it is not so strictly dependent on hard-coded timed values?
I’d greatly appreciate your input on that.
Here’s my current (example) implementation on Plunkr:
https://plnkr.co/XEOQeKdFsKLA0G7WthJO?p=preview

There seems to be an open PR angular/angular#10360 that will give you the onComplete callback you are looking for.


help needed / feature request: smoothing off the target position and rotation to fight off jittering

I am trying to smooth things a little as my app is extremely jittery at the moment, using the instructions given here: https://hiukim.github.io/mind-ar-js-doc/quick-start/tracking-config/
Not having much success though, so i am having a look at this: https://stackoverflow.com/questions/53380400/aframe-smoothing-position-and-rotation
If i understand correctly, the idea is that real life objects do not move as fast as we update frames, or more precisely, they don't jump position that fast. And so instead of directly updating the values, it helps to interpolate.
I cannot get this to work with mind ar though. I think i probably should use the targetFound and targetLost events, but not sure where to head apart from this.
Any leads will be appreciated!

Ok my bad, please forgive a beginner in A-Frame!
The example code from stack overflow requires adding the created component in the document like so:
<a-entity listener></a-entity>

I'm going to keep experimenting with this. I'm not sure i got it working yet.
Maybe it could still be useful to implement this kind of smoothing directly.

@gtnbssn did it worked? I've tried but the position / rotations doesn't look to change.

I have had to focus on other more urgent aspects of my app, so kind of leaving this hanging for now, but i hope to get back to it!
One thing i noticed is that the examples from the docs are pretty smooth and stable, so it could be that my targets just aren't great...

Hello my friends.
I spent a lot of time on this problem. The following configuration oneEuroFilter worked for me:

It would be great to set it or a working analogue as the default.

Hello my friends. I spent a lot of time on this problem. The following configuration oneEuroFilter worked for me:
<a-scene mindar-image="filterMinCF:0.0001; filterBeta: 0.001"/>
It would be great to set it or a working analogue as the default.

It works, great! Thanks a lot.

It does work! I'll close the issue, thanks!

<a-scene mindar-image="filterMinCF:0.0001; filterBeta: 0.001"/>

It works, thanks!

Yes, I'd say this is a million times better than the jitter I had before. Thanks!

Thanks for this hint!

Thanks, please make it the default configuration.

Hello my friends. I spent a lot of time on this problem. The following configuration oneEuroFilter worked for me:
<a-scene mindar-image="filterMinCF:0.0001; filterBeta: 0.001"/>
It would be great to set it or a working analogue as the default.

this worked for me, the popup image stops shaking.
Arigato

after the 7 days to read all of the code writen at MindAR project :D i has been add my own filter to reduce shaking , to day i see this topic and set this setting to default MindAR it works better than my Filter , i  got my times was totaly wast

Hello my friends. I spent a lot of time on this problem. The following configuration oneEuroFilter worked for me:
<a-scene mindar-image="filterMinCF:0.0001; filterBeta: 0.001"/>
It would be great to set it or a working analogue as the default.

Thanks a lot Man. It's really works good. :)

for glass try on this value not work const mindarThree = new MindARThree({
container: document.querySelector("#container"),
filterMinCF:0.0001,
filterBeta: 25000,
warmupTolerance: 3,
missTolerance: 1,
}); some delay in mobile between glass and head please help


Add comments API call

Comments currently load demo data, move this to REST call.

Comments API is misbehaving, hence moving this to the next sprint and marking as blocked

@R3dIO wanted to know if the comments API has been fixed or would you need more time to implement this? Currently, the API is not sending the comments of the post.

It's fixed but let me check quickly what's the issue

@tatirajurishabh I have checked and fixed the API endpoint try it now

Moving it to next Sprint as implementing the API call is breaking the UI. Will require more thought into this.

Closing as it is completed


Unexpected MultiPolygon from unary_union

Expected behavior and actual behavior.

I generate 3 polygons that all overlap, and expect their unary_union to be a single Polygon, but I sometimes get a MultiPolygon instead
This result appears sensitive to small changes in the coordinate values
Hotfix: polygon.buffered(eps).buffered(-eps) for each polygon before unary_union (inspired by this post)

Validated on a fuzz test (~1% fails without hotfix, 100k passes with hotfix)

Steps to reproduce the problem.
Minimal reproducible example (the final assertion fails):
import shapely.geometry as sg
import shapely.ops as so

_P1 = sg.Polygon(
    [
        (-282.61216357247446,<PHONE_NUMBER>2918358),
        (-281.4241833883043,<PHONE_NUMBER>7858294),
        (-282.9997507209374,<PHONE_NUMBER>0683473),
        (-282.20597816646364,<PHONE_NUMBER>603605),
        (-280.6304108338305,<PHONE_NUMBER>321087),
        (-279.40671534912155,<PHONE_NUMBER>9336522),
        (-273.50213311412216,<PHONE_NUMBER>3586473),
        (-276.70758133747506,<PHONE_NUMBER>716831),
        (-282.61216357247446,<PHONE_NUMBER>2918358),
    ]
)
_P2 = sg.Polygon(
    [
        (-279.6598724549748,<PHONE_NUMBER>5043335),
        (-276.45442423162183,<PHONE_NUMBER>1461496),
        (-276.4311126524318,<PHONE_NUMBER>8063572),
        (-279.63656087578477,<PHONE_NUMBER>164541),
        (-279.6598724549748,<PHONE_NUMBER>5043335),
    ]
)
_P3 = sg.Polygon(
    [
        (-282.58885199328444,<PHONE_NUMBER>9520434),
        (-281.4008718091143,<PHONE_NUMBER>446037),
        (-282.9764391417474,<PHONE_NUMBER>728555),
        (-282.1826665872736,<PHONE_NUMBER>2638122),
        (-280.6070992546405,<PHONE_NUMBER>9812946),
        (-279.38340376993153,<PHONE_NUMBER>5938598),
        (-273.47882153493214,<PHONE_NUMBER>018855),
        (-276.68426975828504,<PHONE_NUMBER>3770385),
        (-282.58885199328444,<PHONE_NUMBER>9520434),
    ]
)

def main() -> None:
    for a, b in [[_P1, _P2], [_P1, _P3], [_P2, _P3]]:
        intersection = a.intersection(b)
        union = so.unary_union([a, b])
        assert isinstance(intersection, sg.Polygon)
        assert isinstance(union, sg.Polygon)

    # I can't think of a valid reason this should suddenly be a multi-polygon:
    union = so.unary_union([_P1, _P2, _P3])
    assert not isinstance(union, sg.MultiPolygon)

if __name__ == "__main__":
    main()

Operating system
Ubuntu 20.04.6 LTS
Shapely version and provenance
Python 3.11, Shapely 2.0.3 installed using pip

The issue with this specific example isn't related to the post you refer to. In the post you refer to the multipolygons are the result of gaps that typically appear because of an input dataset where points have been snapped to a line segment rather than a point of a neighboring polygons. This leads to situations that polygons are really close to each other, but mathematically there is a tiny gap between them.
In your example the MultiPolygon actually is just a Polygon in disguise: it is a MultiPolygon with only one Polygon. If you print the number of elements in the MultiPolygon (print(len(union.geoms))), it is just one:
import shapely.geometry as sg
import shapely.ops as so

_P1 = sg.Polygon(
    [
        (-282.61216357247446,<PHONE_NUMBER>2918358),
        (-281.4241833883043,<PHONE_NUMBER>7858294),
        (-282.9997507209374,<PHONE_NUMBER>0683473),
        (-282.20597816646364,<PHONE_NUMBER>603605),
        (-280.6304108338305,<PHONE_NUMBER>321087),
        (-279.40671534912155,<PHONE_NUMBER>9336522),
        (-273.50213311412216,<PHONE_NUMBER>3586473),
        (-276.70758133747506,<PHONE_NUMBER>716831),
        (-282.61216357247446,<PHONE_NUMBER>2918358),
    ]
)
_P2 = sg.Polygon(
    [
        (-279.6598724549748,<PHONE_NUMBER>5043335),
        (-276.45442423162183,<PHONE_NUMBER>1461496),
        (-276.4311126524318,<PHONE_NUMBER>8063572),
        (-279.63656087578477,<PHONE_NUMBER>164541),
        (-279.6598724549748,<PHONE_NUMBER>5043335),
    ]
)
_P3 = sg.Polygon(
    [
        (-282.58885199328444,<PHONE_NUMBER>9520434),
        (-281.4008718091143,<PHONE_NUMBER>446037),
        (-282.9764391417474,<PHONE_NUMBER>728555),
        (-282.1826665872736,<PHONE_NUMBER>2638122),
        (-280.6070992546405,<PHONE_NUMBER>9812946),
        (-279.38340376993153,<PHONE_NUMBER>5938598),
        (-273.47882153493214,<PHONE_NUMBER>018855),
        (-276.68426975828504,<PHONE_NUMBER>3770385),
        (-282.58885199328444,<PHONE_NUMBER>9520434),
    ]
)

def main() -> None:

    for a, b in [[_P1, _P2], [_P1, _P3], [_P2, _P3]]:
        intersection = a.intersection(b)
        union = so.unary_union([a, b])
        assert isinstance(intersection, sg.Polygon)
        assert isinstance(union, sg.Polygon)

    # I can't think of a valid reason this should suddenly be a multi-polygon:
    union = so.unary_union([_P1, _P2, _P3])
    # assert not isinstance(union, sg.MultiPolygon)
    print(len(union.geoms))

if __name__ == "__main__":
    main()

Thank you! That simplifies the hotfix, and passes my fuzztest (appears to always be just one polygon in disguise) :smile:
Ack the post I referred to is a different issue, the same fix just happened to work here which I thought could be relevant to root causing


How to view actual header values sent after a request?

How do you see the actual headers that was sent in a request after you send out a request in Rest Client? I can see the response completely, but it does not show the actual headers that were sent out. I could not see them in any of the output windows in VS Code.

MITM proxy.


TypeSpec should flag unneeded suppressions

I reviewed a TypeSpec today that had unnecessary #suppress directives -- I could remove them and the build was still clean.
I think suppressions should be rare and flagging unnecessary suppressions will help towards that goal.

This might not be easy to do as there is suppression for emitters that might not be installed.
Maybe it could complain about suppression from installed library and emitter than ran that are not used.


Attempt to decode JSON with unexpected mimetype - music_assistant.providers.spotify

What version of Music Assistant has the issue?
2.0.0b82
The problem
Randomically Music Assistant stop playing a playlist with radio mode on. Checking the logs I have found an error very similar (I guess) to this old issue https://github.com/music-assistant/hass-music-assistant/issues/486
How to reproduce
Appears randomically.
Using service mass.play_media for genereate a playlist from an URI with radio mode on.
        - service: mass.play_media
          target:
            device_id: e325948e0c54ba0b8ea12bbc6d11b162
          data:
            media_type: playlist
            media_id: "{{ uri_result.artists[0]['uri'] }}"
            radio_mode: "on"
            enqueue: replace

Relevant log output
2024-01-17 18:08:08.280 DEBUG (MainThread) [music_assistant.providers.spotify] Retrieved Spotify token using librespot in 0.76 seconds
2024-01-17 18:08:08.280 INFO (MainThread) [music_assistant.providers.spotify] Successfully logged in to Spotify as xxxxxx-yy
2024-01-17 18:08:08.403 ERROR (MainThread) [music_assistant.providers.spotify] tracks/5LeDMHIZ5YDZ2b1VOcYVcG - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/5LeDMHIZ5YDZ2b1VOcYVcG?market=from_token&country=from_token')
2024-01-17 18:08:08.403 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/5LeDMHIZ5YDZ2b1VOcYVcG took 0.12 seconds
2024-01-17 18:08:08.465 ERROR (MainThread) [music_assistant.providers.spotify] tracks/1I3cmZZmhxGvL2QViQC17h - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/1I3cmZZmhxGvL2QViQC17h?market=from_token&country=from_token')
2024-01-17 18:08:08.465 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/1I3cmZZmhxGvL2QViQC17h took 0.05 seconds
2024-01-17 18:08:08.617 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/2Rn7bVL1FVYboc4c55RUdg took 0.1 seconds
2024-01-17 18:08:08.716 ERROR (MainThread) [music_assistant.providers.spotify] tracks/2Rn7bVL1FVYboc4c55RUdg - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/2Rn7bVL1FVYboc4c55RUdg?market=from_token&country=from_token')
2024-01-17 18:08:08.717 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/2Rn7bVL1FVYboc4c55RUdg took 0.05 seconds
2024-01-17 18:08:08.717 WARNING (MainThread) [music_assistant.audio] Item 2Rn7bVL1FVYboc4c55RUdg not found
2024-01-17 18:08:08.813 ERROR (MainThread) [music_assistant.providers.spotify] tracks/43h4FonpCeaaURpFpiQsf9 - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/43h4FonpCeaaURpFpiQsf9?market=from_token&country=from_token')
2024-01-17 18:08:08.814 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/43h4FonpCeaaURpFpiQsf9 took 0.05 seconds
2024-01-17 18:08:08.928 ERROR (MainThread) [music_assistant.providers.spotify] tracks/7G67ZJRQT9nn2Fa9vA6B32 - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/7G67ZJRQT9nn2Fa9vA6B32?market=from_token&country=from_token')
2024-01-17 18:08:08.928 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/7G67ZJRQT9nn2Fa9vA6B32 took 0.05 seconds
2024-01-17 18:08:09.032 ERROR (MainThread) [music_assistant.providers.spotify] tracks/6gXrEUzibufX9xYPk3HD5p - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/6gXrEUzibufX9xYPk3HD5p?market=from_token&country=from_token')
2024-01-17 18:08:09.033 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/6gXrEUzibufX9xYPk3HD5p took 0.05 seconds
2024-01-17 18:08:09.033 WARNING (MainThread) [music_assistant.audio] Item 6gXrEUzibufX9xYPk3HD5p not found
2024-01-17 18:08:09.169 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/artists/0ECwFtbIWEVNwjlrfc6xoL took 0.09 seconds
2024-01-17 18:08:09.230 ERROR (MainThread) [music_assistant.providers.spotify] tracks/5ynO8cYFjDwELIZfFHHeYe - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/5ynO8cYFjDwELIZfFHHeYe?market=from_token&country=from_token')
2024-01-17 18:08:09.230 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/5ynO8cYFjDwELIZfFHHeYe took 0.05 seconds
2024-01-17 18:08:09.335 ERROR (MainThread) [music_assistant.providers.spotify] artists/0ECwFtbIWEVNwjlrfc6xoL/albums?include_groups=album,single,compilation - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/artists/0ECwFtbIWEVNwjlrfc6xoL/albums?include_groups=album,single,compilation&limit=50&offset=0&market=from_token&country=from_token')
2024-01-17 18:08:09.335 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/artists/0ECwFtbIWEVNwjlrfc6xoL/albums?include_groups=album,single,compilation took 0.05 seconds
2024-01-17 18:08:09.443 ERROR (MainThread) [music_assistant.providers.spotify] tracks/7fRvtXvJMpGfTLdF0M09a1 - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/7fRvtXvJMpGfTLdF0M09a1?market=from_token&country=from_token')
2024-01-17 18:08:09.443 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/7fRvtXvJMpGfTLdF0M09a1 took 0.05 seconds
2024-01-17 18:08:09.443 WARNING (MainThread) [music_assistant.audio] Item 7fRvtXvJMpGfTLdF0M09a1 not found
2024-01-17 18:08:09.549 ERROR (MainThread) [music_assistant.providers.spotify] tracks/4W4wYHtsrgDiivRASVOINL - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/4W4wYHtsrgDiivRASVOINL?market=from_token&country=from_token')
2024-01-17 18:08:09.549 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/4W4wYHtsrgDiivRASVOINL took 0.05 seconds
2024-01-17 18:08:09.676 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/0PdM2a6oIjqepoEfcJo0RO took 0.08 seconds
2024-01-17 18:08:09.755 ERROR (MainThread) [music_assistant.providers.spotify] artists/0ECwFtbIWEVNwjlrfc6xoL - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/artists/0ECwFtbIWEVNwjlrfc6xoL?market=from_token&country=from_token')
2024-01-17 18:08:09.755 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/artists/0ECwFtbIWEVNwjlrfc6xoL took 0.05 seconds
2024-01-17 18:08:09.851 ERROR (MainThread) [music_assistant.providers.spotify] tracks/0PdM2a6oIjqepoEfcJo0RO - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/0PdM2a6oIjqepoEfcJo0RO?market=from_token&country=from_token')
2024-01-17 18:08:09.852 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/0PdM2a6oIjqepoEfcJo0RO took 0.05 seconds
2024-01-17 18:08:09.852 WARNING (MainThread) [music_assistant.audio] Item 0PdM2a6oIjqepoEfcJo0RO not found
2024-01-17 18:08:10.028 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/artists/0ECwFtbIWEVNwjlrfc6xoL/top-tracks took 0.12 seconds
2024-01-17 18:08:10.108 ERROR (MainThread) [music_assistant.providers.spotify] tracks/2oSpQ7QtIKTNFfA08Cy0ku - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/2oSpQ7QtIKTNFfA08Cy0ku?market=from_token&country=from_token')
2024-01-17 18:08:10.109 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/2oSpQ7QtIKTNFfA08Cy0ku took 0.09 seconds
2024-01-17 18:08:10.109 WARNING (MainThread) [music_assistant.audio] Item 2oSpQ7QtIKTNFfA08Cy0ku not found
2024-01-17 18:08:10.188 ERROR (MainThread) [music_assistant.providers.spotify] tracks/39qYD4J4BKvZMQgxfXl5bv - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/39qYD4J4BKvZMQgxfXl5bv?market=from_token&country=from_token')
2024-01-17 18:08:10.188 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/39qYD4J4BKvZMQgxfXl5bv took 0.06 seconds
2024-01-17 18:08:10.188 WARNING (MainThread) [music_assistant.audio] Item 39qYD4J4BKvZMQgxfXl5bv not found
2024-01-17 18:08:10.287 ERROR (MainThread) [music_assistant.providers.spotify] tracks/4EFkvOhgAmlHEfDfvfSoh5 - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/4EFkvOhgAmlHEfDfvfSoh5?market=from_token&country=from_token')
2024-01-17 18:08:10.287 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/4EFkvOhgAmlHEfDfvfSoh5 took 0.05 seconds
2024-01-17 18:08:10.287 WARNING (MainThread) [music_assistant.audio] Item 4EFkvOhgAmlHEfDfvfSoh5 not found
2024-01-17 18:08:10.384 ERROR (MainThread) [music_assistant.providers.spotify] tracks/7dH1uyeLjl0OHWjaJ1GC5k - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/7dH1uyeLjl0OHWjaJ1GC5k?market=from_token&country=from_token')
2024-01-17 18:08:10.384 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/7dH1uyeLjl0OHWjaJ1GC5k took 0.05 seconds
2024-01-17 18:08:10.388 DEBUG (MainThread) [music_assistant.providers.slimproto.cli] Handling CLI-request (player: aa:aa:fb:39:1a:2c command: status - args: ['-', 2] - kwargs: {'tags': 'xcfldatgrKN'})
2024-01-17 18:08:10.391 DEBUG (MainThread) [music_assistant.providers.slimproto.cli] Handling CLI-request (player: aa:aa:fb:39:1a:2c command: time - args: ['?'] - kwargs: {})
2024-01-17 18:08:10.486 ERROR (MainThread) [music_assistant.providers.spotify] tracks/0L0T4tMAaGqLgIVj1MOj9t - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/0L0T4tMAaGqLgIVj1MOj9t?market=from_token&country=from_token')
2024-01-17 18:08:10.486 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/0L0T4tMAaGqLgIVj1MOj9t took 0.04 seconds
2024-01-17 18:08:10.599 ERROR (MainThread) [music_assistant.providers.spotify] tracks/5K3Q1gue9nWLLwh6bYQFoB - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/5K3Q1gue9nWLLwh6bYQFoB?market=from_token&country=from_token')
2024-01-17 18:08:10.599 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/5K3Q1gue9nWLLwh6bYQFoB took 0.05 seconds
2024-01-17 18:08:10.702 ERROR (MainThread) [music_assistant.providers.spotify] tracks/47M6M8qE0brSeu2dvQP36r - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/47M6M8qE0brSeu2dvQP36r?market=from_token&country=from_token')
2024-01-17 18:08:10.702 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/47M6M8qE0brSeu2dvQP36r took 0.05 seconds
2024-01-17 18:08:10.804 ERROR (MainThread) [music_assistant.providers.spotify] tracks/2gQaQUhDCNGfBVXTvxAmXQ - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/2gQaQUhDCNGfBVXTvxAmXQ?market=from_token&country=from_token')
2024-01-17 18:08:10.804 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/2gQaQUhDCNGfBVXTvxAmXQ took 0.05 seconds
2024-01-17 18:08:10.804 WARNING (MainThread) [music_assistant.audio] Item 2gQaQUhDCNGfBVXTvxAmXQ not found
2024-01-17 18:08:10.954 ERROR (MainThread) [music_assistant.providers.spotify] tracks/1Tr4K5MU5XYE44umXGDndd - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/1Tr4K5MU5XYE44umXGDndd?market=from_token&country=from_token')
2024-01-17 18:08:10.954 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/1Tr4K5MU5XYE44umXGDndd took 0.1 seconds
2024-01-17 18:08:10.954 WARNING (MainThread) [music_assistant.audio] Item 1Tr4K5MU5XYE44umXGDndd not found
2024-01-17 18:08:11.043 ERROR (MainThread) [music_assistant.providers.spotify] tracks/2uynnXFdf3wBIjOEHCB9up - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/2uynnXFdf3wBIjOEHCB9up?market=from_token&country=from_token')
2024-01-17 18:08:11.043 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/2uynnXFdf3wBIjOEHCB9up took 0.05 seconds
2024-01-17 18:08:11.141 ERROR (MainThread) [music_assistant.providers.spotify] tracks/0yfNXxlyXdmP0ue1iJijx1 - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/tracks/0yfNXxlyXdmP0ue1iJijx1?market=from_token&country=from_token')
2024-01-17 18:08:11.141 DEBUG (MainThread) [music_assistant.providers.spotify] Processing GET/tracks/0yfNXxlyXdmP0ue1iJijx1 took 0.05 seconds
2024-01-17 18:08:11.141 WARNING (MainThread) [music_assistant.audio] Item 0yfNXxlyXdmP0ue1iJijx1 not found

Additional information
No response
What version of Home Assistant Core are your running
2024.1.3
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Raspberry Pi

Where did you get that uri concept from?

Using mass.search.
I have an input_text with some artists an cycle on it
      - service: mass.search
         data:
           limit: 1
           name: "{{ states('input_select.ma_artist_radio_shuffle') }}"
           media_type:
             - artist
         response_variable: uri_result

I would check to see if perhaps mass.search is returning an invalid result?

Although the url in the error looks odd.

Although the url in the error looks odd.

Since it appears random… should be a provider error?

I have seen these errors in b82 as well while MA was idle for days. I configured only Spotify and radio as providers

Weird as I have Spotify as well but I haven’t seen this….?

@erkr did you notice if the error appears after new token retrieve?
2024-01-17 18:08:08.280 DEBUG (MainThread) [music_assistant.providers.spotify] Retrieved Spotify token using librespot in 0.76 seconds
2024-01-17 18:08:08.280 INFO (MainThread) [music_assistant.providers.spotify] Successfully logged in to Spotify as xxxxxx-yy

Same here. … but if something related to Spotify could no be significative.
we will see in the next days.

Appear right now… and also it seems there are more info (HTTP 502 - Bad Gateway)
`2024-01-22 15:40:36.924 ERROR (MainThread) [music_assistant.providers.qobuz] Error while processing track/getFileUrl:
502 Bad Gateway

502 Bad Gateway
nginx

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/music_assistant/server/providers/qobuz/__init__.py", line 690, in _get_data
    result = await response.json()
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1165, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('http://www.qobuz.com/api.json/0.2/track/getFileUrl?format_id=27&track_id=3357759&intent=stream&request_ts=1705934430.1896796&request_sig=d902325ead2ecb73208255a1f4e580c9&app_id=942852567&user_auth_token=TFxFPdR2XG71ocjOUqPHqoVFusLacL4LrFuJMx4Q0nT7tK22fqLCQ9aCi-eqoIBmbAioWyWW6DH23fDMvKx6Zw')
2024-01-22 15:40:36.980 ERROR (MainThread) [music_assistant.providers.qobuz] Error while processing track/getFileUrl:
502 Bad Gateway

502 Bad Gateway
nginx

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/music_assistant/server/providers/qobuz/__init__.py", line 690, in _get_data
    result = await response.json()
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1165, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('http://www.qobuz.com/api.json/0.2/track/getFileUrl?format_id=7&track_id=3357759&intent=stream&request_ts=1705934436.9254446&request_sig=696484ec2f3f0efb547c280ee73c5ab0&app_id=942852567&user_auth_token=TFxFPdR2XG71ocjOUqPHqoVFusLacL4LrFuJMx4Q0nT7tK22fqLCQ9aCi-eqoIBmbAioWyWW6DH23fDMvKx6Zw')
2024-01-22 15:40:37.033 ERROR (MainThread) [music_assistant.providers.qobuz] Error while processing track/getFileUrl:
502 Bad Gateway

502 Bad Gateway
nginx

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/music_assistant/server/providers/qobuz/__init__.py", line 690, in _get_data
    result = await response.json()
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1165, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('http://www.qobuz.com/api.json/0.2/track/getFileUrl?format_id=6&track_id=3357759&intent=stream&request_ts=1705934436.981313&request_sig=d3478bd458b3af7f1ed7e5c86ec840a9&app_id=942852567&user_auth_token=TFxFPdR2XG71ocjOUqPHqoVFusLacL4LrFuJMx4Q0nT7tK22fqLCQ9aCi-eqoIBmbAioWyWW6DH23fDMvKx6Zw')
2024-01-22 15:40:37.089 ERROR (MainThread) [music_assistant.providers.qobuz] Error while processing track/getFileUrl:
502 Bad Gateway

502 Bad Gateway
nginx

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/music_assistant/server/providers/qobuz/__init__.py", line 690, in _get_data
    result = await response.json()
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1165, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('http://www.qobuz.com/api.json/0.2/track/getFileUrl?format_id=5&track_id=3357759&intent=stream&request_ts=1705934437.034591&request_sig=9a477fea15954f80dec70d56d1330a5f&app_id=942852567&user_auth_token=TFxFPdR2XG71ocjOUqPHqoVFusLacL4LrFuJMx4Q0nT7tK22fqLCQ9aCi-eqoIBmbAioWyWW6DH23fDMvKx6Zw')
2024-01-22 15:40:37.141 ERROR (MainThread) [music_assistant.providers.qobuz] Error while processing track/getFileUrl:
502 Bad Gateway

502 Bad Gateway
nginx

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/music_assistant/server/providers/qobuz/__init__.py", line 690, in _get_data
    result = await response.json()
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1165, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('http://www.qobuz.com/api.json/0.2/track/getFileUrl?format_id=27&track_id=67678737&intent=stream&request_ts=1705934437.0897949&request_sig=f9b9b1b79434c400a6ef69049d943cb3&app_id=942852567&user_auth_token=TFxFPdR2XG71ocjOUqPHqoVFusLacL4LrFuJMx4Q0nT7tK22fqLCQ9aCi-eqoIBmbAioWyWW6DH23fDMvKx6Zw')
2024-01-22 15:40:37.987 ERROR (MainThread) [music_assistant.providers.qobuz] Error while processing track/getFileUrl:
502 Bad Gateway

502 Bad Gateway
nginx

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/music_assistant/server/providers/qobuz/__init__.py", line 690, in _get_data
    result = await response.json()
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1165, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('http://www.qobuz.com/api.json/0.2/track/getFileUrl?format_id=7&track_id=67678737&intent=stream&request_ts=1705934437.1425288&request_sig=480838e055a03fecdc956f04c0450e64&app_id=942852567&user_auth_token=TFxFPdR2XG71ocjOUqPHqoVFusLacL4LrFuJMx4Q0nT7tK22fqLCQ9aCi-eqoIBmbAioWyWW6DH23fDMvKx6Zw')
2024-01-22 15:40:38.049 ERROR (MainThread) [music_assistant.providers.qobuz] Error while processing track/getFileUrl:
502 Bad Gateway

502 Bad Gateway
nginx

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/music_assistant/server/providers/qobuz/__init__.py", line 690, in _get_data
    result = await response.json()
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1165, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('http://www.qobuz.com/api.json/0.2/track/getFileUrl?format_id=6&track_id=67678737&intent=stream&request_ts=1705934437.9878457&request_sig=47da0ac7635386c490bed2d7be6c227b&app_id=942852567&user_auth_token=TFxFPdR2XG71ocjOUqPHqoVFusLacL4LrFuJMx4Q0nT7tK22fqLCQ9aCi-eqoIBmbAioWyWW6DH23fDMvKx6Zw') `

That is totally different as that is to do with qobuz. Please try and keep followup on your original report.

Ok I didn't notice it's quobuz... I have checked the logs because playback was stopped using the same maas.search service reported above.

Are you playing back to a chromecast group?

no I am playing to an Apple Airport device

Ok I will close this issue as it seems to be fixed. If you have issues with Qobuz playing to an Airplay device then please raise a separate issue.

How it works radio mode?

I’m not sure as it is music provider specific.

Id say your media_type is wrong as well if you are passing an artist name

It's possible to "force" to use just one provider in mass.search? maybe mass.search retrieve an URI from quobuz and could ask to spotify and viceversa?

No you can’t. Do you even need to do the search first? Why not just call for the artist to be played?
If you want to keep doing it the way you are then note that complex URIs are no longer required. You could just pass “artistName - trackName”

I search for asrits name (taken from an input text)

        - service: mass.search
          data:
            limit: 1
            name: "{{ states('input_select.ma_artist_radio_shuffle') }}"
            media_type:
              - artist

And then pass the URI to mass.play

        - service: mass.play_media
          target:
            device_id: e325948e0c54ba0b8ea12bbc6d11b162
          data:
            media_type: playlist
            media_id: "{{ uri_result.artists[0]['uri'] }}"
            radio_mode: "on"
            enqueue: replace

So I guess the URI is valid since is retrieved by mass.search. I have spotivy and quobuz provider... could this a problem?

Yes but there is an assumption that your code does pull the url correctly. I just wondered that. But I still don’t know why you aren’t just doing something like
          service: mass.play_media
          target:
            device_id: e325948e0c54ba0b8ea12bbc6d11b162
          data:
            media_type: artist
            media_id: "{{ states('input_select.ma_artist_radio_shuffle') }}"
            radio_mode: "on"
            enqueue: replace

Ah ok because simply I haven't understand that I can pass Artist Name as media_id :)
I will change the script accordingly.... and let yoy know if the problem still appear.
Thanks

Hi with the new version seems that radio modo is no working. I am going tp open a different issue for this.


Crash with non-UTF8 characters

Opening a file containing non-utf8 character panic the server.

Should be fixed with 8a7ff6c


fix: refine the broken components configurations

Signed-off-by: hi-rustin<EMAIL_ADDRESS>

/hold
Needs more tests.

/release-note-none

/unhold
/assign @Mini256
Have tested no problem, in addition I also checked several core component logs, no problems so far.
PTAL~

/merge


Missing Font

Firtst of all: What a great baseimage! An awesome tool to create my own docker images, thank you!
I wanted a dockercontainer with the filemanager "krusader" so i git cloned the repo.
In "Dockerfile" I added:
ARG BASEIMAGE=jlesage/baseimage-gui:alpine-3.19-v4
RUN add-pkg krusader
COPY startapp.sh /startapp.sh
RUN set-cont-env APP_NAME "krusader"

In "startapp.sh" I have:
#!/bin/sh
exec /usr/bin/krusader

My Docker-Stack looks like this:
services:
    neotest:
        image: neo-test1:latest
        container_name: neo-test
        volumes:
            - config:/config
        ports:
            - 9075:5800
        environment:
            - USER_ID=1000 # user neo
            - GROUP_ID=100 # gruppe "users"
            - UMASK=0000
            - TZ=Europe/Berlin
            #- LANG=de_DE.UTF-8
        restart: unless-stopped

volumes:
  config:

This all works fine. The Image builds, den Container starts, the application starts, but I'm missing the font.

I have absolutly no clue what I can do about this. Any help would be great.

Usually, applications in Alpine repo are not pulling/installing a font. So you just need to install one yourself. For example, you could use something like this:
RUN add-pkg krusader font-dejavu

I tip my hat to you, sir!


Amazon capturing tokens only on desktop

PLEASE READ THE POSTING GUIDELINES AND ANSWER THE QUESTION BEFORE POSTING, OTHERWISE ISSUE WILL BE CLOSED AND MARKED AS INVALID

I hereby declare the following issue is a [tool specific question/bug report] and it is NOT a help request about creating a phishlet.
I am fully aware that this is not a customer support portal, I can't demand answers and I'm aware I am using a free tool.
I am not going to use Evilginx to hax my girlfriend's account or use it for any other illegal purpose.
I am not trying to set up a domain on FreeNOM (also read the sentence above again).
I am not a robot.

Please type in "I CONFIRM" below if you confirm the sentences above or otherwise make some funny remark:
I confirm
** Hello, I successfully enabled amazon Phishlets, its capturing only the email+password on mobile but it capturing the tokens too on desktop. is there anything I could do to fix this ? I use the default amazon phishlet on evilginx2**

Thanks!

Make your own phishlet

Make your own phishlet

very helpful! thanks!

Hi @marsi159
When I enable my amazon phislet only the Email can be write. How are you doing to have both email and password on the same page?
Thank you.

我已经制作了自己的亚马逊phislet，
我不知道它是否已链接，但是捕获和链接的每个会话都有一个ip地址...（我们的evilginx代理的地址），否则cookie不会通过验证并要求再次输入密码。您必须将服务器配置为与捕获的会话cookie一起在代理中使用。

我已经制作了自己的亚马逊phislet，
我不知道它是否已链接，但是捕获和链接的每个会话都有一个ip地址...（我们的evilginx代理的地址），否则cookie不会通过验证并要求再次输入密码。您必须将服务器配置为与捕获的会话cookie一起在代理中使用。

Did you modify Amazon's yaml file?  It is difficult for evilginx to obtain Amazon cookies and passwords.


Added type module

Added type module to fix https://github.com/sators/react-password-checklist/issues/18

This has been fixed in v1.8.


Designate kfp python package as optional dependency

Closes #3139
What changes were proposed in this pull request?

How was this pull request tested?

Developer's Certificate of Origin 1.1
   By making a contribution to this project, I certify that:

   (a) The contribution was created in whole or in part by me and I
       have the right to submit it under the Apache License 2.0; or

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

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

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

Testing this out currently, still getting, due to kfp not present:
0 00:24:08.592 ServerApp] Error loading schemas for SchemasProvider 'code-snippets' - No module named 'kfp'
[E 2024-04-30 00:24:08.593 ServerApp] Error loading schemas for SchemasProvider 'component-catalogs' - No module named 'kfp'
[E 2024-04-30 00:24:08.594 ServerApp] Error loading schemas for SchemasProvider 'runtimes' - No module named 'kfp'
[E 2024-04-30 00:24:08.595 ServerApp] Error loading schemas for SchemasProvider 'runtimes-images' - No module named 'kfp'
[W 2024-04-30 00:24:08.595 ServerApp] The following schemaspaces have no schemas: ['code-snippets', 'runtimes', 'runtime-images']

https://github.com/elyra-ai/elyra/blob/main/elyra/metadata/schema.py#L260

brief update: I managed to separate this out correctly, making build possible without kfp dependency. Will share a PR replacing this one shortly.
Great initial work, @akchinSTC! All the best for all your future endeavors.


Reduce number of AWS API invocations

Events per instance does not yield anything interesting so far, strip it.
Dont query for active members of ELB/ASK. Wrap this call in check command, so it is only done if it matters.

And do not query user_data if instance is already known, basically immutable data for an EC2 instance (?)

As one of the teams got affected by disabling instance events calls, we need to keep it. #86

@mohabusama

What is the problem statement here?
Can this be closed now or we need to work on this?


Resolves #2064

Remove wrong parameter.
https://github.com/MicrosoftDocs/windows-powershell-docs/issues/2064

Docs Build status updates of commit 7fad599:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docset/windows/adfs/Set-AdfsSslCertificate.md
:white_check_mark:Succeeded

docset/winserver2012r2-ps/adfs/Set-AdfsSslCertificate.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

@dariomws @get-itips @tseward
Peer review needed for this PR.
cc @JohanFreelancer9 for copy editing.
Thank you.

Docs Build status updates of commit 5b6cc85:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docset/windows/adfs/Set-AdfsSslCertificate.md
:white_check_mark:Succeeded

docset/winserver2012r2-ps/adfs/Set-AdfsSslCertificate.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 4b805a4:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docset/windows/adfs/Set-AdfsSslCertificate.md
:white_check_mark:Succeeded

docset/winserver2012r2-ps/adfs/Set-AdfsSslCertificate.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 8da12da:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docset/windows/adfs/Set-AdfsSslCertificate.md
:white_check_mark:Succeeded

docset/winserver2012r2-ps/adfs/Set-AdfsSslCertificate.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Sink creation fails with error StatusCode.PERMISSION_DENIED

Hello,
I try to create a bigquery logging sink with the code below:
from google.cloud import logging

client = logging.Client()

sink = client.sink("pull-logs",
                   'severity >= DEBUG',
                   'bigquery.googleapis.com/projects/karos-api/datasets/custom')

if not sink.exists():
    print(vars(client.connection.credentials))
    sink.create()

It fails with the error:
Traceback (most recent call last):
  File "do_sink.py", line 12, in <module>
    sink.create()
  File "/usr/local/lib/python2.7/dist-packages/google/cloud/logging/sink.py", line 119, in create
    self.project, self.name, self.filter_, self.destination)
  File "/usr/local/lib/python2.7/dist-packages/google/cloud/logging/_gax.py", line 200, in sink_create
    self._gax_api.create_sink(parent, sink_pb, options=options)
  File "/usr/local/lib/python2.7/dist-packages/google/cloud/gapic/logging/v2/config_service_v2_api.py", line 303, in create_sink
    return self._create_sink(request, options)
  File "/usr/local/lib/python2.7/dist-packages/google/gax/api_callable.py", line 481, in inner
    return api_caller(api_call, this_settings, request)
  File "/usr/local/lib/python2.7/dist-packages/google/gax/api_callable.py", line 469, in base_caller
    return api_call(*args)
  File "/usr/local/lib/python2.7/dist-packages/google/gax/api_callable.py", line 434, in inner
    errors.create_error('RPC failed', cause=exception))
  File "/usr/local/lib/python2.7/dist-packages/google/gax/api_callable.py", line 430, in inner
    return a_func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/google/gax/api_callable.py", line 64, in inner
    return a_func(*updated_args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/grpc/_channel.py", line 481, in __call__
    return _end_unary_response_blocking(state, False, deadline)
  File "/usr/local/lib/python2.7/dist-packages/grpc/_channel.py", line 432, in _end_unary_response_blocking
    raise _Rendezvous(state, None, None, deadline)
google.gax.errors.GaxError: GaxError(RPC failed, caused by <_Rendezvous of RPC that terminated with (StatusCode.PERMISSION_DENIED, The caller does not have permission)>)

I verified that:

the big-query dataset exists
<EMAIL_ADDRESS>as sufficient rights for big-query https://cloud.google.com/logging/docs/export/configure_export#manual-access-bq
the scopes seems ok with print(vars(client.connection.credentials)) :

{'token_uri': 'https://www.googleapis.com/oauth2/v4/token', 'token_response': None, 'token_expiry': None, '_kwargs': {}, 'invalid': False, 'assertion_type': None, '_scopes': 'https://www.googleapis.com/auth/logging.read https://www.googleapis.com/auth/logging.write https://www.googleapis.com/auth/logging.admin https://www.googleapis.com/auth/cloud-platform' }

Have you any ideas about what is going on ?

It seems like it's an access issue, not a scopes issue. You're seeing the gRPC equivalent of a 403. Can you confirm that the BigQuery dataset exists and<EMAIL_ADDRESS>has "sufficient rights" programmatically?

@Fkawala see the [docs for configuring permissions on BigQuery sinks].

@Fkawala can you verify the grants in Python?  E.g.:
from google.cloud import bigquery
from google.cloud.bigquery.dataset import AccessGrant
bigquery_client = bigquery.Client()
dataset = bigquery_client.dataset('custom')
dataset.reload()
for grant in dataset.access_grants:
    print(grant)

It should include:
<AccessGrant: role=WRITER<EMAIL_ADDRESS>

@tseaver thanks for the tips<EMAIL_ADDRESS>does appear in the grants:
<AccessGrant: role=WRITER<EMAIL_ADDRESS><AccessGrant: role=OWNER, specialGroup=projectWriters>
<AccessGrant: role=OWNER<EMAIL_ADDRESS>

I can create the sink using my own account and this test form. In the python script the service account is a project EDITOR, while I'm a project OWNER, could that explain the different results ?
The error log (from google cloud console) does not provides much information.
{
 metadata: {
  severity: "ERROR"
  projectId: "my-project-id"
  serviceName: "logging.googleapis.com"
  labels: {
   logging.googleapis.com/resource_id: "service-name"
   logging.googleapis.com/resource_type: "sink"
  }
  timestamp: "2016-10-25T06:57:03.275705878Z"
 }
 protoPayload: {
  @type: "type.googleapis.com/google.cloud.audit.AuditLog"
  status: {
   code: 7
  }
  authenticationInfo: {
   principalEmail<EMAIL_ADDRESS>
  }
  requestMetadata: {
   callerIp: "<IP_ADDRESS>"
   callerSuppliedUserAgent: "Python-gRPC-1.0.0 grpc-c/1.0.0 (manylinux; chttp2),gzip(gfe)"
  }
  serviceName: "logging.googleapis.com"
  methodName: "google.logging.v2.ConfigService.CreateSink"
  authorizationInfo: [
   0: {
    resource: "projects/my-project-id"
    permission: "logging.sinks.create"
   }
  ]
  resourceName: "projects/my-project-id/service-name"
  request: {
   sink: {
    filter: "severity >= DEBUG"
    destination: "bigquery.googleapis.com/projects/my-project-id/datasets/logging"
    name: "service-name"
   }
   @type: "type.googleapis.com/google.logging.v2.CreateSinkRequest"
   parent: "projects/my-project-id"
  }
 }
 insertId: "2016-10-24|23:57:03.275742-07|<IP_ADDRESS>|470165258"
 log: "cloudaudit.googleapis.com/activity"
}

@Fkawala Your hunch sounds plausible, even though the docs refer only to scopes, rather than roles.  One thing to check:  Is the logging client configured using the same project as the Bigquery table?

I have a possibly related issue with permissions in BQ and service account JSON file. Correct permissions are with the service account, and I can do the creation of datasets/tables with default client when signed in using the CLI. I'd like to pick this issue up if they are related and no one has any objections? I have been in contact with GCP support already. @Fkawala, are you seeing this issue with other BQ calls?

@cmac4603 The only other BQ call I do is for data insertion (as described below). It worth mentioning  that I did not try any further to get the sink creation working.
# google-cloud-bigquery>=0.24.0
client = bigquery.Client()
data_set = client.dataset(self._bq_dataset)
bq_table = data_set.table(self._bq_table)
bq_table.reload()
errors = bq_table.insert_data(rows=self._measures)

@Fkawala I think I was getting an error even trying to reload(), which is a GET request, so the two may not be related. But permissions seem fine, I'll keep digging my end and if I find some error will get back in touch

Hello,
One of the challenges of maintaining a large open source project is that sometimes, you can bite off more than you can chew. As the lead maintainer of google-cloud-python, I can definitely say that I have let the issues here pile up.
As part of trying to get things under control (as well as to empower us to provide better customer service in the future), I am declaring a "bankruptcy" of sorts on many of the old issues, especially those likely to have been addressed or made obsolete by more recent updates.
My goal is to close stale issues whose relevance or solution is no longer immediately evident, and which appear to be of lower importance. I believe in good faith that this is one of those issues, but I am scanning quickly and may occasionally be wrong. If this is an issue of high importance, please comment here and we will reconsider. If this is an issue whose solution is trivial, please consider providing a pull request.
Thank you!


Add Fortran support

Add Fortran Language Server (fortls)
https://github.com/hansec/fortran-language-server

Looks good to me, will merge soon after I tested it

Thank you :)

great, thank you and no problem


Add more detail for Ops Manager and PKS projects

@njbennett @dsabeti @sjolicoeur
During the onbooarding retro, we had mentioned these projects needed some more details and guidance.
I've filled out the Deploy Ops Manager and Deploy PKS projects in this PR. Let me know if there are any changes you'd like me to make.

I'm going to try to get this done before the upcoming Oct 8 Onboarding week.


Feature requests: response time and payload size

Thank you very much for such a well done extension, it's become indespensible to me. Just wanted to throw in two features that would be amazing to have: response time and payload size.
I don't know if I'll have time to get to it myself the next couple of months though, so feel free to close if this is just an annoying issue.

Hey @axhamre thanks for the kind words. I'm really glad you found value in the extension.
I'm actually doing a big update at the moment, mainly adding search and a "preserve log" checkbox amongst other things.
I'll add response time and size into the new feature set.
I'll leave this open until that's done.

Two extra columns have been added to show time and size. We can expand on this later for more granular detail. Will release this week.


Adds webview select-all command

This change adds a select-all command for webviews, to fix #8794
//cc @mjbvz

 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: arjun27 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Thanks! Will be in the next insiders build and scheduled for the VS Code July release


prisma should list the dev command

The output should list the dev command:
◭ Prisma makes your data easy (https://prisma.io)

Usage

  $ prisma [command]

Commands

      lift   Migrate your datamodel
   convert   Converts a datamodel 1 to datamodel 2
introspect   Get the datamodel of your database
  generate   Generate Photon
       new   Setup Prisma for your app
      seed   Seed data into your database

Examples

  Initialize files for a new Prisma service
  $ prisma new

  Deploy service changes (or new service)
  $ prisma lift

Fixed in latest alpha.


merge from template

.github/workflows/update_readme_api.yml

chore: (on.push)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 95.161%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
54

Relevant Lines:
56

💛  - Coveralls


WinAppDriver crashes almost daily

Hi, we're using WinAppDriver for more than a year now.
Most of the time it works just fine.
But from time to time it crashes.
Recently we updated to v1.2.1 but the behavior did not change.
Our daily routine is about 4 hours of clicking.
Error happens from time to time - one or two times a week.
I added daily restarting of WinAppDriver but it does not help.
May be WinAppDriver logs its errors somewhere?

OpenQA.Selenium.WebDriverException: OpenQA.Selenium.WebDriverException:
A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://<IP_ADDRESS>:4723/session.
The status of the exception was ReceiveFailure, and the message was:
The underlying connection was closed:
An unexpected error occurred on a receive. ---> System.Net.WebException:
The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException:
Unable to read data from the transport connection:
An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException:
An existing connection was forcibly closed by the remote host.

Better use Appium desktop or appium command line.


Font request not up to date (Android)

Hi !
I'm not sure this is the right place to post it. Anyway.
I tried to use the Noto Color Emoji Compat from Android Jetpack EmojiCompat libary.
As explained in the example, best way to reduce bundle size is to use a FontRequest like this
val fontRequest = FontRequest(
            "com.google.android.gms.fonts",
            "com.google.android.gms",
            "Noto Color Emoji Compat",
            R.array.com_google_android_gms_fonts_certs
        )

        val fontRequestConfig = FontRequestEmojiCompatConfig(applicationContext, fontRequest)

        EmojiCompat.init(
            fontRequestConfig
                .setReplaceAll(true)
                .setUseEmojiAsDefaultStyle(true)
        )

With a callback notifying when loaded.
The thing is: It is not working.
As far as I can tell, looking on the website nothing has been updated since 2017 (which matches the Emojis I can see or not, Emoji 5.0 are ok , 11 are not).
Anyway I tried with the BundledEmojiCompatConfig(this) instead of the FontRequestEmojiCompatConfig because I can see that this repository is up to date with Emoji 13.1 and it works fine ! But my app is quite big.
Is there another repo for the font-request ? Am I wrong somewhere ? For now I can go with BundledEmojiCompatConfig(this) but it's kind of sad that FontRequestEmojiCompatConfig isn't working as it is the recomended way.
Thanks for any help
PS: Here are two screenshots, first working (except face smiling with tears) with BundledEmojiCompatConfig, second with FontRequestEmojiCompatConfig

Recommend that you star🌟 this related issue⤵
EmojiCompat didn't display 🥰 when initializing with FontRequestEmojiCompatConfig on API 23 [157954437] - Public Issue Tracker
➕ create new issue and link here for increased visablity.
https://issuetracker.google.com/issues/new?component=460938&template=1422574

@ChiefMikeK ! Doing it right now :) Thanks !


Move some of performance scenarios to later stage

Context
Closes https://github.com/gradle/gradle-private/issues/2401
We want to move performance tests to later stage to improve feedback time. For Unroll scenarios, some of them are moved to later stage.

@bot-gradle test RFR

OK, I've already triggered ReadyForRelease build for you.

@bot-gradle test RFR

OK, I've already triggered ReadyForRelease build for you.


Support test fixtures as a first class concept

Sharing test fixtures for a library is a common use case that Gradle should support out of the box:

test fixtures are code that makes it easier to test a library
test fixtures depend on the main code of the library
the library's tests depend on its test fixtures
downstream project's tests should automatically depend on the test fixtures if they depend on the library
test fixtures can be published alongside the library, including proper dependency declarations

Alternatively, we could provide the infrastructure for users to define their own components and their relationships and leave test fixtures to a community plugin. But I think they are important enough to be a core concept.

@oehme To follow up on our discussion from #1061, how would a sub-project define a dependency on this "test fixture" artifact?
Specifically asking about your statement "So as long as there is exactly one publication with a component (your main library), that one's coordinates will be put in dependency declarations of downstream projects."
I guess it depends on what you mean by "downstream projects".  As far as normal "external dependency" notation, the test fixture would have a different name/artifactId (hibernate-testing versus hibernate-core), so I am not overly worried out that.  However, I am worried about sub-projects.  Assuming that the project hibernate-core defines this configuration/publication/artifact, how would another Hibernate ORM sub-project reference that as a dependency?
Thanks, as always, for your help :)

As of now, you'll have to put it into a Configuration and reference that Configuration. E.g.
configurations {
  testFixtures
}

artifacts {
  testFixtures testFixturesJar
}

dependencies {
  testImplementation project(path :'foo', configuration: 'testFixtures')
}

Ah sweet, that's perfect.  Did not realize that project-dependencies could specify configuration.  And this solution (^^) is available already in 4.8/4.9?

Oh, that's been around since 1.0 :)

That's what I get for starting at .7 ;)

Might have been there too, I didn't check. I was late to the party compared to you :)

Addressed by https://github.com/gradle/gradle/pull/9632

Documentation has been added as well #9724


Is it possible to add Cloudfront aliases to outputs?

Is your request related to a new offering from AWS?
Is this functionality available in the AWS provider for Terraform? See CHANGELOG.md, too.

Yes ✅: aws_cloudfront_distribution datasource have the aliases field

Is your request related to a problem? Please describe.
My use case is adding CNAME records about Cloudfront distribution to DNS providers like Cloudflare. I can take the distribution domain name from the cloudfront_distribution_domain_name output, but cannot take aliases where that domain name should point to.
Describe the solution you'd like.
I prefer output like cloudfront_distribution_aliases which contains all aliases to that distribution.
Something like that
resource "cloudflare_record" "cloudflare_record-test-example-com" {
  zone_id = data.cloudflare_zone.example-com.id
  name    = module.cloudfront.cloudfront_distribution_aliases[0]
  value   = module.cloudfront.cloudfront_distribution_domain_name
  type    = "CNAME"
  ttl     = 1
  proxied = true

  allow_overwrite = true
}

Describe alternatives you've considered.
At this moment I solved that problem via tags (just added tag domain and got its value from cloudfront_distribution_tags["domain"]), but it is ugly workaround.

There is no attribute for the aliases in the aws_cloudfront_distribution resource.
You should use aws_cloudfront_distribution data-source to get information about aliases.


Mz multi yaml

Any though when this will be merged? I also suffer from #22 and find the constant barrage of useless error messages annoying

Any though when this will be merged? I also suffer from #22 and find the constant barrage of useless error messages annoying

Hi, I go to merge it now.
Btw, you can use the beta versions if you'd like to use the latest fixes. See: https://github.com/signageos/vscode-sops#beta-releases

Hi, I go to merge it now.
Btw, you can use the beta versions if you'd like to use the latest fixes. See: https://github.com/signageos/vscode-sops#beta-releases


Add support for TLS

Enable TLS terminated Zookeeper connections
Support output logging in JSON format

@carlpett just went to pull the latest docker image from dockerhub but noticed it hadn't updated and the circleci pipeline shows it failed to release, at least to GH:
https://app.circleci.com/pipelines/github/carlpett/zookeeper_exporter/2/workflows/dce6dae2-5131-4672-a46c-ae1817301c0e/jobs/48
anything I can do to help the pipeline pass?

It appears a couple of things have broken by updates to both DockerHub and CircleCI since this was last released. I'm trying to patch things up a bit now, a proper fix will be upcoming.

Was a hack to do, but now there is a binary in the Github release, and both latest and v1.1.0 tags should be up-to-date on Docker Hub.
Thanks for noticing!

Neat. Thanks. I'll give pulling it another shot tomorrow. Not familiar with
circleci so sorry couldn't be much help.
On Tue, 16 Jun 2020, 4:56 pm Calle Pettersson<EMAIL_ADDRESS>wrote:

Was a hack to do, but now there is a binary in the Github release, and
both latest and v1.1.0 tags should be up-to-date on Docker Hub.
Thanks for noticing!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/carlpett/zookeeper_exporter/pull/20#issuecomment-644570635,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAI5SUERB7OI4F6CSCOJUE3RW4JQZANCNFSM4N5WOWUQ
.


Add stepPadding as Stepper attribute instead of hardwritten value

Adding stepPadding as Stepper attribute. It was currently hardWritten.
Before: Hardwritten padding around Step const EdgeInsets.all(24.0)

After: Customizable padding around Step
Example: const EdgeInsets.all(0)

Example: const EdgeInsets.all(16)

Issue Fixed

I'm closing this due to lack of activity.

Hello, possible to merge or integrate this attribute, there is too much padding in the step. Thx a lot.


Specify jsonc

Specify devcontainer.json as jsonc.

What are the reasons to disallow trailing commas? (Looking at https://github.com/microsoft/vscode/pull/146957.)

JSON C isn't exactly a spec and not all editors will tolerate trailing commas like VS Code does. Additionally, libraries for JSON C support comments, but no additional features like trailing commas (example)
See this discussion for more about it: https://github.com/microsoft/vscode/issues/102061

Makes sense. Merging the PR, thanks @greggroth!


Modifies types to handle missing image URLs.

Almost entirely type changes, didn't feel the need to test. Let me know what you think.
Addresses https://github.com/artsy/auctions/issues/699 .

It's a good question – if the URLs were null, things get weird. This line returns a "non-null" URL from a function that can return nil. When Swift tries to unwrap that nil value to return a non-null value, then the app crashes on – I guess – philosophical grounds :)


Support label selectors

The tree command currently requires you to specify a single resource to use as the root. It would be helpful to instead be able to use a label selector (like kubectl get -l) and then build trees from each of the resources that match that selector.

This tool is currently a single-rooted tree, by design.
You can easily do
for res in $(kubectl get -l ...);  do
   kubectl tree "$res"
done

and make use of unix tool composability. :)
I don't want to open a can of worms like "what happens if one of the requests fail", "how do  we render multiple trees" etc.


Sweeps documentation: custom command substitution variables

wandb --version && python --version && uname

Weights and Biases version:wandb version 0.8.27
Python version: 3.6
Operating System: Ubuntu 18.04

Description
Run a sweep with a custom command
What I Did
program: train_classifier.py
command:
  - python
  - ${program}
  - "--config"
  - configs/iic/mnist.yaml
  - "--device"
  - cuda:0
  - ${args}
method: random
metric:
  name: test_accuracy
  goal: maximize
parameters:
  data_aug_max_rotate:
    min: 0.05
    max: 0.4

Couldn't find documentation for the magic substitutions, specifically the ${args} substitution.  Which seems really important.  In the end I got it by a wild guess.
If it's documented somewhere already, my bad, go ahead and close this out.
Thanks
Duane

Hi Duane, thanks for commenting on this. Great idea, I'll add it to the docs.

Added here: https://docs.wandb.com/sweeps/common-issues#sweep-with-custom-commands

Sorry Carey, I don't see a reference to ${args} or any of the other substitutions there.  That looks exactly the same as the old doc.  Perhaps the edit didn't get saved properly?