Adding "other" Emulators.

How can I add in another emulator.  I would like to be able to add in Roms and emulator for Atari 2600.  Is there an "easy" way to do this?  Or do you have to know "coding" / Scripting in order to add another Emulator to the list that is playable?   Atari 2600 uses .bin files which is already added to nesbox (for browsers), So I just need to get the emulator added in for the games to work.
(I tried to see if they would work with "Sega Emulator", but of course, it does not.  lol)
I found an Open source Atari 2600 Emulator, but I don't know how to implement it into the nesbox script.
(It's called z26 -- An Atari 2600 Emulator)  Would anyone know how to do this?

Has anyone figured out yet, how to do this?  If I knew how, I would, but unfortunately I do not.


consider putting the example app within the test/dummy/* app

https://github.com/Gaurav0/ember-cli-jquery-ui
This keeps it self contained, and visiting ember server in the addon will display the demo.
This also becomes a great place to add unit/integration/acceptance tests

@Gaurav0 I don't think he meant for it to be served with heroku. He was talking more about actually adding a dummy application so that when you checkout your project and run ember serve you can see the dummy app working.

There are no points on Ember Observer for having a dummy application.
I really don't want to maintain a dummy app in addition to my separate example application.

Oh, I didn't see you had a example app as well.
Also, my mistake about the emberobserver points.


Adds the ability to override backup_yaml values using a capitalized s…

…nake case format (--set MILVUS_USER=Marco)"
Command to print the current backup config file in yaml format to stdio

@wayblink hi
How to use this ability to override backup_yaml...
i am executing many command ... but these are not working
my command are like this

- /milvus-backup create -n os_face_bank_search_updated --set "BACKUP_ROOT_PATH=data"
- ./milvus-backup create -n os_face_bank_search_updated --set "backup_Root_Path=data"
- ./milvus-backup create -n os_face_bank_search_updated "--set backup_Root_Path=data"
- ./milvus-backup create -n os_face_bank_search_updated --set backup_Root_Path="data5"
- ./milvus-backup create -n os_face_bank_search_updated --set "backup_Root_Path=data5"

none is working fine
so suggest the answer....


Make parameter formatting more generic

@robertcoltheart @tm011064 This extends the array formatter to cover formatting all the parameters at once. This is a breaking change, but I think perhaps this is the easiest/quickest way to close the requirement. I think it's unlikely you'll want to customize just the array formatting if you're going to go down the route of customizing the way query params are generated.
Closes #93

ping @robertcoltheart @tm011064

I didn't update the tests or clean this up, just want to get some feedback on the design before doing so.

So we use Speakeasy literally everywhere and I'm always going to vote for less breaking changes so that the upgrade path is easier. That said, the design looks ok to me.

Either way this is going to be breaking. Is there anything else you want to change while we're at it?

Is there anything else you want to change while we're at it

I'm all good I think.

@jonnii had a quick look, but I don't understand the library well enough. Just to check - one would do this:
var settings = new HttpClientSettings
{
  ParameterFormatter = new MyCustomFormatter()
};

var client = HttpClient.Create("api", settings);

and then the custom formatter would be used without having to add a custom middleware, right?

@tm011064 exactly.

@robertcoltheart done. lmk what you think. there's definitely room for improvement in terms of perf for the query param formatter (e.g. get rid of linq) but I think it's fine for now.

@robertcoltheart @tm011064 I cut v1.2.5-beta0001, can you try it out and make sure it meets your requirements and if so I'll cut a proper release.

@jonnii thanks!

@jonnii did a quick test, works great, thanks

@tm011064 cutting full release now.


swap-course-name-num

What does this PR do? Please provide some context
   - course number and name swapping.

Where should the reviewer start?
  - Title of course about page.

How can this be manually tested? (brief repro steps)
  - lms -- > course about page --> check Title.

What are the relevant TFS items? (list id numbers)
 - 99583

Definition of done:

[ ] Title of the pull request is clear and informative
[ ] Add pull request hyperlink to relevant TFS items
[ ] For large or complex change: schedule an in-person review session
[ ] This change has appropriate test coverage

Reminders BEFORE merging

Get at least two approvals
If you're merging from a feature branch into the development branch then "flatten" or "squash" commits
If merging from the development branch into master (or porting changes from upstream) then use github's UI to get review feedback, but use the git command line interface to complete the actual merge.

Reminders AFTER merging

Delete the remote feature branch
Resolve relevant TFS items
(reverse merge) If you merged from the development branch into master then check to see if there are any changes in master that can be merged down to the development branch (like hotfixes, etc). In this case, use github's UI for feedback and the git command line interface for the actual merge.

@partpa,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Fixed #32285 -- Raised ImproperlyConfigured when AppConfig.label is not a valid Python identifier.

https://code.djangoproject.com/ticket/32285

@felixxm the following test fails
https://github.com/django/django/blob/5fcfe5361e5b8c9738b1ee4c1e9a6f293a7dda40/tests/migrations/test_state.py#L515-L533
Because we set the label here in AppConfigStub class:
https://github.com/django/django/blob/5fcfe5361e5b8c9738b1ee4c1e9a6f293a7dda40/django/db/migrations/state.py#L234
I don't know how to change the test :thinking:

I don't know how to change the test thinking

There is nothing to change in the test, it's a regression test for ticket-23483. Your patch must handle this case.

I don't know how to change the test thinking

There is nothing to change in the test, it's a regression test for ticket-23483. Your patch must handle this case.

Thanks @felixxm for the explanation. I've changed my patch to handle this

@hramezani Thanks :+1: I pushed AppConfigStub cleanup to a separate commit.

Merged in 110001d0bbbabe2a5b57b14a59bd0e4b71bf2712 and 8b2a30f6f16cb1f3538847954030d69da005bc7f.

Thanks @hramezani @felixxm :+1:


Implement Kademlia discovery

Summary of changes
Changes introduced in this pull request:

Implements Kademlia bootstrapping and discovery

May be some tweaks in future to make sure it matches as closely as possible with go impls but there isn't a strict need to

Refactors libp2p crate in various places to allow for cleaner interaction

Updates logging levels to be more readable by default

Reference issue to close (if applicable)

Closes
Other information and links

I don't see where you call get_closest_peers periodically. Isn't that how you discover new peers through kad?

I don't see where you call get_closest_peers periodically. Isn't that how you discover new peers through kad?

Yeah, I mean, the way it is already bootstraps finding new peers (gets up to ~50 in 10 seconds on the testnet, should probably also look into limiting this) but this was what I was alluding to making tweaks to match behaviour. I can be more specific and detail an issue to come back to after this PR comes in, or if you have an idea of how this can be periodically polled cleanly I'm open to hearing it.
The reason I went without the periodic polling of closest peers is because it didn't seem clear that was necessary or even how go impls have it (from what I could see) also because that logic was being refactored I didn't want to cause unnecessary conflicts. Also the other thing was it wasn't clear in that periodic poll what peer id would be provided to get closest peers to, so didn't want to introduce technical debt by guessing.


fix: Liveness probe must not start rbac-manager

This update fix the memory leak issue rised in #58
The issue #58 will be updated with comments.

Good catch!
I don't think CircleCI is set up to run on external PRs, so I'm going to merge this in.

Thanks @bobby-brennan !
I made some comments on this subject in the #58 issue.
Do we close the issue or not ?


Instrument code to handle signals that prevent creation of .gcda files for coverage

If the code doesn't exit normally, .gcda files won't be created. We need to instrument code to handle signals and force it to call exit():
// SHURIKEN :: INSTRUMENTATION :: START
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>
void shuriken_sighandler(int sig)
{
  printf("received signal\n");
  exit(1);
}
void shuriken_ctor (void) __attribute__ ((constructor));
void shuriken_ctor (void)
{
  struct sigaction new_action;
  new_action.sa_handler = shuriken_sighandler;
  sigemptyset(&new_action.sa_mask);
  new_action.sa_flags = 0;
  sigaction(SIGTERM, &new_action, NULL);
  sigaction(SIGINT, &new_action, NULL);
  sigaction(SIGKILL, &new_action, NULL);
}
// SHURIKEN :: INSTRUMENTATION :: END

Unfortunately we need to inject this instrumentation into a single source file that is used to build the binary. Trying to inject it into multiple files will throw linker errors due to multiple definitions of shuriken_ctor. We either need to find those source files automatically, or else we may need the user to provide a list of source code files that should be instrumented.

I think we should go with user provided list for now, and find an automatic way to do it later.

Or can we create unique method names instead of shuriken_ctor?


Unable to use GPU

torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: ''If you don't plan on using image functionality from torchvision.io, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg or libpng installed before building torchvision from source?
torch_jit_internal.py:857: UserWarning: Unable to retrieve source for @torch.jit._overload function: <function _DenseLayer.forward at 0x000001D0F4762E80>.
warnings.warn(
torch_jit_internal.py:857: UserWarning: Unable to retrieve source for @torch.jit._overload function: <function _DenseLayer.forward at 0x000001D0F4763EC0>.
warnings.warn(
Neither CUDA nor MPS are available - defaulting to CPU. Note: This module is much faster with a GPU.
Downloading recognition model, please wait. This may take several minutes depending upon your network connection.
Progress: |██████████████████████████████████████████████████| 100.1% CompleteNeither CUDA nor MPS are available - defaulting to CPU. Note: This module is much faster with a GPU.

Okay, if I use it directly, it still gives an error and I have to install it by myself."

The packaged exe seems unable to use the environment, but CUDA can be used manually when running.


Global flag performance_insights needs to be especify in all instances to take effect

Description
Can't use the global flag to enable the performance insights

[x] ✋ I have searched the open/closed issues and my issue is not listed.

Versions

Module version [Required]: 9.3.1

Terraform version: 1.5.6

Provider version(s): 5.42.0

Reproduction Code [Required]
From the examples... initial state
module "aurora" {
  source = "../../"

  name            = local.name
  engine          = "aurora-postgresql"
  engine_version  = "14.7"
  master_username = "root"
  storage_type    = "aurora-iopt1"
  instances = {
    1 = {
      instance_class          = "db.r5.2xlarge"
      publicly_accessible     = true
      db_parameter_group_name = "default.aurora-postgresql14"
    }
    2 = {
      identifier     = "static-member-1"
      instance_class = "db.r5.2xlarge"
    }
    3 = {
      identifier     = "excluded-member-1"
      instance_class = "db.r5.large"
      promotion_tier = 15
    }
  }

  endpoints = {
    static = {
      identifier     = "static-custom-endpt"
      type           = "ANY"
      static_members = ["static-member-1"]
      tags           = { Endpoint = "static-members" }
    }
    excluded = {
      identifier       = "excluded-custom-endpt"
      type             = "READER"
      excluded_members = ["excluded-member-1"]
      tags             = { Endpoint = "excluded-members" }
    }
  }

  vpc_id               = module.vpc.vpc_id
  db_subnet_group_name = module.vpc.database_subnet_group_name
  security_group_rules = {
    vpc_ingress = {
      cidr_blocks = module.vpc.private_subnets_cidr_blocks
    }
    egress_example = {
      cidr_blocks = ["<IP_ADDRESS>/28"]
      description = "Egress to corporate printer closet"
    }
  }

  apply_immediately   = true
  skip_final_snapshot = true

  create_db_cluster_parameter_group      = true
  db_cluster_parameter_group_name        = local.name
  db_cluster_parameter_group_family      = "aurora-postgresql14"
  db_cluster_parameter_group_description = "${local.name} example cluster parameter group"
  db_cluster_parameter_group_parameters = [
    {
      name         = "log_min_duration_statement"
      value        = 4000
      apply_method = "immediate"
      }, {
      name         = "rds.force_ssl"
      value        = 1
      apply_method = "immediate"
    }
  ]

  create_db_parameter_group      = true
  db_parameter_group_name        = local.name
  db_parameter_group_family      = "aurora-postgresql14"
  db_parameter_group_description = "${local.name} example DB parameter group"
  db_parameter_group_parameters = [
    {
      name         = "log_min_duration_statement"
      value        = 4000
      apply_method = "immediate"
    }
  ]

  enabled_cloudwatch_logs_exports = ["postgresql"]
  create_cloudwatch_log_group     = true

  create_db_cluster_activity_stream     = true
  db_cluster_activity_stream_kms_key_id = module.kms.key_id
  db_cluster_activity_stream_mode       = "async"

  tags = local.tags
}

Add performance insights
# Monitoring. Cloudwatch and Performance Insights
create_monitoring_role                = true
iam_role_name                         = "rds-monitoring"
iam_role_use_name_prefix              = true
iam_role_description                  = "IAM role created by terraform-aws-rds-aurora terraform module"
monitoring_interval                   = 10
performance_insights                  = true
performance_insights_retention_period = 93 # days. 3 Months for production environments

# Apply changes immediately instead of waiting for the next maintenance window
# we want to be in control of when these happen
apply_immediately = true

Apply... See Actual behavior section
if on top of that, I add
instances = {
  1 = {
    instance_class          = "db.r5.2xlarge"
    publicly_accessible     = true
    db_parameter_group_name = "default.aurora-postgresql14"
    performance_insights    = true
  }
  2 = {
    identifier           = "static-member-1"
    instance_class       = "db.r5.2xlarge"
    performance_insights = true
  }
  3 = {
    identifier           = "excluded-member-1"
    instance_class       = "db.r5.large"
    promotion_tier       = 15
    performance_insights = true
  }
}

then it applies correctly. See Expected behavior
Expected behavior
Terraform will perform the following actions:

  # aws_iam_role.rds_enhanced_monitoring[0] will be updated in-place
  ~ resource "aws_iam_role" "rds_enhanced_monitoring" {
      + description           = "IAM role created by terraform-aws-rds-aurora terraform module"
        id                    = "rds-monitoring-sbx2"
        name                  = "rds-monitoring-sbx2"
        tags                  = {
            "managed_by" = "terraform"
            "project"    = "linq-tactical-infra"
        }
        # (9 unchanged attributes hidden)
    }

  # aws_rds_cluster.this[0] will be updated in-place
  ~ resource "aws_rds_cluster" "this" {
      + enable_local_write_forwarding       = false
      ~ final_snapshot_identifier           = "aurora-postgres-sbx2-final-snapshot-9892532303865fed5397ae3c43eeefa7" -> "aurora-postgres-sbx2-final-snapshot-68e520c70db2863d65b082b42e2438a1"
        id                                  = "aurora-postgres-sbx2"
        tags                                = {
            "managed_by" = "terraform"
            "project"    = "linq-tactical-infra"
        }
        # (40 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # aws_rds_cluster_instance.this["one"] will be updated in-place
  ~ resource "aws_rds_cluster_instance" "this" {
        id                                    = "aurora-postgres-sbx2-one"
      ~ performance_insights_enabled          = false -> true
      ~ performance_insights_retention_period = 0 -> 7
        tags                                  = {
            "managed_by" = "terraform"
            "project"    = "linq-tactical-infra"
        }
        # (28 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # aws_rds_cluster_instance.this["two"] will be updated in-place
  ~ resource "aws_rds_cluster_instance" "this" {
        id                                    = "aurora-postgres-sbx2-two"
      ~ performance_insights_enabled          = false -> true
      ~ performance_insights_retention_period = 0 -> 7
        tags                                  = {
            "managed_by" = "terraform"
            "project"    = "linq-tactical-infra"
        }
        # (28 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 4 to change, 0 to destroy.

Changes to Outputs:
  ~ cluster_instances                                 = {
      ~ one = {
            id                                    = "aurora-postgres-sbx2-one"
          ~ performance_insights_enabled          = false -> true
          ~ performance_insights_retention_period = 0 -> 7
            tags                                  = {
                managed_by = "terraform"
                project    = "linq-tactical-infra"
            }
            # (32 unchanged attributes hidden)
        }
      ~ two = {
            id                                    = "aurora-postgres-sbx2-two"
          ~ performance_insights_enabled          = false -> true
          ~ performance_insights_retention_period = 0 -> 7
            tags                                  = {
                managed_by = "terraform"
                project    = "linq-tactical-infra"
            }
            # (32 unchanged attributes hidden)
        }
    }
aws_iam_role.rds_enhanced_monitoring[0]: Modifying... [id=rds-monitoring-sbx2]
aws_rds_cluster.this[0]: Modifying... [id=aurora-postgres-sbx2]
aws_rds_cluster.this[0]: Modifications complete after 0s [id=aurora-postgres-sbx2]
aws_iam_role.rds_enhanced_monitoring[0]: Modifications complete after 1s [id=rds-monitoring-sbx2]
aws_rds_cluster_instance.this["two"]: Modifications complete after 1m32s [id=aurora-postgres-sbx2-one, 1m40s elapsed]
aws_rds_cluster_instance.this["one"]: Modifications complete after 1m42s [id=aurora-postgres-sbx2-one]

Apply complete! Resources: 0 added, 4 changed, 0 destroyed.

Actual behavior
Terraform will perform the following actions:

  # aws_rds_cluster.this[0] will be updated in-place
  ~ resource "aws_rds_cluster" "this" {
      ~ final_snapshot_identifier           = "aurora-postgres-sbx2-final-snapshot-6ec1a4fd929a19781f98da1e86214d3f" -> "aurora-postgres-sbx2-final-snapshot-53fead4e630e409e776f4e948f9a22d6"
        id                                  = "aurora-postgres-sbx2"
        tags                                = {
            "managed_by" = "terraform"
            "project"    = "linq-tactical-infra"
        }
        # (41 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # aws_rds_cluster_instance.this["one"] will be updated in-place
  ~ resource "aws_rds_cluster_instance" "this" {
        id                                    = "aurora-postgres-sbx2-one"
      ~ performance_insights_retention_period = 0 -> 7
        tags                                  = {
            "managed_by" = "terraform"
            "project"    = "linq-tactical-infra"
        }
        # (29 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # aws_rds_cluster_instance.this["two"] will be updated in-place
  ~ resource "aws_rds_cluster_instance" "this" {
        id                                    = "aurora-postgres-sbx2-two"
      ~ performance_insights_retention_period = 0 -> 7
        tags                                  = {
            "managed_by" = "terraform"
            "project"    = "linq-tactical-infra"
        }
        # (29 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 3 to change, 0 to destroy.

Changes to Outputs:
  ~ cluster_instances                                 = {
      ~ one = {
            id                                    = "aurora-postgres-sbx2-one"
          ~ performance_insights_retention_period = 0 -> 7
            tags                                  = {
                managed_by = "terraform"
                project    = "linq-tactical-infra"
            }
            # (33 unchanged attributes hidden)
        }
      ~ two = {
            id                                    = "aurora-postgres-sbx2-two"
          ~ performance_insights_retention_period = 0 -> 7
            tags                                  = {
                managed_by = "terraform"
                project    = "linq-tactical-infra"
            }
            # (33 unchanged attributes hidden)
        }
    }
aws_rds_cluster.this[0]: Modifying... [id=aurora-postgres-sbx2]
aws_rds_cluster.this[0]: Modifications complete after 0s [id=aurora-postgres-sbx2]
aws_rds_cluster_instance.this["one"]: Modifying... [id=aurora-postgres-sbx2-one]
aws_rds_cluster_instance.this["two"]: Modifying... [id=aurora-postgres-sbx2-two]
╷
│ Error: updating RDS Cluster Instance (aurora-postgres-sbx2-one): InvalidParameterCombination: Cannot set PerformanceInsightsRetention without EnablePerformanceInsights
│       status code: 400, request id: eb61a564-3ea1-4248-ab12-0873f403d368
│
│   with aws_rds_cluster_instance.this["one"],
│   on main.tf line 160, in resource "aws_rds_cluster_instance" "this":
│  160: resource "aws_rds_cluster_instance" "this" {
│

Additional context
I think that the try statements here to check if the instance configuration overrides the default flag should be coalesce instead...?
https://github.com/terraform-aws-modules/terraform-aws-rds-aurora/blob/39146d54a888dee11dc00706e40f1964236394f0/main.tf#L163-L184

Still relvant


Added android.support.transition as a dependency.

This is mostly a proof of concept, I think it would be a good idea for this Transition library's Transition class to extend android.support.transtion.
This PR does just that.

Made Transition class inherit from android.support.transition.Transition, and updated method signatures in dependent classes.
Upped min android version to 14 for compatibility with android.support.transition.

Thank you!

Thank


add name tags

This implements #430

Well, gonna add that, then! xP

@Half-Shot is this better?
As for config testing, i couldn't see any specific config values being tested anywhere?

@Sorunome I may be getting my bridges confused, looks like we don't have that kind of test here. Ignore me.
Also, this looks fantastic. Thank you!


load to and retrieve resourceTemplates from trellis server

depends on templates already being in server:  LD4P/sinopia_server/issues/38
At first, ok if proof of concept shows that it was retrieved somehow (in console?  as initial template???)

In the editor when you drop a resource template or profile file to be loaded, it will:

parse the file for contained resource templates
check if the rtId already exists
POST the RT data to Trellis
re-display the table of resource templates including the newly loaded resource templates

Fixed by #453

Extracted #459 from this issue.


ProxyServer.close not working, hangs forever in node

Which platform are you running AnyProxy
Mac, node 9.0
The version of the AnyProxy
"anyproxy": "^4.1.0"
const main = async () => {
  const AnyProxy = require('anyproxy')
  const options = {
    port: 8001,
  }

  const server = new AnyProxy.ProxyServer(options)
  await server.start()
  await server.close()
}

main()

This code never closes properly. It hangs forever.

fixed in v4.1.1


Adding comment to click on the graph for navigation

Codecov Report

Merging #2439 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev    #2439   +/-   ##
=======================================
  Coverage   94.06%   94.06%
=======================================
  Files         163      163
  Lines       19347    19347
=======================================
  Hits        18199    18199
  Misses       1148     1148

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 782a7c2...10cf8d7. Read the comment docs.


Try fixing python 3.10 in CI

Codecov Report

Merging #130 (b48058d) into main (8e2d428) will increase coverage by 8.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #130      +/-   ##
==========================================
+ Coverage   84.87%   92.87%   +8.00%
==========================================
  Files          33       17      -16
  Lines        4753     3144    -1609
==========================================
- Hits         4034     2920    -1114
+ Misses        719      224     -495

Flag
Coverage Δ

unittests
92.87% <ø> (+8.00%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...oqo/src/measurements/basis_rotation_measurement.rs

qoqo/src/quantum_program.rs

qoqo/src/operations/mod.rs

...measurements/cheated_basis_rotation_measurement.rs

qoqo/src/operations/pragma_operations.rs

qoqo/src/circuit.rs

...c/measurements/measurement_auxiliary_data_input.rs

qoqo/src/operations/multi_qubit_gate_operations.rs

qoqo/src/measurements/mod.rs

qoqo/src/measurements/cheated_measurement.rs

... and 6 more

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 8e2d428...b48058d. Read the comment docs.


feedback:

Version
Version: 1.89.1 (Universal) Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685 Date: 2024-05-07T05:14:24.611Z (4 wks ago) Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Darwin x64 23.5.0
Areas for Improvement

[ ] UI/UX
[ ] Onboarding
[ ] Docs
[ ] Chat
[ ] Commands
[ ] Context
[ ] Response Quality
[X] Other

What needs to be improved? Please describe how this affects the user experience and include a screenshot.
This was a great extension, and it works fairly well for months before its ultimate collapse. The last version was unstable, and of course now everything just gives. "You've used all chat messages and commands for today." even when there have been no chat messages today, or yesterday.
Describe the solution you'd like to see
I can only imagine the company ran out of money, which is a shame because its better than co-pilot imo.
Describe any alternatives that could be considered
Co-pilot, and Codeium are alternatives, but not as functional as the earlier versions of cody.
Additional context
No response

hey @GENnetuk-DEV sorry about the experience you're having on the latest version. Could you provide some screenshots of what you're seeing so that we can look into it?
Thanks!

thanks @GENnetuk-DEV! we made some changes, are you still experiencing this?


DataVec: FileSplit (and others) - skip any files with name starting with "."

We should skip by default any files starting with .
For example, Apple double format files prefix with ._
https://en.wikipedia.org/wiki/AppleSingle_and_AppleDouble_formats
For example, attempting to load an ._image.jpg using ImageRecordReader will obviously fail...

It doesn't need to fail, we just need to add support for JPEG 2000 :)
We probably don't want to read them out anyway.

@saudet sorry, I'm not following what this has to do with JPEG 2000?
If I understand this correctly, ._image.jpg for example isn't actually a data/image file, it's a Mac OS metadata/resource file that exists in parallel/addition to the "real" image.jpg file. That's what we're wanting to filter out here.

Given the error message, it looks like the metadata for images is in JPEG 2000 format:

Error in pixReadMemJp2k: function not present
Error in pixReadMem: jp2k: no pix returned

That's apparently the kind of files they were trying to load in issue #2760.


jasmine tests fail after upgrading rails to 4.2.0 and ruby to 2.2.1

Upgraded rails and ruby versions, now teaspoon tests are failing for some reason.
teaspoon 0.8.0
jasmine 2.2.0
Is there anyone else who is facing a similar issue after the upgrade?

@sp1117 you're using quite an old version of Teaspoon (0.7.9). Can you please try upgrading? There are some upgrade notes in the README: https://github.com/modeset/teaspoon#upgrading
Closing this for now, will happily reopen if you're still experiencing issues after upgrading.

Well, I upgraded teaspoon to 0.8.0 and I get this Failure/Error: Can't find variable: spyOn. Did anything change with spyOn after this upgrade?

I don't believe so. @jejacks0n are you aware of anything?

did jasmine 2.2.0 ship with 0.8, or 0.9?

Nope.

@sp1117, then I don't think you're using jasmine 2.2.0 -- which is probably the problem. Probably want to stick to the version you were using before.


Confused about how to pass a Ruby array to a Rust function

How do I pass a ruby array to a rust function
Utils.run('string1', 'string2', ['apple','pear'])

pub fn run(ruby: &Ruby, param1: String, param2: String, param3: RArray) -> magnus::error::Result<()> {
    let list = param3.to_vec().iter().map(|v| v.to_string()).collect();
}

#[magnus::init]
fn init() -> Result<(), magnus::Error> {
    let module = define_module("Utils")?;
    module.define_singleton_method("run", function!(run, 3))?;
    Ok(())
}

This doesn't work - but I don't get any error - it' just fails with unknown error when trying to write an Rspec test
Is what I'm trying to do supported in Magnus? or I need to pass named arguments into the ruby and handle them as an object in rust?
e.g. Utils.run(string1:, string2:, list: ) and in rust pub fn run(ruby:&Ruby, ???? some way to handle the named parameters)

nevermind - there was something wrong with my environment and nothing was working - but after deleting and re-cloning the repo things started working as expected - weird!


Remove core2 dependency

We use core2 to implement Read because it needs the io::Error. Now that we have bitcoin-io we can implement Read from there and not provide the core2 impl.

Remove optional core2 dependency.
Add an optional dependency on bitcoin-io.

Needs #102 and #103

I assume this PR is going to start the typical "there shouldn't be a bitcoin related crate in the dep tree"

Oh I did not see #51.

NACK adding optional dependency on bitcoin-io because it just reintroduces the same problem core2 has.

Given our very limited use of io I agree it'd be better to just drop it.


Fix the kusto config error in readme.typescript.md

Automation for azure-sdk-for-go

Automation for azure-sdk-for-python

Can one of the admins verify this patch?


TDVT Tests for JDBC with Mixed Case

About You:
Name: Cris Ianculovici
Company: Actian
Your question:
The ODBC capabilities have support for case of objects (our objects are lower case for non-delimited ids), via CAP_ODBC_BIND_DETECT_ALIAS_CASE_FOLDING, we can’t see an equivalent for JDBC at https://tableau.github.io/connector-plugin-sdk/docs/capabilities#metadata. What is the alternative for JDBC?
We have been running tdvt with simple/simple_lower/simple_lower_lower with no success, the error out of the test suite (e.g. for Staple and Discount) is not helpful so our guess based on observations may be off.

RE above testing is the smoke test where these settings have no impact.

Trying CAP_ODBC_BIND_DETECT_ALIAS_CASE_FOLDING in a manifest.xml for a jdbc based connector does not have any impact (which sort of makes sense based on the name containing ODBC).
Definitely need something for JDBC, either ODBC equivilent or ideally rely on JDBC driver to report correctly. If the JDBC driver implements the correct DatabaseMetaData api Tableau could determine this. E.g.:

https://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#storesLowerCaseIdentifiers()
https://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#storesMixedCaseIdentifiers()
https://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#storesMixedCaseQuotedIdentifiers()
etc.

You should be able to remap column names using the Logical Config. For example, if you loaded the Staples table with lowercase column names. The CAP_ mentioned above is mainly used when the driver/database returns results that have been unexpectedly converted to lower case.

Trying CAP_ODBC_BIND_DETECT_ALIAS_CASE_FOLDING in a manifest.xml for a jdbc based connector does not have any impact (which sort of makes sense based on the name containing ODBC).
Definitely need something for JDBC, either ODBC equivilent or ideally rely on JDBC driver to report correctly. If the JDBC driver implements the correct DatabaseMetaData api Tableau could determine this. E.g.:
* https://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#storesLowerCaseIdentifiers()

* https://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#storesMixedCaseIdentifiers()

* https://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#storesMixedCaseQuotedIdentifiers()

* etc.

As of 2019-08-14 https://tableau.github.io/connector-plugin-sdk/docs/capabilities#jdbc now has the CAP entries for JDBC and they work with the sdk as of today alone with Desktop 2019.2.2, so my comment above is only partially relevant. I'll log a new enhancement request to avoid the need for CAP_JDBC_BIND_DETECT_ALIAS_CASE_FOLDING.
However both this and #229 are issues for the smoke test. @lriggs I did some searching but I didn't find anything on "Logical Config". Can you point me at some documentation for this please? I would like to move to running the tests with lower case names as that is the default for us, I'm still using MixedCase for current tests but I'd like to avoid the need for it. Thanks!

Closing this old issue. Please open another one if this is still a problem. Thanks.


coreos/azure: Version bump and doc update

Kubernetes 0.18.0
etcd 2.0.11
CoreOS 647.0.0

LGTM.  Update docs/getting-started-guide/README.md if you have a moment.

Should I be able to download latest rev and try to re-install ?

@srakesh28 sure.

Thanks I verified this works now and able to deploy cluster , connect to it and deploy a  sample gurest workload, however 2 point

suggest we add to pre-steps before deploy script
sudo azure account import
sudo azure account set <"name of your subscription">

< Note I did not try the scale up step, yet, just wanted to try the App and deploy it for testing>

I was not able to connect to my sample appl of Guestbook after creating a Endpoint at kub-01 as per note, I did not see any services running on port 8000 on container, so not sure if scripts needs to handle appl startup.

@srakesh28 I am very glad this patch works for you!
Regarding your 1st point, I am not quite sure why these commands would be required, is azure login no longer sufficient? If so, could you please point me at the documentation? (By the way, sudo is certainly not required for this.)
And, with respect to your 2nd point, I can see why this might have got broken, but am not quite sure why and would need some assistance from other developer.
I shall raise both of this as new issues and we shall discuss there.

Thanks a lot.
Regarding
No 1) azure login did not work for me, I provided my azure subscription user id and password and below is error I get
info:    Executing command login
warn:    Please note that currently you can login only via Microsoft organizational account or service principal. For instructions on how to set them up, please read http://aka.ms/Dhf67j.
Password: ***********

Authenticating...
error:   Server returned error in RSTR - ErrorCode: NONE : FaultMessage: NONE
info:    Error information has been recorded to /home/xxxxxx/.azure/azure.err
error:   login command failed

so I tried out
azure account import   --> to download publish file go to https://manage.windowsazure.com/publishsettings (Login from browser and it will download it)
azure account set <"name of your subscription">  --> Name can be found in publishsetting files or from Portal
This worked to proceed to next steps.
No 2)  I don't see anything running in containers as deamon for example guestbook appln, so Endpoint can't connect to services in backed.

@srakesh28 please post your comments separately on #9242 and #9244.

done


tests: new script to run test on AWS

Support Fedora, Ubuntu, Debian, CentOS.
rkt does not have a Continuous Integration system that can run the tests
on all Linux distributions yet. But this script helps with manual
testing.

See also https://github.com/coreos/rkt/issues/847
/cc @iaguis @steveeJ

The tests pass fine on:

Debian 8
Fedora 23
Ubuntu 15.10

But on CentOS 7, the tests with user namespaces fail (#1927) and I sometimes see GC errors (#1922) as well.
I wanted to try NixOS AMIs but they don't have cloud-init.

Branch updated, ready for review.
I've got this error one time: https://github.com/coreos/rkt/issues/1781#issuecomment-169685881 but otherwise, nothing new.

LGTM


Unable to connect to HA instance

Hello,
I installed the app, and am now unable to connect to my instance.
In the connection setting tab, I put the ip of my instance. I only use HA on local network, with no ssl, on standard port.
When connecting to @ip:8123 I reach the credential page, but then it loops back to credential part. Connecting to other port doesn't work.
I'm using Huawei and android 8.
Any guess? Or any information I can provide?

I forgot to mention I use a fresh install of Ha 102.1 through Hass.io

Same issue with 102.2 :(

You need to make sure you add protocol too, so make sure it includes http://

Same result, but it works without, as I can reach the Auth page.
Here are some log from the app itself :
1202 20:43:09 [Debug] :  AppLifecycleState.inactive
1202 20:43:09 [Debug] :  AppLifecycleState.resumed
1202 20:43:09 [Debug] :  AppLifecycleState.inactive
1202 20:43:09 [Error] :  Loading settings...
1202 20:43:09 [Error] :  Long-lived token read successful
1202 20:43:09 [Debug] :  Launching OAuth
1202 20:43:09 [Debug] :  AppLifecycleState.resumed
1202 20:43:09 [Debug] :  AppLifecycleState.inactive
1202 20:43:10 [Debug] :  AppLifecycleState.paused
1202 20:43:11 [Debug] :  AppLifecycleState.inactive
1202 20:43:11 [Debug] :  AppLifecycleState.resumed
1202 20:43:20 [Debug] :  Launching OAuth
1202 20:43:20 [Debug] :  AppLifecycleState.inactive
1202 20:43:21 [Debug] :  AppLifecycleState.paused
1202 20:43:23 [Debug] :  AppLifecycleState.inactive
1202 20:43:23 [Debug] :  AppLifecycleState.resumed
1202 20:43:25 [Debug] :  AppLifecycleState.inactive
1202 20:43:26 [Debug] :  AppLifecycleState.resumed

This needs more information. what is the exact url that you enter, what auth providers do you have and please show a screenshot of what you mean of "loop back" credential part. And which phone ?

Upgrade to the latest 1.1.1 release and see if the issue persists.

I have installed clean Version 1.1.1(32) and still dont find my instance in my home network
When use manually configuration and Type address http://IP:8123 all work ok
But auto no working.
My Phone Huawei P20 with Android 9.1

I've got a similar problem:

App doesn't find my Home Assistant instance
when entering the adress manually it get a blank screen. Tried it with https://:8123 and https://:8123
works when using the Nabu Casa URL

Is there some kind of SSL certificate check active? My certificate's hostname doesn't match the hostname in my LAN. Only guessing.. ;)
Phone is a Xiaomi Mi9T Pro on MIUI 11 (Android 10)

I'm having the same issue as @Aquarito
I'm running the latest version of home Assistant in a docker container with self signed (but trusted on Android) certificates. The HA app can't find my instance in lan and if I enter https://IP:8123 manually I get a blank (white) screen and nothing happens. If I enter the same url in Chrome it redirects me to the auth page correctly.

I'm not sure if what I'm getting it's related to this issue, but I changed the IP of my HA and now I can't use the app. I got same error if for some reason the HA is accessible within my network. At this point I think I'll be fine clearing the cache to get the authentication page again, but I guess this logic have to change.

I am going to close this issue as every poster seems to have a different problem and original reporter has not come back.
Please retest with latest app version. If you change IP, there is no log out button yet and there is already an issue for it. (can't find it right now soo)


Command exec: : not found

Hi,
I am currently experiencing an issue in a fresh Laravel install with this.
I had a previous issue whereby tsx wasn't installed with the npm package, but I manually installed that.
The currently issue I'm having is The command is not found.
What's strange is, if I dump out the command line and copy it directly into my terminal - it seems to be working fine!
The command \"\"\" '/{ABSOLUTE_PATH}/node_modules/.bin/tsx' '/{ABSOLUTE_PATH}/vendor/maantje/react-email/src/../render.tsx' '/{ABSOLUTE_PATH}/resources/emails/reset-password' '{\"token\":\"emitted\",\"user\":{\"id\":30,\"name\":\"Oda Bailey\",\"email\":\"email@email.com\",\"email_verified_at\":\"2023-10-29T21:25:28.000000Z\",\"created_at\":\"2023-10-29T21:25:28.000000Z\",\"updated_at\":\"2023-10-29T21:25:28.000000Z\"},\"connection\":null,\"queue\":null,\"chainConnection\":null,\"chainQueue\":null,\"chainCatchCallbacks\":null,\"delay\":null,\"afterCommit\":null,\"middleware\":[],\"chained\":[]}'\" failed.\n\nExit Code: 127(Command not found)\n\nWorking directory: /{ABSOLUTE_PATH}\n\nOutput:\n================\n\n\nError Output:\n================\nsh: line 0: exec: : not found\n

Please understand, I have emitted out some of the directories however these are absolute paths which are valid.

Interesting enough, after some debugging and going into the package this is because:
new ExecutableFinder())->find('node')

is resolving to null, this is because node is installed with homebrew on my machine. Overriding this and setting to /opt/homebrew/bin/node allows the email to send / work.

https://github.com/maantje/laravel-react-email/pull/7


quic: normalize quic idle timeout and handshake timeout

Signed-off-by: Dan Zhang<EMAIL_ADDRESS>Commit Message: Normalize QuicProtocolOptions::idle_timout and  crypto_handshake_timeout to 1ms and 5s respectively if they are configured smaller than those.
Risk Level: low

/retest

Ping?


PR for the host to add addresses directly

Next Update to This - ENS Resolving /  Bulk add addresses


fix(docs): update time interval docs

Hi, @beita1. Could you kindly update the MR title to better describe the purpose of your commits? It'll really help us with the review process. Thanks a lot!

Hi, @beita1. Could you kindly update the MR title to better describe the purpose of your commits? It'll really help us with the review process. Thanks a lot!

Dear Decent, you are so nice.


⚠ Samsung has degraded performance

In efa646a, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2738 ms

Resolved: Samsung performance has improved in 2094ba6.


First release to production

First release to produccion. Index.html added

This comment is about the Resume Page


Proposal: more compatible comments template

Use of get_comments_number() instead of have_comments(), because the last one as per documentation:

will always return "false" until after comments_template has been called. If you need to check for comments before calling comments_template, use get_comments_number instead
Source

I don't know why in my project calling include('partials.comments') always return false.
In that kind of situation, is also necessary to pass get_comments as second argument to wp_list_comments

I don't know why in my project calling include('partials.comments') always return false.

maybe debug further?

In that kind of situation, is also necessary to pass get_comments as second argument to wp_list_comments

i don't think this makes sense to be the default in sage?


[W10H01] Added TrialOfDreams tests

Needs fix

Working on it

Working on fix

I removed now the repetition but for some reason the parameterizedTest did not work, so I used a stream of byte[] and iterated through it using forEach

Please approve the change, as the Test is now working and can therefore help others figuring out the solution. Cosmetic optimizations can be made later IMHO.

<3 @Anatoly03
LGTM


Support for looking into all namespaces

Hello,
Maybe I missed it from the documentation; but how can I use kubectl --all-namespaces with bats-detik?
Example:
verify "there are 0 pods named '*' with 'status' being 'crashLoopBackoff'"

I tried DETIK_CLIENT_NAME='kubectl --all-namespaces' with no luck.

Hi @pedroapero.
Indeed, this is not supported. That would not be very complicated, the missing part is here.
I will try to add its support this week.

After digging, DETIK_CLIENT_NAME='kubectl --all-namespaces' should work.
The reason about the failure is because of the query:

* is not considered a valid resource name by DETIK.
I assume the verify query is run with a try prefix. Otherwise, this is not valid.
The documentation also indicates that « if it finds 0 item verifying the property, the assertion fails ».

The query you wrote totally makes sense.
I have to see how we can complete the assertions to support it.


Bump to JupyterLite 0.3.0a0

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

Looks good: will issue up with next steps for the removed package...

Thanks!


Sync slow process and 0 peers

Goodmorning,
I am currently syncing the blockchain after a crash. When I started I had about 10 peers and now its down to 0. Process seems to be very slow now. Is this normal? Currently at 48.08% and very slowly increasing. Can I reboot the PI without having to completely start from the beginning to reconnect to the peers?  I started syncing on the 28th March and progress was lot better.
Thx.
Frits

you can restart any time
if no peers can add the manually

Thanks. Will more peers speed up the process?

if there is 1 peer bitcoind will connect to more.
The difference is between having peers or none.
Of for some reason the peers connected are the bottleneck a restart helps.

without a restart back to 11 now. :-)
Thanks for your help!


[QA] Minigames | Play Button Fails to Load Inconsistently

Build version:

v0.40.0

Issue Description:
There is an inconsistent issue where the minigame Play button fails to load, sometimes remaining black indefinitely instead of turning green when ready. Users have reported that changing locations or attempting to access other minigames does not resolve the issue. The only way to recover the button state is by closing and reopening the Explorer. In one instance, Dawid closed and reopened the Explorer, but the button still did not load after going to a minigame.
STR:

Start the Decentraland Explorer.
Teleport to any minigame or walk to them
.
Observe the state of the minigame button.
If the button is black and does not change to green, try:

Changing location within the Explorer.
Accessing a different minigame.

Observe whether the button remains unresponsive.

❌ Actual Result
The minigame button sometimes does not load, staying black indefinitely. It does not change to green even after attempting to change locations or access other minigames. Restarting the Explorer is necessary to recover the button state.
✅ Expected Result
The minigame button should load correctly and turn green when ready for play. Users should be able to change locations or access different minigames without encountering a loading issue.
Este formato
Repro Index:
4/10
Evidence:
https://github.com/user-attachments/assets/a831429a-1fed-40cf-80de-a35637123c13
LOGS:
Player.log
main.log
Player.log
Additional Notes:
Windows 11. 12th Gen Intel(R) Core(TM) i7-12650H 2.30 GHz. nvidia geforce RTX

This issue is no longer happening on 0.46.0


Include only the path to the file, not its contents (Question)

Hello!
first, congratulation for this awesome tool.
and so ....
i would include only the path to the file, not its contents.
is there any setting for this?

i would include only the path to the file, not its contents

Could you give an example?

yes!
for example:
@@include('./js/home.js')
will result:

@thiagoaag You will be able to do custom functions in 1.0

thanks!


Adding iojs to README.

Not entirely sure this is the best place for this but it was the best I could find.

This is great - is it worth also linking to the io.js repo?


Fix cardinality test error

This is a:

[x] bug fix PR with no breaking changes — please ensure the base branch is master
[ ] new functionality — please ensure the base branch is the latest dev/ branch
[ ] a breaking change — please ensure the base branch is the latest dev/ branch

Description & motivation
https://github.com/fishtown-analytics/dbt-utils/commit/418278c566d6939ea1b3c92641720af9a1278ae3 changed from group by 1 to group by {{ column_name }} to add t-sql support.
Table b's column name should be field instead - if its name doesn't happen to be the same column name as table a, you get an error.
Checklist

[x] I have verified that these changes work locally on the following warehouses (Note: it's okay if you do not have access to all warehouses, this helps us understand what has been covered)

[ ] BigQuery
[ ] Postgres
[x] Redshift
[ ] Snowflake

[x] I have updated the README.md (if applicable)
[x] I have added tests & descriptions to my models (and macros if applicable)
[x] I have added an entry to CHANGELOG.md

@clrcrl can you let me know what failed with the integration test please? I've tested the fix against my project and it worked, so I must have misconfigured something in the integration tests

@Yan Karklin set me right! 🎉 Had forgotten to include the package's name (I forgot that the integration test project was different to the utils project)

Changing over to dev/0.7.0 to avoid another 0.6.x release :)


Add test command to the editor menu #130548

@connor4312 I ran into some confusion, I controlled the conditions of the appearance, but it didn't seem to work, and the content still showed up on editor menu of each file

Thanks for the PR! There's more work needed since the capabilities are global and we didn't previously have any variable that applied just to the active editor. We also needed work to make the lookup efficient, since previously navigating to a file where there were no tests would result in VS Code iterating over the entire test collection.
Since there were a lot more changes needed, I've extended this and tackled them in https://github.com/microsoft/vscode/pull/167091. Although this PR didn't get merged, we really appreciate your contribution 🙂


Ensure directories for svm, sm training set, tweak to explore-svm

Ok, so, some of this was covered in #4, which is likely worth revisiting, and these changes are in response to #11.
Here is the current state of things (with a fewer minor, functional tweaks):

do_svm.py will do a few, related things:

It will ensure that all the necessary folders exist, and exit (with a message) if not. (It creates the dir, but you probably have to put stuff in it. That's why it exits.)
It will create the database (project_name/db/svm.db) to hold the output.
It will process the files in splits_for_svm (same structure as splits... splits_for_svm/novel/chapters...).  This involves removing TEI and some normalization.
Next, it will test itself by dividing the seen texts into testing and training and evaluating.
It will assess authorship likelihood for the seen texts and deposit this information in the db.
Next, if the db exists (spoiler: it probably does), we ask it he user wants to rebuild.

If not, move on to unseen tests.
If yes, do all the above work and then move on to unseen tests.

We now process all the texts in the testset folder against our model.  The results are stored in the db.

From here, the best thing to do is to cd explore; python3 explore-svm..py

Choose the project you want to explore.
For option 1, you can see all the raw results from the seen set.  (I'm pretty sure this needs to be massaged for display, as it's ugly/boring/unnecessary?  Pick two.)
Honestly, the more interesting option is 2, to explore the unseen texts.  This will let you choose a chapter, then it will give you a score against each of the seen authors. (0 - 1)  It will even make a really boring bar graph.  That looks like this (dracula ch. 10):

As for what's next, I honestly don't know.  I get that the desire is to integrate these scores into the broader application, but I'm not sure there's room for an apples-to-apples comparison.  (One model is guessing based on a set of features whether or not two texts were made by the same author, and the other is comparing an unknown text against a known author).  But if you had to integrate them, then I guess something like this:

Set a threshold for yes or no.  (Maybe re-use from the rest of the project?)
Score text.  (I think we use the first 8 significant digits elsewhere, but would have to check.)
Check against threshold and known authors, using the Y or N to derive the YN/NY answers.

Then again, if the unseen texts' authors are not otherwise present in splits_for_svm, then all answers should be N or YN.
For this reason, and for a fair test, it seems like you'd want the author to already be part of the model, right?

From there, I guess you could pretend that this fits in with the jacquard calculations done elsewhere... but I'm still not convinced they do.

I now know how to do the apples to apples comparison, and it has to do with fitting the regression curve against known authors to find the correct weight. Starting it once I add this to main.


Watchman fixes

Fixes pointed out by Tom, basically if there is a buffer event over 10s the plugin will error due to the event only being sent every 10 seconds (with a duration of 10 seconds) but buffer events only being sent once per buffer regardless of the time of buffer.

Can probably be shipped if lint passes, though not super important at this time.

Closing for now, we can reopen later


can't sign in to the app

using node j , expo
can't log in to the app get this error message
Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or false

[native code]:null in __expoConsoleLog

node_modules\react-native\Libraries\LogBox\LogBox.js:36:4 in console.warn
node_modules\react-native\Libraries\YellowBox\YellowBox.js:162:6 in registerWarning
node_modules\react-native\Libraries\YellowBox\YellowBox.js:88:8 in warnImpl
node_modules\react-native\Libraries\YellowBox\YellowBox.js:66:4 in console.warn
node_modules\expo\build\environment\muteWarnings.fx.js:18:4 in warn
node_modules\react-native\Libraries\Animated\src\NativeAnimatedHelper.js:281:4 in shouldUseNativeDriver
node_modules\react-native\Libraries\Animated\src\animations\TimingAnimation.js:73:49 in constructor
node_modules\react-native\Libraries\Animated\src\AnimatedImplementation.js:210:26 in start
node_modules\react-native\Libraries\Animated\src\AnimatedImplementation.js:217:13 in start
node_modules\native-base\dist\src\basic\ToastContainer.js:1:5724 in closeToast

[native code]:null in closeToast

node_modules\react-native\Libraries\Core\Timers\JSTimers.js:135:14 in _callTimer
node_modules\react-native\Libraries\Core\Timers\JSTimers.js:387:16 in callTimers
node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:425:19 in __callFunction
node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:112:6 in __guard$argument_0
node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:373:10 in __guard
node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:111:4 in callFunctionReturnFlushedQueue

[native code]:null in callFunctionReturnFlushedQueue

Hi @chareen3, this is a React Native website repository. If you are having a problem w Expo you should report the issue in their repository and If it's a problem with React Native by itself you should post the bug to React Native repository. You can also check the help page for the tips to the other ways of resolving issues.
Thank you for your understanding!


Add default options argument to sidebar documentation

Proposed changes
It took me an (embarrassingly long) while to realise that the lack of var options= {} was the reason my sidebar wasn't working. Hopefully, this documentation update can help someone going forward.
Types of changes

[x] Bug fix (non-breaking change which fixes an issue).
[ ] New feature (non-breaking change which adds functionality).
[ ] Breaking change (fix or feature that would cause existing functionality to change).

Checklist:

[x] I have read the CONTRIBUTING document.
[x] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

@Smankusors hopefully this is the right place to make this change?

gosh indeed - I think I've corrected it where I could find it (i searched for elem, options) not sure if there are others.

See also https://github.com/materializecss/materialize/issues/1

Hmm I see what you're trying to say.
Would it be worth mentioning these caveats in a single reference page somewhere, but still ensuring the documentation runs without errors on copy-paste?
I don't mind most of your options, I just dislike
var instances = M.FormSelect.init(elems,{})
Since as a user I wouldn't have a clue what the second argument was or why it was there.

Also I haven't looked too hard, but how should options be specified for jQuery?

Also I haven't looked too hard, but how should options be specified for jQuery?

Like this:
$('select').FormSelect(options)
Shown here with the Modal component, options taken out of the document.ready so that both inits can use them (comment out whichever you prefer.

Hmm I see what you're trying to say.
Would it be worth mentioning these caveats in a single reference page somewhere, but still ensuring the documentation runs without errors on copy-paste?
I don't mind most of your options, I just dislike
var instances = M.FormSelect.init(elems,{})
Since as a user I wouldn't have a clue what the second argument was or why it was there.

Strong yes to a standalone page explaining the inits, how to use use them, what options are, how they differ from methods etc. Basic theory such as:
Each component has a set of default options that it is initialised with. For instance, initialising modal without options like this...
$('.modal').modal();
...is the same as writing:
$('.modal').modal({
  opacity: 0.5,
  inDuration: 250,
  outDuration: 250,
  onOpenStart: null,
  onOpenEnd: null,
  onCloseStart: null,
  onCloseEnd: null,
  preventScrolling: true,
  dismissible: true,
  startingTop: '4%',
  endingTop: '10%'
});

..where options is an object {} of key:value pairs. Please note that values can be strings, booleans, numbers & functions -refer to each component page for a full list of options.
In addition, it would be good to talk about multiple components on the same page - 2 modals with different options. How to approach this. It's not immediately obvious to beginner that $('.modal').modal() in fact returns an array of all elements with a matching classname. For a single modal, user could use something like:
var modal = $('.modal').modal(options);
console.log(modal[0])

To get the instance, and if there were two on the page, modal[1] would refer to the second, and so on. And then we get into the territory of perhaps giving components IDs, and initialising separately.
Sorry, I waffle but I use Materialize so much and run into these things all the time, fo me it is easy to use but I remember at the start that the docs were not helpful.
Bottom line - your solution works, but we have left the jQuery explanation a little short (and inconsistent).

Bottom line - your solution works, but we have left the jQuery explanation a little short (and inconsistent).

How can we solve this in the best way? Any ideas / proposed solutions?

As you can probably tell, I'm rather new to materialise (and web dev generally) and thus am probably not the best person to write up all these details.
I can transcribe most of what has been mentioned in the thread, if it could help more knowledgeable people also add details.
Not sure how that works with a PR though - would you need to be collaborators on my GitHub fork? Or can you also submit updates to the same PR?

I think we can do something like this instead (adding comment "Options here"), for example in the collapsible documentation
document.addEventListener('DOMContentLoaded', function() {
  var elems = document.querySelectorAll('.collapsible');
  var instances = M.Collapsible.init(elems, {
    // Specify options here
  });
});

// Or with jQuery

$(document).ready(function(){
  $('.collapsible').collapsible({
    // Specify options here
  });
});

with this, the new user will know where to put the options...
Now.... if they don't know how to write options argument............ then..... 🙊

I think we can do something like this instead (adding comment "Options here"), for example in the collapsible documentation
document.addEventListener('DOMContentLoaded', function() {
  var elems = document.querySelectorAll('.collapsible');
  var instances = M.Collapsible.init(elems, {
    // Specify options here
  });
});

// Or with jQuery

$(document).ready(function(){
  $('.collapsible').collapsible({
    // Specify options here
  });
});

with this, the new user will know where to put the options...
Now.... if they don't know how to write options argument............ then..... 🙊

This sounds good - it answers both the options error and jQuery question.
Perhaps underneath the jQuery script - on every component page - we have a link:
'For more details on using options, see https://materializecss.com/options'
@dev10110 what do you think about this over declaring options method?

Maybe we can use a partial which is included so we have to write the text only once:
https://jade-lang.com/reference/includes
Let me know if you need any help with this.
Regarding push / write access for others, there is a checkbox in the PR settings to allow that others can push to your fork branch.
I do not see if this is checked / activated by you.
And I'll have to check if the permissions for all others is correct (write permissions).

Maybe we can use a partial which is included so we have to write the text only once:
https://jade-lang.com/reference/includes
Let me know if you need any help with this.
Regarding push / write access for others, there is a checkbox in the PR settings to allow that others can push to your fork branch.
I do not see if this is checked / activated by you.
And I'll have to check if the permissions for all others is correct (write permissions).

Yes - good thinking. DNR!
Obviously we will need to create the page first, and the content, which may take a bit of back and forth, so for this PR we could just fix the issue and treat the new page as a separate concern.

Alright sounds good.
Ill make an update to the jQuery part of the docs in this PR, and open a new one for the extra text on options.
I did see and tick the checkbox and so that's awesome.
Thanks guys!

@DanielRuf seems like ill need a hand getting the page working - as far as I can tell, the documentation right now is compiled using jade, but the main content is included as a html file. I don't see how to produce and reuse a block of text within the html files.
I could add the notes to the bottom of the page (before the footer) but that seems like an odd place to put it.

also, jquery updates done!

What is the current status of this PR?

From my POV: this is ready to go. For the extra documentation on how init works, I tried it, but couldnt figure out how to use the same snippet in multiple places using Jade. https://github.com/materializecss/materialize/pull/19#issuecomment-687822189

@Smankusors what do you think? Can it be merged?

@Smankusors what do you think? Can it be merged?

hmm the chips documentation, honestly it could be merged now and fix it later I suppose... 🤔
that example can be copy from jquery to non jquery, but IMO it looks too long compared to other component documentations. perhaps in the future we should have tab to select non jquery version and jquery version though. 💭
for the multiple $(document).ready on the chips documentation, I think we can merge it as one instead. I could do it if it's okay for you @DanielRuf @dev10110

Ah yes indeed. That would be much appreciated @Smankusors

Feel free to do so @s.

Feel free to do so @Smankusors.

Congrats on your first merged PR @dev10110.
I've sent you an invitation to this org and the members group.
You can see and accept it at https://github.com/materializecss.

Woohoo thanks Daniel!!


Default _augment_keypoints() and _augment_heatmaps() to noop

Codecov Report

Merging #380 into master will increase coverage by 0.22%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #380      +/-   ##
==========================================
+ Coverage   95.61%   95.84%   +0.22%
==========================================
  Files          33       33
  Lines       10853    10737     -116
==========================================
- Hits        10377    10290      -87
+ Misses        476      447      -29


MCPI Modded

Is this app installable with sudo apt install?
No
If you've created a zip file for this app, upload it here.
MCPI Modded.zip

Thank you @mobilegmYT we will check your script and will add it to pi ware as soon as possible and also can you suggest a way to add icon + text on tkinter button thanks

Add MCPI Modded to pi-ware, closing this issue.


error Too many open files

My codes:
void HttpServer::HandleAccept(std::shared_ptr<ServerConnection> newConnection, const boost::system::error_code& ec)
{
    // Check whether the Server was stopped by a signal before this
    // completion handler had a chance to run.
    if (!acceptor_.is_open()) {
        return;
    }
	if (ec) {
        LOG("[HttpServer] connection accept failed, error is %s\n", ec.what().c_str());
	} else {
        newConnection->Start();
        count_++;
	}
    if (count_ > maxConnections_) {
        std::unique_lock<std::mutex> lock(mtx);
        cv.wait(lock, [this] { return count_ <= maxConnections_; });
    }
	DoAccept();
}

void HttpServer::DoAccept()
{
    auto &ioContext = ioContextPool_.GetIoContext();
    std::shared_ptr<ServerConnection> newConnection = std::make_shared<ServerConnection>(ioContext, reqHandler_, this);
    acceptor_.async_accept(newConnection->GetSocket(), boost::beast::bind_front_handler(&HttpServer::HandleAccept, this,
        newConnection));
}

print so many error:

In my server connection
void ServerConnection::OnRead(boost::beast::error_code ec, std::size_t bytes_transferred)
{
    boost::ignore_unused(bytes_transferred);

    if(ec) {
        LOG("[ServerConnection] OnRead error : %s\n", ec.what().c_str());
        return DoClose();
    }
    keepAlive_ = req_.keep_alive();
    version_ = req_.version();
    auto fun = reqHandler_.GetFun(req_.method(), req_.target());
    if (fun == nullptr) {
        SendNormalRes(boost::beast::http::status::bad_request, "text/plain", "Invalid request\r\n");
    } else {
        fun(shared_from_this()); // 外部记得保存this的指针，防止引用计数到零后释放
    }
    if (keepAlive_) {
        DoRead();
    }
}

void ServerConnection::DoClose()
{
    isClose = true;
    try {
        socket_.shutdown(boost::asio::ip::tcp::socket::shutdown_send);
    } catch (const std::exception& e) {
        LOG("[ServerConnection] DoClose error : %s\n", e.what());
    }
    server_->CloseOne();
}

Is that something wrong with "socket_.shutdown" ?

should I call "socket.close" after "socket.shutdown"?
socket_.shutdown(boost::asio::ip::tcp::socket::shutdown_send);
socket_.close();

It is hard to tell what could be wrong with the provided code sample. What happens inside server_->CloseOne()? How many active connections do you have? Do they exceed the ulimit -n?

It is hard to tell what could be wrong with the provided code sample. What happens inside server_->CloseOne()? How many active connections do you have? Do they exceed the ulimit -n?

server_->CloseOne() code:
void HttpServer::CloseOne()
{
    if (count_ > maxConnections_) {
        count_--;
        cv.notify_one();
    } else {
        count_--;
    }
}

there are totally 1319 client connections, but i set single thread to accept.
the ulimit -n is 1024.
my io_contextpool is single thread too.
So the process should look something like this:   accept -> do something -> close -> accept ...
but why the socket still opening?
I look at /proc/pid/fd with ll | grep socket | wc -l and print 1010.
It seems that socket.close() did not work?

there are totally 1319 client connections, but i set single thread to accept. the ulimit -n is 1024. my io_contextpool is single thread too. So the process should look something like this: accept -> do something -> close -> accept ... but why the socket still opening? I look at /proc/pid/fd with ll | grep socket | wc -l and print 1010. It seems that socket.close() did not work?

socket.close() should be sufficient. Is your application multi-threaded? What is the purpose of that condition variable, and how does it not block the call to io_context.run()? It is likely you are encountering a concurrency or lifetime bug. I suggest starting with a minimal single-threaded example and then extending it.

there are totally 1319 client connections, but i set single thread to accept. the ulimit -n is 1024. my io_contextpool is single thread too. So the process should look something like this: accept -> do something -> close -> accept ... but why the socket still opening? I look at /proc/pid/fd with ll | grep socket | wc -l and print 1010. It seems that socket.close() did not work?

socket.close() should be sufficient. Is your application multi-threaded? What is the purpose of that condition variable, and how does it not block the call to io_context.run()? It is likely you are encountering a concurrency or lifetime bug. I suggest starting with a minimal single-threaded example and then extending it.

the keypoint
      headerCb = std::bind(&ClientConnection::ParserChunkHeader, self, std::placeholders::_1,
            std::placeholders::_2, std::placeholders::_3);
      bodyCb = std::bind(&ClientConnection::ParserChunkBody, self, std::placeholders::_1,
          std::placeholders::_2, std::placeholders::_3);
      p_->on_chunk_header(headerCb);
      p_->on_chunk_body(bodyCb);

headerCb and bodyCb are ClientConnection's variables, they hold self.
void ClientConnection::Close()
{
    // Send a TCP shutdown
    boost::beast::error_code ec;
    socket_.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ec);
    // At this point the connection is closed gracefully
    headerCb = nullptr;
    bodyCb = nullptr;
}

in funcation Close() we should set headerCb and bodyCb to nullptr otherwise the shared_ptr.use_count() will > 0.


Please invite me to the Recode-Hive GitHub Community Organization

Name
Raghav Sharma
Discord Username (if applicable)
No response
Additional Context
No response

Invitation sent to join the GitHub Organisation. Welcome to the community 🎉
Don't forget after accepting to make it public so it appears on your GitHub profile for everyone else to see. You can do this by finding your name in the GitHub organisation list and change the dropdown to public https://github.com/orgs/recodehive/people


patient_type missing in DB for some plates

@wolny @constantinpape

I guess I cannot assume that the patient_type column exists for all plates?!

Hey @tischi, yes patient_type is present only in those wells which were marked in the excels by Vibor. Those are not are.


How to best use Threads??

First - thank you for all you've done - - it's been quite straightforward to bring my Raspberry pi v3 B+ up and connect simultaneously to the multitude of sensors.
Here's my question:

I've connected my RPI to multiple sensors:

(1) ultrasonic sensor (HC-SR04) - directly connected to 2 GPIOs (as Trigger and Echo)

(2) IR distance sensors (Sharp GP2y0a02yk0F) connected through ADCs (mcp3002)

also I've connected my RPI to a Naza M v2 flight controller

Additionally, I'd like to have my RPI respond to commands sent through SSH.
Problem is cannot simply wait on getchar(), as this blocks everything else.
Originally, I was going to create a thread to wait on the getchar(); but this doesn't seem to align with how you created threads (on the GPIOs).
So, now I'm thinking that the operation of the sensors can be made into threads.
Which would be the best way to simultaneously operate sensors while "waiting on an SSH command" ?
Thank you for answering my question...

It sounds like you are controlling sensors through pigpio using a C program and then you want the ability to remotely access the sensors as well.  If that assumption is correct, you can achieve this by using the socket interface and the pigpiod daemon.  Write you C program using the pigpiod C I/F.  Now you can access the same sensors remotely from your choice of C program or higher level script languages Python or Javascript.


Fix consume program

Asynchronous processing of consumed messages in DefaultConsumer.handleDelivery(...) implementation led to non-deterministic message order in internal queue.
This pull request fixes it by blocking on Queue.offer.
Fix for https://github.com/profunktor/fs2-rabbit/issues/671

Hi @agustafson @jbwheatley ! Could you, please, give feedback on this PR? This is blocker for us to migrate to cats effect 3! PR contains a lot of files because I updated scalafmt to newer version and ran sbt clean test. If this is problem I can revert those commits and leave just https://github.com/profunktor/fs2-rabbit/pull/674/commits/6aeb457e22e20a59b5fea0213eba0ab7a408310c


Assits: Apply De Morgan's law

Input (cursor's on ||)
subtree.delimiter != tt::Delimiter::None || !subtree.token_trees.is_empty()

Output
!(subtree.delimiter == tt::Delimiter::None && subtree.token_trees.is_empty())

See https://github.com/rust-analyzer/rust-analyzer/pull/1761 for the recent example of new assits

If we're gonna have it on ||, why not have it on && too ? It's practically identical, might as well treat both cases at once.
Input (cursor's on &&)
subtree.delimiter != tt::Delimiter::None && !subtree.token_trees.is_empty()

Output
!(subtree.delimiter == tt::Delimiter::None || subtree.token_trees.is_empty())

Sure, it should work both ways!

Should the assist work with any type, or just with bool.
After all, it only really applies to boolean algebra. I think there are already assists with deep enough insight into typing to check for that.
Should there be equivalent assists for bitwise operations ?
Although I may be complicating the issue too much by expanding it this much, probably better to keep it to the boolean operations so that it doesn't spiral for a first issue.

&& and || work only for bool, it's impossible to override them.
I don't think bitwise version would be very useful, I suggest adding it when someone actually asks for it

I've started working on this, but could use a little help.


[RESOLVED] High ICMP ping response time

Problem started at 08:49:29 on 2023.04.21
Problem name: High ICMP ping response time
Host: HP_iLO
Severity: Warning
Operational data: Value: 654ms
Original problem ID: 19810
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23268&eventid=19810

Problem has been resolved in 6m 1s at 08:55:30 on 2023.04.21
Problem name: High ICMP ping response time
Host: HP_iLO
Severity: Warning
Original problem ID: 19810


not working on youtube

youtube-dl -q -f best -g 'https://www.youtube.com/watch?v=_7wjPOo88SE'
WARNING: Failed to download m3u8 information: HTTP Error 429: Too Many Requests
WARNING: Failed to download MPD manifest: HTTP Error 429: Too Many Requests
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

See #23638.


Error while Installing tensorflow nightly

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information
-windows 10:
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): pip install tf-nightly
TensorFlow version:2.5.0
Python version:3.9
Installed using virtualenv? pip? conda?: pip
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory: 6 gb ram and gt71
Describe the problem
Throwing an exception error
Provide the exact sequence of commands / steps that you executed before running into the problem
File "c:\users\ts\appdata\local\programs\python\python39\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 171, in _merge_into_criterion
crit = self.state.criteria[name]
KeyError: 'tf-nightly-gpu'
During handling of the above exception, another exception occurred:below
Any other info / logs
raise ReadTimeoutError(self._pool, None, "Read timed out.") pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

@ajinkeya007
Looking at the error log seems it is similar to #48034. Please let us know if it helps.Thanks


I want to top up a channel with an amount, which has been transferred as parameters

User Story
As Chris, I want to top up a channel with an amount, which have been transferred as parameters so that I can make new payments.
Acceptance criteria
Tasks
Story Points

@christianbrb I am not sure about the scope of this. If it is only for new channels it works. For existing channels, this won't work though.
The expected query parameter name is deposit:
https://github.com/raiden-network/light-client/blob/ceaf844700fe60e9d5505bd404cf84a22cd9e131/raiden-dapp/src/views/OpenChannel.vue#L170

@christianbrb Ok I saw that what I described above was another issue, so I suggest we keep this issue open.

Closing as we need to check, if it is a valid use case in future


when running another mpv instance

When running another mpv instance before starting
wp run mpv ....

wp will push the existing mpv into the background instead of opening the new one in the background.
A video showing what I mean.

contents of videowalls.bat
wp run mpv ^
--player-operation-mode=pseudo-gui ^
--force-window=yes ^
--terminal=no ^
--no-audio ^
--sub=no ^
--loop=inf ^
--fullscreen ^
--input-ipc-server=\\.\pipe\mpvsocket ^
"D:\Images\VideoWallpapers"

wp mv --wait --class mpv -x 1920
wp add --wait --fullscreen --class mpv

yeah, you can't use class with multiple mpv's. you could set the window title by passing --tile="something" to mpv and then using the window name to find it

Ok how can I kill that specific mpv instance then?

wp kill --name wp or wp killall --name wp

It doesn't work.
The mpv is still there. One more thing, I don't see wp in task manager when it is running

Got something working to kill that wallpaper mpv instance (terrible hack sorry)
set cmd=powershell -c "get-process mpv | where-object {$_.mainwindowhandle -eq 0} | select-object Id"
:: https://stackoverflow.com/a/27429851/8608146
for /F "delims=" %%a in ('%cmd%') do (
   set "lastButOne=!lastLine!"
   set "lastLine=%%a"
)
taskkill /PID %lastLine% /f
REM timeout 5000

:: This does nothing (??)
wp.exe killall --name wp

hmm that's strange. wp kill and wp killall both find the window in the same way wp mv does. so I don't see how it wouldn't find it. I'll look into this when i have time I guess

The title of mpv is getting removed when it is set as a wallpaper for some reason. That's why I was able to filter that mpv process by no title and get the pid.

Btw I am once again asking for the battlefield video wallpaper that's in th readme

that makes sense. but how does the mv command work then? hmm
well if the window can't retain its title it's gonna be hard to make wp kill work
and I don't have that wallpaper anymore


First two map demo notebooks, initial commit

Includes two new files, parts 1 and 2 of Jupyter notebooks series exploring how to computationally access, retrieve, and analyze cartographic collections on loc.gov

maps-downloading-querying.ipynb
maps-analyzing-metadata.ipynb

Merging these notebooks into the data-exploration repo. Thanks, Rachel!


when i use class Component, it get error

sorry for bothering you on weekends!
when i use class component to build an app,
it get an error "Class constructor Component cannot be invoked without 'new'",
how to fix that?
this is my demo

Hello, no problem - that's a pleasure for me that my article get's translated to other languages 😊
I believe that issue was related to the way you were importing modules - so I made a fork and slightly rearranged package.json by adding zero-configuration webpack build - check this pull request for details and feel free to ask if you have any questions:
https://github.com/z2014/Blog/pull/14

Well - I checked your repository, seems like it works fine. Closing now, get in touch if something goes wrong.


__ksonnet/environments should be available in params.libsonnet

__ksonnet/envrionments ext var should be available during parameter processing
/cc @jessesuen

Params files in components are evaluated as Jsonnet objects. For this to work properly, they'll have to be evaluated as Jsonnet nodes.


src/Illuminate/Foundation/Console/ModelMakeCommand.php and error "An option with shortcut "s" already exists."

Laravel Version: v6.8.0 (updated from v6.7.0)
PHP Version: 7.4.0

Description:
I updated Laravel version v6.7.0 to v6.8.0 and now running "php artisan ..." gives me an error:
"An option with shortcut "s" already exists."
Steps To Reproduce:
I searched looked the code and found the Laravel v6.8.0 change in the file "src/Illuminate/Foundation/Console/ModelMakeCommand.php" which has caused that. Laravel v6.8.0 added new "seed" definition:
['seed', 's', InputOption::VALUE_NONE, 'Create a new seeder file for the model'],

Laravel v6.7.0 code:
protected function getOptions()
    {
        return [
            ['all', 'a', InputOption::VALUE_NONE, 'Generate a migration, factory, and resource controller for the model'],

            ['controller', 'c', InputOption::VALUE_NONE, 'Create a new controller for the model'],

            ['factory', 'f', InputOption::VALUE_NONE, 'Create a new factory for the model'],

            ['force', null, InputOption::VALUE_NONE, 'Create the class even if the model already exists'],

            ['migration', 'm', InputOption::VALUE_NONE, 'Create a new migration file for the model'],

            ['pivot', 'p', InputOption::VALUE_NONE, 'Indicates if the generated model should be a custom intermediate table model'],

            ['resource', 'r', InputOption::VALUE_NONE, 'Indicates if the generated controller should be a resource controller'],
        ];
    }

Laravel v6.8.0 code:
protected function getOptions()
    {
        return [
            ['all', 'a', InputOption::VALUE_NONE, 'Generate a migration, factory, and resource controller for the model'],
            ['controller', 'c', InputOption::VALUE_NONE, 'Create a new controller for the model'],
            ['factory', 'f', InputOption::VALUE_NONE, 'Create a new factory for the model'],
            ['force', null, InputOption::VALUE_NONE, 'Create the class even if the model already exists'],
            ['migration', 'm', InputOption::VALUE_NONE, 'Create a new migration file for the model'],
            ['seed', 's', InputOption::VALUE_NONE, 'Create a new seeder file for the model'],
            ['pivot', 'p', InputOption::VALUE_NONE, 'Indicates if the generated model should be a custom intermediate table model'],
            ['resource', 'r', InputOption::VALUE_NONE, 'Indicates if the generated controller should be a resource controller'],
        ];
    }

If I rename 's' to 'se' (for example), then everything works fine:
            ['seed', 'se', InputOption::VALUE_NONE, 'Create a new seeder file for the model'],

Is it possible that command “php artisan make:model User -s” conflicts with php serve command “php -S localhost:8000” ???
Is it possible that “-s” is reserved from php?
One has “-s” and other has “-S”.

What causes that error?
How to bypass that error?
Can I somehow disable that 's' ?

Please fix that or help me with that ;)

Is it possible that command “php artisan make:model User -s” conflicts with php serve command “php -S localhost:8000” ???
Is it possible that “-s” is reserved from php?
One has “-s” and other has “-S”.

I have the same error. It is a package problem.
You should check that none of your package file inherits the ModelMakeCommand (for model generation) and use -s option.
Details :
For me, it is conflicting with a package (babenkoivan/scout-elasticsearch-driver).
Here :
https://github.com/babenkoivan/scout-elasticsearch-driver/blob/master/src/Console/SearchableModelMakeCommand.php
The SearchableModelMakeCommand use -s option to specify search rule.
It conflicts with the new inherited ModelMakeCommand class.
When I delete this option in the package, the error disappears and everything works fine.

I posted this report yesterday but it got marked as not a bug: #30866.

Same issue here, conflict with package babenkoivan/scout-elasticsearch-driver .

@julienarcin and I have proposed changes on the babenkoivan/scout-elasticsearch-driver repo. Just waiting for a review.

same problem for me. I m using scout-elasticsearch-driver too.
How can i run my project now?

It would probably be best to revert to the previous Laravel version until the changes are made to the scout-elasticsearch library.

Please open up an issue on the related package that's causing the problem. Revert back to v6.7.0 until they've addressed the issue.


Getting 500 when deployed to non-default Directory

I've deployed your solution manually (by creating resources and reading through deployment JSON file) to my client's Subscription. When I try to access the URL, I get 500 status message with details as:
Parameters: Connection String: [No connection string specified], Resource: https://management.azure.com/, Authority: . Exception Message: Tried the following 3 methods to get an access token, but none of them worked.
Parameters: Connection String: [No connection string specified], Resource: https://management.azure.com/, Authority: . Exception Message: Tried to get token using Managed Service Identity. Unable to connect to the Managed Service Identity (MSI) endpoint. Please check that you are running on an Azure resource that has MSI setup.
Parameters: Connection String: [No connection string specified], Resource: https://management.azure.com/, Authority: . Exception Message: Tried to get token using Visual Studio. Access token could not be acquired. Visual Studio Token provider file not found at "D:\local\LocalAppData\.IdentityService\AzureServiceAuth\tokenprovider.json"
Parameters: Connection String: [No connection string specified], Resource: https://management.azure.com/, Authority: . Exception Message: Tried to get token using Azure CLI. Access token could not be acquired. 'az' is not recognized as an internal or external command,
operable program or batch file.

Any help on how to resolve the same?

Need to enable Managed Service Identity. I don’t recommend manually deployment.


Updated from IDF 2019r1 to 2020r1 - Can't flash using esptool (IDFGH-3154)

Environment

Development Kit:      Custom Board
Module or chip used:  ESP32-WROOM-32
IDF version: v4.2-dev-1126-gd85d3d969
Build System:         [Make|CMake|idf.py]
Compiler version: xtensa-esp32-elf-gcc (crosstool-NG esp-2020r1) 8.2.0
Operating System:     macOS
Using an IDE?: No
Power Supply:  USB
Programmer: SparkFun FT231X Breakout

Problem Description
Before I updated the IDF to the latest version, make flash monitor used to work as expected. Now, it compiles, but when it tries to flash, it can't find the serial port specified in menuconfig.
`Toolchain path: /Users/aveluru/.espressif/tools/xtensa-esp32-elf/esp-2020r1-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: esp-2020r1
Compiler version: 8.2.0
Python requirements from /Users/aveluru/esp/esp-idf/requirements.txt are satisfied.
App "mqtt_tcp" version: v4.2-dev-1126-gd85d3d969
Flashing binaries to serial port '/dev/cu.usbserial-DN01QCY8' (app at offset 0x10000)...
esptool.py v3.0-dev
Serial port "/dev/cu.usbserial-DN01QCY8"
Traceback (most recent call last):
File "/Users/aveluru/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 3430, in
_main()
File "/Users/aveluru/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 3423, in _main
main()
File "/Users/aveluru/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 3087, in main
esp = chip_class(each_port, initial_baud, args.trace)
File "/Users/aveluru/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 261, in init
self._port = serial.serial_for_url(port)
File "/Library/Python/2.7/site-packages/serial/init.py", line 88, in serial_for_url
instance.open()
File "/Library/Python/2.7/site-packages/serial/serialposix.py", line 268, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port "/dev/cu.usbserial-DN01QCY8": [Errno 2] No such file or directory: '"/dev/cu.usbserial-DN01QCY8"'
make: *** [flash] Error 1`
make simple_monitor also can't find the port, so I assume this is an issue with esptool.
Toolchain path: /Users/aveluru/.espressif/tools/xtensa-esp32-elf/esp-2020r1-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc Toolchain version: esp-2020r1 Compiler version: 8.2.0 Python requirements from /Users/aveluru/esp/esp-idf/requirements.txt are satisfied. --- forcing DTR inactive --- forcing RTS inactive could not open port '"/dev/cu.usbserial-DN01QCY8"': [Errno 2] could not open port "/dev/cu.usbserial-DN01QCY8": [Errno 2] No such file or directory: '"/dev/cu.usbserial-DN01QCY8"' make: *** [simple_monitor] Error 1
If I run make and flash using the supplied flash command, it works as expected.
python /Users/aveluru/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port "/dev/cu.usbserial-DN01QCY8" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0xd000 /Users/aveluru/esp/esp-idf/examples/protocols/mqtt/tcp/build/ota_data_initial.bin 0x1000 /Users/aveluru/esp/esp-idf/examples/protocols/mqtt/tcp/build/bootloader/bootloader.bin 0x10000 /Users/aveluru/esp/esp-idf/examples/protocols/mqtt/tcp/build/mqtt_tcp.bin 0x8000 /Users/aveluru/esp/esp-idf/examples/protocols/mqtt/tcp/build/partitions.bin
The only way to see the serial output is through another program such as screen or pyserial

Hi @akhilv1, this issue was reported as https://github.com/espressif/esp-idf/issues/5124. Please check that thread for the temporary workaround and click subscribe there to get notified when the fix is merged.

Awesome, thanks for the quick reply, looks like specifying the port works well.


[Bug]: GET from server fail and crash

Current Behavior
When I try to get answer from server, I get empty reply from server and the server crashes.
Expected Behavior
When I try to get answer for a prompt Hello, It should return a proper reply, which in this case should be receive a hello message.
Steps To Reproduce
First I started the server:
python GPTCache/gptcache_server/server.py
Then I put and get:
❯ curl -X PUT -d "receive a hello message" "http://localhost:8000?prompt=hello"
❯ curl -X GET "http://localhost:8000?prompt=hello"
curl: (52) Empty reply from server

The server reports:
Starting server at localhost:8000
<IP_ADDRESS> - - [25/Apr/2023 15:02:06] "PUT /?prompt=hello HTTP/1.1" 200 -
OMP: Error #15: Initializing libomp.a, but found libiomp5.dylib already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://openmp.llvm.org/
[1]    49798 abort      python GPTCache/gptcache_server/server.py

Environment
I'm using:

Mac Intel
Pyhton 3.8
GPTcache from main branch - f3406ee

Though, everything works smoothly on ubuntu server.
Anything else?
No response

Somehow fix it by update conda.
For those who encounter the same issue, could refer to this


Fix Preact test to address performance oddity

Also probably best to add shouldComponentUpdate() { return false } to the wrapper otherwise parent renders will descend.

Thanks @developit I'll add the shouldComponentUpdate part too.