Serialization error when querying "ListRoles" with more than 1 role

Hello,
Here is my moto version :
pip3 show moto
Name: moto
Version: 4.1.5
Summary:
Home-page: https://github.com/getmoto/moto
Author: Steve Pulec
Author-email<EMAIL_ADDRESS>License: Apache License 2.0

I am provisioning roles with Terraform on moto and so far everything was working pretty well.
But now I am testing with more than one role and Moto returns half of the array :
{
          IsTruncated: false,
          Roles: [{
              Arn: "arn:aws:iam::123456789012:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling",
              AssumeRolePolicyDocument: "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Action\": [\"sts:AssumeRole\"], \"Effect\": \"Allow\", \"Principal\": {\"Service\": [\"autoscaling.amazonaws.com\"]}}]}",
              CreateDate: 2023-04-06 15:35:52.853 +0000 UTC
            },<invalid value>]
        }

Checking on Moto Dashboard, I have two roles though :
account_id: "123456789012" 	arn: "arn:aws:iam::123456789012:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling"
account_id: "123456789012" 	arn: "arn:aws:iam::123456789012:role/Lab-Asg"

I deleted the first role with an aws cli command and it works again.
aws iam --endpoint http://localhost:4566 delete-role --role-name "AWSServiceRoleForAutoScaling" --profile mock-aws
I think it has to be with some values of the role but I can't figure it out.
I managed to work around this by using paginated calls with 1 MaxItems and it works.

Hi @kevinvalleau, I'm not able to reproduce this immediately. Can you share a simplified (Terraform) test script that demonstrates the problem?

I'll try as soon as I can. I'll reduce my whole code to just the problematic portion and ship it to you.

Ok. I managed to narrow it and reproduce it.
Here is the Terraform code I use to provision the roles:
File "providers.tf"
provider "aws" {
  region     = "us-east-1"
  access_key = "test"
  secret_key = "test"
  profile    = "mock-aws"

  s3_use_path_style           = true
  skip_credentials_validation = true
  skip_metadata_api_check     = true

  endpoints {
    iam      = "http://localhost:4566"
    sts      = "http://localhost:4566"
  }
}

File "requirements.tf"
terraform {
  required_version = ">= 1.3"

  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "> 4.38"
    }
  }
}

File "iam.tf"
data "aws_caller_identity" "current" {}

locals {
  account_id = data.aws_caller_identity.current.account_id
}

resource "aws_iam_service_linked_role" "autoscaling" {
  aws_service_name = "autoscaling.amazonaws.com"
  custom_suffix    = "test"
}

data "aws_iam_policy_document" "assume_role" {
  statement {
    effect = "Allow"
    actions = [
      "sts:AssumeRole",
    ]

    principals {
      type        = "Service"
      identifiers = ["ec2.amazonaws.com"]
    }
  }
}

data "aws_iam_policy_document" "cluster" {
  statement {
    effect = "Allow"

    actions = [
      "ec2:DescribeInstances",
      "ec2:DescribeTags",
    ]

    resources = ["*"]
  }
}

resource "aws_iam_policy" "cluster" {
  name_prefix = "ClusterPolicy-"
  policy      = data.aws_iam_policy_document.cluster.json
}

data "aws_iam_policy_document" "kms" {
  statement {
    effect = "Allow"

    actions = [
      "kms:DescribeKey",
      "kms:Encrypt",
      "kms:Decrypt",
    ]

    resources = [
      "arn:aws:kms:us-east-1:${local.account_id}:key/*",
    ]
  }
}

resource "aws_iam_policy" "kms" {
  name_prefix = "KmsPolicy-"
  policy      = data.aws_iam_policy_document.kms.json
}

data "aws_iam_policy_document" "secret" {
  statement {
    effect = "Allow"

    actions = [
      "secretsmanager:GetSecretValue",
    ]

    resources = [
      "arn:aws:secretsmanager:us-east-1:${local.account_id}:secret:*",
    ]
  }
}

resource "aws_iam_policy" "secret" {
  name_prefix = "SecretPolicy-"
  policy      = data.aws_iam_policy_document.secret.json
}

data "aws_iam_policy_document" "logs" {
  statement {
    sid    = "WriteEvents"
    effect = "Allow"
    actions = [
      "logs:PutLogEvents"
    ]
    resources = [
      "arn:aws:logs:us-east-1:${local.account_id}:log-group:test:log-stream:*"
    ]
  }
  statement {
    sid    = "InstancesLogs"
    effect = "Allow"
    actions = [
      "logs:CreateLogStream",
      "logs:DescribeLogStreams"
    ]
    resources = [
      "arn:aws:logs:us-east-1:${local.account_id}:log-group:test"
    ]
  }
}

resource "aws_iam_policy" "logs" {
  name_prefix = "LogPolicy-"

  policy = data.aws_iam_policy_document.logs.json
}

resource "aws_iam_instance_profile" "profile" {
  name_prefix = "Asg-"
  path        = "/"
  role        = aws_iam_role.profile.name
}

resource "aws_iam_role" "profile" {
  name               = "Asg-"
  assume_role_policy = data.aws_iam_policy_document.assume_role.json
  managed_policy_arns = [
    "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore",
    "arn:aws:iam::aws:policy/AmazonSSMDirectoryServiceAccess",
    aws_iam_policy.cluster.arn,
    aws_iam_policy.kms.arn,
    aws_iam_policy.secret.arn,
    aws_iam_policy.logs.arn,
  ]
}

If I test with aws-cli:
$ aws iam --endpoint http://localhost:4566 list-roles --profile mock-aws

invalid literal for int() with base 10: 'None'

With an API Call:
{
          IsTruncated: false,
          Roles: [{
              Arn: "arn:aws:iam::123456789012:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling_test",
              AssumeRolePolicyDocument: "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Action\": [\"sts:AssumeRole\"], \"Effect\": \"Allow\", \"Principal\": {\"Service\": [\"autoscaling.amazonaws.com\"]}}]}",
              CreateDate: 2023-04-11 12:53:24.826 +0000 UTC
            },<invalid value>]
        }

If I delete the "autoscaling_test" role with aws-cli:
aws iam --endpoint http://localhost:4566 delete-role --role-name "AWSServiceRoleForAutoScaling_test" --profile mock-aws
It works again:
$ aws iam --endpoint http://localhost:4566 list-roles --profile mock-aws
{
    "Roles": [
        {
            "Path": "/",
            "RoleName": "Asg-",
            "RoleId": "AROARZPUZDIKHMF7IYJ6C",
            "Arn": "arn:aws:iam::123456789012:role/Asg-",
            "CreateDate": "2023-04-11T12:53:25.782000+00:00",
            "AssumeRolePolicyDocument": {
                "Statement": [
                    {
                        "Action": "sts:AssumeRole",
                        "Effect": "Allow",
                        "Principal": {
                            "Service": "ec2.amazonaws.com"
                        },
                        "Sid": ""
                    }
                ],
                "Version": "2012-10-17"
            },
            "MaxSessionDuration": 3600
        }
    ]
}

I hope this can help.

Thanks for the repro @kevinvalleau. That invalid literal for int() with base 10: 'None' error message was actually fixed recently with #6128 (specifically https://github.com/getmoto/moto/pull/6128/files#diff-01280879804e81d23f90619412bf75f7d37a5859206ccb20e537d8a55498c914) - and your example does work against the latest version of Moto.
Are you able to upgrade to 4.1.6 and verify that solves the problem?

Oops. I updated to 4.1.7 and it is indeed solved. Sorry for the duplicate :P
I'm closing this issue.

All good @kevinvalleau! Happy to hear this is solved.


DS Build should fail upon Drupal errors

e.g. "Table already exists", "Table does not exist" errors should cause a build to fail, helping us catch them as they occur.
Refs https://github.com/DoSomething/dosomething/issues/3211#issuecomment-60418814

pretty sure this happens now


Changes to support Fashion Mnist, Multiple Channels, Windows and Python3 + other fixes for Macro

@j-varun I know I merged the changes, but you can still update the PR according to the comments, or update with the changes and create a new one.


Community CatalogSource pod should use the RHEL 8

Copied it from https://bugzilla.redhat.com/show_bug.cgi?id=1980671:
Steps to Reproduce:
1. Install OCP 4.8
2. Project to the openshift-marketplace namespace.
[cloud-user@preserve-olm-env jian]$ oc get pods
NAME                                                              READY   STATUS      RESTARTS   AGE
3ace0a1c4e2f8fea7add6dbe3b53b2cecaab24ee45b7dc5ff825c5278ecqx6h   0/1     Completed   0          6h15m
9a84ac6855a66ef231eee91bf2b0dee2eb322a19b69b82ebcdc14fba46dj8pr   0/1     Completed   0          6h15m
certified-operators-cpt94                                         1/1     Running     0          6h40m
community-operators-24vnl                                         1/1     Running     0          6h40m
marketplace-operator-67c66b66b8-djn9z                             1/1     Running     0          6h47m
qe-app-registry-gt7cc                                             1/1     Running     0          6h15m
redhat-marketplace-vjwdj                                          1/1     Running     0          6h40m
redhat-operators-l8p4r                                            1/1     Running     0          6h40m

3. Check the pod's OS.

Actual results:
The community CatalogSource used the RHEL 7.9
[cloud-user@preserve-olm-env jian]$ for p in $(oc get pods |awk 'NR == 1 {next} {print $1}'); do oc exec $p -- cat /etc/redhat-release;done
error: cannot exec into a container in a completed pod; current phase is Succeeded
error: cannot exec into a container in a completed pod; current phase is Succeeded
Red Hat Enterprise Linux release 8.4 (Ootpa)
Red Hat Enterprise Linux Server release 7.9 (Maipo)
Red Hat Enterprise Linux release 8.4 (Ootpa)
cat: can't open '/etc/redhat-release': No such file or directory
command terminated with exit code 1
Red Hat Enterprise Linux release 8.4 (Ootpa)
Red Hat Enterprise Linux release 8.4 (Ootpa)

Expected results:
It should use RHEL 8.4 as others.

Thanks Jian, we'll track this via internal Jira for OpenShift


Can't verify my Aadhaar QR

I'm getting an error everytime I upload the QR to verify for Devcon.

cc: @saleel @Meyanis95

Hey @Karan9034
Did you get your QR Code on the mAadhaar app?

Yes

Have already used a previous version of Anon Aadhaar on this Browser?
Could you please try to delete all your cache and try again?

No never used Anon Aadhaar before.
Trying this on Incognito, so cache is being cleared automatically.

The message goes upto "Generating Proof", then changes to "Oops, something went wrong".
Console shows out of bounds error.

Are these files present in your indexedDB?

@Meyanis95  same for me also ,

Hey, I figured out what's the issue. For some reason the "Generating Proof" part doesn't work in incognito mode. Using it normally should work fine. Also discount coupons for devcon through anon aadhaar were over when I last checked, so there's no point doing it now.

@Karan9034  ,thanks for letting me know about the devcon tickets :)


dont show token in prod

Fixes https://github.com/stencila/sibyl/issues/56

Codecov Report

Merging #60 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #60   +/-   ##
=======================================
  Coverage   81.31%   81.31%
=======================================
  Files           1        1
  Lines         198      198
=======================================
  Hits          161      161
  Misses         37       37

Continue to review full report at Codecov.

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


Sorting from cards is off when using german translation

I don't know if there is an internal card prio sorting inside of HS but this would be nice, if it would fit the localization of the language used:

When transferring decks manually from the Tracker to HS it is easier to read, imo.
Kind Regards!

Fixed for next version


[Question] Cythonize the package for faster speed?

This is already quite a fast package. Can we crazier and move all the pure python code to Cython code? I am new to Cython and I am not sure if that would increase the speed. What do you think?

This could help, but the intent/vision of pure predict is to make deployment packages as lightweight as possible. So requiring Cython in a deployment container or serverless package would violate this. Said differently, the intent is to navigate the tradeoff between deployment package size (explicit cost and cold start latency for serverless applications) and prediction latency.
For small prediction size, we actually get better latency than with numpy (numpy gives us big gains with linear algebra operations for large 2-D arrays, but for shape (1,N), we are better off with pure python in some cases). I'm not sure where Cython optimized pure python (rather than Cython optimized numpy) would fall here. But shipping a really clean/lightweight/fast deployment package for serverless (eg. AWS Lambdas on off-the-shelf python environments) is truly the goal.


Build/release Python 3.11 tflite-runtime MacOS wheels to PyPI

Issue type
Feature Request
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
2.14.0
Custom code
Yes
OS platform and distribution
MacOs
Mobile device
No response
Python version
4.11
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
We are currently needing to run automated jobs on MacOS using tflite-runtime and Python 3.11, but the wheels on Pypi only cover Linux.
Standalone code to reproduce the issue
pip install tflite-runtime

Relevant log output
ERROR: Could not find a version that satisfies the requirement tflite-runtime (from versions: none)
ERROR: No matching distribution found for tflite-runtime

same interested!

This issue originally reported by @chatnord has been moved to this dedicated repository for LiteRT to enhance issue tracking and prioritization. To ensure continuity, we have created this new issue on your behalf.
We appreciate your understanding and look forward to your continued involvement.


Don't marshal symbol when it is just created from the same script context

Marshal symbol in JavascriptObject::CreateKeysHelper is unnecessary because it is just created from the same script context.

Pointed out by @rajatd. @rajatd @kunalspathak please help review.

Looks good to me.

LGTM


Duplicate Wi-Fi SSIDs sometimes show.

Reported by @suprnrdy
It looks possibly in cases of mesh networks or multiple SSIDs NMCLI detects these as the induvidual networks.
To-Do:
If possible merge SSIDs that are the same together.
https://media.discordapp.net/attachments/803988836643241984/827577146767441920/image0.png?width=317&height=686

https://github.com/NebraLtd/hm-config/commit/6b05a0f5aec1ae96be125511fb637f7b8dd98a4b Should resolve this issue.


Increase contrast in Spacegray Light theme

Really like the Spacegray dark theme but like all dark themes, its useless in sunlight. I'm trying to use the Light theme but its still kind of hard to read because some of the text colors are on the lighter side and thus the contrast is low. I think it would help a lot if the text colors was made just a notch darker to increase the contrast so the theme is usable in bright daylight.
The text colors of particular concern (using ruby lang) are:

the sidebar files/folders
comments
the light green syntax color for strings
the magenta/purple for if's, def, methods statements
the orange for class names

Both theme and color schemes have been adjused to prvode more contrast.


linux_testing_bcachefs,bcachefs-tools: 2019-03-29

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

At least bcachefs-tools is broken on 2019-03-29.

Thank you!


[Storage] Migrate test_blob_service_properties to test proxy

This PR converts test_blob_service_properties.py and ``test_blob_service_properties_async.py` to use test proxy!

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-storage-blob


feat: Allow file / folder patterns in WalkNodeOptions

The recursive-readdir package supports this out of the box, so it's just a matter of propagating that down.
Motivation:
The process can die (out of memory) when traversing very large trees.
I have a project in which I've mounted a git / sublime ignored volume in the typescript project.
I use sublime-import-helper, and when walking the 100+GB folder, the process crashes. It's an ignored folder in sublime, so pending (hopefully) this PR, it would make sense to pass in sublime's ignored folders to ImportHelper so that the imports still work.
Assuming this makes it in, I will open that PR next.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[openmp] 1.5x inference speedup

Problem:

clock is CPU and doesn't work properly with parallel execution.
perf execution is matmul x weights bound.

Solution:

use gettimeofday instead.
utilize openmp to parallelize matmul.

Note:

if not compiled with -fopenmp the #pragma is ignored and single execution is performed.
there are additional env variable to setup for openmp (optinally) to setup the number of threads, scheduler etc.

Benchmarks:
clang -Ofast -march=native  run.c  -lm  -o run          // achieved tok/s: 340.878828
clang -Ofast -fopenmp -march=native  run.c  -lm  -o run // achieved tok/s: 524.590164

I wonder if paralleizations of:
softmax, argmax, and rmsnorm function will have a noticeable effect?


CFP: Support GRPCRoute in Cilium Gateway API

Cilium Feature Proposal
The first cut for Gateway API was done in https://github.com/cilium/cilium/pull/21749, however, we have a couple of follow-up tasks to support more features from Gateway API upstream.
This is to track the work to support GRPCRoute.
Goals
Based on the progress and code re-usability introduced in TLSRoutes we should build a similar implementation of GRPCRoute. This route should re-use logic from both TLS and HTTP routes to route gRPC.
To implement it we should re-use the Envoy logic as an GRPCRoute can be attached to a HTTP(S) Gateway, we can therefore re-use that for TLS termination. Preferably it should use gRPC specific routing in Envoy where possible.
Proposed Solution
TBD
Tasks

[ ] Add required reconcile functions to validate GRPCRoute

[ ] Validate against hostname re-use between HTTP and gRPC

[ ] Add a translator module for GRPCRoutes rules to Envoy rules
[ ] Handle edge cases according to spec (TBD)
[ ] Validate required CRDs will be installed
[ ] Pass conformance tests
[ ] Awesome documentation!

Need to test this against our hubble-ui to make sure we don't hit issues like this.

Addressed by https://github.com/cilium/cilium/pull/28464


Update dynamic task mapping tasks to name all our mapped tasks

Something to "pluck off" when time allows. This is not urgent.


Landscape orientation is off by a few pixels

When using the setting to rotate the page on the device the stream shows a few pixels on the left that should be on the right:

Thank you.
There is not such problem on the nominal orientation?

Now that you mention it, the normal orientation has a similar issue:

Hi Olivier. Congratulations on the creation of such a lightweight and effective alternative to the native screen sharing capability. My company has very strict host firewall rules so standard screen sharing to the reMarkable app doesn't work for me. Your tool works great. The only issue I have is that it doesn't seem to detect when I switch to landscape mode. I thought at first it wasn't supported yet but based on the issue raised here by @fabianlupa it looks like it is supposed to work.
Before I raise a new issue, is there something special I need to do to make it work?

Thank you for the kind words.
On the screen, at the left edge, there is a drop menu with a button to switch to landscape.
Hope it does the trick

Perfect! Thank you. You have made my day.
For me it pops out from the left if I hover that area.

Closing as the issue is no longer present with the latest release and firmware.


python311Packages.uproot: 5.2.1 -> 5.2.2

Description of changes
Changelog: https://github.com/scikit-hep/uproot5/releases/tag/v5.2.2
cc @veprbl

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

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

2 packages marked as broken and skipped:

python311Packages.coffea
python311Packages.coffea.dist

4 packages built:

python311Packages.mplhep
python311Packages.mplhep.dist
python311Packages.uproot
python311Packages.uproot.dist


Allow button disabled on the screen "realm browser needs access to this path"

Title says it all. I am trying to open a default.realm file and the window says the browser needs access, press allow to continue, but the Allow button is disabled.
Originally posted by @pvencill in realm-cocoa: https://github.com/realm/realm-cocoa/issues/2903

I meant to open https://github.com/realm/realm-browser-osx/issues/109, closing.


Diagram incorrect?

The diagrams show that the "Ocean View" term is a "should," but is it not a "must" because of the + sign in front of the search terms?

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

ID: 1842b50c-636d-0489-4ba6-7237b7edcf4b
Version Independent ID: acf02d51-2ed2-81cd-97a5-0127cb061f17
Content: Full text search engine (Lucene) architecture in Azure Search
Content Source: articles/search/search-lucene-query-architecture.md
Service: search
GitHub Login: @Yahnoosh
Microsoft Alias: jlembicz

@darcyreimer Thanks for the feedback! We are currently investigating and will update you shortly.

Yes, that's a mistake, @HeidiSteen do you have the original diagram?

@darcyreimer @Yahnoosh @Grace-MacJones-MSFT  Diagrams are fixed in the live docs. Thanks for reporting the error!
#sign-off

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

That's a phenomenal response.


tile 25529 archive 20221008 vs 20221011

It appears that tile 25529 was observed on 20221008, passed threshold and was QA accepted and archived on 20221013 based upon the LASTNIGHT=20221008 processing, i.e.
daily/tiles/cumulative/25529/20221008 -> ../../archive/25529/20221013
However, in the meantime it was reobserved on 20221011, though there was a delay in the processing and daily/tiles/cumulative/25529/20221011 didn't appear until October 13, presumably after the 20221008 version had been archived.  However, some update of surveyops/trunk/ops/tiles-specstatus.ecsv set LASTNIGHT=20221011 even though that is not the LASTNIGHT that is actually archived.
The 20221008 data passed threshold, but our archived/mtl version isn't actually the full set of data we have and is inconsistent with what is in tiles-specstatus.ecsv.  Should we re-archive this tile based upon 20221011?
Thanks for @weaverba137 for noticing this while doing jura QA

I say yes to re-archiving this tile! I'll let @schlafly comment, too, though.


Nora won't automatically recognize new files

I sync my music files using Syncthing. Sadly Nora won't automatically recognize new files synced by Syncthing and they thus don't show up in recent files.
This is very likely not caused by Syncthing. There isn't any kind of special way Syncthing places files in the directory.
Weirdly, the files do get recognized by Nora if I force a rescan of all folders (eg. by removing and re-adding my music folder). Its just that they don't get recognized automatically. Moreover, files only show up automatically without having to rescan when placing them in the folder by hand.
Possible Fix: add a rescan button, that manually checks for new files

Can you provide the log files which are located in the C:\Users\USER_NAME\AppData\Roaming\nora\logs directory


Footer action menu with extra_footer_actions needs better styling

We switched to using Tippy for the action menu in #11456
While we don't necessarily describe how the action bar behaves when extra_footer_actions is in use, it currently breaks.
See https://github.com/torchbox/wagtail-content-import/issues/60 (putting aside the fact it is using the old
 format), and the following screnshot from wagtail-localize (I am currently working on the Wagtail 6.0 compatibility for it)

I have been able to reproduce this as follows;
Create a new template to override the Page Create template (e.g. .../templates/wagtailadmin/pages/create.html) & then create a page.
{% extends "wagtailadmin/pages/create.html" %}

{% block extra_footer_actions %}
  Link
  <button class="button" type="button">Button</button>
{% endblock %}

it appears that the clean up done with #11629 removed a bit of base styling that should reasonably be relied upon in my opinion.

PR up with a proposed fix https://github.com/wagtail/wagtail/pull/11751


Increment/decrement staking balances

In some cases, staking balances were not being updated properly. This PR fixes that by not relying on balanceOf calls, and rather using the event parameters:

Increment and decrement staking balances on Stake/Withdrawn events
Ensure staking transaction entities are created and have the correct ID

Tested locally with mainnet staging on a partial deploy (i.e. just EARN). Final steps are to wait for the full mainnet staging deploy, test locally or on staging, and then deploy to mainnet.

Reviewed data, working as advertised.


Versionin plugin.xml is incorrect, and can break builds

in plugin.xml the version is off so cordova thinks it's a 0.2.0, which then is the version it saves at for config.xml. then anytime forward or adding platforms it tries to pull the wrong version.

Fixed


Display users who have favorited a game on the game page

Probably limit this to just a few users?

Implemented in 91d9de478f8b724d535ed8d30234dd25f17e4894


SDXL-Lightning support

Hello,
I wonder if stable-diffusion.cpp supports ByteDance/SDXL-Lightning?

any news on this?

I tested that, but got very bad result:

Commands here: ./sd -m SDXL-Lightning/sdxl_lightning_4step.safetensors --vae SDXL-Lightning/sdxl_vae.safetensors -p "1girl, extremely beautiful, miniskirt, nsfw" --steps 4 -s -1 -v -o test.png

Seems like stable-diffusion.cpp does not support sdxl_lightning_1step.safetensors right now.
./sd -m SDXL-Lightning/sdxl_lightning_1step.safetensors --vae SDXL-Lightning/sdxl_vae.safetensors -p "1girl, extremely beautiful, miniskirt, nsfw" -H 1024 -W 1024 --cfg-scale 1 --steps 1 -s -1 -v -o test.png
Log:
Option:
    n_threads:         2
    mode:              txt2img
    model_path:        SDXL-Lightning/sdxl_lightning_1step.safetensors
    wtype:             unspecified
    vae_path:          SDXL-Lightning/sdxl_vae.safetensors
    taesd_path:
    esrgan_path:
    controlnet_path:
    embeddings_path:
    output_path:       test.png
    init_img:
    control_image:
    controlnet cpu:    false
    strength(control): 0.90
    prompt:            1girl, extremely beautiful, miniskirt, nsfw
    negative_prompt:
    min_cfg:           1.00
    cfg_scale:         1.00
    clip_skip:         -1
    width:             1024
    height:            1024
    sample_method:     euler_a
    schedule:          default
    sample_steps:      1
    strength(img2img): 0.75
    rng:               cuda
    seed:<PHONE_NUMBER>
    batch_count:       1
    vae_tiling:        false
    upscale_repeats:   1
System Info:
    BLAS = 1
    SSE3 = 1
    AVX = 1
    AVX2 = 1
    AVX512 = 0
    AVX512_VBMI = 0
    AVX512_VNNI = 0
    FMA = 1
    NEON = 0
    ARM_FMA = 0
    F16C = 1
    FP16_VA = 0
    WASM_SIMD = 0
    VSX = 0
[DEBUG] stable-diffusion.cpp:122  - Using CUDA backend
ggml_init_cublas: GGML_CUDA_FORCE_MMQ:   no
ggml_init_cublas: CUDA_USE_TENSOR_CORES: yes
ggml_init_cublas: found 1 CUDA devices:
  Device 0: Tesla T4, compute capability 7.5, VMM: yes
[INFO ] stable-diffusion.cpp:142  - loading model from 'SDXL-Lightning/sdxl_lightning_1step.safetensors'
[WARN ] model.cpp:682  - unknown format SDXL-Lightning/sdxl_lightning_1step.safetensors
[ERROR] stable-diffusion.cpp:148  - init model loader from file failed: 'SDXL-Lightning/sdxl_lightning_1step.safetensors'
new_sd_ctx_t failed

This may be because SDXL Lightning 1step version needs "sample" prediction type.
See: https://colab.research.google.com/github/camenduru/SDXL-Lightning-jupyter/blob/main/SDXL_Lightning_gradio_jupyter.ipynb
def generate_image(prompt, ckpt):

    checkpoint = checkpoints[ckpt][0]
    num_inference_steps = checkpoints[ckpt][1]

    if num_inference_steps==1:
        # Ensure sampler uses "trailing" timesteps and "sample" prediction type for 1-step inference.
        pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing", prediction_type="sample")
    else:
        # Ensure sampler uses "trailing" timesteps.
        pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing")

    pipe.unet.load_state_dict(torch.load(hf_hub_download(repo, checkpoint), map_location="cuda"))
    image = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=0).images[0]
    return image

You can get my quantized results here: https://huggingface.co/mzwing/SDXL-Lightning-GGUF

Seems like stable-diffusion.cpp does not support sdxl_lightning_1step.safetensors right now.

Update: I suddenly realized that I had made a mistake: I did not download the 1step model at that time! That's why I got the error [ERROR] stable-diffusion.cpp:148  - init model loader from file failed: 'SDXL-Lightning/sdxl_lightning_1step.safetensors' new_sd_ctx_t failed
However, the model's generated image is very very bad. I thought that's because SDXL Lightning 1step version needs "sample" prediction type. See my comment above.

Generated by sdxl_lightning_1step_x0.q8_0.gguf.
You can still get the quantized version of the 1step model in my huggingface repo, but not recommended to use them.

Yea the 1step needs custom code. But the other lightning variants work like a charm.

Looks like for even better lightning generation we need a custom scheduler (for ref https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15325 )

You can get my quantized results here: https://huggingface.co/mzwing/SDXL-Lightning-GGUF

hi do these ggufs need any vae or are they good to go alone? thanks for making them!

You can get my quantized results here: https://huggingface.co/mzwing/SDXL-Lightning-GGUF

hi do these ggufs need any vae or are they good to go alone? thanks for making them!
EDIT: nevermind worked fine without VAE for me! used q4_1.

Yes, when I quantised them I added the fp16 fix vae init too :)

I'm so glad you made this because lightning is a perfect fit for the idea of quick lower requirement generation.  I'm using it with koboldcpp since that has a chat and multimodal interface too.  There, combining your 2 step model with LCM sampler looks really good to me.

@mzwing ~I'll try to implement the missing scheduler, but I'm not exactly sure which of the models you've uploaded to Hugging Face I should try to see if I get the correct output.~
sdxl_lightning_1step_x0.q8_0.gguf i will test.

Maybe you also need to implement a prediction type if you use 1 step version to test (
The missing scheduler, I think, just uses for better quality of images generated by the SDXL-Lightning series.
See https://github.com/leejet/stable-diffusion.cpp/issues/198#issuecomment-2014357401

@mzwing could u please make some more 2step gguf q4.0 models? realistic unensored versions  will be great
also could u please make a q4.0 version gguf of original sdxl turbo? i tried to make a q5.1 version in the past and it didn't work for me, i'd like to test q4.0 version

hey guys, its my findings =
sdxl turbo q5.0 works like a charm and it is 2.8gb only
pony realism 4step lighting model with q4.0 is amazing too

@mzwing could u please make some more 2step gguf q4.0 models? realistic unensored versions  will be great
also could u please make a q4.0 version gguf of original sdxl turbo? i tried to make a q5.1 version in the past and it didn't work for me, i'd like to test q4.0 version

Sorry about my ignorance before. However now I have some other things to do and so may not be able to help you about that.
If you don't mind, I can help you quantize it a week later.
BTW could you explain more clearly about the "realistic unensored versions"? I have limited knowledge on them.
Edit: Seems that you have already quantized it? 👍

@mzwing could u please make some more 2step gguf q4.0 models? realistic unensored versions  will be great
also could u please make a q4.0 version gguf of original sdxl turbo? i tried to make a q5.1 version in the past and it didn't work for me, i'd like to test q4.0 version

Sorry about my previous neglect. However now I have some other things to do and so may not be able to help you about that.
If you don't mind, I can help you quantize it a week later.
BTW could you explain more clearly about the "realistic unensored versions"? I have limited knowledge on them.
Edit: Seems that you have already quantized it? 👍

greetings, thank u for ur answer, yes i managed to quantize turbo to q5.0 and it worked greatly. yes i got the models i needed, the uncensored ones i meant a model that is capable of nsfw stuff, but it is ok cause im using pony realism now which is great

@mzwing excuse me, but i found a model that has one of the best quality in realism and has one of the best dragons in it too, it named realvisxl v4.0, it has a lighting version which works great with 5 steps and 1 cfg only and the quality is insane. it will be great if u make a q5 of it for people to use it, i do believe it hac make nsfw images too
it is on civitai

@mzwing could u please make some more 2step gguf q4.0 models? realistic unensored versions  will be great
also could u please make a q4.0 version gguf of original sdxl turbo? i tried to make a q5.1 version in the past and it didn't work for me, i'd like to test q4.0 version

Sorry about my previous neglect. However now I have some other things to do and so may not be able to help you about that.
If you don't mind, I can help you quantize it a week later.
BTW could you explain more clearly about the "realistic unensored versions"? I have limited knowledge on them.
Edit: Seems that you have already quantized it? 👍

greetings, thank u for ur answer, yes i managed to quantize turbo to q5.0 and it worked greatly. yes i got the models i needed, the uncensored ones i meant a model that is capable of nsfw stuff, but it is ok cause im using pony realism now which is great

Would you mind sharing links?

i like to do it but sadly my upload speed is in a bad shape, sorry


set the manifest limit size to 500k

issue: https://github.com/open-cluster-management-io/work/issues/185

/assign @qiujian16

/approve
/lgtm


Feature Request: Iterating on a Single Source File

The UnrealVS extension has an option for compiling a single file and building the project with just that change. Effectively it disables unity building and adds the -singlefile argument. This should greatly reduce iteration time. With this, Rider will truly be the goto for Unreal C++ editing.
Source:
https://docs.unrealengine.com/en-US/ProductionPipelines/DevelopmentSetup/VisualStudioSetup/UnrealVS/index.html

@karaatvalkent Rider for Unreal Engine already supports compiling single file, with specific implementation for UE projects, where it uses UBT instead of MSBuild. Try "ctrl+shift+A > compile file action.

That didn't seem to do anything for my project but it could very well be specific to my old project.


backend sort cards by rating

In GitLab by @lakhoune on May 30, 2020, 15:47
when user calls getCards send the cards array sorted by descending rating (cards with best rating first)
Do this also when user calls user info

In GitLab by @lakhoune on May 30, 2020, 15:48
changed the description

In GitLab by @lakhoune on May 30, 2020, 15:48
made the issue confidential

In GitLab by @lakhoune on Aug 15, 2020, 10:22
closed


Masking Library Not Loading/Functioning

When trying to use the functionality outlined here: https://icebob.gitbooks.io/vueformgenerator/content/fields/masked.html, I get a JS error:
JQuery MaskedInput library is missing. Please download from https://github.com/digitalBush/jquery.maskedinput and load the script in the HTML head section!
I tried including it a couple different ways, including doing exactly what it asked, but I kept receiving this error, and the masking didn't occur.

Did you include both jQuery and Masked Input? Load them in the head before VFG?

jQuery isn't loaded in the head, but is loaded before VFG (rangeSlider works, for example). I loaded masked input in the head. Is there a way I need to include it for it to work with VFG?

You need to include it in the same fashion as jQuery, so it works with jQuery.  Add it after jQuery and before VFG.

Good news: that worked. Thank you.
Bad news: we're now running into the issue brought up here: https://github.com/vue-generators/vue-form-generator/issues/335.  Has this been addressed in some way?

Cheers. We did end up using cleave. For the sake of those using Cleave, the
phone masking is simply spaces for US, so if you want something like (000)
000-000, and don't want prefix to auto start you with an opening parens,
you need to use:
delimiters: ["(", ") ", "-"],
counts (I might be wrong about this key name): [0,3,3,4].
ᐧ
On Mon, Oct 1, 2018 at 9:22 PM David Higgins<EMAIL_ADDRESS>wrote:

I’d recommend switching to Cleave, Masked Inlut is a dead project per the
Git Repo, and we’ll likely abandon support for it in 3.0.0 due to this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/vue-generators/vue-form-generator/issues/499#issuecomment-426144644,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADoVTG8XFuqqmKd7OTgF7tnP_YRY5Sieks5ugunrgaJpZM4XAMMY
.


General Grievance: Watch elegant-radiators.co.uk

General Grievance requests the watch of the watch_keyword elegant-radiators\.co\.uk. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

elegant-radiators\.co\.uk has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


recommend souce

Describe your suggested feature
Souce for Spanish language [Español]
Other details
AnimeFlash 2
https://animeflash2.xyz/
JK Anime
https://jkanime.net/
HolaAnime
https://holanime.net/
AnimeID
https://www.animeid.tv/
TioAnime
https://tioanime.com/
AnimeMovil2
https://animemovil2.com/
YTAnime TV
https://ytanime.tv/
AnimeBlix
https://animeblix.com/
AnimeOnline Ninja
https://www1.animeonline.ninja/
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] I have written a short but informative title.
[X] If this is an issue with an extension, I should be opening an issue in the extensions repository.
[X] I have updated the app to version <IP_ADDRESS>.
[X] I will fill out all of the requested information in this form.

wrong repo
https://github.com/jmir1/aniyomi-extensions/issues/new/choose
no further discussion shall be talked here
close

Animeflash2
HolaAnime
Tioanime
YTanime TV
Anime online Ninja
They are scrapers from animeFLV and animefenix

Animeflash2 HolaAnime Tioanime YTanime TV Anime online Ninja
They are scrapers from animeFLV and animefenix

Is that so? Is that there are some animes that are in better quality than in animeflv (of those websites)


Push For Newsstand App Background Downloader Documentation

Hi all,
I think this gem is awesome, but am having a hard time figuring out how to use the push notification options. Is there no other documentation a part from the one example given in the readme?
Let's say I want to send a json like this:
{
"aps": {
    "content-available": 1
},
"content-name": "title"
}

How would I write that using rails and this gem?
Thanks!

Sorry I completely missed these, don't know if it helps, but here is our rails action:
def send_push_notification(app, issue="", background, msg, target)
      Parse.init :application_id  => app.parse_application_id,
                 :api_key         => app.parse_rest_api_key,
                 :master_key      => app.parse_master_key
      if background
        # This is a background download push notification to free/paid subscribers only
        data = { "content-available" => 1 }
        data["content-name"] = issue unless issue.empty?
      else
      	# This is a normal push notification to all devices
        data = { :alert => msg }
      end
      # OPTIONS: "All", "Subscribers"
      if target == "All"
        push = Parse::Push.new(data)
        push.where = {}
      else
        push = Parse::Push.new(data, 'Subscribers')
      end
      push.save

    end

The key fix here is:
data["content-name"] = issue unless issue.empty?

Compared to:
data["content-name" => "title"] unless issue.empty?


Constant name "this_screen" doesn't conform to UPPER_CASE naming style

https://github.com/lbonanomi/gRist/blob/0bb7eceee04bd597966217117892ae3e98250892/grist.py#L113

Issues for naming style are now ignored.


Uncaught TypeError: gtag is not a function

Environment

Operating System: Darwin
Node Version:     v18.13.0
Nuxt Version:     3.6.1
Nitro Version:    2.5.1
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      runtimeConfig, app, modules, devtools, imports, css, postcss, auth, gtag, routeRules, build
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-j7dume?file=app.vue
Describe the bug
The module works with normal tracking events, but calling gtag() from const { gtag } = useGtag() returns 'Uncaught TypeError: gtag is not a function'
Additional context
I had a brief poke around in the module's composables, but can't see anything obvious...
Logs
Uncaught TypeError: gtag is not a function

Thanks for the reproduction! So many people don't create one. 🙂
You have to call the composable to destructure assignment:
-const { gtag } = useGtag
+const { gtag } = useGtag()

Calling useGtag() will provide you all of the methods, like gtag.

Hahaha, no way!
I actually checked this multiple times... do dumb... sorry to waste time 🤦♂

No problem! Happens to all of us.

Ah... hold up. I am getting that error still in local dev. Will do some further digging as to why...

@bmhtech07, @johannschopplich, any updates?
Facing this issue inside my nuxt module which I installed as npm package:

Module playground works fine

Yes! It was due to Nuxt version. Make sure you're on 3.8 or above...

@bmhtech07, thanks for the answer!
Seems my problem doesn't relate to this one
In my case, useGtag doesn't return object - it returns gtag function:

Please open a separate issue with a dedicated reproduction. Thanks in advance!


Event Modifier:  @click.capture="captureClick"

IE9+ supports EventTarget.addEventListener() with capture and bubble phases. Events default to the bubble phase but sometimes, it is handy to catch the event as it heads to the target across the DOM.
I would love to see an event modifier added to support making capture easy to add into template/components.
Example:
<div @click.capture="captureClick" @click="bubbleClick" >
     <a @click="doThat">CLICK ME</a>
</div>

Shipped in 1.0.16.


Compile errors

As suggested in "Install" section of Readme, I just copy RGPageViewController.swift file in my project.
Unfortunately there are a lot of compile errors, first at line 142:
        self.view.addConstraints(constraints)

"Cannot invoke 'addContraints' with an argument list of type '(NSMutableArray!)'"
Other errors are all where you use "as" with the error:
" 'Any object' is not convertible to .... :did you mean to use 'as!' to force downcast?"

replace "as" with "as!", and replace the layoutSubviews function with:
    private func layoutSubviews() {
         var constraints: NSMutableArray!

         switch self.tabbarPosition {
         case .Top:
             constraints = layoutTabbarTop()
         case .Bottom:
             constraints = layoutTabbarBottom()
         case .Left:
             constraints = layoutTabbarLeft()
         case .Right:
             constraints = layoutTabbarRight()
         }

         var constraintsNew: Array = constraints as [AnyObject]

         self.view.addConstraints(constraintsNew)

         self.needsLayoutSubviews = false
    }


add a jsonify filter to jinja default extensions

This enables a template like this
{{ cookiecutter | jsonify }}

that renders the a python object as json, as suggested in #784

Hey @aroig, thank you for submitting this PR so quickly 😄
I'd be okay with adding this extension. Let's see what the others think.
That being said, before we can accept this change, we would need to have tests for it. Can you please add a couple of tests? I'd like to see at least one example for how a template would use this new extension in an automated test that we can leverage for identifying regressions.
Thanks!

@aroig can you please add tests for this?

@hackebrot Sorry for the delay. I'm quite busy at the moment, but I'll try to find the time.

@aroig ok, cool. Thank you 🙇

@hackebrot I pushed a test for this. Let me know if you want me to write any kind of documentation.

The test fails 😿

Current coverage is 100% (diff: 100%)

Merging #791 into master will not change coverage

@@           master   #791   diff @@
====================================
  Files          15     16     +1
  Lines         605    614     +9
  Methods         0      0
  Messages        0      0
  Branches        0      0
====================================
+ Hits          605    614     +9
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last update 4547940...4f13d4c

Sorry about that. The test passed locally, but obviously was too fragile. It turns out python versions differ on how they render spaces in json...
I force pushed a second attempt.

I see this is still tagged as "needs tests". I pushed them some time ago and they pass. Is there anything else to be done?

Hey @audreyr @pydanny @michaeljoseph! 👋
What's your opinion on this?

Thank you @aroig! 🍪


runtime: fatal error: found bad pointer in Go heap (1.19.1)

I have a parsing program that's been in development for the past few months to pull a variety of information from a large sample set. The current issue is that, at random, I will get a fatal error that will kill the program when running against any given directory:
runtime: pointer 0xc000d8b750 to unused region of span span.base()=0xc000b12000 span.limit=0xc000b13fe0 span.state=1
runtime: found in object at *(0xc00112a040+0x0)
object=0xc00112a040 s.base()=0xc00112a000 s.limit=0xc00112c000 s.spanclass=8 s.elemsize=32 s.state=mSpanInUse
 *(object+0) = 0xc000d8b750 <==
 *(object+8) = 0xc000f52000
 *(object+16) = 0x1000
 *(object+24) = 0x1000
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0x76b22e?, 0x6?})
	/usr/local/go/src/runtime/panic.go:1047 +0x5d fp=0x7f882d7f9d00 sp=0x7f882d7f9cd0 pc=0x43871d
runtime.badPointer(0x7f8803efa2a8, 0x0?, 0xc00112a040, 0xd590?)
	/usr/local/go/src/runtime/mbitmap.go:373 +0x150 fp=0x7f882d7f9d50 sp=0x7f882d7f9d00 pc=0x415770
runtime.findObject(0xc00112a040?, 0x9d86e0?, 0x40d049?)
	/usr/local/go/src/runtime/mbitmap.go:416 +0xa6 fp=0x7f882d7f9d88 sp=0x7f882d7f9d50 pc=0x415906
runtime.scanobject(0xc00002f740?, 0xc00002f740)
	/usr/local/go/src/runtime/mgcmark.go:1338 +0x190 fp=0x7f882d7f9e20 sp=0x7f882d7f9d88 pc=0x421490
runtime.gcDrain(0xc00002f740, 0x2)
	/usr/local/go/src/runtime/mgcmark.go:1103 +0x1d4 fp=0x7f882d7f9e80 sp=0x7f882d7f9e20 pc=0x420cd4
runtime.gcBgMarkWorker.func2()
	/usr/local/go/src/runtime/mgc.go:1323 +0x154 fp=0x7f882d7f9ed0 sp=0x7f882d7f9e80 pc=0x41d474
runtime.systemstack()
	/usr/local/go/src/runtime/asm_amd64.s:492 +0x49 fp=0x7f882d7f9ed8 sp=0x7f882d7f9ed0 pc=0x4695a9

The full error can be seen here: https://go.dev/play/p/5m48pLjUsEK
Additionally, this is not intentionally reproducible. Running my program against the same directory again will not yield the error, and it may go through several thousand or several hundred thousand files before it occurs again. I have multiple logs of this activity.
Some things to note:

The executable is built with CGO_ENABLED=0 due to compatibility issues with the box it's being run on
All drives being scanned are mounted via mount -o ro /remote/drive/path /local/drive/path
There is no use of unsafe or cgo in my code; however, there is a dependency for the parser that has a single use. This is located in https://github.com/edsrzf/mmap-go/blob/main/mmap.go (lines 80-82):

func (m *MMap) header() *reflect.SliceHeader {
	return (*reflect.SliceHeader)(unsafe.Pointer(m))
}

This has not been an issue previous to the last week of testing, but I have not made any changes to the dependency or parser code in that time.

What could be causing this to occur, and is there a way to correct for it?

go version: 1.19.1 linux/amd64
OS: Ubuntu 22.04.1 LTS
Actions: Ran parsing program against mounted drives (which are also running Linux)
Expected: No pointer failures
Observed: Random pointer failures

/cc @golang/runtime
FWIW, I spot checked the mentioned use of unsafe.Pointer in mmap-go/blob/main/mmap.go and it seems okay. As far as I can tell, it's only used on Windows anyway.

Have you tried running it under the race detector?

@randall77 I've tried with the race detector and had no failures, even against files that were parsed immediately before the pointer failure. That also required me to rebuild the executable with CGO enabled, which changed things.

Awesome, thanks for confirming. Without a way to reproduce this it's hard to make progress on our end. It could be a real bug in the GC based on the information you shared. Do you have any additional information, or can you point us to some code we could run that at least might reproduce the issue?

@mknyszek I'd love to be able to point you to some code but I need permission to upload, so I'll have to wait for that. What I do have is a saved callstack from this error that I managed to capture via GoLand while remotely debugging this morning. However, running the program against the files to replicate...failed. It's still humming along, hours later, without issue. Which is the major problem in that I can't just reproduce the error at will.
goroutines.txt
Goroutine 37 is where the pointer issue occurs.


PLAT-68129: Convert tests to use Jest

Requires: https://github.com/enactjs/cli/pull/154, https://github.com/enactjs/cli/pull/155, and https://github.com/enactjs/eslint-config-enact/pull/22
Checklist

[X] I have read and understand the contribution guide

[ ] A CHANGELOG entry is included

[ ] At least one test case is included for this feature or bug fix

[X] Documentation was added or is not needed

[X] This is an API breaking change.
Sort of an API breaking change. Does not break Enact APIs, however will require develop Enact CLI in order to test, which is the next-gen CLI release and will contain some technically breaking CLI-side changes.

Issue Resolved / Feature Added

Desired to transition from the buggy Karma/Webpack text runner towards a Jest-based test runner format. This is both for simplicity and opensource pattern of usage/popularity, as well as external requests to support Jest.

Resolution

Converted using jest-codemods, and then manually updated individually to correct any failures.
Removed the need for dirty-chai and mocha usage in favour of the built-in Jest utilities.
Replaced any remaining string ref usage into modern ref usage.
For ui/Cancelable spec 'modal instances' tests, use window.KeyboardEvent.
For moonstone/Input spec test  'should blur input on enter if dismissOnEnter', use mouseDown simulated event on to focus, rather than node.focus().
For moonstone/EditableIntegerPiker spec test 'should take value inputted and navigate to the value on blur', simulate a focus event rather than node.focus().
Skip 39 remaining failing Spotlight tests as they rely on layout measurements/metrics, which Jest's underlying jsdom does not support.
Update library package.json test tasks for Enact CLI Jest update.
Update root monorepo package.json for test and clean shorthand tasks.

Additional Considerations

Future task to assess skipped Spotlight tests and mock layout metrics as viable, moving the remaining tests into ui-tests.
Future task to assess removing sinon usage in favour or Jest APIs.

Enact-DCO-1.0-Signed-off-by: Jason Robitaille<EMAIL_ADDRESS>

Pushed a commit to fix the tests for Job.promise() which likely landed after this work started.


KAFKA-15445: Add JVM Docker image

This PR aims to add Apache Kafka JVM Docker image as per the following KIP - https://cwiki.apache.org/confluence/display/KAFKA/KIP-975%3A+Docker+Image+for+Apache+Kafka
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

This adds a small piece of code in Go. I think this should have been mentioned in the KIP as adding a new language is something worth discussing.
I understand Go is well suited for this use case but it would have been nice to compare with Java. For example, if we're only shaving a few milliseconds I'm not sure introducing a new language in the repository is necessarily worth it. We're also looking at having a native image, in that case that logic in Java could match Go.

Hey @mimaison,
Thanks for the input. We will update the KIP based on conclusion of this conversation.
Indeed golang is a new language for the repository and it's a relatively small piece of logic. But in my opinion given the benefit we are getting from using golang, it's worth the maintenance cost of the new language in the repo.
Here are some of our reasons behind the decision to use golang:-

It allows us to have a very lightweight executable that can be used without need of golang installed in final docker image.
golang code is quite fast in execution time. And this script is being called multiple times each time docker container starts, so it's important for this piece of code to be efficient to ensure we get good enough startup times.
It can be unit tested and thus gives us confidence in the behaviour of the code.
It is well tested code which is already implemented.
Given that it's a very small piece of logic which has a very limited usecase, the maintenance cost associated with it is also quite small.
We will rarely need to make changes in this logic and when we do, it will be supported by unit tests.

Here are some alternatives for the choice of language, along with their pros and cons:-
Java:-

In case of JVM based Docker image using java to write utility script won't lead to significant image size difference as we already have JRE available to us. Startup time will get impacted though, as java is significantly slower than golang and we are calling this script multiple times.
For native-image based Docker Image JRE won't be available to us in the final image, so we will need to generate a native executable for the utility scripts. We may need to generate native configs for it as well.
Given that native-image is still experimental, we would like to avoid using it in JVM based Docker image for the utility script, as this Docker Image can be used for production environment as well.
Unit tests can be added easily in java, so we will have confidence in the behaviour of the scripts.

Bash script:-

Unit testing the script won't be possible.
Which means debugging and maintaining it will be more challenging.

Python:-

It will force us to have a python environment to run the utility, increasing the final image size.
It will be slower than golang or bash.
It will be unit testable.
Not a good option as the image size impact and startup time impact are not worth it.

Thanks @VedarthConfluent. Once you've updated the KIP, please also ping the DISCUSS or VOTE threads, mentioning the updates so it's visible to all.


Hitting Ctrl-C in "spago repl" messes up prompt (cmd.exe, powershell.exe)

Having opened up a new cmd shell and starting spago repl in a simple project if I hit Ctrl-c something brokes ... the REPL exits, but after that if I restart it in the same cmd session my input gets mangled and garbled.
Instead if I do this
purs repl "src\**\*.purs" ".spago\*\*\src\**\*.purs"
all is fine. Ctrl-C clears the current line and keeps things running, and most importantly the shell's input doesn't break. (Same things happen in cmd.exe and powershell.exe.
(Not sure if this makes sense or not, I'll try to make a little demo of this somehow when I got the time.)

Thanks for the report @kohanyirobert!
@stkb any idea why this might be happening?

One bit of extra info. I tried to define an npm script in my package.json which executes this: purs repl "src\**\*.purs" ".spago\*\*\src\**\*.purs" but it has the same issue as running spago repl, so I guess the issue relates to subprocesses created in a not so correct way for Windows to handle or something.

I had noticed this before but my experience is a bit different. For me it doesn't matter whether you run purs repl through Spago or directly, the issue is the same and seems to lie with purs.exe.
I'll describe what I see on my machine. This just running from standard cmd.exe and purs v13.4:
spago init
spago install psci-support
purs repl "src\**\*.purs" ".spago\*\*\src\**\*.purs"

The repl starts and creates a process tree looking like this:
cmd.exe
 ↳ purs.exe (1)
    ↳ purs.exe (2)

The purs.exe (2) process uses a fair bit of CPU by the way, even when the repl is idle.
For me however, ctrl-c always exits, and goes back to the command prompt. The purs.exe (1) process terminates, however the purs.exe (2) process stays hanging around, 'orphaned'. This will only be cleaned up by closing the command window, so if you continually start and the quit the repl with ctrl-c, a number of these processes will build up. (Quitting with :quit cleans everything [from that session] up fine)
So assume we've run the repl once, quit with ctrl-c, and still have an old purs.exe process running. After running the repl again, we get the problem with only some keystrokes registering:
> import Prelude
Error found:
in module $PSCI
at :1:1 - 1:4 (line 1, column 1 - line 1, column 4)

  Unknown value ior

So a workaround is: I've found that if you go and terminate the old purs.exe process that's still running, that fixes the input problem. Though I had mixed experience with this: one time killing the old process fixed it immediately, another time I had to restart the repl before it worked properly again.
As I say, for me it doesn't matter if you run the repl through Spago or not. The only difference is that the process tree then looks like this:
cmd.exe > spago.exe > cmd.exe > purs.exe > purs.exe

But the rest is the same

What @stkb says. I've verified the same happens on my end. When I've executed purs repl ... I didn't have purs.bin processes running around aimlessly so I didn't notice this. Anyway, using purs repl ... from the get-go keeps things behaving nice.

@stkb thanks for looking into this, wonderful analysis! 👏
So it looks like this is not a Spago issue (i.e. I'm not sure we can even work around this), so should we open an issue in the purs repo?

Oh, it looks like Pulp has a similar issue open: https://github.com/purescript-contrib/pulp/issues/342

When I said that "I've verified the same happens on my end" as @stkb described what I meant that running purs repl ... directly after I already run spago repl and exited with a Ctrl-c behaves incorrectly, but running only purs repl ... is fine. So, essentially, what I observe is different, sorry for the confusion, let me further explain.

I verify that I have no purs.bin processes.
Then I run purs repl ..., this is how the process tree looks for mecmd.exe
 ↳ purs.exe

(Plus there's a conhost.exe under cmd.exe.)
Whatever I do at this point everything is perfectly fine. Ctrl-c and Ctrl-d works as expected, the latter terminates the purs.bin process nicely (just as :quit).

Now with spago repl this is what happens.

I verify that I have no purs.bin processes.
I run spago repl, this is the process treecmd.exe (1)
 ↳ node.exe
     ↳ spago.exe
         ↳ cmd.exe (2)
             ↳ `purs.exe`

(Plus there's a conhost.exe under the first cmd.exe.)
If I hit Ctrl-c then the second cmd.exe gets orphaned the path of processes above this are terminated so I'm left with this.cmd.exe (2)
 ↳ purs.exe

After this even if I start the REPL with spago repl or purs repl ... keystrokes aren't registered correctly. Killing purs.bin seems to fix things ... haven't experimented with that too much (don't see the point).

Note: I also experience a huge amount of CPU activity for the purs.bin process even if I do nothing.

Apologies, the behavior I described above is wrong and was related to my setup.
@kohanyirobert Thanks for the full description: I can now corroborate what you say (though I think you mean purs.bin in your examples? You have a purs.bin if you install PureScript via npm; purs.exe if you use the direct download.
I was also using a compiled spago.exe file directly rather than the NPM installation, which is why I wasn't seeing any difference re: using spago repl or purs repl ....
I think if you download and use the spago.exe from releases, rather than the NPM installation, then spago repl will work fine for you?
So just to reiterate, the problem seem to be with the NPM installation, not with purs, nor the spago binary itself. I'm pretty sure it's with our node/javascript shim npm/spago that's used for the windows NPM/Yarn installations. That shim isn't handling the Ctrl-C/SIGINT signal, so is getting terminated and leaving an orphan process.
Naturally this needs fixing so I'll look into that.

Seem to have found the fix, so PR will be coming soon

@stkb Yep, when I wrote purs.exe I meant purs.bin and I indeed use the npm version of spago and purs. Cool if this is fixed! Don't have time to try out the binaries, I'll be on the lookout for the new release, but I'm pretty sure this fixes it. Thanks big time! 👍


qt-5/qtbase-setup-hook.sh: attempt to make directories only if needed

Resolves #29589.
So I haven't actually tested this but I'm assuming it will work. @teto could you test? However, I don't actually know if this is a sub-optimal solution though, because maybe there's a reason you've decided to not already do this? If so, feel free to disregard and close this PR.
cc @ttuegel from git blame.
Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

I'm just going to go ahead and merge this, because I actually have this change in one of my unmerged branches! I have tested it and I can confirm that it works as intended.

Doesn't seem to work for me. Have you tried for wireshark specifically or ?
Like I get:
cp: impossible de créer le fichier standard '/home/teto/wireshark/__nix_qt5__/bin/qmake'


Test scaffold should use Effect.Class.Console

import Effect.Class.Console (log)

pros:

i can add Aff.launchAff_ without having to delete imports

cons:

more people need to learn the polymorphisms

I don't really have an opinion on this, if you open a PR it's fine by me (also I think you're the original author of the scaffoldings, so go for it)


chore(deps): update ci dependencies

This PR contains the following updates:

Package
Type
Update
Change

common-dev-assets

digest
0685378 -> 51475f0

github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper
require
minor
v1.38.3 -> v1.39.3

Release Notes

terraform-ibm-modules/ibmcloud-terratest-wrapper (github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper)
v1.39.3
Compare Source
Bug Fixes

handle failed edge cases (#869) (42eef2a)

v1.39.2
Compare Source
Bug Fixes

add an additional check before Undeploy, to ensure we do not trigger while still deploying (#868) (f427c67)

v1.39.1
Compare Source
Bug Fixes

Fail if undeploy stack fails (#867) (7b83c71)

v1.39.0
Compare Source
Features

refactor of EPX stacks tests (#866) (57dd998)

v1.38.4
Compare Source
Bug Fixes

for potential nil response object from schematics (#865) (cb253f3)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

ℹ Artifact update notice
File name: tests/go.mod
In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

1 additional dependency was updated

Details:

Package
Change

github.com/IBM/project-go-sdk
v0.3.0 -> v0.3.6

/run pipeline

/run pipeline

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

GitHub release
v1.3.7

Your semantic-release bot :package::rocket:


Remind Command

Features:

Allow setting a user-specific reminder for a set date/time.
(Will probably require some sort of database backend.)
@'s the user who set the reminder (or maybe DM?)
If unable to send message, saves it and retries send when reconnected to network.

Sample command usage:

!remind [me, channel, user] [time] [message]
!remind [time] [message] (Assumes the user in question is you)
!reminders (Lists your reminders? Maybe !remind list instead?)

How do we want to handle parsing the time? Are we going to be relatively strict in the format requires (1h, 45m, at 3, etc.), or use some sort of nlp?

https://github.com/wanasit/chrono
Perhaps something like this? Maybe not necessarily this, but this idea.

What if, instead of a remind command, it was more like a "add to reading list" command or something, then you could pull that up whenever? We could have a separate command or subfunction to have the bot send you a message reminding you to check your list too. Then, it'd be a lot lower friction. Something like !bookmark instead of having to worry about a time?


SQL worker can not start directly

Describe the bug
After building master code, SQL worker can not start directly
To Reproduce

Build the master code
Execute bin/pulsar sql-worker run

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
ERROR: Future versions of Presto will require Java 11 after March 2020.

You may temporarily continue running on Java 8 by adding the following
JVM config option:

    -Dpresto-temporarily-allow-java8=true

@zymap What is the version of pulsar you are using?

This is because the presto version got moved forward to io.prestosql:332. I think that adding -Dpresto-temporarily-allow-java8=true to the end of https://github.com/apache/pulsar/blob/master/conf/presto/jvm.config would do the trick.

Already fixed by #7898. close this issue.


Add v1 migration guide documentation

Relates to #647, resolves #656
List of references used to create the migration guide:

https://fastify.dev/docs/latest/Guides/Migration-Guide-V5
https://nextjs.org/docs/app/building-your-application/upgrading/app-router-migration#next-steps
https://svelte.dev/docs/svelte/v5-migration-guide
https://v3-migration.vuejs.org/
https://docs.sentry.io/platforms/javascript/migration/v7-to-v8/
https://docs.deno.com/runtime/reference/migration_guide/

Closed in favor of #686


Requirement "torch=1.10.1" is too old to be installable anymore

ERROR: Could not find a version that satisfies the requirement torch==1.10.1 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1)
Seems like the requirements.txt specifies some old (late 2021?) version of PyTorch which completely breaks the ability to install the thing - as it doesn't seem possible to specify an old version, tested both under Windows and Ubuntu (WSL).
Trying to switch it out to torch==1.11.0, though, and I end up with an install error on the dependencies:
  Downloading tokenizers-0.10.3.tar.gz (212 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 212.7/212.7 KB 12.6 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 162, in get_requires_for_build_wheel
          return self._get_build_requires(
        File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 143, in _get_build_requires
          self.run_setup()
        File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 158, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 2, in <module>
          from setuptools_rust import Binding, RustExtension
        File "/tmp/pip-build-env-4hmn1a62/overlay/local/lib/python3.10/dist-packages/setuptools_rust/__init__.py", line 1, in <module>
          from .build import build_rust
        File "/tmp/pip-build-env-4hmn1a62/overlay/local/lib/python3.10/dist-packages/setuptools_rust/build.py", line 24, in <module>
          from setuptools.command.build import build as CommandBuild  # type: ignore[import]
      ModuleNotFoundError: No module named 'setuptools.command.build'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.```

+1 this issue

same

I'm not maintaining this code at the moment so feel free to fork and fix.


uv pip installl git+ fails on arm64 + arm/v7

Running uv pip install git+... fails on arm64 + arm/v7 but completes on amd64.
Tested with uv version 0.1.12 and 0.1.13
Commands (jsons is just an example chosen because it doesn't require any build tools.):
docker run -it --rm --entrypoint=bash --platform=linux/arm64 python:3.12.2
pip install uv
uv venv
uv pip install jsons@git+https://github.com/ramonhagenaars/jsons.git

fails with: Caused by: object not found - no match for id (9abbf3a3bd32435ac74bc98c3554ad3c71086036);
The command completes with --platform=linux/amd64
And then just a huge thank you, uv is a fantastic tool, it has reduced the duration of building my container images by a factor of 4 :)
With verbosity:
root@cb678c35d842:/workdir# uv -v pip install jsons@git+https://github.com/ramonhagenaars/jsons.git
uv::requirements::from_source source=jsons@git+https://github.com/ramonhagenaars/jsons.git
   0.171619s DEBUG uv_interpreter::python_environment Found a virtualenv through VIRTUAL_ENV at: /usr/local
   0.179862s DEBUG uv_interpreter::interpreter Cached interpreter info for Python 3.12.2, skipping probing: /usr/local/bin/python
   0.181569s DEBUG uv::commands::pip_install Using Python 3.12.2 environment at /usr/local/bin/python
   0.201506s DEBUG uv_client::registry_client Using registry request timeout of 300s
uv_client::flat_index::from_entries
uv_resolver::resolver::solve
     0.252532s   7ms DEBUG uv_resolver::resolver Solving with target Python version 3.12.2
  uv_resolver::resolver::choose_version package=root
  uv_resolver::resolver::get_dependencies package=root, version=0a0.dev0
       0.265274s   4ms DEBUG uv_resolver::resolver Adding direct dependency: jsons*
  uv_resolver::resolver::choose_version package=jsons
       0.275192s   0ms DEBUG uv_resolver::resolver Searching for a compatible version of jsons @ git+https://github.com/ramonhagenaars/jsons.git (*)
uv_resolver::resolver::process_request request=Metadata jsons @ git+https://github.com/ramonhagenaars/jsons.git
  uv_distribution::distribution_database::get_or_build_wheel_metadata dist=jsons @ git+https://github.com/ramonhagenaars/jsons.git
uv_git::source::fetch
     0.616576s 322ms DEBUG uv_git::source Updating git source `Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("github.com")), port: None, path: "/ramonhagenaars/jsons.git", query: None, fragment: None }`
     0.629879s 335ms DEBUG uv_git::git Attempting GitHub fast path for: https://api.github.com/repos/ramonhagenaars/jsons/commits/HEAD
     1.044262s 750ms DEBUG uv_git::git skipping gc as there's only 2 pack files
     1.049657s 755ms DEBUG uv_git::git Performing a Git fetch for: https://github.com/ramonhagenaars/jsons.git
     2.786967s   2s  DEBUG uv_git::git Attempting GitHub fast path for: https://api.github.com/repos/ramonhagenaars/jsons/commits/HEAD
     2.888567s   2s  DEBUG uv_git::git skipping gc as there's only 0 pack files
     2.889080s   2s  DEBUG uv_git::git Performing a Git fetch for: https://github.com/ramonhagenaars/jsons.git
error: Failed to download and build: jsons @ git+https://github.com/ramonhagenaars/jsons.git
 Caused by: Git operation failed
 Caused by: object not found - no match for id (9abbf3a3bd32435ac74bc98c3554ad3c71086036); class=Odb (9); code=NotFound (-3)

This completes without error for me based on the reproduction above.

Are you still seeing this?

Closing for missing reproduction


Which exact python version was this tested on ? [question]

I'd like to check if the requirements.txt file is supposed to work...
W/ Python-3.12.3, it doesn't.

I think 3.7 or 3.8.

If you can confirm, that would be really helpful.
So that I can try to get the exact environment for a maximum reproducible
behavior.
On Thu, Jun 6, 2024 at 4:54 PM raimon-fa @.***> wrote:

I think 3.7 or 3.8.
—
Reply to this email directly, view it on GitHub
https://github.com/lcmd-epfl/MLKRR/issues/8#issuecomment-2151640749, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFUFAEL5Y7H3DSUFDUSWDDZGAIS5AVCNFSM6AAAAABI3X7ZO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJRGY2DANZUHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Sorry this work was done several years ago and I don't have access to the system or environment where it was developed. The libraries used are quite standard so I don't think the python version should be so relevant. I think any before 3.10 should work.


Errors for certain asset types

See shotsnap.fla

this was an issue where certain images were not loaded yet, ultimately we may want preloading of image assets.


Support markdown fenced code block injection

I've been writing a lot of EBNF snippets in my notes for my programming languages class, which I write in Markdown. Unfortunately, this extension doesn't highlight EBNF snippets in Markdown at the moment, so they are all coloured as plain text.
So, this PR adds support for highlighting EBNF code snippets in markdown fenced code blocks. This is mostly based on the code in this example repo.
Also, I changed the category from "Languages" to "Programming Languages" and replaced a weird unicode symbol in the aliases section in package.json both at VSCode's recommendation.

Thanks Brendan! I did include your code in the master branch and it is ready for the next release. Your name is mentioned in the commit changes.

Version 1.2 is released. I mentioned your contribution in the changelog. I hope you don't mind.
https://github.com/igochkov/vscode-ebnf/blob/main/CHANGELOG.md


Debug: breakpoint gets deleted when removing leading whitespace

I have code like this:
var text = "some text";

setTimeout(function () {
    console.log(text);
}, 0);

I have a breakpoint in the line of the console.log statement and when I delete the leading whitespace, the breakpoint is gone for me.

Weird bug, reprodcues with stable -> November


wrong conversion

In the domain business, just few TLDs are based on IDN 2008 punycode conversion:
.be, .ca, .de, .fr, .pm, .re, .swiss, .tf, .wf, .yt
All other TLDs use the IDN 2003 standard.
Just got that information from my team mates (we work in the domain business) and they point out that the npm module "idna-uts46" handles it in the right way (but as said npm based..) and I for sure don't want to switch the library ;) A client-side solution and to avoid async node.js callbacks is still my target.
Example:
fußbälle.de -> fussbälle.de (IDN 2003)
fußbälle.de -> fußbälle.de (IDN 2008) <-- the correct one!
fußbälle.org -> fußbälle.org -> fußbälle.org (which is wrong, has to be IDN 2003).
correct one would be: fussbälle.org
used methods toASCII and toUnicode.

https://github.com/mathiasbynens/todo/issues/9

Punycode.js implements Punycode and nothing more.
Why don’t you want to use https://github.com/jcranmer/idna-uts46?

A client-side solution and to avoid async node.js callbacks is still my target.

That's the main reason for now. We have not yet any package loader in use with which we could load idn-uts46 directly into browser (and I'm not sure if that would really work).
Just thought this is still a bug that may be of interest for you.

Got the issue#46 <-> uts46 ;-)


Dynamic Data is not moving the x-axis

Hi, I replicated the dynamic data from the demo on your site but the x-axis is not moving. it seems to be moving, but as more and more data points are getting added in, it is becoming congested.

http://plnkr.co/edit/OQSFSKisIIWAH0megy4d?p=preview

you could massage the data if you only care about displaying a specific number of data points... (and there may very well be a way to achieve this in chart options alone)
const maxDataPoints=100;
 // data coming from somewhere
dataPoints.push(dataFromSource);
if(dataPoints.length>maxDataPoints){
  dataPoints.shift();
}

The demos on Highcharts site actually dont work this way...  but rather use methods on the series itself to push datapoints on to the chart (likely in a much more optimal fashion than re-initializing chart every time new data comes in).


Bumps appengine-plugins-core version to 0.2.9.

could you add a PR description? I think I'm missing context.

@patflynn updated

Btw, still need review here. @etanshaul @patflynn

@patflynn need your approval


Input error: k: Format of site key was invalid

hi
i generated new pair key
and  doing what u said
and get this error   on run time instead of captcha box
Input error: k: Format of site key was invalid
i even change my keys with several size 32~2048 bit
any idea ?

i found the solution
https://www.google.com/recaptcha


Added Algorithms in c++,java and python

🛠 Issue (932)

Issue no #932
👨💻 Changes proposed
Adding codes written by me.
✔ Check List (Check all the applicable boxes)

[✔ ] My code follows the code style of this project.
[ ✔] This PR does not contain plagiarized content.
[✔ ] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers
I have written the code with proper comments for the proper understanding of the code.
📷 Screenshots
##In java

In C++

In Python

@Kumar-laxmi please merge it.


Expand CI to Include windows-latest

Our CI does not currently run on Windows. We should add this.
An inital (failed) attempt was made in #457.
Some potentially relevant resources include:

https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md
https://github.com/actions/runner/issues/904 - I can't figure out if this means that we need to rethink how we deploy our MongoDB services (eg maybe we should use MongoDB Atlas instead), or does it just need a bit more perserverance.

Won'


Compatibility with Swift 5.0

Summary
Now that Swift 5 is officially out, it seems appropriate to observe that there are four instances of the following deprecation warning when compiling ZIPFoundation:
'withUnsafeBytes' is deprecated: usewithUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R instead
Two of the warnings occur in Data+Compression.swift and the other two occur in Data+Serialization.swift.
It would be nice if ZIPFoundation compiled without warnings.

Deprecations will be fixed with the next release.
I will leave this issue open and reference it in the PR that fixes the warning.

Thank you.
Cheers,
Rick Aurbach
8233 Tulane Avenue
St. Louis, MO 63132
eMail<EMAIL_ADDRESS>Phone:   314/721-7987
“Be kind to dragons, for thou art crunchy when roasted and taste good with ketchup.” – Sherrilyn Kenyon, author of Dragonswan

On Mar 27, 2019, at 3:13 AM, Thomas Zoechling<EMAIL_ADDRESS>wrote:
Deprecations will be fixed with the next release.
I will leave this issue open and reference it in the PR that fixes the warning.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/weichsel/ZIPFoundation/issues/97#issuecomment-477028897, or mute the thread https://github.com/notifications/unsubscribe-auth/AGTdEQz_VUo85QlMmmRfyKUt4HrN2GQnks5vaygWgaJpZM4cMo8W.


[web][test] add unit tests for text editing

Text editing is working differently for text selection for Firefox browser.
new unit test methods should be added for firefox to text_editing_test.dart

Closed on: https://github.com/flutter/engine/pull/14582


Unable to locate AAX files

I've tried as many different methods I can think of, and the result is the same. Here is an example:
codec: mp3
compression level: 4
chapters: yes
authcode: ~/.audible/mcjonmor.json
loglevel: 1
aax-file: /home/mcjonmor/Music/aax/The_Eye_of_the_World.AAX

./AAXtoMP3 -e:mp3 --level 4 -c -A ~/.audible/mcjonmor.json -l 1 /home/mcjonmor/Music/aax/The_Eye_of_the_World.AAX

/usr/local/bin/interactiveAAXtoMP3: line 159: ./AAXtoMP3: No such file or directory

When trying this using the manual mode script, the result is the same. I've tried changing the active directory to the same as the AAX file. I've tried dragging-and-dropping the aax file into the terminal window. I've tried using tab for auto-complete to make sure I got the directory name correct. It just seems that no matter what, the script is unable to find the correct directory.
One possible cause for this may be due to the error shown when I attempt to run the command: sudo apt-get install ffmpeg libav-tools x264 x265 bc which results in:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libav-tools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libav-tools' has no installation candidate

If that is the case, How can I fix the installation? My OS is Pop!_OS 22.04

+1
I don't know what I'm doing wrong. Any help is appreciated.

When you carefully read the error message, you notice, that finding the .aax file isn't the problem. The problem is finding the script AAXtoMP3.

+1
`codec: m4b
chapters: no
authcode: authcode: XXXXXXXXX
loglevel: 3
aax-file: /home/tim/Musik/Audible/Alice.AAX
./AAXtoMP3 -e:m4b -s -A authcode:XXXXXXX -l 3 /home/tim/Musik/Audible/Alice.AAX
2023-01-08 17:29:49+0100 DEBUG Command line options as set
=Start==========================================================================
codec          = copy
extension      = m4b
mode           = single
container      = mp4
targetdir      =
completedir    =
auth_code      = authcode:XXXXXXX
keepArtist     = -1
authorOverride =
audibleCli     = 0
=End============================================================================
WARN mp4art was not found on your env PATH variable
Without it, this script will not be able to add cover art to
m4b files. Note if there are no other errors the AAXtoMP3 will
continue. However no cover art will be added to the output.
INSTALL:
MacOS:   brew install mp4v2
Ubuntu:  sudo apt-get install mp4v2-utils
WARN mp4chaps was not found on your env PATH variable
Without it, this script will not be able to add chapters to
m4a/b files. Note if there are no other errors the AAXtoMP3 will
continue. However no chapter data will be added to the output.
INSTALL:
MacOS:   brew install mp4v2
Ubuntu:  sudo apt-get install mp4v2-utils
2023-01-08 17:29:49+0100 DEBUG Variables set based on file extention
=Start==========================================================================
aaxc                  = 0
originalAudibleCliVar = 0
audibleCli            = 0
=End============================================================================
2023-01-08 17:29:49+0100 ERROR File NOT Found: /home/tim/Musik/Audible/Alice.AAX
`
Also Pop!_OS 22.04

In Case you donwloaded the aax Files with openAudible -> They do not work! I downloaded them again with audible-cli and now it works flawlessly!

/usr/local/bin/interactiveAAXtoMP3: line 159: ./AAXtoMP3: No such file or directory

As I previously pointed out, the error faced by moonbeast32 isn't that the .aax file isn't found! The error is, that AAXtoMP3 isn't found.


UnicodeDecodeError

我做inference推理使用，一直遇到这个问题：
config.py", line 40, in Config
emotions = [t.strip() for t in f.readlines()]
UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 2: illegal multibyte sequence
请问可能的原因和解决办法是什么？Thx.

Please update the latest code and give a try again.

Thanks for your suggestion. I've pulled down the latest code but the error restained. I made the following change, and the error gone:

with open('XXXXX.txt','r',encoding='UTF-8') as f:

.


Fix handling of shader constants that caused crash, closes #15166

I ended up doing something similar to #15985. I also managed to fix the issue in https://github.com/godotengine/godot/blob/21ea1d89efcf6e25669831baf7b7c9092d3850b1/drivers/gles3/rasterizer_storage_gles3.cpp#L2487
which is where the crash happens, but it's easier to fix in the shader parser. I don't think it's worth moving the fix over to the rasterizer_storage since the code in this PR only affects constant constructors, but it can be done.
(closes #15166)

Tested locally and I confirm it fixes the crash.

Would be good to have in the 3.0 branch, but I'm not confident enough to do a simple cherry-pick, as I'm not sure if the changed cardinality table properly matches shader features in 3.0.x.


cargo-make: 0.37.10 -> 0.37.11

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/sagiegurari/cargo-make/releases.
meta.description for cargo-make is: A Rust task runner and build tool
meta.homepage for cargo-make is: https://github.com/sagiegurari/cargo-make
meta.changelog for cargo-make is: https://github.com/sagiegurari/cargo-make/blob/0.37.11/CHANGELOG.md
Updates performed

Rust version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.37.11 with grep in /nix/store/b0mrc96791il0lwfnwf6c4jx7sx3ndh0-cargo-make-0.37.11
found 0.37.11 in filename of file in /nix/store/b0mrc96791il0lwfnwf6c4jx7sx3ndh0-cargo-make-0.37.11

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

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath
cargo-make
open-scq30

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/b0mrc96791il0lwfnwf6c4jx7sx3ndh0-cargo-make-0.37.11 \
  --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 cargo-make https://github.com/r-ryantm/nixpkgs/archive/67bfdb7d7079d7da13f9356569ed57564b585ce3.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/67bfdb7d7079d7da13f9356569ed57564b585ce3#cargo-make

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/b0mrc96791il0lwfnwf6c4jx7sx3ndh0-cargo-make-0.37.11
ls -la /nix/store/b0mrc96791il0lwfnwf6c4jx7sx3ndh0-cargo-make-0.37.11/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

2 packages built:

cargo-make
open-scq30

Maintainer pings
cc @figsoda @xrelkd for testing.

@NixOS/nixpkgs-merge-bot merge

@NixOS/nixpkgs-merge-bot merge


Olive

The coverage is failing due to this block no longer getting run: https://coveralls.io/jobs/134428857/source_files/19633051640#L586
Should be an easy fix by modifying the cache table in the test to have a correct file size column.


Add optional callback for activity changes

This allows the client to know about external activity changes as soon as they are reported by the Harmony Hub.

Hi @iandday!
Can you please let us know whether this repo is still maintained?
I would prefer not to create another fork so please take a little time within the next week to let us know the status of your project .
Thanks!

Hi amelchio,
I was traveling for work this week and didnt have any time to look through these, I just browsed through the code changes and they look great!  I'm going to take a closer look tomorrow and try them out on my hubs.  If all goes well i'll push the new version, it'll be great to see the new functions in hass

That's great to hear! There is no rush, just didn't want to wait indefinitely :)

these changes look great, thank you.
I removed the token functionality completely from all ha_* functions.  I'm going to publish this as 1.0.17, there doesnt look to be to many changes to be made on the HASS module to remove all references to auth tokens.

Thank you, that's very nice. I will get my Home Assistant PR updated so we can soon enjoy these improvements :)


[#7041] Update quickstarter

#7041

Codecov Report

Merging #7086 into master will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #7086   +/-   ##
=======================================
  Coverage   38.93%   38.93%
=======================================
  Files        3289     3289
  Lines       95763    95763
  Branches    11964    11964
=======================================
+ Hits        37283    37288    +5
+ Misses      55513    55508    -5
  Partials     2967     2967

Impacted Files
Coverage Δ

...tor/metric/datasource/DefaultDataSourceMetric.java
75.00% <0.00%> (-3.13%)
:arrow_down:

.../pinpoint/rpc/client/PinpointClientHandshaker.java
65.00% <0.00%> (-1.43%)
:arrow_down:

...orp/pinpoint/rpc/server/DefaultPinpointServer.java
79.92% <0.00%> (-0.36%)
:arrow_down:

...cluster/zookeeper/ZookeeperClusterDataManager.java
54.83% <0.00%> (+1.93%)
:arrow_up:

...navercorp/pinpoint/rpc/common/SocketStateCode.java
85.36% <0.00%> (+2.43%)
:arrow_up:

...vercorp/pinpoint/web/vo/ApplicationAgentsList.java
69.23% <0.00%> (+2.56%)
:arrow_up:

...pc/server/LoggingServerMessageListenerFactory.java
100.00% <0.00%> (+10.00%)
:arrow_up:

Continue to review full report at Codecov.

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


Add fluent-cap-ctl command to handle add/drop/get/clear capability operations

Please review #3155 first.
Which issue(s) this PR fixes:
None. Follows up #3155
What this PR does / why we need it:
Linux capability operation should be handled in Fluentd management command.
This should be unified interface to add/drop/get/clear operations for Ruby executables which are used to execute Fluentd supervisor and worker(s).
Docs Changes:
Needed.  I'll send a PR to describe this command.
https://github.com/fluent/fluentd-docs-gitbook/pull/249
Release Note:
Same as title.

fluent-cap-ctl --clear-cap seems to be redundant. Need -cap suffix in the option?

fluent-cap-ctl --clear-cap seems to be redundant. Need -cap suffix in the option?

Hmm..., right. I'll remove -cap suffix from --clear-cap option.

How about other options? keep -cap is better? I'll leave it to you.

I'll merge this PR after CIs are finishing.


table name: Integrity error, probably unique constraint

should accept same table name belongs to different data source.

Looks like a dup of #407


Bazel cannot grab CUDA/CuDNN when paths for them are not default.

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): CentOS 7
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): source
TensorFlow version: master branch
Python version: 3.6
Installed using virtualenv? pip? conda?: conda
Bazel version (if compiling from source): 3.7.2
GCC/Compiler version (if compiling from source): 8.3.0
CUDA/cuDNN version: 10.1 / 7.6.5
GPU model and memory: Titan Xp

Describe the problem
During the installation, bazel cannot get the path for CUDA_HOME and LD_LIBRARY_PATH.
Errors occur when bazel compiles tensorflow/compiler/...
Provide the exact sequence of commands / steps that you executed before running into the problem

Install tensorflow from source with non-default path for cuda and cudnn.

Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
I added some lines into tensorflow/core/kernels/mlir_generated/build_defs.bzl to fix this and it works.
+++ b/tensorflow/core/kernels/mlir_generated/build_defs.bzl
@@ -53,6 +53,7 @@ def _gen_mlir_op_impl(ctx):
                 ctx.outputs.out.path,
             )
         ),
+        use_default_shell_env=True,
     )

 _gen_mlir_op_rule = rule(
@@ -114,6 +115,7 @@ def _gen_kernel_fatbin_impl(ctx):
             "--enable_ftz=%s" % (ctx.attr.data_type == "f32"),
         ],
         mnemonic = "compile",
+        use_default_shell_env=True,
     )

For those who use tensorflow in cluster environments, using CUDA/CuDNN in non-default directory is common.

Sorry for the wrong information, it turns out to be my problem.

Sorry for the wrong information, it turns out to be my problem.


how to use  db.orders.find().sort( { amount: -1 } ) in mongodb-erlang

Hi, I can not do  db.orders.find().sort( { amount: -1 } )  in mongodb-erlang , anyone can help me with it. thanks in advanced.

Try it:
mongo:find(Conn, <<"orders">>, {'$query', {}, '$orderby', {amount, -1}}).

yes, it works. but if we want to add some other limitation, for example, amount>3 && amount<10 && isRight ==true. and also orderby {amount,-1}??? how to do it???  thank you very much.

Insert query document to the $query.
mongo:find(Conn, <<"orders">>, {'$query', {'$and', [{amount, {'$gt', 3}}, {amount, {'$lt', 10}}, {isRight, true}]}, '$orderby', {amount, -1}}).

yes, worked again. thank you very much.


第八章的开头引用

应该是Call Me Maybe这首歌的改编，作为诗来翻译并不合适，这里放原文，顺便做个注释会比较好。

Hey I just met you
The network’s laggy
But here’s my data
So store it maybe
—Kyle Kingsbury, Carly Rae Jepsen and the Perils of Network Partitions (2013)
Hey, I just met you,
And this is crazy,
But here's my number,
So call me, maybe?
— Call Me Maybe Lyrics

Thank you~~~ , fixed by https://github.com/Vonng/ddia/commit/e217d118cc605c313f0e28cf5ca1313e13ad21a6