Failed to find choco.exe without justin_p.wincom

Hello! Thanks for
If i run playbook without justin_p.wincom
- hosts: primarydomaincontroller
  roles:
    - role: justin_p.posh5

I get error
TASK [justin_p.posh5 : Ensure Windows Management Framework/PowerShell 5.1 are installed] ***********************************************************************************************
task path: /home/user/.ansible/roles/justin_p.posh5/tasks/main.yml:3
[WARNING]: Chocolatey was missing from this system, so it was installed during this task run.
fatal: [dc2022]: FAILED! => changed=true
  invocation:
    module_args:
      allow_empty_checksums: false
      allow_multiple: false
      allow_prerelease: false
      architecture: default
      choco_args: null
      force: false
      ignore_checksums: false
      ignore_dependencies: false
      install_args: null
      name:
      - powershell
      override_args: false
      package_params: null
      pinned: null
      proxy_password: null
      proxy_url: null
      proxy_username: null
      remove_dependencies: false
      skip_scripts: false
      source: null
      source_password: null
      source_username: null
      state: present
      timeout: 2700
      validate_certs: true
      version: null
  msg: Failed to find choco.exe, make sure it is added to the PATH or the env var 'ChocolateyInstall' is set
  rc: 0

If i run playbook
- hosts: primarydomaincontroller
  roles:
    - role: justin_p.posh5
    - role: justin_p.wincom

Then no error
TASK [justin_p.posh5 : Ensure Windows Management Framework/PowerShell 5.1 are installed] ***********************************************************************************************
task path: /home/user/.ansible/roles/justin_p.posh5/tasks/main.yml:3
[WARNING]: Chocolatey was missing from this system, so it was installed during this task run.
changed: [dc2022] => changed=true
  invocation:
    module_args:
      allow_empty_checksums: false
      allow_multiple: false
      allow_prerelease: false
      architecture: default
      choco_args: null
      force: false
      ignore_checksums: false
      ignore_dependencies: false
      install_args: null
      name:
      - powershell
      override_args: false
      package_params: null
      pinned: null
      proxy_password: null
      proxy_url: null
      proxy_username: null
      remove_dependencies: false
      skip_scripts: false
      source: null
      source_password: null
      source_username: null
      state: present
      timeout: 2700
      validate_certs: true
      version: null
  rc: 0
  stdout: |-
    Installing the following packages:
    powershell
    By installing, you accept licenses for the packages.

    PowerShell v5.1.14409.20180811 [Approved]
    powershell package files install completed. Performing other installation steps.
    Running on: Windows Server 2022 Datacenter, (ServerDatacenter), Windows Kernel: 10.0.20348
    WARNING: PowerShell version, 5.1.20348.558, is already installed.
     The install of powershell was successful.
      Software install location not explicitly set, it could be in package or
      default install location of installer.

    Chocolatey installed 1/1 packages.
     See the log for details (C:\ProgramData\Chocolatey\logs\chocolatey.log).
  stdout_lines: <omitted>
Friday 18 March 2022  09:51:02 +0600 (0:00:20.506)       0:00:26.183 **********
Friday 18 March 2022  09:51:02 +0600 (0:00:00.000)       0:00:26.183 **********
redirecting (type: action) ansible.builtin.win_reboot to ansible.windows.win_reboot
META: ran handlers
Friday 18 March 2022  09:51:02 +0600 (0:00:00.014)       0:00:26.197 **********
redirecting (type: modules) ansible.builtin.win_regedit to ansible.windows.win_regedit
Using module file /home/user/.ansible/collections/ansible_collections/ansible/windows/plugins/modules/win_regedit.ps1
Pipelining is enabled.
<<IP_ADDRESS>> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO <IP_ADDRESS>
EXEC (via pipeline wrapper)
redirecting (type: modules) ansible.builtin.win_regedit to ansible.windows.win_regedit

TASK [justin_p.posh5 : Ensure strong cryptography is set for .Net Framework (x86 and x64, Version 4 and above)] ************************************************************************
task path: /home/user/.ansible/roles/justin_p.posh5/tasks/main.yml:16
changed: [dc2022] => (item=HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319) => changed=true
  ansible_loop_var: item
  data_changed: false
  data_type_changed: false
  invocation:
    module_args:
      data: 1
      delete_key: true
      hive: null
      name: SchUseStrongCrypto
      path: HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319
      state: present
      type: dword
  item: HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319
Using module file /home/user/.ansible/collections/ansible_collections/ansible/windows/plugins/modules/win_regedit.ps1
Pipelining is enabled.
EXEC (via pipeline wrapper)
changed: [dc2022] => (item=HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319) => changed=true
  ansible_loop_var: item
  data_changed: false
  data_type_changed: false
  invocation:
    module_args:
      data: 1
      delete_key: true
      hive: null
      name: SchUseStrongCrypto
      path: HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319
      state: present
      type: dword
  item: HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319
Friday 18 March 2022  09:51:05 +0600 (0:00:03.509)       0:00:29.707 **********
redirecting (type: modules) ansible.builtin.win_shell to ansible.windows.win_shell
Using module file /home/user/.ansible/collections/ansible_collections/ansible/windows/plugins/modules/win_shell.ps1
Pipelining is enabled.
<<IP_ADDRESS>> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO <IP_ADDRESS>
EXEC (via pipeline wrapper)

TASK [justin_p.posh5 : Ensure NuGet Package Provider is installed] *********************************************************************************************************************
task path: /home/user/.ansible/roles/justin_p.posh5/tasks/main.yml:26
changed: [dc2022] => changed=true
  cmd: |-
    $PackageProvider = Get-PackageProvider -ListAvailable | Where-Object {($_.name -eq 'Nuget') -and ($_.version -ge "<IP_ADDRESS>")}
    If (-not ($PackageProvider)){
      Try {
        [void](Install-PackageProvider -Name NuGet -Scope AllUsers -MinimumVersion <IP_ADDRESS> -Confirm:$False -ErrorAction Stop -Force)
        exit 1
      } Catch {
         exit 2
      }
    } Else {
      exit 0
    }
  delta: '0:00:08.828121'
  end: '2022-03-18 03:51:17.765763'
  failed_when_result: false
  msg: non-zero return code
  rc: 1
  start: '2022-03-18 03:51:08.937641'
  stderr: ''
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>
Friday 18 March 2022  09:51:16 +0600 (0:00:10.634)       0:00:40.341 **********
redirecting (type: modules) ansible.builtin.win_shell to ansible.windows.win_shell
Using module file /home/user/.ansible/collections/ansible_collections/ansible/windows/plugins/modules/win_shell.ps1
Pipelining is enabled.
<<IP_ADDRESS>> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO <IP_ADDRESS>
EXEC (via pipeline wrapper)

TASK [justin_p.posh5 : Ensure Powershell Gallery is installed] *************************************************************************************************************************
task path: /home/user/.ansible/roles/justin_p.posh5/tasks/main.yml:43
changed: [dc2022] => changed=true
  cmd: |-
    $PowershellGallery = Get-PSRepository | Where-Object {$_.name -eq 'PSGallery'}
    if (-not ($PowershellGallery)){
      Try {
        If ( $($PSVersionTable.PSVersion).major -le 4) {
          [void](Register-PSRepository -Name PSGallery -SourceLocation https://www.powershellgallery.com/api/v2/ -InstallationPolicy Trusted -ErrorAction Stop)
        } Else {
          [void](Register-PSRepository -Default -InstallationPolicy Trusted -ErrorAction Stop)
        }
        exit 1
      }
      Catch {
        exit 2
      }
    } ElseIf ($PowershellGallery.InstallationPolicy -ne 'Trusted') {
        Try {
          [void](Set-PSRepository -Name PSGallery -InstallationPolicy Trusted -ErrorAction Stop)
          exit 1
        }
       Catch {
        exit 2
       }
    }
    Else {
      exit 0
    }
  delta: '0:00:16.078108'
  end: '2022-03-18 03:51:35.500136'
  failed_when_result: false
  msg: non-zero return code
  rc: 1
  start: '2022-03-18 03:51:19.422028'
  stderr: ''
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>
Friday 18 March 2022  09:51:33 +0600 (0:00:17.737)       0:00:58.079 **********
redirecting (type: modules) ansible.builtin.win_shell to ansible.windows.win_shell
Using module file /home/user/.ansible/collections/ansible_collections/ansible/windows/plugins/modules/win_shell.ps1
Pipelining is enabled.
<<IP_ADDRESS>> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO <IP_ADDRESS>
EXEC (via pipeline wrapper)
Friday 18 March 2022  09:51:36 +0600 (0:00:02.399)       0:01:00.478 **********
redirecting (type: modules) ansible.builtin.win_psmodule to community.windows.win_psmodule
Using module file /home/user/.ansible/collections/ansible_collections/community/windows/plugins/modules/win_psmodule.ps1
Pipelining is enabled.
<<IP_ADDRESS>> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO <IP_ADDRESS>
EXEC (via pipeline wrapper)
META: role_complete for dc2022
Friday 18 March 2022  09:51:40 +0600 (0:00:03.809)       0:01:04.288 **********
Friday 18 March 2022  09:51:40 +0600 (0:00:00.027)       0:01:04.315 **********
redirecting (type: modules) ansible.builtin.win_psmodule to community.windows.win_psmodule
Using module file /home/user/.ansible/collections/ansible_collections/community/windows/plugins/modules/win_psmodule.ps1
Pipelining is enabled.
<<IP_ADDRESS>> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO <IP_ADDRESS>
EXEC (via pipeline wrapper)
redirecting (type: modules) ansible.builtin.win_psmodule to community.windows.win_psmodule

TASK [justin_p.wincom : Ensure that required DSC resources and Powershell Modules are present] *****************************************************************************************
task path: /home/user/.ansible/roles/justin_p.wincom/tasks/main.yml:13
changed: [dc2022] => (item=xPSDesiredStateConfiguration) => changed=true
  ansible_loop_var: item
  item: xPSDesiredStateConfiguration
  nuget_changed: false
  output: Module xPSDesiredStateConfiguration installed
  repository_changed: false
Using module file /home/user/.ansible/collections/ansible_collections/community/windows/plugins/modules/win_psmodule.ps1
Pipelining is enabled.
EXEC (via pipeline wrapper)
redirecting (type: modules) ansible.builtin.win_psmodule to community.windows.win_psmodule
changed: [dc2022] => (item=NetworkingDsc) => changed=true
  ansible_loop_var: item
  item: NetworkingDsc
  nuget_changed: false
  output: Module NetworkingDsc installed
  repository_changed: false
Using module file /home/user/.ansible/collections/ansible_collections/community/windows/plugins/modules/win_psmodule.ps1
Pipelining is enabled.
EXEC (via pipeline wrapper)
changed: [dc2022] => (item=ComputerManagementDsc) => changed=true
  ansible_loop_var: item
  item: ComputerManagementDsc
  nuget_changed: false
  output: Module ComputerManagementDsc installed
  repository_changed: false
Friday 18 March 2022  09:52:25 +0600 (0:00:45.264)       0:01:49.580 **********
redirecting (type: modules) ansible.builtin.win_service to ansible.windows.win_service
Using module file /home/user/.ansible/collections/ansible_collections/ansible/windows/plugins/modules/win_service.ps1
Pipelining is enabled.
<<IP_ADDRESS>> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO <IP_ADDRESS>
EXEC (via pipeline wrapper)

TASK [justin_p.wincom : Ensure that required services are set to start when the system has settled] ************************************************************************************
task path: /home/user/.ansible/roles/justin_p.wincom/tasks/main.yml:19
changed: [dc2022] => (item=WinRM) => changed=true
  ansible_loop_var: item
  can_pause_and_continue: false
  depended_by: []
  dependencies:
  - RPCSS
  - HTTP
  description: Windows Remote Management (WinRM) service implements the WS-Management protocol for remote management. WS-Management is a standard web services protocol used for remote software and hardware management. The WinRM service listens on the network for WS-Management requests and processes them. The WinRM Service needs to be configured with a listener using winrm.cmd command line tool or through Group Policy in order for it to listen over the network. The WinRM service provides access to WMI data and enables event collection. Event collection and subscription to events require that the service is running. WinRM messages use HTTP and HTTPS as transports. The WinRM service does not depend on IIS but is preconfigured to share a port with IIS on the same machine.  The WinRM service reserves the /wsman URL prefix. To prevent conflicts with IIS, administrators should ensure that any websites hosted on IIS do not use the /wsman URL prefix.
  desktop_interact: false
  display_name: Windows Remote Management (WS-Management)
  exists: true
  invocation:
    module_args:
      dependencies: null
      dependency_action: set
      description: null
      desktop_interact: false
      display_name: null
      error_control: null
      failure_actions: null
      failure_actions_on_non_crash_failure: null
      failure_command: null
      failure_reboot_msg: null
      failure_reset_period_sec: null
      force_dependent_services: false
      load_order_group: null
      name: WinRM
      password: null
      path: null
      pre_shutdown_timeout_ms: null
      required_privileges: null
      service_type: null
      sid_info: null
      start_mode: delayed
      state: null
      update_password: null
      username: null
  item: WinRM
  name: WinRM
  path: C:\Windows\System32\svchost.exe -k NetworkService -p
  start_mode: delayed
  state: running
  username: NT AUTHORITY\NetworkService

May be include justin_p.wincom to justin_p.posh5 ?


chore: change LegalPerson to LegalParticipant for SD call

Description
Change the Type field of the SD-Factory call from legal person to legal participant
Why
The expected request object has changed.
Issue
N/A - Jira Ticket: CPLP-2962
Checklist

[x] I have followed the contributing guidelines
[x] I have performed a self-review of my own code
[x] I have successfully tested my changes locally
[x] I have added tests that prove my changes work
[x] I have checked that new and existing tests pass locally with my changes
[x] I have commented my code, particularly in hard-to-understand areas

@ntruchsess i've set the merge postponed label, because we wanted to wait for sd factory to confirm that we can bring the changes in


Feature sale moto

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

Other information:

please fix merge conflicts


Operator panicking because cache isn't filled

I'm trying to launch an operator made through the operator sdk to my kubernetes cluster. When I attach to the pod created by the operator deployment, I get the following logs and then the pod crashes:
Defaulting container name to splunk-operator.
Use 'kubectl describe pod/splunk-operator-594bf7f68b-mvjr6 -n default' to see all of the containers in this pod.
If you don't see a command prompt, try pressing enter.
ERROR: logging before flag.Parse: E1012 17:06:27.137241       1 memcache.go:138] couldn't get current server API group list; will keep using cached value. (Get https://<IP_ADDRESS>:443/api?timeout=32s: dial tcp <IP_ADDRESS>:443: i/o timeout)
time="2018-10-12T17:06:27Z" level=error msg="failed to create service for operator metrics: failed to get resource client: failed to get resource type: failed to get the resource REST mapping for GroupVersionKind(/v1, Kind=Service): the cache has not been filled yet"
time="2018-10-12T17:06:27Z" level=info msg="Watching splunk-instance.splunk.com/v1alpha1, SplunkInstance, default,<PHONE_NUMBER>"
time="2018-10-12T17:06:27Z" level=error msg="failed to get resource client for (apiVersion:splunk-instance.splunk.com/v1alpha1, kind:SplunkInstance, ns:default): failed to get resource type: failed to get the resource REST mapping for GroupVersionKind(splunk-instance.splunk.com/v1alpha1, Kind=SplunkInstance): the cache has not been filled yet"
panic: failed to get resource type: failed to get the resource REST mapping for GroupVersionKind(splunk-instance.splunk.com/v1alpha1, Kind=SplunkInstance): the cache has not been filled yet

goroutine 1 [running]:
operator/splunk-operator/vendor/github.com/operator-framework/operator-sdk/pkg/sdk.Watch(0x1188c3f, 0x23, 0x11744a5, 0xe, 0xc000040010, 0x7, 0x12a05f200, 0x0, 0x0, 0x0)
	/Users/tmalik/go/src/operator/splunk-operator/vendor/github.com/operator-framework/operator-sdk/pkg/sdk/api.go:49 +0x49a
main.main()
	/Users/tmalik/go/src/operator/splunk-operator/cmd/splunk-operator/main.go:36 +0x292

The same operator works on my local machine when using Minikube but doesn't work

@LiliC
Yes, I'm using the RBAC that operator-sdk generates for you.

@talham7391 You mentioned it works locally on minikube, but not on your k8s cluster, is it a GKE cluster?

@LiliC Nope, I am using docker UCP. After some investigation I'm finding that it may be the cluster that was causing the problem. Is there any way to enable verbose logging for what the operator sdk is doing so that I can further debug the issue?

@talham7391 The built operator does more or less what any other application running in your cluster does plus accesses the k8s api. So maybe make sure networking works and that the operator has the permissions in your cluster. But that does make sense that the issue might be in the cluster itself. Let me know if you have any other questions!
There is already an issue and discussion for adding more verbose logging https://github.com/operator-framework/operator-sdk/issues/503 Hopefully we will tackle that soon. :)

@LiliC Great! Thanks a lot

@talham7391 No problem! Feel free to reopen the issue if you run into the problems once the cluster is working!


improve display files with long names in navigation pane

Hi
If my browser does not use the all width of my screen, OSF "crop" the name of my files in the navigation pane (on the left).
It could be annoying if 2 filenames begin with the same strings...
Example :
OpenRefine_URFIST_Paris_2018-05-28-partie1.pptx
OpenRefine_URFIST_Paris_2018-05-28-partie2.pptx
You can only see "OpenRefine_URFIST_Paris_2018-05..."
https://osf.io/uf98g/

Sorry for the delay here, @msaby! This is expected behavior, as long names are truncated when browsers are made smaller. A workaround to avoid the example you described is to rename the files to different filenames so they can be easily distinguished on smaller screens (or adding a 1,2,3, etc. to be beginning of the filename). We will take your feedback into account as we continue to improve the "Files" page. Thanks!


[APIS-5] Data Standard 3.3

Stephen,
Converted  https://api.ed-fi.org/v5.3/api/metadata/data/v3/resources/swagger.json to YML
Fix "TPDM" as described in the notes below.
Auto generate a Postman file

I'm replacing this with a new branch and PR that is based on main instead of rev-4.0. The use of rev-4.0 was really only intended for the API guidelines, not for loading legacy API specification files.


Hugo website

This PR is much larger than the original one (#1648), so I'm confused. Why are we bringing in all the old website stuff as well, knowing it is not included in the new Hugo website?

This branch has both sites in it, so we could compare as we went. If you'd like, I can remove everything in the existing site folder and put the hugo site in its place.

This PR is much larger than the original one (#1648), so I'm confused. Why are we bringing in all the old website stuff as well, knowing it is not included in the new Hugo website?

This branch has both sites in it, so we could compare as we went. If you'd like, I can remove everything in the existing site folder and put the hugo site in its place.

This PR is much larger than the original one (#1648), so I'm confused. Why are we bringing in all the old website stuff as well, knowing it is not included in the new Hugo website?

This branch has both sites in it, so we could compare as we went. If you'd like, I can remove everything in the existing site folder and put the hugo site in its place.

Yes, clean slate would be my preferred approach here.

This PR is much larger than the original one (#1648), so I'm confused. Why are we bringing in all the old website stuff as well, knowing it is not included in the new Hugo website?

This branch has both sites in it, so we could compare as we went. If you'd like, I can remove everything in the existing site folder and put the hugo site in its place.

Yes, clean slate would be my preferred approach here.


Kindly Read!

Certificate of OpenSource Contribution
All GSSOC'21 Participants who Contributed to Makes Math Easy, with atleast 1 PR merged.
Kindly fill the form, sent in the GSSOC makesmatheasy Discord Channel before 10 June,2021

Participants who Contributed to Makes Math Easy Project with atleast 1 PR merged
Kindly Fill this form to receive Certificate of Contribution
https://forms.gle/3SPcsNMzhwS9k81F8


docs(conduct): Move code of conduct

Most tooling expects CODE_OF_CONDUCT.md file for code of conduct
Move it from contributing to its own file

Just refactoring docs, merging


Add reference to PR example for bulk retagging mainstream content wit…

…h different requirements
Depending on the requirements, we might need to replace all currently tagged organisations with the new one only,
or just replace the old one with a new one, leaving other tagged organisations intact.
This change is to add a link to PR with a rake task created for the second scenario.
Check slack thread with related conversation.

bit of nit picking


atomos.multiprocessing.atomic.AtomicReference not working properly

It seems that memory is not being shared between processes as expected.
Here's a simple test case:
diff --git a/tests/test_multiprocessing_atomic.py b/tests/test_multiprocessing_atomic.py
index f8600b4..9548b2c 100644
--- a/tests/test_multiprocessing_atomic.py
+++ b/tests/test_multiprocessing_atomic.py
@@ -79,3 +79,26 @@ def test_concurrent_atomic_int(process_count=10, loop_count=1000):
         p.join()

     assert atomic_int.get() == process_count * loop_count
+
+
+def test_concurrent_atomic_ref(process_count=10, loop_count=1000):
+    atomic_ref = atomos.multiprocessing.atomic.AtomicReference(0)
+
+    def inc_atomic_ref():
+        for _ in range(loop_count):
+            while True:
+                oldval = atomic_ref.get()
+                is_set = atomic_ref.compare_and_set(oldval, oldval + 1)
+                if is_set:
+                    break
+
+    processes = []
+    for _ in range(process_count):
+        p = Process(target=inc_atomic_ref)
+        processes.append(p)
+        p.start()
+
+    for p in processes:
+        p.join()
+
+    assert atomic_ref.get() == process_count * loop_count

The atomic_ref ends up returning 0 so it seems that memory between processes is not being shared as we'd expect.

I created a branch[1] with the tests to reproduce the bug. I seems that atomos.atomic.AtomicReference not works with multiprocessing.Process.
[1] https://github.com/maxcountryman/atomos/compare/master...wiliamsouza:bug/atomic_reference

I think that multiprocessing copies an object into a process but does not allow that process to write to the original object in memory. To support shared objects, it provides a Manager system.

All right, I think I may not have provided the best test case. However I've got a patch which I hope generally solves the issue (it was partly me making a mistake I specifically warned against in the documentation and partly the thing I mentioned before about multiprocessing and shared memory).


Add onMention to Markdown tag that parses Near's account IDs

Introduce mentions to Markdown component.
By default it turns @mob.near into bold, but if onMention is passed, it calls it with the accountId instead.

Example code:
const renderMention =
  ((accountId) => (
    <Widget
      src="mob.near/widget/ProfileLine"
      props={{ accountId, hideAccountId: true, tooltip: true }}
    />
  ));

return <Markdown text="Hi @root.near" onMention={renderMention} />;


Hard coded value?

Hi,
I have noticed that a padding value is hard coded for tests documents.
https://github.com/thunlp/EntityDuetNeuralRanking/blob/master/baselines/DataLoader.py#L131
When I remove it there it crashes.
Do you have an idea why? It seems related to the squeeze op.
A way to workaround this bug is to guarantee a minimum value for the query (which should be >= 4, don t ask me why, just made some tests)

Thank you for your comments. Queries and documents are represented by [batch_size, max_len] in data_loader. In both K-NRM and Conv-KNRM, they calculate the interaction matrix for ranking. Through embedding layer, queries are expanded as [batch_size, max_len, 1, embedding_size] and documents  are expanded as [batch_size, 1, max_len, embedding_size]. And in Conv-KNRM, all n-grams are feed into CNN and there is a sqeeze function. So max_len can't be 1 in Conv-KNRM. If you have other question, you can send me your bug report. Best wishes.

Ok I got it !!! Makes sense.
So may be to make it more robust pad_to_longest should guarantee that max_len is always > 3  (because CNN is set to tri grams).

Sure, I will fix it later. Thank you.

Hi, for more neural IR training, data augmentation and more about EDRM. Please refer to our WWW2020 Paper Selective Weak Supervision for Neural Information Retrieval. Thank you for your attention. I will close this issue.


invalid key format error on generating private key

In which file did you encounter the issue?
java-docs-samples/iot/api-client/mqtt_example/src/main/java/com/google/cloud/iot/examples/MqttExample.java
Describe the issue
The command I used to generate rsa private key and certificate is this:
openssl req -x509 -newkey rsa:2048 -keyout rsa_private.pem -nodes -out rsa_cert.pem -subj "/CN=unused"
In createJwtRsa method, the private key file which is working for the Python MQTT sample, giving the following error:
java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: invalid key format
	at sun.security.rsa.RSAKeyFactory.engineGeneratePrivate(RSAKeyFactory.java:217)
	at java.security.KeyFactory.generatePrivate(KeyFactory.java:372)
Caused by: java.security.InvalidKeyException: invalid key format
	at sun.security.pkcs.PKCS8Key.decode(PKCS8Key.java:330)
	at sun.security.pkcs.PKCS8Key.decode(PKCS8Key.java:356)
	at sun.security.rsa.RSAPrivateCrtKeyImpl.<init>(RSAPrivateCrtKeyImpl.java:91)
	at sun.security.rsa.RSAPrivateCrtKeyImpl.newKey(RSAPrivateCrtKeyImpl.java:75)
	at sun.security.rsa.RSAKeyFactory.generatePrivate(RSAKeyFactory.java:316)
	at sun.security.rsa.RSAKeyFactory.engineGeneratePrivate(RSAKeyFactory.java:213)
	... 3 more

When I use the following command to convert the pem into der format, it works. Is it the way it should work? As I have to use the same private key file on both the platforms, Java and Python.
openssl pkcs8 -topk8 -inform PEM -outform DER -in private_key_file  -nocrypt > pkcs8_key

Is it the way it should work?

You are correct. For Java, the certificate must be in .PEM format for the MQTT sample to be able to produce the JWT.  I've encountered the same issue; I can update the README to clarify this and correct the examples to reference files with the extension.
Currently, the only indicator that you need the PEM file is that the certificate generation script has this additional step specific to the Java sample.

Thanks, @gguuss. Good to know this.

FYI @testover99 I'm looking at this again and the existing README references the correct keyfiles, which should in fact be in PKCS #8 format.

I followed the steps mentioned  but i am getting : An error occurred: Not authorized to connect
mvn exec:java       -Dexec.mainClass="com.example.cloud.iot.examples.MqttExample"       -Dexec.args="-project_id=fueblabs-206511
-registry_id=my-registry2
-cloud_region=us-central1
-device_id=java-device-8
-private_key_file=./rsa_private_pkcs8
-algorithm=RS256"
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] cloudiot-manager-demo
[INFO] doc-samples
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building cloudiot-manager-demo 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ cloudiot-manager-demo ---
An error occurred: Not authorized to connect
[WARNING]
Not authorized to connect (5)
at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:28)
at org.eclipse.paho.client.mqttv3.internal.ClientState.notifyReceivedAck(ClientState.java:988)
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:145)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
``

@parameshwargouda did you register the device's public certificate that pairs with the private key (in PKCS8 format) used to connect?


pull request for e2e test at 01/24/2017 23:56:07

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


Update calculatortest.py

These are the changes we discussed
This code now only reads the results not "Display is 8. This change allows the calculator test to work even if any changes are applied to the Calculator app.

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

Thank you Jane!


how to get call back on no media is selected after onBackPressed

i have an transparent activity which will be called on any screen where particular media is needed so when i show this screen i have a dialog says take picture or video or select from gallery , and on selecting gallery i open the UWMediaPicker , now here what i want to know if a user cancels the selection and presses back than how to get call back with nothing selected or something like that..... i hope you get the gist of it.

Have the same issue @AnilFurkanOkcun  please look into that

I have found a solution and it worked for me.
Download the library and add to your project all files will be editable
add  resultCallback?.invoke(selectedMediaList) in returnResult() function contains in UwMediaPickerDialogFragment.class

Thank you for your feedback @inforaamitsolutions and @shaheer20 . Added this feature at version 1.3.3. You can use setCancelCallback. Also sorry for the late answer.


What to do when a frame spans across pages

Hello, I always enjoy using this cool package.
As you can see in the title, when the text inside a frame becomes too long and spans across pages, the content doesn't display properly.
What should I do in such cases?

You can pass the argument breakable:true.
If you want that setting for all clues use
show: gentle-clues.with(
    breakable: true
)

It went well! Thank you so much

@jomaway , where should one use the command
show: gentle-clues.with(
    breakable: true
)

It depends, you can use it at the top of your document then it will affect all clues you add.
You can find more Infos about show rules at the official website: https://typst.app/docs/reference/styling/


Display appVersion of Helm Release

Problem
Curently, the dashboard displays the revision value of the HelmRelease.
Would it be possible to display also the appVersion of the Helm Release indicated in Chart.yaml ?
Chart.yaml fields : https://helm.sh/docs/topics/charts/

Flux does not track AppVersion. To get this information we would have to read the Helm secret that stores all information about the Helm release.

Find the secret for a helm release
Read the secret's release field
base64 decode the value
Parse it as json
Read version value from the .chart.metadata.appVersion path

That would require to allow reading all secrets for users. Unless someone knows an easier way to get this information.
❯ kubectl get secrets -n traefik sh.helm.release.v1.traefik.v1 -o yaml \
    | yq '.data | map_values(@base64d)' \
    | dasel -r yaml '.release' \
    | base64  -d \
    | gunzip \
    | dasel -r json '.chart.metadata.appVersion'
"v2.10.1"

We might already be reading some info out of this secret to generate the inventory list in the UI?
https://github.com/weaveworks/weave-gitops/blob/08351ea31c48f0b8044f527bd2d7972aef4f3e55/core/server/helm_release.go#L21-L34

We should be able to parse it from the Secret.


GraphQL datasource

added   GraphQL datasource

This code wasn't tested, e.g. YAML files contain Python code.

@droserasprout  I use docker for testing


Remove 404'ed Link To SendGrid List Assist

Description of the change:
SendGrid List Assist no longer exists as a stand-alone tool.
This article linked to a blog post which has since been deleted and leads to a 404 Error page on Line 39: https://sendgrid.com/blog/introducing-sendgrid-list-assist/
SendGrid List Assist was a part of the SendGrid Utilities, and the functionality of List Assist has been folded into Suppression Lists.
This removes the URL to the 404'ed List Assist page and replaces it with the Docs link to help people manage their Suppression Lists, located at: https://sendgrid.com/docs/ui/managing-contacts/managing-contact-list/#managing-your-list
Reason for the change:
Fix 404'ed link to an old blog post and needs to remove tool that doesn't exist stand-alone anymore.
Link to original source:
SendGrid List Assist's blog post introduction and the sign-in page can be found on the Wayback Machine:
https://web.archive.org/web/20150911222737/https://sendgrid.com/blog/introducing-sendgrid-list-assist/
https://web.archive.org/web/20150906104240/https://sendgrid.com/docs/Utilities/list_assist.html
However, what List Assist used to do (track Unsubscribes, Bounces, Invalid Emails, Spam Reports) are now a part of Suppression Lists

Hello @crweiner,Thanks again for the PR! It's HACKTOBERFEST! We want to show our appreciation by sending                                              you some special Hacktoberfest swag. If you have not already, could you please fill out                                              this form so we can send it to you? Thanks!                                             Team SendGrid DX


👀 Looking for Smart Appliance Owners

Context: these appliances are now supported by the Govee API (https://govee-public.s3.amazonaws.com/developer-docs/GoveeDeveloperAPIReference.pdf) and I need a list of the different modes and their number values per model.
I'm looking for owners of the smart appliances:
Needed:

H7132 (heater)

H7150 (dehumidifier)

H7120 (purifier)

H7123 (purifier)

Done:

✅ H7101 (fan)
✅ H7111 (fan)
✅ H7130 (heater)
✅ H7131 (heater)
✅ H7141 (humidifier)
✅ H7142 (humidifier)
✅ H7160 (humidifier)
✅ H7121 (purifier)
✅ H7122 (purifier)

to help me with the following:

if you don't have one already, obtain a Govee API key and enter this into the plugin configuration
update to the beta version of the plugin: https://github.com/bwp91/homebridge-govee/wiki/Beta-Version#
watch the logs as the bridge restarts, you should see some yellow text as the plugin loads, the message starting with[device-name] Please post the following on GitHub:

Post the whole message here (there won't be anything personal in there, just generic info about the model)

Howdy, I have an H7130. Willing to help out with whatever!

Hi @SpinnerMaster thanks for replying! Are you able to

if you don't have one already, obtain a Govee API key and enter this into the plugin configuration
update to the beta version of the plugin, you can do this with HOOBS like this:
https://github.com/bwp91/homebridge-govee/wiki/Beta-Version#hoobs-4
watch the logs as the bridge restarts, you should see some yellow text as the plugin loads, the message starting with[device-name] Please post the following on GitHub:

Post the whole message here (there won't be anything personal in there, just generic info about the model)

Context: these appliances are now supported by the Govee API (https://govee-public.s3.amazonaws.com/developer-docs/GoveeDeveloperAPIReference.pdf) and I need a list of the different modes and their number values per model. Since I don't own any of these appliances, I need to gather them from users like yourself!

H7130:
{
  "mode": {
    "options": [
      {
        "name": "Low",
        "value": "1"
      },
      {
        "name": "Medium",
        "value": "2"
      },
      {
        "name": "High",
        "value": "3"
      }
    ]
  }
}

perfect thanks @mariusstrom !

H7111
{
  "mode": {
    "options": [
      {
        "name": "Custom",
        "value": 2
      },
      {
        "name": "Auto",
        "value": 3
      },
      {
        "name": "Sleep",
        "value": 5
      },
      {
        "name": "Nature",
        "value": 6
      },
      {
        "name": "Turbo",
        "value": 7
      }
    ]
  },
  "gear": {
    "options": [
      {
        "name": "gear",
        "value": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8
        ]
      }
    ]
  }
}

@bwp91 not sure if this helps, but the H7130 which I pasted above on the "My Devices" screen in the Govee plugin settings also shows:

I would imagine that the options for turn are on and off just like the light models.
I also don't know whether the commands and values are the same between different models of the same device type like heaters

Hopefully this helps :)
[09/10/2022, 17:35:54] [Govee] [Big Air Purifier] Please post the following on GitHub:
H7122
{
  "mode": {
    "options": [
      {
        "name": "Low",
        "value": 1
      },
      {
        "name": "Medium",
        "value": 2
      },
      {
        "name": "High",
        "value": 3
      },
      {
        "name": "Auto mode",
        "value": 4
      },
      {
        "name": "Sleep mode",
        "value": 5
      },
      {
        "name": "CustomMode mode",
        "value": 6
      }
    ]
  }
}

[09/10/2022, 17:35:54] [Govee] [Small Humidifier] Please post the following on GitHub:
H7141
{
  "mode": {
    "options": [
      {
        "name": "Custom",
        "value": 2
      },
      {
        "name": "Auto",
        "value": 3
      }
    ]
  },
  "gear": {
    "options": [
      {
        "name": "gear",
        "value": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8
        ]
      }
    ]
  }
}

[09/10/2022, 17:35:54] [Govee] [Big Humidifier] Please post the following on GitHub:
H7142
{
  "mode": {
    "options": [
      {
        "name": "Custom",
        "value": 2
      },
      {
        "name": "Auto",
        "value": 3
      }
    ]
  },
  "gear": {
    "options": [
      {
        "name": "gear",
        "value": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9
        ]
      }
    ]
  }
}

[09/10/2022, 17:35:54] [Govee] [Smart Air Circulator] Please post the following on GitHub:
H7111
{
  "mode": {
    "options": [
      {
        "name": "Custom",
        "value": 2
      },
      {
        "name": "Auto",
        "value": 3
      },
      {
        "name": "Sleep",
        "value": 5
      },
      {
        "name": "Nature",
        "value": 6
      },
      {
        "name": "Turbo",
        "value": 7
      }
    ]
  },
  "gear": {
    "options": [
      {
        "name": "gear",
        "value": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8
        ]
      }
    ]
  }
}

[09/10/2022, 17:35:54] [Govee] [Smart Tower Fan] Please post the following on GitHub:
H7101
{
  "mode": {
    "options": [
      {
        "name": "Custom",
        "value": 2
      },
      {
        "name": "Auto",
        "value": 3
      },
      {
        "name": "Sleep",
        "value": 5
      },
      {
        "name": "Nature",
        "value": 6
      }
    ]
  },
  "gear": {
    "options": [
      {
        "name": "gear",
        "value": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8
        ]
      }
    ]
  }
}

I have an H7121. How may I be of assistance?

I have an H7121. How may I be of assistance?

Check this link post: https://github.com/bwp91/homebridge-govee/issues/321#issuecomment-1272507587

Here ya go
H7121
{
"mode": {
"options": [
{
"name": "Low",
"value": 1
},
{
"name": "Medium",
"value": 2
},
{
"name": "High",
"value": 3
},
{
"name": "Sleep",
"value": 16
}
]
}
}

thanks to everyone so far 😃

H7160
{
"mode": {
"options": [
{
"name": "Manual",
"value": 1
},
{
"name": "Custom",
"value": 2
},
{
"name": "Auto",
"value": 3
}
]
},
"gear": {
"options": [
{
"name": "gear",
"value": [
1,
2,
3,
4,
5,
6,
7,
8,
9
]
}
]
}
}

Here's H7160
H7160 {   "mode": {     "options": [       {         "name": "Manual",         "value": 1       },       {         "name": "Custom",         "value": 2       },       {         "name": "Auto",         "value": 3       }     ]   },   "gear": {     "options": [       {         "name": "gear",         "value": [           1,           2,           3,           4,           5,           6,           7,           8,           9         ]       }     ]   } }

great thanks @9zero8 !

great thanks @9zero8 !

No problem at all.  Thank you!

@SpinnerMaster @mariusstrom
I note you both have H7130s.
Are you able to confirm (from the latest version of the plugin v7.4.0) if the oscillation function is working from the home app?

I have homebridge paired with homeassistant and I do understand that might not be the setup you are using as you work on this plug in.
That said, I have the H7121 Air Purifier. It seems to be controllable through homebridge, but the only option I see when I open this device within homeassistant is the "lock physical controls" setting. No way to turn the device on or off or set the speed.
I'm not sure why these options aren't pushing over to HA. All other govee devices I have running through this plugin are working great.
If you want me to try running this plugin as a separate bridge and connecting it directly to HomeKit to see how the purifier looks there, let me know.

@bwp91
Hey Ben, I have an H7142 (humidifier with an RGB nightlight + UV-C purifier combo).  I'd be happy to help get the device handler for this working fully (currently lacking night light control, color, and UV-C).  I'm good with coding, but have never coded a DH for home bridge.  I'm a bit confused why everything is in hex.
I'd be happy to help out with a pinch of hand-holding in the beginning:
12/24/2022, 12:44:42 AMGovee BridgeJohnGoveeInitialising plugin v7.6.1-beta.6 | System linux | Node v16.19.0 | HB v1.5.0 | HAPNodeJS v0.10.2...
12/24/2022, 12:44:42 AMGovee BridgeJohnGoveeWARNINGConfig entry [humidifierDevices.16:7F:D4:AD:FC:52:FA:72.awsDebug] is unused and can be removed.
12/24/2022, 12:44:42 AMGovee BridgeJohnGoveePlugin initialised. Setting up accessories....
12/24/2022, 12:44:42 AMGovee BridgeJohnGoveeWARNING******************************************************************************************
12/24/2022, 12:44:42 AMGovee BridgeJohnGoveeWARNINGYou are using a beta version of the plugin - you will experience more logging than normal.
12/24/2022, 12:44:42 AMGovee BridgeJohnGoveeWARNING******************************************************************************************
12/24/2022, 12:44:42 AMGovee BridgeBridge is running on port 51896.
12/24/2022, 12:44:42 AMGovee BridgeJohnGoveeWARNING[LAN] disabling client as disabled in config.
12/24/2022, 12:44:42 AMGovee BridgeJohnGovee[HTTP] retrieved access token from cache.
12/24/2022, 12:44:42 AMGovee BridgeJohnGovee[HTTP] client enabled and found 2 device(s).
12/24/2022, 12:44:42 AMGovee BridgeJohnGovee[AWS] client enabled.
12/24/2022, 12:44:42 AMGovee BridgeJohnGovee[AWS] connect event.
12/24/2022, 12:44:43 AMGovee BridgeJohnGovee[API] client enabled and found 2 device(s).
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[BLE] disabling client as disabled in config.
12/24/2022, 12:44:43 AMGovee BridgeJohnGovee[Family Room Humidifier] initialising with options {}.
12/24/2022, 12:44:43 AMGovee BridgeJohnGovee[Family Room Humidifier] initialised with id [35:C2:D4:AD:FC:94:9E:32] [H7142].
12/24/2022, 12:44:43 AMGovee BridgeJohnGovee[John Bedroom - Humid] initialising with options {}.
12/24/2022, 12:44:43 AMGovee BridgeJohnGovee[John Bedroom - Humid] initialised with id [16:7F:D4:AD:FC:52:FA:72] [H7142].
12/24/2022, 12:44:43 AMGovee BridgeJohnGovee[Family Room Humidifier] [AWS] sending update {"msg":{"cmd":"status","cmdVersion":2,"transaction":"v_1671864283210000","type":0}}.
12/24/2022, 12:44:43 AMGovee BridgeJohnGovee[John Bedroom - Humid] [AWS] sending update {"msg":{"cmd":"status","cmdVersion":2,"transaction":"v_1671864283211000","type":0}}.
12/24/2022, 12:44:43 AMGovee BridgeJohnGovee[AWS] message event [{"proType":2,"sku":"H7142","device":"35:C2:D4:AD:FC:94:9E:32","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"v_1671864283210000","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"09402C"},"result":1},"op":{"command":["qhIAAAAAAAAAAAAAAAAAAAAAALg=","qhEAAAAAAAAAAAAAAAAAAAAAALs=","qgUAAwAAAAAAAAAAAAAAAAAAAKw=","qgUBCQAAAAAAAAAAAAAAAAAAAKc=","qgUCAAkAPAA8BQA8ADwB/////6A=","qgUDRgAAAAAAAAAAAAAAAAAAAOo=","qhoBAAAAAAAAAAAAAAAAAAAAALE=","qhsAZAAI/wAAAAAAAAAAAAAAACI=","qhgB/////wAAAAAAAAAAAAAAALM="]}}].
12/24/2022, 12:44:43 AMGovee BridgeJohnGovee[Family Room Humidifier] [AWS] receiving update {"source":"AWS","onOff":1,"sta":{"stc":"09402C"},"result":1,"op":{"command":["qhIAAAAAAAAAAAAAAAAAAAAAALg=","qhEAAAAAAAAAAAAAAAAAAAAAALs=","qgUAAwAAAAAAAAAAAAAAAAAAAKw=","qgUBCQAAAAAAAAAAAAAAAAAAAKc=","qgUCAAkAPAA8BQA8ADwB/////6A=","qgUDRgAAAAAAAAAAAAAAAAAAAOo=","qhoBAAAAAAAAAAAAAAAAAAAAALE=","qhsAZAAI/wAAAAAAAAAAAAAAACI=","qhgB/////wAAAAAAAAAAAAAAALM="]}}.
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhIAAAAAAAAAAAAAAAAAAAAAALg=] [aa120000000000000000000000000000000000b8].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhEAAAAAAAAAAAAAAAAAAAAAALs=] [aa110000000000000000000000000000000000bb].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qgUAAwAAAAAAAAAAAAAAAAAAAKw=] [aa050003000000000000000000000000000000ac].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qgUBCQAAAAAAAAAAAAAAAAAAAKc=] [aa050109000000000000000000000000000000a7].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qgUCAAkAPAA8BQA8ADwB/////6A=] [aa05020009003c003c05003c003c01ffffffffa0].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qgUDRgAAAAAAAAAAAAAAAAAAAOo=] [aa050346000000000000000000000000000000ea].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhoBAAAAAAAAAAAAAAAAAAAAALE=] [aa1a0100000000000000000000000000000000b1].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhsAZAAI/wAAAAAAAAAAAAAAACI=] [aa1b00640008ff00000000000000000000000022].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhgB/////wAAAAAAAAAAAAAAALM=] [aa1801ffffffff000000000000000000000000b3].
12/24/2022, 12:44:43 AMGovee BridgeJohnGovee[AWS] message event [{"proType":2,"sku":"H7142","device":"16:7F:D4:AD:FC:52:FA:72","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"v_1671864283211000","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"09F029"},"result":1},"op":{"command":["qhIAAAAAAAAAAAAAAAAAAAAAALg=","qhEAAAAAAAAAAAAAAAAAAAAAALs=","qgUAAwAAAAAAAAAAAAAAAAAAAKw=","qgUBCQAAAAAAAAAAAAAAAAAAAKc=","qgUCAAkAPAA8BQA8ADwB/////6A=","qgUDQQAAAAAAAAAAAAAAAAAAAO0=","qhoBAAAAAAAAAAAAAAAAAAAAALE=","qhsBZOq//wAAAAAAAAAAAAAAAH4=","qhgB/////wAAAAAAAAAAAAAAALM="]}}].
12/24/2022, 12:44:43 AMGovee BridgeJohnGovee[John Bedroom - Humid] [AWS] receiving update {"source":"AWS","onOff":1,"sta":{"stc":"09F029"},"result":1,"op":{"command":["qhIAAAAAAAAAAAAAAAAAAAAAALg=","qhEAAAAAAAAAAAAAAAAAAAAAALs=","qgUAAwAAAAAAAAAAAAAAAAAAAKw=","qgUBCQAAAAAAAAAAAAAAAAAAAKc=","qgUCAAkAPAA8BQA8ADwB/////6A=","qgUDQQAAAAAAAAAAAAAAAAAAAO0=","qhoBAAAAAAAAAAAAAAAAAAAAALE=","qhsBZOq//wAAAAAAAAAAAAAAAH4=","qhgB/////wAAAAAAAAAAAAAAALM="]}}.
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhIAAAAAAAAAAAAAAAAAAAAAALg=] [aa120000000000000000000000000000000000b8].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhEAAAAAAAAAAAAAAAAAAAAAALs=] [aa110000000000000000000000000000000000bb].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qgUAAwAAAAAAAAAAAAAAAAAAAKw=] [aa050003000000000000000000000000000000ac].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qgUBCQAAAAAAAAAAAAAAAAAAAKc=] [aa050109000000000000000000000000000000a7].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qgUCAAkAPAA8BQA8ADwB/////6A=] [aa05020009003c003c05003c003c01ffffffffa0].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qgUDQQAAAAAAAAAAAAAAAAAAAO0=] [aa050341000000000000000000000000000000ed].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhoBAAAAAAAAAAAAAAAAAAAAALE=] [aa1a0100000000000000000000000000000000b1].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhsBZOq//wAAAAAAAAAAAAAAAH4=] [aa1b0164eabfff0000000000000000000000007e].
12/24/2022, 12:44:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhgB/////wAAAAAAAAAAAAAAALM=] [aa1801ffffffff000000000000000000000000b3].
12/24/2022, 12:44:45 AMGovee BridgeJohnGovee✓ Setup complete. Have a feature request? Visit https://bit.ly/hb-govee-issues to ask!
12/24/2022, 12:45:13 AMGovee BridgeJohnGovee[Family Room Humidifier] [AWS] sending update {"msg":{"cmd":"status","cmdVersion":2,"transaction":"v_1671864313213000","type":0}}.
12/24/2022, 12:45:13 AMGovee BridgeJohnGovee[John Bedroom - Humid] [AWS] sending update {"msg":{"cmd":"status","cmdVersion":2,"transaction":"v_1671864313214000","type":0}}.
12/24/2022, 12:45:13 AMGovee BridgeJohnGovee[AWS] message event [{"proType":2,"sku":"H7142","device":"16:7F:D4:AD:FC:52:FA:72","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"v_1671864313214000","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"09F028"},"result":1},"op":{"command":["qhIAAAAAAAAAAAAAAAAAAAAAALg=","qhEAAAAAAAAAAAAAAAAAAAAAALs=","qgUAAwAAAAAAAAAAAAAAAAAAAKw=","qgUBCQAAAAAAAAAAAAAAAAAAAKc=","qgUCAAkAPAA8BQA8ADwB/////6A=","qgUDQQAAAAAAAAAAAAAAAAAAAO0=","qhoBAAAAAAAAAAAAAAAAAAAAALE=","qhsBZOq//wAAAAAAAAAAAAAAAH4=","qhgB/////wAAAAAAAAAAAAAAALM="]}}].
12/24/2022, 12:45:13 AMGovee BridgeJohnGovee[John Bedroom - Humid] [AWS] receiving update {"source":"AWS","onOff":1,"sta":{"stc":"09F028"},"result":1,"op":{"command":["qhIAAAAAAAAAAAAAAAAAAAAAALg=","qhEAAAAAAAAAAAAAAAAAAAAAALs=","qgUAAwAAAAAAAAAAAAAAAAAAAKw=","qgUBCQAAAAAAAAAAAAAAAAAAAKc=","qgUCAAkAPAA8BQA8ADwB/////6A=","qgUDQQAAAAAAAAAAAAAAAAAAAO0=","qhoBAAAAAAAAAAAAAAAAAAAAALE=","qhsBZOq//wAAAAAAAAAAAAAAAH4=","qhgB/////wAAAAAAAAAAAAAAALM="]}}.
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhIAAAAAAAAAAAAAAAAAAAAAALg=] [aa120000000000000000000000000000000000b8].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhEAAAAAAAAAAAAAAAAAAAAAALs=] [aa110000000000000000000000000000000000bb].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qgUAAwAAAAAAAAAAAAAAAAAAAKw=] [aa050003000000000000000000000000000000ac].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qgUBCQAAAAAAAAAAAAAAAAAAAKc=] [aa050109000000000000000000000000000000a7].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qgUCAAkAPAA8BQA8ADwB/////6A=] [aa05020009003c003c05003c003c01ffffffffa0].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qgUDQQAAAAAAAAAAAAAAAAAAAO0=] [aa050341000000000000000000000000000000ed].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhoBAAAAAAAAAAAAAAAAAAAAALE=] [aa1a0100000000000000000000000000000000b1].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhsBZOq//wAAAAAAAAAAAAAAAH4=] [aa1b0164eabfff0000000000000000000000007e].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhgB/////wAAAAAAAAAAAAAAALM=] [aa1801ffffffff000000000000000000000000b3].
12/24/2022, 12:45:13 AMGovee BridgeJohnGovee[AWS] message event [{"proType":2,"sku":"H7142","device":"35:C2:D4:AD:FC:94:9E:32","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"v_1671864313213000","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"09402C"},"result":1},"op":{"command":["qhIAAAAAAAAAAAAAAAAAAAAAALg=","qhEAAAAAAAAAAAAAAAAAAAAAALs=","qgUAAwAAAAAAAAAAAAAAAAAAAKw=","qgUBCQAAAAAAAAAAAAAAAAAAAKc=","qgUCAAkAPAA8BQA8ADwB/////6A=","qgUDRgAAAAAAAAAAAAAAAAAAAOo=","qhoBAAAAAAAAAAAAAAAAAAAAALE=","qhsAZAAI/wAAAAAAAAAAAAAAACI=","qhgB/////wAAAAAAAAAAAAAAALM="]}}].
12/24/2022, 12:45:13 AMGovee BridgeJohnGovee[Family Room Humidifier] [AWS] receiving update {"source":"AWS","onOff":1,"sta":{"stc":"09402C"},"result":1,"op":{"command":["qhIAAAAAAAAAAAAAAAAAAAAAALg=","qhEAAAAAAAAAAAAAAAAAAAAAALs=","qgUAAwAAAAAAAAAAAAAAAAAAAKw=","qgUBCQAAAAAAAAAAAAAAAAAAAKc=","qgUCAAkAPAA8BQA8ADwB/////6A=","qgUDRgAAAAAAAAAAAAAAAAAAAOo=","qhoBAAAAAAAAAAAAAAAAAAAAALE=","qhsAZAAI/wAAAAAAAAAAAAAAACI=","qhgB/////wAAAAAAAAAAAAAAALM="]}}.
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhIAAAAAAAAAAAAAAAAAAAAAALg=] [aa120000000000000000000000000000000000b8].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhEAAAAAAAAAAAAAAAAAAAAAALs=] [aa110000000000000000000000000000000000bb].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qgUAAwAAAAAAAAAAAAAAAAAAAKw=] [aa050003000000000000000000000000000000ac].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qgUBCQAAAAAAAAAAAAAAAAAAAKc=] [aa050109000000000000000000000000000000a7].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qgUCAAkAPAA8BQA8ADwB/////6A=] [aa05020009003c003c05003c003c01ffffffffa0].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qgUDRgAAAAAAAAAAAAAAAAAAAOo=] [aa050346000000000000000000000000000000ea].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhoBAAAAAAAAAAAAAAAAAAAAALE=] [aa1a0100000000000000000000000000000000b1].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhsAZAAI/wAAAAAAAAAAAAAAACI=] [aa1b00640008ff00000000000000000000000022].
12/24/2022, 12:45:13 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhgB/////wAAAAAAAAAAAAAAALM=] [aa1801ffffffff000000000000000000000000b3].
12/24/2022, 12:45:43 AMGovee BridgeJohnGovee[Family Room Humidifier] [AWS] sending update {"msg":{"cmd":"status","cmdVersion":2,"transaction":"v_1671864343213000","type":0}}.
12/24/2022, 12:45:43 AMGovee BridgeJohnGovee[John Bedroom - Humid] [AWS] sending update {"msg":{"cmd":"status","cmdVersion":2,"transaction":"v_1671864343214000","type":0}}.
12/24/2022, 12:45:43 AMGovee BridgeJohnGovee[AWS] message event [{"proType":2,"sku":"H7142","device":"35:C2:D4:AD:FC:94:9E:32","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"v_1671864343213000","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"09402B"},"result":1},"op":{"command":["qhIAAAAAAAAAAAAAAAAAAAAAALg=","qhEAAAAAAAAAAAAAAAAAAAAAALs=","qgUAAwAAAAAAAAAAAAAAAAAAAKw=","qgUBCQAAAAAAAAAAAAAAAAAAAKc=","qgUCAAkAPAA8BQA8ADwB/////6A=","qgUDRgAAAAAAAAAAAAAAAAAAAOo=","qhoBAAAAAAAAAAAAAAAAAAAAALE=","qhsAZAAI/wAAAAAAAAAAAAAAACI=","qhgB/////wAAAAAAAAAAAAAAALM="]}}].
12/24/2022, 12:45:43 AMGovee BridgeJohnGovee[Family Room Humidifier] [AWS] receiving update {"source":"AWS","onOff":1,"sta":{"stc":"09402B"},"result":1,"op":{"command":["qhIAAAAAAAAAAAAAAAAAAAAAALg=","qhEAAAAAAAAAAAAAAAAAAAAAALs=","qgUAAwAAAAAAAAAAAAAAAAAAAKw=","qgUBCQAAAAAAAAAAAAAAAAAAAKc=","qgUCAAkAPAA8BQA8ADwB/////6A=","qgUDRgAAAAAAAAAAAAAAAAAAAOo=","qhoBAAAAAAAAAAAAAAAAAAAAALE=","qhsAZAAI/wAAAAAAAAAAAAAAACI=","qhgB/////wAAAAAAAAAAAAAAALM="]}}.
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhIAAAAAAAAAAAAAAAAAAAAAALg=] [aa120000000000000000000000000000000000b8].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhEAAAAAAAAAAAAAAAAAAAAAALs=] [aa110000000000000000000000000000000000bb].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qgUAAwAAAAAAAAAAAAAAAAAAAKw=] [aa050003000000000000000000000000000000ac].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qgUBCQAAAAAAAAAAAAAAAAAAAKc=] [aa050109000000000000000000000000000000a7].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qgUCAAkAPAA8BQA8ADwB/////6A=] [aa05020009003c003c05003c003c01ffffffffa0].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qgUDRgAAAAAAAAAAAAAAAAAAAOo=] [aa050346000000000000000000000000000000ea].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhoBAAAAAAAAAAAAAAAAAAAAALE=] [aa1a0100000000000000000000000000000000b1].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhsAZAAI/wAAAAAAAAAAAAAAACI=] [aa1b00640008ff00000000000000000000000022].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[Family Room Humidifier] new scene code: [qhgB/////wAAAAAAAAAAAAAAALM=] [aa1801ffffffff000000000000000000000000b3].
12/24/2022, 12:45:43 AMGovee BridgeJohnGovee[AWS] message event [{"proType":2,"sku":"H7142","device":"16:7F:D4:AD:FC:52:FA:72","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"v_1671864343214000","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"09F029"},"result":1},"op":{"command":["qhIAAAAAAAAAAAAAAAAAAAAAALg=","qhEAAAAAAAAAAAAAAAAAAAAAALs=","qgUAAwAAAAAAAAAAAAAAAAAAAKw=","qgUBCQAAAAAAAAAAAAAAAAAAAKc=","qgUCAAkAPAA8BQA8ADwB/////6A=","qgUDQQAAAAAAAAAAAAAAAAAAAO0=","qhoBAAAAAAAAAAAAAAAAAAAAALE=","qhsBZOq//wAAAAAAAAAAAAAAAH4=","qhgB/////wAAAAAAAAAAAAAAALM="]}}].
12/24/2022, 12:45:43 AMGovee BridgeJohnGovee[John Bedroom - Humid] [AWS] receiving update {"source":"AWS","onOff":1,"sta":{"stc":"09F029"},"result":1,"op":{"command":["qhIAAAAAAAAAAAAAAAAAAAAAALg=","qhEAAAAAAAAAAAAAAAAAAAAAALs=","qgUAAwAAAAAAAAAAAAAAAAAAAKw=","qgUBCQAAAAAAAAAAAAAAAAAAAKc=","qgUCAAkAPAA8BQA8ADwB/////6A=","qgUDQQAAAAAAAAAAAAAAAAAAAO0=","qhoBAAAAAAAAAAAAAAAAAAAAALE=","qhsBZOq//wAAAAAAAAAAAAAAAH4=","qhgB/////wAAAAAAAAAAAAAAALM="]}}.
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhIAAAAAAAAAAAAAAAAAAAAAALg=] [aa120000000000000000000000000000000000b8].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhEAAAAAAAAAAAAAAAAAAAAAALs=] [aa110000000000000000000000000000000000bb].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qgUAAwAAAAAAAAAAAAAAAAAAAKw=] [aa050003000000000000000000000000000000ac].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qgUBCQAAAAAAAAAAAAAAAAAAAKc=] [aa050109000000000000000000000000000000a7].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qgUCAAkAPAA8BQA8ADwB/////6A=] [aa05020009003c003c05003c003c01ffffffffa0].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qgUDQQAAAAAAAAAAAAAAAAAAAO0=] [aa050341000000000000000000000000000000ed].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhoBAAAAAAAAAAAAAAAAAAAAALE=] [aa1a0100000000000000000000000000000000b1].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhsBZOq//wAAAAAAAAAAAAAAAH4=] [aa1b0164eabfff0000000000000000000000007e].
12/24/2022, 12:45:43 AMGovee BridgeJohnGoveeWARNING[John Bedroom - Humid] new scene code: [qhgB/////wAAAAAAAAAAAAAAALM=] [aa1801ffffffff000000000000000000000000b3].

Hi @jpk32
H7141 and H7142 are actually the next devices I will be looking into - within the next few days :)

Hi @jpk32
H7141 and H7142 are actually the next devices I will be looking into - within the next few days :)

Let me know if I can help in any way!

@jpk32
please try the beta version with the H7142, should be working well now

@bwp91
Hey Ben!  Thank you!  Things look much better.
The only thing I can’t seem to control is the mode (custom, auto, manual), and a toggle for the UVC air filter.

@jpk32
manual mode - speed 1 - 9 relates to 10% - 90% homekit rotation speed
auto mode - is 100% homekit rotation speed
custom mode - haven't supported this (yet) as I didn't know the best way
also UVC air filter - the plugin will automatically just turn this on when turning the device on. i assumed it would be normal to want this on anyway?

Hi @jpk32,
Thank you SO much for the explanation.  Once I get a little more familiar with HomeKit and the Govee API, I'd be happy to help out and contribute.
I also sponsored you via GitHub for a bit for your time :)

Hey @bwp91 did you see my post above about my purifier issue? I know you said they are a work in progress but it's odd to me that my functionality has gone backwards on this.
Let me know if I can assist at all. I can copy stuff from the logs like I've seen you ask others for in the past.
Thanks!

Hey @bwp91 did you see my post above about my purifier issue? I know you said they are a work in progress but it's odd to me that my functionality has gone backwards on this.
Let me know if I can assist at all. I can copy stuff from the logs like I've seen you ask others for in the past.
Thanks!

Hi @sdaltons1 so for the H7121 I expose the following main characteristics:

Active - ability to turn the device on and off
RotationSpeed - 0%, 25%, 50%, 75% and 100% corresponding to Govee speeds (off, 1, 2, 3, 4)
LockPhysicalControls - self explanatory

I also expose some custom characteristics that can only be enabled/disabled in the Eve HomeKit app:

NightLight - (although not sure if this model has this function?)
DisplayLight - (same as above)

Maybe of note, I disable the TargetAirPurifierState characteristic since it is not needed for this implementation. Whilst it's not normal to do this, I wonder if this is the reason why it is not displaying correctly in Home Assistant.
I'm surprised that the Active option is not shown for you, this is a very normal for this device type.

Hey @bwp91 did you see my post above about my purifier issue? I know you said they are a work in progress but it's odd to me that my functionality has gone backwards on this.
Let me know if I can assist at all. I can copy stuff from the logs like I've seen you ask others for in the past.
Thanks!

Hi @sdaltons1 so for the H7121 I expose the following main characteristics:

Active - ability to turn the device on and off
RotationSpeed - 0%, 25%, 50%, 75% and 100% corresponding to Govee speeds (off, 1, 2, 3, 4)
LockPhysicalControls - self explanatory

I also expose some custom characteristics that can only be enabled/disabled in the Eve HomeKit app:

NightLight - (although not sure if this model has this function?)
DisplayLight - (same as above)

Maybe of note, I disable the TargetAirPurifierState characteristic since it is not needed for this implementation. Whilst it's not normal to do this, I wonder if this is the reason why it is not displaying correctly in Home Assistant.
I'm surprised that the Active option is not shown for you, this is very normal for this device type.

Very odd behavior. I have complete control over the device in homebridge but only "lock physical controls" pushes to homeassistant. I have a humidifier, heater, and fan also from govee using your plugin and they all look right in homeassistant.
I'm probably going to reset my HK pairing in homebridge and make a new connection to HA to see if that helps. Maybe I'll probably try putting the govee on a child bridge first, idk

I'm now thinking there's something stuck with regards to my specific device.
I set up this plugin as a child bridge. First connected that to HA. Same result.
So then I deleted it from HA and connected it directly to HK. Same result.
Thinking I need to delete the govee plugin, delete the device from my app, and start all the way over with a clean install.

I tried everything I could think of to get this working with no luck. But then I reset my homebridge accessory and re-paired it and all the controls for my purifier are back! Yay!


Implemented Data Editor Svelte Test Structure

Added yarn script to run data editor tests using Mocha.
Added example function and Svelte store tests.

This is a simple directory structure and test suite setup that utilizes the mocha test suite that's currently a utilized dependency. The test:svelte script should be ran manually during development and is not currently implemented to be ran during packaging of the extension.
With the mocha -w option, it does not currently support traditional sourcing of the directory due a discrepancy with with node. ^1 Typing r s <Enter>, while the test:svelte script is watching, will manually source the directory structure and re-run the tests. ^2
Closes #915

@shanedell I added a new script & modified 2 existing scripts:

Added watch:svelte-tests - For having only the svelte tests watched during development.
Changed test:svelte to not have the -w option for watching.
Changed test to your first suggestion.

@shanedell I added a new script & modified 2 existing scripts:
* Added `watch:svelte-tests` - For having only the svelte tests watched during development.

* Changed `test:svelte` to not have the `-w` option for watching.

* Changed `test` to your first suggestion.

Looks like the mocha side is still failing on the CI side due to the same compilation errors I mentioned before. I'm not entirely sure why though because running mocha -r ts-node/register ./src/svelte/tests/**/*.test.ts or yarn test:svelte does not throw those errors on my machine.

My local build is passing


How to quit

I want to launch neofetch just at the beginning of a zsh session, jut like in the attached screenshot (the first screenshot shows screenfetch), but neofetch doesn't quit automatically so i have to press Ctrl+C…
So if I log in on my device, it looks like that (second screenshot)…
would be great if there would be at least a launch option to automatically quit (or i didn't figure it out^^)…

Where in your zshrc have you put the neofetch line? This is working fine for me with zsh 5.3.1 when I have it towards the end of the file

This is either caused by resolution detection (which may be impossible since you are ssh-ing to the machine) or terminal detection. Can you provide your config file and your neofetch logs?

Run neofetch -vv 2> neofetchlog
Upload the contents of neofetchlog to pastebin, gist or equivalent.

I put the neofetch line at the end of my zshrc
neofetch logs: https://pastebin.com/ahNMKDL6
config file is attached
config.txt

I can reproduce this using ssh. It seems neofetch fails to get your terminal type when you are connected to another device using ssh.
The workaround for these kind of errors is to delete info "Terminal" term in your config, but we'll look into methods to disable detecting this when one connects into a device using SSH.


boxplot displaying the min/max as top and bottom whiskers

Hello,
First of all, many thanks for this very useful library.
I thought the top and bottom whiskers of a box plot would represent the max/min values. It seems that by default, boxplots are using the IQR to define the top/bottom whiskers.
e.g. with these 2 populations:

{min: 50,q1: 70,median: 80,mean: 82,q3: 90,max: 150,}
{min: 50,q1: 75,median: 80,mean: 82,q3: 85,max: 150,}

where population 1 has an IQR of 20 versus an IQR of 10 for population 2 but all other values being identical.
I'm getting the following graph:

I understand the benefits of using the IQR to define the top/bottom whiskers, but is there a way to not use the IQR and just use the min/max, no matter what they are?
<EMAIL_ADDRESS><EMAIL_ADDRESS>

see https://github.com/sgratzl/chartjs-chart-boxplot/blob/ecf744254bcabcbd137f3b7cc4aea2aec41d07d5/src/data.ts#L104-L137

Thanks!


TextField - "obscureText: true" is broken

Simple TextField with obscureText: true, is completely broken in flutter master branch code.
I could not see characters entered in the text filed and the cursor moving.
Works on android but not on iOS.
Example:
TextField(
obscureText: true,
decoration: InputDecoration(
labelText: 'Password',
),
)
$: flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.18.0-6.0.pre.79, on Mac OS X 10.15.4 19E287, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
[✓] Android Studio (version 3.6)
[✓] Connected device (1 available)
• No issues found!
$:

Same here

Same here.
But it is not completely broken.
If I do obscureText: false, write something or bring up the keyboard (with CMD K), then change to obscureText: true and do a Hot Restart it works. I'm able to hide or show the keyboard.
But if I do a fresh compile it does not work. And I'm not able to show the keyboard with CMD K either.
It might have something to do with showing the keyboard o with connecting with the keyboard.

I am seeing the same behavior as well @jmolins

hi guys ..
try to add onEditingCompleted: parameter ..
and enabled: true , parameter
and readOnly: false,

For now I switched to a previous dev channel for old version and works fine.
Here is the version the issue is not reproducible.
[✓] Flutter (Channel dev, v1.18.0-dev.5.0, on Mac OS X 10.15.4 19E287, locale en-US)

I am seeing the same behavior. Only on IOS.

i have same problem in ios.. master channel

hi guys ..
try to add onEditingCompleted: parameter ..
and enabled: true , parameter
and readOnly: false,

does not work

I have same problem in iOS (master channel)


SkiaSharp.Views.Blazor and the SkiaSharp.Views not work well with Blazor/Wasm

Description

Blazor .Net 8 / SkiaSharp 2.88
(1).
in app.css
FitBody {
width: 100%;
height: calc(100vh - 5rem);
background-color: #239B56;
border-radius: 6px;
}
in Home.razor

work well, the div size (width: 100%; height: calc(100vh - 5rem);)as expected
(2).
once

(3).
void OnPaintSurface(SKPaintSurfaceEventArgs args)
{
SKImageInfo NewInfo = args.Info;
SKSurface surface = args.Surface;
SKCanvas canvas = surface.Canvas;
canvas.Clear(SKColors.White);

DisplayingSize = NewInfo.Size;

}
(4).
It should be whole white cover the
The SKCanvas canvas size is wrong
Only cover the Left Top part
The SKCanvas canvas size should be equal to the
div size (width: 100%; height: calc(100vh - 5rem);)as expected
Code
The best way to share code for larger projects is a link to a GitHub repository: https://github.com/user/repo/tree/bug-123
But, you can also share a short block of code here:
FitBody {
width: 100%;
height: calc(100vh - 5rem);
background-color: #239B56;
border-radius: 6px;/* margin: 0 0 0 -20px; */
}
// some C# code here
void OnPaintSurface(SKPaintSurfaceEventArgs args)
{
    SKImageInfo NewInfo = args.Info;
    SKSurface surface = args.Surface;
    SKCanvas canvas = surface.Canvas;

    //canvas.Clear();
    canvas.Clear(SKColors.White);

    DisplayingSize = NewInfo.Size;
}

You can also share some XAML:
<!-- xaml code here -->
i
<div class=“FitBody”>
<SKCanvasView @ref=“skiaView” OnPaintSurface=“OnPaintSurface” IgnorePixelScaling=“true” />
</div>

Expected Behavior
The SKCanvas canvas size should be equal to the
div size (width: 100%; height: calc(100vh - 5rem);)as expected
Actual Behavior
The SKCanvas canvas size is wrong

Only cover the Left Top part
Version of SkiaSharp
2.88.3 (Current)
Last Known Good Version of SkiaSharp
2.88.2 (Previous)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
Blazor/Wasm .Net 8 / SkiaSharp.Views.Blazor and the SkiaSharp.Views  2.88
Devices
Dell LapTop Win 11
Relevant Screenshots
Dell Laptop Window 11
Relevant Log Output
There is no log out

Code of Conduct

[X] I agree to follow this project's Code of Conduct

https://github.com/mono/SkiaSharp/tree/main/samples/Basic/BlazorWebAssembly
blazor demo also can not run.

Whatever tough SOS!
Check
https://github.com/ShingYehGit/WasmSkiaApp/tree/master/WasmSkiaApp

Whatever tough SOS! Check https://github.com/ShingYehGit/WasmSkiaApp/tree/master/WasmSkiaApp

404

Your css is affecting the FitBody div, not the canvas. The default size of a <canvas> element is (it appears) 300x150. In order to get scaling to be correct, you should set the canvas to fill the div:
canvas {
    width: 100%;
    height: 100%;
}

Pleae check  new code
ShingYehGit/BlazorSize
https://github.com/ShingYehGit/BlazorSize/tree/master
Thanks & Regards
dotnet-policy-service[bot] @.***> 於 2024年11月17日 週日
下午9:09寫道：

This issue has been automatically marked as stale because it has been
marked as requiring author feedback but has not had any activity for 4
days. It will be closed if no further activity occurs within 3 days of
this comment. If it is closed, feel free to comment when you are able
to provide the additional information and we will re-investigate.
—
Reply to this email directly, view it on GitHub
https://github.com/mono/SkiaSharp/issues/3020#issuecomment-2481852386,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AK4WZSYCUZOM4VIXCF75DPT2BFK77AVCNFSM6AAAAABPAJO3PWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBRHA2TEMZYGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

Many Thanks
canvas {
width: 100%;
height: 100%;
}
Makes it works


Upcoming & requested skill categories

Here are the currently requested set of skill categories.
Checked means the curriculum and badge design is "In Development" and some content exists in this repo
High Priority

[x] Angular.js ( Sponsors: Mike, Dan )
[ ] ES6 JavaScript
[ ] Webcomponents
[ ] Git & Github (may only be apprentice)
[ ] Security

Future

[ ] Node (Standalone, without Frontier stack)
[ ] Twitter Bootstrap

Use the comments below to suggest other topics most relevant to the web dev discipline in the org.

I would like to defer this process to the FS Voter app: http://fs-vote.meteor.com/category/next-skill-program-badge-to-create


Discrepancies between current PoW blocks and execution payload

A few things seem to differ, unnecessarily (IMO).
https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md#executionpayloadv1
receiptRoot very close but eth1 calls it receiptsRoot
blockNumber eth1 calls it simply number
If these discrepancies are intentional and motivated, feel free to ignore this ticket and just close it. I'm just bringing it up in case it's just oversights that can/should be aligned.

receiptRoot discrepancy is what have been annoying me for some time, but then I forgot about it. It's not intentional and has been borrowed from the geth code, where it is named ReceiptHash. The name seems correct as it's a short sample of "the hash of the root of a receipt(s) trie" -- I guess either form of receipt word doesn't break the grammar. We might want to rename it to receiptsRoot for conformance with JSON-RPC API.
number in the context of ExecutionPayload sounds a bit off, blockNumber hints at EL block and distinguishes it from a "slot number".


Add QC check for proper treatment of preferredExternal annotations

Fixes #7872
This PR adds a qc check that ensures that

Xrefs with preferred external must have a corresponding equivalentto on the same class (this also ensures covers the case in the #7872 which is asking for ensuring there is no "relatedTo" by being stronger: there must be an equivalent, and there cant be both).
Xrefs with preferred external must be related to another class which are equivalent as well

Thanks for the comment. I reverted the one change I made from your earlier comments, but nothing else needed to be changed/reverted so once it passes QC again it's ready for your review.


fix: forRootAsync uses the wrong module again

Fixed version of #242. The reason why tests fails is the "forRoot" method has a default value for options, but the "useFactory" hasn't and that break the destructuring assignment in the configure method

Thanks!


Added the doc to explain where to make a change to a transform

This PR adds documentation on how to decide where to update or change a transform.
Test Steps:
N/A
Changes

Document and diagram added on updateing/changing a transform

#Fixes
#10435

@arnejduranovic @JessicaWNava
Out of the documentation topic, I am looking at the metadata->fhir-transform->receiver (sender)
it seems the current mechanism only supports use case where there are only 2 levels of transforms:
Global - which applies to all senders ( or receivers)
per sender - which only apply to the sender
it might be more flexible and extensible architect to introduce senderGroups, receiverGroups where transforms that applies to a group of sender / receiver can be managed

@arnejduranovic @JessicaWNava
Out of the documentation topic, I am looking at the metadata->fhir-transform->receiver (sender)
it seems the current mechanism only supports use case where there are only 2 levels of transforms:
Global - which applies to all senders ( or receivers) per sender - which only apply to the sender
it might be more flexible and extensible architect to introduce senderGroups, receiverGroups where transforms that applies to a group of sender / receiver can be managed

I am pretty sure this could be done via extensions. It would just be the default_transform extended by the group_transform extended by the singular_transform.


Docs: Multiple wbec instances?

I'd like to know, how wbec behaves if multiple of them are in the same network.

What does that mean for DNS wbec.local?
Am I able to change the hostname?
Is it possible to link between each-others inside the webinterface?
Where can I find that in the docs/wiki?

The wbec.local is just a DNS-name corresponding to the devices IPv4 address. The device tries to register that name with the DHCP request. If you connect the wbec to your network it will get an IPv4 via DHCP or you have to configure a static IPv4 at the device. You can use that IP instead of the name. Of course with DHCP it is possible this IP changes.
If you own a router that manges DHCP and DNS, typicalliy your internet-router, it will manage the name of the device. For example I own a FritzBox (AVM) and configured the name wbec for the device. So it is reachable with wbecor wbec.fritz.box which is the local domain of this router.
So if integrated in a network the name wbec.local is not resolved by the device, it is resolved by your DNS.device in your network. There you have to look.
There is no need to link between multible wbec, yet. It is possible to connect several Heidelberg-Wallboxes to one wbec. You need to wires between the wallboxes as a chain, it is a modbus. At the moment it's limited to two boxes and in my opinion ther is n loadmanagement between the boxes. How many do you want to connect?
You'll get a specialised documentation (german language) for wireing the wallboxes if you buy a wbec. Alternative one can google for modbus-wireing.

Hmmm, you seem to be german. Why do we talk in english? ;-)


Document: How to enable Aiven password

Trying to login with this without having a Aiven password does not work
avn user login<EMAIL_ADDRESS>
This is the error message:
❯ avn user login [user-email]()
[user-emal]()'s Aiven password:
ERROR	command failed: Error: {"errors":[{"message":"Authentication failed","status":403}],"message":"Authentication failed"}

I believe this documentation is missing in dev portal. I was referring to this blog.
Here are some steps that needs to be taken to make it work:

Enable Aiven password

Check if password works properly in the login

As suggestion from @ftisiot this article should be in: How to create a Aiven Password and linked to How to login with Aiven CLI.

Motivation had changed a bit: This is needed if the user wants to authenticate and log in directly without using any 3rd parties by using Aiven username and password.
Still blog should be fixed to follow the token access instead of Aiven password access.

The CLI blog post is due to be replaced by a new one.


Add support for Pushover, Prowl notification services

Hi
Huge thanks for the work you do on this, it’s great !!
Is your feature request related to a problem? Please describe.
I’d like to see other notification services added, I use pushover and Prowl, and would love to get alerts via either of them when certain thresholds are met
Describe the solution you'd like
First off support for more notification providers Pushover specifically, but Prowl would be good too.
Secondly have the ability to define more rules/triggers/trends for when a notification should be sent, e.g when speed is below or above a specific amount, or within a range, or when a particular trend has been met e.g 4 consecutive speed tests below x  (to make it easier make these template notifications and just choose the provider you want to use)

Thanks! I'm tracking all notification services in #40 so going to close this now that it's linked.


matrix-synapse: 1.7.0 -> 1.7.1

Motivation for this change
https://github.com/matrix-org/synapse/releases/tag/v1.7.1
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Btw should we backport 1.7.x to release-19.09?

The linked release note says:

This release includes several security fixes as well as a fix to a bug exposed by the security fixes. All previous releases of Synapse are affected. Administrators are encouraged to upgrade as soon as possible.

So yes, we have to backport this @Ma27.

@ofbord test matrix-synapse
(Can we enable automatic testing with NixOS tests for this package?)

Ok I missed the "all synapse versions are affected part", sorry! :man_facepalming:
As soon as this is reviewed by some more folks, I'll merge and backport!

Backported the changes as 71738bf97d3a4fd92d9b6aa2d5565067b978f33e, 7695df5ca479407a1a59dc6482a413e8bbb0532d and 5c4059dd75363446012d7aaeeba5eff599ff72b2.

@pacien (Can we enable automatic testing with NixOS tests for this package?)
This would be something like adding passthru.tests.nixos-test = nixosTests.matrix-synapse; along with adding nixosTests in the arguments to the package.
I planned to do that someday (as well as for all other nixos tests), but have been under the water for more than a year… :( feel free to submit a PR with changes like that! (that said, for it to actually work, we'll have to wait for https://github.com/NixOS/ofborg/pull/410 to get merged and deployed)

As this pattern seems to be a thing now, I added this to matrix-synapse as well: e4b91567e8be3dd69066265f0a894e1754632951

\o/ thank you!


Rename the default worksheet

Description

Steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Output of go version:
(paste your output here)

Excelize version or commit ID:
(paste here)

Environment details (OS, Microsoft Excel™ version, physical, etc.):

Please reference the go.dev or docs, you can rename the default worksheet by SetSheetName.

ok，thinks


Chat window + simplebar (problems with flex-end)

Hello. I use the following construction:

If I don't connect simplebar the layout looks as it should:
https://drive.google.com/file/d/1xKgVTw8jZY1GLBaZU-j2kRCpy8ANKn07/view?usp=sharing
When connecting simplebar, there are problems with the style align-self: flex-end it stops working and the chat window looks like this:
https://drive.google.com/file/d/1I8SNzRtmo9ys5gnAZ4Tfxi5QKD9T991h/view?usp=sharing
How can I solve this problem?
Thank you in advance.

Did you solve it? I'm currently facing the same issue, I already tried several ways without any success.


Question: Can we use Spacetimeformer for Recommendation?

Hi,
I read your paper last year and was really impressed on the model and its results. Thanks for your contribution. I am working on recommendation engine models and I was wondering if we could use this model architecture for sequential recommendations (especially short session where we have no previous user history or user information)?

Thanks!
I am not super familiar with recommendation systems research in general, but I imagine it would be tricky to convert recommendation sequences into a pure supervised problem like the ones in our paper. It would be possible to use spacetimeformer as a general purpose encoder for sequences in a decision making problem though. You could generate a spatiotemporal representation of your sequence with a spacetimeformer encoder that looks at past timesteps and a decoder with a target sequence that is 1 token long (the current timestep). If you customized the out_dim >> 2, the output could then be an input to another system (shape (batch_size, 1, out_dim))
https://github.com/QData/spacetimeformer/blob/2c02b4bad86fa483d96f9ae978bf2bb8467af24e/spacetimeformer/spacetimeformer_model/nn/model.py#L163-L165


Use Azure Workload Identity instead of aadpodidentity

We should look in to replacing aad pod identity with azure workload identity

Still waiting for Workload identity to become GA in AKS.

Feature looks to still be in preview.
https://learn.microsoft.com/en-us/azure/aks/workload-identity-overview

This was implemented by PR 1103,  1082,  1076,  1069,  1067,  1066 and  988. Closing this issue.


List of groups in the group tab does not wrap properly

In the group tab, the list of groups does not wrap properly and extends past the edge of the page.

I just realised, this is because of that obnoxiously long group name at the bottom of the page. After I filtered out giveaways I've entered, the page returns to normal. This issue persists wherever that group name is visible on a page.


Reaching out from OpenZeppelin

Hey, I'm with OpenZeppelin helping build our tech teams. I would imagine you're comfortable doing what you do now considering your standing on Code4rena's leadearboard - in the spirit of being thorough with my job, though, I wanted to gauge your interest in potentially joining our audit/research team and audit with some of the biggest web3 protocols in the ecosystem. If not, no worries and thank you for all that you contribute to the space 🙂

thank you for reaching out and I will keep this in mind


OpenStack: quote passwords

OpenStack passwords can contain special characters and therefore must be quoted to prevent yaml parsing errors.
Fixes: https://github.com/openshift/installer/issues/2392

/hold

The registry parses environment variables as YAML. Most of the time YAML treats a random sequence of symbols as a string. But sometimes it doesn't. So if we have a user-provided string and we want to use it as a value for the REGISTRY_ environment, we should yaml-encode it.
It's better to encode values in ConfigEnv and Secrets (these values should be used only as EnvVarSource).
/cc @coreydaley @ricardomaraschini

But sometimes it doesn't. So if we have a user-provided string and we want to use it as a value for the REGISTRY_ environment, we should yaml-encode it.

Particularly for YAML that is all-numeric or a boolean equivalent (true, false)

I'd suggest to change ConfigEnv to return map[string]interface{} and encode values in the PodTemplateSpec generator. @Fedosin do you want me to do it?


Cannot use "." characters in resource names

With a AppHost:
var apiservice = builder.AddProject<Projects.name_ApiService>("api.service");

builder.AddProject<Projects.name_Web>("web.frontend")
    .WithReference(apiservice);

You get a manifest that looks like:
"web.frontend": {
      "type": "project.v0",
      "path": "../name.Web/name.Web.csproj",
      "env": {
        "OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EXCEPTION_LOG_ATTRIBUTES": "true",
        "OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EVENT_LOG_ATTRIBUTES": "true",
        "services__api.service__0": "{api.service.bindings.http.url}",
        "services__api.service__1": "{api.service.bindings.https.url}"
      },

Which fails infra generation since the dot character in the binding api.service.bindings.http.url is not escaped:
If you run azd up, you get an error that looks like:
ERROR: generating infra/ folder: unknown resource referenced in binding expression: api

I'm open to introducing restrictions on resource identifiers as long as we author an analyzer for it at the same time, so that the format validity can be seen directly in the editor as an error (and at build time too).
Based on some offline discussions, a suggested set of restrictions to start with might be:

Limited to ASCII alphanumeric chars
Must start with an alpha char
Only special character allowed is hyphen (-) as a separator

❓ Should we allow a trailing hyphen
❓ Should we allow consecutive hyphens

Must be between 1 and 64 chars total length
Must be unique within the built app model
Is case-insensitive (e.g. "api1" and "API1" are equivalent)

Should we allow trailing hyphen ... no.
Should we allow consecutive hypens ... no.
Should we allow hyphens at all ... in my opinion .. no. The reason is that some resource types in cloud providers don't allow them.
We should consider forcing them all the lower case as well (also a constraint in some cloud providers).

Should we allow hyphens at all ... in my opinion .. no. The reason is that some resource types in cloud providers don't allow them.

I think that's too restrictive of a baseline principal. Aspire doesn't itself map to any online cloud provider by itself and we shouldn't restrict resources to the union-set of all possible providers or even major providers. I think allowing a single separator char like hyphen in our resource names is required. If a given cloud platform doesn't support it for a given resource type, then the deployment tech should handle that translation.

Storage account names don't allow capital letters. Sorry to pile on!

@JamesNK

Only special character allowed is hyphen (-) as a separator

How often will resource names be used as an identifier in code gen C#? Hyphen isn't allowed in C# identifiers so a resource name can't be used to code gen a my-cool-resource property for example.
A valid alternative to hyphen is underscore. It is allow in C#.

We should consider forcing them all the lower case as well (also a constraint in some cloud providers).

Storage account names don't allow capital letters. Sorry to pile on!

If names are case-insensitive, then it doesn't matter if capitals are allowed or not. If the resource name needs to be used as a storage account name, then it can safely be converted to lowercase, e.g. MyCoolResource -> mycoolresource.

Should we allow hyphens at all ... in my opinion .. no. The reason is that some resource types in cloud providers don't allow them.

If a cloud provider doesn't support hyphens, then they could be removed when generating names for that cloud provider. For example, my-cool-resource is converted to my_cool_resource (if underscores are allow) or mycoolresource if only alpha characters are allowed.
There could be conflicts between resources if there is my-cool-resource and mycoolresource because they resolve to the same name, but we can prompt with an error if that rare situation occurs.

What about other names in the model? For example, endpoints can have a name. Should they have the same restrictions?

What else has a name?


When the body size is 0 and the Transfer-Encoding header is not trans…

When the body size is 0 and the Transfer-Encoding header is not transmitted,
The POST, PUT method should send the Content-Length header (value 0).
If the POST method does not have a Content-Length header,
IIS(Microsoft Internet Information Services ) will return status code 411.
Currently, Gatling does not automatically give the Content-Length header
even if you generate a definition of HTTP POST method without body by GatlingRecorder and execute Simulation.
I confirmed the operation at the latest source (February 15, 2018).
The following is extracted from RFC 7230
A user agent SHOULD send a Content-Length in a request message when
no Transfer-Encoding is sent and the request method defines a meaning
for an enclosed payload body.  For example, a Content-Length header
field is normally sent in a POST request even when the value is 0
(indicating an empty payload body).  A user agent SHOULD NOT send a
Content-Length header field when the request message does not contain
a payload body and the method semantics do not anticipate such a
body.

Hi,
Thanks for reporting.
First, have you opened an issue against IIS too? As the RFC says SHOULD and not MUST, a server should be able to support such POST request without a Content-Length header.
Then, once again, old RFCs are poorly designed. "the request method defines a meaning
for an enclosed payload body" and "the method semantics do not anticipate such a
body" are things that are never specified anywhere. For example, GET requests can have a message body (and ElasticSearch makes use of such requests).
Finally, sorry, but your fix is wrong. Gatling HTTP support, and or AsyncHttpClient should be the ones adding such 0 ContentLength. This is not the responsibility of the recorder. Would you mind providing another fix, please?

Fixed in AHC as of https://github.com/AsyncHttpClient/async-http-client/issues/1521

Thanks for reporting

In the meantime, you can just set a 0 Content-Length header manually.


Add low-res photo base64 placeholders

Closes #154

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (44fed16) 97.62% compared to head (5ea417d) 97.63%.

:exclamation: Current head 5ea417d differs from pull request most recent head 96cfc0c. Consider uploading reports for the commit 96cfc0c to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #155   +/-   ##
=======================================
  Coverage   97.62%   97.63%
=======================================
  Files         174      174
  Lines        2868     2874    +6
  Branches      161      161
=======================================
+ Hits         2800     2806    +6
  Misses         54       54
  Partials       14       14

Impacted Files
Coverage Δ

...uct-rating-photos/product-rating-photos.service.ts
100.00% <100.00%> (ø)

.../products/product-photos/product-photos.service.ts
92.98% <100.00%> (+0.25%)
:arrow_up:

src/local-files/local-files.service.ts
95.65% <100.00%> (+0.41%)
:arrow_up:

src/local-files/models/photo.entity.ts
100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Config problem?

/dal/networks.py", line 40, in perceptual_laserscan_fc
d_in = Config.map_width * Config.map_height + Config.laser_scan_dim,
AttributeError: type object 'Config' has no attribute 'map_width'

Hey, I uploaded the config file. Let me know, thanks!


fix(starknet_client): add instrument to writer client methods

This change is

crates/starknet_client/src/writer/mod.rs line 62 at r1 (raw file):

#[async_trait]
impl StarknetWriter for StarknetGatewayClient {
    #[instrument(skip(self), level = "warn")]

consider debug
Code quote:
"warn"