sourcecontrols fails with Bicep

Please provide us with the following information:

This issue is a: (mark with an x)

[X] bug report -> please search issues before submitting
[ ] documentation issue or request
[ ] regression (a behavior that used to work and stopped in a new release)

Issue description
Bicep resource  'Microsoft.App/containerApps/sourcecontrols@2022-03-01' fails to provision without any clear error message.
If I drop this sourcecontrols code bloc, the Bicep runs sucessfully
Steps to reproduct

..

@description('A UNIQUE name')
@maxLength(20)
param appName string = '101-${uniqueString(deployment().name)}'

@description('The location of the Azure resources.')
param location string = resourceGroup().location

// https://docs.microsoft.com/en-us/rest/api/containerregistry/registries/check-name-availability
@description('The name of the ACR, must be UNIQUE. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length.')
param acrName string = 'acr${appName}' // ==> $acr_registry_name.azurecr.io

@description('The name of the ACR Repository')
param acrRepository string = 'petclinic'

@description('The Azure Container App Environment name')
param azureContainerAppEnvName string = 'aca-env-${appName}'

@description('The Log Analytics workspace name used by Azure Container App instance')
param logAnalyticsWorkspaceName string = 'log-${appName}'

@secure()
@description('The Azure Active Directory tenant ID that should be used by Key Vault in the Spring Config')
param springCloudAzureTenantId string

@secure()
@description('The Azure Key Vault EndPoint that should be used by Key Vault in the Spring Config. Ex: https://<key-vault-name>.vault.azure.net')
param springCloudAzureKeyVaultEndpoint string

// https://docs.microsoft.com/en-us/azure/container-apps/managed-identity?tabs=portal%2Cjava#configure-managed-identities
@description('The Azure Active Directory tenant ID that should be used to store the GH Actions SPN credentials and to manage Azure Container Apps Identities.')
param tenantId string = subscription().tenantId
param subscriptionId string = subscription().id

@allowed([
  '0.25'
  '0.5'
  '0.75'
  '1.0'
  '1.25'
  '1.5'
  '1.75'
  '2.0'
])
@description('The container Resources CPU. The total CPU and memory allocations requested for all the containers in a container app must add up to one of the following combinations. See https://learn.microsoft.com/en-us/azure/container-apps/containers#configuration')
param containerResourcesCpu string = '0.5'

@allowed([
  '0.5Gi'
  '1.0Gi'
  '1.5Gi'
  '2.0Gi'
  '2.5Gi'
  '3.0Gi'
  '3.5Gi'
  '4.0Gi'
])
@description('The container Resources Memory. The total CPU and memory allocations requested for all the containers in a container app must add up to one of the following combinations. See https://learn.microsoft.com/en-us/azure/container-apps/containers#configuration')
param containerResourcesMemory string = '1.0Gi'

@description('The applicationinsights-agent-3.x.x.jar file is downloaded in each Dockerfile. See https://docs.microsoft.com/en-us/azure/azure-monitor/app/java-spring-boot#spring-boot-via-docker-entry-point')
param applicationInsightsAgentJarFilePath string = '/tmp/app/applicationinsights-agent-3.4.1.jar'

@secure()
@description('The Application Insights Intrumention Key. see https://docs.microsoft.com/en-us/azure/azure-monitor/app/java-in-process-agent#set-the-application-insights-connection-string')
param appInsightsInstrumentationKey string

@description('The GitHub Action Settings / Repo URL')
param ghaSettingsCfgRepoUrl string = 'https://github.com/ezYakaEagle442/aca-java-petclinic-mic-srv'

@secure()
@description('The GitHub Action Settings Configuration / Registry User Name')
param ghaSettingsCfgRegistryUserName string

@secure()
@description('The GitHub Action Settings Configuration / Registry Password')
param ghaSettingsCfgRegistryPassword string

@description('The GitHub Action Settings Configuration / Registry URL')
param ghaSettingsCfgRegistryUrl string

param revisionName string = 'poc-aca-101'

@description('The GitHub branch name')
param ghaGitBranchName string = 'main'

@secure()
@description('The GitHub Action Settings Configuration / Azure Credentials / Client Id')
param ghaSettingsCfgCredClientId string

@secure()
@description('The GitHub Action Settings Configuration / Azure Credentials / Client Secret')
param ghaSettingsCfgCredClientSecret string

@description('The GitHub Action Settings Configuration / Docker file Path for admin-server Azure Container App ')
param ghaSettingsCfgDockerFilePathAdminServer string = '../../../../docker/petclinic-admin-server/Dockerfile'

@description('The GitHub Action Settings Configuration / Publish Type')
param ghaSettingsCfgPublishType string = 'Image'

@description('The GitHub Action Settings Configuration / Runtime Stack')
param ghaSettingsCfgRuntimeStack string = 'JAVA'

@description('The GitHub Action Settings Configuration / Runtime Version')
param ghaSettingsCfgRuntimeVersion string = '11-java11'

@description('The Azure Container App instance name for admin-server')
param adminServerContainerAppName string = 'aca-${appName}-admin-server'

resource githubActionSettingsAdminServer 'Microsoft.App/containerApps/sourcecontrols@2022-03-01' = {
  name: 'aca-gha-set-admin-srv'
  parent: AdminServerContainerApp
  properties: {
    branch: ghaGitBranchName
    githubActionConfiguration: {
      azureCredentials: {
        clientId:ghaSettingsCfgCredClientId
        clientSecret: ghaSettingsCfgCredClientSecret
        subscriptionId: subscriptionId
        tenantId: tenantId
      }
      contextPath: ghaSettingsCfgDockerFilePathAdminServer // Dockerfile location
      image: 'petclinic/petclinic-admin-server'
      os: 'Linux'
      registryInfo: {
        registryPassword: ghaSettingsCfgRegistryPassword
        registryUrl: ghaSettingsCfgRegistryUrl // acrpetcliaca.azurecr.io or acrpetcliacr ?
        registryUserName: ghaSettingsCfgRegistryUserName
      }
      publishType: ghaSettingsCfgPublishType
    }
    repoUrl: ghaSettingsCfgRepoUrl
  }
}

Expected behavior [What you expected to happen.]
The Bicep Template should run successfully and the CI/CD integration should be t set in the ACA App
Actual behavior [What actually happened.]
{"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"Conflict","message":"{\r\n  \"status\": \"Failed\",\r\n  \"error\": {\r\n    \"code\": \"ResourceDeploymentFailure\",\r\n    \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n    \"details\": [\r\n      {\r\n        \"code\": \"DeploymentFailed\",\r\n        \"message\": \"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.\",\r\n        \"details\": [\r\n          {\r\n            \"code\": \"NotFound\",\r\n            \"message\": \"{\\r\\n  \\\"error\\\": {\\r\\n    \\\"code\\\": \\\"BadRequest\\\",\\r\\n    \\\"message\\\": \\\"\\\"\\r\\n  }\\r\\n}\"\r\n          }\r\n        ]\r\n      }\r\n    ]\r\n  }\r\n}"}]}}

Screenshots
N/A
Additional context
From VS Terminal CLI calling Bicep :

Also it is not possible to set :${{ github.sha }} in the image tag :
image: 'petclinic/petclinic-admin-server:${{ github.sha }}'

Error BCP087: Array and object literals are not allowed here.
Error BCP004: The string at this location is not terminated due to an unexpected new line character.
Error BCP104: The referenced module has errors.
```sh

Managedidentity is enabled on my ACR, so the  Registry config should NOT look like  :
      registryInfo: {
        registryPassword: ghaSettingsCfgRegistryPassword // Managedidentity is enabled on ACR
        registryUrl: ghaSettingsCfgRegistryUrl // yourACR.azurecr.io
        registryUserName: ghaSettingsCfgRegistryUserName
      }

The docs at https://learn.microsoft.com/en-us/azure/container-apps/containers#managed-identity-with-azure-container-registry
states the config should look like :
resource AdminServerContainerApp 'Microsoft.App/containerApps@2022-03-01' = {
  name: adminServerContainerAppName
  location: location
  identity: {
    type: 'SystemAssigned'
  }
  properties: {
    managedEnvironmentId: corpManagedEnvironment.id
    configuration: {
      activeRevisionsMode: 'Multiple'
      ingress: {
        allowInsecure: true
        external: true
        targetPort: 9090
        traffic: [
          {
            latestRevision: true
            // revisionName: revisionName Traffic weight cannot use "LatestRevision: true" and "RevisionName" at the same time
            weight: 100
          }
        ]
        transport: 'auto'
      }
      registries: [
        {
          // Managedidentity is enabled on ACR
          server: ghaSettingsCfgRegistryUrl
          identity: 'system'
        }
      ]
      secrets: [
        {
          name: 'registrypassword'
          value: ghaSettingsCfgRegistryPassword
        }

@description('The GitHub Action Settings Configuration / Docker file Path for admin-server Azure Container App ')
param ghaSettingsCfgDockerFilePathAdminServer string = 'docker/petclinic-admin-server/Dockerfile'

resource githubActionSettingsAdminServer 'Microsoft.App/containerApps/sourcecontrols@2022-03-01' = {
  name: 'aca-gha-set-admin-srv'
  parent: AdminServerContainerApp
  properties: {
    branch: ghaGitBranchName
    githubActionConfiguration: {
      azureCredentials: {
        clientId:ghaSettingsCfgCredClientId
        clientSecret: ghaSettingsCfgCredClientSecret
        subscriptionId: subscriptionId
        tenantId: tenantId
      }
      contextPath: ghaSettingsCfgDockerFilePathAdminServer // Dockerfile location
      image: 'petclinic/petclinic-admin-server:latest'
      os: 'Linux'
      registryInfo: {
        // Managedidentity is enabled on ACR
        // https://learn.microsoft.com/en-us/azure/container-apps/containers#managed-identity-with-azure-container-registry
        registryUrl: ghaSettingsCfgRegistryUrl // yourACR.azurecr.io
        registryUserName: ghaSettingsCfgRegistryUserName
        // registryPassword: ghaSettingsCfgRegistryPassword
      }
      publishType: ghaSettingsCfgPublishType
    }
    repoUrl: ghaSettingsCfgRepoUrl
  }
}

{"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"Conflict","message":"{\r\n  \"status\": \"Failed\",\r\n  \"error\": {\r\n    \"code\": \"ResourceDeploymentFailure\",\r\n    \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n    \"details\": [\r\n      {\r\n        \"code\": \"DeploymentFailed\",\r\n        \"message\": \"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.\",\r\n        \"details\": [\r\n          {\r\n            \"code\": \"NotFound\",\r\n            \"message\": \"{\\r\\n  \\\"error\\\": {\\r\\n    \\\"code\\\": \\\"BadRequest\\\",\\r\\n    \\\"message\\\": \\\"\\\"\\r\\n  }\\r\\n}\"\r\n          }\r\n        ]\r\n      }\r\n    ]\r\n  }\r\n}"}]}}

Also it is not possible to set :${{ github.sha }} in the image tag :
image: 'petclinic/petclinic-admin-server:${{ github.sha }}'

I think that is a GitHub workflow variable that would only be replaced in your workflow yml-file. You would have to pass that variable as a regular parameter to your bicep files.

@cwe1ss thank you for your reply, indeed. I have refactored my Bicep code , now the SourceControl settings are stored in a module.
and the Image Tag is now as a param  set from the Workflow
New topic to clarify, as MI is set ACR, what Registry config should be set in the Bicep ACA sourcecontrols ?
Shall I set only the registryUrl: ghaSettingsCfgRegistryUrl WITHOUT username and password ?
resource githubActionSettingsAdminServer 'Microsoft.App/containerApps/sourcecontrols@2022-03-01' = {
  name: 'aca-gha-set-admin-srv'
  parent: AdminServerContainerApp
  properties: {
    branch: ghaGitBranchName
    githubActionConfiguration: {
      azureCredentials: {
        clientId:ghaSettingsCfgCredClientId
        clientSecret: ghaSettingsCfgCredClientSecret
        subscriptionId: subscriptionId
        tenantId: tenantId
      }
      contextPath: ghaSettingsCfgDockerFilePathAdminServer // Dockerfile location
      image: imageNameAdminServer
      os: 'Linux'
      registryInfo: {
        // Managedidentity is enabled on ACR
        // https://learn.microsoft.com/en-us/azure/container-apps/containers#managed-identity-with-azure-container-registry
        registryUrl: ghaSettingsCfgRegistryUrl // yourACR.azurecr.io
        registryUserName: ghaSettingsCfgRegistryUserName
        // registryPassword: ghaSettingsCfgRegistryPassword
      }
      publishType: ghaSettingsCfgPublishType
    }
    repoUrl: ghaSettingsCfgRepoUrl
  }
}

I have not used the github integration of ACA. I'm deploying with regular github actions.
In my template this is done entirely with managed identities and without any passwords: https://github.com/cwe1ss/msa-template
(most of it is in the infrastructure folder)
Github actions use a managed identity with federated credentials to push images to ACR and to deploy resources to Azure. The container apps use their managed identity to pull images from ACR.

Thank you @cwe1ss , interesting to see that.
I noticed that you do not use ACR Build but docker push , at https://github.com/cwe1ss/msa-template/blob/main/infrastructure/build-service.ps1#L126
I have seen how you create those GH Identities at https://github.com/cwe1ss/msa-template/blob/main/infrastructure/platform/github-identity.bicep but how to use them then inside a GH Workflow ?
Do you run az login --identity, az acr login before calling az acr build somewhere in your code ?

My workflow looks like this:

The script init-platform.ps1 must be run locally once as a Azure Global Admin & GitHub repo admin. It will deploy the managed identity for GitHub that you've linked, some platform resources like the ACR, AND it will create the necessary secrets in your GitHub repository (via the GitHub CLI) for the managed identity to authenticate to Azure (AZURE_CLIENT_ID, AZURE_SUBSCRIPTION_ID, AZURE_TENANT_ID).

(It also does a few other things that are documented at the beginning of the script)

The GitHub workflows for my apps/services have a build-job and one deploy-job per environment (development, production). See e.g. here:

The build-job is triggered when something in the service path changes (continuous integration). It uses a reusable build-job template that uses the "azure/login"-action to authenticate the managed identity to Azure using the GitHub secrets. It also has a build step that logs in to the ACR using the managed identity. With this, my build workflows can push service images to ACR via docker push.
The reusable deploy-job template also uses azure/login to authenticate to Azure and it will then deploy all the Azure resources via Bicep. These deploy-jobs will only run after approval of the environment (not everything should be deployed to production).

I have not used ACA's source control integration but as far as I understand the docs, it will create a GitHub action that builds a dockerfile and the push to ACR will then trigger a new ACA revision. This would not allow you to do any approvals for certain environments and you wouldn't be able to deploy other ARM/Bicep resource changes together with your deployment (e.g. environment variables, secrets, ...). You would have to apply these changes before or after the new revision has been created (and therefore probably trigger another new revision)
I feel like the ACA source control integration is useful mainly when you manage your ACA app from the portal (without ARM/Bicep/Terraform) or when you have very simple scenarios. Someone please correct me if I'm wrong.

@ezYakaEagle442 please let me know if youre facing issues. It seems like there was a lot of conversation here. If you still need support we can set up a meeting. Thanks

@ezYakaEagle442 please let me know if youre facing issues. It seems like there was a lot of conversation here. If you still need support we can set up a meeting. Thanks

@SophCarp @anthonychu  when MI is set ACR, there is no way to set Registry config in the Bicep ACA sourcecontrols , this is the issue / RFE / Ask
/reopen

Closing this issue due to it being inactive. If it still exists please reopen a new issue and point to this to preserve history.


Base64 encoding does not work

I am trying to use base64 encoded image, but it runs on this error:
Typed property SimpleCaptcha\Builder::$image must not be accessed before initialization
#0 /.../vendor/s1syphos/php-simple-captcha/src/Builder.php(1016): SimpleCaptcha\Builder->gd2img()
#1 /.../vendor/s1syphos/php-simple-captcha/src/Builder.php(1031): SimpleCaptcha\Builder->output()
#2 /.../vendor/s1syphos/php-simple-captcha/src/Builder.php(1046): SimpleCaptcha\Builder->fetch()
#3 /.../presentation/template/registration.php(23): SimpleCaptcha\Builder->inline()

All I do is instantiating the Builder class with the captcha string (only English characters and numbers) and calling the inline method:
        return $this->renderer->render($response, 'registration.php', [
            'csrf' => $this->csrf,
            'captcha' => new CaptchaBuilder($this->security->getCaptcha()),
            'values' => $values,
            'errors' => $errors
        ]);

<img src="<?php $html->addAttribute($captcha->inline()); ?>" />

I guess the bug is in your code. https://stackoverflow.com/a/59265626/607033

Sorry for not responding, as you may already have guessed, my time and resources right now are very limited. Thanks for bringing this to my attention! I'll look into it as soon  as possible 😊

You need to perform the build before using the image.
Example:
$builder = new Builder(Builder::buildPhrase(32, 'abc@123'));
$builder->build(); // This create the image in cache and set width, height and image attributes.


test batch verification performance on berkeley

Need more details what is expected here. I understand how batch verification works, but how to get data to feed it? Is it expected to be some static recorded data, or newly generated each time?


j.clients.influxdb

config manager
implement installer & basic test

split in 2 files: factory, instance

also implement j.builder....
look at readme in that builder directory & TEMPLATE dir

implement j.client

learn how to do it in template for client

implement j.builder....

learn how to do it in template

Duplicate of #522

Implemented Build, Install. Still on the rest of the builder

Refactored builder at: https://github.com/threefoldtech/jumpscaleX/commit/963828c9e433aaaf33216ba1d2e2ffda2915dc0f

Implemented Build, Install, Sandbox, Start, Stop, Test

build, install, start, stop, snadbox and test are working fine


[Bug] UserWarning when plotting: The figure layout has changed to tight

Checkbox

[X] I agree to follow code of conduct and to engage in discussion actively.
[X] I agree to create a new issue with the other templates if this is not a bug.
[X] I used the latest version of covsirphy.

Summary
Test workflow failed with  UserWarning: The figure layout has changed to tight.
https://github.com/lisphilar/covid19-sir/actions/runs/5574102809/jobs/10182268192
Reproducible example script
Refer to the GitHub Action output.

The current outputs
No response
Expected outputs
No response
Environment
- CovsirPhy version: 3.0.0
- Python version: 3.11.1

Package manager (required if installation issue)
No response
Platform (required if installation issue)
No response
Additional Context
Solution; https://stackoverflow.com/questions/37309559/using-matplotlib-giving-me-the-following-warning-userwarning-tight-layout

Use plt.rcParams["figure.autolayout"] = True instead of .set_layout_engine("tight")  and fig.set_tight_layout(True) and plt.tight_layout().
Solution is from https://stackoverflow.com/questions/37309559/using-matplotlib-giving-me-the-following-warning-userwarning-tight-layout
https://github.com/lisphilar/covid19-sir/actions/runs/5577177582/jobs/10189525966
https://matplotlib.org/stable/tutorials/intermediate/tight_layout_guide.html


sf: command not found on GITLAB CLI Installation through Yaml file

Note
Before you submit your issue, make sure that:

You're using the latest version of Salesforce CLI.
You've searched both open and closed issues for related posts.
You've used the doctor command to diagnose common issues.
You understand that GitHub Issues don't adhere to any agreement or SLA.

If you require immediate assistance, use official channels such as Salesforce Customer Support.

Summary
In the CI Script on GITLAB , Old SFDX CLI Tar file URL stopped working
Steps To Reproduce
OLD CI Script:
Setup SFDX environment variables

export CLIURL=https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
export ROOTDIR=force-app/main/default/

Install Salesforce CLI

mkdir sfdx
wget -qO- $CLIURL | tar xJ -C sfdx --strip-components 1
"./sfdx/install"
export PATH=./sfdx/$(pwd):$PATH

Output CLI version and plug-in information

sfdx --version
sfdx plugins --core

New CI Script:
Setup SFDX environment variables

export CLIURL=https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.xz
export ROOTDIR=force-app/main/default/

Install Salesforce CLI

mkdir sfdx
wget -qO- $CLIURL | tar xJ -C sfdx --strip-components 1
export PATH=./sfdx/$(pwd):$PATH

Output CLI version and plug-in information

sf --version

Expected result
It should return the installed version
Actual result
but we are receiving sf command not found, we are not able to proceed to next step  as below. System is not recognizing the installation
JWT Auth and force deploy
Adding our complete Script file

default:
tags:
- virtualbox
before_script:
Decrypt server key

which openssl
openssl aes-256-cbc -d -md md5 -in JWTFiles/server.key.enc -out JWTFiles/server.key -k $SERVER_KEY_PASSWORD

Setup SFDX environment variables

export CLIURL=https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.xz
export ROOTDIR=force-app/main/default/

Install Salesforce CLI

mkdir sfdx
wget -qO- $CLIURL | tar xJ -C sfdx --strip-components 1
export PATH=./sfdx/$(pwd):$PATH

Output CLI version and plug-in information

sf --version

stages:

deploy

deploy:
stage: deploy
script:
Setting consumer key and username for the script to run

echo "Starting Deployment..."

if [ "$CI_COMMIT_BRANCH" == "INTG"  ];
then
USERNAME="$SF_USERNAME_INTG";
CONSUMERKEY="$SF_CONSUMER_KEY_INTG";
elif [ "$CI_COMMIT_BRANCH" == "SIT"  ];
then
USERNAME="$SF_USERNAME_SIT";
CONSUMERKEY="$SF_CONSUMER_KEY_SIT";
elif [ "$CI_COMMIT_BRANCH" == "UAT"  ];
then
USERNAME="$SF_USERNAME_UAT";
CONSUMERKEY="$SF_CONSUMER_KEY_UAT";
elif [ "$CI_COMMIT_BRANCH" == "master"  ];
then
USERNAME="$SF_USERNAME_PROD";
CONSUMERKEY="$SF_CONSUMER_KEY_PROD";
else
echo "None of the condition met";
fi

if [ "$CI_COMMIT_BRANCH" == "master"  ];
then
CHECKONLY="-c";
SFDC_LOGIN_URL="$SFDC_PRODUCTION_URL";
else
SFDC_LOGIN_URL="$SFDC_SANDBOX_URL";
fi

Authenticate to the target org using the server key

sfdx auth:jwt:grant --clientid ${CONSUMERKEY} --jwtkeyfile JWTFiles/server.key --username ${USERNAME} --instanceurl ${SFDC_LOGIN_URL}

if [ "$CI_COMMIT_BRANCH" == "master"  ];
then
MODULE="-l RunLocalTests";
else MODULE="";
fi

#Deploying metadata to the target org

sfdx force:source:deploy --targetusername ${USERNAME} -p $ROOTDIR ${MODULE} ${CHECKONLY}
rules:

if: $CI_COMMIT_BRANCH == "master"  || $CI_COMMIT_BRANCH == "INTG" || $CI_COMMIT_BRANCH == "SIT" || $CI_COMMIT_BRANCH == "UAT"
when: always

Hey @Shahul9891NL, we deleted that old tarball a few days ago, see:
https://github.com/forcedotcom/cli/issues/2460#issuecomment-1714309082
Last time we checked it was pointing to sfdx v7.82.0, which was published almost 3 years ago.

Thanks cristian for checking.  We are using the latest version, but that is also failing
https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.xz

The instructions are here.  They're slightly different for sf
https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm#sfdx_setup_install_cli_linux


Develop

Temporal network class and data samples added.

I'm closing the pull request because it has been created from a forked repo which caused problems with CICD pipelines. All your commit history has been moved to this PR: https://github.com/anty-filidor/network_diffusion/pull/32


Update google numbers to include accurate scope 1,2,3 AND scope 1,2

Google report provides scope 1,2 (market and location) and scope 3 total. Do we wish to include that data in the corporate yaml raw_facts section ?

Our "standard" - which we are convening the climate advisory council to affirm - is that we should use location-based emissions and include scope 3 data in the value chain. Especially for tech companies, where scope 3 is 95% or more of the total footprint, I don't think it's reasonable to exclude. In addition, we need to have consistent scope 3 categories as otherwise it would be difficult to do apples-to-apples comparison. One thing we should factor in is potential duplication, for instance, if YouTube includes consumer device impact in scope 3, then we should make sure we're not also counting this in our model.

Hello, regarding how to assess Scope 3 for data centers this OCP talk covers the different use cases and shares interesting data on how emissions are distributed.


Windows: Cannot handle ANSI terminal control for output colorization

The characters are printed wrong on cmd.exe.
C:>epinio install
←[34m🚢 Epinio installing...
←[0m
Configuration...
🧭  skip-traefik: ←[35mfalse←[0m
🧭  skip-linkerd: ←[35mfalse←[0m
🧭  system_domain: ←[32m←[0m
🧭  email_address<EMAIL_ADDRESS>🧭  user: ←[32ma7f36a3b8756de3f←[0m
🧭  password: ←[32m558f1bbd2d8fbebc←[0m
←[34m🚢 Deploying Linkerd...←[0m

Right. The full sequence are like \033[0m and the like. ANSI terminal control sequences.
On unix terminals they colorize the output. The inivisible \033 is the escape character.
The example at the beginning means reset everything to plain output.
We have to disable that for Windows, looks like.
We use the go package github.com/fatih/color.

Some investigation shows me that fatih/color should support Windows, by means of mattn/go-colorable.
Should be since 2017 after a first glance.
... for a first, upgrade from 1.90 to 1.12.0.
That brings in support for the environment variable NO_COLOR.
Simply setting that variable (any value) will disable colorized output.
This gives us a workaround when things go wrong.

See PR #498 for a possible fix.
Even if not a fix, it should make a workaround available (Support for environment variable NO_COLOR. Setting it (to any value) should disable colorization.

A question: What version of Windows is this ?


Add behavior change notices to NATIVE

Is your feature request related to a problem? Please describe.
We want to announce behavior changes coming of the NATIVE case of CMAKE_CUDA_ARCHITECTURES from rapids-cmake.
Describe the solution you'd like
Unlike #316 the swtich from NATIVE to native does have an observable side-effect on the project. The rapids-cmake NATIVE resolves down to the actual architecture value ( 75-real ) after the project() call, while native stays native as now nvcc supports flags like -arch=native.
What we want to do for 22.03 is add a behavior notice to rapids-cmake that NATIVE will map to native starting in 23.04.

The behavior change should also state that NATIVE will be removed in 23.06

Also remember to incldue "" in the behavior change / deprecation notice

Was thinking about this again and wanted to measure the performance cost of using -arch=native compared to what rapids-cmake does.
For libcudf total compile times at -j20 go from 8min 42sec to 8min 44sec so basically noise. We shouldn't consider performance of -arch=native to a issue when switching rapids-cmake NATIVE over to native.


Issue: Can't Connect to Google Music: no valid devices

I'm using Arch Linux and it appears that there is an issue getting the mac address to assign to the Android ID.  Haven't found yet, but looking.
Has anyone had this issue or know a work-around?

The library responsible for that stuff was authored by @mjibson, I have no idea how it works. You should probably ask here

I'm not sure how that part works too well either. You may have to install google music on your phone and connect to your account with it, and then this will work. For reference the Go stuff uses the Mobileclient method listed in that project.

have google music on my phone, this doesn't work.

Got this to work by finding https://github.com/DanNixon/PlayMusicCL  using it's "find/generate device id" script and signing in
Now this go player works, so there's some sort of device id registration step


canvas module does not work with ncc v0.3.0

It correctly copies the canvas.node file:
$ ls dist/
canvas.node  index.js  index.js.map

However, canvas also bundles the shared libs that it relies on:
$ otool -L dist/canvas.node
dist/canvas.node:
        @loader_path/libpixman-1.0.dylib (compatibility version 35.0.0, current version 35.0.0)
        @loader_path/libcairo.2.dylib (compatibility version 11603.0.0, current version 11603.0.0)
        @loader_path/libpng16.16.dylib (compatibility version 52.0.0, current version 52.0.0)
        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
        @loader_path/libpangocairo-1.0.0.dylib (compatibility version 4201.0.0, current version 4201.4.0)
        @loader_path/libpango-1.0.0.dylib (compatibility version 4201.0.0, current version 4201.4.0)
        @loader_path/libgobject-2.0.0.dylib (compatibility version 5801.0.0, current version 5801.1.0)
        @loader_path/libglib-2.0.0.dylib (compatibility version 5801.0.0, current version 5801.1.0)
        @loader_path/libintl.8.dylib (compatibility version 10.0.0, current version 10.5.0)

$ ls node_modules/canvas/build/Release/
canvas.node*          libffi.6.dylib         libfribidi.0.dylib         libgio-2.0.0.dylib      libgobject-2.0.0.dylib    libharfbuzz.0.dylib  libpango-1.0.0.dylib       libpcre.1.dylib      librsvg-2.2.dylib
libcairo.2.dylib      libfontconfig.1.dylib  libgdk_pixbuf-2.0.0.dylib  libglib-2.0.0.dylib     libgraphite<IP_ADDRESS>.dylib  libintl.8.dylib      libpangocairo-1.0.0.dylib  libpixman-1.0.dylib  obj.target/
libcroco-0.6.3.dylib  libfreetype.6.dylib    libgif.7.dylib             libgmodule-2.0.0.dylib  libgthread-2.0.0.dylib    libjpeg.9.dylib      libpangoft2-1.0.0.dylib    libpng16.16.dylib

Proposal
When the native module case is hit, ncc should also look for shared libraries appropriate for the operating system (.dylib for MacOS, .so for Linux, .dll for Windows, etc.) relative to the .node file and copy them into the output bundle as well.

Honestly I don't think many native modules bundle shared libs like this. My personal preference is to statically compile the dep and build it into the .node module.
Other modules usually just depend on the system shared lib being installed from the package manager, but I don't really think we need to support that use-case (at least, it would require runtime trickery with the LD_LIBRARY_PATH env var which isn't ideal).


Fix links

Hi.
Fixed links:

to 21K model and LVIS API licence in README.md
to UniDet repository in datasets/REAMDE.md
to Detic_DeformDETR_R50_2x config in docs/MODEL_ZOO.md

Thank you @amrzv !


Update syntax highlighting for HTML & CSS

There are some new features out that just need some more keywords. I haven't dug into the repo at all, although I may do so in around a week.
Just some things I noticed when editing one of my files (version 8.0, I doubt the patch matters)
HTML
<dialog>
CSS
display: grid and display: flex - presumably things like inline-grid, subgrid, inline-flex, etc. are also missing.
Native variables - matching the following regex: --.*:.* and var(--.*)
To go along with grid and flex, similar selectors:
align-items
justify-content
grid-.* - tons of things here, not listing them all. Obviously not a generic selector.
dialog::backdrop pseudoselector (for dialog HTML element)

please contact the maintainer of the responsible syntax files (e.g. look at the header in syntax/css.vim and syntax/html.vim). thanks!

or @  me in the issue :-)
I will handle these issues

@JulesWang  Mostly I miss the flex box CSS properties as called out by @jhpratt . But here are a couple more:
font-variant: small-caps; /* `-caps` not highlighted */
margin: 10%;  /* the `%` suffix is not highlighted anywhere from what I can see */

Finally, I notice that sometimes when I page down the entire screen's worth of CSS is not highlighted. I will then page back and then forward again and it will paint properly. I do not recall seeing this in any other language that I use, so feel it may be specific to the CSS syntax rules.
Thx so much for your help, @JulesWang !

Finally, I notice that sometimes when I page down the entire screen's worth of CSS is not highlighted. I will then page back and then forward again and it will paint properly. I do not recall seeing this in any other language that I use, so feel it may be specific to the CSS syntax rules.

Yes, I also noticed this issue, and I failed to fix it , any ideas?

@JulesWang Unfortunately, this is an area about which I know little. I don't mind pitching in and learning to debug such a problem when I get a chance. But others may have ready insight into this problem and can help to resolve it quicker. So, I decided to create a new issue, #1775 , not only to get help from others, but also because it is not directly related to this issue where we're filling in the CSS syntax highlighting gaps.

@JulesWang How is this progressing? Close to a PR?

#1764  is not merged yet.  @brammool

Jules Wang wrote:

#1764  is not merged yet.  @brammool

Since HTML is used a lot, I am awaiting comments from users for this
change.  Both positive and negative.  Please try it out.
--
hundred-and-one symptoms of being an internet addict:
185. You order fast food over the Internet
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

About not painting the whole page when syntax constructs go back too far: see ":help :syn-sync". There are 4 possibilities described there. The only foolproof one, but also the slowest, is ":syn sync fromstart" which will backtrack from the start of the file in order to determine how to highlight the text visible in the current window.
AFAICT, it seems that syncing starts 10 lines before top of screen in CSS, 40 lines in help, no less than 10 and no more than 100 in HTML. Depending on how complex your syntax is, it might or might not be enough; if it isn't, then an after-plugin (e.g. ~/.vim/after/syntax/html.vim and ~/.vim/after/syntax/css.vim) could set a higher limit.
Best regards,
Tony.

@JulesWang Just found another one, this time with JS. Check out template strings. There's zero support for them, which actually causes issues when it comes to "comments".
The specific example that's causing issues for me:
`${config.dir}/*.scss`

Currently, it's being parsed as a comment starting with /*, but it's actually a template string (via the backticks).

@jhpratt  pls show me more code with context
Besides, Neither scss files, nor css in js files could be highlighted by css.vim

Whoops, wasn't thinking of that. I just assumed you were the same one that maintained both of the files.

Don't know if this should be a separate issue, I can create one if need be.
Media queries in scss files aren't highlighted, even though they are in css files. In the line @media (max-width:1023px), only @media is highlighted, while the entire query is in css.

@hexadecatrienoic,  this line of css @media (max-width:1023px)  is highlighted correctly by vim 7.4.8056

I'm using vim 8.0.0987-1. Yes, it highlights fine when syntax=css is set. With syntax=scss set, it comes out like so: , and with syntax=css:

@hexadecatrienoic, I find a solution to your issue,  but  I'm not a scss/sass expert,  so I need you help me check and test it :-) , the solution is:  comment out line 61, 62, 89 and 90 of syntax/sass.vim
syn region sassMediaQuery matchgroup=sassMedia start="@media" end="[{};]\@=\|$" contains=sassMediaOperators
syn keyword sassMediaOperators and not only contained

hi def link sassMedia                   PreProc
hi def link sassMediaOperators          PreProc

media keywords are handled properly in css.vim, so above four lines could be deleted safely IMO.

@JulesWang, this works, but it also mangles highlighting in media query blocks. Test code to replicate the issue:
$blue: #00f;
@media (max-width: 1023px) {
    header {
        text-align: center;
        position: fixed;
        top: 0;
        height: 7em;
        transition: top 150ms;
    }
    header > h1 {
        color: $blue;
        margin-bottom: 0;
    }
    #nav {
        width: 80%;
        margin: 0 auto;
    }
    #content {
        margin-top: 7em;
    }
}

Not commented
Commented

@hexadecatrienoic  hmm.. code in css.vim and scss.vim messed up. This problem is not as easy as I think. It will be great if maintainer of scss.vim is in this thread. Anyway, thanks for your testing.  :-)

@hexadecatrienoic  I will work on your issue based on PR #2637 after it is merged.  Pls open a new thread and mention me there.
I'm going to close this issue, but #1764  is not merged yet. @brammool

I'm going to close this issue, but #1764 is not merged yet.

Now that #1764 has been merged, is the issue fixed?


added welcome animationn

PR Description 📜
#75
reDesign welcome page
Please include summary related to the issue you have fixed and describe your PR in brief over here by specifying the issue number on which you were working below
Fixes #75 <your_issue_number>

Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x] I have added screenshot for review.

## Add your screenshots(Optional) 📸

Thank you soo much for contributing to our repository 💗

ok

https://github.com/ChromeGaming/Squard-line/assets/137641079/5655ba20-443c-4213-ab03-f78f92de2c46
Hey @Durgesh4993 ,
give review about this and check it and merge it

@Durgesh4993
i updated welcome animation please check it and merge it

Hey @Durgesh4993 ,check it and merged it

Hey @Durgesh4993 ,give a response as well as merged it ...

Hey @Durgesh4993 ,
give a response as well as merged it , otherwise i complaint you in GSSOC   FLAG

Hey @Durgesh4993
if you are not going to merge this pull request within this day
than i will complain you in GSSOC flag

@Varsani2520 Sorry for delay but i think so you need to understand, our sembesters are on going this is reason why currenty we are not respondy but we try to merege maximum PRs


[DOCS] Make getting started more inclusive

Description
The Prerequisites; Installation Steps; and To Add Your Profile
for a person who is truly 'new2tech' (and not necessarily a 'code-newbie') this is very daunting and a completely new language.
Not inclusive for a person who is 'new2tech'
Screenshots

Additional information
Sign-posts to simple explanation resources (whatever type of media that maybe) that would help the person who is new2tech to be involved.
After the person has reviewed the signposts, they can then ask for clarity if need be; and then choose to contribute.
The Installation Steps rely on someone that has done this already and has experience of already doing this. For a person new to GitHub (and say again new2tech) they will not know how to do this; unless there is a working-example of how to do this.

I wonder if a link to a YouTube video showing these steps would be a good idea.

most definitely 👍
sign posting to resources that explain these concepts in a simple way (so that a 10yr old could understand) would be very beneficial.

I would also suggest we have a Wiki that can have links to the various get started tutorials. Also a documentation part on the website where we can edit from GitHub?
I would like to work on this if the maintainers would allow.

I have created a basic file with links to resources to assist with downloading LinkFree
please amend if anything is incorrect
https://github.com/goobric/linkfreeInformation

I have created a basic file with links to resources to assist with downloading LinkFree please amend if anything is incorrect https://github.com/goobric/linkfreeInformation

This looks like a great start. I wonder if we should have it as a general document within the organisation that can be linked to  from all repos (I don't see anything super specific to LinkFree although I only looked at it briefly so I might've missed something?) and I wonder if some of Eddie's github videos should also be included as reference material.

Agree with Emma

That’s a great point @goobric I just read through and it would definitely make sense to move that warning

please excuse my naivety, who has the responsibility to amend/update the instructions for the LinkFree project?
Can I submit a PR with proposed alterations?

please excuse my naivety, who has the responsibility to amend/update the instructions for the LinkFree project?
Can I submit a PR with proposed alterations?

Yes, you can make a PR. No one person/group is responsible for the instructions, everyone can contribute to improve them.

Hello, first-time contributor here!
I came into this issue because I also had a problem with the "To Add Your Profile" session. I agree with @goobric that the instructions are not clear to someone new2tech (like me).
I would suggest something similar to what he said:
"In the data directory, create a .json file with the same name as your GitHub username. For example, if your GitHub username is eddiehub, create a file named eddiehub.json. This will ensure that the name is unique."
I also want to point out that maybe we can avoid using abbreviations (like "i.e.") as they are not necessarily friendly to people whose first language is not English.
I saw that @goobric added a commit, but I saw that the changes haven't been incorporated yet, probably because maintainers are busy. In any case, I hope this helps, and sorry for the long comment!

We have massively improved the documentation, so I will close this for now, but feel free to create new issues if required
https://linkfree.eddiehub.io/docs


Error Invalid version: '0.23ubuntu1' on "colcon build --symlink-install" inside Docker container

Following the Quickstart guide a step 5, the build of the workspace inside docker gives the following error:
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '0.23ubuntu1' (package: distro-info)
Seems it is correlated with this issue relative to the version of Python Setuptools. Downgrading from version 66 to 65 solved the building problem in my case. However, this is only a workaround and the project should adapt to provide conformant versions during the build.

We have started seeing this locally as well on aarch64 only and debugging it now. Duplicate of https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_visual_slam/issues/71

We've reverted the change to the latest Isaac ROS Dev base image for aarch64 which includes the updated setuptools. We'll update the image again with the issue corrected or the version anchored properly. Thanks for your help!

Okay, perfect. Can you share the steps for making the apriltag work directly into the nx without the docker image?

Isaac ROS Apriltag does not have many dependencies beyond ROS2 Humble on Jetpack 5.0.2. You can use the commands from Dockerfile.humble to build ROS2 from source if you haven't already.

I have installed ROS Humble from source following this ROS guide. Is it the same or do I need to follow the different steps done in Dockerfile.humble?

There are specific versions of system libraries (cmake, and others) that we have pinned for you in Dockerfile.aarch64 and Dockerfile.humble to make compiling from source smooth. However, if you have ROS 2 Humble built from source successfully, then you should try running Isaac ROS packages and see how it goes.


Iceberg 1.6.0 support

Would be great to release a new version,with official support for iceberg 1.6.0
https://github.com/tabular-io/iceberg-rest-image/pull/106

Release with 1.6.0 support
https://hub.docker.com/layers/tabulario/iceberg-rest/1.6.0/images/sha256-f520a03789210e1a4e38eac5970cb77abae248aa511cfce9877b710959fa8f20?context=explore


Cellpose mask labels stopping at 255

Hi,
I've been getting strange results for the last week: the mask labels only take values from 0 to 255 even though there are many more cells in my data. Before last week everything was working fine (>2000 cells were detected and labelled per stack).
I am using the git version of Cellpose and the cyto2 model. I get the same behavior with the CPU and GPU versions.
I tried reinstalling Cellpose but nothing changed. I also ran my code on Colab on a substack of my data and the labels were fine again.
Thank you in advance for your help!

Did you update other packages?

Not that I know of. I just updated Cellpose with pip install git+https://github.com/mouseland/cellpose.git to fix some bugs.

I met a similar problem before, the mask images is not complete when I read the masks using cv2. However when I tried with PIL it worked as usual. np.array(Image.open(img)).astype(np.int16)

I think cv2.imread('masks.png', -1) should also work (this is how the cellpose imread function works (from cellpose.io import imread)


Add mouseover background and foreground colors to buttons

This UI design layout is great! 👍👍

If you can add a mouse-over background color and foreground color to the button, the entire UI display effect will be even more wonderful!
Windows 10

Good point. When in the side position an unselected Activity Bar icon's foreground colour changes upon hover. That also happens on the Secondary Side Bar tab icons, and on the Panel tab labels.
/assign @sandy081

I asked this question last week at https://github.com/microsoft/vscode-discussions/discussions/912. I assume that this means it's not supported yet, or rather undocumented?

Per #202032, I'd like the ability to theme the entire activity bar when it's in top position, particularly to assign background and foreground colors independently of the sidebar (and also independently of the activity bar in side position).
Personally, I'd prefer to be able to style it according to the same behavior that the side-position activity bar has: the bar has its own background color, the active item has a different background color, and active and inactive icons have independent foreground colors. In particular, I'd want equivalents to at least the following theme colors:

activityBar.background
activityBar.activeBackground
activityBar.foreground
activityBar.inactiveForeground

Probably the rest of the activity bar colors should have top-position equivalents as well, but I happen not to use them.
My reading of OP is that @zhouxinghong wants the top activity bar to be styled more like a list of buttons with the side bar's background color, similar to how input options work. I'm not sure whether those are mutually exclusive requirements, but if it's possible to make both available, it should be the theme that makes the decision of which to use, not a user setting.

I can't understand your needs, but adding mouseover background color and foreground color to the icon button is the most basic need.

Added following colors
"workbench.colorCustomizations": {
    "activityBarTop.foreground": "#0b1691",
    "activityBarTop.activeBorder": "#ff0000",
    "activityBarTop.inactiveForeground": "#ff0000",
  },

to customise acitivity bar item when it is on top like below

Previous versions of the following foreground colors already existed
"workbench.colorCustomizations": {
     "activityBarTop.foreground": "#0b1691",
     "activityBarTop.activeBorder": "#ff0000",
     "activityBarTop.inactiveForeground": "#ff0000",
   },

Even if the properties are set to different names, the same effect can be achieved. Why reinvent the wheel?

The above approach cannot achieve the following requirements: https://github.com/microsoft/vscode/issues/197345

@gjsjohnmurray Good point. When in the side position an unselected Activity Bar icon's foreground colour changes upon hover. That also happens on the Secondary Side Bar tab icons, and on the Panel tab labels.

Added following colors
"workbench.colorCustomizations": {
    "activityBarTop.foreground": "#0b1691",
    "activityBarTop.activeBorder": "#ff0000",
    "activityBarTop.inactiveForeground": "#ff0000",
  },

This list of colors (nor activityBarTop.dropBorder also added in c005fc3) doesn't seem to allow coloring the background of the activity bar independent of the sidebar. I want to emphasize the activity bar as a separate control, similar to sidebar section headers. I also agree that it doesn't solve @zhouxinghong's request for a hover background color. @sandy081, should we open separate issues as feature requests now that this one is closed?

@gjsjohnmurray @sandy081 @zephyrtronium The following foreground colors have existed in previous versions, in vscode 1.40 and earlier.
"workbench.colorCustomizations": {
"activityBarTop.foreground": "#0b1691",
"activityBarTop.activeBorder": "#ff0000",
"activityBarTop.inactiveForeground": "#ff0000",
},

@zephyrtronium mouseover foreground color is supported by activityBarTop.foreground - This is same in all places

activity bar on top
secondary side bar
panel

mouseover background and mouseover border color is not supported in any of the above places. Hence they are not supported.

mouseover background and mouseover border color is not supported in any of the above places. Hence they are not supported.

Hence why we are asking for them. As well as non-mouseover background colors for the activity bar on the top, like it has when it is on the side.

Please file a separate issue for the other colours which you would like to want.

@sandy081 What I want to say is that your work ability is so poor that you can't solve even a single problem. . .

Please file a separate issue for the other colours which you would like to want.

I created #203036 for the colors I'd like. Thanks for your patience, @sandy081.
@zhouxinghong Please don't be disrespectful. Comments like that will get no one anything they want. This community has a code of conduct available at https://opensource.microsoft.com/codeofconduct/. I suggest you read, understand, and follow it, particularly the portions regarding acceptable and unacceptable behavior. Derogatory personal attacks are in the latter category.

Please file a separate issue for the other colours which you would like to want.

I created #203036 for the colors I'd like. Thanks for your patience, @sandy081.
@zhouxinghong Please don't be disrespectful. Comments like that will get no one anything they want. This community has a code of conduct available at https://opensource.microsoft.com/codeofconduct/. I suggest you read, understand, and follow it, particularly the portions regarding acceptable and unacceptable behavior. Derogatory personal attacks are in the latter category.

I plan to give up vscode from now on because I have submitted too many reasonable improvement plans to vscode in the past few years, but no one has effectively solved them. I found a better vscode replacement solution Fleet IDE

Verified that "activityBarTop.foreground" works


CAPTCHA Issue

They made CAPTCHA in order to prevent users from Crawling information
FYI
Thanks

Thanks for the info. I've rewritten the scraper to use packages instead of bruteforce crawling, I hope this will help to avoid the captchas


Local optimisation explodes in memory requirements

Hi,
I am running some global and local optimisation on my somewhat large ODE-based model and when using BlackBoxOptim's BBO_adaptive_de_rand_1_bin_radiuslimited() it works fine even with a popualtion size of 400, however I have tried a few gradient free and gradient-based methods and my HPC jobs keep terminating as the memory usage seems to be limitless. The global optimisation run with 12Gb available but the latest attempt using the NLopt.LN_NELDERMEAD() solver tried to use more than 100Gb of RAM. Is that to be expected for local methods??

do you have a case for us to look at what's causing the memory usage?

I wish. It unfortunately a bit of a complicated setup. Any idea how to best assess the memory usage. It does parallel solves for 8 ODE models at a time, its odd why the usage is so high for local method. What might be away to assess potential memory leakage? Also, is this better discussed on slack rather than hear?

I don't know if this is the exact same problem @jonasmac16 was having @ChrisRackauckas, but I was running into a similar issue when using some local optimisers. Here's an example problem:
sing DifferentialEquations, LoopVectorization, Optimization,
    OptimizationPolyalgorithms, Random, Distributions,
    OptimizationOptimJL, BenchmarkTools, OptimizationNLopt
using Optimization: AutoFiniteDiff
Random.seed!(2992999)
λ = -0.5
y₀ = 15.0
σ = 0.1
T = 5.0
n = 200
Δt = T / n
t = [j * Δt for j in 0:n]
y = y₀ * exp.(λ * t)
yᵒ = y .+ [0.0, rand(Normal(0, σ), n)...]
function ode_fnc(u, p, t)
    λ = p
    du = λ * u
    return du
end
function loglik(θ, data, integrator)
    ## Extract the parameters
    yᵒ, n = data
    λ, σ, u0 = θ
    ## Update integrator
    integrator.p = λ
    ## Now solve the problem
    reinit!(integrator, u0)
    sol = solve!(integrator)
    if sol.retcode ≠ :Success
        return -1.0e12
    end
    ## Compute the Gaussian log-likelihood
    ℓ = -0.5n * log(2π * σ^2)
    @turbo for i in 1:n
        @inbounds obs, sol = yᵒ[i], sol.u[i]
        ℓ = ℓ - 0.5 / σ^2 * (obs - sol)^2
    end
    return ℓ
end
integrator = DifferentialEquations.init(ODEProblem(ode_fnc, y₀, (0.0, T), 1.0), Tsit5(), saveat=t,verbose=false)
negloglik = (θ, p) -> -loglik(θ, p, integrator)
fnc = OptimizationFunction(negloglik, AutoFiniteDiff())
θ₀ = [-2.0, 0.1, 7.8]
prob = OptimizationProblem(fnc, θ₀, (yᵒ, n), lb=[-10.0, 1e-6, 0.5], ub=[10.0, 10.0, 25.0])

sol_lbfgs = @benchmark solve(prob, LBFGS())                             ## 1.25 Gib,    2.591 s
sol_polyopt = @benchmark solve(prob, PolyOpt())                         ## 605.12 MiB,  1.241 s
sol_congjugategradient = @benchmark solve(prob, ConjugateGradient())    ## 34.13 MiB,   65.892 s
sol_gradientdescent = @benchmark solve(prob, GradientDescent())         ## 396.59 MiB,  815.406 ms
sol_bfgs = @benchmark solve(prob, BFGS())                               ## 270.39 MiB,  562.691 ms
sol_particleswarm = @benchmark solve(prob, ParticleSwarm())             ## 35.28 MiB,   71.348 ms
sol_samin = @benchmark solve(prob, SAMIN())                             ## 9.34 MiB,    23.025 ms
sol_bobyqa = @benchmark solve(prob, NLopt.LN_BOBYQA())                  ## 8.58 MiB,    19.154 ms

Here are the resulting benchmarks (also annotated at the end of the code above).
julia> sol_lbfgs
BenchmarkTools.Trial: 2 samples with 1 evaluation.
 Range (min … max):  2.555 s …   2.626 s  ┊ GC (min … max): 2.14% … 2.25%
 Time  (median):     2.591 s              ┊ GC (median):    2.19%
 Time  (mean ± σ):   2.591 s ± 49.658 ms  ┊ GC (mean ± σ):  2.19% ± 0.08%

  █                                                       █
  █▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█ ▁
  2.56 s         Histogram: frequency by time        2.63 s <

 Memory estimate: 1.25 GiB, allocs estimate: 3006172.

julia> sol_polyopt
BenchmarkTools.Trial: 5 samples with 1 evaluation.
 Range (min … max):  1.217 s …   1.248 s  ┊ GC (min … max): 2.06% … 1.76%
 Time  (median):     1.241 s              ┊ GC (median):    1.78%
 Time  (mean ± σ):   1.236 s ± 13.330 ms  ┊ GC (mean ± σ):  1.96% ± 0.34%

  █                 █                        █        █   █
  █▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█▁▁▁▁▁▁▁▁█▁▁▁█ ▁
  1.22 s         Histogram: frequency by time        1.25 s <

 Memory estimate: 605.12 MiB, allocs estimate: 1382119.

julia> sol_congjugategradient
BenchmarkTools.Trial: 75 samples with 1 evaluation.
 Range (min … max):  64.638 ms … 72.480 ms  ┊ GC (min … max): 0.00% … 4.88%
 Time  (median):     65.892 ms              ┊ GC (median):    0.00%
 Time  (mean ± σ):   67.072 ms ±  2.267 ms  ┊ GC (mean ± σ):  1.63% ± 2.46%

    ▂█▄█ ▆  ▂                        ▂
  ▄▄████▄█▆▄█▄█▆▁▆▄▁▁▁▁▁▁▁▄▁▁▄▁▁▁▁▁▄██▁▆▄▄▁▄▆▄▁▁▁▁▁▄▄▁▁▆▄▁▄▄▄ ▁
  64.6 ms         Histogram: frequency by time        71.9 ms <

 Memory estimate: 34.13 MiB, allocs estimate: 82165.

julia> sol_gradientdescent
BenchmarkTools.Trial: 7 samples with 1 evaluation.
 Range (min … max):  795.743 ms … 828.540 ms  ┊ GC (min … max): 1.42% … 1.46%
 Time  (median):     815.406 ms               ┊ GC (median):    1.48%
 Time  (mean ± σ):   815.656 ms ±  11.808 ms  ┊ GC (mean ± σ):  1.65% ± 0.34%

  ▁                       ▁  ▁        ▁            ▁          █
  █▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█▁▁█▁▁▁▁▁▁▁▁█▁▁▁▁▁▁▁▁▁▁▁▁█▁▁▁▁▁▁▁▁▁▁█ ▁
  796 ms           Histogram: frequency by time          829 ms <

 Memory estimate: 396.59 MiB, allocs estimate: 935019.

julia> sol_bfgs
BenchmarkTools.Trial: 9 samples with 1 evaluation.
 Range (min … max):  535.600 ms … 603.560 ms  ┊ GC (min … max): 1.35% … 2.13%
 Time  (median):     562.691 ms               ┊ GC (median):    1.36%
 Time  (mean ± σ):   560.945 ms ±  21.700 ms  ┊ GC (mean ± σ):  1.70% ± 0.45%

  ▁▁       ▁     ▁        █ ▁              ▁                  ▁
  ██▁▁▁▁▁▁▁█▁▁▁▁▁█▁▁▁▁▁▁▁▁█▁█▁▁▁▁▁▁▁▁▁▁▁▁▁▁█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█ ▁
  536 ms           Histogram: frequency by time          604 ms <

 Memory estimate: 270.39 MiB, allocs estimate: 617187.

julia> sol_particleswarm
BenchmarkTools.Trial: 70 samples with 1 evaluation.
 Range (min … max):  67.887 ms … 90.365 ms  ┊ GC (min … max): 0.00% … 9.14%
 Time  (median):     71.348 ms              ┊ GC (median):    0.00%
 Time  (mean ± σ):   71.813 ms ±  4.174 ms  ┊ GC (mean ± σ):  1.76% ± 2.58%

  █ ▃▄        ▁▁  ▁
  █▇██▇▄▆▆▆▄▆▇██▇▆█▄▆▄▇▁▄▁▄▁▁▁▄▄▁▁▁▁▁▁▄▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▄▁▁▁▁▄ ▁
  67.9 ms         Histogram: frequency by time        86.5 ms <

 Memory estimate: 35.28 MiB, allocs estimate: 114987.

julia> sol_samin
BenchmarkTools.Trial: 207 samples with 1 evaluation.
 Range (min … max):  21.353 ms … 42.178 ms  ┊ GC (min … max): 0.00% … 0.00%
 Time  (median):     23.025 ms              ┊ GC (median):    0.00%
 Time  (mean ± σ):   24.239 ms ±  3.169 ms  ┊ GC (mean ± σ):  1.63% ± 4.70%

    █▃▆ ▂
  ▃▅███▇█▆▇▅▅█▄▅▃▂▂▁▁▂▂▄▃▃▃▁▂▂▂▂▄▁▃▃▂▂▁▂▂▁▁▂▂▁▁▁▁▁▂▂▂▁▁▁▁▁▁▁▂ ▃
  21.4 ms         Histogram: frequency by time        36.3 ms <

 Memory estimate: 9.34 MiB, allocs estimate: 35467.

julia> sol_bobyqa
BenchmarkTools.Trial: 251 samples with 1 evaluation.
 Range (min … max):  18.080 ms … 30.961 ms  ┊ GC (min … max): 0.00% … 0.00%
 Time  (median):     19.154 ms              ┊ GC (median):    0.00%
 Time  (mean ± σ):   19.913 ms ±  2.040 ms  ┊ GC (mean ± σ):  1.61% ± 4.98%

   ▃▃█▂▂   ▁
  ▄█████▇█▄█▆▇▄▃▆▅▄▃▄▃▃▃▂▂▂▃▃▅▂▁▃▁▁▁▂▁▂▃▁▃▁▂▂▁▁▂▁▁▂▁▃▁▂▂▁▂▂▁▃ ▃
  18.1 ms         Histogram: frequency by time        26.6 ms <

 Memory estimate: 8.58 MiB, allocs estimate: 21253.

Certainly LBFGS requires a ton of memory compared to the final LN_BOBYQA solution - maybe these are just issues with the packages rather than how this package is using them? I've tried optimising my loglik code a bit with using integrators, but maybe my own loglik is bad and draining more than it needs to.

That's total memory, not peak memory, and a result of how Optim.jl implements BFGS by using \ in an allocating way, thus allocating new caches for the LU-factorizations all of the time.

Closing as it's not actually peak memory.


Chapter 9 load balancer ubuntu 20.04

Running the load balancing playbook results in no response when doing the curl loop.  Works for 18.04 though.

Turns out from ubuntu 18.04 to 20.04, Cookie is now set-cookie.  Will suggest grep change elsewhere.

Turns out from ubuntu 18.04 to 20.04, Cookie is now set-cookie.  Will suggest grep change elsewhere.

Interesting change! I'll have to get that re-tested and updated for the latest version of the book. I thought I had re-tested that example but apparently not.

Retested again as I'm messing around with Jenkins.  cookie would also work.  Case sensitive.

I've decided to update the example to use case-insensitive grep: grep -i cookie — should work no matter what now!


InformationBox added

Easiest to check its function by checking the competition page in "beheer". Currently using a lot of states, might need to improve later, but it works for now :)

Very impressive work pal!


Text input

There are problems with special keys like "Shift", that end up as an extra character in the text input field

Fixed


Added support for @hide tags

Plus two other small changes.

I find this feature very useful for implementations of a large interface where you only want to document methods to use the implementation but not all the methods of the implemented interface. Can it be merged?

Hey @StenSoft, I just pushed a change to implement this. You should be able to use @hide or @exclude (which seems may become standard Javadoc).
I wanted to avoid passing the None values through these all of these methods so I added the feature to the existing filter support.

Thank you, I will give it a try


Feature request - drone agents set port from env variable

Hi! Drone 0.8.1 here
I'm currently scaling drone via hashicorp nomad, got 1 server and random amount of agents.
I'd like to be able to tell drone agent which port to use, so they can co-locate on one machine (optimal for lightweight tasks).
Currently all agents have random port, they are reaching server just fine, are accepting tasks without issues, but:
Dec 14 14:21:31 frankenci logz server frankenci ci0[1530]: INFO: 2017/12/14 14:21:31 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write tcp <IP_ADDRESS>:9000-><IP_ADDRESS>:38194: write: broken pipe"
Dec 14 14:21:41 frankenci logz server frankenci ci0[1530]: INFO: 2017/12/14 14:21:41 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write tcp <IP_ADDRESS>:9000-><IP_ADDRESS>:38206: write: broken pipe"
Dec 14 14:21:51 frankenci logz server frankenci ci0[1530]: INFO: 2017/12/14 14:21:51 transport: http2Server.HandleStreams failed to receive the preface from client: read tcp <IP_ADDRESS>:9000-><IP_ADDRESS>:38220: read: connection reset by peer
Dec 14 14:22:01 frankenci logz server frankenci ci0[1530]: INFO: 2017/12/14 14:22:01 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write tcp <IP_ADDRESS>:9000-><IP_ADDRESS>:38234: write: broken pipe"
Dec 14 14:22:11 frankenci logz server frankenci ci0[1530]: INFO: 2017/12/14 14:22:11 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write tcp <IP_ADDRESS>:9000-><IP_ADDRESS>:38248: write: broken pipe"```

So, basically all agents continue to listen on port 9000, but this port is port_mapped to host to some random value. It would be truly great if i could specify env var like `DRONE_AGENT_PORT` and agent just used it.

Thanks a lot in advance!

This is already supported with docker port mappings. The server listens on port 9000 inside the container, but this can be mapped to a different port (example 11000 below) using the following command line options:
docker run -p 11000:9000  drone/drone

The agent can then be configured to connect to the new port:
DRONE_SERVER=<address>:11000

Or alternatively you can just put the two instances on separate user-defined docker networks to avoid collisions.
If you have any additional usage question, please start a thread at https://discourse.drone.io for

Thanks for rapid response! But i was talking about agents, not server. Gonna open thread on discourse soon.

I'd like to be able to tell drone agent which port to use

yes, you can tell the agent which port to use with DRONE_SERVER. This environment variable should be in the format of <ADDRESS>:<PORT>


add the os version and .mrt file

add windows server 2022 to applies version
add Modified Region Table (*.mrt)

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


Add a texture category

The categories attribute of color spaces is intended to allow applications to filter the list of color spaces presented in menus to be appropriate for either a type of task or a type of user.  The category values currently used in the CG and Studio config are 'working-space' and 'file-io'.  Based on feedback from Apple at a recent Configs WG meeting, it sounds like it would be helpful to introduce a 'texture' category.
Here is the list of color spaces I propose adding this to (all of these are in both the CG and Studio configs):
ACEScg
Linear P3-D65
Linear Rec.2020
Linear Rec.709 (sRGB)
Gamma 1.8 Rec.709 - Texture
Gamma 2.2 AP1 - Texture
Gamma 2.2 Rec.709 - Texture
Gamma 2.4 Rec.709 - Texture
sRGB Encoded AP1 - Texture
sRGB Encoded P3-D65 - Texture
sRGB - Texture
Raw

Per my action-item from today's configs working group meeting, I've added the "texture" category to the spreadsheet for the above list of spaces.
@KelSolaar , we'll have to confirm that it works for "Raw" since that one is listed as "Implicit" rather than "Included", so I'm not sure if it picks up the categories from the spreadsheet?

This is now implemented.


Fixed markup

In "Uploading to the Directory", second bullet point, code block did not have proper indentation

Thanks!


Vaadin 14 and gradle

Is there an example of using vertx-vaadin with vaadin 14 and gradle? There is a sample project in your repo but not sure if it is fully functional.

Actually there's no working example using gradle.
There was an issue about gradle build on the samples repo, but i is outdated.
I'm not a gradle user, but I think that adding the vertx-gradle-plugin to an existing gradle project should be enough to run an application or to build an executable jar.

Thanks a lot for your reply.


Storyboard systemVersion conflicts

Per http://haidersabri.com/2012/10/17/xcode-storyboards-and-collaboration-annoyance/:

That property turns out to be related to the version of the operating system the developer is running on. So we decided to do all of our mountain lion updates, and found that it solved that little nuisance. Its a temporary fix, as we all know it’ll come roaring back the moment one of us decides to run a OS X update in the future. Boo!

Seems my mac is up to date... running 10.10.3... :crying_cat_face:

@ryangrimm Have you run into this working with other dev's before? Can you confirm you're on an earlier version of the Mac OS ?


Upstream some list functions

This PR includes some functions for dealing with lists and property tests for those functions.
(#274 had to be closed so this pr could be from a different branch.)

Replaced by #306


Change management commands to use Realm.string_id instead of Realm.domain.

From discussion on chat.zulip.org; copying here so we can keep track of it.
Example management command change is at rishig/zulip/management-commands-get-realm-example.
A good way to find all the commands to be changed is
git grep 'get_realm(' | grep 'management'
You can ignore the following line in populate_db.py: set_default_streams(get_realm(old_message["domain"])
@reyha, I believe you are currently working on this?

@rishig Thanks for opening an issue for this. I am on it and will be submitting a PR soon.


Adding CountDown Timer

Hey I made CountDown Timer Project Which Is Very Good!
This Project is very Helpfull,
I Make This Project With the help of HTML, CSS & JavaScript,
The CSS & JavaScript Code are Available in very well mannered! & Easy to understand!

@kalashvasaniya please remove '.' from the end of the folder name because it is causing issues while locally cloning and testing the code.

Done!

@kalashvasaniya manifest file is missing :(

Added :)

good job @kalashvasaniya

Thanks :)


Update calico manifests to v3.25.0

How to categorize this PR?

/area testing
/kind enhancement
What this PR does / why we need it:
This PR updates the calico manifests used in local-kind setup to v3.25.0
Release notes: https://github.com/projectcalico/calico/blob/v3.25.0/calico/_includes/release-notes/v3.25.0-release-notes.md
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

NONE

/lgtm

/milestone v1.64


Users should be able to update account settings

Once a user logs in they might want to change their name or email address.

[ ] UI to update the user.
[ ] API to update user, restricted by the logged in user.

Assigning to @dadukhankevin for his intern work.

Here is a comment (so I can be assigned)


Uniform point clouds

Currently, a point cloud is assumed to be arbitrary distributed in space. However, if it could be guaranteed that it is uniformly distributed with a known point spacing, this would allow for performance improvements and other things like volume correction, see https://github.com/kaipartmann/Peridynamics.jl/issues/32#issuecomment-2097641189.

Draft:
abstract type AbstractDiscretization end

struct PointCloud <: AbstractDiscretization
    position::Matrix{Float64}
    volume::Vector{Float64}
end

struct UniformPointCloud <: AbstractDiscretization
    ΔX::Float64
    position::Matrix{Float64}
    volume::Vector{Float64}
end


Request: Add ADD_SUCCESS_AT macro for third party libraries

As per https://github.com/rollbear/trompeloeil/pull/169#issuecomment-554357125 it would be nice to have a ADD_SUCCESS_AT to inform doctest of a successful assert in the same way ADD_FAIL_AT informs it of a failed assert.

This will have to wait... I suggest going forward with the other PR to the mocking framework and using CHECK("message") - just like at the moment...

This feature needs an example showcasing how the new macro should be used.


send-receive match

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

testhub/commands/receive.ts
:white_check_mark:Succeeded

testhub/commands/sendReceive.ts
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Implement a dynamically reconfigurable semaphore

This repository is intended to provide some primitives similar to the ones in the quotapool package in Cockroach, where Pebble can also use them.
add Queue
This commit adds a FIFO queue implementation which is based on
cockroachdb/pkg/util/quotapool.notifyQueue. Most of the code is
copied from notifyQueue and modified a bit.
add Semaphore
This commit adds a semaphore with dynamically configurable capacity.
It is a slightly simplified version of
cockroachdb/pkg/util/quotapool.IntPool.
The implementation is based on quotapool (and to a lesser extent
x/sync/semaphore).

CC @ajwerner - imitation is the sincerest form of flattery :)

TFTR! The repo already has the license file.

I think the quotapool could use a rewrite to make it generic -- the APIs are kind of a mess. The rate limiting stuff in there is handy and may prove useful to pull out one day.

Yes, I will probably pull out the rate limiter too, I think we will need one in Pebble.

Andrei at the time pushed me towards the API where the allocation is paired with the pool via the returned object, but it certainly came with a degree of cruft and overhead. The thing that gets returned from Acquire escaped to the heap so it needed to be pooled too. I can see it both ways.

Yeah, it's a bit safer but I don't like the object that gets passed around. An example from a recent patch I worked on - you could have a "before" and "after" callback that could use a semaphore internally, but getting some unknown object from the "before" to pass it back to "after" is pretty nasty.

Yeah, it's a bit safer but I don't like the object that gets passed around. An example from a recent patch I worked on - you could have a "before" and "after" callback that could use a semaphore internally, but getting some unknown object from the "before" to pass it back to "after" is pretty nasty.

Without it you have implicit coupling which is also nasty. The after callback has to make sure to computes its acquisition the same way and to use the same semaphore. To me the problem is less that there's an object to pass around -- in some ways that part is nice because it describes an explicit resource, and more the allocations required to do it. There's probably a middle ground where internally the object doesn't hold pointers and doesn't escape.
Also, is it really an "unknown object" if the after callback knows about the semaphore?

Also, is it really an "unknown object" if the after callback knows about the semaphore?

It's an unknown object to the layer that uses the callbacks opaquely. In my example, this was Pebble and the semaphore was in CRDB. So the before callback would need to return an interface{} (I guess) and Pebble would pass that back to the after callback.

There's probably a middle ground where internally the object doesn't hold pointers and doesn't escape.

Of course, it could just be a struct containing an integer in this case. It needed to be a pointer in quotapool because we were using the generic QuotaPool underneath

Also, is it really an "unknown object" if the after callback knows about the semaphore?

It's an unknown object to the layer that uses the callbacks opaquely. In my example, this was Pebble and the semaphore was in CRDB. So the before callback would need to return an interface{} (I guess) and Pebble would pass that back to the after callback.

Isn't that the same as just having the callbacks close over the allocation object? Either way, you will  force that allocation object to escape to the heap, which isn't great. As it stands you were already allocating the closures for before and after, right?
I imagine there's some formulation that avoids all allocations via an interface and a use of pools such that before returns an interface as opposed to a callback and the method on that interface throws itself back into a sync.Pool upon being called.

Updated the semaphore to keep track of the total number of requests that had to wait, which is more useful to hook up to a metric.

I plan to use this semaphore for limiting the number of parallel block loads per store in Pebble.

OOPS @ajwerner I missed your comments. I will send out a separate PR to you, thanks!


No such file or directory error

relai issue: https://github.com/breez/breez-sdk-relai/issues/115

This was an overloaded host, we have re-balanced our resources to prevent these in the future.


ImagePickerIOS

Hey there and thank you for using React Native!
React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
Do the checklist before filing an issue:

[ ] Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
[ ] Have a usage question? Ask your question on StackOverflow. We use StackOverflow for usage question and GitHub for bugs.
[ ] Have an idea for a feature? Post the feature request on Product Pains. It has a voting system to surface the important issues. GitHub issues should only be used for bugs.

None of the above, create a bug report
Make sure to add all the information needed to understand the bug so that someone can help. If the info is missing we'll add the 'Needs more information' label and close the issue until there is enough information.

[ ] Provide a minimal code snippet / rnplay example that reproduces the bug.
[ ] Provide screenshots where appropriate
[ ] What's the version of React Native you're using?
[ ] Does this occur on iOS, Android or both?
[ ] Are you using Mac, Linux or Windows?

This does not tell us what you are actually creating this issue for. Can you provide details around what issue you are having?

@facebook-github-bot label Needs more information

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/imagepickerios
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.

@facebook-github-bot label Icebox

@facebook-github-bot close

This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a temporary error. The following address(es) deferred:
<EMAIL_ADDRESS>Domain thumbmunkeys.com has exceeded the max emails per hour (68/60 (113%)) allowed.  Message will be reattempted later
------- This is a copy of the message, including all the headers. ------
Received: from filter01.reliabledns.org ([<IP_ADDRESS>]:34634)
by en02-ams.stablehost.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
(Exim 4.87)
(envelope-from<EMAIL_ADDRESS>id 1c671E-000jTP-Nv
for<EMAIL_ADDRESS>Mon, 14 Nov 2016 02:29:14 +0000
Received: from github-smtp2-ext3.iad.github.net ([<IP_ADDRESS>] helo=github-smtp2b-ext-cp1-prd.iad.github.net)
by filter01.reliabledns.org with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
(Exim 4.86)
(envelope-from<EMAIL_ADDRESS>id 1c671D-000867-K7
for<EMAIL_ADDRESS>Sun, 13 Nov 2016 19:29:12 -0700
Date: Sun, 13 Nov 2016 18:28:57 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com;
s=pf2014; t=1479090550;
bh=v/e97vaXkdAEB1FDHXkezk3HhdRU2LNMsl36LNQvVDY=;
h=From:Reply-To:To:In-Reply-To:References:Subject:List-ID:
List-Archive:List-Post:List-Unsubscribe:From;
b=LvgowTJyNVkv3T/6HTf0DmNdc3PLwsrrsSoHALEa+Pc3uGrUdF3SJcmwJy9zU4Bag
z4p59r/p8ZvlIzZhQ6Apodratsilc5qTH+a0vPqSEhSyEpUs6twP+hkvyFPxqBtWWF
3ASMt+NrEZaLv0I35cocy+whA30pjm2da3AYph1E=
From: Nicolas Charpentier<EMAIL_ADDRESS>Reply-To: facebook/react-native<EMAIL_ADDRESS>To: facebook/react-native<EMAIL_ADDRESS>Message-ID<EMAIL_ADDRESS>In-Reply-To<EMAIL_ADDRESS>References<EMAIL_ADDRESS>Subject: Re: [facebook/react-native] ImagePickerIOS (#9350)
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_582921697aadb_33243fad0a03b140491514";
charset=UTF-8
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: charpeni
X-GitHub-Recipient: bunnyboy1
List-ID: facebook/react-native <react-native.facebook.github.com>
List-Archive: https://github.com/facebook/react-native
List-Post<EMAIL_ADDRESS>List-Unsubscribe<EMAIL_ADDRESS>https://github.com/notifications/unsubscribe/ARoNg0XbFCKni8DtQnBZYGgf_NGVGAV3ks5q98dpgaJpZM4JiJbI
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address<EMAIL_ADDRESS>Received-SPF: pass (filter01.reliabledns.org: domain of github.com designates <IP_ADDRESS> as permitted sender) client-ip=<IP_ADDRESS><EMAIL_ADDRESS>helo=github-smtp2b-ext-cp1-prd.iad.github.net;
X-SPF-Result: filter01.reliabledns.org: domain of github.com designates <IP_ADDRESS> as permitted sender
Authentication-Results: filter01.reliabledns.org; dmarc=pass header.from=github.com
X-Filter-ID: s0sct1PQhAABKnZB5plbIamwIYzgudGL4tMY9zS3pea7KY6rzXjgC+rgKYUjsj8D0JuF70A4EJMc
Wn6O/bsgoWSYW6KbZfj8apx6ohl75uX35Caz8bqM3i8tzwcg+lnkZzoX7PhhDs80mBQKIGWwu/ZE
jF4Pov/vsc2Cwocc9pJwJVSL6KLw+g28lkb31HyS94pE1Cssu3RLQ0/o4r6NbA8zp1yYIFRkRN8y
Bn+CxV1VDGmTnoU2OG/dPTK/JWzkeVHzGzh9oWlFNnr5yGzNHpz3A1ed2ITkOuMtrwds5D4lTQ4T
s4pbWtZ3YR/lXG1VJq/4FZbX1lzD9O+fyiIjB8wTNR/tjjZvmBdM/4lPZO2sASVdHfbtk3LlI8pB
wr4jGeKz8vlEl/GSEiCnxc6Ard0BaVp3jhK5GOBJIv+LCtDC+P7wO5Dn5esh4VR+ptzHN0JkcMmQ
sV7j9toT40ga/GYzx2Zgyhf3OXiddZgacWc1/+H6OHgtV1bmxcq0CB3pmrFpDzdgJQc/rZDiOC7K
RpZxGk3X7U/CrpemaTYEqjR6fyHrrsngmi97syQy+4L3p7+eg7tptOUU98CNo4IBbK0jiD6XqsJZ
tjQxlyCdsezJow6Hi0pxrFS5O4yOAY8o6W0BvTIC60F9LNR/0kDSJQ==
X-Report-Abuse-To<EMAIL_ADDRESS>Authentication-Results: reliabledns.org; spf=pass<EMAIL_ADDRESS>Authentication-Results: reliabledns.org; dkim=pass header.i=github.com
X-SpamExperts-Class: ham
X-SpamExperts-Evidence: dnswl/se-reputation (trusted ham)
X-Classification: not-spam/dnswl
X-Recommended-Action: accept
X-Spam-Status: No, score=1.0
X-Spam-Score: 10
X-Spam-Bar: +
X-Ham-Report: Spam detection software, running on the system "en02-ams.stablehost.com",
has NOT identified this incoming email as spam.  The original
message has been attached to this so you can view it or label
similar future email.  If you have any questions, see
root@localhost for details.
Content preview:  @facebook-github-bot close -- You are receiving this because
you are subscribed to this thread. Reply to this email directly or view it
on GitHub: https://github.com/facebook/react-native/issues/9350#issuecomment-260234696
[...]
Content analysis details:   (1.0 points, 5.0 required)
pts rule name              description

-0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at http://www.dnswl.org/, no
trust
[<IP_ADDRESS> listed in list.dnswl.org]
1.5 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
[score: 0.0003]
1.5 HTML_IMAGE_ONLY_20     BODY: HTML: images with 1600-2000 bytes of words
0.0 HTML_MESSAGE           BODY: HTML included in message
-0.1 DKIM_VALID             Message has at least one valid DKIM or DK signature
0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily valid
-0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from author's
domain
X-Spam-Flag: NO
----==_mimepart_582921697aadb_33243fad0a03b140491514
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
@facebook-github-bot close
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/facebook/react-native/issues/9350#issuecomment-260234696
----==_mimepart_582921697aadb_33243fad0a03b140491514
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
@facebook-github-bot close
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.

----==_mimepart_582921697aadb_33243fad0a03b140491514--


Issue in using batch_image_detection in yolov8_base.py

Search before asking

[X] I have searched the Pytorch-Wildlife issues and found no similar bug report.

Bug
I'm using RTX3090 as my GPU with a lot of available space to get detections on 5,000 images, but after sometime, I just get an exception stating that too many files are open. I've attached an image of the error for your reference.

Environment
No response
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?

[ ] Yes I'd like to help by submitting a PR!

Hi @ayush2725! thank you for reporting the issue. Upon review, we believe the error was due to a missing data loader in the function. We have addressed this issue and made the necessary corrections in the latest version of the code. Please update to the most recent version and let us know if this resolves the error on your end.


Should we link WebHost convienance methods under Startup class examples?

when you have some time

@scottaddie ... your Midwestern sense of humor is showing! 😀 lol
Let's go ahead and discuss openly ...
We can't have both the WebHost extension method and the Startup class shown for every example. However, a link might not be out of the question. Each place in the docs where a Startup class example is shown could have a link ... perhaps a floating link under the example ...

[See how to configure the preceding example using WebHost extension methods](xref:fundamentals/startup#convenience-methods).

See how to configure the preceding example using WebHost extension methods.
... and that goes to where we show how to do it ...
https://docs.microsoft.com/aspnet/core/fundamentals/startup#convenience-methods
... and that's pretty much all we'd need to do to surface it. As @Tratcher lightly implied in a passing remark, the 😀 NutJob Pattern:tm: 😀 is a good and valid approach to simplifying startup.
If we agree to do this (and I'd like to tackle it if so), it's a Backlog item. I would aim for June when I have a bit more free time ... if you catch my drift. :smile:

@guardrex Do we have many customers asking to see the WebHost extension methods instead? If not, let's stick with just the Startup class examples. That's what the templates use after all.

Yes on Slack ... it has come up several times. Generally speaking ... and this isn't a conclusion based on any data ... when devs see the extension methods, they 😍 that approach for run-of-the mill LOB web apps with simple startup scenarios.
I took to them myself immediately. I hate looking around all over the bleed'in place for configuration: config files ... env vars ... classes in several different files ... managing all of that stuff. I like everything in one place and apps that detect their environment (dev, staging/testing, prod) (via the server they're on in my case) and then configure themselves accordingly. My apps almost never use config files or env vars. Most of the time, I use a single Program.cs that has everything. Downside: config requires restart. Upside ... most restarts involve more than just a simple config change, so it doesn't matter anyway ... a restart is usually needed when config changes. Admittedly, my apps are simple LOB web apps ... not some of these giant creatures in complex startup scenarios.
Anyway ... yes ... my gut tells me from Slack chats that devs :heart: the WebHost extension methods and they usually only find out about them because someone tells them or they randomly discover them looking at sample apps around the Net.

I've given it some thought, and it feels like the trouble and physical space required to do this outweigh the benefit. If they see the section in the startup topic, they're good.


Create MessageCollector.next

Allows using await with message collectors (ES7)
Hydrabolt approved™

"Whatever it is I like it" - people who use discord.js


RangeError (index): Invalid value: Only valid value is 0: 1 on Pixel 5 phone

When I run my app on Google Pixel 5 (API 32) (both device and emulator) the following throws error:
CldImg cldimg = CloudinaryObject.fromCloudName(cloudName: 'somename').image('someId');
print(cldimg); // throws: RangeError (index): Invalid value: Only valid value is 0: 1

On other phones everything works.
flutter doctor:
[✓] Flutter (Channel stable, 3.13.9, on macOS 14.0 23A344 darwin-arm64 (Rosetta), locale en-KG)
    • Flutter version 3.13.9 on channel stable at /Users/temair/Programs/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d211f42860 (6 weeks ago), 2023-10-25 13:42:25 -0700
    • Engine revision 0545f8705d
    • Dart version 3.1.5
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/temair/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • ANDROID_HOME = /Users/temair/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.14.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.84.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.76.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 14.0 23A344 darwin-arm64 (Rosetta)
    • Chrome (web)    • chrome • web-javascript • Google Chrome 119.0.6045.199
    ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated
      with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Hi @temirfe
Thank you for reporting the issue, we'll take a look ASAP.

Hi there @temirfe,
Currently, we are unable to replicate your issue. Is there any additional information you could provide that can help us reproduce your issue?


MESA_GL_VERSION_OVERRIDE=4.5 missing in some configurations (possibly related to old hardware)

Describe the bug
NixOS suffers from the same problem described at https://forum.winehq.org/viewtopic.php?f=8&t=34889.
In my case, after I have run Google Chrome, particularly if I played audio and/or video, the 3D performance of a rather old game is awful, but as the thread shows, it's not specific to just that one game.
If I log out and then back in, it works again, but NixOS should be about creating a predictable experience, which this is not.
Supposedly, https://gitlab.freedesktop.org/mesa/mesa/-/commit/960c86d6787437b643825baa230bc0cd7f9f7540 should have fixed this issue, but I don't know whether that commit ever made it into a NixOS Mesa release. (One would expect so, but in that case their fix doesn't work. )
Steps To Reproduce
See linked thread. I am using Plasma5, which is likely irrelevant.
Expected behavior
I should be able to run any browser, close that browser, and then run an ancient game.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
21.11.git.ed02c2ba038 (Porcupine)
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13

# Please note that I know why this doesn't, work, but it suggests that perhaps this is not a command that should be suggested for people to run.

That particular commit hash made it to mesa-21.2.0  (shown directly on the page you linked).  So it is contained in NixOS 21.11 (mesa-21.2.6 now, 21.2.5 months ago).


New version: OctopusDeploy.Server version 2024.3.12957

Checklist for Pull Requests

[ ] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

@vedantmgoyal9 I know it's off-topic, but can you see my issue in @rustreleaser-org/rust-releaser#2


Set minimum supported ember version at 2.18

Based on the community survey results there is still enough of a user base for 2.18 that we'll need to maintain support for a little longer while people continue to upgrade to ember 3.x.
2.18 is a sensible place to stop as a number of polyfills for new behaviour only go back to 2.18 and continuing to support older versions will make it harder to keep up with the pace of ember development.
Don't merge until #696 (sorry I stupidly chained these branches together locally).

@alexander-alvarez , @snewcomer in principal do you foresee any issues with this?
Obviously I'll rebase once we've updated 2-x branch to ember v3.8 which will leave us with just the one commit here.

2 LTS-es is pretty typical in the dev world :+1:  from me


[Bug]: Lengthy fetching metadata times

What happened?
From #112.

I've noticed that my sync gets stuck on this stage for a long time. On my phone it takes around 2-5 minutes to get past it, then it syncs like normal. While on my computer I left it for around 10 minutes and it didn't work so I gave up.
As @sboesen said it might be the metadata size. I'll try and take a look as well. Resetting the metadata might be a temporary fix.
Would be interested in finding the exact cause of this and seeing if we can fix it.
What OS are you using?
Windows, Android
What remote cloud services are you using?
Dropbox
Version of the plugin
0.4.40
Version of Obsidian
No response
Using password or not

[X] Yes.

Ensure no sensitive information

[X] I ensure that no sensitive information is submitted in the issue.

I wonder if I just have a high amount of deletions in my metadata file. Maybe there is a more efficient way to store deletions? Maybe keeping track of the number of different devices and if all devices have synced a deletion then removing it from the file. Instead of them stacking up.
I believe I downloaded my metadata file from the remote, but I'm not sure how to decrypt it. Encrypted it is 16.2 KB on my computer, which comparing to .md files seems quite big.

I had to reset the metadata since it was a personal vault I need for school tomorrow, but I can confirm that syncing works now. I still have the old downloaded copy of the metadata for debugging if it's needed though.

@sboesen What would your thoughts be on having an array of devices on the metadata. Each device's plugin can assign itself a new index and add itself to the metadata list.
Then each deletion in the metadata can have the same array but each device has a boolean for if it has been synced on it. Once every device is true, it can remove the deletion from the metadata file.
Hopefully this could keep the sizes down. I can implement this if it sounds good.

I believe I downloaded my metadata file from the remote, but I'm not sure how to decrypt it.

Yeah this is annoying - opened #129 to make this easier to troubleshoot.

@sboesen What would your thoughts be on having an array of devices on the metadata. Each device's plugin can assign itself a new index and add itself to the metadata list.
Then each deletion in the metadata can have the same array but each device has a boolean for if the deletion has been synced on it. Once every device is true, it can remove the deletion from the metadata file.
Hopefully this could keep the sizes down. I can implement this if it sounds good.

This does sound good, but if a device is offline or plugin is reinstalled I assume it will create a new "device" and we'll be left with the problem? Just thinking of edge cases. I'm not sure a great way to deal with this myself - what you suggested should work for 80%+ of the time, and I think it would really help!

but if a device is offline or plugin is reinstalled I assume it will create a new "device"

Yeh there could be a build up of devices. Could implement a manager in settings and allow users to add a name of their choice to each device. Then allow the option of just removing devices.
I wonder if the plugin has access to the device name? Like "iPhone 11" etc and could assign that name by default.

That's a great idea! We could possibly auto prune devices which haven't synced in N days, say 60. Worst case people have extra deleted files on devices they don't use much.


Background ApiService

Users uploading large files, or multiple files, might want to background the app and continue the download that way. A PN could be sent to make the user know when the download is done.

@wellhat I'm struggling to find good info on how to upload in background in Xamarin, lmk if you find any

I've implemented background uploading @tomShoutTheSecond

Added upload complete notification on Android, thinking we should add a "Sending File..." notification as well

With progress indicator would be ideal
On Wed, 2 Jun 2021 at 16:03, Tom @.***> wrote:

Added upload complete notification on Android, thinking we should add a
"Sending File..." notification as well
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SkyLabs-Innovation-Group/SkyDrop/issues/37#issuecomment-853104711,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADTSYQUZRZ3OSEEQLHYEPNLTQZB35ANCNFSM42HP4CFQ
.

--
LinkedIn: https://www.linkedin.com/in/jacob-hatwell-762688152/