When I switch from the default user to root, vscode cannot be started

Windows Version
Microsoft Windows [Version 10.0.19045.2728]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[ ] WSL 2
[X] WSL 1

Kernel Version
<IP_ADDRESS>
Distro Version
Ubuntu22.04
Other Software
No response
Repro Steps

When I start wsl as the default user, wsl has a Windows environment variable and can start vscode.
However, when I switch to root, the Windows environment variables are missing, so vscode cannot be started.
When I switch back to the user directory, the Windows environment variables are still missing. So that I could not start vscode either.

Expected Behavior
I want to know how to preserve or load Windows environment variables after I switch users.
Actual Behavior
Windows environment variables have disappeared, so that vscode cannot be started.
Diagnostic Logs
No response

@Zcaic, can you be a little more specific with your repro instructions? Are you launching via wsl -u root ? Thanks!

@pmartincic
No，I set the default user， When I start wsl, I am the default user， vscode can be started through the "code ." command. But after I use "sudo su" to switch to root， Windows environment variables are missing, so I cannot start vscode from root. When I switch back to the user, vscode still cannot be started through " code . "

@Zcaic try sudo -E su to pass your environment to root. From the manual:
     -E, --preserve-env
             Indicates to the security policy that the user wishes to preserve their existing environment variables.
             The security policy may return an error if the user does not have permission to preserve the environ-
             ment.

@elsaco It's useful for me, thanks a lot !


E-mart Site

New project Site E-mart

Close #4755

Checklist:

[✅] I have mentioned the issue number in my Pull Request.
[✅] I have commented my code, particularly in hard-to-understand areas

Preview

@MohitGupta121  @TusharKesarwani  Kindly, review and merge this PR

@MohitGupta121 @TusharKesarwani  Kindly, review this PR


document how to use sub-parts of Photon.js queries

Code example in Reusing query sub-parts is incorrectly formatted.


Content pulled up excessively on input focus

Just wrapped my website into a turbo android app without anything extra from the android side.
This is the behaviour when tapping an input.
https://user-images.githubusercontent.com/4019924/154824374-b36497ef-2fcd-4f32-a89e-56fb4f88a401.mp4
This does not happen on the website itself (https://profe.social/users/sign_in)
This happens on every single input, not just the one in the video

You can consider using a different windowSoftInputMode, such as adjustPan in your app's manifest file, otherwise this it out of scope for the library:
android:windowSoftInputMode="adjustPan"


Support suffix exception

Issue #, if available:
https://github.com/aws-controllers-k8s/community/issues/840
Description of changes:
Add support for suffix exception checking. Also added Sagemaker tests for prefix and suffix exceptions.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/lgtm


Add additional info(Metadata and Metrics) for codepush deployment list

Issue: code-push cli shows metadata and metrics info about deployment with deployment list command.
appcenter-cli shows just keys without any additional info:

Solution:
Added -k option(--displayKeys is full name) for showing keys.
Added Metadata and Metrics for deployments.
Without -k option:

With -k option:

Sure, I'll add tests for this functionality and ping you :)


[Event Request] Codeunit 12 Gen. Jnl.-Post Line - CreateGLEntriesForTotalAmountsUnapply

Could you please create an Integration event in Codeunit 12 Gen. Jnl.-Post Line, in function CreateGLEntriesForTotalAmountsUnapply?
LOCAL CreateGLEntriesForTotalAmountsUnapply(GenJnlLine : Record "Gen. Journal Line";VAR TempInvPostBuf : TEMPORARY Record "Invoice Post. Buffer";Account : Code[20])
WITH TempInvPostBuf DO BEGIN
  SETRANGE("Dimension Set ID");
  IF FINDSET THEN
    REPEAT
      IF (Amount <> 0) OR
         ("Amount (ACY)" <> 0) AND (GLSetup."Additional Reporting Currency" <> '')
      THEN BEGIN
        DimMgt.UpdateGenJnlLineDim(GenJnlLine,"Dimension Set ID");
        // >>>>>>>>>>>>>>
        OnBeforeCreateGLEntryForTotalAmountsUnapply(GenJnlLine,TempInvPostBuf,Account);
        // <<<<<<<<<<<<<<
        CreateGLEntry(GenJnlLine,Account,Amount,"Amount (ACY)",TRUE);
      END;
    UNTIL NEXT = 0;
END;

Event signature:
LOCAL [IntegrationEvent] OnBeforeCreateGLEntryForTotalAmountsUnapply(VAR GenJnlLine : Record "Gen. Journal Line";VAR TempInvPostBuf : TEMPORARY Record "Invoice Post. Buffer";VAR Account : Code[20])

For our extension it is crucial that Account variable is passed by VAR so we can change it.
We need to fill some of our fields too.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Links down in doc

Hi I just installed your bundle the links in the bundle desc are down ...

Solved here: https://github.com/tasmanianfox/MpdfPortBundle/pull/28

:+1:


Age group required

Meta has introduced a policy where specifying the age group is required.

Required. (If not specified, the upload will go into “draft” status, rather than failing.) Age group of the build. This can be TEENS_AND_ADULTS, MIXED_AGES, or CHILDREN.

This just needs to be included in the build command as --age-group i.e. --age-group TEENS_AND_ADULTS.
See https://developer.oculus.com/resources/publish-reference-platform-command-line-utility/#upload-quest

Sounds good!


mixture protocol restructured and serial concatenation implemented

As mentioned in #4876, the mixture protocol has been restructured.

The serial concatenation is handled by converting the decomposed operations into their superoperator form with the help of cirq.Moment().expand()
To convert from kraus to mixture, eigenvalue decomposition is done to obtain the corresponding probability.

Merging this PR would clear the blockage for #4822.

Using superoperator as an intermediate to obtain mixture protocols lead to invalid mixtures since not every Kraus representation can be converted into valid mixtures. I added a check after the computation of the mixture to ensure the final mixture is valid.

The mixture is valid if the probabilities sum up to 1 (and are between 0 and 1)
If the probability of an element is less than atol, it is eliminated.
Every operator in the mixture must be a valid unitary, else the whole mixture is invalid.

Tests for the same have been added, cirq-core/cirq/ops/pauli_measurement_gate_test.py is still failing. The mixture calculated seems valid. Since serial concatenation is the last method of computing mixture, its absence of it returns the default value. So the additional functionality has not changed the answer for the pre-existing mixtures.

mixture protocol has been restructured with serial concatenation as a part of it, serial concatenation uses superoperator as intermediate after decomposing the given operator. If any of the decomposed operators do not have a mixture then the given operator also is considered to not have a mixture.


Updated PropertyLoader, deprecated MobileChrome

Coverage decreased (-2.6%) to 79.943% when pulling 5fc66cdc6cb13178a7fa873a2869d0d4a3cc2115 on GannaChernyshova:master into 56e2da235e6f9538091c9d51d203eac44c9ed7cb on alfa-laboratory:master.


Specify SSH port in juicefs sync

What would you like to be added: The ability to specify the SSH port when syncing between local filesystem and a remote filesystem over SSH.
Why is this needed: SSH port is not always 22

Please add this to documentation. I don't think this is mentioned in the juicefs sync documentation.


Make sure generated llvm IR is valid

This ensures that the llvm IR is valid for llc or llvm-opt. Steps to
reproduce:
solang --emit llvm-ir -v storage.sol
llc storage.ll
Signed-off-by: Sean Young<EMAIL_ADDRESS>

fixes #396


Finalise Release Process

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Task/cdd 2235 list of links component

Description
This PR includes an internal page links component for the composite page:
Fixes #CDD-2235

Type of change
Please select the options that are relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Tech debt item (this is focused solely on addressing any relevant technical debt)

Checklist:

[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests at the right levels to prove my change is effective
[ ] I have added screenshots or screen grabs where appropriate
[ ] I have added docstrings in the correct style (google)


New License

I would like to change the license type from MIT to CC0. Read a short, non-legal version of the CC0 license here.

Checking with contributors...
@TitusEntertainment
@BearelyKoalified
@Emme313

For me this is totally fine.


build an HTML example

It would be helpful to have an example in HTML where users could try out the color hashing to see how it works for themselves

Hello Jonathan, I'd like to work on an html example and am wondering if you'd like to use bootstrap to add styling or simply just an html page?

I'm in favour of the simplest way possible with the least amount of external dependencies. A simple html file with some very simple styles would be sufficient. But really, anything that looks servicable would be great! If you want to use something like bootstrap, fly at it... I only ask that you try to source things from CDNs rather than putting them in the repository.
Hopefully the hash function is easy to pull into the browser. If you run into trouble doing that I can help you out.
Thanks a bunch!

Alright sounds good. Sourcing from a CDN is surely the way to go, and I am not too worried about having it imported but will let you know if I have any issues. Thanks!

@Dragonfore if you are still interested in this, I've added a web bundle of chromahash which you can see working (via console) in index.html

@jonotron Yes! It has been in the back of my mind since Hacktoberfest, and I would like to continue to work on it! Primarily I have been focussing on school until things calm down, then get back into the roll of things, thanks for uploading that as well ^.^


VM does not start from virt-manager

Which operating system are you trying to install?
e.g. macOS Ventura
Describe the bug
Warning message by running ./basic.sh
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]

But the VM starts.
And in virt-manager, same messages but as errors, and the VM does not start.
To Reproduce
Steps to reproduce the behavior:
Follow the documentation to create a fresh new VM
Run ./make.sh --add
Try to run the VM from virt-manager
Expected behavior
The VM to boot normally, like by running basic.sh
Desktop (please complete the following information):

OS: Arch
Version kernel 6.1

I'm having the same problem. Anyone know how to fix this?

@welcoMattic @jon-bit Did you add the macos.qow2 disk to virt-manager?

Sorry but how would I go about that?

Found it but what bus type do I use?

Never mind did not work. I just tried them all.

here is my full log for when I try to start it in vit-manger
Error starting domain: internal error: qemu unexpectedly closed the monitor: 2023-01-19T04:24:40.358934Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T04:24:40.359119Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T04:24:40.359125Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T04:24:40.359302Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T04:24:40.359307Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
audio: Device hda: audiodev default parameter is deprecated, please specify audiodev=audio1
2023-01-19T04:24:40.370817Z qemu-system-x86_64: -device {"driver":"qxl-vga","id":"video0","max_outputs":1,"ram_size":67108864,"vram_size":67108864,"vram64_size_mb":0,"vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}: PCI: slot 1 function 0 not available for qxl-vga, in use by intel-hda,id=(null)

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
    self._backend.create()
  File "/usr/lib64/python3.11/site-packages/libvirt.py", line 1362, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2023-01-19T04:24:40.358934Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T04:24:40.359119Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T04:24:40.359125Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T04:24:40.359302Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T04:24:40.359307Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
audio: Device hda: audiodev default parameter is deprecated, please specify audiodev=audio1
2023-01-19T04:24:40.370817Z qemu-system-x86_64: -device {"driver":"qxl-vga","id":"video0","max_outputs":1,"ram_size":67108864,"vram_size":67108864,"vram64_size_mb":0,"vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}: PCI: slot 1 function 0 not available for qxl-vga, in use by intel-hda,id=(null)

I've tried to remove qxl, but it is still unable to boot:
2023-01-19T14:11:14.321217Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321221Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T14:11:14.321393Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321397Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
audio: Device hda: audiodev default parameter is deprecated, please specify audiodev=audio1
2023-01-19T14:11:14.337307Z qemu-system-x86_64: -device {"driver":"VGA","id":"video0","vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}: PCI: slot 1 function 0 not available for VGA, in use by intel-hda,id=(null)

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
    self._backend.create()
  File "/usr/lib/python3.10/site-packages/libvirt.py", line 1373, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2023-01-19T14:11:14.321051Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T14:11:14.321217Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321221Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T14:11:14.321393Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321397Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
audio: Device hda: audiodev default parameter is deprecated, please specify audiodev=audio1
2023-01-19T14:11:14.337307Z qemu-system-x86_64: -device {"driver":"VGA","id":"video0","vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}: PCI: slot 1 function 0 not available for VGA, in use by intel-hda,id=(null)

I replace the video model by VGA or virtio : same error.

I am having the same issue. It seems to be a qemu bug.

Something like<EMAIL_ADDRESS>is probably needed to fix this in qemu, although I assume it might depend on which CPU you're running

I made the warnings/errors go away by changing the -cpu Haswell... \ line to -cpu host \, which works on my system but I am not sure about others.

I don't think the warnings really matter though, they don't seem to effect anything

I've tried to remove qxl, but it is still unable to boot:
2023-01-19T14:11:14.321217Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321221Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T14:11:14.321393Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321397Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
audio: Device hda: audiodev default parameter is deprecated, please specify audiodev=audio1
2023-01-19T14:11:14.337307Z qemu-system-x86_64: -device {"driver":"VGA","id":"video0","vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}: PCI: slot 1 function 0 not available for VGA, in use by intel-hda,id=(null)

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
    self._backend.create()
  File "/usr/lib/python3.10/site-packages/libvirt.py", line 1373, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2023-01-19T14:11:14.321051Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T14:11:14.321217Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321221Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T14:11:14.321393Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321397Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
audio: Device hda: audiodev default parameter is deprecated, please specify audiodev=audio1
2023-01-19T14:11:14.337307Z qemu-system-x86_64: -device {"driver":"VGA","id":"video0","vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}: PCI: slot 1 function 0 not available for VGA, in use by intel-hda,id=(null)

I replace the video model by VGA or virtio : same error.

Your issue is the hda as the error says,
Quick fix, remove the hda settings in your virtm xml properties
or
fullfix, add the audiodev value (read the docs)
thanks

Just change the PCI slot number for the virtual GPU. 0x08 works for me, like this:
    <video>
      <model type="qxl" ram="65536" vram="65536" vgamem="16384" heads="1" primary="yes"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x08" function="0x0"/>
    </video>

I have like that problem too on AMD Rysen 3:
2024-10-15T08:28:48.779273Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2024-10-15T08:28:48.779278Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.erms [bit 9]
2024-10-15T08:28:48.779284Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.invpcid [bit 10]
2024-10-15T08:28:48.779289Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
audio: Device hda: audiodev default parameter is deprecated, please specify audiodev=audio1
2024-10-15T08:28:48.789949Z qemu-system-x86_64: -device {"driver":"qxl-vga","id":"video0","max_outputs":1,"ram_size":67108864,"vram_size":67108864,"vram64_size_mb":0,"vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}: PCI: slot 1 function 0 not available for qxl-vga, in use by intel-hda,id=(null)

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
    self._backend.create()
  File "/usr/lib/python3/dist-packages/libvirt.py", line 1373, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: внутренняя ошибка: QEMU неожиданно завершил работу монитора: 2024-10-15T08:28:48.779266Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
2024-10-15T08:28:48.779273Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2024-10-15T08:28:48.779278Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.erms [bit 9]
2024-10-15T08:28:48.779284Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.invpcid [bit 10]
2024-10-15T08:28:48.779289Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
audio: Device hda: audiodev default parameter is deprecated, please specify audiodev=audio1
2024-10-15T08:28:48.789949Z qemu-system-x86_64: -device {"driver":"qxl-vga","id":"video0","max_outputs":1,"ram_size":67108864,"vram_size":67108864,"vram64_size_mb":0,"vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}: PCI: slot 1 function 0 not available for qxl-vga, in use by intel-hda,id=(null)```


Remove the unused eventBus option in PDFThumbnailViewer (PR 15215 follow-up)

This became unused with PR #15215, but I unfortunately forgot to remove it.

/botio integrationtest

Thank you for cleaning this up!


Update with Current material-ui@next directory structure

I just installed via yarn add mui-downshift and it seems like the package is out of date with material-ui's current directory structure.
I'm getting a compilation error that says it cannot resolve from material-ui/LinearProgress because material-ui now imports { LinearProgress } from material-ui/Progress
https://material-ui-next.com/demos/progress/
I'm not sure what other things are out of date as this is the only issue I've come across without tweaking the node_module myself

@najisawas You need to install mui-downshift@next as I haven't release a non-prerelease for material-ui-next yet.  Let me know if that fixes it for you.
I plan to wait until Material-UI 1.0 is officially released (May 17th) and after I get time to implement mutli-select (#5) before I release<EMAIL_ADDRESS>

Using "next" of this library doesn't work with the latest @material-ui/core which is at 1.0.0.


Update AutoFocus AWB, etc. settings to Gen2

Update the FAQ to reference Gen2 controls instead of Gen1 for autofocus, etc.

Feel free to change anything/everything @VanDavv / @alex-luxonis .  Just wanted to get these updated so that they're pointing to Gen2 examples.  I'll try to go through the FAQ and do this for many other things that are in it which point to Gen2 right now.


URL encode key value pairs in x-goog-request-params

Per https://google.aip.dev/client-libraries/4222
This mostly affects the metadata decorators.

@dbolduc 's understanding is that we encode the keys and values and leave the & and = joiners as they are.
We need to:

[ ] URL encode the keys for implicit and explicit routing at code generation time
[ ] URL encode the values for...

[ ] explicit routing in GAPICs + legacy bigtable + testing_util::ValidateMetadataFixture
[ ] implicit routing in GAPICs + testing_util::ValidateMetadataFixture ?
[ ] storage's client side streaming APIs
[ ] handwritten pubsub client side streaming APIs
[ ] handwritten minimal IAM stub
[ ] maybe handwritten bigquery v2, although no requests seem to require routing. :shrug:
[ ] legacy spanner admin, if we care to

Do we need to do anything for REST-based clients?

Yeah. Hopefully the work is identical to the gRPC GAPICs

Looked for x-goog-request-params in the handwritten bigquery: google/cloud/bigquery/v2/minimal
And none of the 4 decorators (dataset, job, project, or table) set any headers on the context.


setSpeed is not called with initial speed

If I do something like
<Lottie options={options} height={250} width={250} speed={0.5} />

the animation will run with the default speed, not 0.5 as intended. This is because setSpeed is not called in componentDidMount(), only in componentDidUpdate().

it worked for me. For speed Nx
  componentWillMount(){
    this.setState({},_=>this.setSpeed())
  }

  setSpeed(){
    this.setState({speed:**N**})
  }

it worked for me. For speed Nx
  componentWillMount(){
    this.setState({},_=>this.setSpeed())
  }
  setSpeed(){
    this.setState({speed: N})
  }

No one gonna fix this issue?

it worked for me. For speed Nx
  componentWillMount(){
    this.setState({},_=>this.setSpeed())
  }
  setSpeed(){
    this.setState({speed: N})
  }

this worked for me

it worked for me. For speed Nx
  componentWillMount(){
    this.setState({},_=>this.setSpeed())
  }
  setSpeed(){
    this.setState({speed: N})
  }

this worked for me


Voice functionality added with Whisper

Added voice functionality with whisper. Implemented a --voice command-line flag using argparse.

@younesbram I'm excited for this PR, but I ran into an issue installing whisper-mic. It sounds like it may be resolvable with brew install portaudio, but my concern is about adding another install statement for the overall project for it to use voice which may not be used by all users.
I created a ChatGPT thread with the context here: https://chat.openai.com/share/0446a868-42f8-469e-953d-394bf21e9ad0
Do you know a better solution that doesn't require brew install portaudio?

If there's some way to only require brew install portaudio if the user is doing voice, that could be good, but right now I think it will break for all users on pip install -r requirements.txt if they do not have portaudio

I don't have the issue when installing, I think its a mac thing. Wish my macbook wasn't broken else Id test on that too.
I tried it with wsl and gitbash and normal cmd. Will try to debug right now and investigate for any solutions to seamlessly not break installation for mac users who are using voice.

Many options to choose from!
I personally like adding the troubleshooting in the documentation. First place people go to after a bug is the same github repo they got it from.

I think I like 1 conditional requirement most. My concern with 2 documentation is it sounds like all mac users will see a red fail on pip install -r requirements.txt. If they ignore and don't use mic then it sounds like it will work fine. Most will probably feel like they need to troubleshoot it even if they technically don't. Let me know if I am understanding this correctly.
I like 1 conditional requirement because it sounds like it wouldn't add any installation steps for the dev on the readme.md. That's really my goal, not to add another step. If we could add a conditional install that'd be great, but I'm not aware if that's possible with brew install portaudio. As far as I'm aware I've never used pip to start a brew install command, but honestly I don't know what's possible here. If you could figure it out and resolve, I'll look at the PR again and see if it works for me, Thanks!

Thing is.. if its breaking for users in the pip install -r requirements.txt part (step 5), the only valid solution is to add another step to install for voice users only. This will also be a chance to say run operate --voice as a final step. I tried doing the markers thing but you were right, the package cannot be installed with pip needs  (apt or brew)

Oh I just realized the ChatGPT share link is not updating with new information for some reason. Here's the update for context.
__
You're correct in identifying the challenge of requiring all users to install additional dependencies, especially when it's only needed for a specific feature. However, there are a few strategies you could use to handle this situation more gracefully:
Optional Dependencies: Modify your requirements.txt to only include essential packages. Then, provide a separate requirements-audio.txt for the with-audio feature, which includes PyAudio and its dependencies. In your documentation, instruct users who want to use the with-audio feature to run an additional command, like:
pip install -r requirements-audio.txt

Ok, just finished looking at it. It is merged. Thanks for all your help with this. If you want to make updates to the voice and accessibility features overtime that'd be great!

Actually there may have been an issue for users not using --voice. I reverted the commit because when I did a fresh install I was getting an import issue

will checkSent from my iPhoneOn Dec 5, 2023, at 9:28 AM, Josh Bickett @.***> wrote:
Actually there may have been an issue for users not using --voice. I reverted the commit because when I did a fresh install I was getting an import issue
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Ok, trying to fix it now

@younesbram so I'm not that good at git reverts. I reverted and made the following fix: https://github.com/OthersideAI/self-operating-computer/commit/b011fa84edbc5567b31e8fb6d5e86abdb55d6764
The problem is I then went to push back to main but was having an issue and somehow lost your recent commits. Anyway, voice is merged back in main and appears to me working without causing issued of devs that don't use it! :)

@Siddhant-Goswami oh. Thanks for letting us know. Could you submit an issue ticket for this if you haven't already?

@Siddhant-Goswami hello friend. seems like an environment issue, try reloading with a new env. i will check on my mac VM with your version of ventura soon


solved issue #238

Pull Request Template for GSoC 2024
#238
Description of Changes
Added a password visibility toggle change button.
Type of Pull Request

[x] Bug Fix
[ ] New Feature
[ ] Performance Improvement
[ ] Documentation Update
[ ] Code Refactoring
[ ] Security Enhancement
[ ] Other (Specify): _______________

(Please check relevant boxes by entering an "X" inside them)
Screenshots / Demo (if applicable)

Checklist for Contributor
use'X' in [ ] to check it .

[x] I have reviewed my code before submission.
[x] I have read and followed the project's Contribution Guidelines.
[x] I have tested the code thoroughly.
[x] I have attached related issue numbers, screenshots, or videos (if applicable).
[x] I have added comments to my code where necessary for clarity.
[x] I have checked the existing code base and my changes do not introduce any breaking changes.
[x] My PR addresses only one issue; I have created separate PRs for other issues.
[x] I have ensured that the PR does not include unrelated files.
[x] I am mindful of the project's coding standards and best practices.

@dhairyagothi Please review the PR and merge it accordingly.


Add simple hello command for testing

#10

TODO:

[ ] allow to set a timeout period
[ ]  add logic so it doesn't print all the time but only if a condition is met (for example only even numbers)
[ ]  change hello to forecast message


Timeout while waiting for state to become 'all-addresses-obtained' (last state: 'waiting-addresses', timeout: 5m0s)

Version Reports:
Distro  version of host:
 openSUSE 42.3
Terraform Version Report
Terraform v0.10.7
Libvirt version
3.3.0
terraform-provider-libvirt plugin version (git-hash)
terraform-provider-libvirt-0.0.0+git20171027.feec1d19-1.2.x86_64

Description of Issue/Question
Running sumaform with a typical setup, br0 with the following settings.
### Setup
provider "libvirt" {
  uri = "qemu:///system"
}

module "base" {
  source = "./modules/libvirt/base"

  cc_username = "UC7"
  cc_password = "SUPER_SECRET_PASSWORD"

  // optional parameters with defaults below
  pool = "suma"
  network_name = ""
  bridge = "br0"
  name_prefix = "doctest-"
  // timezone = "Europe/Berlin"
}

module "suma3pg" {
  source = "./modules/libvirt/suse_manager"
  base_configuration = "${module.base.configuration}"

  name = "suma3pg"
  version = "head"
  // see modules/libvirt/suse_manager/variables.tf for possible values
}

module "galaxy-proxy_1" {
  source = "./modules/libvirt/suse_manager_proxy"
  base_configuration = "${module.base.configuration}"

  name = "galaxy-proxy_1"
  version = "head"
  server_configuration = "${module.suma3pg.configuration}"
}

module "minion-sles12sp2" {
  source = "./modules/libvirt/minion"
  base_configuration = "${module.base.configuration}"

  name = "minsles12sp2"
  image = "sles12sp2"
  server_configuration = "${module.suma3pg.configuration}"
  count = 1
  // see modules/libvirt/minion/variables.tf for possible values
}

module "client-sles12sp1" {
  source = "./modules/libvirt/client"
  base_configuration = "${module.base.configuration}"

  name = "clientsles12sp1"
  image = "sles12sp1"
  server_configuration = "${module.suma3pg.configuration}"
  count = 1
  // see modules/libvirt/minion/variables.tf for possible values
}

Steps to Reproduce Issue
terraform plan output:

  + module.base.libvirt_volume.volumes[0]
2017/11/21 15:43:35 [DEBUG] plugin: waiting for all plugin processes to complete...
      id:                                 <computed>
      name:                               "doctest-centos7"
      pool:                               "suma"
      size:                               <computed>
      source:                             "http://w3.nue.suse.com/~smoioli/sumaform-images/centos7_v2.qcow2"

  + module.base.libvirt_volume.volumes[1]
      id:                                 <computed>
      name:                               "doctest-opensuse422"
      pool:                               "suma"
      size:                               <computed>
      source:                             "http://download.opensuse.org/repositories/home:/SilvioMoioli:/Terraform:/Images/images/opensuse422.x86_64.qcow2"

  + module.base.libvirt_volume.volumes[2]
      id:                                 <computed>
      name:                               "doctest-sles11sp3"
      pool:                               "suma"
      size:                               <computed>
      source:                             "http://download.suse.de/ibs/Devel:/Galaxy:/Terraform:/Images/images/sles11sp3.x86_64.qcow2"

  + module.base.libvirt_volume.volumes[3]
      id:                                 <computed>
      name:                               "doctest-sles11sp4"
      pool:                               "suma"
      size:                               <computed>
2017-11-21T15:43:35.551+0100 [DEBUG] plugin.terraform: file-provisioner (internal) 2017/11/21 15:43:35 [DEBUG] plugin: waiting for all plugin processes to complete...
2017-11-21T15:43:35.552+0100 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2017/11/21 15:43:35 [DEBUG] plugin: waiting for all plugin processes to complete...
      source:                             "http://download.suse.de/ibs/Devel:/Galaxy:/Terraform:/Images/images/sles11sp4.x86_64.qcow2"

  + module.base.libvirt_volume.volumes[4]
      id:                                 <computed>
      name:                               "doctest-sles12"
      pool:                               "suma"
      size:                               <computed>
      source:                             "http://download.suse.de/ibs/Devel:/Galaxy:/Terraform:/Images/images/sles12.x86_64.qcow2"

  + module.base.libvirt_volume.volumes[5]
      id:                                 <computed>
      name:                               "doctest-sles12sp1"
      pool:                               "suma"
      size:                               <computed>
      source:                             "http://download.suse.de/ibs/Devel:/Galaxy:/Terraform:/Images/images/sles12sp1.x86_64.qcow2"

  + module.base.libvirt_volume.volumes[6]
      id:                                 <computed>
      name:                               "doctest-sles12sp2"
      pool:                               "suma"
      size:                               <computed>
2017-11-21T15:43:35.554+0100 [DEBUG] plugin: plugin process exited: path=/usr/bin/terraform
2017-11-21T15:43:35.554+0100 [DEBUG] plugin: plugin process exited: path=/usr/bin/terraform
2017-11-21T15:43:35.554+0100 [DEBUG] plugin: plugin process exited: path=/usr/bin/terraform-provider-libvirt
      source:                             "http://download.suse.de/ibs/Devel:/Galaxy:/Terraform:/Images/images/sles12sp2.x86_64.qcow2"

  + module.base.libvirt_volume.volumes[7]
      id:                                 <computed>
      name:                               "doctest-sles12sp3"
      pool:                               "suma"
      size:                               <computed>
      source:                             "http://download.suse.de/ibs/Devel:/Galaxy:/Terraform:/Images/images/sles12sp3.x86_64.qcow2"

  + module.client-sles12sp1.module.client.libvirt_domain.domain
      id:                                 <computed>
      arch:                               "x86_64"
      disk.#:                             <computed>
      emulator:                           "/usr/bin/qemu-system-x86_64"
      machine:                            "pc"
      memory:                             "512"
      name:                               "doctest-clientsles12sp1"
      network_interface.#:                "1"
      network_interface.0.addresses.#:    <computed>
      network_interface.0.bridge:         "br0"
      network_interface.0.hostname:       <computed>
      network_interface.0.mac:            <computed>
      network_interface.0.network_id:     <computed>
      network_interface.0.network_name:   <computed>
      network_interface.0.wait_for_lease: "true"
      running:                            "true"
      vcpu:                               "1"

  + module.client-sles12sp1.module.client.libvirt_volume.main_disk
      id:                                 <computed>
      base_volume_name:                   "doctest-sles12sp1"
      name:                               "doctest-clientsles12sp1-main-disk"
      pool:                               "suma"
      size:                               <computed>

  + module.galaxy-proxy_1.module.suse_manager_proxy.libvirt_domain.domain
      id:                                 <computed>
      arch:                               "x86_64"
      disk.#:                             <computed>
      emulator:                           "/usr/bin/qemu-system-x86_64"
      machine:                            "pc"
      memory:                             "1024"
      name:                               "doctest-galaxy-proxy_1"
      network_interface.#:                "1"
      network_interface.0.addresses.#:    <computed>
      network_interface.0.bridge:         "br0"
      network_interface.0.hostname:       <computed>
      network_interface.0.mac:            <computed>
      network_interface.0.network_id:     <computed>
      network_interface.0.network_name:   <computed>
      network_interface.0.wait_for_lease: "true"
      running:                            "true"
      vcpu:                               "1"

  + module.galaxy-proxy_1.module.suse_manager_proxy.libvirt_volume.main_disk
      id:                                 <computed>
      base_volume_name:                   "doctest-sles12sp2"
      name:                               "doctest-galaxy-proxy_1-main-disk"
      pool:                               "suma"
      size:                               <computed>

  + module.minion-sles12sp2.module.minion.libvirt_domain.domain
      id:                                 <computed>
      arch:                               "x86_64"
      disk.#:                             <computed>
      emulator:                           "/usr/bin/qemu-system-x86_64"
      machine:                            "pc"
      memory:                             "512"
      name:                               "doctest-minsles12sp2"
      network_interface.#:                "1"
      network_interface.0.addresses.#:    <computed>
      network_interface.0.bridge:         "br0"
      network_interface.0.hostname:       <computed>
      network_interface.0.mac:            <computed>
      network_interface.0.network_id:     <computed>
      network_interface.0.network_name:   <computed>
      network_interface.0.wait_for_lease: "true"
      running:                            "true"
      vcpu:                               "1"

  + module.minion-sles12sp2.module.minion.libvirt_volume.main_disk
      id:                                 <computed>
      base_volume_name:                   "doctest-sles12sp2"
      name:                               "doctest-minsles12sp2-main-disk"
      pool:                               "suma"
      size:                               <computed>

  + module.suma3pg.module.suse_manager.libvirt_domain.domain
      id:                                 <computed>
      arch:                               "x86_64"
      disk.#:                             <computed>
      emulator:                           "/usr/bin/qemu-system-x86_64"
      machine:                            "pc"
      memory:                             "4096"
      name:                               "doctest-suma3pg"
      network_interface.#:                "1"
      network_interface.0.addresses.#:    <computed>
      network_interface.0.bridge:         "br0"
      network_interface.0.hostname:       <computed>
      network_interface.0.mac:            <computed>
      network_interface.0.network_id:     <computed>
      network_interface.0.network_name:   <computed>
      network_interface.0.wait_for_lease: "true"
      running:                            "true"
      vcpu:                               "2"

  + module.suma3pg.module.suse_manager.libvirt_volume.main_disk
      id:                                 <computed>
      base_volume_name:                   "doctest-sles12sp3"
      name:                               "doctest-suma3pg-main-disk"
      pool:                               "suma"
      size:                               <computed>

Plan: 16 to add, 0 to change, 0 to destroy.

Terraform Apply Output
2017-11-21T15:53:02.412+0100 [DEBUG] plugin.terraform-provider-libvirt: 2017/11/21 15:53:02 [DEBUG] Parsed response {Interfaces:[{Name:lo Hwaddr:00:00:00:00:00:00 IpAddresses:[{Type:ipv4 Address:<IP_ADDRESS> Prefix:8} {Type:ipv6 Address:::1 Prefix:128}]} {Name:eth0 Hwaddr:52:13:53:b5:bc:07 IpAddresses:[{Type:ipv6 Address:2620:113:80c0:8080:10:160:68:42 Prefix:64} {Type:ipv6 Address:2620:113:80c0:8080:5013:53ff:feb5:bc07 Prefix:64} {Type:ipv6 Address:fe80::5013:53ff:feb5:bc07 Prefix:64}]}]}
2017-11-21T15:53:02.412+0100 [DEBUG] plugin.terraform-provider-libvirt: 2017/11/21 15:53:02 [DEBUG] Interfaces obtained via qemu-agent: []
2017-11-21T15:53:02.412+0100 [DEBUG] plugin.terraform-provider-libvirt: 2017/11/21 15:53:02 [DEBUG] no interfaces could be obtained with qemu-agent: falling back to the libvirt API
2017-11-21T15:53:02.412+0100 [DEBUG] plugin.terraform-provider-libvirt: 2017/11/21 15:53:02 [DEBUG] Interfaces info obtained with libvirt API:
2017-11-21T15:53:02.412+0100 [DEBUG] plugin.terraform-provider-libvirt: ([]libvirt.DomainInterface) {
2017-11-21T15:53:02.412+0100 [DEBUG] plugin.terraform-provider-libvirt: }
2017-11-21T15:53:02.412+0100 [DEBUG] plugin.terraform-provider-libvirt:
2017-11-21T15:53:02.412+0100 [DEBUG] plugin.terraform-provider-libvirt: 2017/11/21 15:53:02 [DEBUG] ifaces with addresses: []
2017-11-21T15:53:02.412+0100 [DEBUG] plugin.terraform-provider-libvirt: 2017/11/21 15:53:02 [DEBUG] 52:13:53:B5:BC:07 doesn't have IP address(es) yet...
2017-11-21T15:53:02.412+0100 [DEBUG] plugin.terraform-provider-libvirt: 2017/11/21 15:53:02 [DEBUG] IP address not found for iface=52:13:53:B5:BC:07: will try in a while
2017-11-21T15:53:02.412+0100 [DEBUG] plugin.terraform-provider-libvirt: 2017/11/21 15:53:02 [TRACE] Waiting 10s before next try
2017-11-21T15:53:02.412+0100 [DEBUG] plugin.terraform-provider-libvirt: 2017/11/21 15:53:02 [DEBUG] wait-for-leases was successful
2017/11/21 15:53:02 [ERROR] root.suma3pg.suse_manager: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:

* libvirt_domain.domain: timeout while waiting for state to become 'all-addresses-obtained' (last state: 'waiting-addresses', timeout: 5m0s)
2017/11/21 15:53:02 [ERROR] root.suma3pg.suse_manager: eval: *terraform.EvalSequence, err: 1 error(s) occurred:

* libvirt_domain.domain: timeout while waiting for state to become 'all-addresses-obtained' (last state: 'waiting-addresses', timeout: 5m0s)
2017/11/21 15:53:02 [DEBUG] plugin: waiting for all plugin processes to complete...
Error applying plan:

1 error(s) occurred:

* module.suma3pg.module.suse_manager.libvirt_domain.domain: 1 error(s) occurred:

* libvirt_domain.domain: timeout while waiting for state to become 'all-addresses-obtained' (last state: 'waiting-addresses', timeout: 5m0s)

___

# Additional Infos:
Firewall = disabled
Apparmor = disabled
IPv6 = disabled

I just discovered there is a rogue vnet0 assigned to br0 which conflicts with the actual br0 assigned to my physical device em1. Removed and disabled vnet0 with ip link delete vnet0. I have no idea where this came from. Ill update on status.

The issue still persists. :(

@jcayouette  afaik to me this is fixed to the latest version, you should take the latest rpm from the repo (see readme) and try to reproduce, but we fixed it by a pr that got merged

@jcayouette to me is fixed. Can you install the latest plugin and verify?

still an issue with
Repository     : Virtualization:containers (openSUSE_Tumbleweed)
Name           : terraform-provider-libvirt
Version        : 0.0.0+git20180220.f2cef405-1.6

Error: Error applying plan:

1 error(s) occurred:

* libvirt_domain.domain: 1 error(s) occurred:

* libvirt_domain.domain: timeout while waiting for state to become 'all-addresses-obtained' (last state: 'waiting-addresses', timeout: 5m0s)

i can confirm, i had recently same issue. thx @aboe76
@inercia  feel free to have a look once you have some free time

When using a NATed network, libvirt starts its own DHCP server and the terraform-libvirt provider can query that server about the IPs for a domain. However, no DHCP server is started when using a bridge (like in this case), so the terraform libvirt provider cannot get the IP addresses. In this case, the provider falls back to asking a running qemu-agent in the domain and, if no qemu-agent is running, the IP addresses collection will timeout...
So I guess we should document all these things, right? :-)

yop we can document and close it
From my case, i add this issue with a sle15 image so it was not related  to a bug and the error was correct because the sle15 img missed some terraform dep. pkg needed to access it

@inercia as far i understood is more a user documentation problem then a bug, can you confirm that?.
If so is just a matter of doing some documentation and we are done. Tia


Use System look and feel + Grammar fix

The look and feel adapts the program to look like the system's interface design. For example for Windows 10, it will look like this:

http://i.imgur.com/oEyM2Aa.png
http://i.imgur.com/7M0PvGQ.png

You should ask people who use other operating systems to check for the design, as the placement or size can sometimes be too small.

Can confirm for my system :P:

http://i.imgur.com/zsJonH6.png

I was about to do that, but delayed the push.


Not read the whole

Hello
I use pugixml generate a file.
Like this:
<?xml version="1.0" encoding="UTF-8"?>
<Config description="assign">
	<Vectors>
		<Vector ID="0" name="M" />
		<Vector ID="1" name="FJ" />
		<Vector ID="2" name="HD" />
		<Vector ID="3" name="BAD" />
		<Vector ID="4" name="BBD" />
		<Vector ID="5" name="B" />
		<Vector ID="6" name="FC" />
	</Vectors>
</Config>

But I can't read the complete content  using the following code ;
	pugi::xml_document doc; 	pugi::xml_parse_result res = doc.load_file(fullName.toStdString().c_str()); 	if (res.status!=pugi::status_ok) 	{ 		qDebug() << "error" <<endl; 		return; 	}
the _buffer in doc is
<?xml version="1.0" encoding="UTF-8"?>
<Config

I change some xml file,but the same matter;
Sorry for my poor English;
Thanks ;

the _buffer in doc is

_buffer is a private variable; you should not be paying attention to that, the fact that it stops at Config is not a problem since that's just how pugixml internally parses data (by adding extra NUL characters to the buffer that the debugger assumes end the string).


Fix to solve problem with creating a new instance of Edittext.

This is a temporary fix. I would not recommend to initialise View elements on Adapters, this should be done on View level.

@mathias21 @roudyirany @mariciv Actually I don't think this is a good fix. It will probably work, but it is passing parameters that belong to the view domain into the adapter and accessing the adapter to get the EditText back. This is not good design.
Just making the getEditText() a lazy initializer should make it.
Let me know if I missed something.


Forge test error: .mudtest not exist

I created my initial project by running
pnpm create mud@canary mud2-project

Then I do
cd mud2-project/packages/contracts
forge test

Here is the error message that I got.
ubuntu@DESKTOP-DD1DBGG:~/mud2-project/packages/contracts$ forge test
[⠊] Compiling...
[⠑] Compiling 76 files with 0.8.13
[⠔] Solc 0.8.13 finished in 4.60s
<solidity compiler warnings>
2023-05-23T09:54:21.739092Z ERROR forge::runner: setUp failed reason="failed to read from \"/home/ubuntu/mud2-project/packages/contracts/.mudtest\": No such file or directory (os error 2)" contract=0x7fa9385be102ac3eac297483dd6233d62b3e1496

Running 1 test for test/CounterTest.t.sol:CounterTest
[FAIL. Reason: Setup failed: failed to read from "/home/ubuntu/mud2-project/packages/contracts/.mudtest": No such file or directory (os error 2)] setUp() (gas: 0)
Test result: FAILED. 0 passed; 1 failed; finished in 1.35ms

Failing tests:
Encountered 1 failing test in test/CounterTest.t.sol:CounterTest
[FAIL. Reason: Setup failed: failed to read from "/home/ubuntu/mud2-project/packages/contracts/.mudtest": No such file or directory (os error 2)] setUp() (gas: 0)

Encountered a total of 1 failing tests, 0 tests succeeded

Running pnpm test (which runs mud test) will set up the .mudtest file for you.
(We'll look into improving this flow)


missing file added

@v-hearya,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

patterns-practices/reference/pubsubevent-tpayload-subscribe-method-action-tpayload-boolean-mspp-pubsubevents.md
:white_check_mark:Succeeded

patterns-practices/reference/regionmanager-setregioncontext-method-mspp-regions.md
:white_check_mark:Succeeded

patterns-practices/reference/regionmanagerextensions-add-method-mspp-regions.md
:white_check_mark:Succeeded

patterns-practices/reference/regionmanagerextensions-requestnavigate-method-iregionmanager-string-uri-action-navigationresult-mspp-regions.md
:white_check_mark:Succeeded

patterns-practices/reference/syncactivestateattribute-methods-mspp-regions.md
:white_check_mark:Succeeded

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


Module 4 exercises [Sarah Gyogluu]

Please "drag & drop" exercise 1 excel file below.
Exercise 1.xlsx

Please "drag & drop" exercise 2 excel file below.
Exercise 2.xlsx

Please "drag & drop" exercise 3 pdf file below.
Rank Sum Map.pdf

Please UPDATE THE TITLE of this "Issue" in the title bar above with your name.
Rank Reciprocal Map.pdf

If you haven't done so, please go back to Module 4 and make sure to take
the post-training survey. Participating in surveys is required for receiving
the "GALUP Certificate" by the University of Florida.

Well done, Sarah. You clearly grasped the material outlined in Module 4 and successfully applied it to these exercises. Thank you for your participation! Please be sure to fill out the post-Module survey before you begin the next Module.


Remove curl -f and -s flags and cat response.json when an error occurs

Vault produces useful error messages. This propagates them to stdout, which makes it much easier to debug issues.

@devth thanks. Could we maybe keep -s enabled? That'll suppress progress bar.

Yep, good call. Just updated the PR.

LGTM


Don't update page title until transition is complete

When an app has loading sub-states between two routes the title updates twice - once to remove the current title & transitions to the parent title, then again when the transition is complete.
Eg.

/foos/bar - "My App / Foos / Bar"
/foos/-loading - "My App / Foos" <- don't want to see this one
/foos/baz - "My App / Foos / Baz"

This might be rather tricky, but it would be nice if we could detect we're transitioning through a loading state and not update the title until the transition is complete.

I think that will have to wait until we have a router service to do so.

That way we can check if the router is loading rather than using private APIs to update

@rlivsey is this resulting in the following deprecation warning for you?
ember.debug.js:6628 DEPRECATION: You modified pageTitle twice in a single render. This was unreliable in Ember 1.x and will be removed in Ember 3.0 [deprecation id: ember-views.render-double-modify]

@jherdman I am getting the deprecation warning
Here's a quick and dirty watcher for the title changing:
var lastTitle = document.title;
var interval = setInterval(function(){
  var title = document.title;
  if (lastTitle !== title){
    lastTitle = title;
    console.log(title);
  }
}, 100);

@jherdman / @g5codyswartz could either of you open up an issue so I can track this warning?

@tim-evans apologies for the slow reply. I'm not entirely sure where you'd like me to open the issue. Isn't this issue the correct place?

I found this being super annoying in our app, so I fixed it 🎉

Awesome, less code than I thought it would be too!

I'm definitely finding this to be the case still in the 4.0 series too. I'm trying to display the top most title token on a page. Something like this:
{{title 'Show me on the page'}}

<h1>{{pageTitleList.sortedTokens.lastObject.token}}</h1>

Transitioning routes will cause this error to happen still.


Consider to remove sorting at MeterIdPrefix

Currently, we sort the micrometer tags at MeterIdPrefix to create Meter ID stably.
https://github.com/line/armeria/blob/master/core/src/main/java/com/linecorp/armeria/common/metric/MeterIdPrefix.java#L95-L101
Since I saw this stacktrace from our service’s flamegraph, I would like to consider whether it is avoidable or not.  Since it doesn’t have many samples, we can be ignored but because it is not optimal, it would be happy if we can avoid this sort.

We can make use of the following characteristics:

The number of tag names is very small (less than 10 usually)
We always construct a new sorted tag list because MeterIdPrefix is immutable.
When merging two tag lists:

the first tag list is always sorted.
the second tag list is also very small.

I don't think this would be an issue if we sorted during metric export instead of when recording metrics.
Do you think it's possible to move sorting to a different layer that only occurs during export?

That's a good point. We could:

Sort only when creating a meter.
Make MeterIdPrefix.equals() and hashCode() order-independent.

I played with this a little and found

Micrometer sorts before creating a meter anyways, so we don't need to worry about it. Removing sorting still allows prometheus integration test to pass even though it adds tags out-of-order

We need to do order-independent hashcode/equals for the memoizing that happens in MicrometerUtil.register. However, I don't know if it's possible to do this faster than the current sort. I tried these three techniques, all slower than HEAD, and in this order of performance. Do you know of any other trick for unordered Equals that might be faster than the sort we do?

this.tags.containsAll(that.tags) && that.tags.containsAll(this.tags) (probably fast right now since by default we don't have that many tags)
Store field this.unorderedTags = ImmutableSet.copyOf(tags), this.unorderedTags.equals(that.unorderedTags)
ImmutableSet.copyOf(this.tags).equals(ImmutableSet.copyOf(that.tags));

Also of the optimizations in
https://github.com/line/armeria/issues/2150#issuecomment-538215947
I guess the one that might have an affect is doing insertion sort for merging - TimSort already essentially skips sorted input so I don't know if we're able to beat it by taking already-sortedness into account.
Let me now if you have any thoughts.

By the way, @imasahiro are you using default MeterIdPrefixFunctionFactory.DEFAULT or do you add your own tags with MeterIdPrefixFunction.withTags? If latter, how many tags?

@anuraaga Yes, basically, I'm using armeria-spring's default MeterIdPrefixFunctionFactory.DEFAULT.

Wouldn't order-indepdendent hashCode() with memoization help a lot since it will make full comparison skip in many cases? i.e. order-independent equals() will be slower but hashCode() will cover the loss.

The benchmark in my PR does the prefix generation+register but I didn't see it cover the difference unfortunately. I guess it would require very slow sorting (adding largish number of tags in very random order) to see the difference so maybe we can live with it now since default function can be made to add the tags in order.


iOS 12 Notification Delivery Problem

Expected Behaviour
Receive push when app is opened or closed
and .on('notification') get fired when app is opened or closed
Actual Behaviour
Can't peceive push when app is opened or closed
and .on('notification') is not fired when app is opened or closed
Reproduce Scenario (including but not limited to)

none

Steps to Reproduce
see payload
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iOS 12
(Android) What device vendor (e.g. Samsung, HTC, Sony...)

none

Cordova CLI version and cordova platform version

IOS
phonegap build version cli-8.0.0
phonegap cordova ios version 4.5.4

Android
phonegap build version cli-8.0.0
phonegap cordova android version 7.0.0

Plugin version
phonegap-plugin-push version 2.2.3
Sample Push Data Payload
URL POST https://fcm.googleapis.com/fcm/send

1
app is closed, no push received
app is open, no push received

{

    "registration_ids":["cU9E..kmL"],
    "data" : {
    	"sound":"default",
    	"title":"Portugal vs. Den12mark 1",
    	"body":"great match!"
    },
    "content_available":true
}

2
app is closed, push received, when click push  "notification" not fired
app is open, no push received

{

    "registration_ids":["cU9E..kmL"],
    "notification" : {
    	"sound":"default",
    	"title":"Portugal vs. Den12mark 1",
    	"body":"great match!"
    },
    "content_available":true
}

Sample Code that illustrates the problem
APP.push = PushNotification.init({
	android: {
		vibrate: true,
		forceShow: true
	},
	ios: {
		alert: true,
		sound: true
	}
});
APP.push.on('notification', (result) => {
	alert('notification=' + JSON.stringify(result || ''));

	if (result) {
		if (result.additionalData) {
			if (result.additionalData.notId) {
				APP.push.finish(() => {}, () => {}, result.additionalData.notId);
			};
		};
	};
});

Logs taken while reproducing problem
no log, app is build on "phonegap build" and being deployed to appstore on testflight for production

the plugin was using deprecated method, but master branch uses the new recommended way, so, can you try with master branch and see if it works?

updated the config.xml with
<plugin name="phonegap-plugin-push" spec="https://github.com/phonegap/phonegap-plugin-push#master" />

the problem is not solved

Tested also with the master branch, no success. Android works ok.

I got it working with version 2.2.3. The problem was with new Xcode10 (mojave). For some reason Xcode10 was not able to start the app in the phone after deployment with provisioning profile, I just got message “iPhone has denied the launch request”. After changing the launch options Product -> Scheme --> Edit Scheme --> Info --> Launch: "Wait for executable to be launched". Tested getting notification when app is open and closed. Both cases notification received. .on('notification') event triggered when the app is open. When the app is closed, clicking the notification opens the app, but does not trigger the .on('notification') event, but that is by design. Remember, you need to sign the app with provisioning profile to be able to receive notifications.

I have now tested this plugin with iOS12 and it works properly. Just realised that the  .on('notification') even triggers when the app is totally closed, I didn't know this was possible, as just tested all scenarios and its working both android and iOS. So my issues were something else which described earlier in this thread. @superainovacoes is the creator of this issue so he will need to continue from here. Thanks for the great plugin!

@tavikukko i just can't choose the xcode version, i'm using phonegap build.
Can you please share your fcm payload or the steps, so i can test it again?

I use Xcode to build locally and use the version 2.2.3, not the master branch. I'm not using fcm, I'm using Azure Notification Hub to send the messages. This is the payload:
{   "aps": {     "alert": "title of the notification",     "sound": "cat.caf"   },   "title": "title of the notification",   "message": "message of the notification" }

Tested with config.xml
<!-- https://build.phonegap.com/current-support -->
<preference name="phonegap-version" value="cli-8.0.0" />

<platform name="android">
	<preference name="android-build-tool" value="gradle" />
	<preference name="android-minSdkVersion" value="19" />
	<preference name="android-targetSdkVersion" value="19" />

	<plugin name="phonegap-plugin-push" spec="2.1.3" />
	<resource-file src="google-services.json" target="app/google-services.json" />
</platform>

<platform name="ios">
	<plugin name="phonegap-plugin-push" spec="2.2.3" />
	<resource-file src="GoogleService-Info.plist" />
</platform>
</widget>

iOS Version: 12.1
Android Version: 8.0.0
Both apps are signed to production.

Payload test 1

{
    "notification":{
    	"sound": "default",
        "title": "title",
        "body": "body",
        "someKey" : "someValue"
    },
    "data": {
    	"sound": "default",
        "title": "title",
        "body": "body",
        "someKey" : "someValue"
    },
    "registration_ids": ["fcY..CpM", "fQTm..GB1"],
    "priority": "high",
    "content_available": true,
    "mutable_content": true
}

APP CLOSED

ios: push ok, notification ok
android: push ok, nofitication none

APP OPENED

ios: push none, notification none
android: push ok, nofitication ok

Payload test 2

{
    "data": {
    	"sound": "default",
        "title": "title",
        "body": "body",
        "someKey" : "someValue"
    },
    "registration_ids": ["fcY..CpM", "fQTm..GB1"],
    "priority": "high",
    "content_available": true,
    "mutable_content": true
}

APP CLOSED

ios: push none, notification none
android: push ok, nofitication ok

APP OPENED

ios: push none, notification none
android: push ok, nofitication ok

Payload test 3

{
    "notification":{
    	"sound": "default",
        "title": "title",
        "body": "body",
        "someKey" : "someValue"
    },
    "registration_ids": ["fcY..CpM", "fQTm..GB1"],
    "priority": "high",
    "content_available": true,
    "mutable_content": true
}

APP CLOSED

ios: push ok, notification ok
android: push ok, nofitication none

APP OPENED

ios: push none, notification none
android: push ok, nofitication ok

Having a similar issue where the plugin is registering fine. I receive notifications when the app is in the background, but .on('notification') never fires on cold start or when the app is in the foreground.

On iOS and Android the plugin works fine for me, but on iOS on('notification') doesn't seem to be fired if the app is in foreground... i am sending test notifications from FCM console, any solutions?

Same problem here, registration is ok but .on(‘notification’) doesn't seem to be fired. I sent playload using APNs that worked fine with previous versions of this plugin.
Tested in a ios12  - iphone X
ios 4.5.5
plugin version: 4.2.3 (even with a master branch)
using Xcode no error in log
Any idea to solve it?

seems like setting the FirebaseAppDelegateProxyEnabled value to YES in info.plist might help

I am seeing the same problem with my app on iOS devices.  Has anyone confirmed setting FirebaseAppDelegateProxyEnabled value to YES resolves the issue?  If so, how do I set that value in the info.plist if I am using Phonegap Build?

@gregor-srdic care to expand on that?

FirebaseAppDelegateProxyEnabled  should be enabled by default and is used for Swizzling.  If you were to disable it you need to map your APNs token to your RCM registration token.
We were running into a similar issue where everything worked fine in iOS 11, but in iOS 12 it was not working.  It turned out that in PushNotification.init() we never were setting any of the permissions (alert/sound/badge).  For whatever reason we never ran into issues with this in older iOS versions, but in iOS 12 it wouldn't work.  After setting the option in ios for alert: true in the init things began working again as expected.

Hi, I have retested.  We are using phonegap-build. App is signed to release.
The tests include setting "FirebaseAppDelegateProxyEnabled" to YES and NO to plist.
config.xml
<preference name="phonegap-version" value="cli-8.1.1" />
<preference name="pgb-builder-version" value="2" />

<platform name="android">
	<engine name="android" spec="7.1.4" />
	<preference name="android-minSdkVersion" value="21" />
	<preference name="android-targetSdkVersion" value="26" />

	<feature name="http://api.phonegap.com/1.0/notification" />
	<plugin name="phonegap-plugin-push" source="npm" spec="2.2.3" />
	<resource-file src="google-services.json" target="app/google-services.json" />
</platform>

<platform name="ios">
	<engine name="ios" spec="4.5.5" />

	<feature name="http://api.phonegap.com/1.0/notification" />
	<plugin name="phonegap-plugin-push" source="npm" spec="2.2.3" />
	<resource-file src="GoogleService-Info.plist" />
</platform>

build.json
{
	"ios": {
		"debug": {
			"buildFlag": [
				"-UseModernBuildSystem=0"
			]
		},
		"release": {
			"buildFlag": [
				"-UseModernBuildSystem=0"
			]
		}
	}
}

app.js
PushNotification.init({
	android: {
		sound: "true",
		vibrate: "true",
		forceShow: "true",
		icon: "icon"
	},
	ios: {
		alert: "true",
		sound: "true"
	}
});

POSTMAN (https://fcm.googleapis.com/fcm/send)
{
    "to": "f76M.......ICWd",
    "priority": "high",
    "content_available": true,
    "mutable_content": true,
    "notification": {
        "body": "body not",
        "title": "title not",
        "sound": "default",
        "custom1_not": "val_not"
    },
    "data": {
        "body": "body data",
        "title": "title data",
        "sound": "default",
        "custom1_data": "val_data"
    }
}

Same problem, iOS 12 can't receiver event ".on('notification')" when the APP is OPEN.

Same issue here, the .on('notification') callback is never called on iOS (I tried with iOS10 and iOS12, none of them worked). I'm using FCM for iOS. I can receive the push notifications when the app is in background, but the callback isn't called when clicking it or if the app is in foreground when the notification is received.
I tried all the suggestions in this issue: I'm using Legacy Build System, I added FirebaseAppDelegateProxyEnabled to the .plist file and I also set Launch: "Wait for executable to be launched". Nothing worked, the callback isn't called.
I'm using fcm-node to test this:
notification: {
        title: 'John Smith',
        body: 'Message',
        priority: 'high',
}

I tried using priority and content_available params, with no success.
Has anyone been able to make this work in iOS using FCM?

Seems like the problem is inside the plugin.
Even sending the push using fcm site (https://console.firebase.google.com/u/0/project//notification/compose), the notification doesn't trigger when app is opened or background, only when is full closed.

The problem seems to be here even using new cordova<EMAIL_ADDRESS>version. The .on(‘notification’)  event doesn't seem to be fired.
I’m using APNs, “notification” doesn’t work in background, foreground and open status..

I got same problem with ios 12 with xcode 10.1.
register works fine, but can't receive any push message, but it works on android.
anyone can help me?

On my projects it´s working

yes, I figured out, need to update xcode build as Legacy System.

Following up my previous comment, I was able to make the callback work when the app is in foreground by using the branch in this Pull Request:
https://github.com/phonegap/phonegap-plugin-push/pull/2581
The callback still isn't called when I click a background notification, but I noticed that the same happens with version 1.11.1 of the plugin so it seems this has been broken for a long time.

@dpalou even with branch from the pull request you specified, using iOS 12.1, cordova 7.1.0, cordova-ios 4.5.5, APNS (not FCM), XCode 10 (using build Legacy System), the on("notification") trigger is not fired in background or foreground, but the push is received when in background and the on("registration") trigger is fired.

Hi,
182/5000
I have the same problem.
I can normally register in FCM, the firebase recognizes the device, but when I send the push I do not get even in the foreground background.
Ionic:
ionic (Ionic CLI)  : 4.3.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework    : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.2
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms     : ios 4.5.5
Cordova Plugins       : cordova-plugin-ionic-webview 3.1.2, (and 15 other plugins)
System:
ios-deploy : 1.9.2
ios-sim    : 5.0.13
NodeJS     : v8.12.0 (/usr/local/bin/node)
npm        : 6.4.1
OS         : macOS
Xcode      : Xcode 10.1 Build version 10B61
Ios: 12
Any solution?

No solution yet... isn’t it?

same issue still exists with master branch
is there any help/solution?
we tried to add FirebaseAppDelegateProxyEnabled to info.plist
and phonegap-plugin-push build 2.2.3
where are building the app via adobe phonegap build

An progress on this issue?

same problem here


Retrieve fingerprint from device

I'm curious as to how I can retrieve the scanned image from the device. Is this implemented? If it's scanned and retrieved as a byte array, that would be fine. @JcBernack

This is not currently implemented in this library, but should be possible.
See the TODO note on CaptureSample here: https://github.com/JcBernack/WinBioNET/blob/750e6dc8e248e9b441877a374589d44299a735cf/WinBioNET/WinBio.cs#L112
The data at pointer should somehow contain the image. Here is some C-code where the image is retrieved, maybe that will help you:
https://github.com/djbozkosz/Windows-Biometric-Framework-FingerPrint-Example/blob/master/FingerPrint/main.cpp#L176
If you get it working in C# I would be happy to accept a pull request 😉

Ah, I've been staring at this all day, glad I'm on the right track!
I've come across a thread on the MSDN forums which might give us a clue on how it's done too which references the code you linked:
https://social.msdn.microsoft.com/Forums/en-US/f6f09403-e0b6-4977-b697-d5aabeb5b8ff/how-to-convert-winbiobir-data-into-image-using-windows-biometric-framework?forum=wdk
I think this is beyond my level, but I am playing around with it in LINQPad.
Can you explain to me what this does right after that comment, please?
Free(pointer);
I'm not familiar with externs hehe.

It seems like every time I try and call CaptureSample I get AccessDenied -
WinBioCaptureSample failed: AccessDenied
WinBioRejectDetail rejectDetail; WinBio.CaptureSample(_session, WinBioBirPurpose.NoPurposeAvailable, WinBioBirDataFlags.Raw, out int sampleSize, out rejectDetail);

Free(pointer) frees the pointer. (excuse me)
The Windows Biometric Framework is an unmanaged C library, that means you have to manually clean up memory allocated by the framework.
As to why you get AccessDenied:
Did you check the documentation?
https://msdn.microsoft.com/en-us/library/windows/desktop/dd401603(v=vs.85).aspx
E_ACCESSDENIED: The caller does not have permission to capture raw samples, or the session was not opened by using the WINBIO_FLAG_RAW flag.
You probably need higher privileges to capture raw samples. Try running your program as an administrator.

Thanks for you reply.
Thanks for the explanation. I've also tried running the program as an administrator however I'm still getting the same issue.
Judging by what you quoted from the documentation "or the session was not opened by using the WINBIO_FLAG_RAW flag"
Does the method call seem right to you - what I posted earlier?
Also, I came across this that might help, scroll down to "Remarks":
https://msdn.microsoft.com/en-us/library/windows/desktop/dd401603(v=vs.85).aspx

You didn't show how you opened the session, only your call to CaptureSample.
Check the link in my first response for the arguments you need both on OpenSession and CaptureSample, if it still doesn't work I'm out of ideas..

I'm opening the session the same way in the sample project...
private void OpenBiometricSession() { 	 _session = WinBio.OpenSession(WinBioBiometricType.Fingerprint, WinBioPoolType.Private, WinBioSessionFlag.Basic, new[] { unit.UnitId }, DatabaseId); 	Console.WriteLine( "Session opened: " + _session.Value); }


HELP NEEDED: Created a PaneledEditableTextbox and Made multiline the EditableTextBox

I need your help.
The EditableTextBox multiline works perfectly. Now creates newlines and are saved and loaded perfectly
The problem is the PaneledEditableTextBox. I added a new line of buttons with the special characters for every game (one D2E and one MoM) and when you press one button it adds to the text the current code. BUT i used to insert it your traits buttons and I have 2 problems.

When these buttons appears. the other buttons stops working. The MENU button to save or the BACK button to go back
When you press the [+] button to add collections to the quest, the buttons dissapears while the collection pannel appears...

In order to test, I changed the Quest description EditableTextBox to PaneledTextBox so if you load any quest to edit it you will see the new panel in the quest description
could you take a look to help me solve this problem? I dont understand exactly how the components interaction works,... T_T

The way this is done is with unity Object tags.  Top level dialogs are tagged with dialog.  If there are any dialogs present then things like Menu and other UI functions don't work (you already have something open).  By default all the UI things (like buttons) are tagged as dialog.
For quest editing all of the things in the left pane are retagged as 'editor'.  This means that:
1: They aren't removed when dialogs get closed
2: They don't stop other dialogs from openning
The function ApplyTag(string tag) in PaneledDialogBoxEditable needs to ensure that all children objects get the new tag, your issue is that your new buttons don't get the new tag.


Brokers connecting to replaced Bookies

We're finding brokers attempting to connect to Bookies that have been replaced and are nowhere to be found on Zookeeper.

@merlimat any idea what could be happening? We had all brokers connecting to bookies which no longer existed, and continued doing so for days, we had to restart them for them to realize those bookies did not exist.
Is this an issue with Bookkeeper client or with brokers themselves?

I think this is due to the BK client still having the old metadata, pointing to the retired bookies. I know that in broker if we have a read error, we close the ledger to make sure we get the updated metadata.
I'm not sure in this case at which point it might have got stuck. Need to reproduce it in a simple scenario to debug it further.

I think this is due to the BK client still having the old metadata, pointing to the retired bookies. I know that in broker if we have a read error, we close the ledger to make sure we get the updated metadata.

We had lot's of failures and broker didn't seem to be updating the metadata, If I can find the related logs, I'll attach them.

@merlimat i'm checking logs, the mostly complain of failing to write to the replaced bookies, and then they get quarantined, but eventually, they get removed from quarantine and start failing again.
No errors seem to come from reading, maybe that's why metadata doesn't get refreshed?

Uhm, that sound strange. If the bookies are down, they should not be being picked up for new ledgers ensembles. Can you indeed post the logs here? Also, can you verify that the bookies are really not registered in ZK anymore?
bin/bookkeeper shell listbookies  --readwrite

Also, can you verify that the bookies are really not registered in ZK anymore?

I did that when we had the issue and they were indeeed not registered.
Here I attach some logs for a single broker which is failing against bookie <IP_ADDRESS> which did not exist at the time. The logs are only those mentioning that bookie.
logs.txt

@merlimat could you take a look at the logs?

So, I'm not sure on what is exactly happening, though it seems to be related with the RackAware policy and the notification it gets when the z-node with the mapping is changed.
In particular, at the beginning of the log :
2017-02-03 02:39:04,038 - INFO  - [zk-cache-executor-11-1:ZkBookieRackAffinityMapping@160] - Bookie rack info updated to {us-east-1={<IP_ADDRESS>:3181=com.yahoo.pulsar.zookeeper.BookieInfo@583c6a6e, <IP_ADDRESS>:3181=com.yahoo.pulsar.zookeeper.BookieInfo@410cbbe8, <IP_ADDRESS>:3181=com.yahoo.pulsar.zookeeper.BookieInfo@797f9064, <IP_ADDRESS>:3181=com.yahoo.pulsar.zookeeper.BookieInfo@10f00f34, <IP_ADDRESS>:3181=com.yahoo.pulsar.zookeeper.BookieInfo@2ba4685e, <IP_ADDRESS>:3181=com.yahoo.pulsar.zookeeper.BookieInfo@f535539, <IP_ADDRESS>:3181=com.yahoo.pulsar.zookeeper.BookieInfo@a2a0807, <IP_ADDRESS>:3181=com.yahoo.pulsar.zookeeper.BookieInfo@1ab32fd9, <IP_ADDRESS>:3181=com.yahoo.pulsar.zookeeper.BookieInfo@12dd5249, <IP_ADDRESS>:3181=com.yahoo.pulsar.zookeeper.BookieInfo@73227b6, <IP_ADDRESS>:3181=com.yahoo.pulsar.zookeeper.BookieInfo@5d026d67, <IP_ADDRESS>:3181=com.yahoo.pulsar.zookeeper.BookieInfo@5e4c5cf9}}. Notifying rackaware policy.
2017-02-03 02:39:04,039 - INFO  - [zk-cache-executor-11-1:NetworkTopology@463] - Removing a node: /us-east-1e/<IP_ADDRESS>:3181
2017-02-03 02:39:04,039 - INFO  - [zk-cache-executor-11-1:NetworkTopology@394] - Adding a new node: /us-east-1e/<IP_ADDRESS>:3181

So, first bookie <IP_ADDRESS> gets removed and then immediately added back again. I need to setup a test env to try to reproduce this.
In the meantime, I think you were updating rack-aware mapping z-node every time a bookie was removed from /ledgers/available, right? Can you try not to touch the mapping and see if it makes any difference?

@sschepens Not able to reproduce locally so far.
Can you try turning debug logs on these classes?
org.apache.bookkeeper.client.RackawareEnsemblePlacementPolicy
org.apache.bookkeeper.net.NetworkTopology
com.yahoo.pulsar.zookeeper.ZkBookieRackAffinityMapping

Also can you explain again how do you update the rack info?

If you are still seeing this issue, it will be useful if you can list the nodes under /ledgers/available and send the contents of /bookies

@saandrews yes we're still experimenting this once in a while

This might be related to network stabilization in zookeeper.
Basically it takes time to stabilise the network of bookies as registered in zookeeper. You might want to look at the zookeeper property bkc.networkTopologyStabilizePeriodSeconds
Ref - https://twitter.github.io/distributedlog/html/implementation/storage.html

@sschepens did this issue ever get resolved, or do you continue to see it?

Closing this for now, please reopen if you see again


optimize: $0 -> os.Args[0]

Signed-off-by: Akihiro Suda<EMAIL_ADDRESS>

@AkihiroSuda Thanks a lot!


[Network] private link add Microsoft.StorageSync/storageSyncServices provider

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

Network

/azp run

Need add storagesync extension, so skip it on record test.


Vacuum seen as switch

Describe the bug
When I add my vacuum to Tuya Local it only suggests generic switches

To Reproduce

Click Add integration button;
Select Tuya Local;
Input uuid, ip address, local key;
Select protocol version 3.3;
Click Submit.

Expected behavior
Suggest my vacuum device at best, show other device or message error at worst.
Additional context
I'm migrating from localtuya to tuya-local and I'm trying support my vacuum using my localtuya's diagnostic file and other local-tuya's vacuum devices to create my own (which probably works on most vacuums since it works with localtuya's suggested DPs).
I have placed my file under /config/custom_components/tuya_local/devices and restarted HA.
My device.yaml file:
name: KaBuM!Robô aspirador de pó
products:
  - id: wexaeucvbdawkkpo
primary_entity:
  entity: vacuum
  dps:
    - id: 1
      type: boolean
      name: power
    - id: 11
      type: bitfield
      name: error
      mapping:
        - dps_val: 1
          value: edge_sweep
        - dps_val: 2
          value: middle_sweep
        - dps_val: 4
          value: left_wheel
        - dps_val: 8
          value: right_wheel
        - dps_val: 16
          value: garbage_box
        - dps_val: 32
          value: land_check
        - dps_val: 64
          value: collision
    - id: 14
      name: battery
      type: integer
      readonly: true
    - id: 25
      type: boolean
      name: activate
    - id: 26
      type: string
      name: direction_control
      optional: true
      mapping:
        - dps_val: forward
          value: forward
        - dps_val: backward
          value: reverse
        - dps_val: turn_left
          value: left
        - dps_val: turn_right
          value: right
        - dps_val: stop
          value: stop
    - id: 27
      type: string
      name: command
      mapping:
        - dps_val: standby
          value: standby
        - dps_val: smart
          value: auto_cleaning
        - dps_val: spiral
          value: stop_cleanning
        - dps_value: single
          value: room_cleaning
        - dps_val: wall_follow
          value: edge_cleaning
        - dps_val: chargego
          value: return_to_base
    - id: 28
      type: string
      name: status
      mapping:
        - dps_val: cleanning
          value: cleanning
        - dps_val: returning
          value: returning_to_dock
        - dps_val: charging
          value: charging
        - dps_val: standby
          value: standby
    - id: 29
      type: boolean
      name: locate
      optional: true
    - id: 30
      type: string
      name: fan_speed
      mapping:
        - dps_val: low
          value: Low
        - dps_val: normal
          value: Medium
        - dps_val: high
          value: High
secondary_entities:
  - entity: select
    name: Mute voice
    icon: "mdi:account-voice"
    dps:
      - id: 31
        type: boolean
        name: mute_voice
  - entity: sensor
    name: Clean area
    category: diagnostic
    icon: "mdi:floor-plan"
    dps:
      - id: 32
        type: integer
        name: sensor
        unit: m2
  - entity: sensor
    name: Clean time
    category: diagnostic
    icon: "mdi:clock-outline"
    dps:
      - id: 33
        type: integer
        name: sensor
        unit: min

This is not a bug, it is a request for a new device.  Please refile accordingly


Deleted contact display User.getUser, User.getAllUser

Deleted user contacts being displayed User.getUser, User.getAllUsers. Fix and search for other occurrences.


[HUDI-3161] Add Call Produce Command for spark sql

Tips

Thank you very much for contributing to Apache Hudi.
Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.

What is the purpose of the pull request
Add Call Produce Command for spark sql
link: HUDI-3161
Brief change log
(for example:)

Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@hudi-bot run azure

@hudi-bot run azure

@hudi-bot run azure

@hudi-bot run azure

@xushiyan   could you pls help review this pr， thanks


Textscreen menu partially blank

Most of the textscreen menu is blank below the reset buttons. When you open the tool, the console gives this error:
[ERROR] addons/3d2dtextscreens/lua/weapons/gmod_tool/stools/textscreen.lua:165: attempt to index upvalue 'textscreenFonts' (a nil value)

Thanks for the report @tristan2998. I'm unable to replicate this currently.
Does this happen if you use the workshop variant of the addon, without any other addons installed?

It happens with both workshop and github releases

Can you please confirm it still happens if you remove all other addons? I can not replicate this on the public or dev branches of Garry's Mod.

Yes, I have ran my server with only the addon installed, and it still does it.

If it helps to know, for some reason, the Gmad extractor adds a random character to the beginning and end of each .lua. I fixed the issue but it didn't change anything. But the console sometimes says to addons/3d2d textscreens/lua/weapons/gmod_tool/stools/textscreen.lua:165: attempt to index upvalue 'textscreenFonts' (a nil value). Attatching my .lua file just to be sure
textscreen.txt

3d2d textscreens.zip
This is the addon folder

Yeah - that .zip is very wrong. It's missing the autorun folder, and many files are missing characters at the start, which is going to cause lots of issues. Whatever extractor tool you're using isn't working.
Please install the addon using a Workshop Collection as per https://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers.

That resolved the issue, thank you.

Thanks @tristan2998, I'm glad it's working for you now!


Unable to download Nexus binaries on OCI - Ubuntu 22.04

Bug description
On Oracle Cloud Infrastructure, when I try to deploy the ACS inside an Ubuntu 22.04 OS, I get error when the playbook tries to download Nexus binaries. There are no problems for Apache ones.
Target OS
Ubuntu 22.04
operating_system: Canonical-Ubuntu-22.04-2023.07.20-0
image_id:
ocid1.image.oc1.eu-zurich-1.aaaaaaaarxcjh5ac763nuruhtigyuyyaeqpe6oop7mgimcuumauhcjwf6rsa
Ansible error
Here is the error:
Tuesday 22 August 2023  08:09:53 +0000 (0:00:02.139)       0:03:34.543 ********
 [started TASK: ../roles/transformers : Download ImageMagick distribution on oci/mop-alf-ce-tools]

TASK [../roles/transformers : Download ImageMagick distribution] *************************************************************************************************
failed: [oci/mop-alf-ce-tools] (item=imagemagick-distribution-ubuntu-22.04) => {"ansible_loop_var": "item", "changed": false, "dest": "/tmp/ansible_artefacts/imagemagick-distribution-7.1.0-16-ci-2-ubuntu-22.04.deb", "elapsed": 0, "item": "imagemagick-distribution-ubuntu-22.04", "msg": "Request failed: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)>", "url": "https://artifacts.alfresco.com/nexus/content/groups/public/org/alfresco/../imagemagick/imagemagick-distribution/7.1.0-16-ci-2/imagemagick-distribution-7.1.0-16-ci-2-ubuntu-22.04.deb"}

The transformers group contains the host oci/mop-alf-ce-tools. When I try to run the playbook, it fails on the above error. Before that point, the playbook is able to download Apache-related binaries:
alfresco@mop-alf-ce-tools:/tmp/ansible_artefacts$ ls -l
total 249964
drwxrwxrwx  2 alfresco alfresco      4096 Aug 22 12:38 ./
drwxrwxrwt 15 root     root          4096 Aug 22 12:48 ../
-rw-------  1 ubuntu   ubuntu        1949 Aug 22 10:09 9c817fd05fc0d4ec5699b37650a2a3cdfcefb6ef.pem
-rw-rw-r--  1 ubuntu   ubuntu   191514138 Aug 22 10:08 OpenJDK11U-jdk_x64_linux_17.0.3_7.tar.gz
-rw-r--r--  1 ubuntu   ubuntu    64418725 Aug 22 10:09 apache-activemq-5.16.6-bin.tar.gz
-r--------  1 ubuntu   ubuntu        5857 Aug 22 10:09 fc87cf56fbd9dabb8063a767b49646c68856106b.p12
alfresco@mop-alf-ce-tools:/tmp/ansible_artefacts$

I created a small playbook with only 1 task which is this download and I got the following:
TASK [Download ImageMagick distribution] *************************************************************************************************************************
task path: /workspace/yak/component_types/alfresco_ecm/playbooks/transform.yml:6
failed: [oci/mop-alf-ce-tools] (item=imagemagick-distribution-ubuntu-22.04) => {
    "ansible_loop_var": "item",
    "changed": false,
    "dest": "/tmp/ansible_artefacts/imagemagick-distribution-7.1.0-16-ci-2-ubuntu-22.04.deb",
    "elapsed": 0,
    "invocation": {
        "module_args": {
            "attributes": null,
            "backup": false,
            "checksum": "sha1:71abb87a836e3defa474551352084bf475e23373",
            "ciphers": null,
            "client_cert": null,
            "client_key": null,
            "decompress": true,
            "dest": "/tmp/ansible_artefacts/imagemagick-distribution-7.1.0-16-ci-2-ubuntu-22.04.deb",
            "force": false,
            "force_basic_auth": false,
            "group": null,
            "headers": null,
            "http_agent": "ansible-httpget",
            "mode": "0644",
            "owner": null,
            "selevel": null,
            "serole": null,
            "setype": null,
            "seuser": null,
            "timeout": 10,
            "tmp_dest": null,
            "unredirected_headers": [],
            "unsafe_writes": false,
            "url": "https://artifacts.alfresco.com/nexus/content/groups/public/org/alfresco/../imagemagick/imagemagick-distribution/7.1.0-16-ci-2/imagemagick-distribution-7.1.0-16-ci-2-ubuntu-22.04.deb",
            "url_password": null,
            "url_username": null,
            "use_gssapi": false,
            "use_netrc": true,
            "use_proxy": true,
            "validate_certs": true
        }
    },
    "item": "imagemagick-distribution-ubuntu-22.04",
    "msg": "Request failed: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)>",
    "url": "https://artifacts.alfresco.com/nexus/content/groups/public/org/alfresco/../imagemagick/imagemagick-distribution/7.1.0-16-ci-2/imagemagick-distribution-7.1.0-16-ci-2-ubuntu-22.04.deb"
}
  hosts: transformers
  gather_facts: true
  tasks:

PLAY RECAP *******************************************************************************************************************************************************
oci/mop-alf-ce-tools       : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

Since it appears to be SSL related, I checked the protocol/cipher available on the Alfresco Nexus:
root@mop-alf-ce-tools:~# openssl s_client -connect artifacts.alfresco.com:443
CONNECTED(00000003)
...
---
SSL handshake has read 4858 bytes and written 474 bytes
Verification: OK
---
New, TLSv1.0, Cipher is ECDHE-RSA-AES256-SHA
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES256-SHA
    ....

So it appears that from the target OS, I can connect to the Alfresco Nexus using TLS1.2 and "ECDHE-RSA-AES256-SHA" as cipher. Therefore I tried adding this cipher into the get_url module:
      get_url:
        url: "{{ pkg_url }}"
        checksum: "sha1:{{ lookup('url', pkg_url + '.sha1') }}"
        dest: "{{ download_location }}/{{ pkg_name }}"
        mode: "0644"
        ciphers:
          - ECDHE-RSA-AES256-SHA
      loop: "{{  imagemagick_packages }}"

After adding this list of 1 cipher, it's working correctly:
Tuesday 22 August 2023  11:17:47 +0000 (0:00:01.520)       0:00:01.547 ********
 [started TASK: Download ImageMagick distribution on oci/mop-alf-ce-tools]

TASK [Download ImageMagick distribution] *************************************************************************************************************************
changed: [oci/mop-alf-ce-tools] => (item=imagemagick-distribution-ubuntu-22.04)

PLAY RECAP *******************************************************************************************************************************************************
oci/mop-alf-ce-tools       : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

And the file is indeed there:
root@mop-alf-ce-tools:/tmp/ansible_artefacts# ls -ltr
total 253320
-rw-rw-r-- 1 ubuntu ubuntu 191514138 Aug 22 10:08 OpenJDK11U-jdk_x64_linux_17.0.3_7.tar.gz
-rw-r--r-- 1 ubuntu ubuntu  64418725 Aug 22 10:09 apache-activemq-5.16.6-bin.tar.gz
-r-------- 1 ubuntu ubuntu      5857 Aug 22 10:09 fc87cf56fbd9dabb8063a767b49646c68856106b.p12
-rw------- 1 ubuntu ubuntu      1949 Aug 22 10:09 9c817fd05fc0d4ec5699b37650a2a3cdfcefb6ef.pem
-rw-r--r-- 1 ubuntu ubuntu   3443106 Aug 22 13:17 imagemagick-distribution-7.1.0-16-ci-2-ubuntu-22.04.deb
root@mop-alf-ce-tools:/tmp/ansible_artefacts#

I don't know why exactly, but it seems that the default ciphers used by Ansible on Ubuntu 22.04 on OCI might not be compatible with the Alfresco Nexus and causing this to fail... Any idea on what to do to fix the issue permanently? We could of course add the list of ciphers from the Nexus into the Playbook, but that would be harcoding some list that might change in the future...

Note: I didn't check all ciphers supported by Alfresco Nexus, I simply look for 1 that worked and took it as is. It might or might not be the most secure one, but as mentioned, hardcoding that wouldn't really be a solution I assume, so I didn't look deeper into the list of ciphers.

Hello Morgan, this issue is currently being exposed also by the CI:
https://github.com/Alfresco/alfresco-ansible-deployment/actions/runs/5889119303
Unfortunately didn't had the opportunity to do a deeper investigation, but it can be reproduced quite easily just with a 2 line python script:
import urllib.request
init_page=urllib.request.urlopen("https://artifacts.alfresco.com/nexus/content/groups/public/org/imagemagick/imagemagick-distribution/7.1.0-16-ci-2/imagemagick-distribution-7.1.0-16-ci-2-ubuntu-22.04.deb")

This happens AFAIK only on ubuntu 22.04 and the timing seems fitting when the latest point release (22.04.3) has been published, see https://discourse.ubuntu.com/t/jammy-jellyfish-22-04-3-lts-point-release-status-tracking/37439
Interesting that I can't replicate the issue on ubuntu:20.04 nor ubuntu:23.04
I imagine the best place for the fix is to make sure that artifacts.alfresco.com match at least one of the available ciphers on ubuntu:22.04, I will try to raise the issue internally.

I tried with the oldest 22.04 image available but you are correct, there is the same issue as well:
operating_system: Canonical-Ubuntu-22.04-2022.05.17-0
image_id: ocid1.image.oc1.eu-zurich-1.aaaaaaaagtij76alknlqce5rkagwhxaxfpkolwz7undfxaqz5wd2am6nweqa

Same for AWS Ubuntu 22.04. So it appears to be really only for this OS, somehow.

Hi @morgan-patou ,
After digging a bit I think a certificate update was done and overrode a specific SSL config. I have restored that config and got some green build on our side. I'm pretty confident this should have fixed the problem.
Regards,

Hi @alxgomz,
Sorry for the delay but yes I can also confirm that I'm now able to deploy on Ubuntu 22.04 on all clouds. Thanks for the fix.
Regards,
Morgan