Training deep metric learning model

Hi, Thanks for your great work!
When I run the command 'python3 bin/train.py -C mnist:rc2f2:ptripletN --do_test', I got the output log as follows:

I don't make any change of the original code. Could you give me some advice about it?
My mainly environment:
Python: 3.8.5 (anaconda)
PyTorch: 1.8.1+cu111
GPU: Nvidia RTX3090 (24GB)
Thanks

This problem is irrelevant to this repository. Check your python library installation (e.g. faiss). Or you can temporarily disable faiss on GPU by exporting FAISS_CPU=1.

Thanks!
I reduced the version of faiss-gpu to 1.7.0 and the problem was resolved.


Using Leaflet Draw and editing drawn items

From @MarkAPhillips on September 1, 2015 10:15
Hi - after all the changes to the control functionality what is the recommended approach now to be able to edit draw items added to a map via the Leaflet Draw control.
I have reviewed many of the issues and had this working in 0.8.5. I have now updated to 0.8.7 and everything is working as expected except being able to edit the drawn items.
Can I suggest the example for using the control is extended to include the following:

Include the use of options as defined as follows:

    angular.extend($scope, {
                center: {},
                paths: {},
                controls: { draw: { draw: {   position: "topright",marker: false,rectangle: false} } },
                defaults: {},
            });

Include an example where the drawn items are editable as most use cases require this and would make it simpler to review rather than searching through all the issues which have varying examples, usually incomplete or possibly out of date.

Thanks!
Copied from original issue: tombatossals/angular-leaflet-directive#909

From @sebastibe on September 10, 2015 8:20
I have the same issue, after updating to 0.8.8, I can't find how to enable edit controls again.

Looks like https://github.com/michaelguild13/Leaflet.draw is the most active fork currently.
The actual toolbar itself is nice but very hard to style. It would be better to probably have individual templates for each draw control, where the user is responsible for putting it on the map.

I am currently working on this internally and testing against a Prod app. I will PR it when it is ready.

#184

See https://github.com/angular-ui/ui-leaflet-draw


Initial expo config plugin support

Hey @mikehardy
Thanks for reaching out and reminding me to do this (https://github.com/nicko170/with-notifee/issues/1), now that the bulk of my large refactor has been pushed and approved by Apple, I can rest a bit!
Notifee was somewhat hard to install in an expo managed project, so ended up writing a config plugin to make this work - and due to lack of time, It was placed here as a separate project: https://github.com/nicko170/with-notifee
This PR adds an expo config plugin for @notifee/react-native which makes it trivial to install.
This somewhat breaks the package.json resolving - so this PR is still very much a WIP - but I am hoping you can help here, it is the first time I have done anything with lerna. I don't know what is causing the issue - but the module installs and I can transpile the src. Installing @expo/config-plugins into a new project works so 🤷   - send help? :-)
error An unexpected error occurred: "ENOENT: no such file or directory, lstat '/Users/nickp/Documents/GitHub/notifee/packages/react-native/node_modules/@expo/config-plugins/node_modules/chalk'".

I've added yarn run build:plugin to the prepare scripts also, which should see to the plugin being transpiled at release time.
The tests will pass now - but this repo is not using jest, so I have not created any commands for this, as I was not sure if you wanted jest included in packages/react-native or if it would be better to put in the base package, etc.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

I pulled the PR locally and did this:

removed the merge commits, performed a rebase commit so the commits were clean and reviewable one by one
did a quick forward-port of a .prettierrc thing I forgot while updating packages, to quiet warnings a bit
added a missing dependency used to check formats (java in this case) and some nohoist config so that yarn install clean would work with the new expo config plugins package and the google-java-format package

You may need to rm -fr node_modules packages/react-native/node_modules tests_react_native/node_modules locally for yarn to pass now, but it does pass cleanly? It should anyway, CI will tell us...
That was all prep
Then I just took the commit from the implementation of expo-config-plugins and:

added an eslint ignore for packages/**/plugin/build/** as we have for the same reason in react-native-firebase - the built plugin config is not eslint compliant, but it is a derived set of files, so we should not be concerned
ran validate:all:js --fix to fix easy things
fixed the two legit eslint faliures in the implementation (a shadowed variable via reuse in sub-scopes, and a missing return value)

That passed yarn validate:all at that point so should pass CI
I squashed the lint fix with the original implementation and pushed that all to the branch.
CI appears to be happy with that and the commit trail is pretty clean


AMBARI-24543. Client installs failing with Ambari-<IP_ADDRESS> on Ubuntu14

Client installs failing with Ambari-<IP_ADDRESS> on Ubuntu14
STR

Install Ambari <IP_ADDRESS>
Use HDP-3.0 VDF / Setup local repo to register stack versions
Use Ambari wizard to deploy the cluster
Deploys should go through fine if all required configurations are updated, but fails in different client installs with the following error.

resource_management.core.exceptions.ExecutionFailed: Execution of 'apt-get update -qq -o Dir::Etc::sourcelist=sources.list.d/ambari-hdp-1.list -o Dir::Etc::sourceparts=- -o APT::Get::List-Cleanup=0' returned 100. E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
5. Retries fails with apt lock failures.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3749/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3775/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3781/
Test PASSed.


az ml model list fails with unexpected keyword argument 'enable_broker_on_windows'

Describe the bug
The commands az ml model list and az ml model download fail with the following error:
TypeError: __init__() got an unexpected keyword argument 'enable_broker_on_windows'

Other commands may fail too, but these are the ones I encountered.
Related command
az ml model list
az ml model download
Errors
The command failed with an unexpected error. Here is the traceback:
__init__() got an unexpected keyword argument 'enable_broker_on_windows'
Traceback (most recent call last):
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 664, in execute
    raise ex
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 731, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 701, in _run_job
    result = cmd_copy(params)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 334, in __call__
    return self.handler(*args, **kwargs)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 112, in handler
    client = self.client_factory(self.cli_ctx, command_args) if self.client_factory else None
  File "/opt/az/extensions/ml/azext_mlv2/generated/_client_factory.py", line 20, in cf_ml_cl
    return get_mgmt_service_client(cli_ctx, AzureMachineLearningWorkspaces, **kwargs)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/commands/client_factory.py", line 83, in get_mgmt_service_client
    client, _ = _get_mgmt_service_client(cli_ctx, client_type, subscription_id=subscription_id,
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/commands/client_factory.py", line 236, in _get_mgmt_service_client
    credential, subscription_id, _ = profile.get_login_credentials(
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/_profile.py", line 334, in get_login_credentials
    credential = self._create_credential(account, client_id=client_id)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/_profile.py", line 592, in _create_credential
    return identity.get_user_credential(username_or_sp_id)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/auth/identity.py", line 232, in get_user_credential
    return UserCredential(self.client_id, username, **self._msal_public_app_kwargs)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/auth/msal_authentication.py", line 45, in __init__
    super().__init__(client_id, **kwargs)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/msal/application.py", line 1676, in __init__
    super(PublicClientApplication, self).__init__(
TypeError: __init__() got an unexpected keyword argument 'enable_broker_on_windows'

Issue script & Debug output
cli.knack.cli: Command arguments: ['ml', 'model', 'list', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7ff10ce9ba60>, <function OutputProducer.on_global_arguments at 0x7ff10cc690d0>, <function CLIQuery.on_global_arguments at 0x7ff10cc8a790>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'ml': ['azext_mlv2']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name                  Load Time    Groups  Commands
cli.azure.cli.core: Total (0)                 0.000         0         0
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name                  Load Time    Groups  Commands  Directory
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'.
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'.
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'.
cli.azure.cli.core: ml                        1.390        21       150  /opt/az/extensions/ml
cli.azure.cli.core: Total (1)                 1.390        21       150
cli.azure.cli.core: Loaded 21 groups, 150 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command  : ml model list
cli.azure.cli.core: Command table: ml model list
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7ff10b78c5e0>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/azureuser/.azure/commands/2024-04-08.19-45-38.ml_model_list.8517.log'.
az_command_data_logger: command args: ml model list --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x7ff10b71f3a0>]
cli.knack.commands: Configured default 'rg-gen-ai' for arg resource_group_name
cli.knack.commands: Configured default 'proton-ml-workspace' for arg workspace_name
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x7ff10b73e3a0>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x7ff10b6d71f0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7ff10cc69160>, <function CLIQuery.handle_query_parameter at 0x7ff10cc8a820>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x7ff10b6d7160>]
az_command_data_logger: extension name: ml
az_command_data_logger: extension version: 2.25.0
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=AzureMachineLearningWorkspaces
cli.azure.cli.core.auth.persistence: build_persistence: location='/home/azureuser/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /home/azureuser/.azure/msal_http_cache.bin
cli.azure.cli.core.azclierror: Traceback (most recent call last):
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 664, in execute
    raise ex
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 731, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 701, in _run_job
    result = cmd_copy(params)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 334, in __call__
    return self.handler(*args, **kwargs)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 112, in handler
    client = self.client_factory(self.cli_ctx, command_args) if self.client_factory else None
  File "/opt/az/extensions/ml/azext_mlv2/generated/_client_factory.py", line 20, in cf_ml_cl
    return get_mgmt_service_client(cli_ctx, AzureMachineLearningWorkspaces, **kwargs)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/commands/client_factory.py", line 83, in get_mgmt_service_client
    client, _ = _get_mgmt_service_client(cli_ctx, client_type, subscription_id=subscription_id,
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/commands/client_factory.py", line 236, in _get_mgmt_service_client
    credential, subscription_id, _ = profile.get_login_credentials(
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/_profile.py", line 334, in get_login_credentials
    credential = self._create_credential(account, client_id=client_id)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/_profile.py", line 592, in _create_credential
    return identity.get_user_credential(username_or_sp_id)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/auth/identity.py", line 232, in get_user_credential
    return UserCredential(self.client_id, username, **self._msal_public_app_kwargs)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/cli/core/auth/msal_authentication.py", line 45, in __init__
    super().__init__(client_id, **kwargs)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/msal/application.py", line 1676, in __init__
    super(PublicClientApplication, self).__init__(
TypeError: __init__() got an unexpected keyword argument 'enable_broker_on_windows'

Expected behavior
I expect az ml model list to print the list of models registered to my ML workspace.
I expect az ml model download to download model artifacts for the specified model name and version.
Environment Summary
azure-cli                         2.59.0

core                              2.59.0
telemetry                          1.1.0

Extensions:
ml                                2.25.0

Dependencies:
msal                              1.22.0
azure-mgmt-resource             23.1.0b2

Python location '/anaconda/envs/azureml_py38/bin/python'
Extensions directory '/opt/az/extensions'

Python (Linux) 3.8.5 (default, Sep  4 2020, 07:30:14)
[GCC 7.3.0]

Additional context
This is on a managed compute instance within an Azure ML workspace. I updated the Azure CLI and the ML extension to 2.59.0 and 2.25.0 respectively, and subsequently encountered the error.

Thank you for opening this issue, we will look into it.

Please confirm if this resolves your issue.
No, uninstalling with sudo apt remove azure-cli --yes && sudo apt autoremove --yes and reinstalling with curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash as suggested does not resolve the issue.

Thanks @akshayrana30 that fixed it for me too.


Word wrap in cell

Hi,
How can i implement wrapping in long sentences. Line height is not a problem.

Hi! Check out the long text example in the examples/examples.js and the demo page for how it looks like. Basically you can set the overflow option to linebreak, like this:
var cols = [
    {title: "ID", key: "id"},
    {title: "Name", key: "first_name"},
    ...
];
var data = [{
    "id": 1,
    "first_name": "Russell",
    ...
}, {
    "id": 2,
    "first_name": "Laura",
    ....
}];

doc.autoTable(cols, data, {overflow: 'linebreak'});

I hope my answer solved your issue. If not, feel free to open the issue again.


Get rid of deprecation warning messages

There are 2 currently, introduced in Puppet version 4.9, when support for Hiera 5 was added.

[ ]  Use of 'hiera.yaml' version 4 is deprecated. It should be converted to version 5
[ ] Defining "data_provider": "hiera" in metadata.json is deprecated

Unfortunately, in order to solve this, I think required puppet version should be dumped to 4.9.

Updated title and descriptions, as I noticed that warning about data_provider is another issue.


Start a presentation notebook

Have an example to show that we can simulate concentrations inside several cellular compartments.

We will probably need several notebooks

Quick start/Overview (CellPop, sets, basic intervention, covid intervention, simulate  different types of trajectories)
Use cases / Benchmarks
Training and example on a small sample of the Replogle dataset (small sample of genes) + UMAP visualization of trajectories.
Databases and visualization of InteractionData. Also show that some network motifs can lead to cycles/differentiation.
Advanced: define your own equations (several cellular compartments, chromatine accessibility...), mutations
Advanced: implement communication between cells.
Advanced: Scaling (notebook on the cluster directly)

Regarding cell-cell communication:
Take inspiration from https://www.biorxiv.org/content/10.1101/2<IP_ADDRESS>2320v1.full.pdf
The CellPop object would contain some kind of adjacency matrix between individual cells, as well as their coordinates. Neighbouring cells would exchange information and influence each other's states.

@josephdviviano FYI

Check this https://www.nature.com/articles/s41586-022-05688-9


fallback-message not hidden correctly

I have been playing around with the fallback messages a little lately, I have copied the code over from the demo and it did not hide properly. I have read through the source code and found no code that takes care of that (except I did overlook something). I will add a fix for this today and open a PR

Does anybody know if I am right or not?

The div of class fallback-message is hidden via CSS. See for instance css/impress-demo.css: https://github.com/impress/impress.js/blob/64d66bf77feda50c6dcdf4d01bf5ef22a79e4df4/css/impress-demo.css#L156-L158
The impress-supported class is added to HTML's <body> element as part of the impress.js script: https://github.com/impress/impress.js/blob/64d66bf77feda50c6dcdf4d01bf5ef22a79e4df4/src/impress.js#L219-L220
@henrikingo, I would suggest to move this CSS snippet to css/impress-common.css instead. This is supported by the fact that this snippet is currently present in all of the CSS files in the examples directory.
@simplePCBuilding, would you mind to create a pull request following these suggestions?

Right, why don't we hide it in JS if it exists?

We basically do by adding the impress-supported CSS class via JS. Don't worry about the extra CSS code, IMO it is easier to maintain and more common to just use two classes (here: impress-not-supported and impress-supported) in JS and do everything else via CSS.

Opened a PR

Linking here to pull request #840 which aims to resolve what I suggested in https://github.com/impress/impress.js/issues/839#issuecomment-1351347696:

@henrikingo, I would suggest to move this CSS snippet to css/impress-common.css instead. This is supported by the fact that this snippet is currently present in all of the CSS files in the examples directory.


Dataverse low-code plug-ins ALM

Awesome functionality!
is there already a concept on how to implement the ALM for these plugins?

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

ID: 6dc051e7-945b-0af9-1304-d3c0531fbbff
Version Independent ID: 6dc051e7-945b-0af9-1304-d3c0531fbbff
Content: Use Dataverse low-code plug-ins - Power Apps
Content Source: powerapps-docs/maker/data-platform/low-code-plug-ins.md
Service: powerapps
Sub-service: dataverse-maker
GitHub Login: @Mattp123
Microsoft Alias: matp

Thanks for your comment, @kkazala. This issue has been assigned to the doc author for review.


Adding image dimensions (width and height) as header/meta attributes

Hey there,
Would you consider appending a header to the response of file requests that are common image extensions to indicate their dimensions?
For example, I was working on my gallery app, and I needed to know the dimensions of the image I was displaying to apply some logic.  However, it seems that to get to the dimensions information, I would need to download most of the file chunks and try to parse them.
Anyway, do let me know if I'm missing something very obvious, but otherwise, cheers!

In case it is of any help to the OP, I also had this requirement and solved it by extending the Pocketbase framework with hooks in Go (code below). But it would be nice to see this included as a standard feature also, it is a relatively common use case.
main.go
app.OnRecordBeforeCreateRequest("image_files").Add(func(e *core.RecordCreateEvent) error {
  _, fh, err := e.HttpContext.Request().FormFile("file")

  if err != nil {
    return nil
  }

  uf := e.UploadedFiles["file"]
  f := uf[0]

  im, err := GetImageMetadata(f, fh)

  if err != nil {
    app.Logger().Error("Image metadata error", err)
  }

  e.Record.Set("original_name", im.OriginalName)
  e.Record.Set("name", im.FileName)
  e.Record.Set("mime_type", im.MimeType)
  e.Record.Set("size", fh.Size)
  e.Record.Set("width", im.Width)
  e.Record.Set("height", im.Height)

  return nil
})

meta.go
package main

import (
  "errors"
  "image"
  _ "image/jpeg"
  _ "image/png"
  "mime"
  "mime/multipart"
  "path/filepath"

  "github.com/pocketbase/pocketbase/tools/filesystem"
)

type ImageMetadata struct {
  OriginalName string
  FileName     string
  MimeType     string
  Size         int64
  Width        int
  Height       int
}

func GetImageMetadata(f *filesystem.File, fh *multipart.FileHeader) (im ImageMetadata, err error) {
  if fh.Filename == "" {
    return im, errors.New("no file name in headers")
  }

  ext := filepath.Ext(fh.Filename)
  mimeType := mime.TypeByExtension(ext)

  im.OriginalName = fh.Filename
  im.Size = fh.Size
  im.MimeType = mimeType

  if f == nil {
    return im, errors.New("no file available")
  }

  im.FileName = f.Name

  if mimeType != "image/jpeg" && mimeType != "image/png" {
    return
  }

  r, err := f.Reader.Open()

  if err != nil {
    return im, err
  }

  defer r.Close()

  img, _, err := image.DecodeConfig(r)

  if err != nil {
    return im, err
  }

  im.Width = img.Width
  im.Height = img.Height

  return
}

This is related to the issue i raised here :
https://github.com/pocketbase/pocketbase/discussions/1171#discussioncomment-6097595
File-handling is currently one of the only pain-points in pocketbase for me
It does so well at stroring files, making them easily accessable, etc, but it feels like adding meta-data for the files would be really helpful.
  OriginalName :  string
  FileName    : string
  MimeType     string
  Size         int64
  Width        int
  Height       int

There is already subscriptions.
@gedw99 You can use js hooks : https://pocketbase.io/docs/js-event-hooks/

Why do you need to monitor file change?
you could just hook onto the update record command
On Thu, Nov 14, 2024 at 9:38 PM ged @.***> wrote:

@gedw99 https://github.com/gedw99 You can use js hooks :
https://pocketbase.io/docs/js-event-hooks/
I need to use http / sse., because this is a no code platform I am doing .
No js, dart, golang .
sse events for file system changes .dont see to exist ..
—
Reply to this email directly, view it on GitHub
https://github.com/pocketbase/pocketbase/issues/4480#issuecomment-2477460094,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJBB56KIPLUHRLHWUVZQDD2AUJ4NAVCNFSM6AAAAABEEFHJAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZXGQ3DAMBZGQ
.
You are receiving this because you commented.Message ID:
@.***>

--
Calum Knott
Calumk.com


./gradlew installDist BUILD FAILED

Hello,
I cannot install ORT into my system.
System info
Kotlin:       1.5.31
Groovy:       3.0.9
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          1.8.0_211 (Oracle Corporation 25.211-b12)
OS:           Windows 10 10.0 amd64
Gradle       7.4.2
node         v16.15.0
npm          8.5.5
yarn          1.22.18
java
OpenJDK   11.0.15 2022-04-19
OpenJDK Runtime Environment Temurin-11.0.15+10 (build 11.0.15+10)
OpenJDK 64-Bit Server VM Temurin-11.0.15+10 (build 11.0.15+10, mixed mode)
Steps to reproduce the problem
First clone the source code to my system : git clone --recurse-submodules https://github.com/oss-review-toolkit/ort.git
To build the command line interface run:
cd ort
./gradlew installDist

./gradlew installDist --info
Initialized native services in: C:\Users\jk87829\.gradle\native
Initialized jansi services in: C:\Users\jk87829\.gradle\native
The client will now receive all logging from the daemon (pid: 13460). The daemon log file: C:\Users\jk87829\.gradle\daemon\7.4.2\daemon-13460.out.log
Starting 3rd build in daemon [uptime: 24 mins 59.667 secs, performance: 97%, non-heap usage: 16% of 256 MiB]
Using 8 worker leases.
Now considering [C:\code-challenge\ort] as hierarchies to watch
Watching the file system is configured to be enabled if available
File system watching is active
Starting Build
Settings evaluated using settings file 'C:\code-challenge\ort\settings.gradle.kts'.
Using local directory build cache for the root build (location = C:\Users\jk87829\.gradle\caches\build-cache-1, removeUnusedEntriesAfter = 7 days).
Generation of dependency accessors for libs is not up-to-date because:
  Task has failed previously.
Not watching anything anymore
Watching 0 directory hierarchies to track changes
Watching 1 directory hierarchies to track changes

FAILURE: Build failed with an exception.

* What went wrong:
org.gradle.api.internal.catalog.GeneratedClassCompilationException: No Java compiler found, please ensure you are running Gradle with a JDK
> No Java compiler found, please ensure you are running Gradle with a JDK

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=e6d864e3b5bc05cc62041842b306383fc1fefcec359e70cebb1d470a6094ca82
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

Please help me

Please have a look at what Gradle tells you:

No Java compiler found, please ensure you are running Gradle with a JDK

So you need to ensure that Gradle is able to find your Java 11 installation, e.g. by pointing the JAVA_HOME environment variable to the respective directory, or by setting the org.gradle.java.home property.

Plugin [id: 'com.palantir.graal', version: '0.12.0'] was not found in any of the following sources:

This message might be misleading, the plugin is hosted at the "Gradle Central Plugin Repository".
Are you maybe behind a proxy? In any case, please check that https://plugins.gradle.org/m2/ is reachable from your machine / that you've configured Gradle to use a proxy.

yes it is reachable from my machine to this website https://plugins.gradle.org/m2/
so I want to setup add HTTP and HTTPS  proxy to \ort\gradle.properties
Am I right?

i don't have gradle.properties  :(
Directory: C:\Users\jk87829\.gradle

Mode                 LastWriteTime         Length Name

d-----        06-07-2022     08:51                .tmp
d-----        05-07-2022     18:58                caches
d-----        05-07-2022     18:58                daemon
d-----        04-07-2022     10:28                jdks
d-----        04-07-2022     15:04                kotlin-profile
d-----        05-07-2022     18:58                native
d-----        04-07-2022     10:24                notifications
d-----        04-07-2022     08:34                wrapper

i don't have gradle.properties :(

Well, you obviously have to create it. Please also take some time to read through the Gradle docs that I linked.

so I create manually this file gradle.properties and add systemProp.http.proxyHost=proxy.example.com

Looks like you just added example data / copied & pasted data from the example. Of course, you need to fill in the real data that is applicable to your environment.


Lurkers shouldn't de-cloak when hitting barricades, only marines

CM13 parity last i checked

https://github.com/user-attachments/assets/449894f8-a574-4a49-9713-bf1afa89f44b Will include the video here then


Cleaned up handlers

Tested and everything should be working correctly. We might be able to split the match.js further in the future, and possibility add a readme file for each handler. However, this will do for now :)

Hey, you. Yeah, you. You're amazing - thank you.


Have to enable runInProduction in my dev build

Hello, when using react-scan in the dev/debug version of our vite app, we have to set runInProduction to true for the scan to start. Is this expected?

Same happening for me as well.

@cosmith @andyluak yeah that's not intended. taking a look

Also I know this might not necessary be possible, but worth an ask :
I'd like to get the re-renders information and optimisations for one parent component. I think because that parent is in a BaseLayout and that BaseLayout has two providers wrapping it, it displays the re-renders on the entire tree even though I initiate react-scan in that parent component. Is there any workaround for this, because the console gets quite crowded ?


No luck trying on CentOS or Ubuntu

Hello,
I am trying to spawn a seed server to stream data, however, webtorrent-hybrid always suck at fetching torrent metadata and does not switch to the download screen no matter how long I waited.
Tested on both ubuntu and centOS. Tested with webtorrent and webtorrent-hybrid CLI
Here's a screenshot:

What would be the problem for this? on OSX everything works perfectly

I think you need to put quotes around the magnet link.


haddock fixes

Thanks for the PR but unfortunately the diagrams aren't hand typed but generated with a really gnarly parsec script. I'll merge this but guarantee it'll revert in some future version.


fix panic on invalid time

fixes the bug in issue #48 by using chrono::DateTime::and_hms_opt to validate whether the candidate schedule time exists in that tz. In the event that the candidate time is invalid, this code will deem the candidate to be a failed one (via the continue 'day_loop statement on line 236). I believe this is correct, but I didn't honestly spend a huge amount of time understanding the scheduling logic. This definitely fixes the #48 in terms of the potential panic (and adds a test for that), but it'd be good to review if it correctly handles the failure case in terms of scheduling (perhaps it should increment the candidate time to the next hour, or something).

This fix is included in #56, which is now merged. Thanks!


Error running mysql_example: "Incorrect datetime value: ' ' for function str_to_date

I am getting the following error while trying to run mysql example:

downloading Illinois-campaign-contributions.txt.zip (~60mb) ...
extracting Illinois-campaign-contributions.txt.zip
importing raw data from csv...
creating donors table...
creating indexes on donors table
creating recipients table...
creating contributions table
Traceback (most recent call last):

File "mysql_db_init.py", line 141, in
c.execute("INSERT INTO contributions "

File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 226, in execute
self.errorhandler(self, exc, value)

File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorvalue

_mysql_exceptions.OperationalError: (1411, "Incorrect datetime value: ' ' for function str_to_date")

Resolved by enabling the ALLOW_INVALID_DATES SQL mode.


Remove custom stack.yaml and allow tests

Now that LTS-7.1 is out we no longer need a custom stack.yaml. Also we can enable spock to be built in the test file.

Sweet, thank you @jturner!


fix(chips): remove background from unstyled chip

This seems like a regression from c82aca9f8decb9860501196abc7f5028c1187344. The basic chips aren't supposed to have a background color.

LGTM


Update with atiano81members.json

Adding your site
To add a new site to the webring, please supply the following information:

Name of your site
URL of your site
URL of your RSS feed (optional)

Example:
{
    "title": "Frank's awesome site",
    "url": "https://www.franks-awesome-site.org",
    "feed": null
}

I corrected that. Pull request accepted and merged. Thank you


can't download gvalid package by gomod

1. What version of Go and system type/arch are you using?
go 1.13
2. What version of GoFrame are you using?
gf 1.9.10
3. Can this issue be reproduced with the latest release?
yes
can't download gvalid package by gomod

@aviyu 看看 https://goframe.org/prepare/gomodule 章节


After creating a new iteration in http://prod-preview.openshift.io, a user can get caught in a screen without a cancel button

Steps to recreate - at http://prod-preview.openshift.io

Create a new iteration
The screen shown in the attached screenshot is opened
At this point, the user cannot create a new workitem as the large black "+" button is not operational
And, if the user tries to create a new workitem by pressing the small blue "+" iccon, an incomplete workitem creation form is displayed - this form is missing some elements - including a save button (see 2nd screenshot)

@ldimaggi - is this the same/similar to #1246? The empty state screen that is shown is incorrect and is going to be updated by UX. Consistency will be adjusted so that the empty state is the same for this, board view and linking.

also of note, the screen displayed is not an actionable screen - it should just be a message saying the create a work item. The grey background that encompasses the + and 'Create a Work Item' should not be present. That is a CSS collision from a Spaces style sheet.

The problem is also that the user is trapped in that screen.   ;-)
On Thu, Mar 23, 2017 at 12:55 PM, Adam Jolicoeur<EMAIL_ADDRESS>wrote:

also of note, the screen displayed is not an actionable screen - it should
just be a message saying the create a work item. The grey background that
encompasses the + and 'Create a Work Item' should not be present. That is a
CSS collision from a Spaces style sheet.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fabric8io/fabric8-planner/issues/1266#issuecomment-288786335,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAnOPb66nLuodQWQeXmSazJindRO8IMIks5roqP-gaJpZM4Mm9Q5
.

--
Len DiMaggio<EMAIL_ADDRESS>JBoss by Red Hat
314 Littleton Road
Westford, MA 01886  USA
tel:<PHONE_NUMBER>
cell:<PHONE_NUMBER>
http://www.redhat.com
http://community.jboss.org/people/ldimaggio

I don't think I'm following all the way - the user doesn't look trapped, as you can add work items. The empty state should go away if a filter is changed to show information, or a work item is added.
One thing that is wrong (but not related to your bug here) is that the Quick Add is still open when the Detail Panel is open :-)

Yes - but the user does not have a way to close the view of the iteration.
They are trapped in the iteration view unless they first open the Board
view, and then they can open the Backlog view.
On Thu, Mar 23, 2017 at 3:36 PM, Adam Jolicoeur<EMAIL_ADDRESS>wrote:

I don't think I'm following all the way - the user doesn't look trapped,
as you can add work items. The empty state should go away if a filter is
changed to show information, or a work item is added.
One thing that is wrong (but not related to your bug here) is that the
Quick Add is still open when the Detail Panel is open :-)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fabric8io/fabric8-planner/issues/1266#issuecomment-288836288,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAnOPX3NU0mRaWx3FROv6kL8BA-275CQks5rosmhgaJpZM4Mm9Q5
.

--
Len DiMaggio<EMAIL_ADDRESS>JBoss by Red Hat
314 Littleton Road
Westford, MA 01886  USA
tel:<PHONE_NUMBER>
cell:<PHONE_NUMBER>
http://www.redhat.com
http://community.jboss.org/people/ldimaggio

ah, ok. so it is more of a navigation issue with the left panel? the user needs to be able to go back to the backlog after entering an iteration (either current or future). I believe this is related to this item (https://github.com/fabric8io/fabric8-planner/issues/1272) then?

@nimishamukherjee In reading through these comments again, this is more of a workflow problem from the UX side than an implementation problem.
As mentioned in your PR for #1246, the large '+' should not be clickable, per PatternFly design specs.
@ldimaggi As for the Save button missing, the new Work Item is saved when a user clicks on the checkmark, under the Work Item title. That is not told to the user in a good way and should be revisited by UX before any additional changes are made.
I would not consider this to be a priority over the other items at the top of the Backlog at this time.

Closing as out of date - no longer an issue.


isValidInstance

@jonschlinkert should this be returning true instead of false if the instance is a Collection or View? Or maybe removed completely?

yes, you're right. did we unpublished this version earlier?

Yes, this was the issue in templates. There's another issue in base-data, but I'm not sure what it is.

Closing. I just saw the latest changes and verified in assemble tests.

k thx


possible core issue in service start order: c-icap + clamav

When system boots, c-icap starts before clamd, and could not open tcp socket:

Mon Sep 18 15:38:12 2017, main proc, clamd_connect: Can not connect to clamd server on <IP_ADDRESS>:3310!
Mon Sep 18 15:38:12 2017, main proc, clamd_init: Error while sending command to clamd server
Mon Sep 18 15:38:12 2017, main proc, Registry 'virus_scan::engines' does not exist!

This may be a glitch in the proverbial matrix... https://github.com/opnsense/core/blob/master/src/etc/rc.freebsd starts services in a more or less fixed random order

@kekek2 Where do you get this error? I can't reproduce it. I'm seeing c_icap starting before clamd but I dont see such errors.

I think it can depend on how the file system returns the file names from the disk ;/
https://github.com/opnsense/core/blob/master/src/etc/rc.freebsd#L68

/var/log/system.log:

Sep 15 12:19:12 vibro kernel: <118>Starting c_icap.
Sep 15 12:19:12 vibro kernel: <118>Starting clamav_clamd.

/var/log/c-icap/server.log:

Fri Sep 15 12:20:26 2017, main proc, clamd_connect: Can not connect to clamd server on <IP_ADDRESS>:3310!
Fri Sep 15 12:20:26 2017, main proc, clamd_init: Error while sending command to clamd server

time configctl clamav start

OK
configctl clamav start  0,07s user 0,06s system 0% cpu 1:27,73 total

But it retries and finally works without manual interaction, correct?

Only manual restart c_icap

Tue Sep 19 07:33:52 2017, main proc, clamd_connect: Can not connect to clamd server on <IP_ADDRESS>:3310!
Tue Sep 19 07:33:52 2017, main proc, clamd_init: Error while sending command to clamd server
Tue Sep 19 07:33:52 2017, main proc, Registry 'virus_scan::engines' does not exist!
Tue Sep 19 12:05:49 2017, 39401/1742841344, Registry 'virus_scan::engines' does not exist!
Tue Sep 19 12:05:49 2017, 39401/1742841344, Registry 'virus_scan::engines' does not exist!
Tue Sep 19 12:05:49 2017, 39401/1742840064, Registry 'virus_scan::engines' does not exist!
Tue Sep 19 12:05:49 2017, 39401/1742840064, Registry 'virus_scan::engines' does not exist!
Tue Sep 19 12:05:49 2017, 39401/1742840064, Antivirus engine is not available, allow 204

I dunno, maybe we need to delay a bit after c-icap start?

Why isn't there a numbering scheme like on linux with S03clamd where you can easily set a boot order? :/

well there is but it requires the full rc system of freebsd or better emulation to allow ordering

@mimugmail on current GNU/Linux this does not exist as well (1). What you can do is writing a dependency into the unit file which should also work with with rc.
(1) look for "After" in systemd service files

Same issue here.

Is there a way to 're-register' the clamav module without restarting c-icap?
(Even better would be that c-icap would do it automatically...)

you can also cycle c-icap the same way?

My workaround
diff --git a/www/c-icap/src/opnsense/scripts/OPNsense/CICAP/setup.sh b/www/c-icap/src/opnsense/scripts/OPNsense/CICAP/setup.sh
index 9e1e741..e84a7d5 100755
--- a/www/c-icap/src/opnsense/scripts/OPNsense/CICAP/setup.sh
+++ b/www/c-icap/src/opnsense/scripts/OPNsense/CICAP/setup.sh
@@ -7,3 +7,52 @@ chmod 750 /var/run/c-icap
mkdir -p /var/log/c-icap
chown -R c_icap:c_icap /var/log/c-icap
chmod 750 /var/log/c-icap
+
+# check which services to enable
+if [ -f /etc/rc.conf ]; then

. /etc/rc.conf
+fi
+if [ -f /etc/rc.conf.local ]; then
. /etc/rc.conf.local
+fi
+for RC_CONF in $(find /etc/rc.conf.d -type f); do
. ${RC_CONF}
+done

+rc_enabled()
+{

rc_filename=${1}
name=${2}

check if service has a name

if [ -z "${name}" ]; then

  echo "Error: no name set in ${rc_filename}"

  return 1

fi

check if service has a variable

eval "$(grep "^rcvar[[:blank:]]*=" ${rc_filename})"
if [ -z "${rcvar}" ]; then

  # FreeBSD does this, leave here for debugging

  #echo "Error: no rcvar set in $rc_filename"

  return 1

fi

check if service is enabled

eval "enabled=$${rcvar}"
if [ "${enabled}" != "YES" ]; then

  return 1

fi

return 0
+}

+rc_filename="/usr/local/etc/rc.d/clamav-clamd"
+eval "$(grep "^name[[:blank:]]*=" ${rc_filename})"
+
+if ! rc_enabled ${rc_filename} ${name}; then

return 0
+fi

+/usr/local/opnsense/scripts/OPNsense/ClamAV/setup.sh
+${rc_filename} start

The formatting was off...

@fichtner

you can also cycle c-icap the same way?

...You mean me?^^
I now created a restart script for clamd which is called by monit when clamd crashes
#!/bin/sh

/usr/local/etc/rc.d/clamav-clamd start
sleep 5
/usr/local/etc/rc.d/c-icap restart

@Stephanowicz yes, does this work as expected?

yep, I tried it manually by stopping clamd....
Nevertheless I consider this jut as a workaround  - maybe the c-icap guys could implement something that tries to start the av-scanner when detecting that it can't be accessed and then reinits the Connection...

Ok so we know what to do, now we need to figure out a robust way to integrate it.
Alex’s suggestion isn’t bad but it should ideally be more portable / avoid code duplication.

Ok, meanwhile I stumbled over the same problem as in OT...
Regarding monit and its possibility to also test file contents I made another workaround:
In monit add a new test with condition
content = "Registry 'virus_scan::engines' does not exist" for 3 cycles
(not tested enough, yet - could be that one needs to lower this to 2 cycles or to remove it completely)
then add a new service test with file as type and /var/log/c-icap/server.log as path
As start option I used the script mentioned above - it does not check if clamd is already running - but this does not matter as the clamd startscript itself takes care of this. (maybe it would be even better to use the restart option...?)
One 'annoying' thing is, that You have to add a start/stop/restart parameter, though it's not needed...
One also needs to enter a stop script, otherwise You'll get a syntax error - I used /usr/local/etc/rc.d/c-icap stop - probably a dummy script would be the better solution...
As test enter the test You created before.
I copied the error text manually to the log file for testing  and received a

Sep 30 16:45:05 lifesense monit[18659]: 'c-icap' content match: Sat Sep 30 16:44:46 2017, 36646/3592524288, Registry 'virus_scan::engines' does not exist!

hope this helps!
Cheers,
Stephan

After having tested it now thoroughly I changed the test condition to
content = "(Registry 'virus_scan::engines' does not exist)|(clamd_connect: Can not connect to clamd server)" for 2 cycles
when stopping clamd the first condition doesn't show up, but the second one.
It also has been shown that c-icap doesn't restart properly in this condition - but monit will try it again the next cycle and then succeeds...
 :D

Update:
After a scheduled reboot this morning we had the same issue that c-icap was started before clamd.
Monit resolved it properly:
Oct 1 04:05:22 monit[11037]: 'lifesense.life' Monit 5.24.0 started

Oct 1 04:05:23 monit[11037]: 'c-icap' content match: Sun Oct 1 04:03:04 2017, main proc, clamd_connect: Can not connect to clamd server on <IP_ADDRESS>:3310! Sun Oct 1 04:03:04 2017, main proc, Registry 'virus_scan::engines' does not exist! Sun Oct 1 04:03:42 2017, 97721/253863424, Registry 'virus_scan::engines' does not exist! Sun Oct 1 04:03:42 2017, 97721/253863424, Registry 'virus_scan::engines' does not exist! Sun Oct 1 04:03:54 2017, 97721/253854464, Registry 'virus_scan::engines' does not exist! Sun Oct 1 04:03:54 2017, 97721/253854464, Registry 'virus_scan::engines' does not exist! ...

Oct 1 04:07:23 monit[11037]: 'c-icap' content match: Sun Oct 1 04:07:02 2017, 97721/253863424, Registry 'virus_scan::engines' does not exist! Sun Oct 1 04:07:02 2017, 97721/253854464, Registry 'virus_scan::engines' does not exist! Sun Oct 1 04:07:02 2017, 97721/253863424, Registry 'virus_scan::engines' does not exist!

Oct 1 04:07:23 monit[11037]: 'c-icap' start: '/usr/local/etc/c-icap/restart start'

Oct 1 04:09:39 monit[11037]: 'c-icap' content doesn't match

Cheers, Stephan

@mimugmail maybe patching this section may help:

The file is /usr/local/etc/rc.d/c-icap

No this won’t help as we don’t use the full RC system.

On 1. Oct 2017, at 13:08, Fabian Franz, BSc<EMAIL_ADDRESS>wrote:
@mimugmail maybe patching this section may help:
The file is /usr/local/etc/rc.d/c-icap
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@fichtner This is not even the full issue for your information. If the ICAP server is down, squid will make troubles too (it will say that it cannot reach the ICAP server and blocks the connection (it will mark the server as down).
The advantage here is that squid connects to the ICAP server as soon as it gets an HTTP request so this is a bit dangerous as a race condition too.


Winograd & Direct Asm convolution fixes for gfx90a (#809)

This PR adds winograd and direct asm workaround for gfx90a.
Summary of code changes

Fixed F(2,3) Fwd/Bwd Winograd for gfx90a (FP32 only) - relevant kernels added
Fixed 1x1 Fwd/Bwd direct & Fused asm for vgpr 64bit alignment
Disabled F(3,2) Fwd/Bwd Winograd for gfx90a
Disabled Multi-Pass Fwd/Bwd/WrW winograd for gfx90a
Disabled 3x3 Fwd/Bwd/WrW direct asm for gfx90a
Disabled 1x1 WrW direct asm for gfx90a

Local verification

gfx906, rocm 4.0
gfx90a, only kernel compilation

Merge conflicts

@Kirpich30000 We need your review.

@muralinr please confirm that this PR works on gfx90a

PR renamed. It contains not workarounds but fixes.

@Slimakanzer I've updated the PR description to match the reality. Please double-check if it is correct now.


when I input image the process will hang forever

What is the issue?
if I only input text ,the model works ok.
But when I added a image ,it will hang and there will be no output.
below is the consol；
llama_new_context_with_model: graph nodes  = 1030
llama_new_context_with_model: graph splits = 2
INFO [main] model loaded | tid="140026374909952" timestamp=1718185245
time=2024-06-12T09:40:45.713Z level=INFO source=server.go:567 msg="llama runner started in 2.26 seconds"
[GIN] 2024/06/12 - 09:40:46 | 200 |  3.363909682s |       <IP_ADDRESS> | POST     "/api/chat"
[GIN] 2024/06/12 - 09:40:46 | 200 |  204.205184ms |       <IP_ADDRESS> | POST     "/v1/chat/completions"
OS
Linux
GPU
Nvidia
CPU
No response
Ollama version
No response

the same

the same

Same here.
OS
Linux
GPU
Nvidia

Same here, using on Docker.

same here, no help


Add code for Burstsort

I am taking it

Please read the contribution guide.

I have send you a pull request for bubblesort in C.
#196


Swift Enhancements

[ ] Generate Swift protocols for C# interfaces and use instead of the impl objects
[x] Can we get type safe arrays to work?
[x] Maybe map specific array types to a generic DNArray Swift type and implement indexing

[x] Used another approach to implement iterating over .NET arrays in Swift

[ ] Can we map C# generics to swift generics?
[x] Make Swift properties and fields nicer
[x] Maybe we can nest types using nested type aliases

Closing this in favor of individual issues.


Update instruction to disable the net encryption and add a bat script to simplify it

This pull request includes updates to the README.md file and adds a new batch script to facilitate disabling encryption for server connections. The changes improve user instructions and provide additional methods for modifying configuration files.
Documentation improvements:

README.md: Added instructions for directly modifying the Engine.ini file using the terminal and introduced a new batch script (clientNetDisableEncryption.bat) to automate the process.

Codebase updates:

README.md: Updated Docker commands to use the correct docker compose syntax instead of docker-compose.
clientNetDisableEncryption.bat: Added a new batch script to automate the process of disabling encryption by modifying the Engine.ini file.

Thanks for contributing! Merged...


Using kingpin in test files

I've been having trouble using kingpin in test files.
For example:
package kingpintest

import (
        "testing"
        "fmt"
        "github.com/alecthomas/kingpin"
)

var (
        httpAddr = kingpin.Flag("http-addr", "HTTP address").String()
)

func TestDummy(t *testing.T) {
        fmt.Printf("%s\n", *httpAddr)
}
func TestMain(m *testing.M) {
        kingpin.Parse()
        os.Exit(m.Run())
}

The above works if I call go test.
However, it fails if I try to add the --http-addr flag or any of the go test flags with this.
For example: go test -v --http-addr localhost:1221 will fail with the error message:
serialize.test: error: unknown short flag '-t', try --help
Could you please add this as an example to either the examples folder or to the README?

I don't think this is possible, as the standard test package uses the standard flags package, and Kingpin is not compatible with it.

@alecthomas what would be the correct way to test kingpin-based apps? I am struggling to find an example in the docs. Any help would be appreciated, thanks!

@saidmasoud have a look at the kingpin tests themselves.

Hi @alecthomas ，I Encountered the same error
when I output log , it said that the error comes from kingpin.Parse() function,
$ go test
utils.test: error: unknown short flag '-t', try --help
exit status 1
FAIL    XXXX/utils    0.322s


Add value_barriers in constant time select functions [1.1.0]

The barriers prevent the compiler from narrowing down the
possible value range of the mask and ~mask in the select
statements, which avoids the recognition of the select
and turning it into a conditional load or branch.
back-port of #9217 to 1.1.0

Merged to 1.1.0 as 92a2f01. Thanks!


WIP: Deduplicate fields and outputs

Summary of the changes / Why this improves CrateDB
This is a early draft. Not sure if this is going to work out.
Rough outline:

Removes fields from AnalyzedRelation. There are only outputs

Changes Field to ScopedSymbol, which is only added when a relation
introduces a new scope. (E.g. in SELECT t1.x, t2.x FROM t AS t1, t AS
t2, it is necessary to distinguish between t1.x and t2.x, so AS t1
needs to introduce a scope)

Adds AliasSymbol to preserve the AS <xy> information

Subscript notation (obj['x']) always results in a function. The
path in ColumnIdent is more or less deprecated.
To still be able to utilize column-store for nested columns there will
be push-down rules to push down subscripts into the Collect operator
and the execution implementation will have to handle the functions in
a special way (Not sure how this will work with assignments (obj['x'] = 10))

??

Profit

Checklist

[x] User relevant changes are recorded in CHANGES.txt
[x] Touched code is covered by tests
[x] Documentation has been updated if necessary
[x] CLA is signed
[x] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in CHANGES.txt
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

@seut @kovrus Maybe you can have a look at this. It is far from finished but I want to see if this is going in the right direction.
A lot of analyzer tests are failing (expected), some integration tests are failing (some expected, due to not having adapted the subscript handling and some wrong splitPoints handling in the planner)
I previously had tried to do things that this PR contains in smaller steps, but it looks like doing all at once might be easier to pull off.
The main idea is to de-duplicate outputs and fields by splitting Field into a ScopedSymbol and into a AliasSymbol. Some relations no longer introduce a new scope (because it is not necessary). I think so far it will only be necessary for Union and Alias relations to have a separate scope.

@mfussenegger Looks really nice. The only issue to discuss I've encountered is that I think that semantically a view also always introduce a scope (https://github.com/crate/crate/pull/9684/commits/7177739ca440886988c22a27aef0447dc2f717d8#diff-44a5c7e377fd99d284e7a5ed622c2d06R52) and I was thinking of always creating that scope inside the analyzer/planner and optimize it later if possible. Maybe this is also your idea and I mis-read it ;) I think when refactoring the subscript handling, a scoped view is maybe even required.

looks nice! 👍
can't really provide an input on the scoped view.


Fixes the bug with credential blob storage.

Ping.

Merging this since we have already discussed this for 1_0.


dev-takeover auto-merge PRs

Follow up to #9.
hydros dev-takeover should try to auto-merge the PR potentially waiting for any checks to finish.

Here's how GitHub's CLI does it
https://github.com/cli/cli/blob/trunk/pkg/cmd/pr/merge/merge.go
Can we just set auto-merge to true? What if there are no status checks on the repository?

It looks like enabling auto-merge is a separate mutation using the GraphQLAPI
https://docs.github.com/en/graphql/reference/mutations#enablepullrequestautomerge

Also #16


[package_info_plus] Docs suggestion

In the usage there's this part:

Or in async mode:
PackageInfo.fromPlatform().then((PackageInfo packageInfo) {
  String appName = packageInfo.appName;
  String packageName = packageInfo.packageName;
  String version = packageInfo.version;
  String buildNumber = packageInfo.buildNumber;
});

Don't you guys think it would be better to just leave the await version in the sample for simplicity?

Well, I think this is more of your choice, but writing synchronous code makes it easier to read.

But the .then gets code longer, I don't think it's any simpler.

well, long doesn't necessary is a bad thing always as long as it helps for readability.
but I also agree with you, some devs might like it that way. you're welcome to send a PR and suggest both ways we have await now and you can also this .then if you like just below that as an alternative.

Actually it already shows both options. My suggestion was to remove the .then because it would make the docs smaller and in most cases we want to avoid it.

PR is welcome.

Sure.


Have you tested this against other optimization algorithms for standard benchmark datasets?

See e.g.

Eriksson, D.; Jankowiak, M. High-Dimensional Bayesian Optimization with Sparse Axis-Aligned Subspaces. arXiv:2103.00349 [cs, stat] 2021.

Hi, thanks for your question. We made comparisons against classic BO methods and non-sequential methods; the details can be found in our paper "Hyperparameter Optimization via Sequential Uniform Designs".


Fix : Bypass EDS to resolve 503s for cert rotation

Description
When we rotate a cert this causes envoy to create a new Cluster, which has the same name as the old one, but since it is a new cluster the transport socket changes. This will then cause the cluster to be put in a "warming" state until it gets a ClusterLoadAssignment from xDS which will supply the endpoints from k8.
The solution here is to manually update the cluster configuration and insert the endpoints instead of relying on EDS when using the endpoint resolver.
NOTE This doesn't change the default behavior which is to use EDS when you are using endpoint resolver. To bypass eds you must set a new environmental variable called AMBASSADOR_EDS_BY_PASS to true.
Related Issues
List related issues.
Testing
Tested this manually on k8 clusters to make sure behavior has stayed the same
Checklist

[x] I made sure to update CHANGELOG.md.
Remember, the CHANGELOG needs to mention:

Any new features
Any changes to our included version of Envoy
Any non-backward-compatible changes
Any deprecations

[ ] This is unlikely to impact how Ambassador performs at scale.
Remember, things that might have an impact at scale include:

Any significant changes in memory use that might require adjusting the memory limits
Any significant changes in CPU use that might require adjusting the CPU limits
Anything that might change how many replicas users should use
Changes that impact data-plane latency/scalability

[x] My change is adequately tested.
Remember when considering testing:

Your change needs to be specifically covered by tests.

Tests need to cover all the states where your change is relevant: for example, if you add a behavior that can be enabled or disabled, you'll need tests that cover the enabled case and tests that cover the disabled case. It's not sufficient just to test with the behavior enabled.

You also need to make sure that the entire area being changed has adequate test coverage.

If existing tests don't actually cover the entire area being changed, add tests.
This applies even for aspects of the area that you're not changing – check the test coverage, and improve it if needed!

We should lean on the bulk of code being covered by unit tests, but...
... an end-to-end test should cover the integration points

[ ] I updated DEVELOPING.md with any any special dev tricks I had to use to work on this code efficiently.

[ ] The changes in this PR have been reviewed for security concerns and adherence to security best practices.

Are we only merging this into 2.4?

@haq204 Yeah, for now, it's going to be going into the 2.4 release

@LanceEa confirmation that the eds by pass will be opt in

Any plans to make this the default behavior? Since the race between EDS and CDS still exists in ambex, right?


why el-tooltip style will be changed 'position:fixed'

Element UI version
2.0.9
OS/Browsers version
windows 7 / Chrome 62.0.3202.62 (64位)
Vue version
2.5.13
Steps
First mouse hover a el-tooltip and load the next page data by async
Second click prev page and load this data by async
Third mouse hover the same el-tooltip again
Result

Explore
the first picture css is :
position: absolute;     top: 84px;     left: 1040px;     transform-origin: left center 0px;     z-index: 2000;
the second pictue css is:
 transform-origin: left center 0px;     z-index: 2011;     position: fixed;     top: -12px;     left: 0px;
so,what should i do?thanks

i can't call my local interface in jsfiddle.so i needn't submit again :smile: :smile:


Add author to release notes

Thanks @AbelHeinsbroek - sorry for the omission!

Shouldn't @AbelHeinsbroek be added to AUTHORS.txt file?

of course - thanks @rjanke20 - somehow the git history is a bit weird here - maybe related to the multiple squash-merges. I will fix.


Comparison Operators: Wrong Scopes and Broken Ligatures

There are multiple problem with the state of how comparison operators are captured (refer to the syntax_test_operators_comparison.pb on my fork), both in term of wrong scopes and breaking ligatures support:

[x] Wrong Scope — they are captured as keyword.comparison instead of keyword.operator.comparison. Instead of the obsolete (and incomplete, opinionated) documentation on Scope Naming, see how the native syntaxes actually capture these operators in other languages, as well as good packages do. Other useful references:

ScopeNamingGuidelines repository by Sublime Text.
Sublime Syntax Dashboard — covers scopes for non-mainstream syntaxes too.
https://github.com/tushortz/scopes — 161 Programming language scopes.
metalanguage ScopeList

[x] Composite Operators Split Tokens — most of the bi-character operators are not being captured as a single token, but as two separate tokens, which prevents showing correct fonts ligatures.
This needs to be manually verified by visual inspection, since the syntax tester can't distinguish between two separate adjacent tokens with a same scope and a single-captured token. To check this, past the following code in a PB file in ST:
If x >= y ; Expected ligature: >=

If x => y ; Expected ligature: =>

If x <= y ; Expected ligature: <=

If x <> y ; Expected ligature: <>

You should notice the difference between the actual operator and the way it's represented in the comment next to, since the comment should use the font ligatures instead, because it's not splitting the tokens.
If you're not seeing the ligatures properly, ensure that are using a good code font that supports ligatures (try FiraCode, one of the best for coder), and that you have correctly enabled ligatures in ST settings (globally or for the PB syntax specifically). Ligatures setting might depend on the OS being used, by usually the default settings should work fine, supporting ligatures out of the box (it wasn't so in ST3 though). Depending on the specific language, and which ligatures it supports, you might have to tweak the ligature settings to restrict the applied groups (clig, liga and calt).
But right now, the problem is that ligatures are showing correctly in the comments but not in the operators themselves, due to split-capturing which doesn't preserve them as a single token.

[ ] Assignment = in Composite Operators — The = in composite operators is always captured as keyword.operator.assignment. When the capturing RegEx is fixed, and composite operators are captured in the correct way and with the right matching precedence, this should be automatically solved.

[ ] Assignment vs Comparison — The = operator is currently being always captured as keyword.operator.assignment, even in contexts where it's actually used for comparison.
This one is going to be trickier to solve, since it depends on context and not the capturing RegEx. We'll need to be able to tweak the syntax to become context-aware so that it can capture it as a keyword.operator.comparison in the right contexts.
But this is going to require strong tests coverage, to ensure we don't break the syntax. Also, since ST4 introduces better debugging info when inspecting scopes, we should substitute anonymous contexts with named contexts, so we can better trace the path leading to the various scoping result.
Unfortunately PureBasic doesn't use == as a comparison operator, like most modern languages do, instead it uses = for both assignment and comparison — a bad design choice, and one which we'll have to cope with, since it doesn't look like the new PB6 is fixing this.

I should be able to fix all the scoping problems described above, and ensure that composite operators are captured as a single token. The RegEx from my old Sublime PureBasic package should work fine, but I can also reuse various RegExs which I wrote for syntax highlighters, and I have all the required test files lying around in my hard disk. Just give me some time and I should come up with a PR that fixes these.
As for the "Assignment vs Comparison" problem with =, I will create a dedicated branch to fix it, since it's probably going to require a multi-step approach, and requires extensive testing to make sure that all the correct comparison contexts are covered, without breaking anything. I'll update you when I have set-up a dev branch for this.

Composite Operators Split Tokens

I am using JetBrains Mono and I just did not notice that ligatures were not applied. Good catch. That would be a nice improvement. While writing this comment I assume it is a simple matter of ordering pattern the right way in the syntax definition.

Assignment vs Comparison

That is something I thought about some time while I wrote the initial syntax definition. For now I do not see an advantage in making a difference here. Yes, it would be technically correct but what do we gain from that? I am not aware it improves the editing experience. I am hesitant because semantics go beyond what I consider the scope of a syntax definition.

Yes, it would be technically correct but what do we gain from that?

Plug-ins. They could operate on the syntax based on correct semantics, e.g. for refactoring. If a plug-in is able to distinguish where variables are assigned vs compared it could allow a number of features, like jumping to definitions, etc. (whereas ST doesn't allow control over which Symbols are indexed for Goto Symbol).
But there are various PB language constructs that are going to be hard (if not impossible) to capture with ST's syntaxes, this being just one example — although I believe this one should be fixable to some degree, by looking into expressions contexts.
I do think there's a clear limit on the accuracy level achievable for PureBasic, i.e. without creating an LSP language server. With RegEx-based syntaxes it just becomes to hard to track nested contexts, and some of PB's language constructs don't make the job easier either (e.g. macros).

whereas ST doesn't allow control over which Symbols are indexed for Goto Symbol)

Do you mean the "Goto Symbol…" feature of Sublime Text? With the current syntax definition this works for declarations of in example structures.

What I meant is that the scopes which allow "Goto Definition" are pre-defined/hard-coded in ST — functions, classes, TOC entries, and possibly one more scope (these are not even well documented) — and you can't decide which scopes should be assigned the "Goto Definition" functionality.
Unfortunately this forces many syntaxes to use incorrect scopes, just in order to benefit from "Goto Definition", so you end with packages scoping as functions or classes constructs which have nothing to do with them — so much for the "semantics scope guidelines" that the ST docs insist we should adhere to!
This is especially true for syntaxes which are not languages, e.g. markup syntaxes, where you end up scoping as functions and classes anything you'd like to be able to jump to its definition (e.g. substitution macros/constants, etc.).
Take a BNF grammar, for example (which is the mother notation of all syntaxes), you definitely want to be able to jump to the terminal symbols definitions. You'll have to scope them as either functions or classes, which they are not.
The real problem (bad semantics aside) is that there is a limited number of scopes that can be used for this purpose, since they are hard-coded. Since you'll want to **at least** distinguish between different syntax elements by using different scopes, you ultimately end up with limited choices of symbols that will allow "Goto Definition".
You'll notice that in ST forum one of the most recurrent newbie questions is how to enable Goto Definition for specific scopes; as mentioned, the documentation is vague about this, and doesn't provide a list of the scopes for which "Goto Definition" is enabled, instead they are mentioned in scattered places en passant — problematic aspects of the editor tend to be obscured in the docs.
Other editors (e.g. VSCode) allow users to control this via the API.

Comparison Operators Fixed
Ok, in PR #47 I've fixed the problems with bi-char comparison operators being scoped as individual tokens, and now ligatures are shown properly.
I've also amended the scope of logical word operators from keyword.logical to
keyword.operator.word, as suggested in the guidelines.
Some operators definitions didn't include the {{following_pointer}} variable in their definition, so following pointers were being captured as a multiply arithmetic operator; I've fixed that and added coverage tests for pointers following operators.
Assignment vs Comparison
Now that each operator group has its own named context, it should be easier to implement the distinction between assignment and comparison =, i.e. by excluding operators_assignment from inclusion inside evaluation expressions.
It should also render scope tracing easier, since the ST4 engine offers the new Context Backtrace feature when manually inspecting scopes — although right now I'm not able to see the named operator contexts with it.
I think the problem might be due to the presence of anonymous contexts being pushed/set in the path to operators, which (if I've understood correctly) might disable Context Backtrace functionality. The documentation doesn't really say much about this new feature:

While editing in Sublime Text, you can check what scopes have been applied to the text under the caret by pressing control+shift+p (Mac) or ctrl+alt+shift+p (Windows/Linux).

But from my own tests, I did notice that the feature seems to only work when no anonymous context are in the way. Anyhow, it would be nice to be able to have the syntax backtrace all the context that lead to a specific scoping, since it will simplify tracking contexts paths as the syntax grows in complexity.
Anyhow, I noticed that many of the current anonymous contexts push the same list of include: contexts, so they could be replaced by a named context that does that, which would reduce redundancy and render the syntax more readable.
I'll experiment with it locally and let you know.
Renaming Operators Test Files
As mentioned in #43, I'd like to rename all the operators tests so that they begin with syntax_test_operators_, which will group them together in the directory listing order, making it much easier to select them all at once when needing to edit their tests, instead of having to sift through the entire files list to find them.

[ ] If it's OK with you, after PR #47 is merged I'd like to proceed with their renaming.

Some operators definitions didn't include the {{following_pointer}} variable in their definition, so following pointers were being captured as a multiply arithmetic operator; I've fixed that and added coverage tests for pointers following operators.

Good catch.


Double Parameter Default value

Double parameter default value is here given priority over loading values from xml.

Hey Suraj, I think this is not correct. The default value should not be given priority. It should only be used in case when there is no value present in the config file. If the config file already contains a value (which is the last used value), that value should be used.

I've removed the part where default values was given priority over xml stored values. Now if no value is present in xml, MZMine will use default value as the prompt text for the parameters text fields.


be clear about hard limit on aks cluster name.

@haitch : Thanks for your contribution! The author, @sauryadas, has been notified to review your proposed change.

Thanks for the contribution, @haitch
We already have a separate discussion with the engineering teams around this to clear up any discrepancies between Azure CLI, Azure portal, and the resource provider. Once everything is aligned, we'll update the doc accordingly to state the specific naming restriction here.
CC: @jluk
For now, #please-close

our swagger PR just got merged: https://github.com/Azure/azure-rest-api-specs/pull/5949 .


Shared ZFS storage fails while set security.idmap.isolated=true

Required information

Distribution: Ubuntu
Distribution version: Ubuntu 16.04.3 LTS
The output of "lxc info" or if that fails:
driver: lxc
driver_version: 2.0.8
kernel: Linux
kernel_architecture: x86_64
kernel_version: 4.4.0-91-generic
server: lxd
server_pid: 2363
server_version: "2.16"
storage: zfs
storage_version: <IP_ADDRESS>-0ubuntu16

Issue description
I've created a custom storage backed with ZFS
I've set security.idmap.isolated=true but try to get a storage writable by one container and read only by others, to propagate data and sockets (via world readable in those containers).
My current situation is also that this storage volume does not mount automatically, and container, that depend on this storage, fails to start.
Firstoff: This seems to be in conflict with the solution of issue #3548
Second: Would it be possible to have one shared uid/gid between the provider container and a consumer container while have set security.idmap.isolated=true and ids not shared between consumers?
Steps to reproduce

Create at least two containers with security.idmap.isolated=true
Create a storage volume
Attach storage volume as disk device to containers

So current behavior is:
stgraber@castiana:~$ lxc launch ubuntu:16.04 c1 -c security.idmap.isolated=true
Creating c1
Starting c1

stgraber@castiana:~$ lxc launch ubuntu:16.04 c2 -c security.idmap.isolated=true
Creating c2
Starting c2

stgraber@castiana:~$ lxc storage volume create default shared
Storage volume shared created

stgraber@castiana:~$ lxc storage volume attach default shared c1 /data

stgraber@castiana:~$ lxc storage volume attach default shared c2 /data
error: Failed to setup device: Failed to initialize storage volume "shared" of type "custom" on storage pool "default": idmaps of container and storage volume are not identical.

That's indeed to avoid one of the containers seeing everything as owned by uid/gid -1.
There is a fairly new option of security.idmap.isolated that can be (ab)used to give two containers the same map while still keeping it different from all others.
stgraber@castiana:~$ lxc config get c1 volatile.idmap.base
1065536
stgraber@castiana:~$ lxc config set c1 security.idmap.base 1065536
stgraber@castiana:~$ lxc config set c2 security.idmap.base 1065536
stgraber@castiana:~$ lxc restart c2
stgraber@castiana:~$ lxc storage volume attach default shared c2 /data

This gets the map of the first container, makes it static for that first container, then configure the second to use the same map, restart the second container to remap it, at which point the storage volume can be attached.

In your case however it does sound like you do want the individual idmap ranges and just rely on world readable and executable paths for the others to access it.

One workaround is to properly attach the custom volume to the first container as shown above.
Then for the others use the old way of doing things by just bind-mounting the host path with:
lxc config device add c2 shared disk path=/data source=/var/lib/lxd/storage-pools/default/custom/shared

One option to make all of this a first class thing would be to add an attribute to the "disk" device type to specify that no remapping is expected. This would then let you bypass the normal remap check.
Not sure it's worth the extra complexity when the above syntax will effectively do the same and when there's shiftfs somewhere in the horizon which will let us avoid all those mapping issues in the future.

Ok, your bind mount in https://github.com/lxc/lxd/issues/3655#issuecomment-321931629 approach works.
Advantage: bindmounts can be set as read-only.
Disadvantage: the producer container has to autostart before all consumers. (but doable with boot.autostart.priority)
P.S.: Related Question: is it possible to create a profile that contains a variable, that is resolved later?
Like:
lxc profile device add shareprofile sharedevice disk path=/data source=/var/lib/lxd/storage-pools/default/custom/shared/{$containername}
to configure consumers solely via profiles?


added Exception handling for devices

closes https://github.com/DiamondLightSource/blueapi/issues/444
The main change in this PR is that make_all_devices returns tuple of (all_devices, exception_devices)
Instructions to reviewer on how to test:

Checkout branch device-resilience in dodal
In a common python virtual environment install both blueapi and dodal
pip install -e ../dodal[dev] pip install -e .[dev]
Test device does not fail when exception is occurred

Checks for reviewer

[ ] Achives requirement for  https://github.com/DiamondLightSource/blueapi/issues/444

I'm taking over this PR in @ZohebShaikh's absence


fix username format (#1596)

fix #1596

I'm sorry! I made a mistake.. #1567
This is what I wanted...

I didn't know the "Chat Display Name" option existed and added it to the code.
"You" was not intended by mckaywrigley
Please delete my code 😢
{message.role === "user" ? "You" : ""}

All fixed! My fault as the reviewer!


Release Candidate 9 - v3.0.rc9 - issue with sensor.xxxx_icloudv3_zone_name

the sensor is removing spaces from Zone name, see below

It’s always done that. The iCloud3 docs for the Configuration Screens and Parameters >  Sensor screen here describes the zone sensors as:
Zone Name Sensors - Zone name sensors provide different formats for displaying the zone name when the device is in a zone. The formatting rules are:
_zone_name - A reformatted zone entity name without spaces and apostrophes (the_shores → TheShores)
_zone_fname - The zone's friendly name
_zone - The HA zone entity

Even the main state of the entity ?, surely it contain a space ?

The zone can be displayed in several formats. The format is selected on the Configure Settings > Update Parameters Menu > Format Settings screen. One of them is the HA friendly name (preferred). What have you selected?

I'm 99% sure it used to contain a space.

Go to HA Device and Services > Areas and Zones > Zones and change the name of the zone to what you want it to be. Then select HA Zone Friendly Name in the iCloud3 parameters. Nothing has been done to the way the zone name is formatted in a long long time.

it is how I want it to be,

There are several Zone sensors that iCloud3 can create — zone_name and zone_fname are two of them. They are selected on the Configure Settings > Sensors screen. The zone_name removes spaces, _’s and a few other things that is described on the description  line. It is reformatted to make it easier to use in automations without a lot of reformatting, quote Mark checking, etc. it has been this way since v2. The zone_fname sensor does not do any reformatting. Maybe that it’s what you are thinking of.
Create the zone_fname sensor and us that and see if it meets your needs

how do I do that ?

ok, yes, it now displayed correctly, thanks, although I'm pretty sure it used to work correctly in early beta's, just not been to a zone with a space for a while

ok, now have another issue it not working correctly, got Home it not showing as home is the other sensor does.

ok, yes, it now displayed correctly, thanks, although I'm pretty sure it used to work correctly in early beta's, just not been to a zone with a space for a while

The inference in your response is that it's not working correctly - that is not the case.  In is working as intended/designed.  As noted, it has been this way since v2.  I've played with this setting in deciding which to use in my automations and can verify it has been there and has not changed since v2.

There were some Zone naming  issues early on but that was related to the value that should display in a device tracker entity field.

so why does it show correctly in the description on setting stage (with a space) in friendly name ????, IMO removing the space for the main state is just wrong.

See above Lloyds Bank has a space in it.

also using fname will I loose Away as it seems Home does not work ???, what happens if in not in a zone with  name.

Home and Away will be ok. If you are not in a zone, both zone_name and _fname are Away

Home and Away will be ok. If you are not in a zone, both zone_name and _fname are Away

hmm, Home not working, it just show the zone name, not Home, my Zone name is not Home, as have 2 homes

Home and Away will be ok. If you are not in a zone, both zone_name and _fname are Away

hmm, Home not working, it just show the zone name, not Home, my Zone name is not Home, as have 2 homes

@gcobb321 correct me if I'm wrong - you can have only one HOME zone.  User may have two houses but only one can be delineated as "home", yes?

Home and Away will be ok. If you are not in a zone, both zone_name and _fname are Away

hmm, Home not working, it just show the zone name, not Home, my Zone name is not Home, as have 2 homes

@gcobb321 correct me if I'm wrong - you can have only one HOME zone. User may have two houses but only one can be delineated as "home", yes?

correct, my main home is my home, but both zones name are the street name.

Yes, the Home zone is where HA Server lives. It's name (friendly name) can be changed on the Zone settings screen. I think it will only change the friendly name (have never tried it), not the zone.home  entity name. Otherwise, another house is just another zone.

zone_name

zone_fname

Thanks for the info. The HA zone names and data come from config/.storage/zone and config/.storage/core.config files and is provided by HA when iC3 starts.


support for Visual Studio Mac

I would guess there is a way to support NodeJS on Visual Studio for Mac?

Visual Studio Version: Visual Studio Enterprise for Mac v7.0 (Build 3146)

Thanks for the feedback. This is certainly something we're considering for the future, but for I would like to recommend Visual Studio Code as a great cross-platform alternative.
Are there any specific features you're missing in Visual Studio Code, that we should address?

@paulvanbrenk basically I am a fan of Visual Studio as an IDE and last night I started exploring Visual Studio Code. Visual Studio has quite awesome features like Profiling and IntelliSense and I see that IntelliSense is in VS Code too, so I am trying it and will give feedback, but basically I will already use Visual Studio for mac to develop for android, ios and mac so why not node too and when it comes for it why not even go language.
My point, there is no better IDE than VisualStudio hands down and I hope for a day when I can do all my development work on it.
Anyways I hope this feature will come to VisualStudio Mac soon.
Thanks

Ditto to @Rohithzr's point. I just downloaded VS for Mac, and wanted to try out the node tools, but realized it is not supported on Mac.

Thanks for the feedback.
@bowdenk7 taking notes?

Aw man I was stoked for VS until I saw this. I'd be pretty happy to see the mac version support it too.

VS Code is great for developing entirely in NodeJS but when including npm packages in a C# project either for scripting tools such as Grunt or Gulp or as components of a larger project, it would be great to have these features in the full version of Visual Studio.

I'm encountering performance issues with the Visual Studio Code debugger when working on memory consuming Node.js apps. I was hoping Visual Studio for Mac would solve that but was disappointed to see it's not supported.

@seryoni Can you open an issue on the VS Code Node Debugger repo, concerning the performance issues you're seeing?

Just quit out of my installation of VS on the Mac when I saw this.
Add node support and I'm in.

Damn, there is language about support for node all over the Microsoft pages touting VS Community, download the mac version and...no support.

Thanks for all the comments!

agreed @b800h and @fornowatlunch
I too uninstalled VS for Mac a long time ago, for the specific reason.
@paulvanbrenk after using VS Code for 6+ months, I can tell you its cons.

Slow when compared to Visual Studio and Sublime Text (a direct competitor)

Opening files

Showing Suggestions

When using more than one window

When using for a long time without closing/quitting

Less Featured

Lint support in not very good (ReactJS)

Intellisense doesnt work as greatly as it works on VS (visible difference in speed and usability)

lags in scrolling moderately small files

All in all I am tempted to go back to SublimeText, I can't at the moment as I am working on a project and it takes time to switch.

There is a UserVoice item which is getting much more traction with the VS 4 Mac team. So closing this, so we can combine the vote totals.
Vote here! >>  https://visualstudio.uservoice.com/forums/563332-visual-studio-for-mac

Votes on UserVoice been closed, can you please provide support for Node.js for VS on Mac. I love the light-weight features of best IDE in world meanwhile UI for Mac is also awesome.

are there any changes to node.js support in coming vs2019 for Mac?

@paladique I don't see any possibility.

@chuks  Yes. I spend a half hour to find where is Tools > Get Tools and Features....
VS studio doesn't support nodejs feature on MacOS platform

Here is an issue I submitted to them: https://developercommunity.visualstudio.com/content/problem/579425/using-node-with-nvm-missing-from-vs-path.html

Coming back in 2020 still hoping for Node.js support on Visual Studio for Mac. This thread is 3 years old and it's still not implemented.

Coming back in 2020 still hoping for Node.js support on Visual Studio for Mac. This thread is 3 years old and it's still not implemented.

I sympathize, but tbh in the last 2 years I've been doing a ton of JS development and VS Code is a great product.

Coming back in 2020 still hoping for Node.js support on Visual Studio for Mac. This thread is 3 years old and it's still not implemented.

I sympathize, but tbh in the last 2 years I've been doing a ton of JS development and VS Code is a great product.

I agree VS Code is quite good on JS Development. But the selling point of Visual Studio for Mac is well-supporting on Microsoft Framework,ie .net Core.

Hi,
If you are having troubles with Visual Studio on macOs not being able to find node or npm while using nvm try starting Visual Studio from terminal after ensuring node -v and npm -v both shows nvm-selected versions, e.g.:
➜  ~ /Applications/Visual\ Studio.app/Contents/MacOS/VisualStudio &
For the first time you may be prompted to add dev cert to keychain also:
➜  ~ dotnet dev-certs https

For me the command that worked actually was
/Applications/Visual\ Studio.app/Contents/MacOS/VisualStudio & dotnet dev-certs https

2022 and upvote


include access token in client requests, if defined

This allows h5web to work in a cross-site jupyterlab deployments (where backend and static pages are on different domains) and JupyterHub 4.1, which has stricter XSRF rules, and matches JupyterLab's own API requests made with ServerConnection.
Viewing hdf5 files results in a 403 error in these two scenarios without this patch.

I just encounter this yesterday and was about to look into it, thanks for the PR!


Add debian install instructions

Wow, I didn't know jattach got into Debian repo. Good!
Only in "bullseye" though, right? I think it's worth mention.
Also, isn't apt install preferred nowadays to apt-get install?

I'm usually using apt-get install maybe I'm just old :-). Sven does only provide packages for bullseye (stable), sid (unstable) and  bookworm (testing) the buster port is only released internally. I'll update the docs accordingly.

Thank you for the update!
Merged.


Automatic scrolling

The screen should scroll as the output is produced, just like command prompt does it.

This has been added in commit 3f4b3ca96e600c38eea5cd699227641733d08f7c.


Move identity into an Area in a library (using Razor Pages)

Adds support for a default UI for identity.

The default UI uses its own Area (Identity).
The default UI requires MVC and StaticFiles to be present on the request processing pipeline.
The default UI requires the user to provide a '_LoginPartial ' partial view in their application in a location that the view engine will find it. This is tipically /Pages/Shared or /Views/Shared
Current limitations:
The UI is self-contained and non-customizable (outside of things possible with Razor pages).
Customizing the User, role, etc. is not supported at this time.

This is not WIP anymore. It's up and running and working. I've addressed all the feedback.
/cc: @Eilon @HaoK @pranavkm

You should probably add some unit tests for AddIdentity().AddDefaultUI() and verify all the options are setup properly


Small formatting issue with lists in the msgpack contentview

Problem Description
0s in arrays in the msgpack content view are not formatted with a comma at the end

This display quirk is not replicated in Cyberchef, so the msgpack is valid.
Steps to reproduce the behavior:
Open mitmweb, and press 'Replace' in the contentview, and provide the following file:
debug_controller.txt
(sorry, I couldn't quite work out how to get the bytes to paste here and into Edit in the contentview)
System Information
Paste the output of "mitmproxy --version" here.
Mitmproxy: 9.0.1 binary
Python:    3.11.0
OpenSSL:   OpenSSL 3.0.7 1 Nov 2022
Platform:  Linux-5.14.21-150400.24.41-default-x86_64-with-glibc2.31

I am fully aware that I wrote the enhanced msgpack content view, so this is probably something I missed when I was testing it. More than happy to take a look when I get a chance, just noticed it today and thought I'd raise an issue before I forget.

I would like to work on this issue.

Are you sure it's actually the zeros and not the fact that they're repeated? Because:
https://github.com/mitmproxy/mitmproxy/blob/a7e50c793e9c6840d9f0fc162893e293477a358e/mitmproxy/contentviews/msgpack.py#L71-L72
@pradyotRanjan feel free to create a PR with a test and fix. @SapiensAnatis originally created that code, I'm sure he can help with any questions you have. Or did you want to submit a fix yourself?

Are you sure it's actually the zeros and not the fact that they're repeated? Because:
https://github.com/mitmproxy/mitmproxy/blob/a7e50c793e9c6840d9f0fc162893e293477a358e/mitmproxy/contentviews/msgpack.py#L71-L72

Oops! Well I can see what needs to be done now — should use enumerate and check the actual index. And add a test for this case of course.
I don’t mind if someone else does it. It will probably only take a short while to fix, so if nobody else has submitted a fix in a week or so I’ll have a look.


Weekly patch release v1.7.5

What does this PR do?

gh pr list -s merged -S 'merged:2022-08-31T22:30:00.000Z..2022-09-06T22:00:00.000Z' --json mergedAt,milestone,url,mergeCommit,title --jq 'sort_by(.mergedAt) | reverse | .[] | select((.milestone.title == "pl:1.7.x") or (.milestone.title == null) or (.milestone.title == "all:next")) | [.url, .mergeCommit.oid, .title] | join(" ")' --limit 100

https://github.com/Lightning-AI/lightning/pull/14540 e5395de9d3ae76e528f0a84856bb113d43094828 Bump actions/checkout from 2 to 3
https://github.com/Lightning-AI/lightning/pull/14541 dafa3e8d2eda210a21622083945c6685ba64dba0 Bump tj-actions/changed-files from 29.0.1 to 29.0.3
https://github.com/Lightning-AI/lightning/pull/14544 875db199710f77fdff006a022cbd4d769d62b289 Add path filters for azure PR jobs
https://github.com/Lightning-AI/lightning/pull/14489 ce702fd40e5301cdb27a17bc9c22aac1b8299a41 Squeeze tensor while logging
https://github.com/Lightning-AI/lightning/pull/14539 f3d4d83462fccf83d953f3a8f6bdf32ec8b7bcd9 Add path filters for some non-required jobs
https://github.com/Lightning-AI/lightning/pull/14326 23f0e20209fb01c075b71983c9b9d465465f2fbf Fixed `WandbLogger` `save_dir` is not set after creation (#12748)
https://github.com/Lightning-AI/lightning/pull/14317 ed0164a3d235526abe7d50f233b8bab2a07501fa Estimate stepping batches with max_steps if max_epochs is not set
https://github.com/Lightning-AI/lightning/pull/14513 ce0bde702a82db218c419cd582e688046b4364d6 Remove deprecated `test_tube` dependency
https://github.com/Lightning-AI/lightning/pull/14512 fed1d8dc6a091bd712d2709df43807ee3adb359e Pin protobuf

Author list:
gh pr list -s merged -S 'merged:2022-08-31T22:30:00.000Z..2022-09-06T22:00:00.000Z' --json author,milestone --jq '.[] | select((.milestone.title == "pl:1.7.x") or (.milestone.title == null) or (.milestone.title == "all:next")) | ["@" + .author.login] | join("")' --limit 100 | sort --ignore-case | uniq | xargs echo

@carmocca @dependabot @robertomest @rohitgr7 @tshu-w

@krshrimali You also need to bump the version number in __version__.

@krshrimali mind also cherry-pint PR with adding psutil for apps so we have that side of check green too... :)

@krshrimali mind also cherry-pint PR with adding psutil for apps so we have that side of check green too... :)

@Borda - Thank you! I've made the change.


New Petya! Help!

Hello!
I think new petya have another Data Locations or hex are crypted
Here is 54 sector of new petya:

(old petya: Ф2cИЋ‚ )
55 sector of new petya:
ἈἉἊἋἌἍἎἏἈἉἊἋἌἍἎἏἘἙἚἛἜἝ἖἗ἘἙἚἛἜἝ἞἟ἨἩἪἫἬἭἮἯἨἩἪἫἬἭἮἯἸἹἺἻἼἽἾἿἸἹἺἻἼἽἾἿὈὉὊὋὌὍ὆὇ὈὉὊὋὌὍ὎὏ὐὙὒὛὔὝὖὟ὘Ὑ὚Ὓ὜Ὕ὞ὟὨὩὪὫὬὭὮὯὨὩὪὫὬὭὮὯᾺΆῈΈῊΉῚΊῸΌῪΎῺΏ὾὿ᾈᾉᾊᾋᾌᾍᾎᾏᾈᾉᾊᾋᾌᾍᾎᾏᾘᾙᾚᾛᾜᾝᾞᾟᾘᾙᾚᾛᾜᾝᾞᾟᾨᾩᾪᾫᾬᾭᾮᾯᾨᾩᾪᾫᾬᾭᾮᾯᾸᾹᾲᾼᾴ᾵ᾶᾷᾸᾹᾺΆᾼ᾽ι᾿῀῁ῂῌῄ῅ῆῇῈΈῊΉῌ῍῎῏ῘῙῒΐ῔῕ῖῗῘῙῚΊ῜῝῞῟ῨῩῢΰῤῬῦῧῨῩῪΎῬ῭΅`῰῱ῲῼῴ῵ῶῷῸΌῺΏῼ´῾῿
old petya: юЗ77ХЄ77I:77wн77йп77ля77џk77§ 7779777¶77Tm77q77qR77Џ°77б277Ээ77ыЗ77Х©77I77w-77iа77ля77џ«77§ 7751777¶77Sm77Ѓq77qТ77Џ°77б277Ээ77юЗ77UЄ77I77w-77iп77ля77џл77§ 7731777ц77Tm77Ѓr77q77Џ°77a277Ээ77эЗ77U©77I&77wm77iп77ля77џ«77§ 771=777¶77Sm77Ѓq77qR77Џ°77a277Ээ77эЗ77Х©77I:77wm77йв77ля77џk77§ 77?;777677Sm77Ѓq77q’77Џ°77б177Ээ77юЗ77UЄ77I877w77iа77кя77¬77§.77=7777¶77Sm77q77q77Џ°77б277Ээ77эЗ77Х©77I77wн77йб77кя77м77§.77;1777ц77Um77q77qR77Џ°77б177Ээ77эЗ77U©77I<77wm77йп77ля77џ+77§ 779=777ц77Sm77r77qТ77Џ°77б277Ээ77
Please help!

https://imagecdn3.luxnet.ua/tv24/resources/photos/news/610x344_DIR/201706/835231.jpg?201706001103

I'm sorry to tell you, but new Peyta isn't ransomware. Even paying won't get your data back. Use this as a lesson to take backups from now on, I guess.
https://www.theverge.com/2017/6/28/15887496/petya-virus-not-actually-ransomware-analysis-shows

It is ransomware! Because when their mail was not blocked, we bought 1 key - and receive key that worked!
key was: x?x?x?x?x?x?x?x?

Ok then. Wait was "x?x?x?x?x?x?x?x?" literally your key?
On Thu, Jun 29, 2017 at 9:23 AM orangesystemspro<EMAIL_ADDRESS>wrote:

It is ransomware! Because when their mail was not blocked, we bought 1 key

and receive key that worked!
key was: x?x?x?x?x?x?x?x?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/leo-stone/hack-petya/issues/12#issuecomment-311982539,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHO-SeSQuK279ygzWhTvlTZOwWJk2Gmbks5sI7N7gaJpZM4OJGOD
.

i can write key, but i won't, because by cay hackers will identify me

it was larger than previous key x2 (32bytes)

That's really surprising that it worked.
On Thu, Jun 29, 2017 at 9:37 AM orangesystemspro<EMAIL_ADDRESS>wrote:

it was larger than previous key x2 (32bytes)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/leo-stone/hack-petya/issues/12#issuecomment-311986800,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHO-SRL2V9hI2ItwLtquB97FOwQXDuliks5sI7axgaJpZM4OJGOD
.

I don't know if it will be as vulnerable, though.
On Thu, Jun 29, 2017 at 9:39 AM Ben Aubin<EMAIL_ADDRESS>wrote:

That's really surprising that it worked.
On Thu, Jun 29, 2017 at 9:37 AM orangesystemspro<EMAIL_ADDRESS>wrote:

it was larger than previous key x2 (32bytes)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/leo-stone/hack-petya/issues/12#issuecomment-311986800,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHO-SRL2V9hI2ItwLtquB97FOwQXDuliks5sI7axgaJpZM4OJGOD
.

How to rewrite this program to make 32byte key?

I'm not the maintainer  - just trying to get some information to make it easier for someone to work on it if they want.

File we sent
http://savepic.ru/14682284.jpg


Repository about typo

The about section for this repository references "the matamath-lamp proof assistant". As far as I know there is no proof assistant called "matamath-lamp", so presumably this is a typo.

I spent some time to understand why matamath-lamp doesn't exist. But then I noticed the typo mAtamath-lamp :) I don't have possibility to modify the About section of this repo. Waiting for David to fix this.

@expln - thanks for explaining it, I didn't see the "a"! Fixed.


Bring back trash can (delete) icon in chat log

In the chat log, having to click into a menu and then select "delete" for each individual message is super tedious.  Please bring back the trash can icon so that we can do "one-click" deletes for individual chate messages.

Please remember to do a quick search for existing issues before posting one :)
(this is already resolved in PR #3826)

Please remember to do a quick search for existing issues before posting one :)
(this is already resolved in PR #3826)

Hmm... I did a search and that didn't pop up.  Thanks for pointing it out.

Please remember to do a quick search for existing issues before posting one :)
(this is already resolved in PR #3826)

FYI - Holding shift (as the DM) does not show the trashcan icon for me.

It’s resolved in a pull request, which has not yet been merged with the system and released.

Duplicate of #3443