add CPython 3.12 and PyPy 3.10 to CI

Change Summary
Now that 3.12 is in release candidate I think we should start testing in CI.
Also added PyPy 3.10 to CI, as pydantic-core tests and releases with it.
Related issue number
Related to #7181
Checklist

[ ] The pull request title is a good summary of the changes - it will be used in the changelog
[ ] Unit tests for the changes exist
[ ] Tests pass on CI
[ ] Documentation reflects the changes where applicable
[ ] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @adriangb

I was recommended to do this instead: https://github.com/encode/starlette/blob/a8b8856ce393a82ab4a714131085dbc4d658e34d/.github/workflows/test-suite.yml#L21-L24
"allow-prereleases"

I'm working on packaging pydantic-core and pydantic v2 in Fedora. You can git am https://src.fedoraproject.org/fork/gotmax23/rpms/python-pydantic/raw/v2/f/Fix-Python-3.12-test-failures.patch on top of your PR to address the Python 3.12 test failures. There were changes to TypeVar reprs and ABC error messages that broke a couple tests.

please review

please review


[example] Adds document about how to trace gpt2 model

Description
Brief description of what this PR is about

If this change is a backward incompatible change, why must this change be made?
Interesting edge cases to note here

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 72.22%. Comparing base (0fa0db2) to head (d313389).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3028      +/-   ##
============================================
- Coverage     72.30%   72.22%   -0.09%
+ Complexity     7294     7290       -4
============================================
  Files           722      722
  Lines         32508    32508
  Branches       3395     3395
============================================
- Hits          23506    23479      -27
- Misses         7382     7411      +29
+ Partials       1620     1618       -2

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Fix Inline/G2Invoke Problem

Addresses #1283. As @rachitnigam alluded to in the final comment of that thread, the problem was that we were only rewriting invokes of components we are going to inline. However, there are times when we need to rewrite invokes for components that aren't being inlined (see the test case for an example). I'm not sure if I have handled this in the cleanest way, so if there's a cleaner way to do this lmk.

Ah, makes perfect sense! Left a minor comment about using a different iteration method. Merge at your discretion

Merging this myself because I'm going to make some changes to the inliner soon

Nice; this looks like a simple solution to me!


Run-ALValidation fails with activated Telemetry

Describe the issue
Run-ALValidation fails, if the Telemetry of BCContainerHelper is activated
Scripts used to create container and cause the issue
Run-ALValidation

Full output of scripts
BcContainerHelper version 4.0.10
Setting sandboxContainersAreMultitenantByDefault = False
BC.HelperFunctions emits usage statistics telemetry to Microsoft
...
2023-01-13T12:48:19.1336447Z Unexpected error while validating app. Error is: Exception setting "Message": "The type initializer for 'Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.CoreEventSource' threw an exception."

Additional context

Disabling Telemetry solves the problem
Full output contains sensitive data. We may provide it on a private channel

Just heard this from another partner who found out that he was using an old version of the AZ powershell library
Could you try to see if that is the same?

I have added some resilience to this area and if this fails, the command will just print out warnings instead of crashing.
It will also explain what the solution is. This is in prerelease now.

I have also this exception in the 4.0.11-preview869.
ForEach-Object : Exception setting "Message": "The type initializer for
'Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.CoreEventSource' threw an exception."
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\4.0.11\TelemetryHelper.ps1:346 char:41

            "Microsoft","Partner" | ForEach-Object {

                                    ~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [ForEach-Object], SetValueInvocationException
FullyQualifiedErrorId : ExceptionWhenSetting,Microsoft.PowerShell.Commands.ForEachObjectCommand

Same think - caused by a conflict with another old PowerShell library probably - try to upgrade AZ

I have added some resilience to this one as well in the next prerelease - thanks for notifying

With BcContainerHelper version 4.0.11-preview873 there is a warning instead of an error. But now we have another error later in the proces. See below.
Get-InstalledModule shows 5 modules. No AZ module??
Maybe the problem is that we don't have AZ installed?
Version              Name                                Repository           Description

4.0.10               BcContainerHelper                   PSGallery            PowerShell module, which makes it easi...
<IP_ADDRESS>              DockerMsftProvider                  PSGallery            PowerShell module with commands for di...
<IP_ADDRESS>              PackageManagement                   PSGallery            PackageManagement (a.k.a. OneGet) is a...
2.2.5                PowerShellGet                       PSGallery            PowerShell module with commands for di...
3.29.2101.0          SharePointPnPPowerShellOnline       PSGallery            Microsoft 365 Patterns and Practices P...
Running AL pipeline
Done building onpremise versions.
Building for latest container...
BcContainerHelper version 4.0.11-preview873
New error:
Docker Build failed with exit code 1
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\4.0.11\ContainerHandling\New-NavImage.ps1:660 char:25

...              throw "Docker Build failed with exit code $LastExitCode"

             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : OperationStopped: (Docker Build failed with exit code 1:String) [], RuntimeException
FullyQualifiedErrorId : Docker Build failed with exit code 1

could you share the full output of the second error - then I can see if that is related
Thanks

What dotnet versions (not framework) do you have?
You can use:
dotnet --list-sdks
dotnet --list-runtimes

to list them

dotnet --list-sdks
dotnet --list-runtimes
Microsoft.NETCore.App 5.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Problem is solved. I now use 4.0.11-preview875 (and update the license file). Thanks!

The dependency is on dotnet 6.0, you can download that here: https://dotnet.microsoft.com/en-us/download/dotnet/6.0

Fixed in 4.0.14


virtcontainers: ppc64le: Add nvdimm to defaultQemuMachineOption

nvdimm is fundamental to get rootfs approach
working for Kata Containers on ppc64le. It should
be added to the default qemu machine option list.
Fixes: #561
Signed-off-by: Nitesh Konkar<EMAIL_ADDRESS>

@nitkon since this PR fixes Qemu for ppc64, please backport it to stable branches.


AttributeError: module 'paddlenlp' has no attribute 'losses'

/example/text_matching/question_mathing
Traceback (most recent call last):
File "train.py", line 218, in
do_train()
File "train.py", line 142, in do_train
model = QuestionMatching(pretrained_model, rdrop_coef=args.rdrop_coef)
File "/home/aistudio/model.py", line 31, in init
self.rdrop_loss = ppnlp.losses.RDropLoss()
AttributeError: module 'paddlenlp' has no attribute 'losses'

my bad.  need to upgrade paddlenlp version to 2.08.


P105 stopped working, "Command error: power > -1012"

Describe The Bug
Hi, this was all working flawlessly until recently. It started throwing the following error:
[HomebridgeTPLinkTapo] Command error: power > -1012
The plug shows up and functions fine in the Tapo app, and shows up in the accessories list in homebridge as well as in Apple Home, but trying to power on or off via Homebridge or Apple Home triggers that error.
Expected behavior
It works
Logs
[25/04/2024, 14:07:16] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[25/04/2024, 14:07:16] [HB Supervisor] Started Homebridge v1.8.0 with PID: 178095
[25/04/2024, 14:07:17] Loaded config.json with 0 accessories and 3 platforms.
[25/04/2024, 14:07:17] Loaded 2 cached accessories from cachedAccessories.
[25/04/2024, 14:07:17] ---
[25/04/2024, 14:07:17] Loaded plugin<EMAIL_ADDRESS>[25/04/2024, 14:07:17] Registering platform 'homebridge-tp-link-tapo.HomebridgeTPLinkTapo'
[25/04/2024, 14:07:17] ---
[25/04/2024, 14:07:19] Loaded plugin<EMAIL_ADDRESS>[25/04/2024, 14:07:19] Registering platform<EMAIL_ADDRESS>[25/04/2024, 14:07:19] ---
[25/04/2024, 14:07:19] Loading 3 platforms...
[25/04/2024, 14:07:19] [BlueAir] Initializing BlueAir platform...
[25/04/2024, 14:07:19] [BlueAir] base_API_url<EMAIL_ADDRESS>[25/04/2024, 14:07:19] [BlueAir] Current Gigya Region: eu1
[25/04/2024, 14:07:19] [BlueAir] Current AWS Region: eu-west-1
[25/04/2024, 14:07:19] [HomebridgeTPLinkTapo] Initializing HomebridgeTPLinkTapo platform...
[25/04/2024, 14:07:19] [BlueAir] Loading accessory from cache: Bedroom Purifier
[25/04/2024, 14:07:19] [HomebridgeTPLinkTapo] Loading accessory from cache: desk lamp
[25/04/2024, 14:07:19] [BlueAir] Blueair AWS API Tokens will expire at: Fri Apr 26 2024 14:07:19 GMT+0900 (Japan Standard Time)
Setup Payload:
X-HM://0024V0I3DMGDR
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐
    │ 841-18-169 │
    └────────────┘

[25/04/2024, 14:07:20] Homebridge v1.8.0 (HAP v0.12.0) (RaspberryBridge) is running on port 51140.
[25/04/2024, 14:07:20] [HomebridgeTPLinkTapo] Restoring existing accessory from cache: desk lamp
[25/04/2024, 14:07:20] [homebridge-tp-link-tapo] This plugin generated a warning from the characteristic 'Contact Sensor State': Characteristic not in required or optional characteristic section for service Outlet. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[25/04/2024, 14:07:20] [HomebridgeTPLinkTapo] Command error: getCurrentPower > 1002
[25/04/2024, 14:07:20] [BlueAir] Got homehost: api-us-east-1.blueair.io
[25/04/2024, 14:07:21] [BlueAir] x-auth-token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImZyZWRAcmFpbmZvcmVzdHFhLmNvbSIsImp0aSI6Ijk0N2Y0OGY1LTNmNjgtNDdmMy05ZGQ4LTVjNjRmMDlhOGU2MiIsImV4cCI6MTc0NTU1NzY0MTg4MywiZXhwaXJhdGlvbkRhdGUiOjE3NDU1NTc2NDE4ODN9.j77DqnijFrFhshsSOl4Rnjwc0mhWN4s7okDwZEMzczM
[25/04/2024, 14:07:22] [BlueAir] Found 0 devices.
[25/04/2024, 14:07:24] [BlueAir] ** AWS login complete **
[25/04/2024, 14:07:25] [BlueAir] Found 1 Blueair AWS-compatible devices.
[25/04/2024, 14:07:25] [BlueAir] Restoring existing accessory from cache: Bedroom Purifier
[25/04/2024, 14:07:27] [BlueAir] Creating new object: BlueAirDustProtectAccessory
[25/04/2024, 14:07:27] [BlueAir] Removing stale Service: uuid:[00000043-0000-1000-8000-0026BB765291]
[25/04/2024, 14:07:29] [BlueAir] Removing stale Service: uuid:[0000008A-0000-1000-8000-0026BB765291]
[25/04/2024, 14:07:29] [BlueAir] Removing stale Service: uuid:[00000082-0000-1000-8000-0026BB765291]
[25/04/2024, 14:07:34] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:35] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:37] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:37] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:39] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:40] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:41] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:43] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:44] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:45] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:46] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:47] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:08:11] [Homebridge UI] Starting terminal session
[25/04/2024, 14:08:26] [Homebridge UI] Terminal session ended.
[25/04/2024, 14:11:28] [HomebridgeTPLinkTapo] Command error: power > -1012

Plugin Config
{
    "bridge": {
        "name": "RaspberryBridge",
        "username": "XXXXX",
        "port": 51140,
        "pin": "XXXXX",
        "advertiser": "bonjour-hap"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "username": "XXXXX",
            "password": "YYYY",
            "enableAWS": true,
            "hideLED": true,
            "hideAirQualitySensor": false,
            "hideCO2Sensor": false,
            "hideTemperatureSensor": false,
            "hideHumiditySensor": false,
            "hideGermShield": false,
            "hideNightMode": false,
            "region": "eu",
            "platform": "BlueAir"
        },
        {
            "addresses": [
                "<IP_ADDRESS>"
            ],
            "name": "HomebridgeTPLinkTapo",
            "email": "XXXXX",
            "password": "YYYYY",
            "platform": "HomebridgeTPLinkTapo"
        }
    ],
    "disabledPlugins": [
        "homebridge-qingping-airmonitor-cgs1"
    ]
}

Plugin Version
4.1.0
Homebridge Version
1.8.0
Node.js Version
18.19.0
NPM Version
10.2.3
Operating System
Debian GNU/Linux 12 (bookworm)

Hey, check for updates in tapo app, than restart the bridge maybe your light got updated and it requires the bridge to restart

Same as fredsterss. I got Command error: power > -1012


UI Glitches: Unwanted Visual Artifacts and Flashing on Mode Switch

Here are two issues I've noticed with the ExceliDraw plugin:

As shown in the video and image, when I switch between ExceliDraw and the document block, something appears at the bottom and on the right side. This is a bit distracting.

https://github.com/zuoez02/siyuan-plugin-excalidraw/assets/36538038/6e831b2e-addb-4b29-92ad-d32e75309122
image:

In the video, you can see that when I switch to light mode and select a dark color, like black, and then switch back to ExceliDraw, it kind of flashes white.

https://github.com/zuoez02/siyuan-plugin-excalidraw/assets/36538038/08bed92c-9f46-478c-b796-a9084f3ead9b

same here


Added javadoc for dubbo-filter module dubbo github issue 2884

What is the purpose of the change
Improving the java doc coverage of dubbo-filter modules of all the classes under package

org.apache.dubbo.validation.*
org.apache.dubbo.validation

Brief changelog
Added javadoc and comments on class, constructor and method level, with example if configuration driven.
Verifying this change
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a GITHUB_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[ ] Run mvn clean install -DskipTests & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #2921 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #2921      +/-   ##
=========================================
- Coverage   63.71%   63.7%   -0.02%
=========================================
  Files         578     578
  Lines       25928   25928
  Branches     4539    4539
=========================================
- Hits        16521   16517       -4
- Misses       7235    7241       +6
+ Partials     2172    2170       -2

Impacted Files
Coverage Δ

...bo/cache/support/threadlocal/ThreadLocalCache.java
100% <ø> (ø)
:arrow_up:

.../org/apache/dubbo/cache/support/jcache/JCache.java
82.6% <ø> (ø)
:arrow_up:

...bo/validation/support/jvalidation/JValidation.java
100% <ø> (ø)
:arrow_up:

...he/dubbo/cache/support/expiring/ExpiringCache.java
100% <ø> (ø)
:arrow_up:

...o/cache/support/expiring/ExpiringCacheFactory.java
100% <ø> (ø)
:arrow_up:

...pache/dubbo/cache/support/lru/LruCacheFactory.java
100% <ø> (ø)
:arrow_up:

...ava/org/apache/dubbo/cache/filter/CacheFilter.java
76.19% <ø> (ø)
:arrow_up:

...ache/dubbo/validation/filter/ValidationFilter.java
85.71% <ø> (ø)
:arrow_up:

...e/support/threadlocal/ThreadLocalCacheFactory.java
100% <ø> (ø)
:arrow_up:

...a/org/apache/dubbo/cache/support/lru/LruCache.java
100% <ø> (ø)
:arrow_up:

... and 15 more

Continue to review full report at Codecov.

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

LGTM, thanks for the pull request!

@ralf0131  thanks for including this and closing.


Many language codes are documented but not accepted.

I came across an apparent bug whereby the majority of language codes documented on https://www.textrazor.com/languages are rejected by the API, with a TextRazorAnalysisException being raised, following an apparent 400 status code.
Of the 143 languages documented on the above-linked page, only 19 appear to be accepted in practice.
The error message looks like
TextRazor cannot analyze documents of language: cze
In addition, when language isn't supplied (and autodetection is used), it's possible that one of these documented but rejected languages is selected.
This means the user is told they can't use a language which they never selected.
Please see the Python script in this zip folder for 2 test cases, one to cover the autodetection issue and one to cover the wider issue of language support.
You should be able to run this with standard Python installed + textrazor:
python test_replicate_lang_issue.py
I was running the tests with a text file containing my API key called api_key.txt stored in the same directory as the python script.
Please could this be looked into?
I'm assuming it's not the Python client itself at fault, but I wasn't sure where else to raise this.
Thanks

Hi @jkelly-kantar,
We currently support the 19 languages listed at the top of https://www.textrazor.com/languages with our full Entity Extraction, Topic Tagging and Classification system. Our language detector is capable of identifying far more than we are capable of analyzing, those are listed further down that page. The error is intentional - if we detect language as one we don't support, typically it's better to halt the process instead of guessing a language. This is useful where you are analyzing eg web content, which may be in any language. Where you know in advance the source language you can set the override to mitigate any potential errors in the language detection logic.
Hope that is clear - if there's anything else feel free to drop an email to<EMAIL_ADDRESS>Thanks

Hi @jkelly-kantar, We currently support the 19 languages listed at the top of https://www.textrazor.com/languages with our full Entity Extraction, Topic Tagging and Classification system. Our language detector is capable of identifying far more than we are capable of analyzing, those are listed further down that page. The error is intentional - if we detect language as one we don't support, typically it's better to halt the process instead of guessing a language. This is useful where you are analyzing eg web content, which may be in any language. Where you know in advance the source language you can set the override to mitigate any potential errors in the language detection logic.
Hope that is clear - if there's anything else feel free to drop an email to<EMAIL_ADDRESS>Thanks

Thanks @crayston for the clear explanation, that does make sense.
I think we had just misread / misunderstood the docs! :smile:


App Configuration Spring 4.0 - Draft

Description
Updating App Configurations Spring Library to use the 4.0 Spring Design.
Changes

Changed From azure-spring-cloud to spring-cloud-azure
Moved Code into implementation folder for revapi
Cleaned up code, some pre azure sdk code was still around
Renamed some classes for clarity, none of which are part of the public API
Feature Flags now have a Selects API similar to configurations
Feature Flags can now come from multiple sources without issue
Decoupled Feature Flag and Configuration Property Sources
Watch Keys aren't loaded if monitoring is disabled on startup

Blockers

[X]  Geo Replication https://github.com/Azure/azure-sdk-for-java/pull/30084
[X] App Configuration SDK Client Regression, also blocks Geo Replication https://github.com/Azure/azure-sdk-for-java/issues/30536
[ ] SDK throws uncatchable errors, doesn't actually block but makes catching the issues sub optimal https://github.com/Azure/azure-sdk-for-java/issues/30518
[ ] Dynamic Features, this feature branch updates the Feature Management code to the 4.0 style. Can't update the starter until both are done. https://github.com/Azure/azure-sdk-for-java/tree/feature/azconfig-spring/DynamicFeature

API change check
APIView has identified API level changes in this PR and created following API reviews.
spring-cloud-azure-appconfiguration-config

One more thing is the 4.x supports users to configure proxy, HTTP client options, retry, profile, and credential properties to the internal clients.

One more thing is the 4.x supports users to configure proxy, HTTP client options, retry, profile, and credential properties to the internal clients.

This can be done using the ConfigurationClientBuilderSetup and SecretClientBuilderSetup which enable modification of clients based on the endpoint.
I've talked with my team and we were thinking about making it so your auto configure options would be the default for all, but keep ours to allow for individual override. Thoughts?


still inconsistencies ...

After I've first tried the library from bjeavons where the gap between JS & PHP was huge (3 vs 0 as score), I've switched to your fork.
Now the inconsistency is a little bit smaller, but still there is :)
Try stargate100 (without any user data)

JS: scores 3
PHP: scores 2

Thanks for the report.
Unfortunately (or fortunately) I can't reproduce this. I get a score of 2
from the js library as well.
Are you using version 4.4.2 of the js library?

Ooops, my bad, it was 4.2.0 ;)
Thx


MatchLocalhost: Accelerated Return Results

Accelerated Return Results
Create addrError when necessary

Do you have a benchmark result?

Do you have a benchmark result?

The code logic is very simple, so I didn't write benchmark. I can generate data if necessary.
According to logical analysis, it will be faster when host is' <IP_ADDRESS> * 'or 'localhost *'

Do you have a benchmark result?

func BenchmarkMatchLocalhost(b *testing.B) {
	testCases := []struct {
		host  string
		match bool
	}{
		{"", false},
		{"<IP_ADDRESS>", true},
		{"<IP_ADDRESS>", true},
		{"127.256.0.1", false},
		{"<IP_ADDRESS>", true},
		{"<IP_ADDRESS>:5000", true},
		{"registry.org", false},
		{"126.example.com", false},
		{"localhost", true},
		{"localhost:5000", true},
		{"[127:0:0:1]", false},
		{"[::1]", true},
		{"[::1]:", false},
		{"<IP_ADDRESS>:", false},
		{"[::1]:5000", true},
		{"::1", true},
	}
	for i := 0; i < b.N; i++ {
		for _, tc := range testCases {
			actual, _ := MatchLocalhost(tc.host)
			if actual != tc.match {
				b.Fail()
			}
		}
	}
}

func BenchmarkMatchLocalhostBefore(b *testing.B) {
	testCases := []struct {
		host  string
		match bool
	}{
		{"", false},
		{"<IP_ADDRESS>", true},
		{"<IP_ADDRESS>", true},
		{"127.256.0.1", false},
		{"<IP_ADDRESS>", true},
		{"<IP_ADDRESS>:5000", true},
		{"registry.org", false},
		{"126.example.com", false},
		{"localhost", true},
		{"localhost:5000", true},
		{"[127:0:0:1]", false},
		{"[::1]", true},
		{"[::1]:", false},
		{"<IP_ADDRESS>:", false},
		{"[::1]:5000", true},
		{"::1", true},
	}
	for i := 0; i < b.N; i++ {
		for _, tc := range testCases {
			actual, _ := MatchLocalhostBefore(tc.host)
			if actual != tc.match {
				b.Fail()
			}
		}
	}
}

$ go test -benchmem  -bench 'BenchmarkMatchLocalhost*' github.com/containerd/containerd/remotes/docker/ -benchtime=5s
goos: darwin
goarch: arm64
pkg: github.com/containerd/containerd/remotes/docker
BenchmarkMatchLocalhost-8                6281660               980.1 ns/op           896 B/op         25 allocs/op
BenchmarkMatchLocalhostBefore-8          4371560              1330 ns/op            1216 B/op         35 allocs/op
PASS
ok      github.com/containerd/containerd/remotes/docker 18.025s

@helen-frank I'm curious if the difference in that benchmark is just from moving the allocation of addrError. If you just make that change, is it the same result?
I think it makes sense to move that allocation inside the error block.

@dmcgowan Not so, see https://github.com/containerd/containerd/pull/8349#issuecomment-1497293193
go test -benchmem  -bench 'BenchmarkMatchLocalhost*' github.com/containerd/containerd/remotes/docker/ -benchtime=5s
goos: darwin
goarch: arm64
pkg: github.com/containerd/containerd/remotes/docker
BenchmarkMatchLocalhost-8                        6219754               957.2 ns/op           896 B/op         25 allocs/op
BenchmarkMatchLocalhostBefore-8                  4572481              1343 ns/op            1216 B/op         35 allocs/op
BenchmarkMatchLocalhostOnlyChangeErrorVar-8      4476870              1330 ns/op            1216 B/op         35 allocs/op
PASS
ok      github.com/containerd/containerd/remotes/docker 24.284s

var testCases = []struct {
	host  string
	match bool
}{
	{"", false},
	{"<IP_ADDRESS>", true},
	{"<IP_ADDRESS>", true},
	{"127.256.0.1", false},
	{"<IP_ADDRESS>", true},
	{"<IP_ADDRESS>:5000", true},
	{"registry.org", false},
	{"126.example.com", false},
	{"localhost", true},
	{"localhost:5000", true},
	{"[127:0:0:1]", false},
	{"[::1]", true},
	{"[::1]:", false},
	{"<IP_ADDRESS>:", false},
	{"[::1]:5000", true},
	{"::1", true},
}

func BenchmarkMatchLocalhost(b *testing.B) {
	for i := 0; i < b.N; i++ {
		for _, tc := range testCases {
			actual, _ := MatchLocalhost(tc.host)
			if actual != tc.match {
				b.Fail()
			}
		}
	}
}

func BenchmarkMatchLocalhostBefore(b *testing.B) {
	for i := 0; i < b.N; i++ {
		for _, tc := range testCases {
			actual, _ := MatchLocalhostBefore(tc.host)
			if actual != tc.match {
				b.Fail()
			}
		}
	}
}

func BenchmarkMatchLocalhostOnlyChangeErrorVar(b *testing.B) {
	for i := 0; i < b.N; i++ {
		for _, tc := range testCases {
			actual, _ := MatchLocalhostBefore(tc.host)
			if actual != tc.match {
				b.Fail()
			}
		}
	}
}

// Note: this does not handle matching of ip addresses in octal,
// decimal or hex form.
func MatchLocalhostBefore(host string) (bool, error) {
	switch {
	case host == "::1":
		return true, nil
	case host == "[::1]":
		return true, nil
	}
	h, p, err := net.SplitHostPort(host)

	// addrError helps distinguish between errors of form
	// "no colon in address" and "too many colons in address".
	// The former is fine as the host string need not have a
	// port. Latter needs to be handled.
	addrError := &net.AddrError{
		Err:  "missing port in address",
		Addr: host,
	}
	if err != nil {
		if err.Error() != addrError.Error() {
			return false, err
		}
		// host string without any port specified
		h = host
	} else if len(p) == 0 {
		return false, errors.New("invalid host name format")
	}

	// use ipv4 dotted decimal for further checking
	if h == "localhost" {
		h = "<IP_ADDRESS>"
	}
	ip := net.ParseIP(h)

	return ip.IsLoopback(), nil
}

func MatchLocalhostBeforeOnlyChangeErrorVar(host string) (bool, error) {
	switch {
	case host == "::1":
		return true, nil
	case host == "[::1]":
		return true, nil
	}
	h, p, err := net.SplitHostPort(host)
	if err != nil {
		// addrError helps distinguish between errors of form
		// "no colon in address" and "too many colons in address".
		// The former is fine as the host string need not have a
		// port. Latter needs to be handled.
		addrError := &net.AddrError{
			Err:  "missing port in address",
			Addr: host,
		}
		if err.Error() != addrError.Error() {
			return false, err
		}
		// host string without any port specified
		h = host
	} else if len(p) == 0 {
		return false, errors.New("invalid host name format")
	}

	// use ipv4 dotted decimal for further checking
	if h == "localhost" {
		h = "<IP_ADDRESS>"
	}
	ip := net.ParseIP(h)

	return ip.IsLoopback(), nil
}

I see, I didn't look at the benchmarks closer. The result is faster because it returns quickly when the strings are localhost or <IP_ADDRESS>. It feels like a bit of a manufactured benchmark when those cases are included, since an early return will obviously be faster in those cases. The question really is, why were those cases not included in the first place, my guess is because localhost and <IP_ADDRESS> are most commonly paired with a port.

I see, I didn't look at the benchmarks closer. The result is faster because it returns quickly when the strings are localhost or <IP_ADDRESS>. It feels like a bit of a manufactured benchmark when those cases are included, since an early return will obviously be faster in those cases. The question really is, why were those cases not included in the first place, my guess is because localhost and <IP_ADDRESS> are most commonly paired with a port.

yeay, I found the https://github.com/containerd/containerd/issues/5129#issue-822925206


Move all OAO deployment pieces to a private repo.

Again related to public release: The public Nerium is a package, and can be installed to a Dockerfile in one pipenv command (via -e git currently, and eventually PyPi). This is what we should be building and deploying.

https://github.com/OAODEV/nerium/pull/28


Input value not updated when manually changed and allowInput: true, altInput: true

Expected Behavior
I am trying to produce a text input field which the user can edit manually, and which displays the date in the UI in one format while always storing the date value in another format.  Here's my code:
HTML:
<form>
  <input type="text" class="date" value="2017-02-23">
  <input type="submit">
<form>

JS:
flatpickr("input.date", {
  allowInput: true,
  altInput: true,
  altFormat: "j M Y",
  dateFormat: "Y-m-d"
});

The calendar picker itself works perfectly: the input field displays the date in its altFormat (e.g. 23 Feb 2017) and it is submitted to the server in the dateFormat (e.g. 2017-02-23), as expected.
I would expect to be able to type (directly into the input) a date in the same format as the displayed date.
Current Behavior
When I type directly into the input, the date I typed is not submitted when the form is submitted.  Instead the original value is submitted.
Possible Solution
I'm new to this codebase, but it looks like altInput: true leads flatpickr to hide the original input and create a new one showing the date in its altFormat.  I would guess that direct, non-calendar-picker changes to the visible input field are somehow not being passed on properly to the hidden input field.
UPDATE: after reading #578, I wonder whether this is due to parsing.  I would expect to be able to directly type a date in the same format as the displayed date, i.e. altFormat.  Maybe, though, it only works if I type a date in the underlying format, i.e. dateFormat.  I tried it, and it works (if and only if) I also press <enter> straight afterwards.  But that is impossible for the user to figure out; if we're displaying dates in altFormat, we should accept manually typed dates in altFormat.
Your Environment

Version used: 2.4.2
Browser Name and version: Chrome 56.0.2924.87 (64-bit)
Operating System and version (desktop or mobile): OS X 10.11.6

Based on your comment here, I tried adding a parseDate option to my flatpickr config:
parseDate: function(dateString) { ... }

I couldn't tell from the docs whether my parseDate function was supposed to handle strings in dateFormat or altFormat.  With some trial and error, it looks like it has to handle both.
Given that I only need to support two altFormats (d.m.Y and j M Y), and a dateFormat of Y-m-d, specifying my own parseDate function appears to solve the problem for me.
parseDate: function(dateString) {
  var match;
  // dateFormat
  match = dateString.match(/(\d{4})-(\d{2})-(\d{2})/);
  if (match != null) {
    return new Date(match[1], match[2] - 1, match[3]);
  }
  // altFormat 1
  match = dateString.match(/(\d{2})\.(\d{2})\.(\d{4})/);
  if (match != null) {
    return new Date(match[3], match[2] - 1, match[1]);
  }
  // altFormat 2
  match = dateString.match(/(\d{1,2}) (\w{3}) (\d{4})/);
  if (match != null) {
    return new Date(dateString);
  }
  // unparseable
  return new Date();
}

Without my parseDate function, flatpickr matches 23 Mar 2017 against timeRegex here, which sets the date to today (line 2099).  Which explains the behaviour I was seeeing.
Anyway, is this the correct way to go?

@airblade Yes that's the way to go for now.
I've been seriously considering integrating a date parser, however.
The challenge is to accomplish it in minimal # lines of code.

OK, thanks for the confirmation.
I think the docs explain the difference between dateFormat and altFormat well, but it isn't clear (to me) what format Flatpickr uses to parse a date string from either the <input>'s initial value or the defaultDate option.
Regarding a date parser: I'd be happy with a very simple, no-surprises one built in; and the capability to replace the built in parser with anything I wanted, if I needed something more sophisticated.
Anyway, thanks for a great plugin!

*dig
You could also emit an enter press after blur occurs:
let picker = new Flatpickr(el, conf)
picker._input.addEventListener("blur", function(event) {
  let enter = new KeyboardEvent('keydown', {
    bubbles : true,
    cancelable : true,
    key : "Enter"
  })
  picker._input.dispatchEvent(enter)
}, true);

@Comp0ser As mentioned in issue https://github.com/flatpickr/flatpickr/issues/1551#issuecomment-522942541 this can be done simply in the config object.

*dig
You could also emit an enter press after blur occurs:
let picker = new Flatpickr(el, conf)
picker._input.addEventListener("blur", function(event) {
  let enter = new KeyboardEvent('keydown', {
    bubbles : true,
    cancelable : true,
    key : "Enter"
  })
  picker._input.dispatchEvent(enter)
}, true);

I needed something similar - came across numerous suggestions online (but none seemed to work) found 2 pull requests claiming to fix this issue (over a year old, frustrating!)
So using this as a base, this is what i came up with that seems to work on flatpickr v4.6.13
`$("MyDateFieldSelectors").flatpickr(
{allowInput:true, altInput:true, altFormat:'m/d/Y', dateFormat: "Y-m-d",
onReady: function(selectedDates, dateStr, instance) {
//fp custom fix for input blur not trigging value update
let el = instance.altInput;
		el.addEventListener("focus", function(event) {
			//console.log('focus',el.value);
			el.setAttribute("data-fpcustom", el.value); // store the value on focus
		}, true);

		el.addEventListener("blur", function(event) {
		  //console.log('blur',el.dataset.fpcustom + ' ==? ' + el.value);
		  if(el.dataset.fpcustom == el.value) {return;} // if current value different then focused value, then trigger enter
		  let enter = new KeyboardEvent('keydown', {bubbles : true, cancelable : true, keyCode : 13});
		  instance._input.dispatchEvent(enter)
		}, true);
	 }
	}
);`


[DF] Build against master branch of DataFusion

Is your feature request related to a problem? Please describe.
The master branch of DataFusion has bug fixes and new features that we want to use from dask-sql so we may want to build against the master branch in the short term rather than depending on version 7.0.0.
Describe the solution you'd like
Change cargo.toml dependency:
datafusion = { git="https://github.com/apache/arrow-datafusion/" }

Describe alternatives you've considered
None
Additional context
None

Closed with #471


clean up!

@rev112 thanks for this neat implementation...
im using your implementation for a project. including a random key generator (same manner as https://github.com/pyca/cryptography) as well as a few comments (hopefully helps other beginners like me!)

Feel free to open a new PR if necessary.


Offer edge_ori maps of previous methods for evaluation

Hi guoxia,
Thanks a lot for your evaluation code, it's very useful! Btw, can you kindly offer a link to edge_ori predictions of previous methods? When I try to run OccCompCurvesPlot.m, I can't find predictions of previous methods. I think the offered source will be a good contribution to the community.
Thank you by advance!

@tim885 Sorry, I read this issue until now. The comparison files of previous methods can be find in Eval folder. Hope to help you!

Thanks a lot!


Autopark support in gem

Adds a start_autopark method on TeslaApi::Vehicle. Takes in a block that gets two args: msg_type and message.
Here's some really basic code that gets things started:
vehicle = client.vehicles.first
vehicle.start_autopark do |msg_type, message|
  p msg_type, message
end

Coverage remained the same at 79.592% when pulling 93b56434558745dd6423a2f803761ea3f4444832 on autopark into 3062a73faea3f60edea94fa1207d8f01d47132f9 on master.


Allow supplying something other than suspending functions to core builders

Use case
Our company is trying to use Apollo Kotlin for both our Java-based/Clojure-based applications.
Many functions like reopenWhen on WebSocketNetworkTransport take Kotlin specific suspending functions which are near impossible to work with in vanilla Java and especially Clojure (and is pretty awkward to use w/o the Kotlin compiler).
Describe the solution you'd like
It makes perfect sense for a Kotlin client to work this way (especially for implementing things like backoffs), though I'd love to see this library's public interfaces abstract some of the Kotlin specific features away to allow other JVM languages to adopt. For example, consider also accepting a function that returns a java.util.concurrent.CompletableFuture primitive and just translating to a suspension function under the hood https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-jdk8/kotlinx.coroutines.future/await.html as this is relatively easily usable in all other JVM-based languages w/o extra dependencies.
If anyone has any example of how to translate something like:
.webSocketReopenWhen { e, attempt ->
          delay(2.0.pow(attempt.toDouble()).toLong())
          // retry after the delay
          true
        }

to Java I'd love to see how it should be done!

I also realize things like #4283 and #3694 are underway but seems like this particular one could be tweaked until then?

Example:
Create an extension in jvmMain WebSocketNetworkTransportExtensions.kt and add the implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.4") dependency to jvmMain.
package com.apollographql.apollo3.network.ws

import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.future.await
import java.util.concurrent.CompletableFuture

/**
 * Configure the [WebSocketNetworkTransport] to reopen the websocket automatically when a network error
 * happens
 *
 * @param reopenWhen a function taking the error and attempt index (starting from zero) as parameters and returning a CompletableFuture
 * value of 'true' to reopen automatically or 'false' to forward the error to all listening [Flow].
 * It returns a CompletableFuture, so it can be used to introduce delay before retry (e.g. backoff strategy).
 *
 */
fun WebSocketNetworkTransport.Builder.reopenWhen(reopenWhen: ((Throwable, attempt: Long) -> CompletableFuture<Boolean>)?) = apply {
  this.reopenWhen(reopenWhen?.let {
    val adaptedLambda: suspend (Throwable, Long) -> Boolean = { throwable, attempt -> it.invoke(throwable, attempt).await() }
    adaptedLambda
  })
}

@vincentjames501 Thanks for reporting this need. At Apollo we are trying to better understand the needs of Java developers for improving our Kotlin client's support of Java.
If you have some time we have a survey we've been sharing to gathering some data on the use of Java in different companies, We'd love to gather you feedback for consideration.

@jpvajda , thanks. I filled it out. Just to note, a lot of people would probably love to use this client from other JVM languages too (like Scala, Clojure, Groovy, etc). In our case we're trying to use it from Clojure. Just another data point I didn't see mentioned on the Survey. Cheers!

Closing as the dedicated Java runtime addresses this with its callbacks based API. This can be tried out with the v4 betas.


Deterministic calculate address for identity contract

Currently the address for the identity contract can not be known before it is created. This is bad for two reasons:

The user has to trust the relay to deploy him the right contract
The user can not recover his identity contract, because he does not know the address anymore.

To solve that, we will now create it deterministic from the address of the external owned account.
keccak256( 0xff ++ address ++ salt ++ keccak256(init_code))[12:]

so in our case it is
keccak256( 0xff ++ FACTORY_ADDRESS ++ 0 ++ keccak256(init_code_withouth_ext_address + ext_address))[12:]

Current WIP is here https://github.com/trustlines-protocol/clientlib/tree/feature/deterministic-identity-address

Done


Change in "six" import

Hi, I suggest a small change in line 27 of pylmnn.py. Which is:
from sklearn.externals.six import integer_types, string_types
Which raises the following warning when executed:
DeprecationWarning: The module is deprecated in version 0.21 and will be removed in version 0.23 since we've dropped support for Python 2.7. Please rely on the official version of six (https://pypi.org/project/six/).
  "(https://pypi.org/project/six/).", DeprecationWarning)

So in order to maintain compatibility with both older and future versions, I propose something like this:
try:
    from six import integer_types, string_types
except ImportError:
    try:
        from sklearn.externals.six import integer_types, string_types
    except ImportError:
        raise ImportError("The module six must be installed or the version of scikit-learn version must be < 0.23")

I'll open a pull request in case you think it is a good idea.

Thanks for raising this. There is also another import of sklearn.externals.six in test_lmnn.py. If you want to do the same there and check that the tests pass for 2.7 and 3.6 at least, I would be happy to merge a PR. Otherwise I will do it as soon as I find some time.

Done, already updated the PR. Both tests passed, for 2.7, 3.6, and 3.7. However, you should know that the tests for test_bayesopt.py are failing, but not because of this change, they are failing in the current master too.

Thanks for catching this. I will upload a new version soon.


switch from coveralls to codecov

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@07d36e2). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #178   +/-   ##
=========================================
  Coverage          ?   99.28%
=========================================
  Files             ?        1
  Lines             ?      139
  Branches          ?        0
=========================================
  Hits              ?      138
  Misses            ?        1
  Partials          ?        0

Continue to review full report at Codecov.

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


Fix xeno and dragon blood levels

About the PR

Up these mobs to 650u blood.
Add blood restoration to the dragon's ichor (when they eat someone they heal)
Why / Balance

Xenos and dragons have the same default blood level as humanoids despite being able to take more damage, resulting in more bloodloss damage than they should be receiving, since they'll be losing blood very often.
Will help offset #25434 as well as it introduces sustained bleeding.
Might have to increase passive bleed wound clotting for them as well but this will be a good start.
Technical details

Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog
:cl: Whisper

add: Dragon ichor when eating restores the dragon's blood.
tweak: Increased Xenomorph and Dragon blood level to 650u.

dragon buffed, dehydrated dragon one step closer to being closed


Completely black screen

When I try to install Kali Linux with graphical installation the screen go black.
Note: I'm using the M1 installer provided by kali linux website.
UTM Version:  3.2.4
Monterey 12.2.1
Mac M1 air 2020

I am also facing the same issue. :) UTM is not good...

Macbook is also shit...

when i am window usre i never face any issues

I like UTMm but if you really need to install Kali fast, try to install Parallels until this bug is not fixed.
Thank you UTM team.

Same problem. Was able to do a installation in text mode, graphics would run afterwards (i.e. after the installation has finished).

In my case after showing an error the screen become black.
Error:
UTM Version: 3.2.4
Monterey 12.4
Mac M1 pro 2020
mount: mounting /dev/vda on /media failed: Invalid argument
umount: can't umount /media: Invalid argument
mount: mounting /dev/vda on /media failed: Invalid argument

@JCFlores93 What is the OS running in the VM?

This si Kali Linux
Obtener Outlook para Androidhttps://aka.ms/AAb9ysg

From: ktprograms @.>
Sent: Saturday, June 11, 2022 8:50:10 AM
To: utmapp/UTM @.>
Cc: Jean Carlo Flores Carrasco @.>; Mention @.>
Subject: Re: [utmapp/UTM] Completely black screen (Issue #4090)
@JCFlores93https://github.com/JCFlores93 What is the OS running in the VM?
—
Reply to this email directly, view it on GitHubhttps://github.com/utmapp/UTM/issues/4090#issuecomment-1152931355, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGBCD7SMPTXVBXSDSZ2XLI3VOSKRFANCNFSM5XWVSPHQ.
You are receiving this because you were mentioned.Message ID: @.***>

At which point was this error shown? While booting, while running the installer, or something else?

Yes, while running the installer. Exactly after I select the Graphic installer option.

I confirm. The error is encountered after select the graphic installer option

OS: Mac OS Monterey 12.4
MacBook Pro: M1 Pro (16-inch, 2021)
UTM: Version 3.2.4 (58)
Graphical installer fails with

for anyone struggling, just install without graphics, its straightforward and easy

Im having the same issue. After I select "graphical Install" I get the same error message, followed by a completely dark screen. Anyone ever solved this issue? Does UTM know of this issue? Im currently running Mac OS 12.4 M1 chip.

for anyone struggling, just install without graphics, its straightforward and easy. later it will give option to install desktop environment (checked by default)
After installation finished, move USB disk down in UTM settings, as it will try to install again.

I did what @vko-online suggested and it works like a charm.

It seems like there is an issue with UTM, I checked the same and it seems like Kali Linux is not loading either with Graphics Mode and with no graphics.
The screen gets stuck for both.

Running into the exact same problem on an M1 mac running 12.5. Both graphical and text installs hang indefinitely.

@rmangino same issue with both

Hi to everyBody. I was the same problem like you and I can fix it with the following steps.
1º- Edit the VM in UTM and change in Display the TYPE from Full Graphics to Text only.
2º- Then run the VM with the ISO of Kali Linux and select the first kind of installation. In the progress you can install a GUI interface.
3º- When the installation was finished, log in and shutdown.
4º- Edit the VM again and change in Display the TYPE to Full Graphics.
5º- Done.
The problem is the Installation program, it hasn't got a correcto display drivers.
Luck !

I tried the same before though the issue remained the same. I have moved onto Parallels for Mac and it works like a charm. Better than VirtualBox and VMWare TBH!

did you try exactly what i said?, step by step?. It's work perfect and with free open source platform :)

Hi to everyBody. I was the same problem like you and I can fix it with the following steps.
1º- Edit the VM in UTM and change in Display the TYPE from Full Graphics to Text only. 2º- Then run the VM with the ISO of Kali Linux and select the first kind of installation. In the progress you can install a GUI interface. 3º- When the installation was finished, log in and shutdown. 4º- Edit the VM again and change in Display the TYPE to Full Graphics. 5º- Done.
The problem is the Installation program, it hasn't got a correct display drivers.
Luck !

This is working
thanks!

Hi to everyBody. I was the same problem like you and I can fix it with the following steps.
1º- Edit the VM in UTM and change in Display the TYPE from Full Graphics to Text only. 2º- Then run the VM with the ISO of Kali Linux and select the first kind of installation. In the progress you can install a GUI interface. 3º- When the installation was finished, log in and shutdown. 4º- Edit the VM again and change in Display the TYPE to Full Graphics. 5º- Done.
The problem is the Installation program, it hasn't got a correct display drivers.
Luck !

This worked for me thanks!

Thanks you so much @jhonsay this was exactly my issue!! I could carry on with the installation without any problem :)

Thanks you so much @jhonsay this was exactly my issue!! I could carry on with the installation without any problem :)

Happy to read you :)

Hi, I run the steps as per @jhonsay but still facing an issue.
Interactive shell display the following. How to "select the first kind of installation"?
Thank you.

UEFI Interactive Shell v2.2
EDK II
UEFI v2.70 (EDK II, 0x00010000)
Mapping table
BLK1: Alias(s):
VenHw(93E34C7E-B50E-11DF-9123-2543DFD72085,00)
BLK0: Alias(s):
PciRoot(0x0)/Pci(0x4,0x0)
Press ESC in 1 seconds to skip startup.nsh or any other key to continue.
Shell>

If that's showing up, maybe you need to put the ISO image before start the machine. When the VM is selected (but not launched), there is some information like Status, Architecture, Machine... In CD/DVD the ISO must be selected, then carry on and launch the VM. After installation, you can remove the ISO

Hi to everyBody. I was the same problem like you and I can fix it with the following steps.
1º- Edit the VM in UTM and change in Display the TYPE from Full Graphics to Text only. 2º- Then run the VM with the ISO of Kali Linux and select the first kind of installation. In the progress you can install a GUI interface. 3º- When the installation was finished, log in and shutdown. 4º- Edit the VM again and change in Display the TYPE to Full Graphics. 5º- Done.
The problem is the Installation program, it hasn't got a correct display drivers.
Luck !

Worked the charm for me! Thank you!

For anyone is still having problem installing linux or having back screen error. Follow this video https://www.youtube.com/watch?v=Z2e-fRLxXnU, but before setting up the machine, go to linux setting and go to display and change the 'type' to console only. Then follow to the video. When ur done with setting up the machine, change back to Full graphic and reboot the machine and it worked.

Hi to everyBody. I was the same problem like you and I can fix it with the following steps.
1º- Edit the VM in UTM and change in Display the TYPE from Full Graphics to Text only. 2º- Then run the VM with the ISO of Kali Linux and select the first kind of installation. In the progress you can install a GUI interface. 3º- When the installation was finished, log in and shutdown. 4º- Edit the VM again and change in Display the TYPE to Full Graphics. 5º- Done.
The problem is the Installation program, it hasn't got a correct display drivers.
Luck !

Worked for me, thanks

@jhonsay thank you so much bro it worked like charm for me. was facing this issue from last one week. thank you so much

Hi to everyBody. I was the same problem like you and I can fix it with the following steps.
1º- Edit the VM in UTM and change in Display the TYPE from Full Graphics to Text only. 2º- Then run the VM with the ISO of Kali Linux and select the first kind of installation. In the progress you can install a GUI interface. 3º- When the installation was finished, log in and shutdown. 4º- Edit the VM again and change in Display the TYPE to Full Graphics. 5º- Done.
The problem is the Installation program, it hasn't got a correct display drivers.
Luck !

worked!

Hi, I tried the entire download and configuration as described by @barvhaim, but when all is set, Kali does not reboot and asks to re-do the configuration again. any help please?

Hi to everyBody. I was the same problem like you and I can fix it with the following steps.
1º- Edit the VM in UTM and change in Display the TYPE from Full Graphics to Text only. 2º- Then run the VM with the ISO of Kali Linux and select the first kind of installation. In the progress you can install a GUI interface. 3º- When the installation was finished, log in and shutdown. 4º- Edit the VM again and change in Display the TYPE to Full Graphics. 5º- Done.
The problem is the Installation program, it hasn't got a correct display drivers.
Luck !

bruuuuuh where you was before

Here is the confirmation but then a request to reconfigure.

After installation you should clear cd/dvd and switch back display mode

Show utm

I completed the installation but when I press continue, I get the window to redo it again ?

I completed the installation but when I press continue, I get the window to redo it again ?

After complete you should clear cd/dvd in utm

Click cd/dvd -> clear

yes done. How to close kali now

?

yes done. How to close kali now

?

Comman + q

Many many thanks It is working

Many many thanks It is working

wich mac you got ?

MacBook Air , M1, 2020
On Mon, Aug 29, 2022 at 10:43 AM ogizoyani_:) <
@.***> wrote:

Many many thanks It is working
wich mac you got ?
—
Reply to this email directly, view it on GitHub
https://github.com/utmapp/UTM/issues/4090#issuecomment-1229963252, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/A2T3XONTRUYNCHWKBYRDFATV3RZ3HANCNFSM5XWVSPHQ
.
You are receiving this because you commented.Message ID:
@.***>

MacBook Air , M1, 2020
On Mon, Aug 29, 2022 at 10:43 AM ogizoyani_:) <
@.***> wrote:

Many many thanks It is working
wich mac you got ?
—
Reply to this email directly, view it on GitHub
https://github.com/utmapp/UTM/issues/4090#issuecomment-1229963252, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/A2T3XONTRUYNCHWKBYRDFATV3RZ3HANCNFSM5XWVSPHQ
.
You are receiving this because you commented.Message ID:
@.***>

everything works smoothly?
I've few days ago got m1 pro 14 inch base model, I thought that it will "fly", but in real life it was not so smoothly

Hi to everyBody. I was the same problem like you and I can fix it with the following steps.
1º- Edit the VM in UTM and change in Display the TYPE from Full Graphics to Text only. 2º- Then run the VM with the ISO of Kali Linux and select the first kind of installation. In the progress you can install a GUI interface. 3º- When the installation was finished, log in and shutdown. 4º- Edit the VM again and change in Display the TYPE to Full Graphics. 5º- Done.
The problem is the Installation program, it hasn't got a correct display drivers.
Luck !

Thanks, I try this and works perfectly fine.

Hi to everyBody. I was the same problem like you and I can fix it with the following steps.
1º- Edit the VM in UTM and change in Display the TYPE from Full Graphics to Text only. 2º- Then run the VM with the ISO of Kali Linux and select the first kind of installation. In the progress you can install a GUI interface. 3º- When the installation was finished, log in and shutdown. 4º- Edit the VM again and change in Display the TYPE to Full Graphics. 5º- Done.
The problem is the Installation program, it hasn't got a correct display drivers.
Luck !

This worked for me. Thank you so much.

Hi to everyBody. I was the same problem like you and I can fix it with the following steps.
1º- Edit the VM in UTM and change in Display the TYPE from Full Graphics to Text only. 2º- Then run the VM with the ISO of Kali Linux and select the first kind of installation. In the progress you can install a GUI interface. 3º- When the installation was finished, log in and shutdown. 4º- Edit the VM again and change in Display the TYPE to Full Graphics. 5º- Done.

Дякую!

With the latest apt updates for Kali Linux, a functioning Kali Linux installation with a working GUI just turns black on reboot. I can still interact with it via the shell, but the screen is just black (except the cursor). Does anyone have a clue why?
I'm using UTM 3.2.4 and Kali Linux 2022.3 with the latest version of all available pre-installed packages.

With the latest apt updates for Kali Linux, a functioning Kali Linux installation with a working GUI just turns black on reboot. I can still interact with it via the shell, but the screen is just black (except the cursor). Does anyone have a clue why?
I'm using UTM 3.2.4 and Kali Linux 2022.3 with the latest version of all available pre-installed packages.

Easy to fix

Change Emulated Display card from virtio-ramfb-gl to virtio-ramfb looks like a driver problem 😢

1º- Edit the VM in UTM and change in Display the TYPE from Full Graphics to Text only.

I'm running UTM version 4.0.8 and the mentioned "Full Graphics" and "Text only" options are gone. 😞

1º- Edit the VM in UTM and change in Display the TYPE from Full Graphics to Text only.

I'm running UTM version 4.0.8 and the mentioned "Full Graphics" and "Text only" options are gone. 😞

same its not working can anyone help?

@DarkShadowG here you go: https://docs.getutm.app/guides/kali/#black-screen-on-start

@optikfluffel issue solved , thanks man !


/:gist now routes to the given gist id

@lukechurch

fix #37

(landing to test reading gists on various devices)


⚠ Bofrost.at has degraded performance

In f8a9b76, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1208 ms

Resolved: Bofrost.at performance has improved in c3ca29e after 6 minutes.


--bless adds Windows newlines in binary files

Hi Samir, hope you are doing well. I am using latest Smoke to test some command line tools. Some tools create binary output, e.g. BMP images. In these situations,
  - name: "XCOLOR"
    command: "..\\bin\\XCOLOR 80x25x256.bmp test.out 0 1"
    files:
      - path: test.out
        contents:
          file: xcolor.bmp

the xcolor.bmp had 0d added before all 0a bytes. I am using Windows. I guess it is something of the fwrite/C function or mode of file you use. Or maybe we need a switch to indicate binary files?

Yes, you're right; Smoke assumes that the file is text and writes with the system line endings. I think it would be great to support a "binary" mode, where files are read and written in binary mode, and error output is shown using hex, not writing a nonsensical diff.
However, diffing a binary is kind of beyond me right now; I don't have the time to look into it.
As a workaround, you could consider using output filters to pipe the file through something like hexdump (looks like this is available as part of the Cygwin util-linux package); this would effectively convert it to ASCII so diffs and the --bless flag will work correctly. You can see an example of filters in https://github.com/SamirTalwar/smoke/blob/v2.3.0/fixtures/processing-filters/smoke.yaml.

Thank you. So it is known. All good then.

Known, but not solved. If you would like this feature, please re-open the issue and I'll try and make time in the next month or so. If you like, we can pair on it. 😃


Naming consistency for montages/neighbors

There should be some consistency between the montage name and the corresponding neighborhood file. For biosemi-32.txt but biosemi32_neighb.mat. We should have either both hypenated or neither.

these files are the same as fieldtrip. let's try to keep it this way to
avoid confusion

ok, the neighbor files are from fieldtrip indeed but the montage files were generated from the biosemi site and they were recently added.

Ahh, so we could change the montage files to match FieldTrip. I'm fine with that.


Freezes, freezes, freezes

I'm a bit surprised that there is hardly any talk about the recurring freezes here. I use AO with XP12 and a 250 MBit/s line and a Ryzen 7 5800X3D. After about 10 minutes, X-Plane freezes for a few minutes. I have actually tried everything: Changed CPU allocation via ProcessLasso, changed image provider, excluded cache and AutoOrtho folder from Windows Defender, reduced texture quality in XP, it all did nothing. XP continues to stop for a few minutes. The problem exists for some users, but for the majority it seems to work without problems. I am at a loss as to what to do. And that's especially a shame since AO is a real must have. I don't even want to fly without it anymore.

Weirdly enough, I have the same problem when using the python version. X-Plane will hang after a while and only continue working after 20-30 seconds.
Running autoortho through the .exe of 0.4.3, I don't experience such issues. The only difference I could tell so far is maybe the Python version I use vs. what's used inside of the bundled .exe and the lack of Websockets support in the .exe (which appears to be a new feature for the flight tracker and I don't suspect should be related)

A small addition: Freezes only occur with the ZIP release, i.e. the Python version. I recently did a two-hour flight and XP12 ran smoothly without freezes or long interruptions. By the way, the Python version I used was 0.4.3.
So: Anyone who is affected by freezes during XP12 flights should try the EXE from Autoortho.


Fix tutorial in "on back".

When back is pressed and the tutorial is been show, this one don't dispose.

A TutorialCoachMark object was created and then the function finish() whas call in the dispose().


Bundle SQLite3 dynamic library

Why does this library not come with a bundled version of the SQLite3 dynamic library?
Especially in a system like deno, where the versions and locations of all other dependencies are specified as url-s in the code, having to manually install and manage the version of a SQLite3 dynamic library feels clumsy and error prone.

Bundling the SQLite library into this module would require bundling for all three platforms, and two different architectures for macOS, which would be a big size increase when downloading and caching module, also there is no way to bundle a native binary into JS module. There are some hacky approaches like base64 encoding and writing as a string in JS file, but it really only has downsides IMO. Only viable option seems dynamically downloading at runtime and caching the binary.

There is also https://deno.land/x/sqlite which bundles a sqlite WASM build

There is also https://deno.land/x/sqlite which bundles a sqlite WASM build

Yep, sqlite (wasm) is able to do that by encoding wasm binary in base64 and writing to a JS file which can be simply imported and automatically cached by Deno. That approach is viable only for wasm since it has same binary for all OS and arch.
Downloading and caching native libraries at runtime is something we can consider. Ideally, sqlite should be built in CI and published along with release and that release URL to be used by code to download.

Hello - if I wanted to make my own solution for this, where would I deploy the [lib]sqlite3.dll/so/dynlib file on the end-users system? Right next to the binary for my app?
Also, would that same libsqlite3 file be needed during Deno compilation? In other words, do I need to supply the DENO_SQLITE_PATH during build-time (compiling) or at runtime? I am not familiar with how FFI works, but I am guessing that the libsqlite3 linked library would not be necessary when building my app's binary, with Deno.
If I put libsqlite3 right next to my app's binary, will it automatically get picked up from there?
Looking at the code now, I see that you call Deno.dlopen and I would guess that just works at runtime exclusively. However, I did not find out much about the search path that it uses.
I'd also like to not have to build sqlite into my CI pipeline if I didn't have to - is there a well known set of sqlite3 builds that I can draw from?
Thanks!

where would I deploy the [lib]sqlite3.dll/so/dynlib file on the end-users system? Right next to the binary for my app?

Yeah, CWD is one place we look for in first

but I am guessing that the libsqlite3 linked library would not be necessary when building my app's binary, with Deno.

That's right, we do dynamic linking
Actually this might be something desirable now. Recently found out that SQLite3 compiled with certain flags can increase the performance of the library and provide more consistent results across platforms. But we sure can't bundle, just shipping our own binary would be the goal.

As an update, we now use custom built SQLite3 libraries on macOS and Linux since it has been observed to improve performance. Same could be done for Windows but there were not any performance gains so there we still use system library which is present in most cases.

Now this library downloads and uses its own prebuilt version of SQLite3 which ensures safety and consistency across platforms. I'll be closing this issue as fixed


Send an uninterrupted message (on voice)

Hi,
I am using the Bot Framework to build a speaking IVR using my own voice files, the problem is that every time I send a voice segment to a customer I want to prevent the customer from stopping and interrupting it.
In PVA we have the ability to define that a message will be without interruptions, there is a way to define this also in Bot Framework ?
I refer to messages and questions.

@alex188888 - Can you tell me what kind of bot this is (i.e., a code-first SDK bot, a BotFramework Composer bot, or a PVA bot)?
Also, what client is the bot being served thru (e.g., Teams)?

Closing due to inactivity.


Not creating $this->request_params for POST requests in curlit() was breaking OAuth signature

I was receiving the following warnings doing a POST to /Invoices, which was returning a 401 Invalid Signature from the API:

A PHP Error was encountered

Severity: Warning

Message: Illegal string offset 'xml'

Filename: libraries/XeroOAuth.php

Line Number: 303
A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: libraries/XeroOAuth.php

Line Number: 329
A PHP Error was encountered

Severity: Warning

Message: implode(): Invalid arguments passed

Filename: libraries/XeroOAuth.php

Line Number: 332

these pointed to the empty POST method switch on Line 226:
case 'POST':

    break;

Simply creating the empty array, ala:
case 'POST':
    $this->request_params = array();
    break;

(or better yet before the switch on 225) fixed the issue, but I am wondering why this whole block was left empty???

@schmoove Thanks for reporting this, and @ronanq thanks for fixing this one. Just ran into it while modifying our integration to make multiple requests. Updating to the latest code fixes it.


Some issues

Hey there, lovely theme! I encountered a few issues with it though, look at the props as well as jsx elements:

Hello! Thanks!
The first release was a quite naive implementation, and i should probably redo some of the stuff.
Do you have any suggestions how to make it look better?

@ludviglundgren I do have the question of why the JSX elements are Yellow, instead of Red like codesandobx.io, is this by design or for a reason I should understand?
Awesome theme!

Thanks @jcuadrad!
Well thats very weird, this is how it looks for me with the same code as above.

It is not 100% like the codesandbox theme, and theres a couple of things that could be better which I will fix when theres time.
The only thing i can think of is that i have this extension for better syntax highlighting of es6/7 etc. https://github.com/dzannotti/vscode-babel/
Could you try that and see what happens? If that's it i'll have to include it in the readme 👍

I had same issue!But but gone when i installed the 'vscode-babel'!


Cannot find module '@ai16z/eliza' or its corresponding type declarations.

Environment：
WSL2 : Ubuntu-20.04
Nodejs:v23.1
pnpm:9.14.2
git checkout v0.1.3
When I run pnpm install, no errors occur.
However, when I run pnpm start --character="characters/trump.character.json", an issue arises.
pnpm --filter "@ai16z/agent" start --isRoot "--character=characters/trump.character.json"

<EMAIL_ADDRESS>start /home/workspace/eliza/agent
tsc && node --loader ts-node/esm src/index.ts "--isRoot" "--character=characters/trump.character.json"

src/character.ts:1:64 - error TS2307: Cannot find module '@ai16z/eliza' or its corresponding type declarations.
1 import { Character, ModelProviderName, defaultCharacter } from "@ai16z/eliza";
~~~~~~~~~~~~~~
src/index.ts:1:41 - error TS2307: Cannot find module '@ai16z/adapter-postgres' or its corresponding type declarations.
1 import { PostgresDatabaseAdapter } from "@ai16z/adapter-postgres";
Describe the bug

I’ve run I to this issue as well.  I have a fix coming for it.
Workaround is to put ../ in front of characters.  ie. ../characters/trump.character.json

I’ve run I to this issue as well. I have a fix coming for it.
Workaround is to put ../ in front of characters. ie. ../characters/trump.character.json

I changed the command to pnpm start --character="../characters/trump.character.json", but the same error still occurs.

In my VSCode, it shows that @ai16z/ cannot be found.

Glad I'm not the only one. Exact same issue on a fresh Debian 12.

 In my VSCode, it shows that @ai16z/ cannot be found.

Did my work around help you to run the character ?  I'm assuming you did the pnpm install and then the pnpm build, right ?

Glad I'm not the only one. Exact same issue on a fresh Debian 12.
EDIT: Solved by doing a pnpm build after pnpm i
...At least the character builds but now I have a new error: [Used disallowed intents](error: new Error("Used disallowed intents")) - looks like something I have to do with my discord bot.
EDIT #2: Fixed the intents error above by switching these 3 toggles in Discord Dev Portal. Bot seems to work now.

I'm on the same path as you here - we need to get these details in the documentation.  I would love to share notes with you on this.

Did my work around help you to run the character ? I'm assuming you did the pnpm install and then the pnpm build, right ?

correct, working now and posting to discord...will try Telegram and image gen next

Glad I'm not the only one. Exact same issue on a fresh Debian 12.
EDIT: Solved by doing a pnpm build after pnpm i
...At least the character builds but now I have a new error:  [Used disallowed intents](error: new Error("Used disallowed intents")) - looks like something I have to do with my discord bot.
EDIT #2:  Fixed the intents error above by switching these 3 toggles in Discord Dev Portal. Bot seems to work now.

Would love to connect with you on discord.  I'm on a similar path and want to capture any documentation items that we should capture.
My discord id is yoda26.  Can you dm me back. I'll delete this message afterwards.

I’ve run I to this issue as well. I have a fix coming for it.
Workaround is to put ../ in front of characters. ie. ../characters/trump.character.json

I changed the command to pnpm start --character="../characters/trump.character.json", but the same error still occurs.

I believe this gets resolved if you do pnpm build and then you do the pnpm start

It does but that sucks, need to use turborepo


Keep "Show all configured leases" enabled after deleting DHCP leases.

[ ] Redmine Issue: https://redmine.pfsense.org/issues/NNNN
[x] Ready for review

all=1 not honoured after deleting an IPv4 DHCP lease.
To reproduce:
Status -> DHCP Leases
Click "Show all configured leases"
Delete a DHCP lease

To effectively track changes and bug/feature requests, we require an entry on the pfSense Redmine issue tracker associated with every pull request, and likewise the Redmine entry should also have a link back to the pull request.
Please associate this PR to a Redmine issue either by locating an existing issue at https://redmine.pfsense.org or by creating a new issue. Add a link to the Redmine issue that points to this PR, and also add a link on the PR to the Redmine issue.
For more information, see https://www.netgate.com/docs/pfsense/development/submitting-a-pull-request-via-github.html
Thanks!

I found one for it: https://redmine.pfsense.org/issues/9133

I found one for it: https://redmine.pfsense.org/issues/9133

Pull request updated.


Camera - Image is not centered in the latest version

When looking at a brightfield image, the picture from the camera appears way off-center. Switching back to the version I tested on August 24 solves this problem.

During other troubleshooting, I discovered that the image appears properly if you unplug the USB from the camera, and plug it back in.

Does this happen at every start-up or just the first time?

I am uncertain. I will need to check my notes.
We were doing some power measurements at the same time. So it might be that
a second restart of LVPro didn't get tested.

Kevin McLeaster

On Sun, Sep 25, 2022, 18:41 Anna Hickerson @.***> wrote:

Does this happen at every start-up or just the first time?
—
Reply to this email directly, view it on GitHub
https://github.com/EtalumaSupport/LumaViewPro/issues/120#issuecomment-1257364434,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZSAK62BKSHFCOWFFD2347TWAD5NFANCNFSM6AAAAAAQNYIYNU
.
You are receiving this because you authored the thread.Message ID:
@.***>

I have confirmed that this happen in all cases. When first powering up the 850 prototype, the problem occurs and closing and restarting the software, the problem occurs. To obtain a proper image from the camera, unplugging the USB cable from the hub and re-plugging it in fixes it.

I tried an older version of LVPro that was already in place on the test computer used by Chris and Sarah. This version does not exhibit this problem.

Found the issue. All fixed on 10/2/22


Suggested delay between mqtt commands

Describe you new feature you'd like
Hello, first of all let me thank you very much for the project, it is really great. Btw is there any way to support your effort like Buy Me Coffee? I would like to contribute that way.
Now to the question - went for controlling my Somfy shades through Apple Home, everything works excellent except controlling two or more shades at a time - in one room I have two separate windows and the command - close the shades - worked for one only, obviously ESP does not handle both requests at one time. So far I put 2 secs delay for the second shade, but now I have entire home in the project and two seconds for every command - and I am sending two for each shade (open/close and tilt) would be too much so if you went through this, what would be suggested delay between the mqtt commands to be sent to control the shades?
Once again many thanks
Vitek

Actually your problem is probably not what you think.  The problem is most likely tied to the radio reset on your motors,  Every RTS motor will decode every frame then decide whether or not to act on it.  However, during this period some motors stop receiving so while it is processing the last frame it heard it will not hear the frame that is actually for it.  This silence can last a couple of frames long and not recover in time to hear the radio preamble it should have heard in the first place.
To fix this simply add a couple of command repeats in the ESP Somfy configuration for the motors.  Increase the number of repeats until it hears every command.  The ESP32 is capable of sending 10 frames per second.

Ok, will go this way, Thank you again!

Woked very good, thanks for the help!

Solved


Adds new version matching syntax support

This pull request contains the following features:

Adds the ability also to match version variables that are enclosed inside of double-quotes.
Adds the ability also to match version variables that are enclosed inside single-quotes.
Adds the ability also to match version variables that are preceded by multiple spaces.
Replaces sed with Perl to make the syntax more clear (no escaping needed).
Add the used repo as an output argument such that users can use them in the next jobs.
Adds the ability to also automatically updates versions tags that have a - annotation string (like is the case for the reviewdog/nightly branch).

It contains the following bug fixes:

The debut and redpen actions failed due to a github api change (see changelog). In order to fix this the create-pull-request version was updated.

The new regex syntax can be seen in action on this playground.  I already created it on my own branch before I saw #19 on the upstream.

Thank you for your work, @rickstaa! :+1:


Add option for specifying case for identifiers

Add an option identifierCaseto specify what case the identifiers should be converted to - like the keyword case. Possible options are preserver, upper and lower.

@karlhorky there is no before or after here. The formatter does not do multiple passes of applying the format. It just detects some words as keywords and some as identifiers. And then these get converted to upper/lower case if configured so. It will never be the case that a word is considered both identifier and keyword by the formatter.

Ok understood, thanks for the clarification.


Generate meta documents for search operations in composite

Currently metrics are reported for composite queries at the level of the operation. This makes identifying performance of the actual contained search requests impossible. It is proposed that a metrics document be generated for every search operation. The current meta data is sufficient.  We may want to require this to be actively enabled by the user given its potential to generate a large number of documents.

@danielmitterdorfer i'm happy to have a go at this.  We should decide if we want to deliver these as nested documents or separate documents. I think the latter is preferable as the former isn't supported in Kibana.


Updated to new username system

I changed the code so that it no longer shows username#0 for those not using the legacy username system anymore. It now shows username

Included in Dev Branch.


debugger doesn't update after saving method

Sometimes the debugger isn't updated after saving a method. For example, if you recompile a method from a block context, the method is not shown as updated:


Added additional code to check if an element that is NOT an array has at...

...tributes and if so add them to the output. Previous code ignores elements with attributes that aren't arrays.

When you say "add" what exactly do you mean? Do you want me to add in
attributes to an element? Do you want me to add additional examples? I'm
not sure how I can help you.
On Sun, Feb 19, 2012 at 10:44 PM, Adrien Cahen <
<EMAIL_ADDRESS>
wrote:

thanks for the contribution!
before I merge, could you add to test.sh to cover this new functionality?

Reply to this email directly or view it on GitHub:
https://github.com/gaarf/XML-string-to-PHP-array/pull/1#issuecomment-4048366

edit the $xmlstr XML on line 13-27 of test.sh - add an example snippet of XML that would not be correctly parsed without your contribution.
edit the $expected PHP array on line 29-58 of test.sh - add what the output should be.
run the test without your contribution, see it fail.
run the test with your contribution, see it pass.

Do we really want to access like $tv['show'][0]['dog']['dog'] ? double dog? seems akward.
Maybe if there are both attributes and content, we assign content to key '@content' ?

I think the output should be like this:
   array(
      "dog" => array(
				"@content"=>"Brian",
				"@attributes" => array(
					"type"=>"beagle"
				)
	  ),

thoughts?

Sure. Doesn't really matter to me. I just created the output the way I did for the sake of consistency with what you already had. I didn't want to completely alter your code. Ultimately the decision is up to you.

You decide the output, but the important thing that I want to contribute is attention to the fact that attributes on keys that aren't arrays are being ignored in the code. With the modification I suggested, it accounts for this oversight. There are surely more efficient ways of doing it.

I've updated master with something based on your contribution.

Good job! :-)


As an MET system user, I want to add a Team Member directly in the Engagement

New tab on the engagement creation page: User Management
https://xd.adobe.com/view/7d5f6547-2523-484d-8101-a7587f9076c8-280c/screen/9e469cfb-afaa-4fa2-9d29-6f8257e9cf4d/
That tab show:
Engagement Created By:
Date Created:
A list of TM assigned to the Engagement
"Add a Team Member" button
User clicks the "Add a Team Member" button
Modal opens:
https://xd.adobe.com/view/7d5f6547-2523-484d-8101-a7587f9076c8-280c/screen/508cdf7d-52cb-4d17-9b59-6d1cb893f0fd/
Header: Add a Team Member to this Engagement
Select the Team Member you want to add
drop-down: List of all MET users that are not an admin
buttons: Submit and Cancel
Users selects a user, clicks submit, sees confirmation message:
You have successfully added user name as an Team Member on
engagement name.
button: Close
https://xd.adobe.com/view/7d5f6547-2523-484d-8101-a7587f9076c8-280c/screen/8f08b4d7-0b77-41f2-be29-33202e50e677/

Hey team! Please add your planning poker estimate with Zenhub @djnunez-aot @saravanpa-aot @tiagograf-AOT @VineetBala-AOT


Hashed ElGamal

https://github.com/microsoft/electionguard-python/issues/551

electionguard_aux_encrypt (1).pdf


Use relative instead of absolute includes

This makes it a lot easier to use cereal by just dropping the include folder in your project without changing any compile flags, as one can use #include "third_party/cereal/cereal.hpp" for example. This was requested here: https://github.com/USCiLab/cereal/issues/346#issuecomment-251151016.

Cereal includes a lot of files and folders. Keeping them all organized inside a 'cereal' folder instead of mish-mashing them all together with your other project files seems like the best approach. I've had the changes discussed in issue #346 committed to the library already so a drag and drop implementation is already possible. Again I think keeping cereal organized in it's own folder is the best approach.

Yes, this change would be really useful!
The two external libraries (rapidJson and rapidXML) included in cereal get this right, it makes creating installers for multiple platforms so much easier. It changes things from a question of "do we bundle cereal in an installer and clobber any copy already installed on the system that may be older or newer than the copy we need", and instead makes so that we can use an external/cereal subfolder just like cereal does for rapidJson and rapidXML.
(Actual choice made was not clobbering existing system libraries, but making the includes just like this PR does.)


CSS ImportLoader

Hi,
When I add my CSS file to the entry array in the webpack config file, I receive the following error upon build:
ERROR in ./assets/css/icons/summernote/summernote.ttf?ad8d7e2d177d2473aecd9b35d16211fb
Module parse failed: /home/samim/workspace/react-static/assets/css/icons/summernote/summernote.ttf?ad8d7e2d177d2473aecd9b35d16211fb Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character '' (1:0)
    at Parser.pp.raise (/home/samim/workspace/react-static/node_modules/acorn/dist/acorn.js:923:13)
    at Parser.pp.getTokenFromCode (/home/samim/workspace/react-static/node_modules/acorn/dist/acorn.js:2831:8)
    at Parser.pp.readToken (/home/samim/workspace/react-static/node_modules/acorn/dist/acorn.js:2526:15)
    at Parser.pp.nextToken (/home/samim/workspace/react-static/node_modules/acorn/dist/acorn.js:2518:71)
    at Parser.parse (/home/samim/workspace/react-static/node_modules/acorn/dist/acorn.js:1631:10)
    at Object.parse (/home/samim/workspace/react-static/node_modules/acorn/dist/acorn.js:885:44)
    at Parser.parse (/home/samim/workspace/react-static/node_modules/webpack/lib/Parser.js:902:15)
    at DependenciesBlock.<anonymous> (/home/samim/workspace/react-static/node_modules/webpack/lib/NormalModule.js:104:16)
    at DependenciesBlock.onModuleBuild (/home/samim/workspace/react-static/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
    at nextLoader (/home/samim/workspace/react-static/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)
    at /home/samim/workspace/react-static/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
    at Storage.finished (/home/samim/workspace/react-static/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
    at /home/samim/workspace/react-static/node_modules/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)
 @ ./~/css-loader!./assets/css/components.css 6:95181-95264

This is the entry array in webpack config:
  entry: [
      '!!style!css!./assets/css/components.css',
      './assets/js/core/libraries/bootstrap.min.js',
      './main.js',
  ],

Thanks

I solved the problem. The problem was that the test regex, /\.(eot|ttf|wav|mp3)$/ did not match my file names (summernote.ttf?ad8d7e2d177d2473aecd9b35d16211fb).


Update Nancay clock corrections

This just updates the two clk files for Nancay in the T2runtime directory.
The files were provided by Lucas Guillemot.

@aarchiba would it be possible to merge this?


Cursor isn't restored when breakpoint is hit

I'm running Ubuntu 14.04.02 LTS and using CLion.
I disable the cursor using glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED) when the program is started, and when I hit a breakpoint the cursor mode isn't set back to normal. This of course makes it impossible to debug. I'm assuming this is a bug since it gives me the cursor back whenever I alt+tab.
I also noticed that if I put
if(focus)
    glfwSetInputMode(DLib::Input::GetListenWindow(), GLFW_CURSOR, GLFW_CURSOR_DISABLED);
else
    glfwSetInputMode(DLib::Input::GetListenWindow(), GLFW_CURSOR, GLFW_CURSOR_NORMAL);

in my focus callback the cursor remains disabled even if I alt+tab. Is this a bug or something I just don't know about?

If the program hit a breakpoint then by definition execution has stopped, so how would GLFW re-enable the cursor?

Oh wow, that's embarrassing... Now I feel stupid...
I got so hung up on the problem with my focus callback that I got it into my head that the focus callback would be called when I hit a breakpoint.

No worries, it happens to us all.
If you replace the body of disableCursor for your platform with that of hideCursor and recompile GLFW, you should be able to use the mouse during a breakpoint.

Alright, thank you for the tip!


Anemo attack speed glitch

I have a glitch where my attack speed is always slower even with an open sky above me.
I tested with the same origin but with a different aspect and i had normal attack speed, so it has to be a problem with the anemo aspect.

Should be fixed in 1.0.6, please let me know if you still find this to be a problem for you.


Do the same thing but ISO for PC.

Please make same thing but with macOS and OpenCore ISO that you flash into a USB and the whole Hackintosh is ready and working.
That'll solve all of the problems with creating a Hackintosh, It will be much easier.

@itayalush Hackintoshing doesn't exactly work like that. Every machine is different and requires different configurations. If you want to hackintosh, you can follow this great guide by dortania:
https://dortania.github.io/OpenCore-Install-Guide/


Use a logical order for city list

Visit http://brandnewcongress.org/tour on a mobile device. Note that the list of states appears to be in a completely arbitrary order: NC, CA, IL, etc.
Assuming the intent is for visitors to quickly find their state and take action to RSVP, the list should be in alphabetical order by state.

Would love a PR for this.  Though maybe what we need to do is think up a good UI for the general purpose event map.  I'm currently thinking of doing something very similar to map.berniesanders.com.


Convert canvas thumbnails to PNG

fixes #6035 , converting canvas thumb nails to png images

@zinking Once you have addressed the review comment, please squash the commits into one commit. See https://github.com/mozilla/pdf.js/wiki/Squashing-Commits on how to do that easily.

It appears that the following from https://github.com/mozilla/pdf.js/issues/6035#issue-78226866 isn't implemented by the PR yet:

This should be done when the viewer is idle, i.e., not when the user is scrolling.

/botio-windows preview

The solution looks fine to me. @Snuffleupagus I think we can leave without reencoding-on-cleanup part -- unless there is a clear indication the encoding of the png takes unreasonable amount of CPU. It will use some CPU but I'm thinking in overall not using lots of canvases might be a better choice. It will be better if we will have some benchmark with this PR.
Also, using canvas'es toBlob() instead of toDataURL in some way might help with memory usage (similar to PDFJS.createObjectURL but it shall be async).

Looks good to me too with the nit addressed and re-squashed after that. toBlob might be better indeed, but having a benchmark to confirm that would be nice. Does not have to be too exact, just measuring the process memory usage a couple of times and taking the average before and after the patch should be enough.

@zinking Do you have time to finish up this PR by addressing the above comments?

@timvandermeij  do you mean manually testing the memory usage ?   I can do the rough testing using a few documents at hand, and provide some statistics, but this comment probably should be framed better so that my manual test is useful

Yes, all that needs to be done is address the nit above and manually test the memory usage before and after your patch.

browser
pdf
Page
before(private)
After (private)
comment

chrome
compressed.tracemonkey-pldi-09.pdf
14
406,260k
158,820k

chrome
abel.pdf
285
638,996k
394,564k
this has more pics

chrome
AkkaScala.pdf
387
768,476k
434,732k

The test is conducted on OSX 10.9.5 , Chrome 44.0.2403.157 (64 bit)
memory stats is generated from : chrome://memory-redirect/
looks saving memory as expected.

@zinking Great, thank you for confirming that! Could you squash the commits into one commit? Then this should be good to merge.

/botio-linux preview

Thank you for the patch!


Add Comments for better readability.

Issue - Add Comments for better readability.
Throughout the code, there are no comments provided for fellow devs or future self. As per good coding standards add comments.

code/comments given already is quite self-explanatory, no additional comments are required.


DjangoRedisChannelLayer

Hi again,
I'm not sure if these changes actually belong here, but I thought I'd make this PR to open up the discussion.
Essentially, I found that in order to have more control over how many active Redis connections there are, I needed to have a variation of the RedisChannelLayer class that uses the connection from django-redis. This way, when I limit the number of connections from django-redis, that limit is respected by asgi_redis.
Do you think this belongs here? Or perhaps even a standalone package that implements this? I'm not too sure...
Cheers,
Luke

I would say this should be a separate package; I'd rather not introduce a dependency on another thing from inside asgi_redis, even if only optional, and it looks like it'd work fine as a pure subclass.

Thanks for the feedback Andrew, I've changed the PR to remove the extra class, which I've placed in a separate package.
I've left in a very minor refactor which makes it much simpler to implement the changes in the other package.

Thanks - I'll definitely pull in that change, I can see how it would make subclassing a lot easier.


ruby: add arm64 darwin support

Add support for arm64-darwin platform gems, to be built by the rake-compiler-dock functionality introduced in #25794.
cc @apolcyn

This PR is blocked on #25794, please don't close.

I've rebased this onto latest master and removed the "draft" status. Would be very thankful for your feedback.

I've kicked off a package build in https://fusion2.corp.google.com/invocations/06b5347f-0977-4949-a26f-aaaefd0650f3/targets. Using those packages, I'll need to find a way to test these

Looks like CI failed with unrelated timeouts. Can someone kick it again?

@jtattermusch @flavorjones thanks for this fix! This will solve a major pain point - new hires with new laptops can't install grpc without this fix.
When do you think this will be released in a new gem as 1.42.0?

@jtattermusch @apolcyn I've gotten a few reports from folks within Shopify that the 1.42.0.pre1 arm64-darwin gem isn't working correctly. (The x86_64-darwin gem seems OK.) You may want to hold off on releasing the arm64-darwin gem in the 1.42.0 final release.
I don't have a good repro yet but the evidence is that, within a running Rails server, we see:
dyld[58650]: missing symbol called

and the crash report includes this stack walkback:
Thread 22 Crashed:
0   dyld                          	       0x104da34dc __abort_with_payload + 8
1   dyld                          	       0x104daa4dc abort_with_payload_wrapper_internal + 104
2   dyld                          	       0x104daa510 abort_with_payload + 16
3   dyld                          	       0x104d628e4 dyld4::halt(char const*) + 328
4   dyld                          	       0x104d80f7c dyld4::APIs::_dyld_missing_symbol_abort() + 44
5   grpc_c.bundle                 	       0x114bcab8c 0x114954000 + 2583436
6   libsystem_pthread.dylib       	       0x194c3929c __pthread_once_handler + 76
7   libsystem_platform.dylib      	       0x194c51968 _os_once_callout + 32
8   libsystem_pthread.dylib       	       0x194c39234 pthread_once + 100
9   grpc_c.bundle                 	       0x114bf9c1c 0x114954000 + 2776092
10  grpc_c.bundle                 	       0x114bcac8c 0x114954000 + 2583692
[...]

We'll keep working on finding an easier repro, and if I get one we'll open a new issue.

@jtattermusch @apolcyn I've gotten a few reports from folks within Shopify that the 1.42.0.pre1 arm64-darwin gem isn't working correctly. (The x86_64-darwin gem seems OK.) You may want to hold off on releasing the arm64-darwin gem in the 1.42.0 final release.
I don't have a good repro yet but the evidence is that, within a running Rails server, we see:
dyld[58650]: missing symbol called

and the crash report includes this stack walkback:
Thread 22 Crashed:
0   dyld                          	       0x104da34dc __abort_with_payload + 8
1   dyld                          	       0x104daa4dc abort_with_payload_wrapper_internal + 104
2   dyld                          	       0x104daa510 abort_with_payload + 16
3   dyld                          	       0x104d628e4 dyld4::halt(char const*) + 328
4   dyld                          	       0x104d80f7c dyld4::APIs::_dyld_missing_symbol_abort() + 44
5   grpc_c.bundle                 	       0x114bcab8c 0x114954000 + 2583436
6   libsystem_pthread.dylib       	       0x194c3929c __pthread_once_handler + 76
7   libsystem_platform.dylib      	       0x194c51968 _os_once_callout + 32
8   libsystem_pthread.dylib       	       0x194c39234 pthread_once + 100
9   grpc_c.bundle                 	       0x114bf9c1c 0x114954000 + 2776092
10  grpc_c.bundle                 	       0x114bcac8c 0x114954000 + 2583692
[...]

We'll keep working on finding an easier repro, and if I get one we'll open a new issue.

Do we know what was the missing symbol?

I don't have more information yet, My employer is shipping me an M1 to reproduce and diagnose, but it hasn't arrived yet. (Hopefully it will arrive this week.)

+1 for this! I can't figure a workaround for ruby 2.6.6 on M1. 2.6.6 won't install with x64 arch.

See https://github.com/grpc/grpc/issues/28271#issuecomment-986300461 please

Does anyone know what happened with this? Seems the arm64-darwin gems were never shipped/published after the challenge in 1.42.0-pre so just wondering if the effort was abandoned.
I note https://github.com/grpc/grpc/issues/28271#issuecomment-986300461 but it looks like all the problems were resolved. Still, no precompiled arm64-darwin gems on rubygems with 1.57.0 :(

@chadlwilson Yes, I have an update -- was working on this last month in my spare time.
The current issue with arm64-darwin gem support is that stripping the shared object also invalidates the ad-hoc code signature in the file.
I've created a PR to rake-compiler dock at https://github.com/rake-compiler/rake-compiler-dock/pull/104 that fixes this. That PR is nearly ready to merge, I just need to spend another hour or so adding test coverage.
So the order of operations should be, I think:

finish https://github.com/rake-compiler/rake-compiler-dock/pull/104 and merge it
release a patch update for rake-compiler-dock and publish new images
this project, grpc, needs to update its build containers to use the new rake-compiler-dock base
we should test that the precompiled gems work as expected for arm64-darwin
grpc needs to cut a new release or patch release

Make sense?

Looks like the etrip was removed in #33641 according to https://github.com/grpc/grpc/pull/33079#issuecomment-1671866091 so the extra work here may no longer be required for grpc @flavorjones ?

@chadlwilson :shrug: Yup, looks like that's the case.