update android support library to androidx

Shouldn't this also enable AndroidX and jetifier in the gradle.properties? There are already PRs at various stages of completion for AndroidX Migration:
• https://github.com/kmagiera/react-native-gesture-handler/pull/650
• https://github.com/kmagiera/react-native-gesture-handler/pull/524
• https://github.com/kmagiera/react-native-gesture-handler/pull/460
Maybe we can consolidate them?

Thank you @OmranElmasry for sending this. Would love to finally merge one of the androidX migration PRs, however there is not a single one passing CI checks. Would you mind taking a look? I think it'd require that you migrate example project

in gradle.properties
android.useAndroidX=true
android.enableJetifier=true

Hey guys, check this tweet for AndroidX support with backward compatibility 👍 https://twitter.com/jdnichollsc/status/1162451046544879616

It's already done. Thank you!


ChatBard Not working

Attribute ChatBard Not working

It runs smooth

Using github version not pypi version.

Yes, Thanks I was using the pip version and Now it is working fine


PosenetExtension for iOS

PosenetExtension for iOS companion. Currently there are issues with the communication between Swift and JS code.
@ewpatton

Can one of the admins verify this patch?

Hi evan. I'm so sorry. I seemed my git push didnt push my changes to my remote before i opened the PR!

I've rebased this onto ucr and updated the logic to work with the new BaseAiComponent class.


python312Packages.deezer-python: 7.1.0 -> 7.1.1

Diff: https://github.com/browniebroke/deezer-python/compare/refs/tags/v7.1.0...v7.1.1
Changelog: https://github.com/browniebroke/deezer-python/releases/tag/v7.1.1

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-reviewd workflow started
Status and logs: https://github.com/nixosbrasil/nixpkgs-reviewd/actions/runs/12498809743
Extra args: ``

nixpkgs-reviewd workflow finished
Status and logs: https://github.com/nixosbrasil/nixpkgs-reviewd/actions/runs/12498809743
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 368214

x86_64-darwin

:white_check_mark: 4 packages built:

python312Packages.deezer-python
python312Packages.deezer-python.dist
python313Packages.deezer-python
python313Packages.deezer-python.dist

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 368214

aarch64-darwin

:white_check_mark: 4 packages built:

python312Packages.deezer-python
python312Packages.deezer-python.dist
python313Packages.deezer-python
python313Packages.deezer-python.dist

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 368214

x86_64-linux

:white_check_mark: 4 packages built:

python312Packages.deezer-python
python312Packages.deezer-python.dist
python313Packages.deezer-python
python313Packages.deezer-python.dist


Cannot find metadata.rb when using specifying cookbook.metadata in Buildfile.

Cannot find metadata.rb when using specifying cookbook.metadata in Buildfile.
An error occurred while reading the Berksfile:

  Could not open or read: '/Users/athompson/code/chef/chef-rapid7-ruby/.builderator/metadata.rb'

Yeah, that feature's never going to work because of the way builderator wraps Berkshelf now. The metadata Berksfile method instructs Berkshelf to look in the same directory as the Berksfile for a metadata.rb. Because we generate a Berksfile in a sub-directory, there'll never be a metadata.rb file to load.
Instead, add a cookbook with a relative path.

@jmanero-r7 was this fixed by #68?

Closing this


Help! Cannot "get PDF" on a large document I have created

Browser Type/Version: Google Chrome (most recent update)
Issue Description: Cannot get PDF of brew. I have created quite a sizeable brew for a home brew camp (about 140 pages), and have now gone to get a pdf of the final project, only to get time-outs, failures, and page not responding errors at all attempts.
Can someone please advise why I cannot seem to get a final copy of this brew?

The simple answer is that rendering a brew that large takes up too much memory and crashes Chrome. It doesn't crash while editing it, because I have written special code that only renders the page you are currently looking at.
You could try and reduce the filesize of the images, but I doubt that would be enough. I suggest just splitting it out into smaller brews, like by chapter.
I did not design the site to handle people writing entire books in it, haha. Hopefully that helps.

Is there any way around this? I mean, I suppose I could break it all up, but that will reset my page numbering for each chunk, meaning I would have to go back and manually assign all of the page numbers as well.
Is there any way in increase chromes available memory?

I'm having a similar issue where it renders fine,  however it's only the first 3 pages (of the original 35 pages)... ill try the slitting up but the page numbering would be an issue for me too

@Kanaellars this is getting out of the scope of what I can help you with. However if you issue with breaking up your brew is page numbers is page numbers, look into using CSS counter resets
@pbexxx You are having a completely different problem. If it's rendering only a subset of your pages, this is most likely because you have formatted your HTML poorly. This is becoming the most common issue I'm getting. I have an experiemntal HTML checker on my staging version of the site here. copy and paste your brew there and see if any errors pop up.

What would the variable name for the CSS counter reset be?

@Kanaellars You may want to try using a tool like https://www.npmjs.com/package/markdown-pdf along with the Homebrewery CSS to be able to build such a large PDF. This is ultimately not a bug as far as Chrome is concerned since a given page should never be able to use over an upper bound of memory.

@stolksdorf Excellent.
THAT tools should be on the initial homebrew page. I was heavy the same problem rendering a 7 page homebrew and couldn't render 3 pages. That tool alone will help me with the formatting on my brew.
Thanks a lot. Liked the tool so much I might send some money your way.
Do more :D

@calculuschild  This issue can likely can be closed.

@calculuschild  This issue can likely can be closed.

I'm going to leave this open, since the issue is with generating the PDF of large brews, not just viewing them in the editor. I would like to verify with a large (140+ page) brew that it does not crash the browser when generating the PDF.

I'm going to leave this open, since the issue is with generating the PDF of large brews, not just viewing them in the editor. I would like to verify with a large (140+ page) brew that it does not crash the browser when generating the PDF.

I'm going to leave this open, since the issue is with generating the PDF of large brews, not just viewing them in the editor. I would like to verify with a large (140+ page) brew that it does not crash the browser when generating the PDF.

I'm going to leave this open, since the issue is with generating the PDF of large brews, not just viewing them in the editor. I would like to verify with a large (140+ page) brew that it does not crash the browser when generating the PDF.

Alright, I don't see any crashes happening, however I do see that even blank documents with just the background image become tremendously large because the image data for the parchment background is duplicated in each page; this, plus other images, might overload somebody's RAM? But I think this is an issue that deserves its own discussion. Going to close this and open a new issue to address that issue specifically.


[Wrapper] Single Point of Contact for Audit log dynamic logging

Purpose
Current audit log format is
"Initiator : %s | Action : %s | Target : %s | Data : { %s } | Result : %s "

If we want to add dynamic values or extend this format we need to change every audit logs which is not extensible.
Approach
use a custom wrapper around Audit log and append required properties before logging
Ex: for Impersonation Scenario
Earlier
TID: [-1234] [2024-05-30 15:08:23,274] [ecf61266-62d6-47e9-abb9-ab237f0f561b]  INFO {AUDIT_LOG} - Initiator=8122e3de-0f3b-4b0e-a43a-d0c237451b7a Action=Set-User-Claim-Values Target=s****e Data={"ServiceProviderName":"POSTMAN_SBA","Claims":{"http://wso2.org/claims/modified":"2*************************Z","profileConfiguration":"d*****t"},"Impersonator":"d9982d93-4e73-4565-b7ac-3605e8d05f80"} Outcome=Success

Now
TID: [-1234] [2024-05-30 15:08:23,274] [ecf61266-62d6-47e9-abb9-ab237f0f561b]  INFO {AUDIT_LOG} - Initiator=8122e3de-0f3b-4b0e-a43a-d0c237451b7a Action=Set-User-Claim-Values Target=s****e Data={"ServiceProviderName":"POSTMAN_SBA","Claims":{"http://wso2.org/claims/modified":"2*************************Z","profileConfiguration":"d*****t"},"Impersonator":"d9982d93-4e73-4565-b7ac-3605e8d05f80"} Outcome=Success Impersonator : d9982d93-4e73-4565-b7ac-3605e8d05f80

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/9301980979
Status: success

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/9444797322

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/9444797322
Status: success


React Foundations - Introduction

Second paragraph.
Current:
Welcome to the Next.js Foundations course!
Expected:
Welcome to the React.js Foundations course!

@alexandreferreirafr thank you for finding this typo! We have a PR fixing it :)


Diagnose launch failures with gutenberg.org/ebooks

Testaro repeatedly throws errors when the launch act tries to navigate to https://www.gutenberg.org/ebooks/. Diagnose this and either prevent such errors or explain what is wrong with the page.

Testing with an example page showed that the job was being aborted because of a page-load time greater than 15 seconds. Greg Newby explained that recent issues have caused slow loads.


Make use of "only" parameter on Danbooru API index calls

Centralize all network API calls to "get" function
Switch to using JSON only for URL addons
Make "expiry" optional for unsupported interfaces

Didn't evarizon give you rights for committing to this repository?

@7nik No he didn't, but that's fine. I'd rather do pull requests anyways.


diffrent behavior of recognize_google on windows and ubuntu

hi,
I am using this great package in windows and I'm trying to pass my code for remote AWS ec2 ubuntu server.
my code goes like this:
filename = "temp.wav"
r = sr.Recognizer()
with sr.AudioFile(filename) as source:
# listen for the data (load audio to memory)
audio_data = r.record(source)
# recognize (convert from speech to text)
text = r.recognize_google(audio_data, language="en-US")
print(text)
on windows, it's working well and recognizes my text as expected but when I run it I'm on the ubuntu server with the same file its returns different text and the incorrect one.
why this difference occurs and how can I resolve this problem.
thank you.
details:
Ubuntu 18.04.5 LTS x64
Python 3.6.9
SpeechRecognition   3.8.1
pyaudio  0.2.11

Did you test multiple times because recognise google works by sending the data to google through requests library.  Google could have updated their recogniser between the two times.

Another more likely possibility is that the microphones are different on the two computers.


[stable/kiam] Fix kiam templates

What this PR does / why we need it:
ClusterRoles, ClusterRoleBindings and PodSecurityPolicies are unable to deploy without the change
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/assign @paulczar

/assign
/ok-to-test
/lgtm

/retest

/lgtm


Can not run pods with Multiple namespaces having same paths & different hosts

Describe the bug
Can not run pods with Multiple namespaces having same paths & different hosts.
We are using a single gateway to route traffic to different environments t1 & t2 (namely namespaces). Pods/Services/Ingress/Configmaps deployed in respective namespaces.
Having 2 different listeners in gateway with different hosts (aks-agw-t2.dev-xyz.com & aks-agw-t1.dev-xyz.com) & its associated rules.
Issue 1- With deployment, the listeners & rules gets deleted in the app gateway
Issue 2 - backend pools are not being created for all namespaces(that's probably because path is same)
Issue 3 - Gateway is not serving the services.
To Reproduce
Ingress backend defined below
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: backend-ingress-ms-everquotebid
  namespace: t1
  annotations:
    appgw.ingress.kubernetes.io/backend-path-prefix: "/"
    kubernetes.io/ingress.class: azure/application-gateway
spec:
  rules:
  - host: aks-agw-t1.dev-xyz.com
  - http:
      paths:
      - path:  /ms-everquotebid/*
        backend:
          serviceName: ms-everquotebid-service
          servicePort: 8080

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: backend-ingress-ms-everquotebid
  namespace: t2
  annotations:
    appgw.ingress.kubernetes.io/backend-path-prefix: "/"
    kubernetes.io/ingress.class: azure/application-gateway
spec:
  rules:
  - host: aks-agw-t2.dev-xyz.com
  - http:
      paths:
      - path:  /ms-everquotebid/*
        backend:
          serviceName: ms-everquotebid-service
          servicePort: 8080

Ingress Controller details

Output of kubectl describe pod <ingress controller> . The  pod name can be obtained by running helm list.
Name:         ingress-azure-5d4968dbdf-t4wdl
Namespace:    default
Priority:     0
Node:         aks-agentpool-30824605-0/<IP_ADDRESS>
Start Time:   Thu, 14 Jan 2021 11:44:32 +0000
Labels:       aadpodidbinding=ingress-azure
app=ingress-azure
pod-template-hash=5d4968dbdf
release=ingress-azure
Annotations:  checksum/config: 88e857155d556e851c8e8929b8264ca7d25a79d26cc9e33c38a2d02349bd80bd
prometheus.io/port: 8123
prometheus.io/scrape: true
Status:       Running
IP:           <IP_ADDRESS>
IPs:
IP:           <IP_ADDRESS>
Controlled By:  ReplicaSet/ingress-azure-5d4968dbdf
Containers:
ingress-azure:
Container ID:   docker://94db2128d7db4a79b02e66b12258786841a0a5b1ca5d8b73f891583f4c96bc50
Image:          mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.2.1
Image ID:       docker-pullable://mcr.microsoft.com/azure-application-gateway/kubernetes-ingress@sha256:cf1df9645ded72127967c99bbf88b758b5b19b698ba18a9ed74c3a7ebf016ef1
Port:
Host Port:
State:          Running
Started:      Thu, 14 Jan 2021 11:44:44 +0000
Ready:          True
Restart Count:  0
Liveness:       http-get http://:8123/health/alive delay=15s timeout=1s period=20s #success=1 #failure=3
Readiness:      http-get http://:8123/health/ready delay=5s timeout=1s period=10s #success=1 #failure=3
Environment Variables from:
ingress-azure  ConfigMap  Optional: false
Environment:
AZURE_CLOUD_PROVIDER_LOCATION:  /etc/appgw/azure.json
AGIC_POD_NAME:                  ingress-azure-5d4968dbdf-t4wdl (v1:metadata.name)
AGIC_POD_NAMESPACE:             default (v1:metadata.namespace)
Mounts:
/etc/appgw/azure.json from azure (rw)
/var/run/secrets/kubernetes.io/serviceaccount from ingress-azure-token-bqzz8 (ro)
Conditions:
Type              Status
Initialized       True
Ready             True
ContainersReady   True
PodScheduled      True
Volumes:
azure:
Type:          HostPath (bare host directory volume)
Path:          /etc/kubernetes/azure.json
HostPathType:  File
ingress-azure-token-bqzz8:
Type:        Secret (a volume populated by a Secret)
SecretName:  ingress-azure-token-bqzz8
Optional:    false
QoS Class:       BestEffort
Node-Selectors:
Tolerations:     node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type     Reason                     Age                   From                       Message

Warning  FailedApplyingAppGwConfig  87s (x13 over 5h27m)  azure/application-gateway  network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]
Output of `kubectl logs .
I0114 18:25:55.757161       1 mutate_app_gateway.go:164] cache: Config has NOT changed! No need to connect to ARM.
I0114 18:25:55.757183       1 controller.go:151] Completed last event loop run in: 186.282686ms
I0114 18:25:56.833831       1 mutate_app_gateway.go:177] BEGIN AppGateway deployment
I0114 18:26:27.572488       1 mutate_app_gateway.go:185] Applied generated Application Gateway configuration
I0114 18:26:27.572513       1 mutate_app_gateway.go:200] cache: Updated with latest applied config.
I0114 18:26:27.573412       1 mutate_app_gateway.go:204] END AppGateway deployment
I0114 18:26:27.573429       1 controller.go:151] Completed last event loop run in: 30.816120196s
I0114 18:26:28.681447       1 mutate_app_gateway.go:177] BEGIN AppGateway deployment
I0114 18:26:28.961622       1 mutate_app_gateway.go:183] END AppGateway deployment
E0114 18:26:28.961806       1 controller.go:141] network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]
E0114 18:26:28.961820       1 worker.go:62] Error processing event.network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]
I0114 18:26:35.061298       1 mutate_app_gateway.go:177] BEGIN AppGateway deployment
I0114 18:26:35.271398       1 mutate_app_gateway.go:183] END AppGateway deployment
E0114 18:26:35.271513       1 controller.go:141] network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]
E0114 18:26:35.271539       1 worker.go:62] Error processing event.network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]

I dont think there should be a '-' infront of backend.
At least I do not have this in a working deployment.
  rules:
    - host: MyHostName
      http:
        paths:
          - path: /
            backend:
              serviceName: MyServiceName
              servicePort: 443

I dont think there should be a '-' infront of backend.
At least I do not have this in a working deployment.
  rules:
    - host: MyHostName
      http:
        paths:
          - path: /
            backend:
              serviceName: MyServiceName
              servicePort: 443

I dont think there should be a '-' infront of backend.
At least I do not have this in a working deployment.
  rules:
    - host: MyHostName
      http:
        paths:
          - path: /
            backend:
              serviceName: MyServiceName
              servicePort: 443

@mortenlerudjordet  Yeah that's my bad while pasting. Corrected it.

I dont think there should be a '-' infront of backend.
At least I do not have this in a working deployment.
  rules:
    - host: MyHostName
      http:
        paths:
          - path: /
            backend:
              serviceName: MyServiceName
              servicePort: 443

@mortenlerudjordet  Yeah that's my bad while pasting. Corrected it.

Describe the bug
Can not run pods with Multiple namespaces having same paths & different hosts.
We are using a single gateway to route traffic to different environments t1 & t2 (namely namespaces). Pods/Services/Ingress/Configmaps deployed in respective namespaces.
Having 2 different listeners in gateway with different hosts (aks-agw-t2.dev-xyz.com & aks-agw-t1.dev-xyz.com) & its associated rules.
Issue 1- With deployment, the listeners & rules gets deleted in the app gateway
Issue 2 - backend pools are not being created for all namespaces(that's probably because path is same)
Issue 3 - Gateway is not serving the services.
To Reproduce
Ingress backend defined below
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: backend-ingress-ms-everquotebid
  namespace: t1
  annotations:
    appgw.ingress.kubernetes.io/backend-path-prefix: "/"
    kubernetes.io/ingress.class: azure/application-gateway
spec:
  rules:
  - host: aks-agw-t1.dev-xyz.com
  - http:
      paths:
      - path:  /ms-everquotebid/*
        backend:
          serviceName: ms-everquotebid-service
          servicePort: 8080

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: backend-ingress-ms-everquotebid
  namespace: t2
  annotations:
    appgw.ingress.kubernetes.io/backend-path-prefix: "/"
    kubernetes.io/ingress.class: azure/application-gateway
spec:
  rules:
  - host: aks-agw-t2.dev-xyz.com
  - http:
      paths:
      - path:  /ms-everquotebid/*
        backend:
          serviceName: ms-everquotebid-service
          servicePort: 8080

Ingress Controller details

Output of kubectl describe pod <ingress controller> . The  pod name can be obtained by running helm list.
Name:         ingress-azure-5d4968dbdf-t4wdl
Namespace:    default
Priority:     0
Node:         aks-agentpool-30824605-0/<IP_ADDRESS>
Start Time:   Thu, 14 Jan 2021 11:44:32 +0000
Labels:       aadpodidbinding=ingress-azure
app=ingress-azure
pod-template-hash=5d4968dbdf
release=ingress-azure
Annotations:  checksum/config: 88e857155d556e851c8e8929b8264ca7d25a79d26cc9e33c38a2d02349bd80bd
prometheus.io/port: 8123
prometheus.io/scrape: true
Status:       Running
IP:           <IP_ADDRESS>
IPs:
IP:           <IP_ADDRESS>
Controlled By:  ReplicaSet/ingress-azure-5d4968dbdf
Containers:
ingress-azure:
Container ID:   docker://94db2128d7db4a79b02e66b12258786841a0a5b1ca5d8b73f891583f4c96bc50
Image:          mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.2.1
Image ID:       docker-pullable://mcr.microsoft.com/azure-application-gateway/kubernetes-ingress@sha256:cf1df9645ded72127967c99bbf88b758b5b19b698ba18a9ed74c3a7ebf016ef1
Port:
Host Port:
State:          Running
Started:      Thu, 14 Jan 2021 11:44:44 +0000
Ready:          True
Restart Count:  0
Liveness:       http-get http://:8123/health/alive delay=15s timeout=1s period=20s #success=1 #failure=3
Readiness:      http-get http://:8123/health/ready delay=5s timeout=1s period=10s #success=1 #failure=3
Environment Variables from:
ingress-azure  ConfigMap  Optional: false
Environment:
AZURE_CLOUD_PROVIDER_LOCATION:  /etc/appgw/azure.json
AGIC_POD_NAME:                  ingress-azure-5d4968dbdf-t4wdl (v1:metadata.name)
AGIC_POD_NAMESPACE:             default (v1:metadata.namespace)
Mounts:
/etc/appgw/azure.json from azure (rw)
/var/run/secrets/kubernetes.io/serviceaccount from ingress-azure-token-bqzz8 (ro)
Conditions:
Type              Status
Initialized       True
Ready             True
ContainersReady   True
PodScheduled      True
Volumes:
azure:
Type:          HostPath (bare host directory volume)
Path:          /etc/kubernetes/azure.json
HostPathType:  File
ingress-azure-token-bqzz8:
Type:        Secret (a volume populated by a Secret)
SecretName:  ingress-azure-token-bqzz8
Optional:    false
QoS Class:       BestEffort
Node-Selectors:
Tolerations:     node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type     Reason                     Age                   From                       Message
Warning  FailedApplyingAppGwConfig  87s (x13 over 5h27m)  azure/application-gateway  network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]

Output of `kubectl logs .
I0114 18:25:55.757161       1 mutate_app_gateway.go:164] cache: Config has NOT changed! No need to connect to ARM.
I0114 18:25:55.757183       1 controller.go:151] Completed last event loop run in: 186.282686ms
I0114 18:25:56.833831       1 mutate_app_gateway.go:177] BEGIN AppGateway deployment
I0114 18:26:27.572488       1 mutate_app_gateway.go:185] Applied generated Application Gateway configuration
I0114 18:26:27.572513       1 mutate_app_gateway.go:200] cache: Updated with latest applied config.
I0114 18:26:27.573412       1 mutate_app_gateway.go:204] END AppGateway deployment
I0114 18:26:27.573429       1 controller.go:151] Completed last event loop run in: 30.816120196s
I0114 18:26:28.681447       1 mutate_app_gateway.go:177] BEGIN AppGateway deployment
I0114 18:26:28.961622       1 mutate_app_gateway.go:183] END AppGateway deployment
E0114 18:26:28.961806       1 controller.go:141] network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]
E0114 18:26:28.961820       1 worker.go:62] Error processing event.network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]
I0114 18:26:35.061298       1 mutate_app_gateway.go:177] BEGIN AppGateway deployment
I0114 18:26:35.271398       1 mutate_app_gateway.go:183] END AppGateway deployment
E0114 18:26:35.271513       1 controller.go:141] network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]
E0114 18:26:35.271539       1 worker.go:62] Error processing event.network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]

Describe the bug
Can not run pods with Multiple namespaces having same paths & different hosts.
We are using a single gateway to route traffic to different environments t1 & t2 (namely namespaces). Pods/Services/Ingress/Configmaps deployed in respective namespaces.
Having 2 different listeners in gateway with different hosts (aks-agw-t2.dev-xyz.com & aks-agw-t1.dev-xyz.com) & its associated rules.
Issue 1- With deployment, the listeners & rules gets deleted in the app gateway
Issue 2 - backend pools are not being created for all namespaces(that's probably because path is same)
Issue 3 - Gateway is not serving the services.
To Reproduce
Ingress backend defined below
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: backend-ingress-ms-everquotebid
  namespace: t1
  annotations:
    appgw.ingress.kubernetes.io/backend-path-prefix: "/"
    kubernetes.io/ingress.class: azure/application-gateway
spec:
  rules:
  - host: aks-agw-t1.dev-xyz.com
  - http:
      paths:
      - path:  /ms-everquotebid/*
        backend:
          serviceName: ms-everquotebid-service
          servicePort: 8080

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: backend-ingress-ms-everquotebid
  namespace: t2
  annotations:
    appgw.ingress.kubernetes.io/backend-path-prefix: "/"
    kubernetes.io/ingress.class: azure/application-gateway
spec:
  rules:
  - host: aks-agw-t2.dev-xyz.com
  - http:
      paths:
      - path:  /ms-everquotebid/*
        backend:
          serviceName: ms-everquotebid-service
          servicePort: 8080

Ingress Controller details

Output of kubectl describe pod <ingress controller> . The  pod name can be obtained by running helm list.
Name:         ingress-azure-5d4968dbdf-t4wdl
Namespace:    default
Priority:     0
Node:         aks-agentpool-30824605-0/<IP_ADDRESS>
Start Time:   Thu, 14 Jan 2021 11:44:32 +0000
Labels:       aadpodidbinding=ingress-azure
app=ingress-azure
pod-template-hash=5d4968dbdf
release=ingress-azure
Annotations:  checksum/config: 88e857155d556e851c8e8929b8264ca7d25a79d26cc9e33c38a2d02349bd80bd
prometheus.io/port: 8123
prometheus.io/scrape: true
Status:       Running
IP:           <IP_ADDRESS>
IPs:
IP:           <IP_ADDRESS>
Controlled By:  ReplicaSet/ingress-azure-5d4968dbdf
Containers:
ingress-azure:
Container ID:   docker://94db2128d7db4a79b02e66b12258786841a0a5b1ca5d8b73f891583f4c96bc50
Image:          mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.2.1
Image ID:       docker-pullable://mcr.microsoft.com/azure-application-gateway/kubernetes-ingress@sha256:cf1df9645ded72127967c99bbf88b758b5b19b698ba18a9ed74c3a7ebf016ef1
Port:
Host Port:
State:          Running
Started:      Thu, 14 Jan 2021 11:44:44 +0000
Ready:          True
Restart Count:  0
Liveness:       http-get http://:8123/health/alive delay=15s timeout=1s period=20s #success=1 #failure=3
Readiness:      http-get http://:8123/health/ready delay=5s timeout=1s period=10s #success=1 #failure=3
Environment Variables from:
ingress-azure  ConfigMap  Optional: false
Environment:
AZURE_CLOUD_PROVIDER_LOCATION:  /etc/appgw/azure.json
AGIC_POD_NAME:                  ingress-azure-5d4968dbdf-t4wdl (v1:metadata.name)
AGIC_POD_NAMESPACE:             default (v1:metadata.namespace)
Mounts:
/etc/appgw/azure.json from azure (rw)
/var/run/secrets/kubernetes.io/serviceaccount from ingress-azure-token-bqzz8 (ro)
Conditions:
Type              Status
Initialized       True
Ready             True
ContainersReady   True
PodScheduled      True
Volumes:
azure:
Type:          HostPath (bare host directory volume)
Path:          /etc/kubernetes/azure.json
HostPathType:  File
ingress-azure-token-bqzz8:
Type:        Secret (a volume populated by a Secret)
SecretName:  ingress-azure-token-bqzz8
Optional:    false
QoS Class:       BestEffort
Node-Selectors:
Tolerations:     node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type     Reason                     Age                   From                       Message
Warning  FailedApplyingAppGwConfig  87s (x13 over 5h27m)  azure/application-gateway  network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]

Output of `kubectl logs .
I0114 18:25:55.757161       1 mutate_app_gateway.go:164] cache: Config has NOT changed! No need to connect to ARM.
I0114 18:25:55.757183       1 controller.go:151] Completed last event loop run in: 186.282686ms
I0114 18:25:56.833831       1 mutate_app_gateway.go:177] BEGIN AppGateway deployment
I0114 18:26:27.572488       1 mutate_app_gateway.go:185] Applied generated Application Gateway configuration
I0114 18:26:27.572513       1 mutate_app_gateway.go:200] cache: Updated with latest applied config.
I0114 18:26:27.573412       1 mutate_app_gateway.go:204] END AppGateway deployment
I0114 18:26:27.573429       1 controller.go:151] Completed last event loop run in: 30.816120196s
I0114 18:26:28.681447       1 mutate_app_gateway.go:177] BEGIN AppGateway deployment
I0114 18:26:28.961622       1 mutate_app_gateway.go:183] END AppGateway deployment
E0114 18:26:28.961806       1 controller.go:141] network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]
E0114 18:26:28.961820       1 worker.go:62] Error processing event.network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]
I0114 18:26:35.061298       1 mutate_app_gateway.go:177] BEGIN AppGateway deployment
I0114 18:26:35.271398       1 mutate_app_gateway.go:183] END AppGateway deployment
E0114 18:26:35.271513       1 controller.go:141] network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]
E0114 18:26:35.271539       1 worker.go:62] Error processing event.network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayPathsWithinUrlPathMapMustBeUnique" Message="Paths specified in a UrlPathMap must be unique. Path /ms-everquotebid/* is already specified in another PathRule in UrlPathMap /subscriptions/bf287ccd-441f-4ca4-b3f4-45263e5be385/resourceGroups/aks-rtb-dev/providers/Microsoft.Network/applicationGateways/applicationgateway20bd/urlPathMaps/url-e1903c8aa3446b7b3207aec6d6ecba8a." Details=[]

@akshaysngupta Can I find a solution to the above problem?

@akshaysngupta Can I find a solution to the above problem?

/reopen

/reopen

@prateekchawla please remove the "-" in front of http. Due to that, host and http are getting evaluated as separate rules.

@prateekchawla please remove the "-" in front of http. Due to that, host and http are getting evaluated as separate rules.


Add SES Email Notifier.

Added new notifier for sending email notifications with Amazon Simple Email Service.

I took out some unrelated changes in #165.


dyld: Library not loaded: @rpath/libswiftCore.dylib

Using Xcode 8, it builds fine but is crashing right after launch with this error:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /Users/Jim/Library/Developer/CoreSimulator/Devices/71C3C61E-1604-48FF-813F-84985541B72A/data/Containers/Bundle/Application/850D7F48-B1CD-4FA8-A0C8-41ED890CF1CE/TCMaskPopView.app/Frameworks/TCMask.framework/TCMask
Reason: image not found
I've tried everything so far and no luck:

Runpath Search Paths:	@executable_path/Frameworks
Always Embed Swift Standard Libraries = YES
Clean and Clean Build Folder...
Delete everything in Derived Data Folder
Reinstall Apple WWDR Certificate

Is there any chance you can do an Objective C framework that doesn't rely on swift? This looks like a great framework and might be exactly what I need.
Thanks!
James

Hi @BrainFeverMedia
Have you added the framework to "Embedded Libraries"?

Is there any reason you consider an Objective C framework suits your needs better than Swift?
Thanks

Yes, I followed the setup instructions exactly. This is likely an Apple bug as a swift lib is not being found. A quick search on stackoverflow reveals numerous questions about this for other apps using a swift framework.
My comment about using ObjC is born out of frustration with swift issues like this, swift being not quite ready for production code.
Thanks for your quick reply.

Did you checked the "Copy items if needed" when you added those libraries?
If not sure, just remove the libraries from your project and add them again.

Thanks

For an update, the swift example works great! This appears to be an Apple bug with an ObjC app using a swift framework. I'll see if I can figure anything out here.

Same issue here. With Obj-C example, I get error
dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /private/var/containers/Bundle/Application/87AA4434-A3A2-48D6-BD2F-E2382B6D7CF6/TCMaskPopView.app/Frameworks/TCMask.framework/TCMask
  Reason: image not found

I have added the libraries to Embeded Frameworks and still same error.

Same issue, I am trying to run Swift example with cocoa pods, at first I was getting error /Users/jasmeetkaur/Downloads/TinyCrayon-iOS-SDK-master/Examples/swift/TCMaskCustomization/TCMaskCustomization/ViewController.swift:26:8: Module compiled with Swift 3.0.2 cannot be imported in Swift 3.1: /Users/jasmeetkaur/Downloads/TinyCrayon-iOS-SDK-master/Examples/swift/TCMaskCustomization/Pods/TinyCrayon/TCMask.framework/Modules/TCMask.swiftmodule/arm64.swiftmodule
To resolve the above error I tried to use swift 3.0.2, then I am getting below error dyld: Library not loaded: @rpath/libswiftCore.dylib   Referenced from: /private/var/containers/Bundle/Application/F3B8B48C-3F07-4FE1-8EFF-EDA093CAF8BA/TCMaskCustomization.app/Frameworks/TCMask.framework/TCMask   Reason: Incompatible library version: TCMask requires version 1.0.0 or later, but libswiftCore.dylib provides version 0.0.0

@jasmeet12 Thanks for reporting the issue. Can you share command line output when you run 'pod install'? You might not get the latest version due to pod bug.

@bingh0616 Please find output

@jasmeet12 Our latest version is 2.2.2, do not know why pod give you 2.1.1 version. Can you try 'pod update' and then try to build using latest xcode and swift. Thanks

I tried that Now version is 2.2.2 and now I am able to run the build thanks for the quick reply :)

@jasmeet12 No problem, we will try to see what we can do with the pod install bug. Thanks

targer -> build settings ->always embed swift stasd...

I faced the app crash issue quoting SIGABRT error in thread.Overview of the crash is dyld library not loaded and image not found something like that.
This was seen in xcode 9.3 version.The reason i found out was xcode is not picking up libraries dynamically so i had to do it manually which solved my crash issue.
Follow the below steps: Step 1: Go to Build Phases Step 2: Hit the '+' button at the top and select "New Copy File Phase" Step 3 : Select Destination as Frameworks and Hit the '+' button below to add files. Step 4 : Select Add Other at below, click CMD+SHIFT+G and paste the below path, /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos
Now you will be able to see some swift dylibs, Select all the swift libraries with .dylib extension and click on open.
These will get added to the embedded binaries in the general tab of app.
Create a new group in project folder and add all these libraries.
Now run your app.
Happy Coding

@miyamirz @Pranoy1c  do you know if this is a Xcode 9.3 only, i.e. is it fixed in recently released Xcode 9.4?
My own private framework cannot run its own test target due to dyld: Library not loaded: @rpath/libswiftCore.dylib because I am trying to get it working with ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES set to NO.
I got rejection when uploading to iTunesConnect when uploading the IPA, with error message:
[04:06:20]: [Transporter Error Output]: ERROR ITMS-90206: "Invalid Bundle. The bundle at 'MyiPhoneApp.app/Frameworks/Models.framework' contains disallowed file 'Frameworks'."
[04:06:20]: [Transporter Error Output]: ERROR ITMS-90206: "Invalid Bundle. The bundle at 'MyiPhoneApp.app/Frameworks/Navigation.framework' contains disallowed file 'Frameworks'."
[04:06:20]: [Transporter Error Output]: ERROR ITMS-90206: "Invalid Bundle. The bundle at 'MyiPhoneApp.app/Frameworks/ViewModels.framework' contains disallowed file 'Frameworks'."
[04:06:20]: [Transporter Error Output]: ERROR ITMS-90206: "Invalid Bundle. The bundle at 'MyiPhoneApp.app/Frameworks/Views.framework' contains disallowed file 'Frameworks'."

For what it's worth, I hit a similar error in XCode 9.0.1. I tried uninstalling and reinstalling all my certs, but when I reinstalled, they seemed to remember the trust setting I had previously.     What ended up working for me (it seems) was turning off the 'Always Trust' setting of the "Apple Worldwide Developer Relations Certification Authority" cert followed by a reboot.   What a cryptic issue!

can someone please help me with this problem
even when creating new project i still have this error when running to physical device
but works fine in simulator


Support for deploy command

Support for --deploy DRIVE_NAME to automatically copy .hex/.uf2 file to drive.

I guess it would be mostly useful if it detected the drive. Otherwise you can just do: makecode && cp built/binary.uf2 /Volumes/MICROBIT or something


Not printing any debug statements

I'm sure i'm doing something wrong, but I have this code and it's not printing any debug statement's
#!/usr/bin/env node

const axios = require('axios')
const program = require('commander')
const debug = require('debug')
const config = require('./config.json')
const getJwt = require('./getJwt.js')
const package = require('./package.json')
const { envs } = require('./util')

program
  .usage('[options]')
  .description('Delete files/data for a specific account')
  .option('-v --version', package.version)
  .option('-e --env <env>', 'Environment to create account for. Options are "dev", "qa", stage", or "prod"')
  .option('-m, --email <required>', 'email')
  .option('-p, --password <required>', 'password')
  .option('-a --all', 'Remove all files and documents')
  .option('-b --debug', 'Enable debug mode')
  .parse(process.argv)

if (program.debug) {
  console.log('in program.debug')
  debug.enable('debug')
}
console.log('debug is enabled =', debug.enabled('debug'))
debug('here') // WHY ISN'T THIS PRINTING?

And here's the output from my command:
$ ./deleteUserData -e dev -m<EMAIL_ADDRESS>-p myPassword -a -b
in program.debug
debug is enabled = true

I'm using version 4.1.1 of debug

Debug is a function that returns a function. The first invocation to debug takes the namespace and returns the actual function to make logging messages
Your call to debug just creates namespaces but doesn't use them. You need to store the result somewhere and use it. Most people do this:
const debug = require('debug')('some:namespace');

I don't want to do that b/c i want to enable it ONLY if a flag is passed in. From what i understand from the docs, doesn't that namespace automatically enable the debug flag?

No.

How you should be using debug is via the environment variable, not via a flag. This is what it's for - it's not necessarily meant to be a logging mechanism.
/* auth.js */
const debug = require('debug')('my-app:auth');
debug('this has something to do with authentication');

/* db.js */
const debug = require('debug')('my-app:db');
debug('this has something to do with the database');

/* index.js */
require('./db');
require('./auth');

$ DEBUG='my-app:*' node ./index.js
my-app:auth    this has something to do with authentication   +0ms
my-app:db     this has something to do with authentication   +0ms

$ DEBUG='my-app:auth' node ./index.js
my-app:auth    this has something to do with authentication   +0ms

etc.

If i have to use an env var i will set it in the script, but this is a script that I ideally users don't have to know to pass in env vars + flags + stand on their head and chug beer through their eyeball sockets. Ideally they just pass in flags.
I'll tinker with your example above and see if i can get wrangle up what i'm trying to do. should be doable.

Ok something just still doesn't seem right.
With this updated code and passing in the debug env var, i'm still not seeing my debug:
I'm sure i'm doing something wrong, but I have this code and it's not printing any debug statement's
#!/usr/bin/env node

const axios = require('axios')
const program = require('commander')
const debug = require('debug')
const config = require('./config.json')
const getJwt = require('./getJwt.js')
const package = require('./package.json')
const { envs } = require('./util')

program
  .usage('[options]')
  .description('Delete files/data for a specific account')
  .option('-v --version', package.version)
  .option('-e --env <env>', 'Environment to create account for. Options are "dev", "qa", stage", or "prod"')
  .option('-m, --email <required>', 'email')
  .option('-p, --password <required>', 'password')
  .option('-a --all', 'Remove all files and documents')
  .option('-b --debug', 'Enable debug mode')
  .parse(process.argv)

debug('here') // WHY ISN'T THIS PRINTING?

And here's the output from my command:
$ ./deleteUserData -e dev -m<EMAIL_ADDRESS>-p myPassword -a -b
in program.debug
debug is enabled = true

I'm using version 4.1.1 of debug

To create a debug instance that is always enabled, do this:
const debug = require('debug')('my-namespace');

debug.enabled = true;

debug('some stuff');

If i have to use an env var i will set it in the script, but this is a script that I ideally users don't have to know to pass in env vars + flags + stand on their head and chug beer through their eyeball sockets. Ideally they just pass in flags.
I'll tinker with your example above and see if i can get wrangle up what i'm trying to do. should be doable.

Actually setting the env var in the script doesn't work. Should it?
#!/usr/bin/env node

const axios = require('axios')
const program = require('commander')
const debug = require('debug')('delete')

console.log('process.env.DEBUG = ', process.env.DEBUG)

program
  .usage('[options]')
  .description('Delete files/data for a specific account')
  .option('-v --version', package.version)
  .option('-e --env <env>', 'Environment to create account for. Options are "dev", "qa", stage", or "prod"')
  .option('-m, --email <required>', 'email')
  .option('-p, --password <required>', 'password')
  .option('-a --all', 'Remove all files and documents')
  .option('-b --debug', 'Enable debug mode')
  .parse(process.argv)

if (program.debug) {
  process.env.DEBUG = 'delete'
  console.log('process.env.DEBUG = ', process.env.DEBUG)
}

debug('here') // THIS WONT PRINT WHEN SETTING THE ENV VAR IN THE SCRIPT

Without setting the flag when calling the script, it doesn't work and this is my output:
$ node ./deleteUserData -e dev -m<EMAIL_ADDRESS>-p myPassword -a -b
process.env.DEBUG =  undefined
in program.debug
process.env.DEBUG =  delete

When i set the env var when calling the script it does work. Curious if this is expected behavior.
$ DEBUG='delete' node ./deleteUserData -e dev -m<EMAIL_ADDRESS>-p myPassword -a -b
process.env.DEBUG =  delete
in program.debug
process.env.DEBUG =  delete
  delete here +0ms

You have to set the environment variable before the initial call to debug. It's a known inconvenience that we have a few issues open to address.

Just to point out the documentation shows debug.enable as a function. But doesn't seem to exist. Setting .enabled works


using faster_whisper with javascript frontend via websockets - different audio format?

I would like to use the microphone from webbrowser and send the audio chunks in realtime to a python backend. The data sent (float32arrays) are sent, but seem to be different than the one created by pyaudio.
here sample code for webfrontend

MediaRecorder and WebSocket Demo

Ready to capture

  <button id="TalkButton" onclick="toggleTalk()">Talk</button>

here the corresponding python backend for faster_whisper
from faster_whisper import WhisperModel
import numpy as np
import sys
import asyncio
from websockets.server import serve

accumulated_transcription=''

async def echo(websocket):
    global accumulated_transcription
    global count
    # global model
    model_size='large-v1'
    model=WhisperModel(model_size, device='cuda', compute_type='float32', num_workers=4)
    count=0

    frames=[]
    print("Server started.")
    async for data in websocket:
        # samples=np.sin(np.arange(50000)/20).astype(np.float32)
        # print(type(data), len(data))
        frames.append(data)
        count+=1
        # print('count: ',count)
        if count>20:
            chunk_frames=np.frombuffer(b''.join(frames), dtype=np.float32)
            segments, info = model.transcribe(chunk_frames,
                                    language='en',
                                    beam_size=3,
                                    temperature=0,
                                    suppress_blank=True,
                                    vad_filter=True,
                                    condition_on_previous_text=True,
                                    compression_ratio_threshold =1.8)
            results=''
            for segment in segments:
                results += segment.text
            sys.stdout.write("sst: "+results)
            sys.stdout.flush()
            accumulated_transcription += results
            count=0
            frames=[]
    # await websocket.send(message)

async def server():
    async with serve(echo, "localhost", 5000):
        await asyncio.Future()  # run forever

async def main():

    # model=WhisperModel(model_size, device='cpu', compute_type='int8')

    print('Starting Server...')
    # asyncio.run(server())
    server_task = asyncio.create_task(server())

    await asyncio.sleep(15)
    server_was_cancelled=server_task.cancel()
    print(f'server was cancelled: {server_was_cancelled}')

asyncio.run(main())

as comparison, the following standalone python code with pyaudio works as expeced ... so I don't really know why the data streamed from javascript frontend doesn't seem to be properly recognized (no errors are generated, btw)
from faster_whisper import WhisperModel
import pyaudio
import numpy as np
import sys

def main():
    # model_size='small.en'
    # model_size='medium.en'
    model_size='large-v1'
    model=WhisperModel(model_size, device='cuda', compute_type='float32', num_workers=4)
    # model=WhisperModel(model_size, device='cpu', compute_type='int8')

    chunk=1024
    format=pyaudio.paFloat32
    # format=pyaudio.paInt16
    channels=1
    sample_rate=16384
    record_seconds=3

    p=pyaudio.PyAudio()

    mics=[]
    for i in range(p.get_device_count()):
        print(p.get_device_info_by_index(i)['name'])

    stream=p.open(format=format,
                  channels=channels,
                  rate=sample_rate,
                  input=True,
                  output=True,
                  frames_per_buffer=chunk)
    accumulated_transcription=""
    print("Start Talking ...")
    try:
        while True:
            # samples=np.sin(np.arange(50000)/20).astype(np.float32)
            chunk_file='temp_chunk.wav'
            # with open(chunk_file, 'wb') as audio_file:
            #     audio_bytes=audio_file.write()
            #     audio_file=io.BytesIO(audio_bytes)
            frames=[]
            for _ in range(int(sample_rate/chunk*record_seconds)):
                data=stream.read(chunk)
                print(type(data), len(data))
                frames.append(data)
            chunk_frames=np.frombuffer(b''.join(frames), dtype=np.float32)
            segments, info = model.transcribe(chunk_frames,
                                    language='en',
                                    beam_size=5,
                                    temperature=0,
                                    suppress_blank=True,
                                    vad_filter=True,
                                    condition_on_previous_text=True,
                                    compression_ratio_threshold =1.8)
            results=''
            for segment in segments:
                results += segment.text
            sys.stdout.write(results)
            sys.stdout.flush()
            accumulated_transcription += results
    except KeyboardInterrupt:
        print('Stopping ...')
        with open('log.txt', 'w') as log_file:
            log_file.write(accumulated_transcription)
    finally:
        print('LOG:' + accumulated_transcription)
        stream.stop_stream()
        stream.close()
        p.terminate()

if __name__=='__main__':
    main()

Uneducated guess:
chunk_frames=np.frombuffer(b''.join(frames), dtype=np.float32) / 32768.0

Uneducated guess:
chunk_frames=np.frombuffer(b''.join(frames), dtype=np.float32) / 32768.0

no, would have wondered if that would work ... did you try it on your own? both codes should work out-of-the-box with the 2nd one producing ok results, but the combination of the javascript/python-backend only recognizes "Bye" although never mentioned. It seems like that

either the codec is differing between pyAudio.paFloat32 Array and the inputBuffer.getChannelData(0) Float32Array
or some frames got lost/mixed-up/??? in transition - but I don't know how to detect that or fix that.

Maybe, try to save audio to a file and look at the differences.

...did you try it on your own?

Of course not. Uneducated guess - An arbitrary guess with no particular reasoning behind it.

Try to save audio to a file and look at the differences.

that's tricky as I use microphone and all I get is a byte-stream of float32 structure. It is obviously hard to find a solution, which streams audio from a web-page to a python-backend via websockets (or anything else like SignalR, etc.).  I even tried ChatGPT, but also - nothing ...

Please, let me know if you will find a solution. I got the same problem.

@ewagner70 the reason behind 32768.0 is to normalize array value between -1 & 1
it's a specification on how to represent audio in numerical array

the values in the float32array are already between -1 and +1. They also arrive at the python-backend as such ... Is it a different encoding (big/little endian or pcm codec or ... ???)

Hi @ewagner70 , do you have updates ?

Hi @ewagner70 , do you have updates ?

@anbzerc : unfortunately no update as I am at the end of my wisdom ... even the faster_whisper guys obviously don't know what's the difference between the javascript and python libs ... it would be really helpful, if one of the colleagues provide a sample code where javascript picks up the audio-chunks and transfer them to a python-backend for faster_whisper transcription ... the issue that obviously no one (?!) can resolve that is hindering many use cases where more than one person shall use such a solution.

:sob: . Thanks for the answer

You can try to use web RTC with aiortc on the Python backend. AioRTC handles the conversion of raw audio packets to av.AudioFrame (from PyAV).

@ewagner70 @anbzerc You can try to use web RTC with aiortc on the Python backend. AioRTC handles the conversion of raw audio packets to av.AudioFrame (from PyAV). Because with WebSockets you need to handle this conversion by your self. You need to know about codecs, bitrate and so on.

@Spiritcow : I am not struggling with the data-transfer (this is working). I am struggling with the conversion - that's what I'm looking for, as the data format is nowhere described ... Do you have any pointer on that as well?
@anbzerc : Did you make any progress?

This example should be interesting : https://github.com/aiortc/aiortc/tree/main/examples/server
I'll try it as soon as possible

This example should be interesting : https://github.com/aiortc/aiortc/tree/main/examples/server I'll try it as soon as possible

@anbzerc : this example uses ICE server ... when you solve it without using ICE, but directly via winsocket or similar - let us all know!

@ewagner70 That's why I propose using web RTC with AIO because it does the conversion. Try to learn codecs and audio formats, if you want to use just play sockets

@ewagner70 if you save the file to disk and pass it to the model, then the transcription is ok
fname = rf"C:\test.wav" sig = np.frombuffer(b''.join(frames), dtype=np.float32) sf.write(fname, sig, 16000, format="wav")

@ewagner70 if you save the file to disk and pass it to the model, then the transcription is ok
fname = r"C:\test.wav"
sig = np.frombuffer(b''.join(frames), dtype=np.float32)
sf.write(fname, sig, 16000, format="wav")
segments, info = model.transcribe(fname, language="en")
text = " ".join([segment.text.strip() for segment in segments])

can you try:
import soundfile as sf

f = io.BytesIO()
sf.write(f, sig, 16000, format="wav")
f.seek(0)
segments, _ = model.transcribe(f, language="en")
text = " ".join([segment.text.strip() for segment in segments])
f.close()

Dear @ldolegowski92, I know that saving as wav file is working (the 42byte wave header as "only" distinction between raw audio chunks and a wav-file).
However, my attempt was to use one of the two other transcribe formats (BinaryIO or ndarray) to send the received audio chunks directly to transcribe ...

Greeting,
My guess is that the data obtained from the microphone is 44100 or 48K, while the model supports 16K, so you got a strange output.
And pyaudio should have used resampling to resample the received data to 16K, so his program runs smoothly.

Greeting,
My guess is that the data obtained from the microphone is 44100 or 48K, while the model supports 16K, so you got a strange output. And pyaudio should have used resampling to resample the received data to 16K, so his program runs smoothly.

Thank you, @oyang886  - finally after 6 months someone who solved it. I had to merely adapt my html with the following downsampling code:
        // Create an AudioContext object
        var audioContext = new AudioContext();
        fromSampleRate = audioContext.sampleRate;
        toSampleRate = 16000;

        // Create a ScriptProcessorNode object with a buffer size of 4096 and one input and output channel
        var processor = audioContext.createScriptProcessor(4096, 1, 1);

        // Define a function that will be called when the processor has audio data available
        processor.onaudioprocess = function (event) {
            // Get the input audio data as a Float32Array
            var input = event.inputBuffer.getChannelData(0);

            // Send the output audio data as a binary message to the server
            socket.send(downsample(input, fromSampleRate, toSampleRate));
        };

and then simply add another function:
        function downsample(buffer, fromSampleRate, toSampleRate) {
            // buffer is a Float32Array
            var sampleRateRatio = Math.round(fromSampleRate / toSampleRate);
            var newLength = Math.round(buffer.length / sampleRateRatio);

            var result = new Float32Array(newLength);
            var offsetResult = 0;
            var offsetBuffer = 0;
            while (offsetResult < result.length) {
                var nextOffsetBuffer = Math.round((offsetResult + 1) * sampleRateRatio);
                var accum = 0, count = 0;
                for (var i = offsetBuffer; i < nextOffsetBuffer && i < buffer.length; i++) {
                    accum += buffer[i];
                    count++;
                }
                result[offsetResult] = accum / count;
                offsetResult++;
                offsetBuffer = nextOffsetBuffer;
            }
            return result;
        }

can be closed now ... the documentation is really sub-par and nothing for the weary ...


Dataset downloading is broken until MNE-python is fixed

Describe the bug
Apparently this package won't load and complains about dataset downloaded not working.
Steps to reproduce
Haven't reproduced myself but I expect it's due to recent changes in how MNE downloads datasets. It's been changed to use poooch by @adam2392
Additional information
I will wait for https://github.com/mne-tools/mne-python/pull/9763 before I can fix this

@rob-luke can you say more about what's broken?  What did you try to do and what happened?

I haven't tried myself yet. But I just received an email from a user reporting the above. And it makes sense given I use internal MNE functions and that's been modified recently.
Here's the report I got...
file:///var/mobile/Library/SMS/Attachments/ec/12/483F6F29-315D-4DD5-BD56-B03A675FF6F9/Screen%20Shot%202021-09-20%20at%205.23.10%20pm.jpeg
Kicking off a CI should confirm if this issue exists

ah, OK. yeah, _download() was removed yesterday.  Lemme see if I can quickly bang out a fix for you (I have 30 minutes before I go on leave for a week :)

That would be very kind of you!

I'm going to finish off https://github.com/mne-tools/mne-python/pull/9763 tonight, which should allow you to refactor your fetching code to follow that framework.

Thanks @adam2392 and @drammock for keeping me posted. The new functionality is very cool and I look forward to using it. Once its up and running I have a few more open datasets to add.

Cross referencing #388


I formatted something wrong...

Hi Patrick...
Added two resources around testing. I see the help_out monicker afterward, but it seems to keep it on the same line. Do you want that help out link moved down further?
Thanks and great resource!!
Ken

Is this still an issue?

Closing this as no answer in more than 2 weeks.


When I execute helloworld in quickServer in tarsJava, I want to pull the configuration in the configuration center, do I need to configure this?

right.

对。

Is it configured as a port?The tars framework I currently deploy is connected via VPN.

是配置成端口吗？我目前部署的tars框架是通过VPN连接的 。


Tab completion when checking out remote branches

I do a fetch with a (Stash based) remote, and see a new remote branch, "origin/bugfix/XXX-999-pdf-to-tiff-quality"
I try "git checkout bugfix/XXX" then tab, nothing completes. I can see why, the branch is not local yet, but git itself would accept "git checkout bugfix/XXX-999-pdf-to-tiff-quality" , I get no completion because git treats branch names in special ways in some cases.
I hope I am just missing something, if not, I'll fork and fix if I can!

You're not missing anything - the gitBranches function to look up branch names is not aware that Git will let you checkout remote branches without the remote prefix.

On Wed, Feb 25, 2015 at 3:46 AM, Keith Dahlby<EMAIL_ADDRESS>wrote:

You're not missing anything - the gitBranches function to look up branch
names is not aware that Git will let you checkout remote branches without
the remote prefix.
—
Reply to this email directly or view it on GitHub
https://github.com/dahlbyk/posh-git/issues/177#issuecomment-75924732.

I think I can see how to fix this, the code is pretty easy to understand,
simpler than I expected, thanks.
On Wed, Feb 25, 2015 at 11:14 AM, Andy Philpotts<EMAIL_ADDRESS>wrote:

Well, I guess I better fix that, unless it is in progress with someone
else, I may be a bit slow, but... yo-ho, yo-ho, it's off to clone I go!
On Wed, Feb 25, 2015 at 3:46 AM, Keith Dahlby<EMAIL_ADDRESS>wrote:

You're not missing anything - the gitBranches function to look up branch
names is not aware that Git will let you checkout remote branches without
the remote prefix.
—
Reply to this email directly or view it on GitHub
https://github.com/dahlbyk/posh-git/issues/177#issuecomment-75924732.

Glad to hear it. You've probably noticed, but we currently handle checkout along with a larger list of commands that use refs - probably need to separate checkout out from the others.

yup, i was adding a specific match as you say, the slightly trickier bit was to figure out unique branch names, as if two remotes use the same name, that must be excluded from the match, i plan to wrap this up tonight, if i can, and am happy to do so, i use posh-git and want to pay back by contributing
--
Andy

On Feb 26, 2015, at 3:11 PM, Keith Dahlby<EMAIL_ADDRESS>wrote:
Glad to hear it. You've probably noticed, but we currently handle checkout along with a larger list of commands that use refs - probably need to separate checkout out from the others.
—
Reply to this email directly or view it on GitHub.

Was there ever a fix made for this???

Any progress?

This was fixed by #352


[feat] Add docs for getting ngrok up and running after a sleep or from other countries

What would you like to be added:
help users
Why is this needed:
everyone puts their laptop to sleep and during this time, ngrok times out and the tunnel expires breaking gitops for k3d. Also, people from other countries need to use a flag to make sure github dns will resolve and atlantis runs.

Moved to the docs repository.


Create Add Picklist Values Metadata ETL task

Critical Changes
Changes

A new Metadata ETL task, add_picklist_entries, safely adds picklist values to an existing custom field.

Issues Closed

Tested with K12 and appears to work - needs hands-on review from that team and @jofsky to make sure it hits objectives.

Functionality has been confirmed to meet K12 needs with Matt Blanski.


Pydantic project dependency not consistent (possibly others too; consider using a singe python packaging model?)

Describe the bug
It is currently not possible to add fastapi-framework to projects using a different pydantic version.
Seems like @dependabot forgot to take care of the pyproject.toml, as it still references an outdated pydantic version.
https://github.com/Tert0/fastapi-framework/blob/104202c1857df82001c3281b3def2be9ee40b122/pyproject.toml#L21
https://github.com/Tert0/fastapi-framework/blob/104202c1857df82001c3281b3def2be9ee40b122/requirements.txt#L9
To Reproduce
$ poetry add fastapi-framework
Using version ^<IP_ADDRESS> for fastapi-framework

Updating dependencies
Resolving dependencies... (0.1s)

Because fastapi-framework (<IP_ADDRESS>) depends on pydantic (1.10.5)
 and no versions of fastapi-framework match ><IP_ADDRESS>,<<IP_ADDRESS>, fastapi-framework (>=<IP_ADDRESS>,<<IP_ADDRESS>) requires pydantic (1.10.5).
So, because ourpoetrypackage depends on both pydantic (^1.10.7) and fastapi-framework (^<IP_ADDRESS>), version solving failed.

When trying to use the develop branch:
$ poetry add git+https://github.com/Tert0/fastapi-framework.git#develop
Updating dependencies
Resolving dependencies... (0.0s)

Because fastapi-framework (<IP_ADDRESS>) @ git+https://github.com/Tert0/fastapi-framework.git@develop depends on pydantic (1.10.5)
 and ourpoetrypackage depends on pydantic (^1.10.7), fastapi-framework is forbidden.
So, because ourpoetrypackage depends on fastapi-framework (<IP_ADDRESS>) @ git+https://github.com/Tert0/fastapi-framework.git@develop, version solving failed.

Expected behavior
Package fastapi-framework can be used together with latest Pydantic & FastAPI versions.

(Cheers & thank you for sharing your code! Your open source work is really appreciated!)

The issue with dependabot has been resolved in 706d13a9b9590596773cbb6ce87843814be2e0cc and the Version v<IP_ADDRESS> should include these changes.


No comment character checking in teststrandbias.R

We use the # character in interval names to signify order of intervals in BED files for both upstream and downstream analysis.
teststrandbias.R chokes on these interval names because R's read.table() function has a default which interprets # symbols as the beginning of a comment.
This PR fixes that behaviour by turning off the interpretation of comments in VarDict output.
This is a safe patch because the interval name field ($gene) is not used in the creation of a VCF file and  # symbols are actually used to indicate commented lines in valid VCF files.

Hello, @clintval !
What do you think about backward compatibility? Isn't it possible that someone modify Vardict output with comments before the script?
Don't you try to replace # characters with safe chars in your bed file? For example with @ characters or any.
cat intervals.bed | tr \# @ | ./vardict ...

True, if anyone is inserting comment lines into VarDict output before teststrandbias.R they would have an issue with this PR.
And no, since BED has no comment specification the # character should be allowed and is used automatically by some tool outputs including Picard's BaitDesigner. If this PR is not accepted I will seek to sanitize my interval files.
Thanks for your review! I understand if you close out. I appreciate your time on this one!

There is no sense to make options due to go the code to complexity. In fact situation with "#" appear between "internal" modules. So somebody is quite unlikely to stumble over that. Let's merge?

+1

Awesome @nkarulin, I would be interested in the merge.

Hi @nkarulin I rebased on upstream/master since changes have been made. Any chance for a merge?

Any chance of getting this pulled in?
I am eager to help move this along if you need anything more from me.

@zhongwulai -- any objections to this one? This seems like a worthwhile merge.

Hi @chapmanb, @zhongwulai, and @mjafin.
I have rebased once more to keep this PR free of merge conflict.
Any chance for a merge? If not please close. Thanks!

Thanks for persisting with this. I'm agreed it's a helpful change with little change of impact on real code. Much appreciated.


warning: already initialized constant Module::USER_AGENT

This warning occurs whenever I run UpdateFromStreakJob.perform_now
irb(main):016:0> UpdateFromStreakJob.perform_now
Performing UpdateFromStreakJob from DelayedJob(default)
/usr/src/app/lib/cloud9_client.rb:66: warning: already initialized constant Module::USER_AGENT
/usr/src/app/lib/cloud9_client.rb:66: warning: previous definition of USER_AGENT was here

I'm going to go ahead and close this because there hasn't been any progress and it's only a warning. Feel free to reopen.


Get file in original format

I am using Refile to upload a PDF, but when I use attachment url it doesn't give me the .pdf extension:
<%= link_to 'Download', attachment_url(@my_object, :brochure), target: '_blank' %>
I don't want to specify the pdf format in attachment_url, because some users may upload other types of files. Is there a way to get the proper original format?

Along with the file id, you can store additional metadata about your files, including the filename (which contains the extension).
You just need to add the :brochure_filename string column, and it will be autofilled on upload. You could then add:
class MyModel < ActiveRecord::Base
  attachment :brochure

  def brochure_extension
    File.extname(brochure_filename) if brochure_filename
  end
end

Ok that works. I think it would make sense that if you add the :brochure_filename column that it would default to the extension in the original name.

Actually scratch that, it looks like it does. Yay!

@janko-m I was able to use this solution locally but in production I'm using a CDN to deliver assets and this appears to not work in that scenario. Any thoughts on what is getting lost in translation?

i have an issue with this, i'm uploading some pdf through an active job,
h = {         remote_file_url: cert_url,         contractor_id: contractor.id,         file_filename: cert_url.split("/")[8],         file_content_type: ".pdf"       }       Certification.create(h)
i'm passing the file through a url and everything is fine, the problem is when i try to view the pdf,
https://imgur.com/jTpDIhx
i'ts like the pdf is corrupted or something


Plugins support

We're planning to open up the issues on this repo, so we can move that there once @dabarrell does so 😄

@benmoss I was just given admin perms, so have now enabled issues :)


SPDistributedCacheClientSettings: missing some SP2016 settings

Details of the scenario you tried and the problem that is occurring
Missing for SP2016 this options:
#DistributedFileLockThrottlerCache
DFLTCMaxConnectionsToServer = 4
DFLTCRequestTimeout = "3000"
DFLTCChannelOpenTimeOut = "3000"

#DistributedSharedWithUserCache
DSWUCMaxConnectionsToServer = 4
DSWUCRequestTimeout = "3000"
DSWUCChannelOpenTimeOut = "3000"

#DistributedUnifiedGroupsCache
DUGCMaxConnectionsToServer = 4
DUGCRequestTimeout = "3000"
DUGCChannelOpenTimeOut = "3000"

#DistributedResourceTallyCache
DRTCMaxConnectionsToServer = 4
DRTCRequestTimeout = "3000"
DRTCChannelOpenTimeOut = "3000"

#DistributedHealthScoreCache
DHSCMaxConnectionsToServer = 4
DHSCRequestTimeout = "3000"
DHSCChannelOpenTimeOut = "3000"

Verbose logs showing the problem
Missing options..
Suggested solution to the issue
Implement it
The DSC configuration that is used to reproduce the issue (as detailed as possible)

Version of SharePoint that is used (e.g. SharePoint 2016)
SharePoint 2016
Version of the DSC module that was used ('dev' if using current dev branch)
3.1

Will be added in my next BugFix PR


Update ko.xml

This update includes all latest updates

Nice to see translations being updated from time to time

I'd like someone to verify these translations.

Based in lack of response, I'd say this is probably good to merge


ui: Implement dark theme

The user should be able to choose from these three options for the app's appearance:

Light
Dark
Follow OS

Flutter's Material Design implementation paves the way to a pretty good 1.0 version of a dark theme, for the boring, simple bits of UI we paint with Theme.of(context).colorScheme. For example, here's the result of just this simple change:
diff --git lib/widgets/app.dart lib/widgets/app.dart
index 533d3df8d..2eec13d40 100644
--- lib/widgets/app.dart
+++ lib/widgets/app.dart
@@ -20,7 +20,7 @@ class ZulipApp extends StatelessWidget {
       //   https://api.flutter.dev/flutter/material/ColorScheme/ColorScheme.fromSeed.html
       // Or try this tool to see the whole palette:
       //   https://m3.material.io/theme-builder#/custom
-      colorScheme: ColorScheme.fromSeed(seedColor: kZulipBrandColor));
+      colorScheme: ColorScheme.fromSeed(seedColor: kZulipBrandColor, brightness: Brightness.dark));
     return GlobalStoreWidget(
       child: MaterialApp(
         title: 'Zulip',

Before
After

For the message list, though, we don't draw from Theme.of(context).colorScheme, so it doesn't respond to setting Brightness.dark there:

Before
After

Probably we should bundle all the message list's light-theme colors into a palette called messageListColors or something, then create a version of that palette for dark theme.

If we do this before we have local settings #97, we can have it just follow the system theme — that's what should be the default anyway, so it may as well become the only setting in the alpha. If we already have #97 when we implement this, though, might as well offer the setting from the beginning.

Can I work on this issue @gnprice

I wouldn't recommend this issue as a way to get started with this codebase. In general, see:
https://chat.zulip.org/#narrow/stream/48-mobile/topic/new.20contributor/near/1672683

An implementation note:
For all the colors that we have that don't correspond to anything in particular in the Material Design ColorScheme, we can put them on a ThemeExtension.
That will let us neatly bundle together a number of colors for a light theme, and corresponding colors for a dark theme, and switch between themes centrally — and even transition smoothly between them when the theme changes, which e.g. the user might have chosen in system settings to have happen on a daily cycle. In short it means we'll use the same nice mechanics that Flutter's Material implementation uses, but for areas that needn't have any design elements in common with Material.

I would like to contribute to this issue @gnprice

Please see our guide here: https://github.com/zulip/zulip-flutter#picking-an-issue-to-work-on

if its available i want to work on it ?

@Syrineladeb02 Please see our guide to picking an issue to work on:
https://github.com/zulip/zulip-flutter#picking-an-issue-to-work-on


[pugixml] fix SHA512

[x] Changes comply with the maintainer guide
[x] SHA512s are updated for each updated download
[x] The "supports" clause reflects platforms that may be fixed by this new version
[x] Any fixed CI baseline entries are removed from that file.
[x] Any patches that are no longer applied are deleted from the port's directory.
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

The current portfile results in the following error:
Installing 3/3 pugixml:x64-linux...
Building pugixml[core]:x64-linux...
-- Downloading https://github.com/zeux/pugixml/archive/a0e064336317c9347a91224112af9933598714e9.tar.gz -> zeux-pugixml-a0e064336317c9347a91224112af9933598714e9.tar.gz...
.
.
.
Expected hash: 9fe2285215520b6ac5f832d457bdfedcf183787a7058bb970a20ea7ca111e1afd864f5b90a4810c79470afefc55c0199febf04d1600634c1ffdbbe000ef6e1df
Actual hash: 7ac529624db44637ae265c8a5e47873b768a355e291f726195e9f9aed126f5c45057bc7141f7db66d90afe13a959107c397a2dddbd3dff826dcb26fdf7c41fdc
.
.
.
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):

 Failed to download file with error: 1

updating to the provided SHA512 fixes this issue.

I submitted this before I had noticed many of the packages having the same issue, related to #29288

closing this request as the breaking change in GitHub is being reverted.


[IcSelect] Select selected option overlaps close icon

Summary of the bug
When an option is wider than the select, then the value inside the select input overlaps the close icon. See attached screenshot below
Whilst we typically avoid using long options, some are needed and the styling should take this into account
🪜 How to reproduce
Tell us the steps to reproduce the problem:

Create a page with an IcSelect component on it
Provide an option that is larger in width than the IcSelect
Choose the large option
See the overlapping caused by the option/value and the close icon within the IcSelect input

📸 Screenshots or code
  <IcSectionContainer aligned="full-width">
    <IcSelect
      label="test"
      options={[{
        label: "very long option, very long option, very long option, very long option, very long option",
        value: "test",
      }]
      }
      showClearButton
      onIcChange={(e) => console.log(e)}
      value=""
    />
  </IcSectionContainer>

🖥 📱 Device
Type: Desktop/Mobile
Device: Macbook
OS version: macOS12
Browser version: Chrome Version 126.0.6478.127 (Official Build)
🧐 Expected behaviour
The close icon should not be overlapping the values inside the select
📝 Acceptance Criteria
Given I have a option that is wider than the select input
When I select the option
Then the close icon and the value shouldn't overlap

This might be fixed with a recent change

This will be fixed once the multi-select move to the core package has been completed - as the select component will have been updated to show an ellipsis when the text overflows. (This change will be available in v3)
I have double-checked that my changes for that ticket fix this issue with long options in the single select (and other variants).


sub-links in docs page don't work on refresh

ex:

Go to https://bvaughn.github.io/react-virtualized
Click InfiniteLoader tab (https://bvaughn.github.io/react-virtualized/#/components/InfiniteLoader)
Refresh
It brings me to https://bvaughn.github.io/react-virtualized/#/components/List

Thanks for pointing this out. Was probably broken by the recent update from RR 4 beta to final.
Going to tag it as a good first bug in case anyone wants to contribute a fix. 😄

I'd love to take this one! Just going to set up my fork.

Nice! It's all yours 😁

@bvaughn @djkirby Done! Although not sure if I should contribute again with this number... #666

Haha! Thanks!


Add a class name to the generated svg element to target them in css

Is it possible to add a class name, eg. "bootstrap-icon" or "bicon", to the generated svg element ?
maybe also a kebab case version of the icon name
the idea is to target the icons easily with css in order to correct alignment with text for example
<svg width="1em" height="1em" class="bicon bicon-bookmark" viewBox="0 0 16 16" fill="currentColor" role="img" focusable="false">...</svg>

Good idea!

I also need this, for testing purpose. I was checking a <i> element was the expected icon. Now, with this lib, I can no longer make assertions on the icon in cypress


Running the code on a completely different dataset

Hello,
Is there anyway to run the code on the dataset other than ucf101, hmdb51, activitynet_1.2, activitynet_1.3?
I would be glad if anybody will help me on this issue.
Thanks for your time
Best,

I think they write a tutorial for how to work on your own dataset at here .

Thank you @bryanyzhu for the information.
Yes, you can refer to that tutorial on working with your custom dataset.

Thank you very much @bryanyzhu @yjxiong


Move production deployment targets to boxel.ai

This is actually staging for now.

@backspace Should this PR be closed?

@backspace Should this PR be closed?

no, I didn’t realise I hadn’t submitted it for review, thanks.

Is this related to the failure to deploy to staging preview in latest PRs? They show a no such bucket error. Would this PR resolve that?

assuming you mean production, yes, this should fix that. You can see the preview deployment works in this PR.


Produce API coverage report

User story.
As an API developer, I can generate coverage reports when running prism proxy, so that I know which routes, requests, properties, and responses have been seen by prism proxy when testing the API automatically through the proxy.
Describe the solution you'd like
A new --coverage option (e.g. prism proxy --coverage) could produce lcov coverage output (or other format) based on the routes inputs and outputs that have been seen by the proxy.
If we use the lcov format, this could point to the spec file as source code.
For example, if a route is never used, the coverage could show the line 3 as not covered:
paths:
  /farms:
    get:
      ...

Concerning properties, this could be more tricky as models are shared.
Does this deserve to be an extension or a dedicated tool?
Additional context
Similar initiatives:

https://github.com/viclovsky/swagger-coverage
https://smartbear.com/product/ready-api/features/api-testing-features/api-test-coverage/

This is something Optic also do I believe. This would definitely be really interesting, and I'd love to see it happen, but it's a lot of work for something not currently on the Stoplight roadmap. Maybe you could submit the idea over there too and we can see if the product folks want to take it on, or we can try and get this done in the community. We're offering bigger tree-bribes than usual to get things done this October. :D
Would anyone be interested in taking a swing at it? There's Stoplight engineers on here and in the Stoplight Discord who can give pointers for things like this.


[FEATURE] Adding Return of Investment on some equity funds

What bug or feature you wants to report.
Reason/Context
Why we need this improvement?
In this current version of the API, there is no calculations for Return of Investments per income.
How will this change help?
It is easy to calculate and they just need to know the cost and profit earned. They even do not need the help of a financial expert to understand this. This will help user to get a glimpse of the profit earned.
I would like to work on this issue under GSSoC'23. would be glad if you'd assign me. @n

Good one!


Cloud vs Hybrid vs On-Premises

Can we provide some clarity in this document as to what we mean by Cloud/Hybrid/On-Premises deployments.
I think what we mean by these is where the identity is sourced, not necessarily the device join state:
Cloud -> Identity in Azure AD only (Born in the cloud organisation) -> AAD Joined devices. Will never access on-premises AD joined resources.
Hybrid -> Identity in On-Premises AD, Synchronised via AAD Connect or similar to Azure AD. Devices either AD joined, AAD Joined, or Hybrid Joined (or mix thereof) -> May access on-premises resources too with sight of a domain controller
On-Premises -> Identity in On-Premises AD only. Windows 10 devices joined to AD only (on-prem resources only)

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

ID: 87e5f5f1-16cf-57e2-bdfc-b090d90437b1
Version Independent ID: 1662c47f-12cb-147d-25f0-dee98b6c7722
Content: Windows Hello for Business (Windows 10)
Content Source: windows/security/identity-protection/hello-for-business/hello-identity-verification.md
Product: w10
GitHub Login: @MikeStephens-MS
Microsoft Alias: mstephen

FIXED!!
We already have this in our planning guide but it could be better.  We will also have (in the next update) a technology page that has the buzz words and their meaning.  This is in the next update.  We need to update the planning guide, but that will not be published in the next update.
Thank you for the feedback.
Mike


automatically defaults to today's date

I'm not sure how to stop that, I see nothing about it in the docs.

It defaults to today if no value is given and allowBlank is at the default value. Certify date is give a valid value.


Switch to pidof in restore

Context

Remove extra loop in restore

Choices

Switching to pidof since we use pidof in start.sh

Test instructions

Verify restore still works

Checklist before requesting a review

[x] I have performed a self-review of my code
[x] I've added documentation about this change to the README.
[x] I've not introduced breaking changes.

Server is currently not stopping during restore fix.


Add thrift endpoints to retrieve registered udfs/udtfs

As title.

Re CI failures: try to rebase against master?

Current branch is already up to date with upstream/main:
$ git rebase upstream/main
Current branch guilhermeleobas/thrift_endpoints is up to date.


support inline asm

Useful to run tests for unsafe code with miri

https://internals.rust-lang.org/t/should-we-ever-stabilize-inline-assembly/11211/125
https://github.com/CraneStation/cranelift/issues/444#issuecomment-531574394
tl;dr: inline asm is hard.

llvm already supports asm and jit. Wouldn't telling llvm to jit the inline asm somehow work? That shouldn't require the inline asm to be stabilized or reimplementing it in cranelift.

Wouldn't telling llvm to jit the inline asm somehow work? That shouldn't require the inline asm to be stabilized or reimplementing it in cranelift.

For miri: that would require FFI support in miri.
For cg_clif (my cranelift based codegen backend): cg_clif doesnt have any dependency on LLVM, which I want to keep that way.

I see, so it's a duplicate of #11. Thanks.


⚠ ClamAV has degraded performance

In 260c040, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 263 ms

Resolved: ClamAV performance has improved in 6cc264f.


Workflow concurrentExecLimit

Hi,
How can I set something similar to a taskdef's concurrentExecLimit but for whole workflow. (i.e. If a workflow has been started and is still running, return an error when trying to start the workflow again from the /workflow endpoint). Would the correct approach be to implement the WorkflowStatusListener interface such that it notifies my scheduler of a status of a workflow?
Thanks in advance!

@TwoUnderscorez Currently, Conductor does not inherently support a concurrent execution limit semantic at a workflow level. However, if you were to use a scheduler application to periodically start workflows, implementing the WorkflowStatusListener to notify the scheduler application would be a good approach to accomplish this.


erasing character moves the other values to the left

idk if intended behavior tho
https://github.com/guilhermerodz/input-otp/assets/5063967/25be1f44-6027-4208-a0e6-1b50ae8a5353

That's indeed the intended behavior. However, I can't tell what's the best UX possible just yet.
We might be able to add other behaviors as well.


feat: commutation with shifts of functors from quotient categories

When a relation on morphisms r : HomRel C is compatible with the shift by an additive monoid, and F : C ⥤ D is a functor which commutes with the shift and is compatible with r, then the induced functor Quotient.lift r F _ : Quotient r ⥤ D also commutes with the shift.

bors merge