EditorConfig: init at 0.12.0

Motivation for this change
Following #18958 EditorConfig makes it easy to maintain the correct coding style when switching between different text editors and between different projects. The EditorConfig project maintains a file format and plugins for various text editors which allow this file format to be read and used by those editors. http://editorconfig.org/
Things done

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

[x] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

no tests are found. Either fix the test runner or disable the tests and include a comment explaining why.

in that sense:  #19170

the following enables test for this package:
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 3b1f890..60c856f 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -6182,13 +6182,23 @@ in modules // {
   };

   EditorConfig = buildPythonPackage rec {
-    name = "EditorConfig-0.12.0";
+    name = "EditorConfig-${version}";
+    version = "0.12.0";

-    src = pkgs.fetchurl {
-      url = "mirror://pypi/E/EditorConfig/${name}.tar.gz";
-      sha256 = "1ah5hnrjw8r3pq586rh1w1ykqpb2dwzhhjc04d0n95fza1a3k9zd";
+    # fetchgit used to ensure test submodule is available
+    src = pkgs.fetchgit {
+      url = "https://github.com/editorconfig/editorconfig-core-py";
+      rev = "refs/tags/v${version}";
+      sha256 = "0svk7id7ncygj2rnxhm7602xizljyidk4xgrl6i0xgq3829cz4bl";
     };

+    buildInputs = [ pkgs.cmake ];
+    checkPhase = ''
+      cmake .
+      # utf_8_char fails with python3
+      ctest -E "utf_8_char" .
+    '';
+
     meta = {
       homepage = "http://editorconfig.org";
       description = "EditorConfig File Locator and Interpreter for Python";

@Mic92 Thank you for your help !

Merged. Thanks!


Upgrade plist to v3.0.1 (CWE-400)

Motivation
Upgrades plist to v3.0.1 as the current version (v1.2.0) is vulnerable to a Regex DoS: https://snyk.io/vuln/npm:plist:20180219
Test Plan
Not necessary
Release Notes

[GENERAL] [BUGFIX][package.json] Upgrade plist to v3.0.1

Before I merge this, can you tell me why you think this does not need to be tested? Where is plist used? I am hesitant to land a PR that bumps a package by two major versions with no testing done.

@hramos I interpreted "Test Plan" to mean whether any changes to the tests need to be made. I tested these changes using yarn test and all of the related tests passed successfully

Closing in favor of #19373


Update access-reviews-external-users.md

Disable and delete external identities with Azure AD Access Reviews is GA (since Decembre 2020)

@gaubert-ms : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


Applying test cases to only resources from specific provider

Question:

Hi,
Following your example with tags I was wondering if, somehow you can apply tests only to the resources from a specific provider.
I saw this example in the docs, but it is not working for me:
Given I have any resource defined
When its provider_name is aws
...

When trying that with AWS Terraform resources mixed with Datadog Terraform resources I get:
* SKIPPING: Can not find aws provider_name in aws_iam_policy.dynamodb_read_policy, aws_instance.my_instance, aws_security_group.sg_instance,

So I was wondering if there is any way to filter by provider.
Thank you!

OK, so I guess it is just a matter of improving the documentation... I made it using:
When its provider_name is registry.terraform.io/hashicorp/aws

Thank you, I will close the issue :D


Deploy on Heroku (without Docker), err: "lstat /tmp/tmp.pl6MR9ZVFf: no such file or directory"

Description
I'm trying to deploy on Heroku without Docker (simple dyno, old way).
Steps to Reproduce the Problem

New folder on my PC
buffalo (0.13.7) new myApp (with Dep)
deleted (or renamed) go.mod file (Heroku GoMod is not fully supported today)
new app on heroku from browser dashboard
heroku git:remote -a myHerokuApp
set GO_ENV = production
set SESSION_SECRET = 123456
set DATABASE_URL = someUrl
git push heroku master

Expected Behavior
App should work ok.
Actual Behavior
After the git push heroku master everything ok, build ok, the app start and after 1 second it crash!
This is the Heroku log:
app/api: Build started by user<EMAIL_ADDRESS>heroku/web.1: State changed from crashed to starting
heroku/web.1: Starting process with command `myApp`
app/api: Deploy 12345678 by user<EMAIL_ADDRESS>app/api: Release v123 created by user<EMAIL_ADDRESS>heroku/web.1: State changed from starting to crashed
heroku/web.1: Process exited with status 1
app/web.1: level=error msg="lstat /tmp/tmp.pl6MR9ZVFf: no such file or directory"
app/web.1: level=info msg="Starting application at <IP_ADDRESS>:20382"
app/web.1: 2018/12/04 23:02:02 context canceled

What about this error: "lstat /tmp/tmp.pl6MR9ZVFf: no such file or directory"?

Duplicate of gobuffalo/buffalo#1485


Add package lock in client directory for frontend

#39 Missing package-lock.json in client directory
package-lock.json signifies what package should be used with this project else in future it can break due to packages upgrade. We should keep this file updated whenever any change is done in package.

@harshareddy794 , @mohit355 , @aavishkarmishra : Can you please review this


Increased jupyter-relay chunk size to 8MB

I have not found the root cause of this issue, but increasing the chunk size to something ridiculously high, like 8MB should make this error extremely unlikely.
What I found during the investigation is that the messages are all sent correctly, but only the first 2000 are received by KDR.
In some rare instances, when multiple requests are fired almost simultaneously, less than 2000 are received. This has led me to believe that the limit is on the receiving end, so we cannot just make sure that every single request is less than 2000 messages, since all the requests are fighting for the same 2000 spots. So I felt like it is safest to up the chunk size to something very, very high. At least until the root issue is found and resolved.

Frustrating that the root cause is hard to find here, but I just made up the initial chunk size so I think the approach here is the way to go for now. You just had a complaint from flake8 about the code formatting here.
(On that note, I think that it would be nice to transition all of our Python codebases to be auto-formatted using black. I've found that using the "format on save" mode in my editor (VS Code, but most other editors support it these days I think) is very helpful for achieving this, but I keep on turning the mode on and off since I work with a ton of legacy codebases for which I definitely do not want auto-formatting.)


Fix integer log for vsphere template defaulting

Issue #, if available:
Description of changes:
Fix the log message to show the defaults properly as it was showing as below before:
non-string key argument passed to logging, ignoring all later arguments	{"invalid key": 22}
Warning: VSphereMachineConfig DiskGiB cannot be less than %s. Defaulting to %s.

new:
Warning: VSphereMachineConfig DiskGiB cannot be less than 22. Defaulting to 22.

Testing (if applicable):
functional testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/retest


AlternatingPositionCrossover throw IndexOutOfRangeException

Describe the bug
Using the AlternatingPositionCrossover cause System.IndexOutOfRangeException
To Reproduce
I've made a sample project, please give a look
GeneticSharpTest.zip
Expected behavior
Should not throw an exception
Version:
2.5.1

The error occurs inside the CreateChild method:
for (int i = 0; i < firstParent.Length && childGenesIndex < firstParent.Length; i++)
{
	AddChildGene(childGenes, ref childGenesIndex, firstParent.GetGene(i));
	AddChildGene(childGenes, ref childGenesIndex, secondParent.GetGene(i));
}

If childGenesIndex is in the last position and the first AddChildGene increment it, the IndexOutOfRangeException will happen in the second AddChildGene call.
I added a second check to fix the problem:
for (int i = 0; i < firstParent.Length && childGenesIndex < firstParent.Length; i++)
{
	AddChildGene(childGenes, ref childGenesIndex, firstParent.GetGene(i));

	// The childGenesIndes could be incremented by the previous AddChildGene call
	if (childGenesIndex < secondParent.Length)
		AddChildGene(childGenes, ref childGenesIndex, secondParent.GetGene(i));
}

A hotfix is on the way on the to the AppVeyor, in a few minutes the 2.5.2 version will be available on NuGet.
Thanks for the bug report!


let user input date from keyboard

Some times people want to directly input a date from keyboard, can add this?

@futurist
One of the really big goals of this project was to eliminate the possibility of invalid dates, so user text input was purposefully excluded. If this issue is cited frequently by others, I'll re-consider. For now I'll punt, but I'll also leave the issue open.
Obviously you're free to fork and do this yourself, and of course I'll consider any PRs. Thanks.


Improve doc link with cocoapods

Summary

Improve documentation using Cocoapods linking without need the manual linking
Test Plan

Follow this steps and this should work
What's required for testing (prerequisites)?
What are the steps to reproduce (after prerequisites)?
Compatibility

OS
Implemented

iOS
✅❌

Android
✅❌

Checklist

[ ] I have tested this on a device and a simulator
[X] I added the documentation in README.md
[ ] I mentioned this change in CHANGELOG.md
[ ] I updated the typed files (TS and Flow)
[ ] I added a sample use of the API in the example project (example/App.js)

hello, thank you for the PR! If you take a look at the NOTE in https://github.com/react-native-community/google-signin/blob/master/docs/ios-guide.md#1-installation you'll see that we don't recommend cocoapods installation in RN < 0.60 - and I'd prefer to keep it that way. It appears people understand what is written there as not many people were reporting issues regarding this. I think it's safe to say that most RN users now use autolinking so I'd prefer to keep this document as-is, and in the future we'll remove any pre-0.60 information so that the guide is kept clean. Thanks!


Does this support multiple languages?

I'd like to use this for a project where multi-language support is important.  I can't use whisper-timestamped because it's Affero GPL.  But it points out some risks that concern me with WhisperX:

The need to find one wav2vec model per language to support.
The need to normalize characters in whisper transcription to match the character set of wav2vec model. This involves awkward language-dependent conversions, like converting numbers to words ("2" -> "two"), symbols to words ("%" -> "percent", "€" -> "euro(s)")...
The lack of robustness around speech disfluencies (fillers, hesitations, repeated words...) that are usually removed by Whisper.

So I'm inclined to try your project.  Thank you for the MIT license choice.  Should I expect your project does not suffer from the limitations listed above for WhisperX?
Also, if you can, are there any pros / cons to using your project vs word_level_ts?

Yes, it supports multi-language because it is merely extra logic that runs on top of an whisper instance. Since this project does not use other models, it does not suffer from the first two limitations. But it does lack of robustness around speech disfluencies. The word-level timestamps also lack robustness. But then I haven't evaluate it against other methods. So compared to the latter project you mentioned, a pro would be that stable-ts does not rely on another model whereas that project seems to use silero-vad from a quick glance.

Does it support whisper translation and transcription?
How can I set the output language?

Yes, it supports translation and transcription. It accept all the arguments that whisper accepts.
To specific transcription language: language='English' for python; --language English for cli


problems browsing through dlna directories

Hello,
i'm using the latest version of your plugin, but having problems to browse through the folders of my dlna (minidlna).
I have to mention, that the same config does work without any problems on windows 10 but there is a problem on linux. It seems that it has to do with the slicing of '\n'.
I already changed:
221  var server = new DLNA_Server(sp[i].slice(0, -1), sp[i+1].slice(0, -1));
to
221  var server = new DLNA_Server(sp[i], sp[i+1]);
With this change, i was able to navigate to the first level of the server, and actually choosing it. The name of the server i want to browse is RPi3 but before the change it was only displayed as RPi and I was not able to go deeper into the structure behind it. Now I can select it and see the second level but there are also some chars missing and i can not choose "Browse Folder" or any other selectable items. Please see also attached screenshot, which shows the missing character for "Browse Folders", "Music", "Pictures"  and "Video" - missing always the last character.

@daebenji I figured out what was going on and have fixed the issue. Try updating to the new release: V3.1.3 and let me know if it works.

hi, it acually did not change for me.
you can have a look at my screencast at https://odysee.com/@Donk:4/mpvDLNA-v0.1:c
It stucks when selecting the miniDLNA Server. Before I was able to go on level deeper. I took the new release and just changed the controls to vim bindings.

Ok. That video should be pretty helpful because it looks like the UI froze up which was not something I experienced when testing on Ubuntu. I'll try to look into that as well.

@daebenji I still haven't been able to reproduce your new issue. What version of linux are you running?
Also, I just pushed a new version with more logging options so could you run mpv with the argument --msg-level=mpvDLNA=trace and post what it outputs when it gets stuck? Hopefully this will help make it more clear what exactly is going on behind the scenes when it crashes.

Hi, I'm running manjaro (archlinux) and DWM as Window Manager.
I'm not able to see any output when providing --msg-level=mpvDLNA=trace as argument... Maybe you can assist me, how to use call the functions from command line?

I figured it out myself. I was the problem. Now I have no problems to browse and play content from my dlna server.
Thanks for your support!


Implement Collections

So that Objects can be added to one or more for synchronization w/ Collections pomegranate.

Associate via multi-select dropdown

Be aware of changes to CC from this PR: https://github.com/projecthydra-labs/curation_concerns/pull/534


latency

Hi,
I made measurements on nexus 4 on the audio-echo project from google ndk examples and I got the following result:

The first line is the recommended parameter of the system(fast path). Could you explain the meaning of the fast path ?
Every time , I multiplied by whole multiples of 10 the buffer size.
My question is: How can I explain the differance of latency ? Why is there no corroletion of the latency ?
Thanks,
Alex

+@philburk for latency question

I already answered the question here.
https://groups.google.com/forum/#!topic/android-ndk/uDSvZ6z9bDQ

Hi,
I asked question again:
How can I explain big difference between first line and second line ?
Can you point me to good acticle that explain meaning of the fast path ?
Thanks,
Alex
בתאריך יום ד׳, 10 באוק׳ 2018 ב-20:31 מאת Phil Burk <
notifications@github.com>:

I already answered the question here.
https://groups.google.com/forum/#!topic/android-ndk/uDSvZ6z9bDQ
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/googlesamples/android-ndk/issues/580#issuecomment-428660663,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYlQdkoGP71K3th-DMkPQ7v5HvlakU3Aks5uji7ngaJpZM4XMm2m
.

I think this fast path was part of android low latency initiatives, some related doc could be found here:
https://developer.android.com/ndk/guides/audio/audio-latency#output-latency
Under neath the implementation is that:

frequency
buffer size
no signal processing needed


Use code written for material-ui.com

When I clone the repo and run the code I get a nice website. I tried to build a website based on the code, but its too complex. Could you please publish a skeleton of material-ui.com, so we can use that already public code.

@kurtwilbies You can find examples to get started in https://material-ui.com/getting-started/example-projects/.


Implement CR deletion using OpenshiftLibrary instead of UI

In Tier2 runs we see often failing the step of deleting ISV's CustomResource, so this PR wants to improve that by replacing UI navigation with CLI for performing that step.
For pachyderm, it also replaces project creation/deletion with OpenshftiLibrary since it is a ery easy and quick change.
This is just a first piece of the final implementation where the install/uninstall process of ISV will be completely done via CLI instead UI.
A note about openvino
You'll see the code for Openvino is slightly different, because the default CR name is tide to a version (i.e., v2022.3), so there is an higher probability this could change over time and our teardown would fails. So, until we get to Install using CLI (where we will input the CR name), the Openvino teardown will delete all the CR instances of openvino. In theory, there should be only one which was created by the test itself.
Adding now the input of a custom CR name (or just fetching the default one from the UI) would add just an additional point of failure in the UI testing which is not very stable over OCP versions

Jenkins job for ODS-760, ODS-675, ODS-1137 and ODS-1161: 1535 RUNNING


Please make individual EasyRPG games bootable from EmulationStation

Hey! As the title says, I'm looking to find out if you would be willing to make EasyRPG games bootable from EmulationStation, instead of having to go into the separate EasyRPG menu in the ports section. I'd be so happy if all of the individual EasyRPG games were on EmulationStation in an EasyRPG collection separate from ports and if they could have their own coverart, video snaps and metadata!
I appreciate all the work you're doing and for reading user requests like these! You're awesome!

This has been accommodated with today's online update.

That's so cool! Thank you so much!


New feature: Free workers

First of all thanks for the workless gem, it helped us get going with heroku delayed_job.
However now we are i a situation where we would like to speed up some synchronous jobs. Our jobs are currently useing half of its time waiting for a new worker to be spawned.
I would there for request that workless supports having a number of free workers available for new jobs to use. We would for example in our case have (jobs + 1) workers.  Is this a new idea or has it been discussed before?

Thanks for this thorough feedback! We acctually ended up without a worker scaler at all. Setting the number of workers to 1 or 2 depending on load.
Thanks any way.


Discover settings file from given path

Partially resolves #518

This change is

README.md, line 221 at r1 (raw file):

Note that providing settings explicitly takes higher precedence over this implicit mode. Sample settings files are provided here.

Point to the Settings file in the release branch - aka Master

Comments from Reviewable

Engine/Commands/InvokeScriptAnalyzerCommand.cs, line 38 at r1 (raw file):

        "ScriptAnalyzer",
        DefaultParameterSetName="File",
        HelpUri = "http://go.microsoft.com/fwlink/?LinkId=525914")]

Minor: This help uri redirects to GitHub page. Wondering if a fw link is really required OR we can point to Github directly.

Comments from Reviewable

Reviewed 8 of 8 files at r1.
Review status: all files reviewed at latest revision, 2 unresolved discussions.

Comments from Reviewable

Review status: 7 of 8 files reviewed at latest revision, 2 unresolved discussions.

README.md, line 221 at r1 (raw file):
Previously, raghushantha (Raghu Shantha [MSFT]) wrote…
> Point to the Settings file in the release branch - aka Master

Done.

Comments from Reviewable

Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 2 unresolved discussions.

Comments from Reviewable

Comments from Reviewable

@raghushantha Thanks!


Review fix

Description
Fixed inconsistent state when an order goes to Manual Review in Case Management. Orders stay in payment_review so they cannot be cancelled when a CANCEL_OR_REFUND notification is received.
Tested scenarios

Place an order. The status state of that order must be payment_review (for example for us happens when using adyen_oneclick)
Receive a notification with Manual Review
State is still on pament_review, should be pending_payment

Fixed issue:  #1068

Hi @MarcoPierozziTriboo,
Thanks for the PR! This looks good to me will check with the rest of the team and will merge if everything is checked.
Regards,
Rik
Adyen


Chore/claim summary mobile modification

Modified the claim summary page to look cleaner on mobile and added information icons to match the mot dvsa styleguides.
Checklist

[ ] Unit tests
[ ] End-to-End tests
[ ] Code coverage checked
[ ] Coding standards
[ ] Error Handling
[ ] Security/performance considered?
[ ] Deployment changes considered?
[ ] README updated

re working on it


UnityUI near interaction pointer events are mouse events, not pointer events.

Overview
The MixedRealityInputModule translates MRTK pointer events into input events for the Unity UI. We currently translate all MRTK pointer events (far and near) to Unity UI mouse events.
Expected Behavior
Near pointer events get translated into touch events.
Actual Behavior
Near pointer events get translated into mouse events.
Steps to reproduce
(Links to sample github project preferred)
Unity Editor Version
2018.3.1.f
Mixed Reality Toolkit Release Version
MRTK v2

Assigning to daniel

@thalbern this issue is quite old. Do you know if it's still relevant?

Closing as the relevant PR seems already merged. Please re-open if repros


docs: Fix RTD configuration for v2

RTD recently cut off old configuration file style and these additions were needed.

Preemptively merging because it's only docs and it verifiably fixes something broken.


can't update plugin version

Hi
I just did
bower update ionic-datepicker --save

but when I do ionic plugin list it displays an old version :
cordova-plugin-datepicker 0.9.2 "DatePicker"

it should be the last current version 1.2.1.
Any idea ?
thanks

This is not a cordova plugin. It's purely ionic plugin. Try bower cache clean and then install again using bower install ionic-datepicker.


testing for header value weird behavior

Steps to reproduce the problem:
below test is always false.
def request(ctx, flow):
    if flow.request.headers.get( 'content-type' ) is "application/x-amf" :

while this code works as expected:
def request(ctx, flow):
    if flow.request.headers.get( 'content-type' ) == "application/x-amf" :

Mitmproxy Version:
0.15
Operating
System: Linux potpaL 4.3.0-1-amd64 #1 SMP Debian 4.3.5-1 (2016-02-06) x86_64 GNU/Linux

@internety I think that's standard Python semantics. Reference: http://stackoverflow.com/a/13650309


fix(utils): Switch base58 lib. Fixes ipfsHashToBytes32

whoops sorry, I meant to click Needs Changes for the type change


compiler-rt: build builtins on darwin

Description of changes
On Darwin, compiler-rt is missing builtins. There is supposed to be a libclang_rt.osx.a, but it is missing completely. I'm a little surprised this wasn't an issue before, but I'm trying to build some code that uses if (@available(...)) which is breaking, because it uses __isPlatformVersionAtLeast from compiler-rt.
I believe this is down to the CMake configuration using xcrun to determine what to build for the target SDK, and we simply didn't provide it and ignored the errors. In #185969, I added the necessary functionality to our shell-based xcrun, and more importantly made it available separately from xcbuild as xcbuild.xcrun. This hopefully means it's not an objection to make it part of Darwin stdenv, as it's just a bunch of Nix-generated scripts and files.
I'm also patching out a check that uses PlistBuddy. We could add the field to our SDKSettings.plist, but the output of querying an array with PlistBuddy from facebook/xcbuild is different from Apple's PlistBuddy. I felt it was easier to patch the CMake check.
Finally, I removed the subtitute rule that disabled ARM64, because it is obviously essential. I believe this was just a workaround for the other issues.
I tested buils of compiler-rt itself on x86_64-darwin, versions 12, 13 & 14. On aarch64-darwin, I did a full rebuild of stdenv including version 11, and also tested version 13 (part of my intended build).
Things done

Built on platform(s)

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

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

should be good to go to staging ; make sure to follow status of staging since sometimes these kind of stdenv changes can cause unforeseen consequences

Thanks for bringing this up, I was wondering where I can follow this? It doesn't look like Hydra builds staging anymore, so is the idea to keep an eye out for the next round of stabilization on staging-next?

Ping! Is this okay to merge?

This merge introduced an evaluation issue:
$ nix eval -f pkgs/top-level/release.nix --arg supportedSystems '[ "aarch64-darwin" ]' stdenvBootstrapTools.aarch64-darwin.dist.outPath
error: infinite recursion encountered

       at pkgs/stdenv/generic/make-derivation.nix:295:14:

          294|       args = attrs.args or ["-e" (attrs.builder or ./default-builder.sh)];
          295|       inherit stdenv;
             |              ^
          296|
(use '--show-trace' to show detailed location information)

There's a longer sad story for that job.  By an accident it wasn't evaluated and built by Hydra for a few months – and in the meantime it stopped working.  Fixing it completely would be nice, as normally the nixpkgs-22.11-darwin channel would block on it (soon to be created).


Routing on the Dashboard

It'd be great to have a dashboard widget for routing available. Furthermore it'd be very helpful to see the state of BGP or OSPF neighbours directly on the neighbours tab.

This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository,
please read https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue,
just let us know, so we can reopen the issue and assign an owner to it.


Fix for dynamic methods defined as [class, method]

The following breaks HasRelationships concern:
$model->addDynamicMethod('myMethod', [static::class, 'myMethod']);

@mjauvin we will need a unit test to determine that a relation defined in the array callback format can be detected as a relation - your tests so far only seem to be "failure" states.

Yes, the tests so far are there to trigger the case that was failing before I made the PR.

@mjauvin we will need a unit test to determine that a relation defined in the array callback format can be detected as a relation - your tests so far only seem to be "failure" states.

Done!


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_596c0cpxzt/clone/recipe/meta.yaml:16: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_596c0cpxzt/clone/recipe/meta.yaml:21: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_596c0cpxzt/clone/recipe/meta.yaml:37: missing_license_family: The recipe is missing the about/license_family key.
ERROR: /tmp/abs_596c0cpxzt/clone/recipe/meta.yaml:37: missing_dev_url: The recipe is missing a dev_url
ERROR: /tmp/abs_596c0cpxzt/clone/recipe/meta.yaml:37: missing_documentation: The recipe is missing a doc_url or doc_source_url
WARNING: /tmp/abs_596c0cpxzt/clone/recipe/meta.yaml:37: missing_description: The recipe is missing a description
Errors were found


markers plugin: support for drag & drop functionality

Marker plugin: Implement drag & drop functionality
Add drag & drop functionality on markers defined as draggable.
Short description of changes:
Allow to set markers as draggables to allow to drag&drop it, the updated time will be set in the marker time property and a new marker-drop event will be fired.
Breaking in the external API:
None, only markes set as draggable can be dragged
Breaking changes in the internal API:
None
Todos/Notes:
Update plugin doc
Related Issues and other PRs:
None

Hello ! I've needed to add new functionality to set some bookmarks as draggables and this is my proposal. I hope my contribution will be interesting for the project.
It's my first contribution and I'm open to make the necessary modifications to addapt the code to the internal api and the project's code style.
Feel free for comment, questions or suggestions.
cheers!

Coverage remained the same at 82.039% when pulling 483d9e0fdd5410c7a2071ac985ad72beea0044ca on oesteve:marker-drag_drop into 00b9f7e4dcd04f66b5c7a3ae552aa9fb6ed588b4 on katspaugh:master.

looks like there's a merge conflict

const width = markerElement ? markerElement.width : this.markerWidth;

const width = markerElement ? markerElement.width : this.markerWidth;
Whether the value can be changed to markerElement.clientWidth？


PickByZoneLabel with range hangs

When calling PickByZoneLabel with any range (even a single id), visit will hang for a very long time (10+ minutes). So far, I've only seen this with sslide14ball_l.plt.mili. I haven't yet been able to reproduce this with any other datasets (I've tried mili and silo), but I haven't spent too much time on that.
What I've found so far:

ViewerQueryManager appears to perform the picks without issue.
avtPickByZoneQuery also appears to complete without apparent issues.
visitmodule.C hangs in PickByZoneLabel when calling Syncrhonize()

To reproduce:
If I haven't merged the mili update yet, checkout task/maguire7/2019_01_mili_plugin_rewrite and run the following:
def PickRangeLabel():
    OpenDatabase(data_path("mili_test_data/single_proc/sslide14ball_l.plt.mili"))
    TurnOffAllAnnotations()
    AddPlot("Pseudocolor", "Primal/shell/bend_magnitude")
    DrawPlots()
    options = {}
    options["element_label"] = "shell"
    options["return_curves"] = 1
    options["start_time"] = 0
    options["end_time"] = 2
    options["pick_range"] = "4-5,9"
    options["vars"] = "OriginalZoneLabels"
    output_dict = PickByZoneLabel(options)

In most cases, the pick range works perfectly fine. When using the sslide14ball dataset, I see the hanging behavior.

It looks like PickByZoneLabel isn't returning the actual value of the variable. It's returning the correct incident nodes and zone centering, but the variable value is missing. This may have something to do with the issues I see with the sslide14ball dataset, but that's not quite clear yet.

Oddly, if do_time is enabled, it doesn't seem to hang. There also aren't any results returned when do_time is enabled, which may be related.

When creating the output map node (PickAttributes::CreateOutputMapNode), there is an issue with including OriginalZone/NodeLabels as a variable that causes the hang.
Furthermore, this also brought to light another issue that I hand't caught before; The returned dictionary of PickByZone/NodeLabel has some odd values in it and is even missing information for pick ranges. Chad had mentioned this type of behavior in the past, but we were not able to reproduce it at the time.
The Issue:
within PickVarInfo::CreateOutputMapNode, there is a case that handles label types. Basically, there is an array of "values" that equates to being and array of the individual characters of the node/zone label. This array is iterated over, and each char is appended to an std::string which, once fully constructed, becomes the value of the map node.
The original node/zone labels themselves are all const character arrays of a fixed length because of VTK format requirements, which means that the last X amount of characters in this "values" array is going to be a bunch of null terminating characters. Appending all of these null characters to the std::string being constructed appears to cause the odd behaviors seen in the returned map nodes, and, in the case of this one dataset, it also is the cause of the indefinite hang.
Checking for the null terminators and exiting the std::string construction at that time resolves all issues.
I'll clean this up and get the fix in soon.


in WithX509Identity it 'll be nice to load cert/key through path

Like "func WithClientCertificateFile(certPath, keyPath string) Option" it would be nice to be able to load cert/key to X509 identity:
WithX509Identity(CertPath, keyPath) Option
Is it a rapid alternative to load cert/key ?
Thank's

I found how (but I must cast []byte to ua.ByteString?):
cert, err := tls.LoadX509KeyPair("./loki.crt", "./loki.pem")
if err != nil {
fmt.Printf("Error opening certs. %s\n", err.Error())
}
localCertificate := cert.Certificate[0]
localPrivateKey, _ := cert.PrivateKey.(*rsa.PrivateKey)
// open a connection to server running locally
ch, err := client.Dial(
	ctx,
	"opc.tcp://localhost.localdomain:48010",
	client.WithClientCertificate(localCertificate, localPrivateKey),
	client.WithInsecureSkipVerify(), // skips verification of server certificate
	client.WithX509Identity(**ua.ByteString(**localCertificate), localPrivateKey),


Lock swims around when constrained to a controller ?

Working to attach a dynamic-body to the controller so it can be picked up & thrown around...
After poking around a bunch of code / issues / examples (extras grab.js, super-hands, aframe-physics-extras)
I saw that the general suggestion is to use a lock constraint.. but have noticed that the locked body lags/swims around a bunch (which invokes motion sickness for me). This is present in a lot of the examples I'd found around the web as well.
Eventually whittled down to a dead simple example that makes me believe it is the constraint?
<a-entity static-body="shape: sphere; sphereRadius: 0.2;" hand-controls="left" id="left-hand"></a-entity>
<a-box dynamic-body constraint="target: #left-hand; type: lock;" width=".2" height=".2" depth=".2" color="blue"></a-box>
Motion captured demonstration:
https://free-budget.glitch.me/
Try in VR
https://free-budget.glitch.me/?avatar-replayer-disabled
Thoughts? Am I missing something?
I'm going to start looking around the constraint code.
Physics system update rate issue? Glitch in the constraint? If no, wondering if there a special case that could be implemented (ala kinematic-body)? Seems like a rock solid grab is pretty important for A-Frame (thinking of how influential VRTK is for Unity, and how close superhands is to matching it).
Considering a workaround that uses a non-physics grab system I made, then copying over the forces of a hand-attached dynamic body when a grab release is fired.
(Implemented my own grab system for fun/education before I attempted to add any physics and I got it working pretty well. Just using a naive tick-based implementation, where I continuously update the grabbed object’s position and rotation to follow a hand.
Started by trying to do reparenting in the DOM, then various THREE level manipulations via  https://github.com/aframevr/aframe/issues/2425, but hit different walls in those directions)
Let me know what ya think / thanks for all the work on this lib!

Thanks for the demos, having motion-capture makes this so much easier. 😅
The looseness of the constraint is inherent in the CANNON.Constraint implementation as far as I can tell. There is a maxForce property on the constraint, and you would think that increasing it would limit that, but it doesn't seem to change anything when I increase it further.
The most recent release (3.0.0) allows you to change the type of a body after it has been defined. Haven't tested this but I think your best bet would be: (1) use body="type: dynamic; mass: 5" instead of the dynamic-body component, and call setAttribute('body', {type: 'static'}) when the object is grabbed. You can then set its body.position arbitrarily. May also want to set the body's rotation and velocity to get realistic collisions.
Reparenting in the DOM is iffy, the physics system has no scene graph and everything is done in world coordinates — my implementation of that conversion is not perfect I don't think, and in any case slows things down. Best to keep physics stuff at the root of the scene where possible.
At some point I'd like to investigate AmmoJS or OimoJS further, as alternatives to CannonJS, perhaps they won't have this issue.


Fix Android images opening in document viewer

When allowEdit is false, android opens the document viewer instead of photo gallery.
The change uses ACTION_PICK in both cases, fixing the issue.

Shouldn't we use ACTION_GET_CONTENT in both cases instead of ACTION_PICK?
@dortzur, could you please rebase you changes before merging.
Also before we can proceed with merging thi, could you please file it as described in CONTRIBUTING.md

Nah, I'll probably just wait it out until I can move to React Native.
Thanks anyway.
On Thu, Oct 15, 2015, 13:43 Vladimir Kotikov<EMAIL_ADDRESS>wrote:

Shouldn't we use ACTION_GET_CONTENT in both cases instead of ACTION_PICK?
@dortzur https://github.com/dortzur, could you please rebase you
changes before merging.
Also before we can proceed with merging thi, could you please file it as
described in CONTRIBUTING.md
https://github.com/apache/cordova-plugin-camera/blob/master/CONTRIBUTING.md
—
Reply to this email directly or view it on GitHub
https://github.com/apache/cordova-plugin-camera/pull/85#issuecomment-148348112
.


tf.scatter_nd_update - 'Tensor' object has no attribute '_lazy_read'

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Linux Ubuntu 16.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):
source
TensorFlow version (use command below):

== cat /etc/issue ===============================================
Linux 3bed2f328777 4.13.0-38-generic #43~16.04.1-Ubuntu SMP Wed Mar 14 17:48:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
VERSION="16.04.5 LTS (Xenial Xerus)"
VERSION_ID="16.04"
VERSION_CODENAME=xenial

== are we in docker =============================================
Yes

== compiler =====================================================
c++ (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

== uname -a =====================================================
Linux 3bed2f328777 4.13.0-38-generic #43~16.04.1-Ubuntu SMP Wed Mar 14 17:48:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

== check pips ===================================================
numpy (1.14.5)
protobuf (3.6.1)
tensorflow (1.10.0)

== check for virtualenv =========================================
False

== tensorflow import ============================================
tf.VERSION = 1.10.0
tf.GIT_VERSION = b'unknown'
tf.COMPILER_VERSION = b'unknown'
Sanity check: array([1], dtype=int32)

== env ==========================================================
LD_LIBRARY_PATH /usr/local/cuda/lib64/stubs:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64/stubs:/usr/local/cuda/lib64/stubs:/usr/local/cuda/extras/CUPTI/lib64:/lib/amd64/server/:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server:/opt/boost/lib:/opt/conda/lib/:/usr/local/cuda/lib64/:/opt/conda/lib/R/lib/:/usr/local/nvidia/lib64/:/usr/local/nvidia/lib:/lib/x86_64-linux-gnu:/usr/local/cuda/extras/CUPTI/lib64:/usr/lib/x86_64-linux-gnu:/opt/opencv/lib
DYLD_LIBRARY_PATH is unset

== nvidia-smi ===================================================
Wed Aug 29 19:57:14 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 396.26                 Driver Version: 396.26                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 108...  Off  | 00000000:01:00.0  On |                  N/A |
|  0%   41C    P0    76W / 250W |    708MiB / 11177MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
+-----------------------------------------------------------------------------+

== cuda libs  ===================================================
/usr/local/cuda-9.2/targets/x86_64-linux/lib/libcudart.so.9.2.148
/usr/local/cuda-9.2/targets/x86_64-linux/lib/libcudart_static.a

1080Ti

Exact command to reproduce:

import tensorflow as tf

a = tf.random_uniform(minval=0, maxval=9, shape=[], dtype=tf.int32)
img = tf.zeros([10], dtype=tf.int32)
img_z = tf.scatter_nd_update(img, a, tf.zeros_like(a))

You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
Describe the problem
I am not able to update a variable using tf.scatter_nd_update with indices/updates coming from Tensors tf.random_uniform. In another part of my code I use indices and updates coming from tf.nn.top_k and that works fine.
Source code / logs
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-9-ed4c565a2efd> in <module>()
      3 a = tf.random_uniform(minval=0, maxval=10, shape=[], dtype=tf.int32)
      4 img = tf.zeros([9], dtype=tf.int32)
----> 5 img_z = tf.scatter_nd_update(img, a, tf.zeros_like(a))
      6
      7 with tf.Session() as sess:

/opt/conda/lib/python3.6/site-packages/tensorflow/python/ops/state_ops.py in scatter_nd_update(ref, indices, updates, use_locking, name)
    357     return gen_state_ops.scatter_nd_update(
    358         ref, indices, updates, use_locking, name)
--> 359   return ref._lazy_read(gen_state_ops.resource_scatter_nd_update(  # pylint: disable=protected-access
    360       ref.handle, indices, ops.convert_to_tensor(updates, ref.dtype),
    361       name=name))

AttributeError: 'Tensor' object has no attribute '_lazy_read'

We can close it. Wrapping img in tf.Variable() solved the issue. Although I am not sure if that is the way to do when in my application img comes from the Dataset and the whole function that ends with scatter_nd_update is a part of the pipeline (called with ds.map()).
I think we can close the ticket.

I meet same error when I use Variable on Colabolatory (tf ver:1.14).
Jupyter note shows:
https://github.com/IAMAl/QNet/blob/master/QNet.ipynb

If I wrap img in tf.Variable then I get a new error.
 `ValueError: Shape must be at least rank 1 but is rank 0 for 'ScatterNdUpdate' (op: 'ScatterNdUpdate') with input shapes: [10], [], [].`

I am trying to use tf.scatter_nd_update by setting up a graph and use it in a loop while new values for attributes of tf.scatter_nd_update are supplied using a feed_dict. Any idea how to do this?


Add direct download links

Show a link for the ipa downloads so you don’t have to click share, open the appdb.to page in safari, then click the link from there. I use appdb to find ipa’s to sideload with scarlet once I’ve reached appdb’s app limit

The

Just click the cell instead of the INSTALL button and it will open the url in a in-app browser that can be used to share the link but also to download the file to the local library, too.


feat(alias loader): make compatible with module.registerHooks

This now works:
import module from 'node:module';
import * as aliasLoader from '@nodejs-loaders/alias';

module.registerHooks(aliasLoader);

as well as the current behaviour:
import module from 'node:module';

module.register('@nodejs-loaders/alias', import.meta.url);

Note that not all of our loaders can be compatible with module.registerHooks because some are async.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>0
Details

7 of 8 (87.5%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.009%) to 96.918%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

packages/alias/alias.mjs
7
8
87.5%

Totals

Change from base Build<PHONE_NUMBER>1:
0.009%

Covered Lines:
529

Relevant Lines:
537

💛  - Coveralls

Just to be sure it's will work for both ?

Maybe document theses behaviour on package readme

Just to be sure it's will work for both ?

I'll add an e2e test. I know it does though because I checked it via correct-ts-specifiers 🙂

Maybe document theses behaviour on package readme

Good idea 💡

@AugustinMauroy good to land?


View create test set with an api does not work

Describe the bug
Go to test set, click create test set with an API. You will not find the code snippets that are expected to be there. See the screenshot

Hi @mmabrouk, I have assigned myself to take this up.


fix: Wrong 404 check while mode 'only'

We should return 404 while mode = 'only' and page does not have amp prefix.

When mode == only it means that all routes treat as AMP and there no need to prefix routes with /amp.

When mode == only it means that all routes treat as AMP and there no need to prefix routes with /amp.

Ok, but there is no need to deny /amp prefix too.
For example, i use mode === false as default, but for one dynamic route with /amp prefux use mode === only.
It's allow me to separate amp and non-amp page components.

Denying invalid routes is inevitable, If we do not deny these routes they are served as an exact copy of the page. Especially it is important to deny these routes to prevent static generation.
I think you are doing it wrong, In order to achieve your goal change the amp to hybrid in post/_id and amp/post/_id


SSM: Missing parameters for certain regions

Moto fetches SSM parameters from AWS and saves them at moto/ssm/resources/ami-amazon-linux-latest. However, the files are missing for the following regions:

ap-southeast-4
ca-west-1
il-central-1

Upon checking the latest scheduled GitHub action that keeps these files up to date, I noticed that these regions are skipped because of an exception.
It is possible that the AWS account used for this action does not have access to these regions, and enabling these regions would fix this issue.

Hey @viren-nadkarni, thanks for letting me know! That was indeed the problem - I've updated the AWS account for one that does have access to all regions in #7877, and with #7878 Mot now contains the instance data for all regular regions, including the ones  you listed.

Thanks @bblommers!


Enhance filtering and updating for set method

Added possibility to filter not only leaves but all dict structures like in search.
Flag parameter "only_leaves" - by default is True and functionality is off (Backward compatibility)

Added possibility to update dictionaries (works only with "only_leaves" set to False
and dictionaries nodes). With this flag we can update specified node (dictionary).
By default is set to False (Backward compatibility)

@sygutss Hey, are you still interested in working on this PR?

Why not :)  I can have a look in the meantime

Awesome! If you have any questions feel free to reach out here or on Gitter.

I've adjusted to the latest version of the master branch and refactored one method '_split_path' to be more pythonic
and concise :)

Could you please provide some example code to give me a better idea of what this PR proposes?

Found a small bug in my implementation and I've fixed it in the previous commit - right now it should work as expected

I've added tests for that and in the previous commit I've changed a bit them - maybe right now would be clearer what's the purpose of that functionality - Treat them as an example :)

Description:
The main purpose of my enhancement was to provide a possibility to filter not only via values from the last level - the leaves level (basic types under keys) but also from the higher levels - so using entire objects (dictionaries) from whichever level.
With that approach we can eg. indicate some known levels Eg. "A/B/" - in that case, are 'A' and 'B' known but the rest is unknown so we use "". What else, we know that on some level there should be a specific key with some specific value eg. some type. We can filter using a provided function that is able to compare a specific key from the object from some level.
Additionally, I've added the dictionary update possibility instead of the entire replacement during the setting process.


Django - You cannot call this from an async context

Describe the bug
When running a Django App with socketify Djnago says:
You cannot call this from an async context - use a thread or sync_to_async
To Reproduce
Steps to reproduce the behavior:
git clone git@github.com:deparkes/simple-django-app.git
cd simple-django-app/cool_counters
python manage.py migrate
pip install socketify
python3 -m socketify cool_counters.wsgi:application --interface wsgi -w 2
open <IP_ADDRESS>:8000
Expected behavior
See an simple html page with a counter
Screenshots

Versions:

Socketify 0.31
django 5.1.2

thanks for reporting will take a look, is this using ASGI or WSGI?


Standalone theme without local Docker environment

I would love to use just the theme (including Browsersync, Gulp etc.), but without the local Docker environment. Since I run my own local dev env. Would that be easily achievable?

Hi @inorbita. We'd really recommend using the full kit to keep projects isolated, and for ease of setup. However there's no reason you couldn't use the theme and build tools separately you would have to do the relevant parts of the set up manually. The process would roughly be:

Clone repo.
Move provision/dev folder to wherever you want to work from and delete everything else.
Run npm install in that folder.
Manually render all the .erb templates (open them, replace values with your project values, then save without the .erb extension).
Run npm install in the src/ folder.
Run compose install in the src/includes/ folder.
Modify gulpfile.js to remove wpconfig() task and set the destination paths so that the build script compiles to your active WP folder.

Hopefully that'll be enough to get you there. Really this usage is unsupported though, so I'm not sure we would be able to offer further technical support. It would be better to use the whole kit! We'll soon be releasing some significant updates, so keep an eye out.


Formatting applied to some names in tab

If a player's name starts and ends with an underscore, it is underlined in tab.

Closed by #10


Potential event queue issue

See this gist. For some reason, the second connection appears to be using the autojoin channels for the first. The simplicity of the AutoJoin plugin suggests that this is an issue within the core, perhaps with the event queue or handling of outgoing events. Thanks to @addshore for reporting this.

The issue can be replicated with the following:
composer.json
{
    "minimum-stability": "dev",
    "require": {
        "phergie/phergie-irc-bot-react": "~1",
        "phergie/phergie-irc-plugin-react-pong": "~1",
        "phergie/phergie-irc-plugin-react-eventfilter": "~1",
        "phergie/phergie-irc-plugin-react-autojoin": "~1"
    },
    "autoload": {
        "psr-4": {
            "Phergie\\Irc\\Plugin\\React\\Test\\": "src"
        }
    }
}

config.php
<?php
use Phergie\Irc\Connection;
use Phergie\Irc\Plugin\React\Pong\Plugin as PongPlugin;
use Phergie\Irc\Plugin\React\EventFilter\Plugin as EventFilterPlugin;
use Phergie\Irc\Plugin\React\EventFilter\ConnectionFilter;
use Phergie\Irc\Plugin\React\AutoJoin\Plugin as AutoJoinPlugin;

$wikimedia = new Connection([
  'serverHostname' => 'irc.wikimedia.org',
  'username' => 'Elazar',
  'realname' => 'Matthew Turland',
  'nickname' => 'Phergie3'
]);

$freenode = new Connection([
  'serverHostname' => 'irc.freenode.net',
  'username' => 'Elazar',
  'realname' => 'Matthew Turland',
  'nickname' => 'Phergie3'
]);

return [
  'connections' => [
    $wikimedia,
    $freenode,
  ],
  'plugins' => [
    new PongPlugin,
    new EventFilterPlugin([
      'filter' => new ConnectionFilter([$wikimedia]),
      'plugins' => [new AutoJoinPlugin(['channels' => '#wikidata.wikipedia'])],
    ]),
    new EventFilterPlugin([
      'filter' => new ConnectionFilter([$freenode]),
      'plugins' => [new AutoJoinPlugin(['channels' => '##add'])],
    ]),
  ],
];

When used, these yield the following output segments:
2015-01-21 06:13:22 DEBUG<EMAIL_ADDRESS>:asimov.freenode.net 376 Phergie3 :End of /MOTD command. []
2015-01-21 06:13:22 INFO Event did not pass filter, skipping {"event":"irc.received.rpl_endofmotd","args":["[object] (Phergie\\Irc\\Event\\ServerEvent: {})",[]]}
2015-01-21 06:13:22 INFO Event passed filter, forwarding {"event":"irc.received.rpl_endofmotd","args":["[object] (Phergie\\Irc\\Event\\ServerEvent: {})",[]]}
2015-01-21 06:13:22 INFO Forwarding event to callback {"event":"irc.received.rpl_endofmotd","args":["[object] (Phergie\\Irc\\Event\\ServerEvent: {})",[]],"callback":["[object] (Phergie\\Irc\\Plugin\\React\\AutoJoin\\Plugin: {})","joinChannels"]}
2015-01-21 06:13:22 DEBUG<EMAIL_ADDRESS>JOIN :##add []

2015-01-21 06:13:24 DEBUG<EMAIL_ADDRESS>:irc.wikimedia.org 376 Phergie3 :End of /MOTD command. []
2015-01-21 06:13:24 INFO Event passed filter, forwarding {"event":"irc.received.rpl_endofmotd","args":["[object] (Phergie\\Irc\\Event\\ServerEvent: {})",[]]}
2015-01-21 06:13:24 INFO Forwarding event to callback {"event":"irc.received.rpl_endofmotd","args":["[object] (Phergie\\Irc\\Event\\ServerEvent: {})",[]],"callback":["[object] (Phergie\\Irc\\Plugin\\React\\AutoJoin\\Plugin: {})","joinChannels"]}
2015-01-21 06:13:24 INFO Event did not pass filter, skipping {"event":"irc.received.rpl_endofmotd","args":["[object] (Phergie\\Irc\\Event\\ServerEvent: {})",["[object] (Phergie\\Irc\\Event\\UserEvent: {})"]]}
2015-01-21 06:13:28 DEBUG<EMAIL_ADDRESS><EMAIL_ADDRESS>JOIN ##add []

Note how, despite the specification of different channels per connection, the channels specified for the second connection are used for both connections.

I am glad you can replicate it and I wasn't simply going mad :)

One odd thing I'm noticing is that the second JOIN event also seems to be associated with the Freenode connection. In effect, the AutoJoin plugin intended for the Wikimedia connection doesn't seem to be queueing an event at all. Still digging to figure out the cause.

It looks like the AutoJoin plugin is queueing events correctly and the EventFilter plugin is filtering them correctly, or at least being called as many times as it should be (once per connection per event) and filtering as many times as it should be (once per connection). The issue may be in either of processClientEvent() or processOutgoingEvents() in the Bot class.

Just wondering if there was any progress with this? :)

Afraid not. :( Any help to diagnose the issue further would be much appreciated.

There are potentially a few overlapping things here, but one of the issues is that the event queue is a single shared queue for all connections, but events pushed to the queue don't have any information attached to them about which connection they're for; instead, whichever connection happens to invoke processOutgoingEvents sends all of the events in the queue to that connection.
Two possible solutions:

every time an event is pushed to the queue, somehow specify which connection it's associated with
have a different event queue for each connection

I think @Renegade334 is right. I believe the better solution to minimize backward compatibility breaks would be to have a separate event queue per connection, since that doesn't require any action on the part of plugin developers. Here's what I'm thinking an implementation of that solution could look like:

The setEventQueue() and getEventQueue() methods, $queue property, and 'eventQueue' configuration setting of the Bot class would become deprecated. Bot would be modified to throw an exception when the methods are called or the configuration setting is used to indicate this deprecation.

A new EventQueueFactoryInterface interface would be created. It would contain a single method, getEventQueue(), that would take a single parameter of type ConnectionInterface. It would return an object of type EventQueueInterface.

A new class EventQueueFactory would be created that implements EventQueueFactoryInterface. Its getEventQueue() method would simply check an internal instance of \SplObjectStorage for an element with a key of the specified ConnectionInterface instance, create one pointing to a new EventQueue instance if one does not already exist, and return the EventQueue instance associated with the ConnectionInterface instance.

New setEventQueueFactory() and getEventQueueFactory() methods, a $queueFactory property, and an 'eventQueueFactory' configuration setting would be added to Bot. This would allow for custom EventQueueFactoryInterface implementations and use the core EventQueueFactory implementation as the default.

Any existing calls to getEventQueue() in Bot will be replaced with calls to the method of the same name on $queueFactory that pass the relevant ConnectionInterface instance.

This solution would cause breaks for anyone currently using a custom EventQueueInterface implementation, but they would have a migration path: create an EventQueueFactoryInterface implementation that returns instances of their EventQueueInterface implementation and configure Bot to use that via the 'eventQueueInterface' configuration setting. This solution should also avoid the need for any backward compatibility breaks affecting existing plugins.
Being that any solution to this issue is likely to have at least some backward compatibility breaks, should the fix require a version bump to 2.x? Any other thoughts, on this particular solution or otherwise from @Renegade334, @addshore, or anyone else interesting in this issue being fixed?

The solution seem reasonable (and will hopefully fix the issue).
It should probably be in a 2.x release.
If noone else cares or has ever noticed this issue then I wouldn't rush to release 2.x, I'm more than happy developing and testing the rest of my code against master or a branch, who knows, maybe I will find other interesting issues such as this!

I don't feel that I have the expertise with the v3 framework to give any valuable input on design decisions. However, sounds reasonable to me as well.

@addshore @Renegade334 Would either of you mind testing out my implementation of the previously discussed solution that's now merged to master?

https://gist.github.com/Renegade334/085c0cd3e39831c81a2a

 basically, out of those three connection filters, only the third one ever ends up actually joining the channel specified by the AutoJoin.
 If you re-order them, then whichever one ends up last out of the 3 in config.php is the one that works, whichever connection/channel combo that ends up being.
 Everything is being called correctly up to the point where the event is committed to the event queue, but when it gets retrieved, extract() returns nothing.
 If I add a second ircJoin command to the joinChannels callback in the AutoJoin plugin, then both of those JOIN events get retrieved from the event queue successfully, but again, only for the plugin that corresponds to the 3rd filter.

Had a look at the object hashes for the EventQueue objects at each step, and they're exactly as they should be: one EventQueue for each connection, the same throughout. For some reason, calling `extract()` on the same EventQueue object as `insert()` was just performed on, isn't returning the inserted event in those cases.

This bug was identified as a result of the Monolog formatter calling foreach on the EventQueue object, which has the side-effect of removing all objects from the heap.

Potential mitigations:

Override valid() in EventQueue to prevent any iteration over event queue objects (19307973). This is failsafe, and since no Phergie module uses foreach to iterate over event queues, should probably be implemented. It's a crude hack, and will have purists clawing their eyes out, but ah well.
Add a dummy interface to the Client namespace, and a new Monolog formatter wrapper to prevent traversing of objects that implement it (Renegade334/phergie-irc-client-react@396081dd). However, this won't affect anyone who doesn't use the default logger.
Modify EventFilter to filter out event queue objects from its log context array. Doesn't really address any of the underlying issues.

Is there a reason we can't use @weierophinney's solution, specifically overriding getIterator() and having it return a clone of the queue? I realize we're extending \SplPriorityQueue where he's composing it, but I would think the same solution would still work:
public function getIterator()
{
    return clone $this;
}

You cannot implement IteratorAggregate on a class that already implements Iterator (via SplPriorityQueue). The only way to implement that would be via a wrapper, as per the original solution.

Is valid() called for any use cases that are applicable? Otherwise, I'm inclined to say we should have the override throw an exception or emit a warning or something to indicate to the user that it's not supported and why.

I did write the original implementation of valid() emitting an E_USER_NOTICE to notify of the disabled iteration interface. The only downside was that it emitted notices every time the EventFilter filtered an event (whether the event was passed on or not), which had the potential to get quite spammy. That would go away if implemented in combination with the second bullet point, though.
In answer to your question, valid() is inherited directly from Iterator and is only called when the object is being iterated over - ie. when foreach() is called on it.

Hrm. At this point, I'm honestly inclined to implement @weierophinney's composition solution, ugly or no. That would allow iteration and make the whole issue moot. There might be slight BC breakage for anyone typehinting an EventQueue instance against SplPriorityQueue, but that seems like a pretty unlikely use case.

In which case, we would need an extra class definition for the EventQueue wrapper, which implemented all of the EventQueueInterface methods and passed them to the internal event queue object, as well as implementing IteratorAggregate and providing the getIterator() method as per above.
The existing EventQueue class would then need to be renamed to something like EventQueueInternal.

Not sure I see the need for an extra class. These changes can be made directly to EventQueue:

Remove the parent class declaration
Add a protected $queue property
Replace this block with an assignment to $this->queue
Replace $this / parent references with references to $this->queue as appropriate in extract() and queueRequest()
Declare implementation of IteratorAggregate and Countable and add getIterator() and count() methods

We would also need to modify EventQueueInterface to extend IteratorAggregate instead of Iterator, but I think that's a minor enough BC break to be acceptable.

That makes much more sense.

That makes much more sense, however this would prevent being able to override the compare() method, which is called by SplPriorityQueue internally.

Ah, true. And @weierophinney found the same and subclassed \SplPriorityQueue as a result. So, yeah, we'll need an InnerEventQueue class or something to that effect to have the custom compare() implementation. That together with the rest of the solution as described above, using InnerEventQueue for the assignment instead of \SplPriorityQueue, should work.

eg: 477a2507be

@Renegade334 Class docblock for EventQueueInternal needs to be updated and should note that it's intended only for internal use by EventQueue. You may also want to verify that tests still pass without updates. Otherwise, looks good.

@Renegade334 @addshore Can one of you verify that the latest merge resolves this bug?

My internal testing at the time showed this to be a fix, but worth double-checking. My test config.php files are retained in the linked gists above for reference.

@elazar  What do I need, just master of phergie-irc-bot-react ?

Checked out master of phergie-irc-bot-react and my particular issue has now gone!
In other words I can now use the AutoJoinPlugin across multiple networks instead of my dirty little hack!


Create DAO config tab - Deadline EOD Friday 1/13/23

Displays all settings that have been configured at the creation of the DAO, along with the three buttons that are currently at the top of the Proposals tab.
The "New" button would only pertain to modifying the parameters of the DAO by consensus.
Please also show what needs to change on the proposals page or other pages, if you want us to remove certain types of proposals from the modals in other pages.

https://www.figma.com/file/gXLZPoh1BchigOB5y9YkQZ/Tezos-Homebase---v2-UI?node-id=395%3A1&t=cwDRC8pmRlh5gYdk-0


This plugin generated a warning from characteristic 'on'

Hi,
First off, thanks for this plugin, it's the first lan based Tuya plugin I could actually get to work. I have managed to successfully add my devices and I can control them, but there appear to errors getting the initial state of the devices
I enabled debugging in homebridge and generated the log below.
As I said, I am able to control the devices, but getting the initial state or subsequent state of the switch doesn't seem to work.
[3/4/2021, 10:07:04 AM] [TuyaLan] Connected to Matt Office
[TuyaAccessory] Sending first query to Matt Office (3.3)
[TuyaAccessory] Matt Office (3.3) didn't respond with its current state.
[3/4/2021, 10:07:04 AM] [TuyaLan] Ready to handle Matt Office (Switch:3.3) with signature {}
[3/4/2021, 10:07:04 AM] [homebridge-tuya-switch] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info.
[3/4/2021, 10:07:04 AM] [homebridge-tuya-switch] Error:
    at On.Characteristic.characteristicWarning (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2164:105)
    at On.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1931:16)
    at On.Characteristic.updateValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1365:20)
    at /usr/local/lib/node_modules/homebridge-tuya-switch/lib/SwitchAccessory.js:56:18
    at Array.forEach (<anonymous>)
    at SwitchAccessory._registerCharacteristics (/usr/local/lib/node_modules/homebridge-tuya-switch/lib/SwitchAccessory.js:49:33)
    at TuyaAccessory.<anonymous> (/usr/local/lib/node_modules/homebridge-tuya-switch/lib/BaseAccessory.js:22:18)
    at Object.onceWrapper (events.js:313:26)
    at TuyaAccessory.emit (events.js:223:5)
    at TuyaAccessory._msgHandler_3_3 (/usr/local/lib/node_modules/homebridge-tuya-switch/lib/TuyaAccessory.js:299:18)

and a snippet from the config.json
        {
            "platform": "TuyaLan",
            "name": "TuyaLan",
            "devices": [
                {
                    "name": "Matt Office",
                    "type": "Switch",
                    "manufacturer": "EZH",
                    "model": "Wifi Mini Smart Life Outlet",
                    "id": "bfeb84623f663d146316cd",
                    "key": "redacted_but_correct"
                }
             ]
         }
        ...

I am aware of this situation but i am not going to try to fix it since this doesn’t affect the usage of accessories. State of the accessory should be visible on Home app and on Homebridge Config UI X without any issues.
Also i encourage users to go check out Tuya Lan plugin by @iRayanKhan. My repository is just a placeholder until he pushes a new update with added multi channel switch support. He already merged my pull request so it should be available soon if it is not available already.

It should have been included in 1.5.0, if not please let me know.


feature: fix table output of show & list command to show "state"

Before the output is not useful as the state is missing
Name
------------------------
Microsoft.AAD/betaAccess

Now, we display it
Name                      RegistrationState
------------------------  -------------------
Microsoft.AAD/betaAccess  NotRegistered

//cc: @christiankuhtz
General Guidelines

[na] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

Command Guidelines

[na] Each command and parameter has a meaningful description.
[na] Each new command has a test.

(see Authoring Command Modules)

Please address the CI


c++17 and CI issue

Hi!
Thanks for sharing such useful lib!
I have a question about c++17 standard and your CI (Travis and Appveyor) settings.
In c++17 filesystem was introdused:
#include
namespace fs = std::filesystem;
I just add this include and simple call to your lib to test how your CI settings works with it and with c++17 at all.
But I obtain errors in all builds in CI:
fatal error: 'filesystem' file not found
#include
^
I created fork from your repo, added it to my Travis and Appveyor, and added this simple commit to my master with filesystem usage.
https://github.com/GillianGrayson/variant
https://travis-ci.org/GillianGrayson/variant
https://ci.appveyor.com/project/GillianGrayson/variant
Can you help me please to fix this issue with CI + c++17 (filesystem)?
Thank you!

According to https://en.cppreference.com/w/cpp/compiler_support, it seems like <filesystem> is available starting GCC 8, and Clang 7. You'll have to remove all of the GCC versions < 8: [.travis.yml`](https://github.com/GillianGrayson/variant/blob/master/.travis.yml#L26-L59), and remove < C++17 configs from GCC 8: https://github.com/GillianGrayson/variant/blob/master/.travis.yml#L62.

The Clang configs don't use libc++ today. It simply uses the default libstdc++. As such, you might need to add g++-8 as a dependency in your Clang configs.


Slash error not being handled properly

i got this error when i set 0 winners in start slash command:
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "options.winnerCount is not a positive integer. (val=0)".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Needs additional log output

Fixed as of https://github.com/ZeroDiscord/Giveaway/commit/b9b21826d443443a812ed2f354b6de6925cf7b91
Thanks for reporting!


Dispatch nodejs

Dispatch sample
Cleaned up all recipe files for samples that are already checked in.

@sgellock  - addressed the PR feedback. verified onTurnError works correctly.


get country ISO

Hi,
I really appreciate your work. Currently, I can only retrieve the phone number from currentValue. Would it be possible to add the retrieval of the CountryISO as well? For example, for France: fr.
Thank you!

Hi,
Sure! It will be implemented soon in the next release.
Expect something like this: (currentCountryISO)
Thank you for your support!

Great thanks

Version 19.1.0 has just been released. 🎉


Add Run to FCXCustomLuaWindow

I figured the easiest way of working this out is to have something to look at, so I quickly wrote this up. Marking as draft for now.
In general, these are the things that I see that need to be agreed upon before this can be merged:

[ ] Clearly defining ideal behaviour with modifier keys and the 'two states'
[ ] Decide how best to handle the modal result.
[ ] How best to handle whether region selection is required or not.

Some thoughts and questions.
Keyboard Behaviour
Does the OkButtonCanClose = modifier_keys_on_invoke need to apply to modals as well?
Modal Result
Returning the modal result from Run was always going to end up being messy. So the best option I saw was to include the ability to add a handler for the modal result, which would be called from ExecuteModal, regardless of whether it was called via Run. Eg:
local function create_dialog()
    ...
    dialog:RegisterHandleModalResult(function(self, result)
        -- insert result handling here...
    end)
end

This goes further in the direction of turning the window object into a completely self-contained plugin class (which I like).
Music Region Selection
To my mind this one is a little trickier, because if the requiring/not requiring region selection is going to be baked in at one level, should it be baked in at others? As it stands, if Run displays the window as a modal, it takes care of ensuring that a region is selected for you. But if it's shown as a modeless window, the author still needs to handle it themselves. Thoughts?

With a modal dialog, the Ok button always closes the window, doesn't it? I'm not sure that OkButtonCanClose even works with modal dialogs. But even if it does, it is a Cadillac feature in this context. (See next paragraph.)
I think a handler function for modal result is overkill. We already have handler functions for Ok and Cancel. In my mind the Run function is about providing consistent functionality around modeless dialogs, and ExecuteModal is only involved as a backup for JW Lua support. In fact, perhaps the function should be called RunModeless. At most it could be a read-only property that is nil unless and until ExecuteModal has been executed.
There is fundamentally a difference between a modeless and a modal about how non region selection should be handled. For a modal, we don't want to allow them to go through the whole process of filling out the window and hitting okay before they discover they failed to select anything. By contrast, for a modeless it's no big deal. They simply select something and hit okay again. (This is a key reason I think all dialogs should be modeless.) My personal preference would be to make it a property on the window that defaults to true but can be overridden by the caller by setting it to false.
As for the two 'states', I lean towards selection with modifiers only causes OK to close the window the first time. Thereafter, to open the window you have to not use the modifier key, and OK does not close the window. This seems like the most consistent behavior to me. But I could be persuaded differently.

Ah, I think I misunderstood what you were after and I was going for some sort of master method. In that case, I've revised it and hopefully that's what you're looking for.

This is looking very good. Is there any way to have RegisterHandleOkButtonPressed automatically set up a default action as well? Or vice versa? It seems a little cumbersome to have to register both.
I try to avoid boolean variables as parameters to functions because there is no way to know what they are doing just by looking at the function call. Could this be a property instead? (That defaults to true?)

Is there any way to have RegisterHandleOkButtonPressed automatically set up a default action as well? Or vice versa?

I don't think so, not without it getting somewhat messy. What if someone didn't want the OkButtonPressed handler to be the default action? What if a script has multiple OkButtonPressed handlers that were Added, not Registered? etc, etc

Could this be a property instead?

The issue I see here is that it has no meaning or use outside that one method and there's no reason for anything else to need to access or modify it. (DefaultAction has a similar problem really...) There's also the following option to have named parameters with default values:
-- in FCXCustomLuaWindow.lua
function props:RunModeless(params)
    local realParams = {requiresSelection = true, defaultAction = nil}
    for k, v in pairs(params) do
        realParams[k] = v
    end
    -- etc, etc
end

-- Then in script you have the following
global_dialog:RunModeless{requiresSelection = false, defaultAction = global_dialog.MyAction}

Also, if RunModeless is Fluid, should it not be returning self?

The mixin library takes care of that. All void mixin methods (including user-defined ones) return self.

What if someone didn't want the OkButtonPressed handler to be the default action?

The 80% case is that they do want it to be the default action. Isn't the whole point of this exercise to standardize the user experience for modeless dialogs? In that case, selecting the menu option with modifiers should have the same effect as hitting ok on the (now-closed) dialog. If the vast majority of time that's what we want, it should be baked in.
Another disadvantage is that now the on_ok function must be explicit, because it has to be registered twice. I think the call to register the default action should add it to the Ok handlers as well. Maybe there could be an optional parameter to override this.

I've revised it again. I've gone down the route of having the registered OkButtonPressed handler be the default RunModeless action, which can be overridden or cancelled by an optional parameter.  Also changed the region selection parameter so that region selection is now checked by default.

This looks good to me. I'm ready to merge and give it a whirl.


RGB图像读取失败

您好，我想在Azure Kinect骨骼点识别的基础上利用它的RGB图像做一些工作。
所以我在
k4a_device_configuration_t deviceConfig = K4A_DEVICE_CONFIG_INIT_DISABLE_ALL; deviceConfig.color_format = K4A_IMAGE_FORMAT_COLOR_BGRA32; 	deviceConfig.color_resolution = K4A_COLOR_RESOLUTION_720P;     deviceConfig.depth_mode = K4A_DEPTH_MODE_NFOV_UNBINNED;     // deviceConfig.color_resolution = K4A_COLOR_RESOLUTION_OFF;
这几行做了配置文件的修改，但是修改配置就会提示
[2024-11-19 17:10:20.452] [error] [t=322023] /__w/1/s/extern/Azure-Kinect-Sensor-SDK/src/image/image.c (51): k4a_image_t_get_context(). Invalid k4a_image_t (nil) [2024-11-19 17:10:20.452] [error] [t=322023] /__w/1/s/extern/Azure-Kinect-Sensor-SDK/src/image/image.c (389): Invalid argument to image_get_buffer(). image_handle ((nil)) is not a valid handle of type k4a_image_t [2024-11-19 17:10:20.452] [error] [t=322023] [K4ABT] ../src/TrackerHost/DepthFrameBlobK4A.cpp (13): Initialize(). Get depth buffer from the capture handle failed! [2024-11-19 17:10:20.452] [error] [t=322023] [K4ABT] ../src/TrackerHost/TrackerHost.cpp (274): EnqueueCapture(). Initialize DepthFrameBlob failed! Error! Add capture to tracker process queue failed!
尚不清楚为何修改配置会导致只会处理一帧骨骼点数据的问题，请问作者是否有尝试获取RGB图？

我没有尝试过，不过你可以看看这项配置: synchronized_images_only
deviceConfig.color_format = K4A_IMAGE_FORMAT_COLOR_BGRA32;
deviceConfig.color_resolution = K4A_COLOR_RESOLUTION_720P;
deviceConfig.depth_mode = K4A_DEPTH_MODE_NFOV_UNBINNED;

deviceConfig.synchronized_images_only = true;

 /** Only produce k4a_capture_t objects if they contain synchronized color and depth images.
     *
     * \details
     * This setting controls the behavior in which images are dropped when images are produced faster than they can be
     * read, or if there are errors in reading images from the device.
     *
     * \details
     * If set to true, \ref k4a_capture_t objects will only be produced with both color and depth images.
     * If set to false, \ref k4a_capture_t objects may be produced only a single image when the corresponding image is
     * dropped.
     *
     * \details
     * Setting this to false ensures that the caller receives all of the images received from the camera, regardless of
     * whether the corresponding images expected in the capture are available.
     *
     * \details
     * If either the color or depth camera are disabled, this setting has no effect.
     */
    bool synchronized_images_only;

我没有尝试过，不过你可以看看这项配置: synchronized_images_only
deviceConfig.color_format = K4A_IMAGE_FORMAT_COLOR_BGRA32;
deviceConfig.color_resolution = K4A_COLOR_RESOLUTION_720P;
deviceConfig.depth_mode = K4A_DEPTH_MODE_NFOV_UNBINNED;

deviceConfig.synchronized_images_only = true;

 /** Only produce k4a_capture_t objects if they contain synchronized color and depth images.
     *
     * \details
     * This setting controls the behavior in which images are dropped when images are produced faster than they can be
     * read, or if there are errors in reading images from the device.
     *
     * \details
     * If set to true, \ref k4a_capture_t objects will only be produced with both color and depth images.
     * If set to false, \ref k4a_capture_t objects may be produced only a single image when the corresponding image is
     * dropped.
     *
     * \details
     * Setting this to false ensures that the caller receives all of the images received from the camera, regardless of
     * whether the corresponding images expected in the capture are available.
     *
     * \details
     * If either the color or depth camera are disabled, this setting has no effect.
     */
    bool synchronized_images_only;

是这样的，谢谢！


⚠ Processors has degraded performance

In de62a8a, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 45 ms

Resolved: Processors performance has improved in e9df3c6.


Why is this happening? Ethereum Contracts dissapear and Binance price is null depending the day

It continues happening.

Also adding contracts doesnt work.


OverflowWidget

Is there a way to get Callback if overflow happens instead of overflowWidget?
I mean, I want to place custom new Row in new line if overflowed?

Did you found any solution ?

Is there a way to get Callback if overflow happens instead of overflowWidget? I mean, I want to place custom new Row in new line if overflowed?

Use system wrap directly？

I wonder if we can get a builder? So we can show a "+N" widget rather than just having a static widget if an overflow happens.

issue you can refer to this solution @Clon1998

issue you can refer to this solution @Clon1998

Great. Still, I feel like this is unnecessarily complex and feels more like a workaround rather than a proper solution. Making the overflow widget a builder and returning the "count" of shown widgets feels like a better solution. Still, I only quickly scrolled through the code to see what might be required to implement that. If I am bored enough and have some time, I might raise a PR.


GH-490 Make PopupMenu instances dynamic for Node/Pins

Fixes #490

Applied to main (=2.1) and branch 2.0.


zoom behavior changed in 1.1.0

Not sure if this is a feature or a bug, but zoom is giving me slightly different results now.
Reproducing code example:
import numpy as np
from scipy.ndimage.interpolation import zoom
a = np.arange(100).reshape(10, 10)
zoom(a, 0.5)

scipy 1.0.1
array([[0, 2, 4, 7, 9],
       [22, 25, 27, 29, 31],
       [45, 47, 49, 52, 54],
       [68, 70, 72, 74, 77],
       [90, 92, 95, 97, 99]])

scipy 1.1.0
array([[0, 2, 5, 7, 9],
       [22, 25, 27, 29, 31],
       [45, 47, 50, 52, 54],
       [68, 70, 72, 74, 77],
       [90, 92, 95, 97, 99]])

Note: 4 -> 5 and 49 -> 50
Error message:
N/A
Scipy/Numpy/Python version information:
scipy versions as stated above.
>>> import numpy as np
>>> np.__version__
'1.14.2'
>>> import sys
>>> sys.version_info
sys.version_info(major=3, minor=6, micro=3, releaselevel='final', serial=0)

@pllim Is it still relevant? If it is, it'd be helpful if you could git bisect it.

I adjusted my test results accordingly depending on Scipy version and that worked for me. :woman_shrugging:
If this change is expected on your side, then feel free to close.

No idea, TBH. Might have been accidental. ndimage is not very actively maintained (as you might have noticed, sorry!). As a rule, we try rather hard to avoid small breakages like this. If this is something you think is worth fixing, help is appreciated.
Here's the list of PRs which touched ndimage, note that they are tagged with the release they went in:
https://github.com/scipy/scipy/pulls?page=2&q=is%3Apr+label%3Ascipy.ndimage+is%3Aclosed

In that case, can we please keep this open? If I can't get to it fast enough, maybe someone else can. I can't say this is high on my todo list. 😬

I did try a bisect but failed to get anything useful. Not sure how to bisect across different release branches. Am I doing this wrong?
$ git bisect start
$ git bisect good v1.0.1
$ git bisect bad v1.1.0
$ git bisect run pytest -qqq test_script.py

Bisecting: a merge base must be tested
^[[A[14acd976fbe1e980953f564705ba77ef40526a97] Merge pull request #7868 from rgommers/relnotes
(py37) westeros> git bisect run pytest -qqq test_script.py
running pytest -qqq test_script.py
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File ".../_pytest/main.py", line 213, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>   File ".../_pytest/main.py", line 256, in _main
INTERNALERROR>     config.hook.pytest_collection(session=session)
INTERNALERROR>   File ".../pluggy/hooks.py", line 289, in __call__
INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>   File ".../pluggy/manager.py", line 87, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File ".../pluggy/manager.py", line 81, in <lambda>
INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR>   File ".../pluggy/callers.py", line 208, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File ".../pluggy/callers.py", line 80, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File ".../pluggy/callers.py", line 182, in _multicall
INTERNALERROR>     next(gen)  # first yield
INTERNALERROR>   File ".../_pytest/warnings.py", line 126, in pytest_collection
INTERNALERROR>     config=config, ihook=config.hook, when="collect", item=None
INTERNALERROR>   File ".../contextlib.py", line 112, in __enter__
INTERNALERROR>     return next(self.gen)
INTERNALERROR>   File ".../_pytest/warnings.py", line 83, in catch_warnings_for_item
INTERNALERROR>     _setoption(warnings, arg)
INTERNALERROR>   File ".../_pytest/warnings.py", line 21, in _setoption
INTERNALERROR>     category = wmod._getcategory(category)
INTERNALERROR>   File ".../warnings.py", line 266, in _getcategory
INTERNALERROR>     raise _OptionError("invalid module name: %r" % (module,)) from None
INTERNALERROR> warnings._OptionError: invalid module name: 'scipy._lib._testutils'

The merge base 14acd976fbe1e980953f564705ba77ef40526a97 is bad.
This means the bug has been fixed between 14acd976fbe1e980953f564705ba77ef40526a97 and [83eb32d32f9a4d8fcb03dc75478f39c8f1cb7686].
bisect run failed:
'bisect_state bad' exited with error code 3

Referenced commits:

14acd976fbe1e980953f564705ba77ef40526a97
83eb32d32f9a4d8fcb03dc75478f39c8f1cb7686

My test script:
import numpy as np
from scipy.ndimage.interpolation import zoom

a = np.arange(100).reshape(10, 10)
result = zoom(a, 0.5)
ans = np.array([[0, 2, 4, 7, 9],
                [22, 25, 27, 29, 31],
                [45, 47, 49, 52, 54],
                [68, 70, 72, 74, 77],
                [90, 92, 95, 97, 99]])
assert np.testing.assert_array_equal(result, ans)

Hi @pllim, thanks for tackling this!

git bisect run pytest -qqq test_script.py

This does not actually build SciPy, so you are testing some installed version on your path, or the non-built SciPy sources inside your repo. What you want to do instead is git bisect run some-shell-script, with the script doing something like:
python setup.py develop   # best to do this in a conda env / virtualenv that doesn't have SciPy installed already
pushd ../tmp/
pytest -qqq thing_that_fails
popd

Thanks, @rgommers ! I switched to a Bash script as you suggested, ran it in a clean conda end with the Numpy version I originally reported, and it ran for a while...
$ more test_script.sh
#!/bin/bash
python setup.py develop
pytest test_script.py
$ git bisect start
$ git bisect good v1.0.1
$ git bisect bad v1.1.0
$ git bisect run test_script.sh

But then it crashed here:
Processing dependencies for scipy==1.0.0.dev0+14acd97
Finished processing dependencies for scipy==1.0.0.dev0+14acd97
= test session starts =
platform linux -- Python 3.6.9, pytest-5.2.1, py-1.8.0, pluggy-0.13.0
rootdir: .../scipy, inifile: pytest.ini
collected 0 items / 1 errors

= ERRORS =
_ ERROR collecting test_script.py _
ImportError while importing test module 'test_script.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test_script.py:2: in <module>
    from scipy.ndimage.interpolation import zoom
scipy/ndimage/__init__.py:161: in <module>
    from .filters import *
scipy/ndimage/filters.py:37: in <module>
    from scipy.misc import doccer
scipy/misc/__init__.py:67: in <module>
    from scipy.interpolate._pade import pade as _pade
scipy/interpolate/__init__.py:175: in <module>
    from .interpolate import *
scipy/interpolate/interpolate.py:21: in <module>
    import scipy.special as spec
scipy/special/__init__.py:640: in <module>
    from ._ufuncs import *
E   ImportError: .../scipy/scipy/special/_ufuncs.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _gfortran_stop_numeric_f08
!!! Interrupted: 1 errors during collection !!!
= 1 error in 0.34s =
The merge base 14acd976fbe1e980953f564705ba77ef40526a97 is bad.
This means the bug has been fixed between 14acd976fbe1e980953f564705ba77ef40526a97 and [83eb32d32f9a4d8fcb03dc75478f39c8f1cb7686].
bisect run failed:
'bisect_state bad' exited with error code 3

(Trying it in a slightly different way, will report back.)

Directory structure:
scipy/
    source checkout is here
    test_script.sh
ztmp_bisect/
    test_script.py

Content of `test_script.sh`

#!/bin/bash
python setup.py develop
pushd ../ztmp_bisect/
pytest test_script.py
popd

Content of `test_script.py`

import numpy as np
from scipy.ndimage.interpolation import zoom

a = np.arange(100).reshape(10, 10)
result = zoom(a, 0.5)
ans = np.array([[0, 2, 4, 7, 9],
      [22, 25, 27, 29, 31],
      [45, 47, 49, 52, 54],
      [68, 70, 72, 74, 77],
      [90, 92, 95, 97, 99]])
assert np.testing.assert_array_equal(result, ans)

To find the commit hashes:
git log --after="2018-03-23 00:00:00" --before="2018-05-05"

That gave me 250c68d012d1fffa27f78a3ea2ca76ee054b36df..f5a8260e76bd6eeb397e1ea467d453a9248b5cf5. So I use these instead of release tags.
Then in the scipy directory, I do this:
git bisect start
git bisect bad f5a8260e76bd6eeb397e1ea467d453a9248b5cf5
git bisect good 250c68d012d1fffa27f78a3ea2ca76ee054b36df
git bisect run test_script.sh

It ran for a while, but unfortunately crashed in a fashion as #8325 and then blamed #8740, which I don't think is what I am looking for.

If I run the example provided in the first comment but with dtype=np.float64 and inspect
element result[0][2], the value is extremely close to 4.5
with the result in SciPy 1.0 being just below 4.5:
4.4999999999999964
and that for SciPy >= 1.1 being just above 4.5:
4.500000000000002
This tiny difference is resulting in rounding to a different integer when the input dtype is of integer type. Given that the observed differences are at the threshold of double point precision, I think the most likely culprit is in refactoring of the spline coefficient calculations out into a separate file where some uses of sqrt in 1.0 were replaced with explicit values. e.g.:
https://github.com/scipy/scipy/blob/2d6327e205ccf76ae3dcae45db4587c7961ee3f4/scipy/ndimage/src/ni_splines.c#L132-L135

@grlee77 , thank you! So is this a bug or feature?

I wouldn't really consider it a bug given that the issue seems to be at the threshold of floating point precision.  I think the change in behaviour was likely unintended, but I don't think I would advocate changing it back at this point.
What do others here think?

For reference, the refactoring of the spline coefficient calculation code was done in #8512. Note that I haven't verfied that this commit is definitely the source of the difference, but I think it is fairly likely.

@rgommers I attempted to verify that #8512 was the cause of this behavior change but cython fails to build 2018-03 code (likely due to Python2). I buy @grlee77's explanation so I vote we close this as working as intended.

I agree, makes sense. Thanks for looking into it @grlee77 and @sethtroisi. Closing.


Replacement Post350

This is a replacement PR for the Post350 PR.

Look at all those conflicts.  I'll be sure to take a look at them.

I see that there are many fixup changes/additions.  That is cool.  With all these fixups in place the Format.csl file located at MSIX-PackageSupportFramework\xmlToJsonConverter needs to be modified to fit with all these fixups that have been coming along.

Hopefully I have addressed what is needed for this PR?  My assumption was the xmlToJsonConverter is a seperate task for you.

At the moment, since I didn't ask, I can modify the converted.  Next time though, the xsl file will need to be updated to support any fixup modifications.

Everything looks good.  Is it okay if I edit your branch to fix the merge conflicts?

Everything looks good.  Is it okay if I edit your branch to fix the merge conflicts?

Yes.  Let me know if I need to give you permission or something like that.

Fixed the merge conflicts.  Before I complete the PR I'm going to make sure your code will build and test.


DatePicker textStyle not picked up

Hi There,
I am trying to use the datepicker component, which works, but applying styling to the text (placeholder), it does get picked up, as I can see it in the debugger on my iphone, but it does not get applied.
For example if I want to remove the padding applied to the text, I added: textStyle={{padding:0}}, I see it's picked up, but not applied (placeholder still has padding 10).
Any idea on this?

I tried to change the file, but still not picked up. Anything I need to do after it?

@udarts to check this locally, change this
"main": "dist/src/index.js",

to
"main": "src/index.js",

in node_modules/native-base/package.json and restart the packager.

Yep that works, when is this fix available in the main product?

By this week

Fixed with v2.5.2