Terraform configuration: too many list items

What happened?

When trying to create a stack containing Cognito resources the provider is choking on the code with the error:
Type     Reason                         Age                    From                             Message
----     ------                         ----                   ----                             -------
Warning  CannotObserveExternalResource  2m45s (x132 over 18h)  managed/workspace.tf.upbound.io  cannot diff (i.e. plan) Terraform configuration: too many list items

How can we reproduce it?

apiVersion: v1
items:
- apiVersion: tf.upbound.io/v1beta1
  kind: Workspace
  metadata:
    annotations:
      meta.helm.sh/release-name: test-customer-scout-cognito-tf
      meta.helm.sh/release-namespace: crossplane-system
    generation: 9
    labels:
      app.kubernetes.io/managed-by: Helm
      helm.toolkit.fluxcd.io/name: scout-cognito-tf
      helm.toolkit.fluxcd.io/namespace: crossplane-system
    name: test-customer-scout-cognito-tf
    resourceVersion: "17478436"
    uid: e66b986d-0ea1-4021-8438-fbab481af524
  spec:
    deletionPolicy: Delete
    forProvider:
      entrypoint: ""
      module: |2

        terraform {
          required_version = ">= 1.3.7"

          required_providers {
            aws = {
              source  = "hashicorp/aws"
              version = "~> 4"
            }
          }

          backend "s3" {
            role_arn     = "arn:aws:iam::123456790:role/terraform"
            external_id  = "terraform"
            session_name = "terraform"

            bucket = "syn-shared-scout-crossplane-terraform-state-storage"
            key    = "test-customer-scout-cognito-tf/scout-cognito/terraform.tfstate"
            region = "eu-west-2"
          }
        }

        provider "aws" {
          region = var.region

          assume_role {
            role_arn     = "arn:aws:iam::123456790:role/terraform"
            external_id  = "terraform"
            session_name = "terraform"
          }
        }

        provider "aws" {
          region = var.region
          alias  = "master"

          assume_role {
            role_arn     = "arn:aws:iam::1234567901:role/terraform"
            external_id  = "terraform"
            session_name = "terraform"
          }
        }

        variable "environment_name" {
          description = "The environment name which is typically the namespace name in Kubernetes."
          type        = string
        }

        variable "region" {
          description = "The AWS region to deploy into."
          type        = string
          default     = "eu-west-2"
        }

        variable "certificate_arn" {
          description = "The ARN of the certificate to use for the cognito userpool domain."
          type        = string
        }

        variable "zone_id" {
          description = "The zone id of the hosted zone to create the userpool domain record in."
          type        = string
        }

        variable "cognito_hostname_enabled" {
          description = "Whether to enable the cognito hostname."
          type        = bool
          default     = false
        }

        locals {
          cognito_hostname = "${var.environment_name}.domain.net"
        }

        resource "aws_cognito_user_pool" "pool" {
          name = var.environment_name
        }

        resource "aws_cognito_user_pool_client" "client" {
          name                          = var.environment_name
          access_token_validity         = 5
          id_token_validity             = 5
          prevent_user_existence_errors = "ENABLED"
          refresh_token_validity        = 60
          user_pool_id                  = aws_cognito_user_pool.pool.id

          supported_identity_providers = [
            "COGNITO",
          ]

          allowed_oauth_flows = [
            "ALLOW_ADMIN_USER_PASSWORD_AUTH",
            "ALLOW_REFRESH_TOKEN_AUTH",
            "ALLOW_USER_PASSWORD_AUTH",
            "ALLOW_USER_SRP_AUTH",
          ]

          # allowed_oauth_scopes = [
          #   "email",
          #   "openid",
          #   "phone",
          #   "profile",
          # ]

          callback_urls = [
            "https://${local.cognito_hostname}/callback",
          ]

          logout_urls = [
            "https://${local.cognito_hostname}/logout",
          ]

          # explicit_auth_flows = [
          #   "ALLOW_ADMIN_USER_PASSWORD_AUTH",
          #   "ALLOW_REFRESH_TOKEN_AUTH",
          #   "ALLOW_USER_PASSWORD_AUTH",
          #   "ALLOW_USER_SRP_AUTH",
          # ]

          # read_attributes = [
          #   "email",
          #   "email_verified",
          #   "family_name",
          #   "given_name",
          #   "middle_name",
          #   "name",
          #   "nickname",
          #   "phone_number",
          #   "phone_number_verified",
          #   "preferred_username",
          #   "profile",
          #   "updated_at",
          #   "custom:roles",
          #   "custom:reference",
          # ]

          # write_attributes = [
          #   "email",
          #   "family_name",
          #   "given_name",
          #   "middle_name",
          #   "name",
          #   "nickname",
          #   "phone_number",
          #   "preferred_username",
          #   "profile",
          #   "updated_at",
          #   "custom:roles",
          #   "custom:reference",
          # ]

          # token_validity_units {
          #   access_token  = "minutes"
          #   id_token      = "minutes"
          #   refresh_token = "minutes"
          # }
        }

        resource "aws_cognito_user_pool_domain" "domain" {
          domain          = local.cognito_hostname
          user_pool_id    = aws_cognito_user_pool.pool.id
          certificate_arn = var.certificate_arn
        }

        resource "aws_route53_record" "domain" {
          count    = var.cognito_hostname_enabled ? 1 : 0
          provider = aws.master
          zone_id  = var.zone_id
          name     = local.cognito_hostname
          type     = "A"

          alias {
            name                   = aws_cognito_user_pool_domain.domain.cloudfront_distribution_arn
            zone_id                = "Z2FDTNDATAQYW2"
            evaluate_target_health = false
          }
        }

        # resource "aws_cognito_identity_provider" "provider" {
        #   attribute_mapping = lookup(each.value, "attribute_mapping", null)
        #   idp_identifiers = lookup(each.value, "idp_identifiers", null)
        #   provider_details =
        #   provider_name = lookup(each.value, "provider_name", null)
        #   provider_type = lookup(each.value, "provider_type", null)
        #   user_pool_id = element(concat(aws_cognito_user_pool.this.*.id, [""]), 0)
        # }

        output "userpool_arn" {
          value = aws_cognito_user_pool.pool.arn
        }

        output "userpool_client_id" {
          value = aws_cognito_user_pool_client.client.id
        }

        output "userpool_client_secret" {
          value     = aws_cognito_user_pool_client.client.client_secret
          sensitive = true
        }

        output "userpool_domain" {
          value = aws_cognito_user_pool_domain.domain.domain
        }
      source: Inline
      vars:
      - key: environment_name
        value: test-customer-scout-cognito-tf
      - key: region
        value: eu-west-2
      - key: certificate_arn
        value: arn:aws:acm:us-east-1:1234567890:certificate/a62ab269-0c71-43a5-89a9-8ae8fcd74d5f
      - key: zone_id
        value: Z1ZXAE1QTBBYSL
      - key: cognito_hostname_enabled
        value: "true"
    providerConfigRef:
      name: default
    writeConnectionSecretToRef:
      name: scout-cognito-test-outputs
      namespace: crossplane-system

What environment did it happen in?

Crossplane Version: v1.10.1
Provider Version: v0.5.0

Kubernetes versions:
Client Version: v1.25.4
Kustomize Version: v4.5.7
Server Version: v1.24.10-eks-48e63af

OK so I did some investigation into this and traced the code through and found these things:
https://github.com/upbound/provider-terraform/blob/e4dfce6eb759083c63b2c6b397ad29235fa5b4b1/internal/controller/workspace/workspace.go#L66 - Where the part of the error message saying: cannot diff (i.e. plan) Terraform configuration was defined.
This is where it is then called: https://github.com/upbound/provider-terraform/blob/e4dfce6eb759083c63b2c6b397ad29235fa5b4b1/internal/controller/workspace/workspace.go#L285
Which I then traced to: https://github.com/upbound/provider-terraform/blob/e4dfce6eb759083c63b2c6b397ad29235fa5b4b1/internal/terraform/terraform.go#L434-L459
and found this: https://github.com/upbound/provider-terraform/blob/e4dfce6eb759083c63b2c6b397ad29235fa5b4b1/internal/terraform/terraform.go#L454-L458
and https://github.com/upbound/provider-terraform/blob/e4dfce6eb759083c63b2c6b397ad29235fa5b4b1/internal/terraform/terraform.go#L54-L77
Which then told me that the error was originating in Terraform itself not in the Crossplane Terraform provider which I confirmed by finding this in the Terraform code base: https://github.com/hashicorp/terraform/blob/af05cbb645c2b09edd8e49098988e56c322a3017/internal/configs/configschema/decoder_spec_test.go#L331
I then managed to create a test locally and got the following error locally:
│ Error: Too many list items
│
│   with aws_cognito_user_pool_client.client,
│   on main.tf line 21, in resource "aws_cognito_user_pool_client" "client":
│   21:   allowed_oauth_flows = jsondecode(base64decode("ICBbIkFMTE9XX0FETUlOX1VTRVJfUEFTU1dPUkRfQVVUSCIsICJBTExPV19SRUZSRVNIX1RPS0VOX0FVVEgiLCAiQUxMT1dfVVNFUl9QQVNTV09SRF9BVVRIIiwgIkFMTE9XX1VTRVJfU1JQX0FVVEgiXQo="))
│
│ Attribute allowed_oauth_flows supports 3 item maximum, but config has 4 declared.

So the error is actually the code but due to the Classify function not outputting all the information provided by Terraform in it's error output it made me think this was a problem with the Crossplane Terraform Provider.
So this is now more of a bug in the Crossplane Terraform Provider's error output than a bug with the main operation of the Crossplane Terraform provider as it is obscuring information required to fix problems like this.

@alanjjenkins thanks for the report! Totally agree on error verbosity, known limitation, we track it here https://github.com/upbound/provider-terraform/issues/37

@alanjjenkins thanks for the report! Totally agree on error verbosity, known limitation, we track it here https://github.com/upbound/provider-terraform/issues/37

@ytsarev shall I close this in favour of that then?

@alanjjenkins yes, that makes sense. Please close, thanks!


Fix libpng debug warnings

Fixes/removes wrong PNG chunks.
Fixes
libpng warning: iCCP: known incorrect sRGB profile

warning.

Current coverage is 27.04% (diff: 100%)

Merging #1752 into master will decrease coverage by <.01%

@@             master      #1752   diff @@
==========================================
  Files          1965       1965
  Lines         81185      81185
  Methods       13758      13758
  Messages          0          0
  Branches       1249       1249
==========================================
- Hits          21958      21954     -4
- Misses        59150      59154     +4
  Partials         77         77

Powered by Codecov. Last update ea49b20...42cd43b

@yurii-litvinov any reasons to ignore? Or can be merged?


What is the position of Lidar?

Hey admin and all,
Could someone tell me the position of Lidar on waymo vehicle? In kitti data set, position of Lidar from ground is 1.73 meter. it is written in their paper. But I did not find any info about lidar position from ground in waymo paper.
Could someone help me with this?
Thanks in advance

Hello @mariya12290 , I work actually on the same issue. Can you explain me the impact of the position height of the LIDAR please? For example, I use a BEV map as input of my model and when I change the Z range boundary (the height boundary of the Lidar) I obtain different results and some time no detections results. So the the range of Z boundary and so the position height of the Lidar sensor has an impact in the detections results but I didn't understand why. If you can help me.
Thank you !

We release the extrinsics of each LiDAR which contains the height information of each LiDAR.

Hey @SofianeB-03,  Most of the models for object detection with lidar have height as their hyperparameters.  But this is not the case with Lidar. When you are using non-linear data(means roads are not always flat), so when we create a BEV map for let's say for a certain height, length, and width [5,20,40]. In some of the lidar frames, the creation of BEV may be incorrect(which means, only half of the object is considered) then the network learns garbage. so less accuracy or no detection.
Note: This is my understanding, but I am not quite sure yet.

Thank you for your great explication! Maybe this information can help you:  the points 3D Waymo are in the vehicle frame, and in the issue closed #99, I note the origin of the vehicle frame is near to the ground.

@peisun1115 , Thank you for your reply.

Hey @peisun1115  @SofianeB-03,
can someone tell the reason behind these kind of annotations in waymo data set? Or did I do any wrong in the data conversion from Kitti to waymo?
Here is the linkhttps://github.com/waymo-research/waymo-open-dataset/issues/326#issue-912723843
@SofianeB-03  do you have this kind of annotations in your waymo data set? could you please check and let me know?
Thanks in advance

Hey @SofianeB-03
If you have time, can you please check your data and let me know ?

Hey @SofianeB-03
Thank you so much, Now I got the clarity. My data conversion is wrong. But still waymo annotation is quite difficult for network to learn. sometimes annotations are below 25%.


Can spring security be used in spring cloud functions

Hi,
I have a utility jar which provides a filter and an implementation for AuthenticationProvider.
I can easily make use of a configuration class which extends WebSecurityConfigurerAdapter.
I want to use the same utility in my spring cloud function app, but it does not work for it.
Is there a way to use spring security in spring cloud function or not.
If it is possible can you share some example which does the same

Can you please ask question on the dedicated Stack Overflow channel. We use this issue tracker to only track issues.

Hi Olegz,
I tried stack overflow as first but what to do if I dont find satisfactory answers there?
Isn't this the place where someone who has better understanding of the source code can help others?
If you want to keep this only for issue tracking then why not have a different label to segregate issues and questions ?
it would have been even easier for everyone if there was a better documentation of spring cloud functions.
Sorry to say but the documentation of spring cloud functions is not enough


Generate an initializer with track_associations=false

As discussed in #567, the paper_trail:install generator should generate an initializer with ::PaperTrail.config.track_associations = false, given the deprecation warning that was added in https://github.com/airblade/paper_trail/pull/785

Also, can this track_associations config option please be added to the documentation in the associations section?
I had to search quite a bit before I figured why it wasn't doing anything, after running the extra migrations.

.. the paper_trail:install generator should generate an initializer ...

Any progress on this, Mike? Have you figured out how to generate an initializer? Thanks!

Also, can this track_associations config option please be added to the documentation in the associations section?

Great idea, Wim. Please submit a PR, thanks.

@jaredbeck I know how to generate an initializer, I just haven't had time to look at this since it's not an itch I've had to scratch since we last discussed it.


[Fancy Zones] Visual studio 2019 does not snap to zones

while other applications do snap to any zone, visual studio does not so there is no way to put it in one of them.

@LiorBanai
are you running VS as administrator? In that case PowerToys also needs to run as administrator.

@enricogior , Yeah, that was the issue.
Thanks :)
closing this


Added dagster version and hostPort issue docs

Describe your changes :

Fix https://github.com/open-metadata/OpenMetadata/issues/8188

Type of change :

[x] Documentation

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers

@open-metadata/ingestion

awesome thank you


Switch when pylance runs over code to dynamically inject import mymodule

I have a module which I can only load with importlib.
Is it possible to get anyway syntax completion by somehow doing

if pylance_is_running:
    import mymodule

mymod = load_my_mod_with_importlib()

mymod.sub.myfunc() # << No code completion here

together python.analysis.extraPaths
such that I get code completion also for the above usage.

Yes, you can use the typing.TYPE_CHECKING symbol introduced in PEP 484. All static type analysis tools support it. It would look like this:
from typing import TYPE_CHECKING

if TYPE_CHECKING:
    import mymod
else:
    mymod = load_my_mod_with_importlib()

There is some danger in using TYPE_CHECKING because the static analysis tools (including type checkers) are now analyzing different code than the code the Python interpreter will execute at runtime. But sometimes it's necessary to "lie" to the type analyzer to handle cases like this one.

@gabyx, if this does not work, please reopen this issue.


Zeroing ftsensor seems to be broken

I just tested this on an e-Series ur3e and zeroing did not work (using the custom script interface). This should be investigated further.

I found the issue. Seems to be due to the handback interface (which stops the program)
When removing these lines: https://github.com/UniversalRobots/Universal_Robots_ROS2_Driver/blob/643eada22fea3f31b5318160c57ad58bf4c90a94/ur_robot_driver/src/hardware_interface.cpp#L685
Zeroing works

Ok I fixed the issue in the linked PR.
This was a rather nasty bug as we didn't export enough command interfaces. I would suggest using sorted interfaces in the gpio controller in order to avoid such bugs in the future.


Use setup.py develop for installation

This should have the same effect as updating PYTHONPATH. I suppose all the other install-*.md would need to be updated too...

Nice! This is cleaner for deployment, but a little more work during development, right (because it's no longer enough to recompile, you also have to rerun setup.py)? That's probably the right tradeoff though.
In addition to updating the other installation documents, could you also update the .travis.yml and dockerfiles to reflect this new workflow?

There is python setup.py develop which does what we want for development (i.e. you don't need to re-run python setup.py if you edit the source), see http://stackoverflow.com/questions/19048732/python-setup-py-develop-vs-install
+1 for switching to this workflow


Guards against set being called on a destroyed object.

Before this change it was possible for resizeScrollbar to bomb out if it was called when in the isDestroyed state. It is possible for the component to both be isDestroyed and have a scrollbar still.

This is similar to: https://github.com/alphasights/ember-scrollable/commit/f404e12468a9d18667a8c9712643ff57d4dee450

cc @taras

Thank you


Embedding Vector

@krasserm Can you please explain about the embedding vectors?
What it contains?
what is the significance of embedding vector?
If I want to vary the embedding vector size then what should I do?

Please read https://arxiv.org/abs/1503.03832.


Remove bundleconfig.json files from project templates

Addresses #326

@DamianEdwards should the comment Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification for details on configuring this project to bundle and minify static web assets. be added to the site.min.css and site.min.js files as well? I can undo that if not.

I think once the file is minified the comment would be gone anyway, so I wouldn't add it there.
Though, perhaps more interestingly, it's a bit odd to have a site.min.css because nothing will keep it up-to-date...

nothing will keep it up-to-date...

If there are ever changes made to the site.js or site.css, shouldn't the developer be responsible for creating/updating the min files?

@jbagga yes exactly, except we don't do it by default, so apps don't work by default. But @DamianEdwards wants to keep the file there to keep the pattern going. So yeah let's keep it. But I don't think we need the comment in the min files.

:shipit:


collect-logs with fast-exit can hide logs

Run wsrun --concurrency 2 --fast-exit --collect-logs -c test and have the 1st test suite wait 1s and succeed but the 2nd fail immediately.
You get no output from the 1st test.

Minimum repro repo: https://github.com/adiktofsugar/wsrun-issue-111


Add more examples

Codecov Report

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

@@           Coverage Diff           @@
##           master     #102   +/-   ##
=======================================
  Coverage   94.15%   94.15%
=======================================
  Files          32       32
  Lines        1318     1318
=======================================
  Hits         1241     1241
  Misses         77       77

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 09509ca...ec2b924. Read the comment docs.


bug: fixed print() indent

I fixed the your indent on print()

From: Jaw @.>
Sent: Monday, May 31, 2021 4:09 PM
To: KillytheBid/Instagram-Scrape @.>
Cc: Subscribed @.***>
Subject: [KillytheBid/Instagram-Scrape] bug: fixed print() indent (#1)
I fixed the your indent on print()

You can view, comment on, or merge this pull request online at:
https://github.com/KillytheBid/Instagram-Scrape/pull/1
Commit Summary

bug: fixed print() indent

File Changes

M IG Scraper (render method).py https://github.com/KillytheBid/Instagram-Scrape/pull/1/files#diff-047b7c185fdbff36709f54cdac10a438ae36b9e8ceb54d05a0a474b387cd2059  (2)

Patch Links:

https://github.com/KillytheBid/Instagram-Scrape/pull/1.patch
https://github.com/KillytheBid/Instagram-Scrape/pull/1.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/KillytheBid/Instagram-Scrape/pull/1 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQX55TQU4YINFSL3O7HZEX3TQP3GPANCNFSM453O2LKQ .
--
This email has been checked for viruses by AVG.
https://www.avg.com


⚠ SceneTime has degraded performance

In e73528c, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 12578 ms

Resolved: SceneTime performance has improved in 8f7e7c1 after 5 minutes.


Fix #360 Error Import Scan Results with API

#360 : Error Import Scan Results with API

Master continues with the "NameError: global name 'Resolver404' is not defined"  on ImportScanReport API. Do you know why this wasn't merged to master?

@NShani why did you close this before being merged to master? I'm working with the API and found all the problems you have fixed in this PR but weren't merged. You request the PR again so I don't do the same work you have done.

It will take some time for @devGregA check the PR but it will go, this is a huge fix and great work! :)

@aaronweaver you're much more familiar with this section of code than I am do you have time to take a look this week?

@devGregA Yes, will review.

@NShani Thanks for the code commit. I had to make a couple changes to the model to allow null fields and adjust the timezone setting. Other than that it looks good. Would it be possible to provide me with a scrubbed Qualys WAS report and Veracode for future testing? Thx!


Roll 3.4.2 version

Was wondering if someone could roll 3.4.2 version of hashie. I have gem I'm working on that depends on the separation of the trash property access, which is in latest commit.

@michaelherold @bartoszkopinski @gregory Feel free to cut a release! Thanks.

Done! Sorry for the delay, I was on vacation last week and in the middle of a heavy sprint the week before.


Problems finding the solution file

I made a program using dotnet c# and atempted to link it to heroku. After changing the stack to cedar 14 i was finally able to use this buildpack to build,and now the issue became that no matter where i place the solution the buildpack cannot find it. I tried entering the solution directory using the csproj file,but that yielded no results as well. Finally i decided to ask if someone had this problem using this buildpack how did they fix it,if they did.

5 seconds after posting this,i realised this was already covered in the  "Closed" issues. Apologies for wasting your precious time.


Remove the pre-emptive error if section not chosen

Since you're limiting the "too many combinations" error on the backend anyway, you could remove the frontend restrictions on running generate without choosing section since choosing faculty could also reduce the number of combinations. Current version doesnt allow me to run generate where i mention subjects and faculties (which should still have a less enough number of sections to start the routine generation process)

Since you're limiting the "too many combinations" error on the backend anyway, you could remove the frontend restrictions on running generate without choosing section since choosing faculty could also reduce the number of combinations. Current version doesnt allow me to run generate where i mention subjects and faculties (which should still have a less enough number of sections to start the routine generation process)

I'm not limiting "too many combinations" in the backend, it's just that when the combinations get's too large the backend takes more time naturally but my free hosting service only sends the data back if it's all done in a certain amount of time and thus I'm limiting it in the frontend so there are less errors. But yeah I could set this as a soft warning instead of not letting users click generate button. (note that, I created this system before implementing the faculty choosing feature, thus didn't take this into account at that point)

In the updated frontend, I only warn users regarding regarding requests that may fail due to their size in the backend. Thus I'm closing this issue. Thank you


change colorDomain with setParameters

Hi, I was playing a bit with http://arose.github.io/ngl/ and find that if i load the first example (i tried with this) and in the console I try to change the colorScheme and the domainColor parameter of a representation like this:
stage.compList[1].reprList[0].setParameters({colorScheme:"bfactor"}) //works
stage.compList[1].reprList[0].setParameters({colorDomain:[1,100]}) //throw error

Setting the colorDomain parameter returns an error:
ngl.0.10.5-2.js:1 Uncaught TypeError: Cannot read property 'set' of undefined

thanks, fixed in the latest dev release, try here http://arose.github.io/ngldev/

Great! tank you.


Use blog-post.js for blog posts and tutorial-post.js for tutorials

Currently tutorial-post.js is used for both

Superseded by #71


The CXX compiler identification is unknown

Hi.
I'm trying to compile in my RaspberryPi with openSUSE Tumbleweed.
After follow the wiki hints to this distribution I get this error when I try to build:

-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:8 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

Any help on this? Do I have to install another devel package? Do I have to set that path (but I don't know how)?
log error:

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND
Build flags:
Id flags: -c
The output was:
No such file or directory

Thanks!

Yeah, looks like you need to install the C++ compiler, and likely some other packages as well. There is a bit of documentation here around openSUSE: https://github.com/clangen/musikcube/wiki/building

Closing due to inactivity.


feat(deps): update go-github to v60

https://github.com/google/go-github/releases/tag/v60.0.0
CHANGELOG
Extra:

Add makefile defs with common operations.
Update endpoints based on current version.
Add .editorconfig for IDE expected code style.
Add vendors to gitignore to avoid mistakes pushing deps.

@migueleliasweb any chance you could take a look? also, shall we enable github actions for pull request testing? I saw you have a PR https://github.com/migueleliasweb/go-github-mock/pull/1 but never got merged.

@migueleliasweb any chance you could take a look? also, shall we enable github actions for pull request testing? I saw you have a PR #1 but never got merged. I do have a primary approach here: https://github.com/quike/go-github-mock/actions but tell me what you would like and we can build it progressively. At least I am trying to put so far build/test/lint so pr's can be verified and later add automatic semver or anything else.

That would be great to have :). I'll have a look at your implementation and we can create a separate PR to work on that.

I'll have a look later tonight about the changes. Thanks for the contributions :).

@migueleliasweb any chance to take a look to this one? thanks

I'll have a look later tonight about the changes. Thanks for the contributions :).

Any chance to do it? Thanks

New release with v61 of go-github: https://github.com/migueleliasweb/go-github-mock/releases/tag/v0.1.
Can we close this one for now?


Proxy-pallet: Design flow for Budgets Expenditures

Continuing with the EOSIO migration to Substrate, we need to add the Budgets Expenditures for each project:

[x] Design the flow

Add the following extrinsics:

[x] init expenditures
[x] add expenditure
[x] edit expenditure
[x] delete expenditure

[x] Remove unnecessary features/fields/calls/flows from EOSIO
[x] Determine datatypes
[x] Add needed storage maps
[x] Create parent's accounts
[x] Create children's accounts
[x] Add a field to track pseudo-balances

[x] Integrate budgets flow #147

Closed. It only remains to integrate the accounting system #153


Single Nic Deployment

Hello
I'm looking for guidance on howe to configure my Harvester instance to use a single NIC. I have successfully have the MGT network up and running. But I'm unable to ping or ssh to freshly created virtual machines.
Can you advise if it is possible to do this configuration ?
Thanks

When you are using single nic, you need to ssh into your host node first then ssh/ping your VM's IP.
As in this mode, the VM is using private IP address. It can ping internet, but not vice versa.

I was trying to get direct access to my VM's as my main dev tools are on my local machine. Would the recommendation to have two nics for direct access ?
Thanks
Kevin

For direct access, the general solution is to add a second nic and put it in an indepedent VLAN, then the VM get IP from this VLAN, with it, the IP is directly reachable.

Hey
The dual nics work , but do not present the private up address in the portal.
Please close question.


Added codecov to cookiecutter

Projects setup using this cookiecutter now have codecov via travis and tox, plus a badge in the README.

Note: Wait to merge until I've tested creating a cookiecutter repo from this branch

Tested, it works


How to use

One thing that gets some of us to try and contribute is when we have a section on how to use a package in the README.
Import, basic examples, how to compile...tips🙏
That'll be handy

O love this initiative BTW...very excited you've started it 🙏

@aberba I apologise for being offline as of recent, work is a bit hectic. I'm going to use this in my company for the next project so it will get some part time attention.
I'll write up a basic Readme tutorial and a wiki with tips, and more advanced tutorials in it. I'll leave this issue open until I complete it.

I've partially done this. In README.md there is now an example usage section that shows how to compile LWDR and link it into your GCC C/C++ project for usage on an MCU. For reference, the example uses FreeRTOS (CMSIS compliant). I've included some light commenting on what the FreeRTOS functions do. I've also included the GDC compiler command.
You will need to compile GDC to target arm-none-eabi.

I'll keep this open as I believe the documentation can be better.


Add WorldGenerator.getWorldSeed()

Adds the missing getter for the WorldGenerator.setWorldSeed() method. This method also need to be added to AnotherWorlds PluggableWorldGenerator.
A use case is WorldViewer who wants to display the seed that is currently used.

Refer to this link for build results (access rights to CI server needed):
http://jenkins.terasology.org/job/TerasologyPRs/6/
Jenkins Success Message


Add Weather Events

I implemented LightningStrikeEvent here instead of mixing it into EntityStruckByLightningEvent in Sponge as they are different events (the forge one deals with the entity being struck, the sponge one the lightning striking entities).

@AIOOB These injections do not work. Please test before creating a pull request.

@AIOOB Will this be getting an update soon?

Yes, I have been really busy recently but after the 11th I should be able to finish everything. Currently the weather events are all working fine but lightning is presenting more of an issue since the entity captures have been added.

I have checked this as much as I can at the moment and it seems to be done (I cannot check server side as my computer is not powerful enough), any suggestions are welcome. There are a few oddities: this only registers the change in weather one tick after the weather changes due to minecraft not assigning a time to the duration of a weather event until it has started and it also delays the effect of lightning until it dies due to the requirements of the sponge event, which is noticeable if you are looking for it.

Fixes #311


Create uniderp.txt

The Anhanguera-Uniderp is an University in Campo Grande, Mato Grosso do Sul, Brazil established in 1974 and controlled by the private educational group Anhanguera.

@heliofvj Pull request merged. Thank you!


Question: Setting the zoom minimum scale to less than 1

Hi, thanks for all the work that's gone into this library!
Are there any examples of a CanvasPanel that allows the zoom to scale below 1? As I understand it the default minimum zoom is 1 as in this CodeSandbox.
Thanks

Yes! You can set:
const runtimeOptions = { maxOverZoom: 5 };

and then pass it into the viewer component:
<CanvasPanel.Viewer runtimeOptions={runtimeOptions} />

This will allow you to zoom in further than "100%" into the image. You can also set maxUnderZoom to control how small you can make the image, or how far you can zoom out. There is also visibilityRatio that will control the minimum percent (0-1) of the image that is visible when you pan to the side of the image. The default is 0.5.

Thanks, that's perfect :)
I'll close this issue but have one related question: is the initial zoom level configurable?
As a workaround I've been calling preset.runtime.world.zoomOut() in a useEffect after the initial render but this triggers an initial zoom transition I'd rather avoid!

You can pass in homePosition={{ x, y, width, height }} to the Viewer component. I think these can be negative, so you could do a fixed size if you wanted.

Thanks again, really appreciate the pointer.


Untangled NextGen HR & PAY Architecture Metamodel

Duplicated NextGen HR & PAY Architecture Metamodel
Created a new view called [Untangled] NextGen HR & PAY Architecture Metamodel
Rearranged view to do cleanup and remove as much as I possibly can.

This is also a test, ive never done a pull request of a fork :)

:| I butchered the commit message, but the pull request message is accurate :)

Closing, pull request


(Some) images load very slowly

Hey,
it's me again.
Reproduce:

Click the Glasses Tab
Chooste e.g. Shot glass
3.1 Site loading slow (sometimes about 5 Secounds - or alert "something wents wrong"? )
3.2 Images load very slow (Scroll fast down -> Sometimes about 5 secounds too)

Is that a web request? Because the pages load very slowly with slow internet (e.g. Edge or 3G), here it can come also more often to the message that something went wrong.
Desired solution would be a waiting popup or similar.
Or check whether the internet is fast or slow.

Hello Again MickLesk!
Thank you for submitting this issue as well, since reading this message we've implemented a library that allows the images to load faster, please be so kind to test the application again, the issue should now be taken care of.

Fix Commit: bb765cfd2c410a8c3d30fb4ce11bf18024f210b0
Regards,
Francine


s3_scrubber: remote atty dependency

Problem

https://github.com/neondatabase/neon/security/dependabot/28

Summary of changes
Remove atty, and remove the with_ansi arg to scrubber's stdout logger.
Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.
[ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
[ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

[ ] Do not forget to reformat commit message to not include the above checklist

Earlier PR was #5141.


gitlab v15.5-stable build error N°3

alpine-docker-gitlab-155-stable-gitaly-1        | FATAL: /home/git/repositories not owned by git
alpine-docker-gitlab-155-stable-gitaly-1        | Make sure it's owned by git (1000:1000)
alpine-docker-gitlab-155-stable-gitaly-1        | FATAL: /home/git/repositories not owned by git
alpine-docker-gitlab-155-stable-gitaly-1        | Make sure it's owned by git (1000:1000)
alpine-docker-gitlab-155-stable-gitaly-1        | FATAL: /home/git/repositories not owned by git
alpine-docker-gitlab-155-stable-gitaly-1        | Make sure it's owned by git (1000:1000)
to solved this in entrypoint like that:
chown -R git:git /home/git/repositories
case "${1:-help}" in
start) start ;;
setup) setup ;;
config) config ;;
upgrade) upgrade ;;
backup) backup ;;
dump) dump_db ;;
verify) verify ;;
logrotate) logrotate ;;
cleanup) cleanup ;;
shell|sh) /bin/sh ;;
help) usage ;;
*) echo "Command "$1" is unknown."
usage
exit 1 ;;
esac

This is already done in the prepare_dirs function, which is automatically run on startup, so I'm not sure why you are running into this error.


Timesheet - 02/05/2021 - Bojan Ilijevski

Task 1
Managing social media
Answering private messages on Instagram and Facebook
Following/Unfollowing people on social media
Time Spent
1 hour

Total Time Spent
1 hour
Account Number
b1b1e90107d804e5317c8527129ceaededdcb162a6737112b88712742a08bb72

Approved

Approved


Buttons under Why choose us is not responsive for smartphones.

Description
Buttons under why choose us is not responsive for small screen/smartphones It's Coming great for Mobile with L screen but not coming perfectly with smaller screens.
Expected Behavior
Change In Buttons structure and make it responsive
Screenshots

Enviroment:

OS: Mac Linux Windows
Browser: Chrome Safari Firefox
Version:
Device: Desktop Mobile

For all the screens, it is working properly!


Substring Search

#2141
string.includes(substring) matches the substrings.
string = "hostess" or "steam test"
substring = "tes"
The above method returns true for the given values of string and substring.

Automated message from Dropbox CLA bot
@varshit97, it looks like you've already signed the Dropbox CLA. Thanks!

Can we discuss this change on chat.zulip.org?  The current behavior, before your change, is to look for matches at the start of names.  If we want to change this, we should get some consensus, and you'll need to fix the comment at the top of the function and fix the tests.

@showell Yeah sure !! Fixed the comment. Not sure why the tests are failing though. The version with the fix runs without any errors on localhost.

I think this was fixed coincidentally by somebody else.

Yep, it was; I guess we should close this PR then.


No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

Ionic version:  (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x ] 3.x
[ ] 4.x
I'm submitting a ...  (check one with "x")
[x ] bug report
[ ] feature request
Current behavior:
When I try to build for Android I run into this cryptic error message listed below.
Expected behavior:
For it to build successfully.
C:\...\platforms\android\build\intermediates\res\merged\debug\values-v26\values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

 FAILED

BUILD FAILED

Total time: 26.595 secs

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
C:\...\platforms\android\build\intermediates\res\merged\debug\values-v26\values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

C:\...\platforms\android\build\intermediates\res\merged\debug\values-v26\values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

[ERROR] An error occurred while running cordova run android (exit code 1).

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
cli packages: (C:\...\node_modules)

    @ionic/cli-utils  : 1.12.0
    ionic (Ionic CLI) : 3.12.0

global packages:

    cordova (Cordova CLI) : 7.0.0

local packages:

    @ionic/app-scripts : 3.0.0
    Cordova Platforms  : android 6.2.3
    Ionic Framework    : ionic-angular 3.7.1

System:

    Android SDK Tools : 25.2.5
    Node              : v6.11.4
    npm               : 3.10.10
    OS                : Windows 10

Misc:

    backend : legacy

Hello! Thank you for opening an issue with us!
This isn't an Ionic Framework issue, so I am going to close this, but did you try the stuff mentioned here: https://stackoverflow.com/questions/45301203/no-resource-found-that-matches-the-given-name-attr-androidkeyboardnavigationc
Thank you for using Ionic

@Baburaomannepalli Can you please specify exactly where do we need to add these two lines?

Same issue, I am also facing but I am using Cordova. @stplShubham @Baburaomannepalli Could you please let me know if you find anything about this.

@grandhisubrahmanyam35 and @stplShubham. Search for 'compileSdkVersion' or 'buildToolsVersion' in 'platforms/android/build.gradle'. Should find the following:
compileSdkVersion cdvCompileSdkVersion
buildToolsVersion cdvBuildToolsVersion

Replace as above, then Gradle sync. Should be noted these values will be replaced each time the cordova project is generated.


Class is not covariant

It seems that Class type is not covariant:
Given
class A {
  a: string;
  b: string;

  constructor() {
    this.a = 'a';
    this.b = 'b';
  }
}

type AType = {
  a: string
};

This fails: const Clazz: Class<AType> = A;
 18: const Clazz: Class<AType> = A;
                                 ^ property `b` of A. Property not found in
 18: const Clazz: Class<AType> = A;
                        ^^^^^ object type

Unfortunately this isn't actually intended to work -- but we're giving a poor error message for it :(
Because classes are typed nominally in Flow, this error message should really say that it is invalid to use Class< > on any type that doesn't represent the instance of a class. In other words, because AType is an object type, using it with Class< > would mean generating a type for a specific class-object that produces instances of AType -- which would then be useless (since it exists only in the type system and not at runtime).
Sorry for the confusion here -- I don't think we actually have a way to generically specify structural class types. Maybe you can go into your use case a bit so we can understand it better?

@jeffmo I see, I probably misunderstood what Class actually does. There is probably a problem with the docs, then, as they state the following:

Class<T>  Describes the type of the class object that would instantiate an instance of T

It should probably say "instance of class T"
Although it's weird, cause if I add b:string to AType this code actually type-checks.

Maybe you can go into your use case a bit so we can understand it better?

It's simple: I want to have a map of constructors that produce objects of type T, so that I can implement a factory that picks a constructor, calls it and returns value of type T.
To be precise, I don't need class type, I need a constructor type, i.e. a function that can be called with new, but I don't see a way to declare those as well.
I started with the following:
const map: { [key: string]: Class<MyType> } = { foo: MyConstructor }

Since it didn't work, I ended up wrapping constructors with functions:
const map: { [key: string]: (arg: any) => MyType } = { foo: arg => new MyConstructor(arg) }

It kind of makes sense, since Class<T> doesn't indicate in any way what arguments should be passed to constructor.

It should probably say "instance of class T"

Good point, I'll fix this wording. Thanks

Although it's weird, cause if I add b:string to AType this code actually type-checks.

Yes, this is actually a bug in Flow. We've known about it for a bit, but it's been so obscure that we haven't gotten to it yet.

I want to have a map of constructors that produce objects of type T, so that I can implement a factory that picks a constructor, calls it and returns value of type T.

This makes a lot of sense, thanks. I'll log this as a feature request


chore: update mirror node chart version

Description
This pull request changes the following:

Updating mirror node chart to v0.107.0

Related Issues

Closes #897

:tada: This PR is included in version 0.28.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


event webhook strategies

Issue Summary
This isn't a library-specific question but more about the general approach of the community.
I'm curious how people are handling data that's coming in through the SendGrid Event Webhook?
In my case, I'm really only concerned with the latest event in the "natural sequence." Meaning I only need my users to see if the message, for example, has been opened. I'm not interested in storing every single event as I realize this can be a storage issue and for me, it's just extraneous data. When I store the events, I'm overwriting the existing event for the message if the record exists. Otherwise, I create a new record with that event.
The biggest issue I'm running into right now is the seemingly random stream of events that I get from the webhook. For example, I woke up this morning and refreshed the table where these events are logged and I'm still receiving events for messages that I sent almost a day ago. I'm also seeing cases where I receive an event, such as open and then I'll come back later and that message event is now delivered, which is out of order because a new batch came in with that event.
I am doing event de-deduplication as recommended in the docs but as I mentioned above, I'm seeing cases where I'll receive a delivered event after I've already received an open event. I realize I could check the database to see an event already exists for the message in question but I'm trying to avoid multiple round trips to the database.
Any suggestions would be helpful!

Hello @jamesdixon,
How about storing a history for each event stream for a few days? Resolve the event stream, then delete the history.
Alternatively, when you receive an open event or some other KPI related final measure, auto-drop anything that would have normally happened prior, such as delivered in your example, assuming the only final result is what you care about tracking.
I think a good ol' fashioned white boarding session is probably in order ;)
You may also want to reach out to our support team to verify that the out of order event data behavior is expected.
With Best Regards,
Elmer

@thinkingserious sorry for the delayed reply and thank you for the thoughtful answer! I ended up limiting the events that are sent back from the webhook, which is helping very much.


使用deepspeed run run_rm.sh

Could not estimate the number of tokens of the input, floating-point operations will not be computed
Traceback (most recent call last):
File "/root/nas-share/chat/MedicalGPT-main/reward_modeling.py", line 643, in
main()
File "/root/nas-share/chat/MedicalGPT-main/reward_modeling.py", line 615, in main
train_result = trainer.train(resume_from_checkpoint=checkpoint)
File "/usr/local/conda/lib/python3.9/site-packages/transformers/trainer.py", line 1537, in train
return inner_training_loop(
File "/usr/local/conda/lib/python3.9/site-packages/transformers/trainer.py", line 1881, in _inner_training_loop
self.optimizer.step()
AttributeError: 'DummyOptim' object has no attribute 'step'
RewardTrainer是否支持deepspeed

请问大神，什么版本比较合适

0.9.2

我是在运行pretrain的时候遇到这个问题，把deepspeed改成0.9.2会在accelerate检查依赖版本时提示最低需要0.9.3，然后改成0.9.3，还是会遇到上面那个问题


make AQL that finds all the folders that have 0 artifacts in them.

I tried to find out if you can find the folders through AQL: answer: :no:
Suggested approach by Jfrog: User Plugin: https://jfrog.com/knowledge-base/empty-folder-clean-up/
JFrog


Newline is not possible on the Windows environment

What happened:
I am trying to use templates on windows. But, It seems that the new line keyword is not working.

What you expected to happen:
It should give a line break with the proper command.
How to reproduce it (as minimally and precisely as possible):
Just use the example shown on the Readme.MD
kubectl stern -n company myservice -t --since 10m --context aks-dev-westeurope-cluster --color always --template   '{{ .Message}} {{"\n"}} '
Anything else we need to know?:
No
Environment: Windows 10 64 Bit

stern version (use stern --version): 1.20.1
OS (e.g: cat /etc/os-release):
Install tools (e.g: Homebrew)
Others:

It work on both Linux and macOS. Unfortunately, I do not have a Windows environment, so it is difficult to reproduce the problem.
Linux
$ uname -a
Linux nuc 5.4.0-89-generic #100-Ubuntu SMP Fri Sep 24 14:50:10 UTC 2021 x86_64 GNU/Linux

$ k stern --version
version: 1.20.1
commit: a384d35f36e43953ac3c6af5a20ffc97cb8205cf
built at: 2021-09-11T12:17:12Z

$ k stern . -t --color always --template '{{ .Message}} {{"\n"}} '
+ nginx-5f55f8cbff-sxpb6 › nginx-unprivileged
2021-12-09T23:20:07.496180431+09:00 /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
 2021-12-09T23:20:07.496204289+09:00 /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
 2021-12-09T23:20:07.496960607+09:00 /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
 2021-12-09T23:20:07.500211866+09:00 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
 2021-12-09T23:20:07.502879999+09:00 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
 2021-12-09T23:20:07.502952149+09:00 /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
 2021-12-09T23:20:07.504651124+09:00 /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
 2021-12-09T23:20:07.505381846+09:00 /docker-entrypoint.sh: Configuration complete; ready for start up
 2021-12-09T23:20:07.508382748+09:00 2021/12/09 14:20:07 [notice] 1#1: using the "epoll" event method
 2021-12-09T23:20:07.508390975+09:00 2021/12/09 14:20:07 [notice] 1#1: nginx/1.21.4
 2021-12-09T23:20:07.508393130+09:00 2021/12/09 14:20:07 [notice] 1#1: built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
 2021-12-09T23:20:07.508394948+09:00 2021/12/09 14:20:07 [notice] 1#1: OS: Linux 5.4.0-89-generic
 2021-12-09T23:20:07.508397332+09:00 2021/12/09 14:20:07 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
 2021-12-09T23:20:07.508404086+09:00 2021/12/09 14:20:07 [notice] 1#1: start worker processes
 2021-12-09T23:20:07.508486579+09:00 2021/12/09 14:20:07 [notice] 1#1: start worker process 30
 2021-12-09T23:20:07.508554776+09:00 2021/12/09 14:20:07 [notice] 1#1: start worker process 31
 2021-12-09T23:20:07.508633045+09:00 2021/12/09 14:20:07 [notice] 1#1: start worker process 32
 2021-12-09T23:20:07.508731113+09:00 2021/12/09 14:20:07 [notice] 1#1: start worker process 33
 2021-12-09T23:20:07.508835098+09:00 2021/12/09 14:20:07 [notice] 1#1: start worker process 34
 2021-12-09T23:20:07.508938960+09:00 2021/12/09 14:20:07 [notice] 1#1: start worker process 35
 2021-12-09T23:20:07.509020181+09:00 2021/12/09 14:20:07 [notice] 1#1: start worker process 36
 2021-12-09T23:20:07.509121270+09:00 2021/12/09 14:20:07 [notice] 1#1: start worker process 37
 2021-12-09T23:20:07.509243882+09:00 2021/12/09 14:20:07 [notice] 1#1: start worker process 38
 2021-12-09T23:20:07.509392089+09:00 2021/12/09 14:20:07 [notice] 1#1: start worker process 39
 2021-12-09T23:20:07.509495660+09:00 2021/12/09 14:20:07 [notice] 1#1: start worker process 40
 2021-12-09T23:20:07.509602060+09:00 2021/12/09 14:20:07 [notice] 1#1: start worker process 41
 ^C

macOS
$ uname -a
Darwin MacBook-Pro.local 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64 i386 MacBookPro16,1 Darwin

$ k stern --version
version: 1.20.1
commit: a384d35f36e43953ac3c6af5a20ffc97cb8205cf
built at: 2021-09-11T12:17:12Z

$ k stern . -t --color always --template '{{ .Message}} {{"\n"}} '
+ nginx-66f6ffdddf-pg945 › nginx-unprivileged
2021-12-09T23:24:27.217469438+09:00 /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
 2021-12-09T23:24:27.217494535+09:00 /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
 2021-12-09T23:24:27.218641840+09:00 /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
 2021-12-09T23:24:27.223466257+09:00 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
 2021-12-09T23:24:27.227907894+09:00 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
 2021-12-09T23:24:27.228056703+09:00 /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
 2021-12-09T23:24:27.231067231+09:00 /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
 2021-12-09T23:24:27.232545655+09:00 /docker-entrypoint.sh: Configuration complete; ready for start up
 2021-12-09T23:24:27.236837890+09:00 2021/12/09 14:24:27 [notice] 1#1: using the "epoll" event method
 2021-12-09T23:24:27.236853387+09:00 2021/12/09 14:24:27 [notice] 1#1: nginx/1.21.4
 2021-12-09T23:24:27.236856728+09:00 2021/12/09 14:24:27 [notice] 1#1: built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
 2021-12-09T23:24:27.236858777+09:00 2021/12/09 14:24:27 [notice] 1#1: OS: Linux 5.10.47-linuxkit
 2021-12-09T23:24:27.236861249+09:00 2021/12/09 14:24:27 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
 2021-12-09T23:24:27.236962866+09:00 2021/12/09 14:24:27 [notice] 1#1: start worker processes
 2021-12-09T23:24:27.236969015+09:00 2021/12/09 14:24:27 [notice] 1#1: start worker process 30
 2021-12-09T23:24:27.237207139+09:00 2021/12/09 14:24:27 [notice] 1#1: start worker process 31
 2021-12-09T23:24:27.237368517+09:00 2021/12/09 14:24:27 [notice] 1#1: start worker process 32
 2021-12-09T23:24:27.237496222+09:00 2021/12/09 14:24:27 [notice] 1#1: start worker process 33
 2021-12-09T23:24:27.237705586+09:00 2021/12/09 14:24:27 [notice] 1#1: start worker process 34
 2021-12-09T23:24:27.237882313+09:00 2021/12/09 14:24:27 [notice] 1#1: start worker process 35
 2021-12-09T23:24:27.238356242+09:00 2021/12/09 14:24:27 [notice] 1#1: start worker process 36
 2021-12-09T23:24:27.238603901+09:00 2021/12/09 14:24:27 [notice] 1#1: start worker process 37


Bots not showing up on panel

Hey there!
Nice work. love your miner and the panel looks nice as well however I got an issue with it. Bots dont show up on it.
Checking the endpoint manually in browser does indeed return "Error: Invalid data" as you asked in another issue. I used http bc I dont have a cert, it doesnt have a typo in it and I honestly dont know what I should check now. been waiting for quite a while and the bot (which runs on my system for testing) just doesnt show up

Im a dummy. sorry for wasting your time.
it was a permission issue. sudo chmod -R 777 /webroot-folder solved it. Maybe add that as a little note to the readme or wiki whenever you make one.


Fix basic unit test

Purpose
Unit test test/basic.js was broken because process.env.LANGUAGE was not set.
Approach
Fallback to default language if process.env.LANGUAGE is not specified.
Open Questions and Pre-Merge TODOs

[ ] Use github checklists. When solved, check the box and explain the answer.

Learning
Also changed the gulp watch task to re-run all unit tests if any of the *.js source files change, not just the the js files of the tests.

Looks good to me


format/style mobile trading form

https://app.clubhouse.io/augur/story/12951/update-trading-form-styles-to-use-buy-sell-colors
mobile trading form style

Any suggestions on the mobile confirm trading form, the arrow is a bit bigger then on mocks.

Coverage remained the same at 66.592% when pulling e66e59111343f5ea0fc32aaecc90333d69ff753c on tomhaile/ch12951/update-trading-form-styles-to-use-buy-sell into faeca0d03f3801873c6623c7f4f09c5a60479d13 on master.

Having issues with 2. the review button footer and tooltip should be aligned to the bottom


Building multipolygons with open rings

Multipolygons with open rings, ie ways that are not connected to a closed loop, can not be assembled with the current code. For examples see the test cases 714 and 715.
Often there are only tiny gaps in those polygons. An optional feature in the Osmium area assembler code to close those gaps would allow us build more polygons. We have to make sure to only fix "obvious" cases, gaps that are too large should probably not be closed. We also have to think about the case where there are multiple gaps. Closing the gaps could also introduce new problems, such as intersections.
(Note that we still have to report those errors and we do, so that mappers can manually fix those problems.)

Two years later and nobody has expressed an interest in this feature. Closing.


Add ergonomic action API

This patch introduces Pythonic alternatives to both ActionClientWrapper and ActionHandle abstractions. Instead of clients and callbacks, we can instantiate an actionable. Actionables resemble remote procedure calls, and can be invoked both synchronously and asynchronously. When used asynchronously, action futures replace regular futures for full access to the action lifecycle (feedback, cancellation).
A wiki page with documentation and some examples is in order, but first I want to make sure we are aligned on the API.

Now I have enough tests to be comfortable merging this. @amessing-bdai PTAL when you have some time. I'll go update the wiki.

@amessing-bdai a wiki page for this is up. PTAL.


ignoring custom typescript dts type definition files for javascript modules

TS Template added by @mjbvz
TypeScript Version: 3.9.7
Search Terms

javascript, js
d.ts

Issue Type: Bug

Clone my example repository.
Add the repository folder to a VS Code workspace.
In a terminal, go to the repository folder and run

npm install
npm run test_with_types

The project should build and run some Mocha tests successfully.
In VS Code, open the test/legacy.test.ts file.

Expected result
VS Code should not report any errors in test/legacy.test.ts.
Actual result
VS Code applies an error annotation where the file references the legacy.FooOptions type: Namespace '"/<path_omitted>/typescript_custom_dts_issue/src/legacy"' has no exported member 'FooOptions'.ts(2694).
The FooOptions type is declared in the src/legacy.d.ts custom type definition file.  The NPM script build:copy_types copies that custom type declaration file to the lib directory, which is the outDir configured in src/tsconfig.json.  VS Code appears to ignore that type definition file.  Note that importing the legacy module in the test file using ../src/legacy removes the error annotation, but the test generates a runtime error that the module ../src/legacy cannot be found because of course Node cannot load a .ts TypeScript module.
I thought perhaps source maps might be causing VS Code to ignore the definition file in the lib directory, but deleting the source maps and reloading the project did not resolve the issue.  Could this have something to do with VS Code attempting to account for the project reference from test/tsconfig.json to src/tsconfig.json?
I have also used the Insider version of VS Code to test and reproduce this issue.
 We can investigate if this is reduced to just a set of files that clearly demonstrates a defect

Please see the example repository I linked in the first reproduction step.  That is a pretty minimal project that demonstrates the issue.  That also happens to demonstrate this issue: https://github.com/microsoft/TypeScript/issues/35296.

@RyanCavanaugh what more information do you need for this issue?

@RyanCavanaugh I don't think it is a configuration error, but I don't know the degree to which it's in scope.
The basic scenario is a codebase with project references, where one project dependency has allowJs on, but is internally using a .d.ts to be well-typed. When we go to create a .d.ts file for the dependency project, we'll base it off of the .js file since that's an actual source file.
That means that the depending project sees the TypeScript-generated .d.ts though, which doesn't carry the "intended" type information.
@restjohn, can you confirm that that's what you're seeing?
I guess one workaround is to have your build scripts re-inject the .d.ts file and overwrite things at build time. That means your editing scenario relies on a build step, but it's not the worst, especially for transitionary code.
One thing we could potentially do is copy corresponding .d.ts files if we find them, but the question is sort of "when"? And is it even in the scope of project references?

Your description of the symptoms seems correct on the surface, though I reiterate that the project builds from the command line with tsc, while VS Code reports errors in the test files that import src modules with corresponding .d.ts files.  VS Code does not see the "intended" types, so marks the code with errors, and intellisense does not work.
If you examine the project in the linked repository, you'll see that the build script does what you say and injects the .d.ts files that type the JavaScript modules from the src directory into the lib directory.  The problem is VS Code does not see the lib .d.ts files that the test files import.  When I ctrl-click on one of those imported modules from a test file, VS Code jumps to the JavaScript file in the src directory, which might provide some clue as to the cause.
Additionally, you'll see from my comments in the linked related issue that the workaround of copying .d.ts files from src to lib necessitates explicitly compiling src, then copying the .d.ts files to lib, then compiling test, which completely defeats the purpose of using the project reference from test to src.  Therefore, I believe part of the solution involves the TypeScript compiler emitting custom DTS files by default rather than generating its own.

Is there any progress on this. I have two files:

file.d.ts
file.js

tsc ignores the source file file.d.ts, and creates a new file.d.ts with the contents "export {};"
Subsequently, when ng build runs, it claims that "import * as X from 'file'" doesn't export anything because (I assume) the tsc generated file.d.ts is always empty with "export {};".

The common thread here is that include won't pick up two files with the same extension (.d.ts, .js). You'll need to use files in that case, though I would recommend just not using this kind of setup as it's prone to encountering other issues


format based on eslint file

It would be amazing if the esformatter could read your eslint preferences and format based on those. Is that out of scope for this project?

It would indeed, but that's out of scope of this project. Note that ESLint has ability to fix some of its rules automagically, so you could do some of the esformatter beautifying with it.

Thanks for the quick response! Would this behavior be appropriate for an esformatter plugin?

@sindresorhus I don't clearly understand why using the default eslint file descriptor (.eslintrc.json) as a base for formatting could not be in this project scope. As @cvburgess said, it would be great — but indeed, it was the first thing I was looking for when I come here.
Have you change your mind and that since last December ;-)?

@yamsellem It's not really up to me. Ask for it on https://github.com/millermedeiros/esformatter


The empty struct tests are failing the Matlab portion of the test.

The empty struct tests that use test/matlab/test_write_cell_empty_struct.m (2753, 2827, 2903, and 2979) fail due to a typo in the equality check.  The 'expdata1' on line 5 should be 'expdata'.
The other empty struct test that uses test/matlab/test_write_empty_struct.m (2708) is also failing, but for different reason.  The file fails to load.  Matlab responds with the error:
'Unable to read MAT-file /ldisk/matio/matio.git/test/testsuite.dir/2708/test_write_empty_struct.mat. File might be corrupt.'
Note that all 5 of these tests are passing the matio portion of the test.

Thanks for reporting the typo. I appreciate it.


Migrate notebooks to Qiskit/textbook

Delete notebooks from this repo and include Qiskit/textbook:stable/v2 as a submodule.
This is in anticipation of moving to versioned releases; we need a single repo for the textbook content that is the source of truth for both the notebook content, and their metadata (e.g. urls, images, course descriptions).

Note: I've left the summer school notebooks in Platypus (and not in Qiskit/textbook).
Although these are rendered by the "textbook platform", I don't think users would consider these pages as part of the textbook, especially as they appear below the tutorials in https://qiskit.org/learn/. I'm not tied to this and am open to other suggestions. I've left the problem sets notebooks out for these reasons too, but the logic is weaker for those.

Closing in favour of a versioning solution


iron out how to represent path dependencies in the universal lock file

We want to support path dependencies in our lock file. But the data model for path dependencies in our lock file is, at the time of writing, not quite right. I believe what we ought to have for a path dependency is a single file URL to a directory, source distribution or wheel. But the data model currently allows for a source distribution and zero or more wheels, but specifically does not allow for a directory.
I think the current data model is mostly just a reaction to the types that we have after resolution. Namely, I think we have two related types. The first is for wheel path dependencies:
https://github.com/astral-sh/uv/blob/616ed530430f08577af5ae549c3d2b525e7e34ce/crates/distribution-types/src/lib.rs#L174-L180
And the second is for source distribution path dependencies:
https://github.com/astral-sh/uv/blob/616ed530430f08577af5ae549c3d2b525e7e34ce/crates/distribution-types/src/lib.rs#L206-L213
My understanding is that the second is also used when we have a path dependency to a directory.
This all matters for the lock file because if a path dependency points to a wheel or a source dist, then we want to record a hash for it. But if it comes from a directory, then we very specifically do not want to record a hash.
So to fix this issue, I think we need to:

[x] Adjust the PathSourceDist type so that it indicates whether it came from a real source distribution or a directory. Possibly one way to do this is to split the type in two, with one type representing source distributions and the other representing a directory.
[ ] Adjust the Lock data model so that distributions with a path source kind are more limited than what they are today. I think we actually do not want to encode the file path itself, and instead derive that from the pyproject.toml. (This would match what Cargo does.)

I can look at the first bullet there, splitting PathSourceDist.

What does the second bullet mean exactly? Can you flesh it out a bit more? Perhaps I can help with it.

Is it that the path gets omitted entirely when it's part of the workspace?

Is it that the path gets omitted entirely when it's part of the workspace?

Yeah exactly. Cargo rebuilds the path from the Cargo.toml instead, as I understand it. So in order to get the path of a path dependency in a lock file, I think there is some interaction point between what's in pyproject.toml and what's in the lock file.
(There is at least one other interaction point as well: finding the relevant root package in the lock file at which to start a graph traversal.)


Tern works incorrectly with Tramp

Tern workls incorrectly with Tramp and SSH in some cases:
When for example I'm trying to get information about function signature I got
error: ssh: Could not resolve hostname ssh: nodename nor servname provided, or not known
Debug info:
11:32:56.453642 tramp-process-actions (6) #
ssh: Could not resolve hostname ssh: nodename nor servname provided, or not known
11:32:56.453769 tramp-process-actions (1) # File error: Process died
11:32:56.483407 tramp-process-actions (3) # Opening connection for ssh using ssh...done
11:32:56.483589 tramp-file-name-handler (1) # Suppress received in operation (file-exists-p /ssh:ssh:/.tern-project)

M-x tern-use-server solution in the comment works for me if there is .tern-project file in the remote project root.
I can use tern functions with Tramp. Very nice, thanks!


Modified dialog.sh

This will only work with the separate commit #1410 for functions.sh that parses Git versions containing "-"

I have not looked much into this, but ou suggest to include "-" in the version number from GitHub, but at least for this label, we need it removed again, as it will not mach?
The #1410 could destroy several other labels like that, so what software have you met that actually requires #1410 to be implemented? Which labels today are failing without this, which kind of GitHub software are we missing because of this?
I'm much more likely to think, that for GitHub software that needs the "-", it would have to be reflected in the label itself, or a different versionFromGitDash-function should be implemented to handle this instead.

I created the PR because we had a problem with swiftdialog being redownloaded over and over again.
It seems like this has been "fixed" in the later releases of Swift Dialog.
Pre 2.4, they had the build number in the tag. i.e.:
https://github.com/swiftDialog/swiftDialog/releases/tag/v2.3.3-4734
Since this was the only label we use that had this kind of problem, and it seems to be fixed externally, I can't really argument for this to be merged.

Super! (Yes, at some time there was an error in the release of SwiftDialog).


Bump tf to version 1.0

Updates tests to use Terraform 1.0.

this will break variables in at least here https://github.com/hashicorp/terraform-aws-vault/tree/master/modules/vault-cluster
╷
│ Error: Invalid quoted type constraints
│
│   on .terraform/modules/vault_cluster/modules/vault-cluster/variables.tf line 24, in variable "allowed_inbound_cidr_blocks":
│   24:   type        = "list"
│
│ Terraform 0.11 and earlier required type constraints to be given in quotes, but that form is now deprecated and will be removed in a future version of
│ Terraform. Remove the quotes around "list" and write list(string) instead to explicitly indicate that the list elements are strings.

opening a pull for that now

scratch that... im working off old code. everything i use is working with tf 1!

@bwhaley Looks like there were some test failures

Mind kicking off the tests again?

Tests are running again!

Tests appear to be passing.

Indeed they are! Merging now.

https://github.com/hashicorp/terraform-aws-vault/releases/tag/v0.17.0


Internal Server error, no logs

Hi,
I am using https://github.com/tsuru/tsuru-bootstrap.git  and decided to try redisapi as well. For that, I installed Redis on the tsuru-bootstrap VM itself:
ssh -l vagrant <IP_ADDRESS>
sudo apt-get install redis-server
ifconfig | grep docker , get IP of this ifc , got <IP_ADDRESS>
sudo cp /etc/redis/redis.conf /etc/redis/redis.conf.original
sudo vi /etc/redis/redis.conf , change bind: <IP_ADDRESS> <IP_ADDRESS>
tsuru env-set -a redisapi REDIS_SERVER_HOST=<IP_ADDRESS>
cp service.yaml service.namoroon.yaml
adjust url: redisapi.<IP_ADDRESS>.nip.io , also add password line
crane create service.namoroon.yaml
tsuru service-add redisapi namoroonredis small -t namoroon
At this point I get this:
Error: Failed to create the instance namoroonredis:
500 Internal Server Error
Internal Server Error
The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.
I tried this to no avail: tsuru env-set -a redisapi LOGLEVEL=DEBUG
So, the obvious questions are:

how can I enable more logging so I can troubleshoot?

Any idea why I can't create the service instance?
If I can suggest something, I'd say the documentation could be improved . It is not clear to the reader if the Redis instances are managed by redisapi itself, via docker instances, or if I really need to pre-install a shared Redis server like I am doing. The explanation of REDIS_SERVER_HOST led me to believe that I do need to pre-install one (which in itself raised confusion in my head: how can I have N redis instances like this then???).

Thanks!

The README is really outdated, this API does support creating new instances of Redis on demmand, but it requires at least one Docker node, and some sentinel hosts (you need at least 3), because it creates containers for running Redis and manage multi-master environments with sentinel. So, you need:
% tsuru env-set -a redisapi SENTINEL_HOSTS='["<IP_ADDRESS>:26379", "<IP_ADDRESS>:26379", "<IP_ADDRESS>:26379", "<IP_ADDRESS>:26379", "<IP_ADDRESS>:26379"]'
% tsuru env-set -a redisapi DOCKER_HOSTS='["http://<IP_ADDRESS>:2375", "https://<IP_ADDRESS>:2376"]' REDIS_IMAGE=tsuru/redis

REDIS_IMAGE is the Docker image that will be used. We provide a public image in the Docker Hub.
redisapi also uses MongoDB for storing metadata information about the instances it creates, so you need to export some environment variables related to MongoDB:
% tsuru env-set -a redisapi MONGODB_URI="mongodb://user:password@mongodb:27017/redisapi DATABASE_NAME=redisapi"

Last, but not least, you need to specify which plans are going to be available for users of the API. There are two options: basic and plus. The basic plan doesn't offer high availability and creates only one container for the instance, and the plus offers high availability with multiple containers and sentinel:
% tsuru env-set -a redisapi REDIS_API_PLANS='["basic",  "plus"]'

Please let me know if this works for you!

Do I really need the docker node and sentinels for the basic plan? Remember, row now I want to test tsuru for DEV deploys on my own laptop. Same for the mongo stuff? Otherwise I might just manually create 2 docker instances that I need for the 2 redis servers that I need for the 2 apps I want to test locally.
BTW, how can I simply create a docker image inside tsuru? If I wanted to add 2 docker instances, is that possible? Thanks!

@sglebs unfortunately yes :-( even for the basic plan you need the full "stack".
Regarding the docker image question, I didn't quite understand it. Do you mean an arbitrary Docker image?

Yes, I just want to manually add 2 redis instances as docker images. This redisapi plugin is too much rocket science (and overkill) for what I need (DEV setup to locally deploy and test). I guess I can do that to the enclosing vagrant vm of tsuru-bootstrap but I was wondering if tsuru supports adding/removing plain docker instances too. I seem to have seen it somewhere in the docs :-)

You can run the containers yourself, but tsuru won't see the containers as members of any app. Currently, tsuru doesn't support running Docker images directly, but it's a common feature request, and we're probably going to implement that in the future.


summary v2 create_file_writer() bug "SummaryWriterInterface does not exist"

Keeping the description brief as already discussed with @nfelt
I am getting these errors when logging to tensorboard:
NotFoundError: Resource [....] N10tensorflow22SummaryWriterInterfaceE does not exist. [Op:WriteScalarSummary] name: loss/

This is a similar outcome to #25707, but it has a completely different cause (see below).
When using this "set_as_default" style:
# ... setup code
tf.contrib.summary.create_file_writer("/logdir/path/", flush_millis=2500).set_as_default()
# ... more setup code
for ibatch in range(iterations):
   # ... training code
   with tf.contrib.summary.record_summaries_every_n_global_steps(FLAGS.tb_every):
      tf.contrib.summary.scalar('loss', loss)

The problem does not take place when using this style:
# ... setup code
writer = tf.contrib.summary.create_file_writer("/logdir/path/", flush_millis=2500)
writer.set_as_default()
# ... more setup code
for ibatch in range(iterations):
   # ... training code
   with tf.contrib.summary.record_summaries_every_n_global_steps(FLAGS.tb_every):
      tf.contrib.summary.scalar('loss', loss)

This is very counter-intuitive as the writer was never used after, and therefore collapsing the two lines as I did should have not caused any problem!

Just for context, this happens because the underlying resource is deleted when the SummaryWriter python object (returned by create_file_writer()) is no longer referenced.  Chaining the .set_as_default() method directly means there is no local variable reference to the writer.
I think the bug here is arguably that .set_as_default() only holds onto the underlying resource handle, not the SummaryWriter object itself, which breaks the abstraction that SummaryWriter should map 1:1 to the resource (which is also what #25707 is fixing, though a separate aspect of it).


Authentication fails with arbiter in cluster

Hello!
Recently I've seen that you updated the driver up to 0.4.0.  So I decided to update my code.
And at the moment my code can't get the mongo authentication.  I doubt that I do everything correctly, though.
When I downgrade mongodb to v0.2.1 to this commit 4c174516599388bc6ab61bd6ea88dbcef4e14520, everything becomes fine.
I wonder what could be the cause of the problem.
Here are my credentials, that don't work anymore:
worker(Mongo, [[name: :mongo,
hostname: Application.get_env(:my_app, :mongo)[:hostname],
port: Application.get_env(:my_app, :mongo)[:port],
username: Application.get_env(:my_app, :mongo)[:username],
 password: Application.get_env(:my_app, :mongo)[:password],
database: Application.get_env(:my_app, :mongo)[:database],
auth_source: Application.get_env(:my_app, :mongo)[:auth_source],
 pool: DBConnection.Poolboy]])

Actually, I know that my dbs are arranged into replica set. So I decided to try new feature with seeds.
worker(Mongo, [[name: :mongo,
seeds: ["my_mongo_01:27017", "my_mongo_02:27017"]
username: Application.get_env(:my_app, :mongo)[:username],
 password: Application.get_env(:my_app, :mongo)[:password],
database: Application.get_env(:my_app, :mongo)[:database],
auth_source: Application.get_env(:my_app, :mongo)[:auth_source],
 pool: DBConnection.Poolboy]])

It didn't succeed either. This is what I got in both cases after upgrade:

15:35:15.348 [error] Mongo.Protocol (#PID<0.1487.0>) failed to connect: ** (Mongo.Error) auth failed for user myUser: Authentication failed. 18
15:35:15.411 [error] Mongo.Protocol (#PID<0.1484.0>) failed to connect: ** (Mongo.Error) auth failed for user myUser: Authentication failed. 18
15:35:15.697 [error] Mongo.Protocol (#PID<0.1489.0>) failed to connect: ** (Mongo.Error) auth failed for user myUser: Authentication failed. 18
15:35:15.754 [error] Mongo.Protocol (#PID<0.1490.0>) failed to connect: ** (Mongo.Error) auth failed for user myUser: Authentication failed. 18
15:35:15.845 [error] Mongo.Protocol (#PID<0.1493.0>) failed to connect: ** (Mongo.Error) auth failed for user myUser: Authentication failed. 18
15:35:15.867 [error] Mongo.Protocol (#PID<0.1491.0>) failed to connect: ** (Mongo.Error) auth failed for user myUser: Authentication failed. 18

Can you give some more information about how this Mongo cluster is setup?

This is a simple replica set, which consists of two replicas and arbiter. Replicas receive requests on 27017 port, and arbiter receives'em on 27018.
When I connect to mongo via 0.4.0 driver I specify replicas addresses(arbiter is not specified).
I also tried to connect to just one replica, using 'host' parameter. It was okay on 0.3.0, but doesn't work anymore.

The issue doesn't depend on fact whether I specified arbiter's address or not.

So after a little research I found out, that driver tries to authenticate against arbiter node.
From my arbiter's log
2017-06-26T15:46:16.518+0300 I NETWORK  [initandlisten] connection accepted from <IP_ADDRESS>:40928 #4052 (335 connections now open)
2017-06-26T15:46:16.519+0300 I ACCESS   [conn4052] SCRAM-SHA-1 authentication failed for MyUser on admin from client <IP_ADDRESS> ; UserNotFound: Could not find user MyUser@admin

I found issue in node's mongo driver which looks exactly same as mine:
https://jira.mongodb.org/browse/NODE-981

Thanks for finding the root of the problem. I will look into getting a fix out.

we are having the same problem. Do you have any new status for this issue?

I can't seem to replicate this. Do either of you have a cluster that I would be able to test on where this happens?

it happens in our company where the cluster is not accessible from the outside. I only get:
[error] Mongo.Protocol (#PID<0.297.0>) failed to connect: ** (Mongo.Error) auth failed for user XXX: Authentication failed. 18
if you have a hint, where this happens, I can try to see, whether I can debug this myself a little bit.

Unfortunately I can only guess at where the issue is coming from. However, I would take a look at Mongo.Monitor.check/1. That is where we are asking what the server_description for a given server looks like.

Have either of you made any headway with this issue?

Hi!
we got some infos that might help you to replicate the problem.
First our setup:
We have
ONE primary (db-dev-706784.company.com:27017)
ONE secondary (db-dev-706783.company.com:27017)
ONE arbiter (db-dev-706875.company.com:27017)
These are the logs we get for the server_description inside the check/1 method:
%{address: "db-dev-706783.company.com:27017",
  arbiters: ["db-dev-706875.company.com:27017"], election_id: nil,
  error: nil,
  hosts: ["db-dev-706783.company.com:27017",
   "db-dev-706784.company.com:27017"], last_update_time: -576460449584,
  last_write_date: #<DateTime(2017-07-25T08:25:42.000Z Etc/UTC)>,
  max_wire_version: 5, me: "db-dev-706783.company.com:27017",
  min_wire_version: 0,
  op_time: %{"t" => -1, "ts" => #BSON.Timestamp<6446621967129772037>},
  passives: [], primary: "db-dev-706784.company.com:27017",
  round_trip_time: 3, set_name: "develop_RS", set_version: 597,
  tag_set: %{"dc" => "KGHAM"}, type: :rs_secondary}
%{address: "db-dev-706784.company.com:27017",
  arbiters: ["db-dev-706875.company.com:27017"],
  election_id: #BSON.ObjectId<5976a54ccfdebd42b8d1cc6c>, error: nil,
  hosts: ["db-dev-706783.company.com:27017",
   "db-dev-706784.company.com:27017"], last_update_time: -576460449584,
  last_write_date: #<DateTime(2017-07-25T08:25:42.000Z Etc/UTC)>,
  max_wire_version: 5, me: "db-dev-706784.company.com:27017",
  min_wire_version: 0,
  op_time: %{"t" => -1, "ts" => #BSON.Timestamp<6446621967129772037>},
  passives: [], primary: "db-dev-706784.company.com:27017",
  round_trip_time: 3, set_name: "develop_RS", set_version: 597,
  tag_set: %{"dc" => "KGHAM"}, type: :rs_primary}
%{address: "db-dev-706875.company.com:27017",
  arbiters: ["db-dev-706875.company.com:27017"], election_id: nil,
  error: nil,
  hosts: ["db-dev-706783.company.com:27017",
   "db-dev-706784.company.com:27017"], last_update_time: -576460449784,
  last_write_date: #<DateTime(2017-07-25T08:25:42.000Z Etc/UTC)>,
  max_wire_version: 5, me: "db-dev-706875.company.com:27017",
  min_wire_version: 0,
  op_time: %{"t" => -1, "ts" => #BSON.Timestamp<6446621967129772037>},
  passives: [], primary: "db-dev-706784.company.com:27017",
  round_trip_time: 3, set_name: "develop_RS", set_version: 597,
  tag_set: %{}, type: :rs_arbiter}

It seems the auth call is made for each of these three servers incl. the arbiter. Which then leads into an error:
{:ok,
 %{"code" => 18, "codeName" => "AuthenticationFailed",
   "errmsg" => "Authentication failed.", "ok" => 0.0}}

The application is able to start and run but we get priodically every few seconds an auth error in the log file.
Even if we dont get the same error code we can reproduce this while connecting to the mongo nodes directly:
~$ mongo -u survey -p xxxx  mongodb://db-dev-706783.company.com/survey
MongoDB shell version v3.4.6
connecting to: mongodb://db-dev-706783.company.com/survey
MongoDB server version: 3.4.4
develop_RS:SECONDARY>
bye

~$ mongo -u survey -p xxxx  mongodb://db-dev-706784.company.com/survey
MongoDB shell version v3.4.6
connecting to: mongodb://db-dev-706784.company.com/survey
MongoDB server version: 3.4.4
develop_RS:PRIMARY>
bye

~$ mongo -u survey -p xxxx  mongodb://db-dev-706875.company.com/survey
MongoDB shell version v3.4.6
connecting to: mongodb://db-dev-706875.company.com/survey
MongoDB server version: 3.4.4
2017-07-25T10:19:27.178+0200 E QUERY    [thread1] Error: Authentication failed. :
DB.prototype._authOrThrow@src/mongo/shell/db.js:1461:20
@(auth):6:1
@(auth):1:2
exception: login failed

As far as we know it is not possible to auth against an arbiter node.
https://docs.mongodb.com/manual/core/replica-set-arbiter/

Because arbiters do not store data, they do not possess the internal table of user and role mappings used for authentication. Thus, the only way to log on to an arbiter with authorization active is to use the localhost exception.

Good news, @evax has given me permission to use their cluster to debug this issue. I will make a note here once I have found and fixed the issue.

Would anyone having this issue please check #150 to see if it fixes your problem?

I just merged #150. Please feel free to reopen this if you are still having issues with master.


Remove external references to uvm.Modify

Cleanup hcsoci package to use new CombineLayers*COW method rather than
call uvm.Modify itself.
Remove unused hcsoci tests.
Simplify hcsoci.MountContainerLayers and UnmountContainerLayers logic.

Signed-off-by: Justin Terry (VM<EMAIL_ADDRESS>

Ok @katiewasnothere, @kevpar - Clean logs for all wcow-process, wcow-hypervisor, lcow

@katiewasnothere - PTAL


Run autorest with 16Gb

Here's a first PR that actually solves running Autorest (version 2) using 16Gb of memory for node.
Tested with node 10.
A follow-up PR will update the client APIs.

/azp run

Please hold off while I figure out how to make this work on Windows. There's no /node_modules/bin path, just /node_modules/.bin.


Safe storage

Improved consistency with Window.localStorage API
Removed seralization/de-serialization of values (this should be the user's responsibility)
Improved type annotations

cc: @kepta

lgtm @ajithranka


Remove clippy::default_trait_access from lint

Which components does the task require to be changed? (think hard pls)
other (describe below)
Description
Remove -A clippy::default_trait_access from the .cargo/config.toml and fix all warnings that occur after this change.
https://github.com/foundry-rs/starknet-foundry/pull/2637#discussion_r1881802587

I'd like to take this issue.

Can I try solving this issue?
My name is Gideon Bature, a Software Engineer having working experience with Rust.
From the description, I will remove -A clippy::default_trait_access from the .cargo/config.toml from the .cargo/config.toml and afterwards test the program to see which errors it's going to throw, from there I will start fixing the errors/warnings it's going to throw until we have a perfectly working program free from the warnings.
If assigned this issue, I will send my first PR within 48 hours. Thank you.

I’d like to help with this.

Can I tackle this one?

Can I take this issue?


Current library to Amperes library?

Even though this has been what we've been using for the past couple years, every time I say current board/library with other members I feel compelled to specify Current means amperes and not time. Current members know current means amps and not time in the context of the BPS but for future members, it may be good to change the library name to prevent any confusion.
Proposal: Change Current library and Current board names to Amperes library and Amperes board

Any thoughts are welcome :)
@ClarkPoon @chaseblock @sugamarora99 @manthanand @alekxoo @AleNeff @etblum12

I think this is a good idea

I'm not too much of a fan of this move, but I understand the difficulty with the current "current" term, and as long as this improves clarity, I don't mind.


Support email newsletter 🙂

Love the website and posts 😀
I’d love to subscribe to them, but only subscribe to things typically through email.
Would love to be able to get emails for new posts 🙂

Likewise

Not planning it for now. I don't have regular posts (not posts at all in the past 2 weeks ~.~), and still got several to-dos on the site. We will see what the future hold :)
You can follow on Twitter and got an RSS feed too!


Use bit flags instead of array for options.

And a couple other small changes.

Looks good, should've done this earlier. Thanks!


gb generate fails

gb generate fails because go generate fails to find *.a files under pkg/ directory.
stringer: checking package: x.go:4:2: could not import xxx
(c *Context) Pkgdir() creates a path separator between GOOS and GOARCH.
Expected result would be an underscore instead of separator, e.g. linux_amd64 and not linux/amd64

Thanks for your report. This might be a bit tricky to fix, it's looking like some go generate plugins are parsing the output (go/loader), not the source. The way I arrange things with the gb generate plugin, it only maintains the illusion of the latter.

In my understanding the only problem is that gb build produces the installed package object in a wrong directory that is the cause of gb generate could not find the object.
the actual output of gb build:
pkg/
  linux/
    amd64/
      foo/
        bar.a

expected output:
pkg/
  linux_amd64/
    foo/
      bar.a

That could be fixed at https://github.com/constabulary/gb/blob/master/context.go#L91
func (c *Context) Pkgdir() string {
        // TODO(dfc) c.Context.{GOOS,GOARCH} may be out of date wrt. tc.{goos,goarch}
-       return filepath.Join(c.Project.Pkgdir(), c.Context.GOOS, c.Context.GOARCH)
+       return filepath.Join(c.Project.Pkgdir(), c.Context.GOOS+"_"+c.Context.GOARCH)
}

Am I getting something wrong?

You're not wrong, but I'm reserving the right to change the package
directory's name and path, I want to put more things in there like tags and
other flags.
On Thu, Jun 11, 2015 at 9:22 PM, Tamas Ecsedi<EMAIL_ADDRESS>wrote:

In my understanding the only problem is that gb build produces the
installed package object in a wrong directory that is the cause of gb
generate could not find the object.
the actual output of gb build:
pkg/
linux/
amd64/
foo/
bar.a
expected output:
pkg/
linux_amd64/
foo/
bar.a
That could be fixed at
https://github.com/constabulary/gb/blob/master/context.go#L91
func (c *Context) Pkgdir() string {
// TODO(dfc) c.Context.{GOOS,GOARCH} may be out of date wrt. tc.{goos,goarch}-       return filepath.Join(c.Project.Pkgdir(), c.Context.GOOS, c.Context.GOARCH)+       return filepath.Join(c.Project.Pkgdir(), c.Context.GOOS+"_"+c.Context.GOARCH)
}
Am I getting something wrong?
—
Reply to this email directly or view it on GitHub
https://github.com/constabulary/gb/issues/202#issuecomment-111089282.

What's the workaround, just GOPATH=$GB_PROJECT_DIR go generate?

The underlying issue is the layout of .a files inside $PROJECT/pkg is not compatible with the golang.org/x/tools/go/loader package.
I don't want to make it compatible because that would make it harder to implement incremental compilation in the face of -tags and other conditional constructs.


Advanced Paste for another format doesn't work properly after pasting as single format

Microsoft PowerToys version
0.81.0
Installation method
PowerToys auto-update
Running as admin
None
Area(s) with issue?
Advanced Paste
Steps to reproduce

Copy few different elements from a web page into clipboard
Use Advanced Paste to paste as plain text
Use Advanced Paste to paste as markdown
Copy same elements into clipboard again as in step 1
Use Advanced Paste to paste as markdown
Use Advanced Paste to paste as plain text
Compare results of previous steps, the results 2-3 and 5-6 differ from each other.
Some other combinations go similarly wrong, e.g. pasting as JSON first and then plain text, the plaintext will become as the JSON version.

✔ Expected Behavior
Repeated paste of same source content in different formats would always match result which I would have gotten if I'd paste the as first target format.
❌ Actual Behavior
See steps to reproduce (steps 2-3 and 5-6 differ from each other, and also see step 8).
Other Software
No response

What you're hitting that we're putting the new formatted output in the clipboard. That's the intended behavior. So when you select another option, your old clipboard is not there anymore. Does this help? /needinfo


Document Google APIs Used

Short description
It would be handy for people trying to purchase web api tokens from Google to know exactly what services this uses based on the supplied options.

We are just using the Geocoder from the standard maps API and the AutocompleteService with the additional places API.
So if you like you could open a PR for this or I will do that later next week.
Anyway, thanks for the question. I also think it's important to know.

@yfr I've issued a PR (#243) based on your above comment. Please let me know if that is accurate.


electron standalone version

Save and open local files.
any plan?

Nice suggestion!
Though I prefer PWA since it's lightweight and saves me the burden of setting another repo.
It is also capable of some basic file system operations - according to one blog of excalidraw .
I will consider this after I finish the Gantt Diagram.

Well, the internet never promised she wouldn't leave from you.🙁

@kaikaiiiiiii What specific features are you expecting ?

Standalone , this is already done as the live-editor is a PWA and can be added as a standlone application
Edit and preview when offline,  same as the above one
Filesystem asccess,  a crude version https://github.com/hikerpig/pintora/pull/29 , you can try this on the Vercel preview
File extension asscioation ? Asscioate .pintora extension with the application?   I'm still trying to work this out with PWA

Anything else in mind?

good enough,
maybe "drop file to window to open" is convenient, but it's not a must.

good enough,
maybe "drop file to window to open" is convenient, but it's not a must.

This could be done in this week. ✌

"drop file to window to open"  has been deployed just now .


Update react-redux to v8

Migration instructions here: https://github.com/reduxjs/react-redux/releases/tag/v8.0.0
Might be as easy as just bumping the version number.
Note that upgrading to v9 would be a breaking change and require quite a bit of work.

Seems it's not just as easy as bumping version number. Some of the errors encountered:
...
packages/code-studio/src/settings/FormattingSectionContent.tsx:658:4 - error TS2345: Argument of type 'typeof FormattingSectionContent' is not assignable to parameter of type 'ComponentType<never>'.
  Type 'typeof FormattingSectionContent' is not assignable to type 'ComponentClass<never, any>'.
    Types of property 'defaultProps' are incompatible.
      Type '{ scrollTo: () => void; }' is not assignable to type 'undefined'.

658 })(FormattingSectionContent);
       ~~~~~~~~~~~~~~~~~~~~~~~~

packages/code-studio/src/settings/SettingsMenu.tsx:252:14 - error TS2322: Type '{}' is not assignable to type 'never'.

252             <FormattingSectionContent />
                 ~~~~~~~~~~~~~~~~~~~~~~~~

packages/code-studio/src/settings/ThemeSectionContent.tsx:28:16 - error TS2345: Argument of type 'ThunkAction<Promise<CustomizableWorkspace>, RootState, never, PayloadAction<unknown>>' is not assignable to parameter of type 'AnyAction'.

28       dispatch(updateSettings({ gridDensity: density }));
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

packages/code-studio/src/styleguide/StyleGuideInit.tsx:55:4 - error TS2345: Argument of type 'typeof StyleGuideInit' is not assignable to parameter of type 'ComponentType<never>'.
  Type 'typeof StyleGuideInit' is not assignable to type 'FunctionComponent<never>'.
    Types of property 'propTypes' are incompatible.
      Type '{ workspace: PropTypes.Requireable<PropTypes.InferProps<{}>>; setWorkspace: PropTypes.Validator<(...args: any[]) => any>; }' is not assignable to type 'undefined'.

55 })(StyleGuideInit);
      ~~~~~~~~~~~~~~
...


Fish timer not showing up and not displaying fishes

After I updated the version into v<IP_ADDRESS>, the toggle for fish timer doesn't work anymore. I tried to put it on and restart the game, the timer is there but it's not working when I'm fishing and it doesn't goes off if i uncheck the fish timer

Yeah, I missed something with the Windowing System Rework. Fixed in the next version, thanks! :)