Tutorial for the ODE QNN Regressor

Hi!
In this PR, I made a tutorial for the QNN ODE solver.
The logistic differential equation, a special case of the Bernoulli Differential Equation, is solved and compared to its analytical solution.
If this example is too trivial, I can search for another one.
To include the tutorial, I also:
- Created docs/examples/example_quantum_bayesian_optimization.nblink (which I think it was necessary but I am not sure)
- Included --ignore=examples/tutorials/qnn_ode_solver.ipynb, in pyproject.toml so that it is not checked by pychecks (as the solution takes a long time)
Furthermore:
- I fixed one small typo in examples/tutorials/quantum_bayesian_optimization.ipynb, "structre->structure"
- I fixed a small bug in the KyriienkoEncodingCircuit for the chebyshev_product
Feel free to let me know what should I improve or change. Thankss!
Roberto

After our conversiation, here the Todos:

[ ] setting x0
[ ] check eq 6
[ ] check reference of eq 6 (wrongly ref as eq.1)
[ ] use Differential Equations instead of DE
[ ] remove \bm
[ ] fix documentation test

Hi!
I implemented all the suggested changes:

[x]  setting x0
[x]  check eq 6
[x]  check reference of eq 6 (wrongly ref as eq.1)
[x]  use Differential Equations instead of DE
[x]  remove \bm
[x]  fix documentation test

Any other feedback, I am happy to help :)


Add __version__ attribute to Python module

The version string can currently be accessed with importlib.metadata.version("transformer_engine"), but it would be convenient to also expose transformer_engine.__version__.

/te-ci

After modifying the CI infrastructure to include te_version.py, I see no new test failures (see pipeline 12964350).


Update force-ssl.conf to allow for letsencrypt directories over http

Since we have moved force-ssl.conf into the server section, it overrides the location based letsencrypt allowed over http

Make force-ssl only work if both http traffic and outside the letsencrypt directories.
Fixes #1625

This is an automated message from CI:
Docker Image for build 1 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-2038
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

Not the best candidate to test this since I'm using a DNS based wildcard so letsencrypt not hitting Nginx. However, I'm not seeing issues for http->https on my domains. And curl to the /.well-known/acme-challenge/1234 gives the expected 404 rather than 301 redirect and I have made no changes so have both old and new style config with force-ssl.conf in both server section and location / section.

Just a bump, we are blocking renews.

Another bump. I have the same problem and have to manually unforce ssl and then renew the ssl certificate.

@jc21 I appreciate you're looking hard at 3.0, but please take a look at this pr, this is blocking renewals of newly created proxies (from those made after the force_ssl.conf move to server section) which isn't a good look for us to have in the version 2 branch.

Bumping this, renewals are still broken as far as I can tell.

Bump, why is this not priority, I can only assume that nobody maintains this anymore

Thank you @the1ts - I am on the latest version, so hesitate to move back to a version from May.  Can I apply the fix myself, build and test this way?

@maltokyo latest is from March, so older than the fixed one in this PR.

Ah apologies!  Will try this, thank you @the1ts

@the1ts do I need to worry about the warning: "Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes"
I dont see db changes in this PR itself, but just wanted to check.  Backing up will take some time for me.

@maltokyo the only changes are to nginx file creation not DB. So change the docker tag and try and get npm to make a change to the nginx files by perhaps turning off and on the force SSL. Then renewal should be back working next time it's needed.

ok, running it now, will leave for some time and see what happens.  Unfortunately, next renewals are on 1st Jan, so might need to wait.

@the1ts @jc21 OK I tried the version in jc21/nginx-proxy-manager:github-pr-2038 and confirm it correctly allows manual renewal via the UI (/nginx/certificates page) for proxies that have 'Force SSL' enabled.
(I did have an issue at first where I was getting an internal error but clearing the certbot lock files as per this post did the trick!)

Great to see a new release out but would be great if this PR could be merged in so I could pick up those updates too :)

It's really a pain right now to manualyl renew all certificates that have "force ssl" enabled. That's a key function of nginx proxy manager and I am considering to unuse it just because of that bug... I have 15 domains and update all manually is a real pain! @jc21

As a fix seems to be available now...when will this be added to the official release?
Thank you very much. :)

ok, running it now, will leave for some time and see what happens. Unfortunately, next renewals are on 1st Jan, so might need to wait.

@the1ts - I have been running the version specified as above, and my certificates expire on Jan 1st 2023, and have NOT been auto-updated while running this version.  They should have been by now, correct?  If that is the case, I suppose this fix is not working out.

Sorry @maltokyo I don't use NPM anymore as its not really been supported for most of a year,  but I would check out issue #918 others have seen issues with lock files being left behind that stop certbot from actually running even after this fix for force ssl. You can force an update in the UI and look at both certbot logs and NPM for more info.

IMHO the regexp in the commit needs additional escaping:
- if ($request_uri !~ "^/.well-known/acme-challenge/(.*)") {
+ if ($request_uri !~ "^/\.well-known/acme-challenge/(.*)") {

Also an alternative implementation of force-ssl.conf could be:
set $url "${scheme}:${request_uri}";
if ($url ~ "^http:(?!/\.well-known/acme-challenge/(.*))") {
        return 301 https://$host$request_uri;
}

thanks @the1ts - what do you use now?  maybe time to switch, cant be chasing basic stuff like this for months and months.

Any chance this PR could be rebased onto the current version?

Bump! Still an issue in 2.10.4!
@jc21 PLEASE MERGE THIS PR!

+1, please merge #3121 @jc21

+1, please merge #3121 @jc21

I switched, to linuxserver/swag - have not looked back.  The fact that this basic stuff does not get fixed/merged was too much.


AzureML SDK V2 unable to load data from onelake datastore

Package Name:  azure-ai-ml
Package Version: 1.18.0 (latest)
Operating System: Linux, running it on azure notebooks on Azure portal.
Python Version:  3.10

Problem Description
I have created onelake datastore with AzureML following this documentation. Actually I have created a datastore for files section of my lakehouse in Fabric. The datastore was created successfully and I am able to see all data in AzureML through browse mode of datastore. As you can see below:

Now when I try to load some csv file from the datastore using the already provided code i.e. when you go to datastore browse -> csv file -> copy usage code.  The code does not work.

Here is the usage code:
import pandas as pd
from azure.ai.ml import MLClient
from azure.identity import DefaultAzureCredential

ml_client = MLClient.from_config(credential=DefaultAzureCredential())

uri = "uri_here"
df = pd.read_csv(uri)

The above code does not work and gives following error

Message: rslex failed, falling back to clex.
Payload: {"pid": 4312, "rslex_version": "2.18.3", "version": "4.11.3"}
ExecutionError:
Error Code: ScriptExecution.DatastoreResolution.Unexpected
Failed Step: 782d9174-dcf9-420c-bbbc-c8c28dc9b01e
Error Message: ScriptExecutionException was caused by DatastoreResolutionException.
DatastoreResolutionException was caused by UnexpectedException.
Unexpected failure while fetching info for Datastore 'devops_onelake_poc_datascience_files' in subscription: 'subs_id_here', resource group: 'resource_group_here', workspace: 'workspace_name_here'. Using base service url: https://northeurope.experiments.azureml.net./
Unable to deserialize the response.
| session_id=l_c67e09b7-6567-4371-84ab-e49d32322aa6

I even tried registering the csv file as a data asset from the portal and then used the consume code from registered asset but that also did not work.
Here is from where I registered the csv file as a data asset.

Here is from where I copied the consume code of registered data asset.

Here is the code that I copied from "consume" tab of registered data asset.
import pandas as pd
from azure.ai.ml import MLClient
from azure.identity import DefaultAzureCredential

ml_client = MLClient.from_config(credential=DefaultAzureCredential())
data_asset = ml_client.data.get("FABRIC_BRAZIL_PROMOTION_2", version="1")

df = pd.read_csv(data_asset.path)

But the above code also does not work and gives following error:

Message: rslex failed, falling back to clex.
Payload: {"pid": 4312, "rslex_version": "2.18.3", "version": "4.11.3"}
ExecutionError:
Error Code: ScriptExecution.DatastoreResolution.Unexpected
Failed Step: 9c0f36e5-086c-45fd-b35c-bde43380ff04
Error Message: ScriptExecutionException was caused by DatastoreResolutionException.
DatastoreResolutionException was caused by UnexpectedException.
Unexpected failure while fetching info for Datastore 'devops_onelake_poc_datascience_files' in subscription: 'sub_id_here', resource group: 'resource_group_here', workspace: 'workspace_name_here'. Using base service url: https://northeurope.experiments.azureml.net./
Unable to deserialize the response.
| session_id=l_c67e09b7-6567-4371-84ab-e49d32322aa6

To Reproduce
Steps to reproduce the behavior:

Create onelake datastore for files section of fabric lakehouse with AzureML.
Try to read files from datastore using azureml sdk v2 (1.18.0 )

Expected behavior
We should be able to load the data from onelake datastire by using provided "consume/usage" code in the portal. This works for other types of datastores and should work for onelake datastore as well.
Additional context
We also created one datastore for tables section of our lakehouse in Fabric. The datastore was created successfully and we were able to browse the data from portal but as far as consuming or loading data is concerned we faced the same issues as we faced for the datastore of files section of lakehouse. The documentation says "At this time, Machine Learning supports connection to Microsoft Fabric lakehouse artifacts in "Files" folder that include folders or files and Amazon S3 shortcuts. " But we were able to create datastore for tables section as well, so tables section is also supported now or not?

Hi @mh-hassan18 - Thanks for the detailed info. We'll take a look asap!

@mh-hassan18 - So far, I am unable to see the problem in your code, using the same code I am able to fetch the data.
few things to recheck
in first method your uri format should be like below
uri = "azureml://subscriptions/sub_guid (xxxxxxx)/resourcegroups/achauxxxx/workspaces/workspace-name/datastores/datastore-name/paths/filename"
df = pd.read_csv(uri)
df
in second print the data_asset.path and it should match with the same as above path
azureml://subscriptions/sub_guid (xxxxxxx)/resourcegroups/achauxxxx/workspaces/workspace-name/datastores/datastore-name/paths/filename
ml_client = MLClient(credential, subscription_id, resource_group, workspace_name=workspace_name)
data_asset = ml_client.data.get("one_data_set", version="1")
df1 = pd.read_table(data_asset.path)

@achauhan-scc
Thank you for you response.
I confirm that my uri is exactly in the same format as you specified. (As I am using the same code from "copy_usage_code" from portal UI as I specified above).
In the second method when I print  data_asset.path it matches with the above uri.
But still I am getting the same issue as I described in my original question.

@achauhan-scc
Here is another update. Earlier, I was using python 3.10 - SDK V2 kernel.  Now I tried the same code after switching to python 3.8 - AzureML kernel and it's working fine for the datastore that I created for "files" section of my Fabric Lakehouse.
But using same python 3.8 - AzureML  kernel when loading anything from the datastore that I created for tables section of my fabric lakehouse, I am getting following error:

"ValueError: No objects to concatenate"

So to summarize:

Onelake datastore created for files section of fabric lakehouse is working fine when tried with python 3.8 - AzureML kernel but giving issues when using python 3.10 - SDK V2 kernel.  (Issue details are listed above).
Onelake datastore created for tables section of fabric lakehouse is not working with both python 3.8 - AzureML kernel and python 3.10 - SDK V2 kernel. For python 3.10 - SDK V2 kernel it gives "ScriptExecutionException was caused by DatastoreResolutionException." (as listed above). For python 3.8 - AzureML kernel it gives  "ValueError: No objects to concatenate"

@mh-hassan18 - needs to update the versions of
azureml-dataprep-rslex

=2.19.2 and
azureml-dataprep
= 4.12.1 as the versions they are using (rslex 2.18.3 and dataprep 4.11.3) do not contain the changes to handle OneLake datastores when materializing it into a pandas dataframe.

Hi @achauhan-scc thank you for the support.
I updated the versions for the above two libraries and every thing worked fine for python 3.10 - SDK V2 kernel.
But I have got one more issue. Surprisingly, today when I tested the same script with python 3.8 - AzureML kernel, it's not working. The same script was working fine the other day with this kernel as I described in my last comment. But today when executing the following script with python 3.8 - AzureML kernel,

import pandas as pd
from azure.ai.ml import MLClient
from azure.identity import DefaultAzureCredential

ml_client = MLClient.from_config(credential=DefaultAzureCredential())
uri = "uri_here"
df = pd.read_csv(uri)
df

I am getting following error:

ImportError: Unable to load filesystem from EntryPoint(name='azureml', value='azureml.fsspec.AzureMachineLearningFileSystem', group='fsspec.specs')

I am getting the same issue as above with the following code as well (again with python 3.8 - AzureML kernel):
import pandas as pd
from azure.ai.ml import MLClient
from azure.identity import DefaultAzureCredential

ml_client = MLClient.from_config(credential=DefaultAzureCredential())
data_asset = ml_client.data.get("FABRIC_BRAZIL_PROMOTION_2", version="1")
print(data_asset.path)

df = pd.read_csv(data_asset.path)
df

Note: I have not changed anything in python 3.8 - AzureML kernel and here are the library versions in this kernel:
azureml-dataprep = 4.12.1
azureml-dataprep-rslex = 2.19.2
azure-ai-ml = 1.18.0

@achauhan-scc Any update on this?


Error: The object is not enumerable in a simple test

I am running ClearScript 7.3.1 on macos (M1)
This simple test seems to fail
                var scriptEngine = new V8ScriptEngine();
                scriptEngine.Script.test = new[] { "one", "two", "three" };
                var n = ((dynamic)scriptEngine.Evaluate("Array.from(test)")).length;

with an exception
"Error: The object is not enumerable    at Microsoft.ClearScript.V8.SplitProxy.V8SplitProxyNative.ThrowScheduledException()\n   at Microsoft.ClearScript.V8.SplitProxy.V8SplitProxyNative.Invoke(Action`1 action)\n   at Microsoft.ClearScript.V8.SplitProxy.V8ContextProxyImpl.InvokeWithLock(Action action)\n   at Microsoft.ClearScript.V8.V8ScriptEngine.ScriptInvoke[T](Func`1 func)\n   at Microsoft.ClearScript.V8.V8ScriptEngine.Execute(UniqueDocumentInfo documentInfo, String code, Boolean evaluate)\n   at Microsoft.ClearScript.ScriptEngine.Evaluate(UniqueDocumentInfo documentInfo, String code, Boolean marshalResult)\n   at Microsoft.ClearScript.ScriptEngine.Evaluate(DocumentInfo documentInfo, String code)\n   at Microsoft.ClearScript.ScriptEngine.Evaluate(String documentName, Boolean discard, String code)\n   at Microsoft.ClearScript.ScriptEngine.Evaluate(String documentName, String code)\n   at Microsoft.ClearScript.ScriptEngine.Evaluate(String code)\n   at MinApi.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, ApplicationDbContext context, IServiceScopeFactory serviceScopeFactory) in /Users/nils/test/app/Startup.cs:line 4540"

Is this a bug or should it fail? In case it should fail, how can I get a native JavaScript array from a List/Enumerable/similar?
Best regards,
Nils Höglund

I also saw this code example in #400 which for me generates the same exception as above:
                var hostArray = new object[] { 123, "foo", 456.789, "baz" };
                var arrayCtor = (ScriptObject)scriptEngine.Global.GetProperty("Array");
                var scriptArray = arrayCtor.InvokeMethod("from", (object)hostArray);

Hi @nils-hoglund,
We can't reproduce this issue. The following console test app produces the output "3":
var scriptEngine = new Microsoft.ClearScript.V8.V8ScriptEngine();
scriptEngine.Script.test = new[] { "one", "two", "three" };
var n = ((dynamic)scriptEngine.Evaluate("Array.from(test)")).length;
Console.WriteLine(n);

Here's the project file we're using:
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net6.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.ClearScript.osx-arm64" Version="7.3.1" />
  </ItemGroup>
</Project>

Could you test this app on your Mac? If it works, could you share a minimal failing sample?
Thanks!

Thanks for the quick feedback. I realized I was using the preview dotnet 7 preview sdk (7.0.100-preview.7.22377.5)
When I switched to 6.0.400 and tested your minimal sample again the exception went away.

Thanks @nils-hoglund. Now we'll have to see what's going on with .NET 7!
Please feel free to reopen this issue if you have additional questions, thoughts, or findings related to this topic.
Thanks again!

Hi @nils-hoglund,
Just wanted to let you know that your find revealed two bugs in .NET 7, one of which was a showstopper for ClearScript!
Thanks again!

No worries. Thanks for the feedback!


⚠ Thumbnails API Endpoint has degraded performance

In f121d3d, Thumbnails API Endpoint (https://thumbnails.roblox.com/v1/assets?assetIds=82738847&format=Png&isCircular=false&size=30x30) experienced degraded performance:

HTTP code: 200
Response time: 1125 ms

Resolved: Thumbnails API Endpoint performance has improved in 4a5893b after 17 days, 13 minutes.


[feaLib] ChainContextPos has wrong SequenceIndex

Input (existing test case spec6h_iii_3d):
feature test {
    position L' quoteright' -150;
} test;

Expected:
    <ChainContextPos index="0" Format="3">
          <PosLookupRecord index="0">
            <SequenceIndex value="1"/>
          </PosLookupRecord>
    </ChainContextPos>

Observed:
    <ChainContextPos index="0" Format="3">
          <PosLookupRecord index="0">
            <SequenceIndex value="0"/>
          </PosLookupRecord>
    </ChainContextPos>

Right.  That's what baffled me when I was reading your code here:
https://github.com/behdad/fonttools/issues/463#issuecomment-174229374
The fact that sequenceIndex is coming from enumerate() cannot be right unless captured arguments have a lookup applied to them.


WorldEdit Paste Schematic

It won't paste a schematic in:
https://pastebin.com/T2xrV3zG
sharpsk paste schematic "PLANET_LVL_%{temp_::marsland::%{_player_uuid}%::island::level}%" at {temp_::marsland::%{_player_uuid}%::island} exclude air true
Both of the variables are set.
Server version: Paper 1.12.1-R0.1
Skript version: 2.2-dev31b
SharpSK version: <IP_ADDRESS>

It works, when I add rotate by 0 degrees at the end of the line. ;)

Thanks for the issue report. Although I was already aware of this bug. It's fixed in next release.


Upgrade to containerd-shim-wasm v0.7.0

particularly, https://github.com/containerd/runwasi/pull/668 is important to get the wasm boundary issue resolved.

@Mossaka I've done this locally and can push up the changes today


The ldf contains empty schedule tables, parsing will report an error

Discussed in https://github.com/c4deszes/ldfparser/discussions/127

Originally posted by coraler November 16, 2023
the empty schedule table like this:
'''
Schedule_tables {
Table1{
}
Table2{
    message1 delay 10 ms ;
    message2 delay 10 ms ;
}
}
'''

Table1 is the empty schedule table
the error is:
lark.exceptions.UnexpectedCharacters: No terminal matches '}' in the current parser context,
I'm not sure if this is a definition of ldf or an issue. But i really need use empty schedule table!
If give me some explanation, that would be greatly appreciated!!

This is a grammar limitation, we expect that when you create a schedule table there's going to be at least one entry inside. This is not decided by us, it's in the standard.
We could get rid of this limitation as it's not affecting any function. What I'd like to do/know beforehand:

Explain the use case for such an LDF
Verify that other tools, like Vector LDF Explorer, communication and code generation tools also allow empty schedule tables

In the future the idea for the library is to have an error manager where deviations like this could be suppressed by the user.

Thanks for your explanation! I got it.
Vector LDF Explorer can not generate this format, we define it and think it could be work. im sorry.


Quote Block with Avatar, Link, and Background color variations

Follow-up to L3 quote block https://github.com/urfuwo/hlx-test/issues/107
L2 quotes can have an additional avatar and a link (while L3 quotes could only have a quote text and a quote source)
Design Specs:

Figma L2 quote block: https://www.figma.com/file/oSetT4LbatRmXlcB2A7V8Z/Content-Hubs-2024?type=design&node-id=1507-65208&mode=design&t=pcs6BzMbBgLQPBw2-4
Figma Component Spec: https://www.figma.com/file/OFEfvhyXJvYJ6MQZ30699m/v2.0-Brand-Digital-Design-System?type=design&node-id=6526-15728&mode=design&t=Aq7vEK0dS8OPWFrD-0
Frontify Spec: https://sap.frontify.com/document/223142#/-/quote

for background color variation see quote a foot below https://www.figma.com/file/oSetT4LbatRmXlcB2A7V8Z/Content-Hubs-2024?type=design&node-id=1353-94173&mode=design&t=LaI6dbu2dNrDhXN1-4

This is blocked by #224


How to make boxplots

Dear Robin,
Could you teach me how to make the below boxplots? It can show double x coordinates and can show double boxplots in the same category.

Thanks in advance
Binghong

Hi Binghong, good question. Can you try reproducing the examples here?: https://ggplot2.tidyverse.org/reference/geom_boxplot.html#examples
That will be a good starting point I think.


Review + Create tab - list of resources created need updating

In Review + Create tab:
https://docs.microsoft.com/en-us/azure/automation/automation-create-standalone-account?tabs=azureportal#review--create-tab
It says the following runbooks are automatically created upon completion:

AzureAutomationTutorialWithIdentity
AzureAutomationTutorialScript
AzureAutomationTutorialPython2Runbook

I created three different automation accounts, and for each one, the following two runbooks are created:

AzureAutomationTutorialWithIdentity
AzureAutomationTutorialWithIdentityGraphical

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

ID: 9b4440e0-1ff5-0fd3-6983-d5f6ed86e818
Version Independent ID: 8d6aecae-1a58-83aa-45f7-306fb6c92d38
Content: Create a standalone Azure Automation account
Content Source: articles/automation/automation-create-standalone-account.md
Service: automation
Sub-service: process-automation
GitHub Login: @SGSneha
Microsoft Alias: sudhirsneha

@pnwguy Thanks for the feedback! I have fixed the referenced change, and the change should reflect on the doc once approved by content author.


Remove eval() from code

The eval() calls are not good practice.  Remove them and convert all variables that should be Boolean from string to Boolean.

This is done.  Will be in next release.


boost exports incorrect library set when exported with vcpkg export --raw

When one uses BOOST_DYN_LINK, the library pattern searched for appears to be of the form:
boost_system-vc141-mt-x64-1_69.lib
The only pattern exported via raw export is:
boost_system-vc140-mt.lib
As a result the exported directory is insufficient.
(This was easy for me to miss since I often run integrated..  when integrated visual studio finds the relevant [long/correctly] named lib files buried in vcpkg directory outside of the normal export directory.

Doing reading in old issues, I see this is a side-affect of some cmake related choices in the naming of generated the .lib files.  I found this 'feature' trying to use exported binaries out of vcpkg, in a non-cmake project that heavily used BOOST_DYN_LINK.

@ByronFaber ,Thanks for posting this issue,Can you try again with the latest vcpkg and see if the problem persists? If this bug still exists, please provide your reproduction steps

This is by design, see https://github.com/microsoft/vcpkg/issues/601#issuecomment-276220946.


ENH?: delayed reduction of induced power in source space

Currently we have two functions wrapping _source_induced_power, that is,
source_band_induced_power and source_induced_power.
It seems there is at least one use case which is only indirectly covered with this API, namely, computing TFRs for the entire source space in a first step and then doing binning or label-based reduction at some later point. E.g. for a group analysis it might be nice to first compute the TFR in source space for each subject X condition and then later select bins / labels. I'm wondering whether we should have a third API for this purpose. Alternatively we could think about making  _source_induced_power a public function.
Wdyt?
cc @mluessi

I'm closing in favor of the ongoing TFR work, which I think will support this sort of thing


[PORT] Fixed issue with null attachment arrays in AttachmentInput

Port this change from botbuilder-dotnet/master branch:
https://github.com/microsoft/botbuilder-dotnet/pull/3486

Fixes #3298
Added logic to InputAction that ensures an empty array is provided if context.activity.attachments is null.  Also added a unit test to cover AttachmentInput.
Changed projects

Microsoft.Bot.Builder.Dialogs.Adaptive
Microsoft.Bot.Builder.Dialogs.Adaptive.Tests

[R8,adaptive,bug]

Closing as Python doesn't include Adaptive.


Fix IAsyncDisposable compatibility issues with .NET Core 3.0

Suggested fix for issue #5.
The .NET Core System.IAsyncDisposable interface defines DiposeAsync() as returning a ValueTask, not a Task. Moving the namespace appears to be an easy fix to resolve the conflict - all tests pass and consuming code will now compile.

Nice! I need this fix too and hope it'll be merged sometime soon.

If this PR addresses the problem and everything is green, when can we expect it to be merged?

@justinschoonover thanks a lot for this one. Changing the namespace seems to me like a good solution indeed.


Add FAQ & Conventions Page, and site-wide font change

@xrotwang @drammock
There are several things I made changes to this pull request.

Add two new views of FAQ and Conventions pages in the phoible/__init__.py and phoible/view.py. Their Mako templates are phoible/templates/faq.mako and phoible/templates/conventions.mako. The Mako templates render views from static resources phoible/static/conventions.html and phoible/static/faq_with_indexes.html.
In phoible/static/project.css file, I append CSS rules for (a) code highlighting styles, (b) site-wide style changes, and (c) Conventions page styles.
In phoible/templates/phoible.mako file, I append a script that can (a) add Charis SIL CSS reference site-widely, (b) append menu items of Conventions and FAQ.
Add two rules in the .gitignore file, which will ignore the .DS_STORE files in macOS and *.iml IntelliJ IDE confirgurations.

Please let me know if there is anything to fix. Thank you so much!

@ltxom, I was hoping to get 2 separate PRs for this (see my last email): one that adds the two new static pages, and one for the changes that affect the whole site (like the CSS for the fonts). I requested that because I thought it would be easier for @xrotwang and I to review those contributions separately. We've now both reviewed, so no need to split into separate PRs at this point, but FYI in general it is often preferred to keep the changes in a PR semantically related (and avoid things like whitespace changes / touching unrelated files).

Sorry for the inconvenience! This is my first time making a PR. I misunderstood and thought should make 2 PR in two separate repositories. I will pay attention and do it correctly next time.

@xrotwang @drammock
Dear Robert and Dr. McCloy,
I submit a new commit that fixes the problems we discussed. Could you please check it for me?
Let me know if there is any problem. Thank you!

LGTM.  At some point over email we discussed changes to the homepage text, but let's do that in a separate PR.

@xrotwang
Hi Robert,
Sorry! I misclicked the request review button. I was wondering how to merge the code into this repo once both of you approved.

I'll merge. You don't have sufficient permissions.
LTXOM @.***> schrieb am Do., 29. Apr. 2021, 19:55:

@xrotwang https://github.com/xrotwang
Hi Robert,
Sorry! I misclicked the request review button. I was wondering how to
merge the code into this repo once both of you approved.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/clld/phoible/pull/30#issuecomment-829469011, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGUOKHVQ5EZQCXWFBX55F3TLGMQXANCNFSM43PJZNAQ
.


Ipv4 and ipv6 domains

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Added:

IDataTypeDomain interface;
method DataTypeFactory::registerDataTypeDomain for registering domains;
DataTypeDomainWithSimpleSerialization domain base class with simple serialization/deserialization;
Concrete IPv4 and IPv6 domain implementations: DataTypeDomanIPv6 and DataTypeDomanIPv4;

Updated:

IDataType text serialization/deserialization methods;
IDataType implementation to use domain for text serialization/deserialization;
Refactored implementation of the IPv4/IPv6 functions to use formatIPv4/v6 and parseIPv4/v6 from Common/formatIPv6.h;

Tests:

Added test cases for IPv4 and IPv6 domains.
Updated IPv4/v6 functions tests to validate more cases;
Added performance tests for IPv4 and IPv6 related functions;

Hi @Enmk @alexey-milovidov is there any plans to have an IP datatype where you can have both IPv4 and IPv6 ? Right now I'm storing all IPs as a FixedString(16) so it's way simpler when querying

@KochetovNicolai : Out of curiosity, why is IPv6 represented using FixedString(16) instead of UInt128?  Would a PR changing it to UInt128 be considered?

@Enmk : Out of curiosity, why is IPv6 represented using FixedString(16) instead of UInt128?

Well, the major reason is compatibility. Existing IPv6-functions work with FixedString(16) and hence work with IPv6 domain too, also that allows for seamless comparing of old FixedString(16)-IPv6 column values with IPv6.


Show whitespace in strings

It's possible to enter strings with leading or trailing whitespace (or only whitespace). However when you are browsing the tree, you can't see the whitespace. For example the string " " looks the same as an empty string.

Strings are now wrapped in quotes, so you can see whitespace


[BUG] _load_raw method of class PthDistributions has an issue from version 67.8.0

setuptools version
setuptools==67.8.0
Python version
Python3.11
OS
macOS
Additional environment information
No response
Description
just upgrade my python package with python setup.py install.  but find that still link to old version package and find that the version was not deleted from easy-install.pth
looks like setuptools==67.7.2 is ok, but from setuptools==67.8.0, there is an issue in _load_raw method of class PthDistributions:
normalized_path = normalize_path(os.path.join(self.basedir, path)
it maybe should is paths[-1]=normalized_path = normalize_path(os.path.join(self.basedir, path))
the paths is not full path, so, there will be an issue in below find_distributions:
self.paths, self.dirty = self._load()
self._init_paths = self.paths[:]
super().init([], None, None)
for path in yield_lines(self.paths):
list(map(self.add, find_distributions(path, True)))
Expected behavior
when upgrade the package, the previous version should be remove from easy-install.pth and can link to the current version
How to Reproduce

create a python package with version 1.0.27
install it with python setup.py install
change version to 1.0.28
upgrade it with python setup.py install
check if upgrade success, should have below message, if not, looks like upgrade failed.
Copying test_cli-1.0.28-py3.9.egg to /usr/local/lib/python3.9/site-packages
Removing test-cli 1.0.27 from easy-install.pth file
Adding test-cli 1.0.28 to easy-install.pth file

Output

Copying test_cli-1.0.28-py3.9.egg to /usr/local/lib/python3.9/site-packages
Removing test-cli 1.0.27 from easy-install.pth file
Adding test-cli 1.0.28 to easy-install.pth file

Hi @morganw, please note that any easy-install solution or python setup.py XXX CLI commands, are deprecated and no longer receive first class support.
The recommended approach is as follows:

Please make sure you have updated the package source code to include a pyproject.toml file with a [build-system] table, as documented in the user guide.

Note that you need to list all your build dependencies in the [build-system] requires field (e.g. if you use any non-stdlib library in your setup.py script.
Please also note that if you need to import your local folders in your setup.py script then you also need to manually add the local folder to sys.path or use build-backend = "setuptools.build_meta:__legacy__"

Please use pip>=23 to install your package using pip install .

There is a old blog post with some extra details about the deprecation https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html.


👌 IMPROVE: linux distro fetching method, pep8

In this PR I have:

Addressed #6 with use of the distro library
Improved readability with pep8 standards

Please feel free to do whatever you wish with this PR as it represents my specific opinions and preferences 👍

Oh and here after the 'after' screenshots

I don't want to use 3rd party libraries. Pure Python.

Fair enough, in any case you might want to look into another pure python method for getting the distro pretty name

I will close this PR. If you wish, you can change the name of the project fork and improve it.

Ok I'm just curious, why do you want to only use pure python?

I think it can be solved without using 3 party modules. Also thank you for your support...


Writable Pointers for Added, Mutated, Changed queries

Currently there is not a way to mutate a component that has been provided to a QueryBorrow with the Added/Mutated/Changed series of structs that impl Query. These structs do not implement DerefMut, so there isn't a safe way to get a mutable reference to the component.
It was suggested in Discord that new writable change detection pointers could be the path forward on this, e.g.MutatedMut, ChangedMut, AddedMut` that would allow inner mutability of the value and track the changes made.
The work around I am using for this is are multiple component queries with mut versions of the components and entity comparisons, but it is a bit clunky - if there is a better work around that I'm missing, it would also be appreciated.

Fixed in #834


make 'missing extern static' error consistent with missing shim

What's relevant is mostly the link name of the external symbol, not its Rust path.

@bors r+

:pushpin: Commit 52a66b2baf2892a8a0c4263601220d538ce97dea has been approved by RalfJung
It is now in the queue for this repository.

:hourglass: Testing commit 52a66b2baf2892a8a0c4263601220d538ce97dea with merge f70a3c408977d09bcfe66cd68ba544827ebfb86e...

:sunny: Test successful - checks-actions
Approved by: RalfJung
Pushing f70a3c408977d09bcfe66cd68ba544827ebfb86e to master...


Exactly.

You do know they animate when you hit them, right?

I do - but a ISBRH can handle animated blocks no worries

Unsure if that's the case, but if so, there'd be the same render load regardless, and where would I save the data related to rendering the block? (Whether it's currently animated and where it is in its animation.)

It would not save anything in particular when wiggling, but when not wiggling it would not trigger render updates every tick
The wiggle data could still be stored in a TE - you are passed the world and x, y, z coords in the ISBRH so you can easily access the tile

And how would you use the ISBRH to do animations? Wouldn't that need to rerender the chunk?

You could look at Buildcraft pipes which animate item movement through them while being ISBRH - there are a couple of other examples of animated blocks not using a TESR but I don't have them to hand

That's a static and an additional moving part. Not an object that's sometimes static and sometimes moving.

Like I said, it was an example, there are others
Marking a block for a render update doesn't re-render the entire chunk - rather a 16x16x16. Now some proportion of blocks around a flamingo is going to be air - I'd say close to 50% but let's say 30% as a worst case.
Compare that to a TESR - which always re-renders it's contents regardless of whether you can see it or it has updated: Average player at 30fps, that's 30 renders per second. Even the most ardent flamingo enthusiast is not going to be wiggling more than 1% of the time. 16*16*16*0.7*0.01 = average of 28 renders/s, the majority of which are cheaper computationally than TESR model renders and that's absolute worst case - I reckon regular use would be <10

These 16x16x16 render regions are also called chunks, hence "chunk updates". Chunk updates are significantly more expensive than straight up rendering them, requiring creating new display lists and using the tesselator and block rendering methods to compile them again.
Yes, if Flamingos were static, it may speed up rendering a bit. Does it matter? Not until you place thousands of them in your world. I'd be more worried about chests. Would it make sense to go through all this work (writing transformation functions for rotating vectors of the default model, etc...) just to maybe get a absolutely tiny performance boost? No.
Read up on "premature optimization" if you want.

If Flamingos were static it would definitely speed up rendering a bit, as they are not, it would in 99.9% of cases.
As for the incredible effort of calling glRotate(0, a, 0); in a render function I will refrain from commenting on that.
Premature optimization is a thoroughly inappropriate phrase to be throwing around at this juncture - the codebase hasn't changed in 9 months and thus can reasonably be considered finished. Premature optimization refers to work done in the development - and a caution against spending time optimizing non-critical pathways. For a completed and non functional, aesthetic mod, you are working on the only pathway that actually matters and not at the expense of developing other features.
Actually an interesting middle ground would be to have it only create the tile entity when it is hit, use the TESR for the wiggle and then remove the TE as it returns to rest, using an ISBRH to massively reduce render load during the 99%+ of time that a flamingo is not wiggling and then the TESR prevents the necessity for a bunch of render updates. Further you might even be able to run the TE client side only which means you'd be saving space and performance on the server side - though I am not sure MC wouldn't cull it.

How in the world would you have a Flamingo and not wiggle it? I cannot comprehend the meaning of your statement...

I never suggested no having wiggling flamingos - but @copygirl said " if Flamingos were static, it may speed up rendering a bit" - which is not correct - if they were static then using an ISBRH would definitely speed up rendering

*puts on tinfoil hat*
I'm not sure if this is serious anymore or not. I'll be over in that corner silently banging my head against the wall. Don't worry though, this is a reinforced tinfoil hat.

This hasn't been particularly serious since the first comment - I only made the issue to annoy @Vexatos

ISBRH
1.8.8

Fixed via #7.


The 2.0 version doesn't works with ionic v1 and crosswalk

The 2.0 version doesn't works with ionic v1 and crosswalk. Download and prepare the 2.0 demo and maps are shown pretty good. But if you install crosswalk to demo (cordova plugin add cordova-plugin-crosswalk-webview) the maps go away and only shows white screen, any help?
It is not a webview background issue, I put  in config.xml and you can see the android launcher, icons..., but not the map

https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/Installation/crosswalk/README.md

Many thanks, It works.


Docker support

Describe Problem
there is no docker support
Suggest Changes
add docker support with an ubuntu container and all the dependencies.

this was completed by the latest PR merge


Resize banner, add PNGs

Also rename rotated banner
In response to: https://github.com/hackclub/hackclub/issues/712#issuecomment-183785842
I have also taken out the annoying edge of Prophet Orpheus's arm


Different name

I was sharing ts-quickcheck with a friend and he pointed out that the name might give people the impression that the library is TypeScript only. But even though ts-quickcheck is implemented in TypeScript it can equally well be used in JavaScript (and potentially also with Flow).
What about changing the name to something without "ts" in it? I don't have any original ideas but at least proptest is free on npm.

I have some suggestions:

Protest - Like in property-testing and because it is also a pro way of testing 😎
Prophet
Propaganda
Propane

All names are already taken on npm, but most of them look inactive and you might have luck with adopting one of the names:

I certainly like proptest but I also would like it to preserve the quickcheck name part in homage to the original haskell library. I've pinged the author of the empty qc package if they would be interested in letting me adopt that name.

Renamed to proptest and released a preliminary version to npm.


Question about gpasize in iotval2 when s1 bare and gpa over 56bit

According to the spec

seems the iotval2 should save the whole gpa high part value [63:2],  even the gpa is over maxgpa ,
but in the c model , seems gpa dont save the value above 56bit when  S1 bare (va=gpa),  depending on page_sz .

so , should the iotval2 save the upper_bits in this situation? thanks

Do you have a test input that you can add to show what you mean? What was your input va and what do you see saved in iotval2 for that input?

this is the req we send : iova = fffffff54d1ee2bc

this is the result covert from the rivos model

this is the two stage function handles gpa for this req , the page_sz screenshoted in my last comment shows it is not 64 , causing the gpa high part [63:57] discarded
in this situation , dc.pdtv=1 && vsatp mode=bare so s1 bare va =gpa , so i think the iotval2 should save fffffff54d1ee2bc ,not the fffff54d1ee2bc in the temp fault q result rivos , seems bit [63:57] of iotval2 is discarded by two stage translation. Thanks

The issue is that the pte->PPN is 44 bit wide. I have fixed this in #390
Please also send me a direct message.

Now the iotval2 check of that req pass,  thanks

I have different opinion of the saved iotval/iotval2, probably you guys should take a look over it:
https://github.com/riscv-non-isa/riscv-iommu/issues/391


Enable getExecutedOrders function

Currently getExecutedOrders is nto enabled and it returns error. Please enable it.
bitbnsObj.getExecutedOrders('EOS')

hi @soumya-sinclair, please use
symbol = 'EOSUSDT'    #symbol = 'EOS' for (EOS/INR market)
since_date = '2021-01-01T00:00:00Z'
page_no = 0
print(bitbnsObj.listExecutedOrders(symbol, since=since_date, pageNo=page_no))

response
{
   "data":[
      {
         "type":"EOS Buy order executed",
         "typeI":29,
         "crypto":28,
         "amount":28,
         "rate":"3.3929",
         "date":"2021-01-06T18:53:25.000Z",
         "unit":"EOS",
         "factor":100,
         "fee":0.01,
         "delh_btc":0,
         "delh_inr":-0.96,
         "del_btc":28,
         "del_inr":0,
         "id":"2249410",
         "log_id":260236056
      }
   ],
   "status":1,
   "error":"None",
   "code":200
}

hi @soumya-sinclair, please use
symbol = 'EOSUSDT'    #symbol = 'EOS' for (EOS/INR market)
since_date = '2021-01-01T00:00:00Z'
page_no = 0
print(bitbnsObj.listExecutedOrders(symbol, since=since_date, pageNo=page_no))

response
{
   "data":[
      {
         "type":"EOS Buy order executed",
         "typeI":29,
         "crypto":28,
         "amount":28,
         "rate":"3.3929",
         "date":"2021-01-06T18:53:25.000Z",
         "unit":"EOS",
         "factor":100,
         "fee":0.01,
         "delh_btc":0,
         "delh_inr":-0.96,
         "del_btc":28,
         "del_inr":0,
         "id":"2249410",
         "log_id":260236056
      }
   ],
   "status":1,
   "error":"None",
   "code":200
}

@sanket-buyhatke What is the significance of pageno ? Should it be always kept 0 at my end ? 0 and 1 seems to give same results.

@sanket-buyhatke What is the significance of pageno ? Should it be always kept 0 at my end ? 0 and 1 seems to give same results.

@sanket-buyhatke Also can you please help me understand the fields ( or any document will also be good ). I am not seeing the volume of coin bought/sold.

@sanket-buyhatke Also can you please help me understand the fields ( or any document will also be good ). I am not seeing the volume of coin bought/sold.

@soumya-sinclair,

significance of pageno is for pagination, if there is a large number of orders that need retrieval, suggested method would be to use pagination.
This particular function seems to be missing from the python documentation, thanks for the identification, will be updated soon.
as for the explanation of fields:

Explanation of fields:
type -> type of action
typeI -> action id
amount -> the amount deposited
date -> the time at which this event occurred
unit -> the symbol name of coin
factor -> the division factor
del_btc -> delta changes in normal wallet of coin
del_inr -> delta changes in normal inr wallet
delh_btc -> delta changes in hold wallet of coin

@soumya-sinclair,

significance of pageno is for pagination, if there is a large number of orders that need retrieval, suggested method would be to use pagination.
This particular function seems to be missing from the python documentation, thanks for the identification, will be updated soon.
as for the explanation of fields:

Explanation of fields:
type -> type of action
typeI -> action id
amount -> the amount deposited
date -> the time at which this event occurred
unit -> the symbol name of coin
factor -> the division factor
del_btc -> delta changes in normal wallet of coin
del_inr -> delta changes in normal inr wallet
delh_btc -> delta changes in hold wallet of coin


Missing symbolic links for Catalyst target

Catalyst build framework is missing symbolic links whereas the macOS build framework has. App Store processing defines these are malformed frameworks thus invalid build. Should we add Catalyst for symbolic link creation too, or am I missing something?
https://github.com/keeshux/openssl-apple/blob/7eb1ce9894c4f7f2d19895e1a044d3583d20f089/create-openssl-framework.sh#L244

 ITMS-90291: Malformed Framework - The framework bundle openssl (x.app/Contents/Frameworks/openssl.framework) must contain a symbolic link 'openssl' -> 'Versions/Current/openssl'. Refer to the Anatomy of Framework Bundles for more information.

ITMS-90291: Malformed Framework - The framework bundle openssl (x.app/Contents/Frameworks/openssl.framework) must contain a symbolic link 'Resources' -> 'Versions/Current/Resources'. Refer to the Anatomy of Framework Bundles for more information.

ITMS-90292: Malformed Framework - The framework bundle openssl (x.app/Contents/Frameworks/openssl.framework) 'Versions' directory must contain a symbolic link 'Current' resolving to a specific version directory. Resolved link target: '${linkTarget}'. Refer to the Anatomy of Framework Bundles for more information.

I've never released a Catalyst app but I assume this is something to fix.

@keeshux I submit a new version to the App Store with symbolic links, I didn't get any Malformed Framework error after processing. I will create a PR regarding this.


Crash upon hello_proxy execution

I'm not sure if this intended behaviour, but I suspect that something is still wrong. When I start a proxy example, it looks like something crashes and the linux kernel boots all over again. See output: https://gist.github.com/daniel-k/473aee84ff493f1a41f3
I needed to modify Qemu parameters in order to be able to start it in the first place as my machine has "only" 8GB of RAM.
-smp 8 [...] -m 4G -numa node,nodeid=0,cpus=0-3 -numa node,nodeid=1,cpus=4-7

and in linux/arch/x86/hermit/hermit.c I lowered the pool size to
static size_t pool_size = 0x10000000ULL;

although I don't know yet what this really is. However, it was needed so that HermitCore would initialize successfully and populate /sys/hermit.

@youknow0 : Could you check, if the current branch works on your system. I think that I solve the problem.

Yes, it seems to work perfectly now. I’ve tried /hermit/usr/tests/hello as well as /hermit/usr/tests/hello++.
For reference: my system is a HP Z600 with a Intel Xeon X5650.


Error Updating Packages

Summary
Today I attempted to install the latest packages to upgrade my environment. I went to File > Manage Packages changed my View to Online Repository and updated both Duality.Editor and Duality.Core. The updater ran and I was prompted to apply the changes, which restarted the editor.
Once it returned I resumed installing packages and now every package provides the same error notice:

How to reproduce [Bugs]

File > Manage Packages
Update View to Online Repository
Update to latest Duality.Editor and Duality.Core
Apply updates
Return to File > Manage Packages
Update View to Online Repository
Attempt to install any package.

Workaround [Bugs]

Manually update to latest files from download link on site.

Attachments
Error In Context:
Log file: logfile_editor.txt

I can't reproduce this from a fresh install. Looking at the logfile, it seems that there are one or more libraries or plugins that attempt to resolve API that was only introduced in the develop-3.0 branch, which isn't released yet. Is it possible that you mixed custom-built v3.0 libraries with downloaded ones from the package manager?

I may have. Will upload shortly.

Just realized that I overwrote my files when I was trying to sort out the workaround.
I no longer have this issue. Not sure if the screenshots are going to help.
Here is the screenshot of my Source/Packages directory

<?xml version="1.0" encoding="utf-8"?>
<PackageConfig>
  <RepositoryUrl>https://packages.nuget.org/api/v2</RepositoryUrl>
  <Packages>
    <Package id="AdamsLair.Duality" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Launcher" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Backend.DotNetFramework" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Plugins.Compatibility" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Docs" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Backend.DefaultOpenTK" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Editor" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Editor.Plugins.Base" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Editor.Plugins.CamView" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Editor.Plugins.HelpAdvisor" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Editor.Plugins.LogView" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Editor.Plugins.ObjectInspector" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Editor.Plugins.ProjectView" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Editor.Plugins.SceneView" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Editor.Plugins.PackageManagerFrontend" version="<IP_ADDRESS>" />
    <Package id="AdamsLair.Duality.Editor.Backend.DefaultOpenTK" version="<IP_ADDRESS>" />
    <Package id="SnowyPeak.Duality.Plugins.YAUI.Core" version="<IP_ADDRESS>" />
  </Packages>
</PackageConfig>

Is it possible that you accidentally mixed custom-built v3.0 libraries with downloaded ones from the package manager, for example by using the same build folder?

I may have. Will upload shortly.

Just realized that I overwrote my files when I was trying to sort out the workaround.
I no longer have this issue.

Probably a custom v3.0 / released v2.x issue then 🙂 Thanks for the screenshots though! Look unsuspicious so far, which would be expected if it was the build folder mixup. Closing this.


Improved Binding Support

SUMMARY
Working with the Map control should allow easy binding to a data set with a DataTemplate. This should work similar to a ListView in which you can bind to a generic set of data with a DataTemplate that produces a Pin to add to the controls Pin collection.
DETAILS
Two bindable properties should be added:

ItemsSource
ItemTemplate

<maps:Map Items="{Binding MyLocations}">
  <maps:Map.ItemTemplate>
    <DataTemplate>
      <maps:Pin Label="{Binding Name}"
                IsDraggable="false"
                Icon="{Binding SomeProp,Converter={StaticResource MyIconConverter}}">
        <maps:Pin.Position>
          <maps:Position Latitude="{Binding Latitude}"
                         Longitude="{Binding Longitude}" />
        </maps:Pin.Position>
      </maps:Pin>
    </DataTemplate>
  </maps:Map.ItemTemplate>
</maps:Map>

In addition, an event and Command should be added in the spirit of when a Pin is Selected.

ItemSelected (event)
ItemSelectedCommand

When a Pin is selected the ItemSelected event should invoked and the Command executed with the BindingContext of each passed to them.
PLATFORMS

[X] Android
[X] iOS
[X] UWP

Do you know Xamarin.Forms.GoogleMaps.Bindings ?
This is already implemented part of your request.

I supported ItemsSource and ItemTemplate in Xamarin.Forms.GoogleMaps v3.1.0+ .

https://github.com/amay077/Xamarin.Forms.GoogleMaps/releases/tag/v3.1.0
https://github.com/amay077/Xamarin.Forms.GoogleMaps/blob/v3.1.0/XFGoogleMapSample/XFGoogleMapSample/PinItemsSourcePage.xaml#L22-L33

Thanks @dansiegel ! 👍

Is there any documentation as far as using the DataTemplate part of the binding goes?
`<maps:Map x:Name="mapView" ItemsSource="{Binding Pins}" AbsoluteLayout.LayoutBounds="0, 0, 1, 0.7" AbsoluteLayout.LayoutFlags="All">
maps:Map.ItemTemplate

<maps:Pin Label="teste" Address="address">
maps:Pin.Position
<maps:Position >
                            </maps:Position>
                        </maps:Pin.Position>
                    </maps:Pin>

                </DataTemplate>
            </maps:Map.ItemTemplate>
        </maps:Map>`

This is what I currently got, yet can't seem to figure out how to get Latitude and Longitude into it. maps:Position doesn't seem to have that property in XAML.


fix(learn): update certification claim message

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #57160

Updated the certification claim message to reflect that users should add their name in the profile.

Hi @itzVarsha . Congrats on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We are happy to accept these changes and look forward to future contributions. 📝


its broken

I don't see any issue. Can you describe the expected behavior?

Pressing ESC whilst Help is shown shouldn't get rid of world rendering. The same issue occurs when pressing the ESC key whilst informational messages from books are displayed.


ae.start() method works on full load (100% CPU)

Either when I run my own code to create an scp or when running the scp tools located in app directory the CPU load of the application is 100%
I suppose start() uses a while(true) which is not so efficient?

Thanks for letting me know. Sorry for the delay but I've been sick all week.

Thanks for the fix!
Working on it a bit, I also found a way to fix the problem by adding a timeout to select in method _monitor_socket of ApplicationEntity like the following
# FIXME: this needs to be dealt with properly
        try:
            read_list, _, _ = select.select([self.local_socket], [], [], 0.1)
        except (socket.error, ValueError):
return

By adding a timeout to select the method stops polling and instead blocks for a timeout period.
I don't know if your fix using sleep or mine with select timeout could be more efficient, so I leave the decision on you.

Timeout for select offers better responsiveness - instead of sleeping and checking only now and then if packets have arrived, we are always available for packets. We can even increase the timeout for more than 0.5 sec, because this only hurts the responsiveness of the python shell to KeyboardInterrupt (Ctrl+C), not the responsiveness of the server to incoming packets.
I'm publishing a PR.

Using select looks like the way to go, I'll fix up that PR


Refactoring website/playground to ES6

Refactoring vars to let and consts and string concatenation to template literal.

Thanks, but we don't want to force our visitors to have ES6 browsers yet.


Test Selection / Controlled error injection

TorXakis can currently be used as a tester or a simulator.
As a user, I would like to combine these capabilities to inject errors in my system.
In other words, use TorXakis to test a system that contains parts that are simulated by TorXakis.
To give some examples

test that my printer handles a paper jam correctly.
test that my application gracefully degrades when the hard disk gives a full exception.
test that my application gracefully degrades when the battery gives an almost empty event.


wrong email for iopaint 1click installer purchase

I accidentally gave an email I no longer have access to but I can give proof of purchase. Any help would be greatly appreciated, thank you!

nevermind


Fix merge conflict, merge branch 0.3 to branch 0.4 [skip ci]

Fix auto-merge conflict - doc conflict. https://github.com/NVIDIA/spark-rapids/pull/1494
NOTE: this has to be merged as a merge commit!

build

build

build

build


LengthFieldBasedFrameDecoder fails with TooLongFrameException

After upgrading netty to 4.1.45 LengthFieldBasedFrameDecoder fails to decode frame with TooLongFrameException (some integration tests in my project started to fail). Issue is not reproducible with 4.1.44.
LengthFieldBasedFrameDecoder extends ByteToMessageDecoder so I ended up blaming https://github.com/netty/netty/pull/9891.
Internally it looks like LengthFieldBasedFrameDecoder#decode is invoked two times: first time when it receives 4 bytes of header (length of payload). Second - when it receives payload. The issue is with second invocation - first 4 bytes are missing, looks like ByteBuffer is not correctly merged.
Minimal yet complete reproducer code (or URL to code)
TODO
Netty version
Issue reproduces in netty 4.1.45 and later.
4.1.44 works fine.
JVM version (e.g. java -version)
OpenJDK 11.
OS version (e.g. uname -a)
Tested on Windows 10 / Centos 7.7.

@kshchepanovskyi can you provide a reproducer ?

/cc @njhill

@normanmaurer you beat me to asking for the reproducer... but I will try to take a look in the meantime anyhow.
@kshchepanovskyi maybe you could also just confirm which type of cumulator you are using here - presumably it's the default MERGE_CUMULATOR i.e. you're not explicitly setting COMPOSITE_CUMULATOR?

@normanmaurer Working on it.

@kshchepanovskyi did you find out anything yet ?

Sorry, didn't get to it yet. Hopefully I'll find some time on a weekend.

we had similar problem.
`import java.util.List;
import org.apache.commons.lang3.tuple.Pair;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.xtrader.commons.core.channel.BasePipelineConfig;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelPipeline;
import io.netty.handler.codec.ByteToMessageDecoder;
public class ProtocolDetector extends ByteToMessageDecoder {
private static final Logger LOGGER = LoggerFactory.getLogger(ProtocolDetector.class);
public static final String NAME = "protocolDetector";
private static final byte[] GET = new byte[] {'G', 'E','T'};
private final BasePipelineConfig config;

public ProtocolDetector(BasePipelineConfig config) {
    this.config = config;
}

@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
    in.markReaderIndex();
    boolean websocket = true;
    for(int i = 0; i < GET.length; i++) {
        if (!in.isReadable() || in.readByte() != GET[i]) {
            websocket = false;
            break;
        }
    }
    in.resetReaderIndex();

    out.add(in.retain());

    ChannelPipeline pipeline = ctx.pipeline();
    if (websocket) {
        LOGGER.info("Detect HTTP protocol.");
    } else {
        LOGGER.info("Detect legacy protocol.");
    }
    ctx.fireUserEventTriggered(Pair.of(websocket, config));
    pipeline.remove(this);
}

}
`
after this ProtocolDetector, LengthFieldBasedFrameDecoder couldn't merge length field, in our case 4 bytes, and protobuf message. First 4 bytes some how disappear and we got TooLongFrameException on second
This code works with 4.1.44. Also it works if I create LegacyByteToMessageDecoder from 4.1.44 and extends it.
In our case buffer with size 4 bytes doesn't have sense. So I fix our code by adding
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {         int readableBytes = in.readableBytes();         LOGGER.info("Protocol detector. Readable bytes {}", readableBytes);         if (readableBytes < 5) {             LOGGER.debug("Not full packet readed.");             return;         }


No villager flags in the config file

Regrowth-1.16.4-1.16.4-<IP_ADDRESS>.jar
Forge Version:  35.1.28
Minecraft Version:  1.16.4
Describe the bug
The config file contains no flags to control villager behaviour.  Road upgrades are still problematic, so this is definitely needed.
To Reproduce
Steps to reproduce the behavior:

start with a fresh minecraft instance
install the mod
run minecraft to generate config
open config file
note absence of villager flags

Expected behavior
A villager flags line as described in the mod description on curseforge should appear in the ["Regrowth Control Values"] section of the config file (or a batch of booleans to control the same behaviour).

I'll give it a look.
I need

the forgeversion
the minecraft version
the worldseed.

I just tested the 1.16.4 version in 1.16.4 and 1.16.3 and get the line.
["Regrowth Mobs 6464"]
#RegrowthMobs String 6464
defaultRegrowthMobsActual = "minecraft:cow,both,240.0;minecraft:horse,eat,360.0;minecraft:donkey,eat,360.0;minecraft:sheep,eat,240.0;minecraft:pig,grow,800.0;minecraft:bee,grow,1000.0;minecraft:chicken,grow,600.0;**minecraft:villager,crwplvt,**5.0;minecraft:creeper,tall,60.0;minecraft:zombie,stumble,180.0;minecraft:skeleton,mushroom,180.0"

I'll give it a look.
I need

the forgeversion
the minecraft version
the worldseed.

I just tested the 1.16.4 version in 1.16.4 and 1.16.3 and get the line.
["Regrowth Mobs 6464"]
#RegrowthMobs String 6464
defaultRegrowthMobsActual = "minecraft:cow,both,240.0;minecraft:horse,eat,360.0;minecraft:donkey,eat,360.0;minecraft:sheep,eat,240.0;minecraft:pig,grow,800.0;minecraft:bee,grow,1000.0;minecraft:chicken,grow,600.0;**minecraft:villager,crwplvt,**5.0;minecraft:creeper,tall,60.0;minecraft:zombie,stumble,180.0;minecraft:skeleton,mushroom,180.0"

Sorry, not sure how I missed that... I searched maybe five times, but I see it there now...
You might want to consider doing the villager flags separately though.

Sorry, not sure how I missed that... I searched maybe five times, but I see it there now...
You might want to consider doing the villager flags separately though.

I think I could move them to the start of the default file.  They were originally at the end of the default file and got buried as I added more options.

I think I could move them to the start of the default file.  They were originally at the end of the default file and got buried as I added more options.


Automated cherry pick of #2675: Generate ssh-config for all Nodes

Cherry pick of #2675 on release-1.3.
#2675: Generate ssh-config for all Nodes
For details on the cherry pick process, see the cherry pick requests page.

Backporting it as it's required to run IPv6 tests correctly.

/test-e2e
/test-ipv6-only-e2e
/test-ipv6-e2e
/test-windows-e2e
/skip-networkpolicy
/skip-conformance

Codecov Report

Merging #2710 (ea45931) into release-1.3 (b8a6983) will decrease coverage by 19.67%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##           release-1.3    #2710       +/-   ##
================================================
- Coverage        60.68%   41.01%   -19.68%
================================================
  Files              285      158      -127
  Lines            23020    19259     -3761
================================================
- Hits             13970     7899     -6071
- Misses            7551    10612     +3061
+ Partials          1499      748      -751

Flag
Coverage Δ

kind-e2e-tests
?

unit-tests
41.01% <ø> (ø)

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

Impacted Files
Coverage Δ

pkg/ovs/openflow/default.go
0.00% <0.00%> (-100.00%)
:arrow_down:

pkg/util/runtime/runtime.go
0.00% <0.00%> (-100.00%)
:arrow_down:

pkg/agent/cniserver/pod_configuration_linux.go
0.00% <0.00%> (-100.00%)
:arrow_down:

pkg/ovs/openflow/logs.go
9.52% <0.00%> (-90.48%)
:arrow_down:

pkg/apis/controlplane/register.go
0.00% <0.00%> (-90.00%)
:arrow_down:

pkg/agent/nodeportlocal/k8s/annotations.go
0.00% <0.00%> (-83.88%)
:arrow_down:

pkg/agent/agent_linux.go
0.00% <0.00%> (-80.00%)
:arrow_down:

pkg/agent/client.go
0.00% <0.00%> (-77.42%)
:arrow_down:

pkg/ovs/ovsconfig/ovs_client_linux.go
0.00% <0.00%> (-76.93%)
:arrow_down:

pkg/flowaggregator/certificate.go
0.00% <0.00%> (-76.58%)
:arrow_down:

... and 231 more

The change works as expected as wireguard module was detected correctly.
The ipv6 test failed because of other issues:

jenkins-ipv6-only-e2e

=== RUN   TestWireGuard/testServiceConnectivity
    wireguard_test.go:149:
        	Error Trace:	wireguard_test.go:149
        	            				wireguard_test.go:73
        	Error:      	Received unexpected error:
        	            	nc stdout: <>, stderr: <>, err: <command terminated with exit code 1>
        	Test:       	TestWireGuard/testServiceConnectivity
        	Messages:   	Pod hostnetwork-pod should be able to connect the service's NodePort <IP_ADDRESS>:%!s(int32=31676), but was not able to connect

This was because the test used IPv6 address <IP_ADDRESS>. I have opened https://github.com/antrea-io/antrea/pull/2712 to fix it.

jenkins-ipv6-ds-e2e failure

--- FAIL: TestAntreaPolicy/TestGroupNoK8sNP/Case=ACNPFQDNPolicy (11.24s)

I don't know the root cause yet but it cannot be related to this PR. @GraysonWu could you help take a look?
Anyway, I'm merging this as the change itself is correct.


Allow release to be set from an Environment variable

Allow release value to be set from SENTRY_RELEASE variable

Subscribing to get notified when this gets merged :)

@marandaneto Hey, I see that this one is merged, but I don't see a new release in pub dev. Are you gonna release it any time soon?


[iOS] Update to v12.2.0

This PR includes the following updates:

[x] CoreKit v12.2.0
[x] LoginKit v12.2.0
[x] ShareKit v12.2.0
[x] GameServicesKit v12.2.0
[x] AudienceNetwork v6.9.0

Also, this PR includes a workaround to support Xcframeworks with Facebook NuGets packages.
This is an unblock update. This means that this is a PR has the new necessary API bits to make these versions work but other new API bits could be missing. This update will be revisited to add the missing API if any.

@rolfbjarne @mattleibow Could you please help me reviewing the .targets workaround for Xcframeworks? I'm just trying to include the NativeReference tag into the iOS app project. Suggestions are very welcome! Thanks in advance!

https://github.com/xamarin/FacebookComponents/pull/226/files#diff-a21ce510d85d785274223a904903458fce6c6470aee843dc552669866a8bd007R51-R62
https://github.com/xamarin/FacebookComponents/pull/226/files#diff-bbc202b4267ecee6cb0f2ea7966925a46f915ee2614aee7135981dd32bd11dd7R1


Horizontal padding between pages

Is it possible to setup this property?
Like this one https://stackoverflow.com/questions/20694679/horizontal-padding-between-uipageviewcontroller-child-view-controllers

We're using EMPageViewController as a replacement for UIPageViewController and that's not something that's supported. I'm working on moving the menu items into a standalone component, which means you could roll you own implementation of the page view controller that supports that.

I'm also wondering if it is possible to achieve such behaviour

Thanks for the library 👍

@crabman448 It's not possible with the current version, but as soon as version 2.0 (#243) is done you should be able to use any custom type of page view controller 🙂

Version 2.0 is now released and makes it possible to use the PagingMenuView as a standalone component. This should allow you to use it with any page view controller and not just EMPageViewController. You need to implement the PagingMenuDelegate delegate methods and update your page view controller based on that. When user scrolls in your page view controller (or table view for that matter), you need to call the following methods on the PagingMenuView to update it:
/// Call this method when the parent view controller viewDidAppear method is called.
func viewAppeared()
/// Call this method when the parent view controller viewWillTransitionToSize method is called.
func transitionSize()
/// Call this method when the user scrolls in your page view controller.
func contentScrolled(progress: CGFloat)
/// Call this method when the user has finished scrolling.
func contentFinishedScrolling()

Let me know if you have any issues with getting this working. I will look into setting up an example project for this in the future.


Fix test inconsistency in group utils

Simplify logic of tests in NextDecimal_Tests to only test what is supposed to be tested.
Should fix #2621

Huh. I think I'm mixing two branches. Oh well... :)


Running Playground Chapters from MetalKit in MacOS

Marius, I've very much enjoyed your MetalKit sequence and learned much from it, so thank you.
From the Chapter 8 code accompanying the blogs onwards where you use playgrounds rather than projects I find that the path search in Metal.swift using guard let path = never manages to find the Shaders.metal file inside Resources, so the code won't build. Replacing the whole line with an absolute path fixes it, but I am not sure whether this is my setup or something that has changed in Swift 5.3, XCode 12.0 or somewhere else both of which I am using.
All the fixes for this error on SO seem to relate to XCode projects rather than playgrounds, and I haven't found any suggestions about how to fix the problem directly in the playground files and avoid introducing an absolute path.
Thanks.

The reason to add the .metal extension to the file is so that Xcode can recognize the file is a Metal file, and display the file with syntax highlighting. Nothing in the process of running the file requires the extension. An alternative way to mark this as a Metal file is to set the type to Metal Shader Source in the File Inspector.
Bundle.main.path(forResource:, ofType:) appears to be broken. It will not find a file of type "metal" it will find a file of type "meta" or "mmmmm" or no type. It appears to do something wrong with .metal files.
So a work around for this issue is to manually set the type of Shaders.metal to Metal Shader Source, remove the .metal extension, and change the type to nil in Bundle.main.path(forResource:, ofType:).

In Xcode 14, device.makeDefaultLibrary() can function normally


[BUG] RE4 Remake Crashing at startup

This plugin seems to crash my game while initializing. It doesn't even reach the main menu unfortunately. I've been able to play the game perfectly fine until I applied this mod. Now I cannot launch the game at all and I'm getting constant crashes. I've posted the log as well as the dump file stored in a zip below. Hopefully this info will help fix any issues :)
re2_framework_log.txt
reframework_crash.zip

You have an overlay that is interfering with normal operation of the mod. Something like ReShade, Discord overlay (not common), Razer stuff, ASUS tools, Overwolf, etc.
From the crash log, it looks like Rivatuner is the issue here.

You were right, that is very strange. It worked fine with RivaTuner before I installed this mod... oh well, I've disabled it and it seems to work fine now. Thank you! Since RivaTuner is a very popular software for monitoring component performance and temps, maybe this should be mentioned on the NexusMods page as well as in this repo's readme to prevent others from experiencing similar issues.


Add usability interview callout

@kuanluo, @jess-edwards, @swatikumar16, PTAL.

This change is

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/e873ff05c2e962730594a91fc194059368fc44fc/

Amazing! Looks great, @jseldess. Thank you. One idea is to perhaps to add a little icon ( 📢  or 🗣 ) at the front?

Added an emoji, @kuanluo. Will merge once this is green.

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/c055b85d5c6cc0d4dc598707688fa10a5404dab1/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/c055b85d5c6cc0d4dc598707688fa10a5404dab1/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/c055b85d5c6cc0d4dc598707688fa10a5404dab1/

Awesome! Thank you very much, @jseldess !


The PV, PVC and DV of the virtual machine are backed up in the velero restic mode, and problems occur during the restore

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

/kind bug

What happened:

When I restore the virtual machine with velero, I find that the virtual machine cannot be started. The PVC status is as follows:

 Normal   Provisioning          86m (x44 over 3h39m)  rook-ceph.rbd.csi.ceph.com_csi-rbdplugin-provisioner-786866b564-r5jm8_fd7a9b7e-c7cd-449f-b1a6-1436c8f19d1f  External provisioner is provisioning volume for claim "vm/test-pvc-dvbrglpn"   Warning  ProvisioningFailed    63m (x14 over 82m)    rook-ceph.rbd.csi.ceph.com_csi-rbdplugin-provisioner-786866b564-r5jm8_c05622ec-0de5-4c69-88c9-8c55cd0d3ffe  failed to provision volume with StorageClass "rook-ceph-block": error getting handle for DataSource Type VolumeSnapshot by Name cdi-tmp-513bb2a9-34b0-4f5e-8d89-761998a25d1a: error getting snapshot cdi-tmp-513bb2a9-34b0-4f5e-8d89-761998a25d1a from api server: volumesnapshots.snapshot.storage.k8s.io "cdi-tmp-513bb2a9-34b0-4f5e-8d89-761998a25d1a" not found   Normal   Provisioning          3m24s (x30 over 82m)  rook-ceph.rbd.csi.ceph.com_csi-rbdplugin-provisioner-786866b564-r5jm8_c05622ec-0de5-4c69-88c9-8c55cd0d3ffe  External provisioner is provisioning volume for claim "vm/test-pvc-dvbrglpn"   Normal   ExternalProvisioning  64s (x2982 over 12h)  persistentvolume-controller                                                                                waiting for a volume to be created, either by external provisioner "rook-ceph.rbd.csi.ceph.com" or manually created by system administrator

The status of the virtual machine is as follows:
test-dvbrglpn         2d22h   WaitingForVolumeBinding   False
What you expected to happen:
The pvc is restored successfully, and the virtual machine starts normally
How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:
Environment:

CDI version (use kubectl get deployments cdi-deployment -o yaml):
Kubernetes version (use kubectl version):
Cloud provider or hardware configuration:
Install tools:
Others:

@UltimateJava , How you are taking backup of VM/VMI/DV through restic.
We could not do it. We are installing as below. Anything we are missing
velero install --provider aws --bucket velero --secret-file credentials-velero --backup-location-config region=us-east-1,s3ForcePathStyle="true",s3Url=http://<IP_ADDRESS>:9000 ^Cuse-node-agent  --plugins velero/velero-plugin-for-aws:v1.1.0,quay.io/kubevirt/kubevirt-velero-plugin:v0.6.1 --use-volume-snapshots=false -n velero --uploader-type restic

I have the same issue.
problem lies with the dataSource(dataSourceRef) field. When restoring the pvc, it will stuck in pending state because no dataSource exists
spec:
  accessModes:
  - ReadWriteOnce
  dataSource:
    apiGroup: cdi.kubevirt.io
    kind: VolumeImportSource
    name: volume-import-source-0262b8d8-a4e2-4131-9ae4-6a6747429cda
  dataSourceRef:
    apiGroup: cdi.kubevirt.io
    kind: VolumeImportSource
    name: volume-import-source-0262b8d8-a4e2-4131-9ae4-6a6747429cda
  resources:
    requests:
      storage: 10Gi

Events:
  Type    Reason                Age                   From                                                                                Message
  ----    ------                ----                  ----                                                                                -------
  Normal  Provisioning          2m26s                 rook-ceph.rbd.csi.ceph.com_csi-rbdplugin-provisioner-7f6b88897c-llwfs_0506e147-80b3-4e94-9c65-ab7b080bc616  External provisioner is provisioning volume for claim "default/example-import-dv"
  Normal  Provisioning          2m26s                 external-provisioner                                                                                Assuming an external populator will provision the volume
  Normal  ExternalProvisioning  17s (x10 over 2m26s)  persistentvolume-controller                                                                                Waiting for a volume to be created either by the external provisioner 'rook-ceph.rbd.csi.ceph.com' or manually by the system administrator. If volume creation is delayed, please verify that the provisioner is running and correctly registered.


fix bugs in GetClientIP and MakeHandlers

fixes #55

/lgtm

just noticed we added a github action for unit tests and it doesn't work: https://github.com/BenTheElder/oci-proxy/runs/6117603602?check_suite_focus=true
will file another PR to remove this, pull-oci-proxy-test runs unit + integration, producing a coverage map.


Added service account, service account roles, and scope mappers

Added service account, service account roles, and scope mappers for plr_conf client

Merged @gperkinscgi's plr_conf-service-account branch into @filipflorek's AB#7403-transition-HEM-SWT-HIBC-hnsesb branch to avoid any destroy events merging this PR into main.


strange error for hello world container

Running the following docker image locally works:
docker run fabriziogianni7/bacalhau-starter:latest python main.py
hello world

But trying the same thing on bacalhau gets a strange error:
bacalhau docker run fabriziogianni7/bacalhau-starter:latest python main.py
bacalhau describe af963a30-9619-4ecb-9b8b-b7bf8dcd9db6

It shows that there is a compute error:
kai@xwing:~$ bacalhau describe a72e62d8-e6a5-4455-9e39-07ec8914b136
APIVersion: V1beta1
Metadata:
  ClientID: 4ebb7d0e8d891bfac32df0c703b352b787efdca689bb6334edbed91adddeee14
  CreatedAt: "2023-01-10T11:05:36.272049378Z"
  ID: a72e62d8-e6a5-4455-9e39-07ec8914b136
Spec:
  Deal:
    Concurrency: 1
  Docker:
    Entrypoint:
    - python
    - main.py
    Image: fabriziogianni7/bacalhau-starter:latest
  Engine: Docker
  ExecutionPlan:
    ShardsTotal: 1
  Language:
    JobContext: {}
  Publisher: Estuary
  Resources:
    GPU: ""
  Sharding:
    BatchSize: 1
    GlobPatternBasePath: /inputs
  Timeout: 1800
  Verifier: Noop
  Wasm: {}
  outputs:
  - Name: outputs
    StorageSource: IPFS
    path: /outputs
Status:
  JobState:
    Nodes:
      QmVAb7r2pKWCuyLpYWoZr9syhhFnTWeFaByHdb8PkkhLQG:
        Shards:
          "0":
            NodeId: QmVAb7r2pKWCuyLpYWoZr9syhhFnTWeFaByHdb8PkkhLQG
            PublishedResults: {}
            State: Cancelled
            VerificationResult: {}
      QmXaXu9N5GNetatsvwnTfQqNtSeKAD6uCmarbh3LMRYAcF:
        Shards:
          "0":
            NodeId: QmXaXu9N5GNetatsvwnTfQqNtSeKAD6uCmarbh3LMRYAcF
            PublishedResults: {}
            State: Cancelled
            VerificationResult: {}
      QmYgxZiySj3MRkwLSL4X2MF5F9f2PMhAE3LV49XkfNL1o3:
        Shards:
          "0":
            NodeId: QmYgxZiySj3MRkwLSL4X2MF5F9f2PMhAE3LV49XkfNL1o3
            PublishedResults: {}
            State: Error
            Status: Received ActionComputeError from node QmYgxZiySj3MRkwLSL4X2MF5F9f2PMhAE3LV49XkfNL1o3
              that has not bid on this shard
            VerificationResult: {}
      QmdZQ7ZbhnvWY1J12XYKGHApJ6aufKyLNSvf8jZBrBaAVL:
        Shards:
          "0":
            NodeId: QmdZQ7ZbhnvWY1J12XYKGHApJ6aufKyLNSvf8jZBrBaAVL
            PublishedResults: {}
            State: Cancelled
            VerificationResult: {}

why is this container erroring when it's running fine locally?

OK - I think I've worked out what this is - it's because there was an ARM image pushed under the same name and I think we are not re-pulling images that have the same name...
I've retagged the amd64 image as binocarlos/fabriziogianni7-bacalhau-starter:latest and this works fine:
bacalhau docker run binocarlos/fabriziogianni7-bacalhau-starter:latest python main.py

Possibly we need a flag to force the pulling of new images? closing this in favour of #1623


simp_le claims failed verification, but still generates certificates

Since sim_ple has been officially "abandoned", I can't really say how this fits.
The container is functional and generates valid certificates, but when creating these, the following output is produced:
2017/07/10 09:08:16 Received event start for container fb4073151690
2017/07/10 09:08:31 Debounce minTimer fired
2017/07/10 09:08:31 Generated '/app/letsencrypt_service_data' from 6 containers
2017/07/10 09:08:31 Running '/app/update_certs'
Creating/renewal <domain1> certificates... (<domain1> <domain2>)
2017-07-10 09:08:32,365:INFO:simp_le:1213: Generating new account key
2017-07-10 09:08:35,089:WARNING:simp_le:1304: <domain1> was not successfully self-verified. CA is likely to fail as well!
2017-07-10 09:08:35,469:WARNING:simp_le:1304: <domain2> was not successfully self-verified. CA is likely to fail as well!
2017-07-10 09:08:35,873:INFO:simp_le:1314: Generating new certificate private key
2017-07-10 09:08:36,931:INFO:simp_le:393: Saving account_key.json
2017-07-10 09:08:36,932:INFO:simp_le:393: Saving key.pem
2017-07-10 09:08:36,932:INFO:simp_le:393: Saving chain.pem
2017-07-10 09:08:36,932:INFO:simp_le:393: Saving fullchain.pem
2017-07-10 09:08:36,932:INFO:simp_le:393: Saving cert.pem

As you can see, the tool warns that verification has failed, but then continues to generate the certificates. Is this expected behaviour? I have previously switched to "getssl", since it's still being developed, but liked the composition of docker-proxy, docker-gen and this helper container (as it's being referenced in a lot of tutorials).

simp_le have a fork that is still actively maintained, this project switched to it a few months ago.
As for the failed self-verification, I noticed it too but haven't been able to find the reason yet.

Thanks for letting me know, maybe someone can shed some light on the "failed verification" messages :)

One thing I'm sure, It is not happening on every host where I deployed the docker nginx-proxy stack and/or on every proxyed containers. Some of them won't self verify, others are ok.

Self verification in simp_le is based on certbot / acme simple_verify, and self verification is deemed unreliable by cerbot devs themselves (as in there is a lot of way to have self verification fail but LE challenge succeed anyway).
So I guess one should not be too concerned if self verification fails as long as certificates get successfully generated.

Self verification have been removed from simp_le due to its lack of reliability, so closing this issue.


Problem with Collection::load function

Versions

scout-elastic-driver: 3.12.0
laravel/framwork: 5.8.27
php: 7.3
elasticsearch: 6.5.4

Description

I struggle to understand why even if searching works the following code does not seem to have any result.
Works and gives correct results:
$result = Product::search($keywords)->get();
Does not work:
$result = Product::search($keywords)->with('getUserPricesBasedOnRole')->get();
What I tried

Change version to php 7.1,7.2
Upgrading and downgrating the version of the package

Check the issue here
https://staging.anelixi.com.gr/product/search/toy
The "toy" is the search query
Steps to reproduce
To reproduce it is very easy.

Create 2 models
Create any kind of relation between them
For one these 2 models create an index, index-configurator
Import any data with php artisan scout:import "Your model"
You will see that any try of getting relation after search does not work

What I have done so far

08-07 @iget-esoares
Changing to
$products = Product::with('getUserPricesBasedOnRole')->search($keywords)->get();
http://prntscr.com/oc7ita

08-07 @iget-esoares works correctly
http://prntscr.com/oc8j1z
Product::with('getUserPricesBasedOnRole')->first();
http://prntscr.com/oc8jtz

08-07 @iget-esoares  re-install all composer packages
composer install --prefer-source
nothing again ! -> no problem with versions or anything

IMPORTANT @iget-esoares
I tried this
Product::search($keywords)->first()->load('getUserPricesBasedOnRole') It works!
BUT
Product::search($keywords)->get()->load('getUserPricesBasedOnRole') Does not work!

09-07
I tried
Product::search($keywords)->with('getUserPricesBasedOnRole')->paginate(0)
It works (but I want to use get(), not paginate())
http://prntscr.com/ocg52o

09-07
I found a way but it's not so delicate -> I really can't understand why get() is not working. I am messing this with xdebug to find any issues. It's really hard.
Product::search($keywords)->paginate()->load('getUserPricesBasedOnRole');

Please try putting the with method before the search, it works here.

Please try putting the with method before the search, it works here.

Thank you for answer back. I tried that and I enclose the response.
Call to undefined method Illuminate\Database\Eloquent\Builder::search()

Yeah, you're right, using with before search fails.
When you do:
$result = Product::search($keywords)->with('getUserPricesBasedOnRole')->get();

what errors do you get?
Can you show here your getUserPricesBasedOnRole relationship method?

Yeah, you're right, using with before search fails.
When you do:
$result = Product::search($keywords)->with('getUserPricesBasedOnRole')->get();

what errors do you get?
Can you show here your getUserPricesBasedOnRole relationship method? (By the name, it doesn't looks like a relationship method)

Here is my error:
http://prntscr.com/oc82ex
Here is the relation -> This code checks the user role and returns a related pricelist. Then it returns the related price for the specific product.
http://prntscr.com/oc82wg

I see no reason why it should not work.
Doing
$result = Product::with('getUserPricesBasedOnRole')->first();

works as expected?

I see no reason why it should not work.
Doing
$result = Product::with('getUserPricesBasedOnRole')->first();

works as expected?

Works as expected
http://prntscr.com/oc8j1z
Product::with('getUserPricesBasedOnRole')->first();
http://prntscr.com/oc8jtz

Hi @paligiannis,
I believe the problem is getUserPricesBasedOnRole relation. Internal Laravel mechanism expects \Illuminate\Database\Eloquent\Relations\HasOne to be returned from the relation method, but receives Illuminate\Database\Eloquent\Builder instead. It happens, because you use hasOne followed by where clause.
Please, check that if you create a relation:
public function price()
{
    return $this->hasOne(Price::class);
}

the following code is working:
$result = Product::search($keywords)->with('price')->get();

If so, try something like this:
$result = Product::search($keywords)->get()->load(['price' => function($query) {
    $query->where(//your custom logic here);
}]);

Hey there @babenkoivan, @iget-esoares  Thank you for the prompt reply
I just added the following relation to my Product.php model.
public function prices() {
   return $this->hasMany(Price::class);
}

and tried again
Product::search($keywords)->with('prices')->get()
but
Product::with('prices')->get();
works fine and returns correct results

Hey there @babenkoivan, @iget-esoares Thank you for the prompt reply
I just added the following relation to my Product.php model.
public function prices() {
   return $this->hasMany(Price::class);
}

and tried again
Product::search($keywords)->with('prices')->get()
but
Product::with('prices')->get();
works fine and returns correct results
Even if I tried to eager load them like so
Product::search($keywords)->get()->load('prices')
it does not work
The error is always the same.
http://prntscr.com/ocb6hz

@babenkoivan @iget-esoares Hey there. Do you have any news? Any other issues or discussions about that?

Hi @paligiannis,
I tried to reproduce the issue, but I didn't succeed. When you use get method you should receive an Eloquent\Collection, but you get a regular Support\Collection for unknown to me reason.
Can you try to debug you code and find the place where Support\Collection is created? Check the call stack, starting from the FilterBuilder::get method and going deeper inside the package.

Can you try to debug you code and find the place where Support\Collection is created? Check the call stack, starting from the FilterBuilder::get method and going deeper inside the package.

I really will lose my mind! http://prntscr.com/oftstj Even my IDE says that a Eloquent Collection should be returned.

@babenkoivan Line 100 of ElasticEngine.php calls $payloadCollection = collect();. This creates an Support\Collection class instead of an Eloquent collection.

Anyone can add this change to new PR?

I'm closing the issue, I upgraded to 4.0.1 and everything works well.

I found a solution:
$products = Product::search('keyword')->paginate(20);
$products->load('shop:id,title')->load('attributes:id,name');
return $products;


Mesh Collider Shape

Currently there isn't any method in Xenko for handling collisions with low-poly organic world geometry, like those prominently seen in many great NPR games. (The Legend of Zelda and Mario series, and most indie Unity games).
For example a map like Outset Island from Legend of Zelda: Wind Waker HD would be impossible to accurately map collision to its geometry using any of the the provided collider shapes as there isn't a way to adjust its vertices to conform to the target mesh.

You can generate a convex hull from a low-poly version of your geometry and use it as a collider shape.
https://doc.xenko.com/latest/en/manual/physics/collider-shapes.html

I wouldn't exactly call this usable...

In your case, a convex hull is obviously not the right shape. But as I said, you can use a lower poly version of your model as a collider shape.

Otherwise you could split this object in several convex-friendly models (i.e. the island on the left, the island on the right & the lamp?)


Fix target format

The file pch.cpp was removed in https://github.com/microsoft/vcpkg-tool/pull/961

Will merge as soon as build comes back


[Fullscreen Mode] Sorting based on Recently Added

Extension name
Full screen mode sorting
Feature Description
Fullscreen mode should allow sorting based on recently or newly added. it will give playnite a playstation like feel.
also the regular version should support this as well (cant find any actual option in desktop version)
Screenshots
No response

it can be done be done via filter panel. press RS on controller to open it in fullscreen mode

I think you got confused and posted this in the wrong place. This repository is for extensions I develop. The Playnite repository is over at https://github.com/JosefNemec/Playnite


Add flushWriter to mutil.WrapWriter()

This allows httptest.ResponseRecorder to be wrapped and still maintain
its Flusher compatibility

Yay, thanks!