add autofocus on view on click -- require camera instance ,but cant find where to start

hi awesome library , but current autofocus take too long on samsung tested on s6 , tried adding the autofocus on code using a a viewOnclickListener , on the main baseAnncaActivity , but it i can grab Camera instance , and also i realise it uses  surfaceview and base camera for camera2,camera1 currently this code is for camera1 , where i assume Camera instance is available
code is as follows
private Camera mCamera;
mIsAutoFocusing =false; // can be used as a flag , autofocus is already implemented

  @Override // onviewClicklistener
    public void onClick(View view) {
            if (mCamera == null || mIsAutoFocusing) return;
            try {
                mIsAutoFocusing = true;
                mCamera.cancelAutoFocus();
                mCamera.autoFocus(new Camera.AutoFocusCallback() {
                    @Override
                    public void onAutoFocus(boolean success, Camera camera) {
                        mIsAutoFocusing = false;
                        if (!success)
                            Toast.makeText(getActivity(), "Unable to auto-focus!", Toast.LENGTH_SHORT).show();
                    }
                });
            } catch (Throwable t) {
                t.printStackTrace();
            }
        } else {
            super.onClick(view);
        }
    }

Hi, thank you for your feedback, I will try to add, some tools to handle it asap, hope next week will publish next version.

Hi, seems slow focus connected to specific device, it is possible to solve but can affect another functionality. How to fix it, you should create your custom camera activity extended from AnncaCameraActivity, and in version 0.3.3 you'll be able to customize your camera parameters with the help of next methods boolean handleParameters(ParametersHandler<T> parameters); or void handleCamera(CameraHandler<T> cameraHandler);, here is some examples:
1. For camera 1 api:
@Override
    protected void onCameraControllerReady() {
        super.onCameraControllerReady();

        getCameraController().getCameraManager().handleParameters(new ParametersHandler<Camera.Parameters>() {
            @Override
            public Camera.Parameters getParameters(Camera.Parameters cameraParams) {
                cameraParams.setColorEffect(Camera.Parameters.EFFECT_SEPIA);
                return cameraParams;
            }
        });
    }

2. For camera 2 api:
    @Override
    protected void onCameraControllerReady() {
        super.onCameraControllerReady();

        getCameraController().getCameraManager().handleParameters(new ParametersHandler<CaptureRequest.Builder>() {
            @Override
            public CaptureRequest.Builder getParameters(CaptureRequest.Builder cameraParams) {
                cameraParams.set(CaptureRequest.CONTROL_EFFECT_MODE, CaptureRequest.CONTROL_EFFECT_MODE_SEPIA);
                return cameraParams;
            }
        });
    }

In current examples used color effects, but you can set your focus, flash etc. parameters.

i added ontouch to listen for screen touch then added a extra method on the BaseCameraManger
for camera1manger implementation
       if (camera== null || mIsAutoFocusing) return; // introduce a local variable to camera manger class
            try {
                mIsAutoFocusing = true;
                camera.cancelAutoFocus();
                camera.autoFocus(new Camera.AutoFocusCallback() {
                    @Override
                    public void onAutoFocus(boolean success, Camera camera) {
                        mIsAutoFocusing = false;
                        if (!success)
                            Toast.makeText(getActivity(), "Unable to auto-focus!", Toast.LENGTH_SHORT).show();
                    }
                });
            } catch (Throwable t) {
                t.printStackTrace();
            }
        } else {
            super.onClick(view);
        }
}```

for the autofocusing write before take picture is called , to make all picture clear ,same manger class

PS-- I THINK YOU SHOULD ADD , IMAGES AT NIGHT AT TERRIBLE WITH THE CURRENT IMPLEMENTATION

@Override
public void takePhoto(File photoFile, CameraPhotoListener cameraPhotoListener) {
this.outputPath = photoFile;
this.photoListener = cameraPhotoListener;
backgroundHandler.post(new Runnable() {
@Override
public void run() {
setCameraPhotoQuality(camera);
camera.cancelAutoFocus();
camera.autoFocus(new Camera.AutoFocusCallback() {
@Override // didnt check for boolean as i already have manual autofocus , but can check is
//  autofocus is in call                         mIsAutoFocusing = false;
                public void onAutoFocus(boolean b, Camera camera) {
                    camera.takePicture(null, null, currentInstance);
                }
            });
        }
    });
}


Scoped environment config loading

This pull request allows developers to provide user-level and project-level customizations to Warden development environments. For example, if a developer wants to create a phpMyAdmin service for all environments, he could create a ~/.warden/environments/includes/db.base.yml or perhaps in <project_dir>/.warden/environments/includes/db.base.yml:
version: "3.5"
services:
  phpmyadmin:
    hostname: ${WARDEN_ENV_NAME}-phpmyadmin
    image: phpmyadmin/phpmyadmin:latest
    environment:
      - PMA_HOST=db
    depends_on:
      db:
        condition: service_started
    labels:
      - traefik.enable=true
      - traefik.http.routers.${WARDEN_ENV_NAME}-phpmyadmin.priority=3
      - traefik.http.routers.${WARDEN_ENV_NAME}-phpmyadmin.tls=true
      - traefik.http.routers.${WARDEN_ENV_NAME}-phpmyadmin.rule=Host(`phpmyadmin.${TRAEFIK_DOMAIN}`)
      - traefik.http.services.${WARDEN_ENV_NAME}-phpmyadmin.loadbalancer.server.port=80

It also allows developers to develop (and share) custom environment types, without having to edit Warden core files.

Would this resolve #285?

@davidalger, could you review this PR?

When to expect this feature to be merged to stable release?
It'll be highly eligible in my project.

@davidalger please review this PR

@Maintainers Whats the status of the PR? +1

@davidalger Have you had a chance to review this yet? :)

@davidalger what can I do to help to merge this PR? 🙏

Anyone still interested in this PR?
@davidalger UP

I believe that we can create community driven fork due to @davidalger lack of free time

@Den4ik, actually, it's already there https://github.com/swiftotter/den/discussions/5

Manually merged from Den in 5a24ca7d50790e35d7856ef5aaa9002040ff5e46


[FLOC-2770] Check release packages

Note, this is a resubmission of FLOC-2770, which was previously merged (#1933) and then reverted (#1973), due to regression of the (undocumented) ability to provide an empty string for the --flocker-version flag in order to test the latest version of a branch.  This was necessary for both client tests and acceptance tests because no --flocker-version flag always tried to use the latest installable version, which only worked for non-branch builds.
The code has been updated so that either --flocker-version='' or the absence of the --flocker-version flag cause the latest version of a branch to be tested.
The remainder of this comment is copied from PR #1933:
Currently, we do not check that the artifacts published during release are correct. This has lead to problems only observed when not using Buildbot repos, hence usually undetected by any of our automated tests. (e.g. https://clusterhq.atlassian.net/browse/FLOC-2904 and https://clusterhq.atlassian.net/browse/FLOC-3008).
This PR adds an additional verification step to the release process, to check that the client packages can be installed in a Docker container OK. Many of the issues that could affect our packaging (S3 permissions, errors in packaging format) should be obvious from these tests.  Although this test only detects problems after a release, at least we're ahead of our users in awareness of problems with the release, as opposed to waiting for them to complain.
The test script is created as a Python unittest, allowing it to perform all tests and summarise the results.  Error outputs are saved to a file for later perusal.
Tests for the client now not only print the version number, but also check it against the expected version number.  Since this is inappropriate for our documentation, the client tests have been removed as task directives, and replaced in the docs.
To test the new code, run admin/test-artifacts.
At this moment, the CentOS RPM tests fails, due to FLOC-3008.  This is useful to demonstrate the error output. Since FLOC-3008 is resolved, merging this branch with master eliminates this problem. [The branch has now had master and hence FLOC-3008 merged in].

:question: With test-redirects we can choose the version to test, with --doc-version. Is is possible to do that here?

It is possible to add a version flag, and probably should be done, because maintenance releases can have a lower version number than the latest_installable_version, so the wrong version will get tested in that case.

How can I test this without doing a release? I've tried this now with this branch and get:
FAIL: test_ubuntu_15_04_deb (__main__.TestPackages)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "admin/test-artifacts", line 46, in test_ubuntu_15_04_deb
    self.install('ubuntu-15.04', get_steps_pkg)
  File "admin/test-artifacts", line 24, in install
    'Exit status = {}. See file {!r}'.format(status, filename))
AssertionError: Exit status = -1. See file '__main__.TestPackages.test_ubuntu_15_04_deb.out'

----------------------------------------------------------------------
Ran 6 tests in 303.918s

FAILED (failures=6)

(newpython)~/Documents/ClusterHQ/flocker$ cat __main__.TestPackages.test_ubuntu_15_04_deb.out
(newpython)~/Documents/ClusterHQ/flocker$

Please address and resubmit

All above issues addressed. If FLOC-3233 gets merged first, then this should be changed to not set os_version in PackageSource.

Thanks @jongiddy , please address and resubmit.

Thanks @jongiddy . Please provide example output of this succeeding and then output of one of the previous releases which had a problem, and then merge if you and Buildbot are happy.

Output from a successful run:
$ ./admin/test-artifacts
test_centos_7_rpm (__main__.TestClientPackages) ... ok
test_pip_install_apt (__main__.TestClientPackages) ... ok
test_pip_install_dnf (__main__.TestClientPackages) ... ok
test_pip_install_yum (__main__.TestClientPackages) ... ok
test_ubuntu_14_04_deb (__main__.TestClientPackages) ... ok
test_ubuntu_15_04_deb (__main__.TestClientPackages) ... ok

----------------------------------------------------------------------
Ran 6 tests in 1395.453s

OK

(23 minutes with cached Docker images)

Difficult to find a failing test, since FLOC-2904 was fixed when the Packages file was re-generated with corrected code, and FLOC-3008 is a problem specific to the node package.


Show number input on experiment collection dashboard that allows the researcher to navigate to a specific participant's dashboard

Original title of this Issue: "Show number input on experiment collection dashboard that allows the researcher to navigate to a specific participant's dashboard"
Is your feature request related to a problem? Please describe.
Related to and blocked by #913, the experiment collection dashboard will show the started and finished count number for the experiments for a specific participant when the participant id query parameter has been added to the url.
On the Thoughbook, however, it's fairly difficult to open the address bar and add the ?participant_id=123 query parameter to the current url. It might therefore be convenient ~to add a number input to the dashboard~ have a solution that allows the researcher to directly ~input the participant id~ navigate to a participant's dashboard and don't have to worry about the right syntax and the address bar.
Describe the solution you'd like

On the top of the dashboard will be a number input and a submit button
The user enters the participant id into the number input and submits the number
The application will then navigate to the same experiment collection page, but now with the right query parameter added to the url

I repeat my recommendation for this particular problem: make bookmarks ahead of time for the participant ids. I cannot foresee this functionality being used in other experiments. @Lia-JX-Li can you try the bookmark approach first?

We discussed that we might make a losse html file with Javascript which has just an input field, and then opens localhost:3000/collection/name-of-collection?participant_id=someid in a new tab. If we want to version control this, it could be in its own repo (as I don't think we'll integrate this into MUSCLE proper). This will be something that can be achieved relatively quickly, but it's a nice to have.

We discussed that we might make a loose html file with Javascript which has just an input field, and then opens localhost:3000/collection/name-of-collection?participant_id=someid in a new tab. If we want to version control this, it could be in its own repo (as I don't think we'll integrate this into MUSCLE proper). This will be something that can be achieved relatively quickly, but it's a nice to have.

Good point. I've updated the PR to propose a "solution" to the problem instead of the specific technical solution that was proposed before.

I still thought of another solution: we might add a button "launch experiment with this participant" from the admin interface. But the design choices involved in that make this a more involved solution. But I think in the long run, functionality along these lines should be available through admin, not through the participant-facing frontend.

We may revisit this after #931 .

After the departure of the Congo team, I think we don't need this issue anymore, though I can imagine we build something like this in as part of #979 .


Gradle 6.4

Gradle 6.4 is available.
This is sent by @gradleupdate. See https://gradleupdate.appspot.com/Knotx/knotx-gradle-plugins/status for more.

Already updated to Gradle 6.5.


put constants in library

Addressing issue 13. Put constants in library.

Which issue?

Which issue?

Their "issue 13".


A pack for the Qualys vulnerability cloud service

Pack Qualys
Status
This is a pack for Qualys, a vulnerability scanner and compliance management system. This pack is completed.

new pack, complete

Description
My PR includes actions, formatters and required packages
Checklist (tick everything that applies)

[x] Metadata: pack.yaml, icon, structure (required for new packs)
[x] Version bump (required for changed packs)
[ ] Code linting (required, can be done after the PR checks)
[ ] Tests (not required but really recommended)

Great, thanks (looks like you were bored on your flight :))!

All done! @Kami


Make ligand schema round trip to SDF easily

While developing the Epik state expander I noticed that our internal Ligand model does not round trip to SDF easily. Consider this example case where I want to create a single SDF file with a list of ligands with their attributes such as compound_name added as SD tags.
from asapdiscovery.data.openeye import save_openeye_sdfs, load_openeye_sdfs, oemol_to_sdf_string
from asapdiscovery.data.schema_v2.ligand import Ligand

ligands = [Ligand.from_smiles("CC", compound_name="ethane", tags={"parent":"me"}, experimental_data={"compound_id":"1"}), Ligand.from_smiles("CO", compound_name="methanol", ids={"moonshot_compound_id": "randomID"})]

# flush the data
for ligand in ligands:
    # sync the state internal and sdf data
    ligand.data = ligand.flush_attrs_to_SD_data()

oe_mols = [ligand.to_oemol() for ligand in ligands]

# write to sdf
save_openeye_sdfs(oe_mols, "test.sdf")

# load back
loaded_mols = load_openeye_sdfs("test.sdf")
# we need each mol to be an sdf to read with attrs
new_ligands = []
for ligand in loaded_mols:
    with open("ligand.sdf", "w") as out:
        out.write(oemol_to_sdf_string(ligand))
    new_ligands.append(Ligand.from_sdf("ligand.sdf", read_SD_attrs=True))

for ligand in new_ligands:
    print(ligand)

What I suggest is that we make the model round trip to and from openeye by default so all tags are included and parsed everytime we convert to and from oemols. I would also only store the graph and coords data in the internal data field and have the sd tags added automatically everytime we convert to an oemol to keep the models in sync as its easy to forget to flush the data before writing to file.
cc @hmacdope

Closed via  #531.


[fastpages] Lina's Review Ticket 1/9-1/13

Performance Task Scoring #2
Model and Object-Oriented Programming
Frontend

The part I worked on for the project the week was adding details to the different sections in the plan. For example, I added dates and writing topics in the journal section, a table for organizing costs, etc.
We brainstormed these different sections and what they entail, but you can't see the changes because the links aren't accessible yet.

.9 Model
.95 View
.9 CPT


Wrong Button text if Background App Refresh is off & the device is connected via a cellular connection ("Aktualisierung nur alle 4 Stunden" instead of "Aktualisierung nur alle 24 Stunden")

Avoid duplicates

[X] Bug is not mentioned in the FAQ
[X] Bug is specific for iOS only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
[X] Bug is not already reported in another issue

Technical details

Device name: iPhone 12 Pro Max
iOS version: 15.6.1
App version: 2.25.0

Describe the bug
CWA shows the text "Aktualisierung aller 4 Stunden" even if a device is connected to the internet via a cellular connection. The text is wrong and this can lead to confusing situations like this:

The app shows that a risk check can only be carried out all 4h, even though the last check was more than 4 hours ago.
Steps to reproduce the issue

Turn off "Background App Refresh" in the iOS settings for CWA
Connect to the internet via a cellular connection and perform a risk check in the app
Notice that the button still says "Aktualisierung nur alle 4 Stunden" although the app will only offer to perform a new check in 24h

Expected behaviour
The text should say "Aktualisierung nur alle 24 Stunden" if the device is connected to the internet via a cellular connection.

Internal Tracking ID: EXPOSUREAPP-13928

@Ein-Tim Thank you for reporting the issue!

I can confirm that this has been fixed with version 3.1, and I'm therefore closing this issue as completed.


Fix: bump mytoyota to 2.1.0 and fix shopGenuinePartsUrl validation

Fix: https://github.com/DurgNomis-drol/ha_toyota/issues/236

Hi, @DurgNomis-drol, can you please take a look and approve if the changes are ok for you. 😊
Thank you

Any one know when this will be solved in a new updated version? Thanks!

Any one know when this will be solved in a new updated version? Thanks!

I just waiting for an approval from @DurgNomis-drol

See https://github.com/DurgNomis-drol/ha_toyota/issues/236#issuecomment-1946248244 for a fix if you are impatient like me.


Using it without User2,.. needing to sign in

Hi,
So would it be possible to make an (optional) system where I can just share the plextogether link, and that the receiving users don't have to get a plex account, share my library with, then log into plextogether.
Reason why I'm asking this is because I've been trying to find an easy way to watch plex together with friends in VR (such as AltspaceVR). If I could just put a url on the virtual screen (plextogether link). They wouldn't have to even realize that it's actually plex in the background.
I don't know if it's possible to do this with the api's. But just wanted to throw it out there :-)

Nup, because sadly PlexTogether doesn't actually send a video feed to the other users, the other uses need to have a copy of the video/have a shared library with the file
That's why you still need them to make an account so they can link a copy of the video to their account

I was afraid that'd be the case.
I wish there was a way to share a video somehow. Like how you can share an MP4 on Google Drive

I'd actually love this in some form as it would make group rewatch/discussion sessions so so easier since I don't think people would want to go through the effort of creating a Plex account and logging in and such. In fact, it's been more or less the main reason why I don't use PlexTogether a LOT more.
Could we perhaps have the option of a default token that people can use if they don't supply their own via logging in? Plex provides the option for a guest managed/home account w/ easy turn on/off that would fit absolutely perfectly for this. And we could always use other temp managed accounts or, especially if free, just create a whole new user and use that.
I quickly tested it by swapping out my access token with guest's in Chrome Dev Tools and it seemed to work fine, except for name being reported as Null (although I'd imagine for this general idea to work, a naming thing would need to be sorted out regardless).

I've had a look at how plex.tv/web handles a lot of the account/sharing settings and there isn't many cases where CORS is enabled. This unfortunately rules out PT from being able to edit these settings.
Even if we could get it working though, I'm sort of hesitant to do anything like this with PT. Last time I checked users within your Plex home/guest accounts have the same access levels to your servers as the master account. It's just not something I'm comfortable in doing. Sorry.
As for an 'easier' solution to sharing, I used to just use nginx-rtmp on a vps to setup a basic low latency rtmp stream and would feed a movie in to that. Maybe that would be a viable alternative if not everyone has a Plex account.


add Vimrunner::Server.pid

In vim-elixir I'd like to Process.wait(vim.server.pid). Right now without waiting the MacVim instance closes immediately. My other options are to instance_eval or loop {} neither of which is very good. @AndrewRadev how would you feel about exposing the pid?

As an aside, I think your build has failed due to an external dependency change that should be fixed by #46.
Just so I can understand your use case better: are you starting up a Vim process with spawn_vim and want it to run continuously until Vim is killed from another process (rather than dying at the end of spawn_vim)?

Just so I can understand your use case better: are you starting up a Vim process with spawn_vim and want it to run continuously until Vim is killed from another process (rather than dying at the end of spawn_vim)?

Really what I want is to just spawn vim and keep it running. It doesn't matter to me whether the bin/spawn_vim process blocks or exits as long as the spawned vim instance is running still. I suppose I could detach or shell out instead

I guess there's not much you can do without the pid, if you want to manage the process externally. An alternative might be to provide methods like wait and detach and such (we already have kill, which is the only thing that uses the pid). But it is easier to just expose the pid, so people can manipulate the process in whatever way they like.
I'm going to merge this PR, we already expose stuff like the executable, server name, and such, no harm in exposing this as well. That said, @jbodah, if you come up with some plan for how you'll use the instance, like, detach or wait or whatever, maybe we can even add some helper methods to manipulate it. Let us know.

Thanks @AndrewRadev and @mudge


GROOVY-4018: Make the Groovy truth value of NaN be false

Just thought I'd take a stab at implementing this, maybe there are performance concerns with this.  It may be more efficient to use FLOAD/DLOAD before the isNaN call instead of the DUP2 up front, but in the context of those methods I wasn't sure how to access the index of the variable on the stack.

+1, looks okay to me but I'm not super familiar with how performance might be affected at this level

Thanks for looking it over, I appreciate it.
I'll let it sit for a while and see if I can get some time to do a quick benchmark.  Not sure how often floats/doubles are used in tight loops and compared using the Groovy Truth, but probably wouldn't hurt to make sure it's not too costly of an extra check for NaN.

Updated the PR to consolidate the primitive-to-boolean conversion for both prim opts and static compilation and changed since tags to 3.0.0.

LGTM. How about we change the since version to 2.6.0 and merge into master and GROOVY_2_6_X?

Thanks Paul, I updated the since tags and merged into the branches suggested.


Missing API information for /session/:sessionId/touch/multi/perform

@hassanuz,
I would like to use /session/:sessionId/touch/multi/perform, but it doesn't have parameters listed in the JsonWireProtocol documentation so I don't know what json payload to send.  Where can I find this information?
PS - We do not use Appium, we want to interact directly with WinAppDriver.

Hi @DGCBio,
The /session/:sessionId/touch/multi/perform API endpoint you mentioned is deprecated from the spec and was never officially supported in WinAppDriver. Nevertheless, WinAppDriver now supports the same multi-touch scenario through the newer and better W3C WebDriver Actions API in the v1.1 RC release.
Please check out some relevant multi-touch samples using the new API endpoint below:
https://github.com/Microsoft/WinAppDriver/tree/v1.1-RC/Samples/C%23/Paint3DTest
https://github.com/Microsoft/WinAppDriver/tree/v1.1-RC/Samples/C%23/PaintTest

Hi @timotiusmargo,
Thanks for the reply.  As I mentioned, we do not want to use Appium, we want to send the commands directly to WinAppDriver.  These samples do not show how to do that.  Our automation code does not have dependencies on Selenium or Appium, so we do not want to use the WebDriver or the ActionSequence classes.
These things are not necessary to use the other features of WinAppDriver, has this changed for newer features?
PS - /session/:sessionId/touch/multi/perform is listed on your README.md under Supported APIs.  Perhaps that needs to be updated.

Hi @DGCBio,
You indeed don't need to use Appium server installed on your test device/machine to leverage the latest W3C WebDriver Actions API. WinAppDriver is fully capable to handle proper actions commands sent directly to it.
The samples simply use the Appium/Selenium language binding to translate the C# script into the HTTP JSON Wire Protocol commands with corresponding JSON payload. When you simply run the samples, they will send directly send the commands to a running WinAppDriver.exe instance without requiring Appium to be installed or running on your test machine. Which language binding are you writing your test in?
We are working to bring the official spec up-to-date so that each Selenium/Appium language binding will have the proper support for this new API endpoint. For the time being, we only have tested the C# one through AppiumDotNetDriver.
PS: Thanks for bringing up that the API list needs to be updated. We'll get on it.

Hi @timotiusmargo,
We are sending HTTP requests directly to WinAppDriver using the JSON Wire Protocol API (which is referenced in your README.md as the well).  However, there is nothing described in the JSON Wire Protocol Documentation for touch/multi/perform or any kind of action builder, which is why I asked what the WinAppDriver API is for these commands.
We have intentionally avoided use of Appium, including the dotnetdriver.

Hi @DGCBio,
I see. Now I understand that you are trying to construct the HTTP request and JSON payload manually without the help of any Selenium/Appium binding. Yes the actions API payload was newly added to the W3C WebDriver standard and wasn't part of the JSON Wire Protocol. You can find more information below although it may not be straightforward to deduce what a correct JSON payload looks like:
https://w3c.github.io/webdriver/#actions
The easiest way to see what the proper HTTP requests and JSON payloads look like is by running the test scenarios in the tests and samples below:
https://github.com/Microsoft/WinAppDriver/blob/v1.1-RC/Tests/WebDriverAPI/ActionsPen.cs

can we perform zoom action using androiddriver


Update installer dialog buttons do not work

My Setup

Operating System: MacOS High Sierra 10.13.6
App Version:2.15.0
Installation type: dmg

[ ] I have tested with the latest version
[X] I can simulate the issue easily

Description
The buttons on the update installer window do not work, preventing me from applying the latest update.
Current Behavior
I am prompted by the update checker with a window asking if I want to update.  The only response button that does anything is the "Skip This Version" button
Expected Behavior
All buttons should work

Duplicate of #1141. The workaround is to manually download and install the newest version.


subsys:fs:nvs Add missing test and sample documentation

NVS was missing a test for the API as well as a README.rst for the
sample. This PR corrects this.
Signed-off-by: Laczen JMS<EMAIL_ADDRESS>

Codecov Report

Merging #7600 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #7600      +/-   ##
==========================================
- Coverage   55.25%   55.25%   -0.01%
==========================================
  Files         468      468
  Lines       51673    51673
  Branches     9895     9895
==========================================
- Hits        28553    28552       -1
- Misses      19207    19208       +1
  Partials     3913     3913

Impacted Files
Coverage Δ

lib/posix/pthread.c
69.34% <0%> (-0.51%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a892d5...e670802. Read the comment docs.

One thing that would make it very simple to generalize the test would be if there was a general definition of the flash erase page size

There already is. Have a look at the dts attribute erase-block-size, which will generate a macro FLASH_ERASE_BLOCK_SIZE.

@Maureen Helm, thank you for the feedback on the FLASH_ERASE_BLOCK_SIZE. I
have tried it, but this doesn't work on the nrf51822.
After some search I found that this platform is probably one of the few
that does not have erase-block-size defined. It is missing in nrf51822.dtsi.
2018-05-18 18:02 GMT+02:00 Maureen Helm<EMAIL_ADDRESS>
One thing that would make it very simple to generalize the test would be
if there was a general definition of the flash erase page size
There already is. Have a look at the dts attribute erase-block-size,
which will generate a macro FLASH_ERASE_BLOCK_SIZE.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zephyrproject-rtos/zephyr/pull/7600#issuecomment-390253998,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjVvIq_aim7z3zPqDlTB8Mq9PNImLm1ks5tzvCOgaJpZM4UB6lT
.

@Laczen mind adding that in a commit as part of this PR?

@MaureenHelm,Thanks for the feedback on the test. I think I have an idea
where this bus fault is coming from. Could you change in nvs.c:
line 539 and line 558: entry->len into _nvs_len_in_flash(fs, entry->len)
2018-05-18 17:55 GMT+02:00 Maureen Helm<EMAIL_ADDRESS>
@MaureenHelm commented on this pull request.
In tests/subsys/fs/nvs/testcase.yaml
https://github.com/zephyrproject-rtos/zephyr/pull/7600#discussion_r189315326
:

@@ -0,0 +1,4 @@
+tests:

filesystem.nvs:
platform_whitelist: nrf51_pca10028

@Laczen https://github.com/Laczen I tried it out on frdm_k64f but got a
bus fault at lib/crc/crc16_sw.c:43. I haven't debugged it any further yet
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zephyrproject-rtos/zephyr/pull/7600#discussion_r189315326,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjVvLgPCgP-zjgClPmKHLpTuSO147m2ks5tzu72gaJpZM4UB6lT
.

I think I have an idea
where this bus fault is coming from. Could you change in nvs.c:
line 539 and line 558: entry->len into _nvs_len_in_flash(fs, entry->len)

That didn't help.
There is also a failed assertion before the bus fault that somehow my eyes glossed over earlier:
starting test - nvs_test_write

    Assertion failed at /home/maureen/zephyr/tests/subsys/fs/nvs/src/main.c:59: nvs_test_write: (rc == strlen(bu)
write call failure
FAIL - nvs_test_write

Hi @maureenhelm, Thanks for the feedback. I will see if I can order a
frdm64 board to find out what exactly goes wrong. Maybe it is some error in
the test code (my first test program).
2018-05-18 19:56 GMT+02:00 Maureen Helm<EMAIL_ADDRESS>
I think I have an idea
where this bus fault is coming from. Could you change in nvs.c:
line 539 and line 558: entry->len into _nvs_len_in_flash(fs, entry->len)
That didn't help.
There is also a failed assertion before the bus fault that somehow my eyes
glossed over earlier:
starting test - nvs_test_write
Assertion failed at /home/maureen/zephyr/tests/subsys/fs/nvs/src/main.c:59: nvs_test_write: (rc == strlen(bu)

write call failure
FAIL - nvs_test_write
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zephyrproject-rtos/zephyr/pull/7600#issuecomment-390284662,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjVvORUDatEs7Yia3g2S0E2KfnmiP0-ks5tzwthgaJpZM4UB6lT
.

@aurel32 or @MaureenHelm, could you run the corrected version. If it works please also give the platform it was tested on, than I can update the platform whitelist

@carlescufi, This PR can be closed, I will resubmit a PR after the changes of PR #7674 have been merged.

@Laczen I can close it, but are you sure you'd not rather update it instead of closing it and having to open a new one?

@carloscufi, please close it: I am a newbie GitHub user and afraid I will
do something wrong.
On Sun, May 20, 2018, 19:53 Carles Cufí<EMAIL_ADDRESS>wrote:

@Laczen https://github.com/Laczen I can close it, but are you sure
you'd not rather update it instead of closing it and having to open a new
one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zephyrproject-rtos/zephyr/pull/7600#issuecomment-390499405,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjVvJKk1Dvv4mDuEBpdRcqVeE7JvJmBks5t0a2lgaJpZM4UB6lT
.

Closing as per author's request


Change == to ===

Also changes != to !==.
Motivation: == and != are disallowed in strong mode.

@johnjbarton PTAL

LGTM


Nuke: open_file function can open autosave script

Changelog Description
Fix the bug of the workfile dialog being unable to open autosave nuke script
Additional info
n/a
Testing notes:

Launch Nuke via Openpype
Go to Openpype menu and click work file
Open any nuke script with autosave
It will pop up nuke prompt to ask if you want to open autosave script.
It will load autosave script for you if you click yes; while it wont if you click no.

Task linked: OP-4096 Nuke: open_file function wouldn't open .autosave file

May I sugest using Nuke preferences to get the proper autosave path?
autosave = nuke.toNode("preferences")["AutoSaveName"].evaluate()
will get the path for you from Nuke prefs:

Instead of just assuming that autosave is located where script is.


Adding Vertex AI (Google) API based fine-tuning

addiing a Vertex AI , API based fine-tuning

This doesn't add fine-tuning as a feature, it adds a file to the base folder.  Please integrate into the main codebase


Push of a new layer into a LayerGroup on top most level does not trigger a refresh of DOM

The layer is correctly shown when the UI panel containing the layer switcher is hidden and shown again, but the render is not triggered by itself on push to the collection.
Observed on latest version 0.6.5

We had this issue but couldn't reproduce it in a test: https://github.com/EOX-A/EOxElements/issues/211
Closing this issue as duplicate and reopening that one.


Added support for the terminology service client to use token authentication.

Our Terminology Service doesn't support basic authentication (username / password) and requires OAuth 2 tokens.
This modification allows for the client to be passed a single parameter which is treated as the Authorization header.
Example usage
    terminology_client = terminology_service_client.TerminologyServiceClient(
        {
            f"https://test-terminlogy.com/api/fhir/R4/ValueSet/$expand": (
                f"Bearer {access_token}"
            )
        }
    )

Would love to get this merged so I can remove my fork and use the official version. Anything I can do?

Hi Michael, apologies for the very delayed response.
I think the essence of this change is fine, but since this effectively changes the auth_per_terminology_server structure to contain an option of two different types, we should reflect that in the TerminologyServiceClient constructor by updating the pytype type signature and documentation on the class itself.
Are you able to add an update there as well? If so we can merge this PR in.

I'm by no means a python expert, do you happen to know why this change failed the tests?

I don't think these are related. Some of the tests pull FHIR structure definitions from HL7-hosted repos, so it looks like they are temporarily unavailable. We'll re-run the tests a bit later to see that resolves the issue, at which point this should merge fine.

Alright, this went through cleanly after the HL7 repos came back online, so I think we're good here.


add lower method to template func

I want to include build tag in generated file by yo.
Then I want to use of generatted file name in build tag.
So I add  lower method. refered to here.

ah, wait. If you just want to use strings.ToLower(), I think you can use it in template. what's the problem?

I think you can use it in template. what's the problem?

Oh, really ??

I tried to use strings.ToLower method in template but I can't use it. I might made mistake.
Could you show me a way or example ??

ah, ok. got it. You use stings.ToLower at generation time, not runtime. Then yes, you need to register a function.
Please rename lower to tolower.


Improve Arch Unit tests

A pretty good version was already added here: https://github.com/pascalgrimaud/jhipster-light/blob/main/src/test/java/tech/jhipster/light/HexagonalArchTest.java
It comes from this project: https://gitlab.com/nerp-ippon/nerp
So this ticket can be closed


As a developer, I would like to deploy postgresml

Deploy postgresML on a kubernetes cluster.

The user (developer)  that it is on a Kubernetes cluster.
rework description into this direction (example)

access using email account (Microsoft Entra) or application user/password
access through python code in psycopg3
access through psql command-line
access through a cloud hosted jupyter notebook
reliable data storage
AI model management built-in
custom set of postgresql extensions.

This is no longer a requirement


Can we just send pre-vote response directly?

Hi @nvanbenschoten , I Look at the raft code below and see that MsgPreVoteResp is appended to the msgsAfterAppend queue:
https://github.com/etcd-io/raft/blob/61b52be593caec7db60d7229d35c64392e8cbe2f/raft.go#L544-L592
My question is that, since pre-vote does not change any raft state, can we just send this response directly?

Hi @neog24, we probably can just send MsgPreVoteResp, though there is some subtlety. We append to msgsAfterAppend for two different reasons. The first is the obvious one — a message needs to change persistent raft state before being sent out. The second is less obvious — a message contains information that is contingent on other in-progress persistent raft state updates.
The handling of MsgPreVote is based on the raft log of the peer that is asked to vote. This tail of this raft log may not be durable, so this falls into the second category where the MsgPreVoteResp is based on in-progress persistent raft state updates. Since the entire pre-vote protocol is best-effort and it does not provide true mutual exclusion, it's probably ok to send a response based on information that is not persistent.
However, this hasn't been seen to be enough of an issue to warrant making the argument for the safety of doing so. In that way, it's similar to the "Rejected responses" case described in the comment you linked to.

@nvanbenschoten got it, thanks for your replay.


issue importing npm packages

when running the following code and trying to run skpm build I get the following error:
code:
import emmet from 'emmet';
import 'emmet/bundles/snippets';
import 'emmet/bundles/caniuse';

export default emmet;

error:
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
any help would be appreciated here. Thanks!

your code doesn't look like a sketch plugin. Where exactly to you put it?

@mathieudutour you can see the code here: the lines I’ve commented out don’t compile properly:
https://github.com/lifeiscontent/emmet-sketch/blob/master/src/script.js

hum I'm guessing emmet using some dynamic require and that doesn't work well with webpack. Is emmet compatible with webpack?

Yes, I’ve tried it outside of skpm and it seems to compile.
On Fri, Sep 22, 2017 at 8:56 PM Mathieu Dutour<EMAIL_ADDRESS>wrote:

hum I'm guessing emmet using some dynamic require and that doesn't work
well with webpack. Is emmet compatible with webpack?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/skpm/skpm/issues/70#issuecomment-331453869, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AALC4_aRqT30oI7AsyFNwii0GjRefU5Lks5sk7x8gaJpZM4PdpRk
.

I just tried your code and it compiles just fine: it's a warning, not an error


MDC Context not propogating

Expected Behavior
MDC context should propogate to Temporal Threads with spring boot sdk
Actual Behavior
MDC Context not getting propogated
Steps to Reproduce the Problem
1.Set up MDC Context Propogator in code

Check logs from Temporal and no MDC context present

Specifications

Version: temporal-spring-boot-starter-alpha, 1.20.1
Platform:

Modifying the SpringBoot sample to have a MDC context propagator I had no issue propgating a value from the client or workflow to an Activity.
https://github.com/Quinn-With-Two-Ns/samples-java/commit/c99e24af5f20d1965827c5e178f6541a9b5ddf12

If you can share more details about your setup, ideally in a self contained example, I can try to help narrow down where the error is.

Thanks @Quinn-With-Two-Ns . I do have workflow client bean create like this
 @Bean     public WorkflowClient workflowClient(DataConverter dataConverter, MdcContextPropagator mdcContextPropagator) {         WorkflowServiceStubs service = WorkflowServiceStubs.newLocalServiceStubs();         WorkflowClientOptions workflowClientOptions = WorkflowClientOptions.newBuilder().setDataConverter(dataConverter).setContextPropagators(Collections.singletonList(mdcContextPropagator)).build();         return WorkflowClient.newInstance(service, workflowClientOptions);     }
still I donot see MDC context getting propogated

@karunagoyal You need to also be setting the the context propagator on the client the worker uses. You can see how in TemporalOptionsConfig.java in the code I posted.


[   INFO   ] MusicExtractorSVM: no classifier models were configured by default

what does this info mean? could I disable this info? it's quite annoying.
P.S. your code is really amazing, clean and enjoyable.

Hi there!
I believe that's a message from the essentia package.
I think you can disable info messages with:
import warnings
warnings.filterwarnings("ignore")

Hi there!
I believe that's a message from the essentia package.
I think you can disable info messages with:
import warnings
warnings.simplefilter("ignore")

warnings.simlefilter("ignore") won't work.
However, I find the message from essentia locates in HighLowPass, which is not used in linear_evaluation.py, but is imported by default. I change the line
from torchaudio_augmentations import Compose, RandomResizedCrop

to
from torchaudio_augmentations.compose import Compose
from torchaudio_augmentations.augmentations.random_resized_crop import RandomResizedCrop

then the message disappeared.

Hi there!
I believe that's a message from the essentia package.
I think you can disable info messages with:
import warnings
warnings.simplefilter("ignore")

This won't work in linear_evaluation.py

Hi there!
I believe that's a message from the essentia package.
I think you can disable info messages with:
import warnings
warnings.simplefilter("ignore")

Adding these lines won't work in linear_evaluation.py
However, I find the message roots in the HighLowPass in torchaudio_augmentations.init.py
Not a good solution but I comment the line
from .augmentations.high_low_pass import HighLowPass

since the function is not used.
Thanks a lot!

Glad to hear you found a solution!


After using Nuitka to package pyside6 into exe, the drag and drop file function has failed

Example:
from PySide6.QtWidgets import QApplication, QMainWindow, QListWidget
from PySide6.QtCore import Qt

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.setWindowTitle("Drag and Drop Example")
        self.setAcceptDrops(True)

        self.list_widget = QListWidget(self)
        self.setCentralWidget(self.list_widget)
        print(self.acceptDrops())

    def dragEnterEvent(self, event):
        if event.mimeData().hasUrls():
            event.acceptProposedAction()

    def dropEvent(self, event):
        for url in event.mimeData().urls():
            file_path = url.toLocalFile()
            print("Dropped file:", file_path)
            self.list_widget.addItem(file_path)

if __name__ == "__main__":
    app = QApplication([])
    window = MainWindow()
    window.setGeometry(100, 100, 400, 300)
    window.show()
    app.exec()

It is possible to drag and drop files normally without packaging. After packaging, I found that I couldn't drag it anymore

are you using the latest version of nuitka? it works fine for me

nuitka==1.8

upgrade to the latest Nutika and try again, python -m pip install --upgrade nuitka

upgrade to the latest Nutika and try again, python -m pip install --upgrade nuitka

Hello, I have updated to the latest version 2.2.1. If the parameter - windows uac admin is added for packaging, it will result in the inability to drag and upload files.
Draggable commands:
nuitka --standalone --onefile --show-progress --plugin-enable=pyside6 --disable-ccache --output-filename="demo" app.py

Command that cannot drag and drop file uploads：
nuitka --standalone --onefile --show-progress --plugin-enable=pyside6 --windows-uac-admin --disable-ccache --output-filename="demo3" app.py

--Isn't the Windows uac admin parameter giving the application administrator privileges? Why does it not support dragging and dropping file uploads?

upgrade to the latest Nutika and try again, python -m pip install --upgrade nuitka

Hello, I have updated to the latest version 2.2.1. If the parameter - windows uac admin is added for packaging, it will result in the inability to drag and upload files.
Draggable commands:
nuitka --standalone --onefile --show-progress --plugin-enable=pyside6 --disable-ccache --output-filename="demo" app.py

Command that cannot drag and drop file uploads：
nuitka --standalone --onefile --show-progress --plugin-enable=pyside6 --windows-uac-admin --disable-ccache --output-filename="demo3" app.py

--Isn't the Windows uac admin parameter giving the application administrator privileges? Why does it not support dragging and dropping file uploads?

as you can see, it works with windows-uac-admin as well, check that your AV isn't interfering with your program

If I add the -- windows uac admin parameter to my package, I won't be able to drag and drop files. If I don't add it, I can drag and drop files

my examples are both with and without the windows uac admin parameter, they both work for me as shown.

ok


Make Headings consistent

in the v0.1-alpha release the chapters 'Setup', 'Basic Flow' and 'Redis Caching' all have different heading styles. They should be consistent across the entire workshop.

Changed layout - not an issue


Moved TextStyler extension for Pharo7+ compatibility

Fixes #93
Breaks DSL styling in Pharo6 (in favor of Pharo7+)

Coverage remained the same at 28.82% when pulling 9dd67547db8364c699954bf1e1e4edbe940d371c on JanBliznicenko:master into 5defe8f42a5ae3653285eea54e2be94745827d1c on UMMISCO:master.

Thank you Jan for your help on this.
You are welcome to participate more in the Kendrick development.
I would like to add the work that you have done previously: #77


[release-0.22] Put all our direct dependencies on our mirror

What this PR does / why we need it:
Put all our direct dependencies on our mirror
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:
NONE

/close
wrong branch


Improve etherscan-api-key cli arguments

Component
Forge
Describe the feature you would like
we also support verifying via blockscout so we should

[ ] add an alias to etherscan-api-key argument, like verify-api-key or smth
[ ] add env support for {FOUNDRY_}{etherscan/verify}-api-key env var

Additional context
No response

Can I pick this up?

Yep, feel free!

Assigned to @mattsse since it is being fixed in #2616


oap负载不均衡

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ √] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?
使用zookeeper后可以使用负载均衡软件吗？使用负载均衡软件后会和zookeeper起冲突吗？

Bug

Which version of SkyWalking, OS and JRE?

Which company or project?

What happen?
If possible, provide a way for reproducing the error. e.g. demo application, component version.

Requirement or improvement

Please describe about your requirements or improvement suggestions.

English only, you could set up gRPC-supported load balance/proxy by your own. We don't need to rewrite this, many great open source projects are there, including Nginx, Envoy.

After using nginx, still need to use zookeeper ？

We never required zookeeper, it is just a backend coordinator option. If you want to set up OAP cluster,  choose at least one coordinator. As it is named as coordinator, it is for OAP cluster, it has nothing related to the agent.


[operator-nexus] Correct Cluster Extension Validation Command

The cluster type argument in the az k8s-extension show command in the validate cluster extension section was missing an "n", meaning the command was invalid. Correcting this by adding the missing n.

@mukesh-dua

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#please-close

The PR will take care of the updates  - https://github.com/MicrosoftDocs/azure-docs-pr/pull/263311


Baseline Evaluation

Evaluate the baseline classifier with respect to:

[x] Area Under Curve (AUC)
[x] Mean Average Precision (MAP)

This has now been done. However, the  scores are much higher when not using the log amplitude spectrogram.


Added proper Admin Dashboard Boilerplate to use across all pages (#379)

Fixes  #379
This PR addresses issue #379, which highlights the need for a consistent boilerplate template across all pages of the admin dashboard. By refactoring the code to use a shared template, we reduce redundancy and improve the overall maintainability and consistency of the codebase.
Changes Made

Created a proper boilerplate template that includes in every page to avoid code duplication.
Refactored each admin dashboard page to extend or import the new boilerplate template, removing duplicate code for the common layout and elements.

Screenshots (if applicable)
N/A for this PR, as this is a code refactor with no significant visual changes.
Checklist

[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[x] I am working on this issue under GSSOC

@dipexplorer


Lists of objects aren't being unwrapped recursively?

I was playing with some advanced IPython widget usage that requires passing in lists whose first element is a Python object. Unfortunately, while bare Python objects are automatically unwrapped on the way back to Python, that's not true of Python objects in a list. I did discover that you can force them to be unwrapped, but it seems better if the embedPy functionality would do this recursively on lists and other composite objects.
p)class MyObject:
    pass
p)def bar():
    return MyObject()
p)def foo(x):
    if isinstance(x, list):
        print('[' + (', '.join(repr(y) for y in x)) + ']')
    else:
        print(repr(x))
foo:.p.get[`foo]
bar:.p.get[`bar]
foo(bar[])
foo((bar[];1))
foo((bar[]`.;1))
foo("a";1)

Output:
<__main__.MyObject object at 0x1196b2f98>
[<built-in method q) of PyCapsule object at 0x1155632d0>, 1]
[<__main__.MyObject object at 0x1196b2f98>, 1]
['a', 1]

What seems sensible is that the to have to use that back-tick notation, so that the second line behaves the way the third one does.

Hey Michael
This was a design/performance decision, as recursive type checking proved too expensive.
When passing arguments using embedPy

A native q object will be converted as appropriate (int -> int, float-array -> float-array)
An embedPy object will be unwrapped (exposing the foreign Python object)

Unwrapping of embedPy objects inside q 'containers' (lists, dictionaries, tables etc) will not take place by default.
In most cases, no conversion is even necessary (as the argument consists solely of q data) and the performance hit is too great.

Added .p.xunwrap to do this recursive unwrap in 1.2.0 release


Prepare for v3.0.0 release of ceph-csi

This PR updates the required  scripts and templates for the v3.0.0 release
closes: #865

/test ci/centos/containerized-tests

Holding it till we https://github.com/ceph/ceph-csi/pull/1280 get in release-branch

Removed DNM as #1281 is merged in release  branch

Merging this one as the CI is passed


Integrate with the rule engine

Not Completed because of time constraints

Description: exchange Player initialization and Game States to allow user to progress through the game
Backlogged: not completed due to issues with integrations. The functions exist and have a good chunk of it completed in the code to integrate but we weren't able to be completely finish it in time


Attach system target architecture to saved esbuild executable

This solves unnoticed reusing the executable after switching OS target
in case of coping over the _build directory for e.g. caching purposes.
Reference https://github.com/phoenixframework/esbuild/issues/32

Proposed CHANGELOG:

Save executable with attached system target architecture as _build/esbuild-TARGET
By upgrading to this version the executable will be redownloaded.

As this is somehow a breaking behavior, I would release it as a v0.4 version.
Additionally this would be ideal to pump esbuild to v0.14.0 (PR will follow).

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:


webView state save problem

I am trying to implement web browser app like google chrome, but when I minimize app using the home button and try to reopen the app, but the app shows white screen, no tab screen restore the webview state.

It is hard to tell what's wrong, if you don't post any code samples of how you have implemented your app.

I created issue https://github.com/michael-rapp/ChromeLikeTabSwitcher/issues/19 to start a discussion about how to properly use this library together with WebViews.


Cuttlefish-format fix on Update 50-overrideConfig.conf.erb

Cuttlefish-format should be key=value, the old code was creating config like this: {"key"=>"value"}

Works as intended. https://github.com/pivotal-cf/cf-rabbitmq-release/issues/442#issuecomment-790551110

@mkuratczyk So... there is no way to add properties line by line using separate ops files?
Use case:

ops 1:

- type: replace
  path: /instance_groups/name=rmq/jobs/name=rabbitmq-server/properties/rabbitmq-server/plugins/-
  value: rabbitmq_prometheus

- type: replace
  path: /instance_groups/name=rmq/jobs/name=rabbitmq-server/properties/rabbitmq-server/override_config?/prometheus.return_per_object_metrics?
  value: "true"

ops 2:

- type: replace
  path: /instance_groups/name=rmq/jobs/name=rabbitmq-server/properties/rabbitmq-server/override_config?/other-config-property?
  value: "config-value"


I got Call to undefined method createFunctionOrReplace ?

I added laravel-postgresql-enhanced 0.19 into my laravel 9 app
I create new migration with definition from the sample with similar defintion :
<?php

use Illuminate\Database\Migrations\Migration;
//use Illuminate\Database\Schema\Blueprint;
//use Illuminate\Support\Facades\Schema;

use Illuminate\Database\Query\Builder;
use Tpetry\PostgresqlEnhanced\Schema\Blueprint;
use Tpetry\PostgresqlEnhanced\Schema\Concerns\ZeroDowntimeMigration;
use Tpetry\PostgresqlEnhanced\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //         Schema::createFunction('getTsCategories', ['sort_field' => 'string'], 'numeric', 'plpgsql', '
        Schema::createFunctionOrReplace('getTsCategories', ['sort_field' => 'string'], 'numeric', 'plpgsql', '
  BEGIN
    RETURN subtotal * 0.06;
  END;

');
    }

    public function down()
    {
        Schema::dropIfExists('ts_categories');
    }
};

But I got error :
  Call to undefined method Tpetry\PostgresqlEnhanced\Schema\Builder::createFunctionOrReplace()

  at vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:338
    334▕         if (! $instance) {
    335▕             throw new RuntimeException('A facade root has not been set.');
    336▕         }
    337▕
  ➜ 338▕         return $instance->$method(...$args);
    339▕     }
    340▕ }
    341▕

  1   database/migrations/2022_08_24_130039_create_ts_categories_crud_funcs.php:26
      Illuminate\Support\Facades\Facade::__callStatic()

      +37 vendor frames
  39  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()

It seems that I added all facades from the docs.
If to uncomment line with createFunction, i got error
Call to undefined method Tpetry\PostgresqlEnhanced\Schema\Builder::createFunction()
What is wrong ?
Thanks

You need to upgrade to version 0.20.0


update github project name in setup url arg

s/django_powerbank/django-powerbank/
Tiny change but it fixes the link from PyPI to the project repository so I thought it still worth notifying you via PR...
Thanks for sharing your code! :)

Thx,


Add map for resolving of type by enum for oneof

What was added: A new static const map in class that is built on 'oneof'
Why was added: This map allows to resolve this object to the specific type it holds: using whichSubtype() as the map index, you get the specific class type.
Example: Very useful for implementation of an Api Bus which can dispatch messages to callbacks according to the message type:

class ApiBus {
  Map _callbackByMessageType = new Map<Type, List<Function>>();

  void publish(ApiObj msg) {
    var type = ApiObj.TypeByApiObj_Subtype[msg.whichSubtype()];

    var callbacks = _callbackByMessageType[type];
    if (null == callbacks) {
      return;
    }
    for (int c = 0; c < callbacks.length; c++) {
      callbacks[c](msg);
    }
  }

  void subscribe<T>(void callback(ApiObj message)) {
    if (null == _callbackByMessageType[T]) {
      _callbackByMessageType[T] = List<Function>();
    }
    _callbackByMessageType[T].add(callback);
  }
}

@googlebot I signed it!

Note to myself: need to create a new pull request aligned with the latest version of the plugin

Created new PR with relates to latest version, closing this one


Test mx_bluesky 1.0.0 as hyperion

Running dls_dev_env.sh from deployment results in This script should be run from the 'mx-bluesky' directory
Issue on deploy of:

ERROR: while parsing the following warning configuration:

  ignore::sqlalchemy.exc.MovedIn20Warning

This error occurred:

Traceback (most recent call last):
  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/.venv/lib/python3.11/site-packages/_pytest/config/__init__.py", line 1917, in parse_warning_filter
    category: type[Warning] = _resolve_warning_category(category_)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/.venv/lib/python3.11/site-packages/_pytest/config/__init__.py", line 1955, in _resolve_warning_category
    m = __import__(module, None, None, [klass])
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'sqlalchemy'

Fixed by ignoring this error in pyproject.toml - already on main

Failed to build confluent-kafka as before. Solution is to install this package using a RHEL8 machine but everything else using i03-control - known issue that will ultimately be fixed by containerizing
Panda issue:

ERROR:root:device `coros` raised unexpected exception RuntimeError
Traceback (most recent call last):
  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/.venv/lib/python3.11/site-packages/ophyd_async/fastcs/panda/_hdf_panda.py", line 41, in connect
    await fill_pvi_entries(self, self._prefix + "PVI", timeout=timeout, mock=mock)
  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/.venv/lib/python3.11/site-packages/ophyd_async/epics/pvi/_pvi.py", line 301, in fill_pvi_entries
    await _get_pvi_entries(root_entry, timeout=timeout)
  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/.venv/lib/python3.11/site-packages/ophyd_async/epics/pvi/_pvi.py", line 257, in _get_pvi_entries
    await _get_pvi_entries(sub_entry)
  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/.venv/lib/python3.11/site-packages/ophyd_async/epics/pvi/_pvi.py", line 260, in _get_pvi_entries
    _verify_common_blocks(entry, entry.common_device_type)
  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/.venv/lib/python3.11/site-packages/ophyd_async/epics/pvi/_pvi.py", line 102, in _verify_common_blocks
    raise RuntimeError(
RuntimeError: sub device `create_directory:<class 'typing._GenericAlias'>` was not provided by pvi

Fixed by updating the panda ioc - @olliesilvester is discussing with @evalott100 and @coretl on better ways we might find out about this dependency upfront.

Issue around sample_shutter:

  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/src/mx_bluesky/hyperion/device_setup_plans/utils.py", line 39, in wrapped_plan
    yield from plan_to_run
  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/src/mx_bluesky/hyperion/experiment_plans/robot_load_then_centre_plan.py", line 269, in robot_load_then_centre_plan
    yield from pin_centre_then_xray_centre_plan(
  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/src/mx_bluesky/hyperion/experiment_plans/pin_centre_then_xray_centre_plan.py", line 84, in pin_centre_then_xray_centre_plan
    yield from ispyb_activation_wrapper(_pin_centre_then_xray_centre_plan(), parameters)
  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/.venv/lib/python3.11/site-packages/bluesky/preprocessors.py", line 358, in run_wrapper
    yield from contingency_wrapper(plan, except_plan=except_plan, else_plan=close_run)
  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/.venv/lib/python3.11/site-packages/bluesky/preprocessors.py", line 604, in contingency_wrapper
    ret = yield from plan
          ^^^^^^^^^^^^^^^
  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/src/mx_bluesky/hyperion/experiment_plans/pin_centre_then_xray_centre_plan.py", line 78, in _pin_centre_then_xray_centre_plan
    yield from detect_grid_and_do_gridscan(
  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/src/mx_bluesky/hyperion/experiment_plans/grid_detect_then_xray_centre_plan.py", line 170, in detect_grid_and_do_gridscan
    sample_shutter=composite.sample_shutter,
                   ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'RobotLoadThenCentreComposite' object has no attribute 'sample_shutter'

We're now using properties from https://daq-config.diamond.ac.uk/ - we need to have a think about this and discuss with the scientists
Got error of:

  File "/dls_sw/i03/software/bluesky/mx_bluesky_1.0.0/hyperion/src/mx_bluesky/hyperion/external_interaction/callbacks/rotation/nexus_callback.py", line 61, in activity_gated_event
    assert self.writer, "Nexus writer not initialised"
AssertionError: Nexus writer not initialised

This was due to missing brackets on a call to model_dump_json, we should have caught this in a test

Aperture is always going into ispyb as ROBOT_LOAD - https://ispyb.diamond.ac.uk/dc/visit/cm37235-4/id/15008409
Missed early return in _safe_move_within_datacollection_range so selected_aperture not getting set. Needs tests. Also maybe we should actually read the state rather than hold it?
hyperion_params were coming through to zocalo callback as a string in the start method and failing, had to json load them
Issue with rotation at chi 30 https://graylog.diamond.ac.uk/messages/graylog-daq-mx-hyperion_21/252aebe1-6f88-11ef-9ed7-eaefa503891f
Stopped for the day

Fixed by updating the panda ioc - @olliesilvester is discussing with @evalott100 and @coretl on better ways we might find out about this dependency upfront.

Two ideas:

We are more explicit about the PandA IOC version requirements in the changelog
We annotated PandA with a custom error string containing the IOC version requirement so that it comes out in the error message.

Are either/both of those useful?

I think both would be good. For 2 are you suggesting something like the ophyd-async device reading the version from the IOC and throwing an error on connection if it's unexpected?

I think both would be good. For 2 are you suggesting something like the ophyd-async device reading the version from the IOC and throwing an error on connection if it's unexpected?

No, something much dumber, just an error string we could put in the device that it will echo on error, so that instead of reporting "create_directory" was not provided by pvi, it would report "create_directory" was not provided by pvi: is PandABlocks-ioc at least version x.x?

My main concern is that we get issues where version X is required because of some change that would not cause an exception at connect but will cause subtle behaviour issues when it's actually used. If you think the chance of this is low then happy to just add the version string to any errors coming out of connect

Chance should be low of that, we haven't had any issues like that so far


undefined: url.PathEscape

$ go get -u github.com/zemirco/couchdb
github.com/zemirco/couchdb
../../../github.com/zemirco/couchdb/client.go:92: undefined: url.PathEscape
../../../github.com/zemirco/couchdb/client.go:104: undefined: url.PathEscape
../../../github.com/zemirco/couchdb/client.go:116: undefined: url.PathEscape
../../../github.com/zemirco/couchdb/database.go:75: undefined: url.PathEscape
../../../github.com/zemirco/couchdb/database.go:87: undefined: url.PathEscape
../../../github.com/zemirco/couchdb/database.go:97: undefined: url.PathEscape
../../../github.com/zemirco/couchdb/database.go:108: undefined: url.PathEscape
../../../github.com/zemirco/couchdb/database.go:128: undefined: url.PathEscape
../../../github.com/zemirco/couchdb/database.go:139: undefined: url.PathEscape
../../../github.com/zemirco/couchdb/database.go:153: undefined: url.PathEscape
../../../github.com/zemirco/couchdb/database.go:153: too many errors

Which go version are you using? url.PathEscape is available from 1.8 https://golang.org/doc/go1.8#net_url

Hello @zemirco
go version go1.7.5 linux/amd64

If you upgrade to 1.8 the issue should be gone.

@zemirco ty for the fast feedback!


chore(deps): update opentelemetry collector and adapt tests

Summary

All changes from #154
Adapted tests:

transformprocessor's extract_count_metric() now uses the default unit ('1')  instead of using the unit from the original histogram. This decision was made as the original histogram unit does never apply to a histogram's count field. For additional info see, see https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/31575
adapt smoke tests to treat componentMetadata.Name as component.Type, see changes from https://github.com/open-telemetry/opentelemetry-collector/pull/9472

Blockers

Tests are currently failing due to https://github.com/open-telemetry/opentelemetry-collector/issues/9855

User Impact: dynatrace-otel-collector components would result in wrong output.

We'd be affected by https://github.com/open-telemetry/opentelemetry-collector/issues/9863

User Impact: dynatrace-otel-collector validate --config=my-config.yaml would validate correctly, but there would not be any suggestions which components are available if validation fails.

Additional Information
Replaces #154

Converting back to draft (see blockers).

Converting back to draft (see blockers in PR body).

I see you used the replace directive to fix the upstream components. Is this still draft or do we want to review/merge it?

Converting back to draft (see blockers in PR body).

I see you used the replace directive to fix the upstream components. Is this still draft or do we want to review/merge it?

This is still a draft. We discussed offline that we will

not go ahead with updating to 0.97.0 for now due to the known issues from the blockers section
not apply the unreleased fixes from upstream at this time

Closing this PR, I'll re-open a new one for the current release.


Licensing is unclear

In the doc it is said you need a "paid, premium Dataverse license". Such a license does not exist. What licenses qualify? All premium power platform and dynamics licenses?
Please clarify!

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

ID: deaa6c12-bafc-707c-d04a-5219053ce95a
Version Independent ID: f0871341-2476-0c76-9202-f4fc03831224
Content: Microsoft Power Platform self-service analytics export Power Platform inventory and usage data (preview) - Power Platform
Content Source: power-platform/admin/self-service-analytics.md
Service: power-platform
Sub-service: admin
GitHub Login: @TJVass
Microsoft Alias: tjvass

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


Gate decompositions

Not all physical realizations of quantum computers allow all gate sets. Furthermore, many times n-qubit gates (where $n>2$) have to be decomposed into equivalent circuits made up by 2-qubit gates.

I have found this repository https://github.com/Q-Compiler/UniversalQCompiler, which follows this paper. I will try to reproduce some code.


added add_float example

Codecov Report

Merging #1 (6f66880) into master (5d705bf) will decrease coverage by 6.09%.
The diff coverage is 16.66%.

@@             Coverage Diff             @@
##            master       #1      +/-   ##
===========================================
- Coverage   100.00%   93.90%   -6.10%
===========================================
  Files            6        6
  Lines           76       82       +6
===========================================
+ Hits            76       77       +1
- Misses           0        5       +5

Flag
Coverage Δ

unittests
93.90% <16.66%> (-6.10%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pyraliddemo/example/math.py
75.00% <16.66%> (-25.00%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d705bf...6f66880. Read the comment docs.


Mac 上安装失败

报错信息如下所示，希望得到解答：
➜  node_modules npm i app-inspector -g
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>use cross-spawn or cross-spawn-async instead.
npm WARN deprecated<EMAIL_ADDRESS>ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
/Users/zxy/.nvm/versions/node/v6.2.2/bin/inspector -> /Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/bin/app-inspector
/Users/zxy/.nvm/versions/node/v6.2.2/bin/app-inspector -> /Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/bin/app-inspector

<EMAIL_ADDRESS>install /Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/node_modules/fsevents
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download: https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v48-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(node-v48 ABI) (falling back to source compile with node-gyp)
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
2016-08-07 21:24:34.896 xcodebuild[2070:8873364] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/FuzzyAutocomplete.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2016-08-07 21:24:34.902 xcodebuild[2070:8873364] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/BBUFullIssueNavigator.xcplugin' not present in DVTPlugInCompatibilityUUIDs
objc[2070]: Class MCLog is implemented in both /Users/zxy/Library/Application Support/Developer/Shared/Xcode/Plug-ins/MCLog.xcplugin/Contents/MacOS/MCLog and /Users/zxy/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CodePilot3.xcplugin/Contents/MacOS/CodePilot3. One of the two will be used. Which one is undefined.
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
SOLINK_MODULE(target) Release/fse.node
COPY /Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/node_modules/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node
TOUCH Release/obj.target/action_after_build.stamp

<EMAIL_ADDRESS>install /Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/node_modules/webdriveragent
unzip -o ./WebDriverAgent.zip -d ./ 1>/dev/null

<EMAIL_ADDRESS>install /Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/node_modules/uiautomator-client
node ./scripts/build.js

/Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/node_modules/uiautomator-client/scripts/build.js:164
throw e;
^
Error: $JAVA_HOME is not set
at checkJavaHome.then.catch.then.then.catch.then.std (/Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/node_modules/java-home/lib/java-home.js:89:25)
at process._tickCallback (internal/process/next_tick.js:103:7)
/Users/zxy/.nvm/versions/node/v6.2.2/lib
└── (empty)
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/zxy/.nvm/versions/node/v6.2.2/bin/node" "/Users/zxy/.nvm/versions/node/v6.2.2/bin/npm" "i" "app-inspector" "-g"
npm ERR! node v6.2.2
npm ERR! npm  v3.10.6
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>install: node ./scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node ./scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the uiautomator-client package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs uiautomator-client
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls uiautomator-client
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/zxy/node_modules/npm-debug.log
npm ERR! code 1

@bestswifter 请配置环境 http://macacajs.github.io/macaca/environment-setup.html


Understanding fiat_value in Charge::find

Hello,
I am working on a Magento 1.9 module and I am puzzled by the output of Charge::find regarding the fiat_value member.
I created a charge with the following parameters:
object(stdClass)[328]
  public 'description' => string '1xTest Product' (length=14)
  public 'amount' => float 104.99
  public 'currency' => string 'USD' (length=3)
  public 'order_id' => string '100000064' (length=9)
  public 'email' => string<EMAIL_ADDRESS>(length=7)
  public 'name' => string 'R V' (length=3)
  public 'callback_url' => string 'http://localhost/index.php/opennode_bitcoin/callback/index/' (length=59)
  public 'auto_settle' => string '1'

and when invoking Charge::find I get the following (removed some information to be brief):
private 'charge' =>
    array (size=13)
      'id' => string 'aa642947-5e5d-41c3-af16-3b40586ec88c' (length=36)
      'description' => string '1xTest Product' (length=14)
      'amount' => int 2703433
      'status' => string 'unpaid' (length=6)
      'fiat_value' => float 92.328199187348
      'currency' => string 'USD' (length=3)
      'created_at' => int<PHONE_NUMBER>
      'order_id' => string '100000064' (length=9)
      'success_url' => string 'https://opennode.co' (length=19)
      'auto_settle' => boolean false

I created the charge with 104.99 USD and got back 92.32 USD. IS it a bug in the value returned by the API or is it some undocumented nuance?
Thank you,
Ricardo

Hello rvelhote,
The fiat_value you received is the value of the checkout in your account's FIAT, which is probably EUR.
Thanks for letting us know, I'll add the "source_fiat_value" to the response, which is the actual value you passed in USD.


"Invalid RSAES-OAEP padding" Error

Here's my SAML Configuration:
var samlStrategy = new saml.Strategy({
    callbackUrl: 'https://myServer.rit.edu/login/callback',
    entryPoint: 'https://shibboleth.main.ad.rit.edu/idp/profile/SAML2/Redirect/SSO',
    issuer: 'https://myServer.rit.edu/shibboleth',
    identifierFormat: null,
    decryptionPvk: fs.readFileSync('/var/www/saml/key.pem', 'utf8'),
    cert: 'MIIDV......'
}, function(profile, done) {
    return done(null, profile);
});

Routes:
app.get('/',
  passport.authenticate('saml', {failureRedirect: '/login/fail'}),
  function(req, res) {
    res.send('Authenticated');
  }
);

app.post('/login/callback',
   passport.authenticate('saml', { failureRedirect: '/login/fail' }),
  function(req, res) {
    res.redirect('/');
  }
);

General error catcher:
app.use(function(err, req, res, next){
    console.log('Express error!');
    console.log("the error: " + JSON.stringify(err));
    next(err);
});

Shibboleth processes the request and a SAMLResponse is present in the header of callback route,  /login/callback.
An error is thrown at passport.authenticate('saml', {failureRedirect: '/login/fail'}) in the / route.
Console log:
Express error!
the error: {"message":"Invalid RSAES-OAEP padding."}

Any ideas?

Well, this is the error message you receive when the encrypted assertion does not match the private key you have supplied.  I.e., your shibboleth provider has a public key for you that does not match the decryptionPvk you are supplying.
Not sure if that is what you are seeing here, but the poor error message has bitten me several times in the past, I've been meaning to look into what we can do to give a better error here.  (it is being passed up from the underlying xmlenc library, not something generated direclty by passport-saml)

I've confirmed with my identity provider that the correct public key is on file.

Then the next debugging step that comes to mind would be to step into the xmlenc decrypt call (or add some debug logging), and check if everything looks correct in there.
It's definitely an error from the crypto layer, so if the right public key and private key are being used, I'd look at whether the private key is being loaded correctly, whether there is anything unusual about the format of those keys, etc.

You are correct.
The XML module (xml-encryption) passes the encrypted data and private key to the 'forge' package:
https://github.com/auth0/node-xml-encryption/blob/master/lib/xmlenc.js#L208
Where the error is eventually thrown here:
https://github.com/digitalbazaar/forge/blob/master/js/pkcs1.js#L254
I might try re-generating a new public/private key pair, and coordinating with the IdP. However, I don't know what else could be causing this, but it isn't your package.

For anyone who comes across this, try regenerating your keys and certificate-- that was my issue. Also, try configuring with something like testshib.org (see #10) first before having to annoy your IdP Admin to reload your metadata frequently :)

I should put something about how useful testshib can be for debugging in the docs.  I'll file a bug for that.

Can someone point me in the direction of how to add aes256-cbc Assertion encryption support... i see this lib but not sure how to put it all together
https://github.com/auth0/node-xml-encryption


Generate provider.tf with provider version dependent on terraform version

We are able to generate provider.tf file as below.
generate "provider" {
  path      = "provider.tf"
  if_exists = "overwrite_terragrunt"
  contents  = <<EOF
provider "aws" {
  version = "~> 3.6"
  }
}
EOF
}

However we want to generate provider.tf with different provider version based on terraform version such as the below;
  generate "provider" {
  path      = "provider.tf"
  if_exists = "overwrite_terragrunt"
  contents  = <<EOF
%{ if terraform_version == 0.13 }
terraform {
  required_providers {
    aws {
      version = "~> 3.6"
    }
  }
}
%{ endif }
provider "aws" {
%{ if terraform_version != 0.13 }
  version = "~> 3.5"
%{ endif }
}
EOF
}

This approach does not seems to work. Is there a work around to achieve the functionality.

You can only reference things in locals (via local.NAME) or one of the built-in functions in terragrunt interpolation. Given that, this is currently not possible because we don't currently have a built in function to expose the running terraform version. That said, a function to expose that seems reasonable to add here.
In the meantime, a potential workaround here would be to use run_cmd to make the terraform --version call.

I wanted to use run_cmd("terraform", "version"), but since Terraform 0.14 the output has changed. For that reason I have chosen a different path.
locals {
  terraform_version = trimspace(run_cmd("cat", "${find_in_parent_folders(".terraform-version")}"))
}

generate "provider" {
  path      = "provider.tf"
  if_exists = "overwrite_terragrunt"
  contents  = <<EOF
provider "hcloud" {
  token = "${local.hcloud_token}"
}
  EOF
}

generate "versions" {
  path = "versions.tf"
  if_exists = "overwrite"
  contents = <<EOF
terraform {
  required_providers {
%{ if local.terraform_version == "0.12" ~}
    hcloud = {
      source  = "hetznercloud/hcloud"
      version = ">= 1.23"
    }
%{ else ~}
    hcloud = ">= 1.23"
%{ endif ~}
  }

  required_version = ">= 0.12"
}
EOF
}


'frame' object has no 'type()' function

I try to type some text into the field that is placed in iframe and I see that there is no 'type()' function available:

This is my code:
await chromy.iframe('iframe#braintree-hosted-field-number', frame => {

    console.log('We are inside.');
    frame.type('input[name=credit-card-number]', '4111111111111111');

});

I try to create test scenario for Magento e-commerce app.

Hi @flancer64,
I've published new version to support this.
Please update and try it!

Thanks, @dotneet. It works :)


The process handle pHandle is never closed resulting in a leaked handle.

The process handle pHandle is never closed resulting in a leaked handle.
    NTSTATUS status = pNtOpenProcess(&pHandle, PROCESS_ALL_ACCESS, &ObjectAttributes, &ClientId);
...

    // Locate memory hole for shellcode to reside in.
    UINT_PTR loaderAddress = findMemoryHole(pHandle, exportAddress, sizeof(shellcodeLoader) + shellcodeSize);
    if (loaderAddress == 0)
    {
        BeaconPrintf(CALLBACK_ERROR, "Unable to locate memory hole within 2G of export address");
+       CloseHandle(pHandle);   <<< add a call to closehandle here
        return;
    }

pHandle should also be closed in a cleanup routine or at any of these function return points.
https://github.com/iilegacyyii/ThreadlessInject-BOF/blob/9cdc0db2353bfb100e52d0d64c66ba59aeaa12d3/entry.c#L194
https://github.com/iilegacyyii/ThreadlessInject-BOF/blob/9cdc0db2353bfb100e52d0d64c66ba59aeaa12d3/entry.c#L213
https://github.com/iilegacyyii/ThreadlessInject-BOF/blob/9cdc0db2353bfb100e52d0d64c66ba59aeaa12d3/entry.c#L228
https://github.com/iilegacyyii/ThreadlessInject-BOF/blob/9cdc0db2353bfb100e52d0d64c66ba59aeaa12d3/entry.c#L238
https://github.com/iilegacyyii/ThreadlessInject-BOF/blob/9cdc0db2353bfb100e52d0d64c66ba59aeaa12d3/entry.c#L246
https://github.com/iilegacyyii/ThreadlessInject-BOF/blob/9cdc0db2353bfb100e52d0d64c66ba59aeaa12d3/entry.c#L253
https://github.com/iilegacyyii/ThreadlessInject-BOF/blob/9cdc0db2353bfb100e52d0d64c66ba59aeaa12d3/entry.c#L261
https://github.com/iilegacyyii/ThreadlessInject-BOF/blob/9cdc0db2353bfb100e52d0d64c66ba59aeaa12d3/entry.c#L265

Hi John, I've added a fix in the locations you mentioned. Thanks for raising this :)


backdrop-filter not working!

Hi!
css backdrop-filter not working, while it works at chrome at same time.

Please provide the necessary info on the issue template.

OK.
backdrop-filter is not supported?

backdrop-filter is supported but we still need more context, code snippet, tauri info output, minimal reproduction repo or at least steps to produce.
If these info isn't provided, I will close the issue as we can't help without it.

Operating System - Ubuntu, version 20.04 X64

Node.js environment
  Node.js - 14.18.1
  @tauri-apps/cli - 1.0.0-beta.10
  @tauri-apps/api - 1.0.0-beta.8

Global packages
  npm - 6.14.15
  yarn - 1.22.17

Rust environment
  rustc - 1.52.1
  cargo - 1.52.0

App directory structure
/dist
/src-tauri
/node_modules

App
  tauri.rs - 1.0.0-beta.8
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - ../dist
  devPath - ../dist

Code snippet? minimal repro or steps to reproduce ? screenshots ?!!

I don't have any code snippet yet. I tried it before and it doesn't work and I changed my code.

Alright, I re-opened this until I get time to confirm.

Closing this as it is invalid, backdrop-filter works on linux, see #2827


Increase timeouts in tests.

NetflixOSS » karyon » karyon-pull-requests #1 SUCCESS
This pull request looks good


Clarification of devices_file

Thanks for contributing to fastlane! Before you submit your pull request, please make sure to check the following boxes:

[x] Run bundle exec rspec from the subdirectory of each tool you modified. Alternatively, run rake test_all from the root directory.
[x] Run bundle exec rubocop -a to ensure the code style is valid
[x] Read the Contribution Guidelines
[x] We currently don't accept new actions, please publish a plugin instead, more information in Plugins.md

Before submitting a pull request, we appreciate if you create an issue first to discuss the change :+1:
Clarification that 'devices_file' is a path to file and where to look for format of the file.

Sorry this is not documented anywhere yet, but the place to update this would be https://github.com/fastlane/fastlane/blob/master/fastlane/lib/fastlane/actions/register_devices.rb#L60-L93 👍

Will act upon recommendation. Thanks.


Have Guideline code link to meaningful information

The guideline code shown at the top of this error message has a predictable pattern. We could grab the G17 part of it and use that to create a link to give the reader of the report more details about the guideline.
Here is a quick sketch of a possible implementation.
var guideline = 'WCAG2AAA.Principle1.Guideline1_4.1_4_6.G17.Fail';
var criteria = guideline.split('.')[4];
var url = 'https://www.w3.org/TR/WCAG20-TECHS/' + criteria +  '.html';
var link = '' + guideline + '';

The above code needs more thorough testing.
The spec pages include a lot more information, and links to resources on that topic. but could be too technical for most users. If we can find a plain English alternative that would be preferred.

W3 has a lot of information on the guidelines I am not sure if it is usable
https://www.w3.org/WAI/WCAG20/quickref/?showtechniques=143#qr-visual-audio-contrast-contrast


ROX-26555: Add central persistence helm flag to readme and install script

Description
Added --set central.persistence.none=true to the central helm install commands in the readme as well as the quick-helm-install.sh scripts.
User-facing documentation

[x] CHANGELOG is updated OR update is not needed
[x] documentation PR is created and is linked above OR is not needed

Testing and quality

[x] the change is production ready: the change is GA or otherwise the functionality is gated by a feature flag
[ ] CI results are inspected

Automated testing

[ ] added unit tests
[ ] added e2e tests
[ ] added regression tests
[ ] added compatibility tests
[ ] modified existing tests

How I validated my change
Just ran the quick-helm-install.sh script locally and it works, no more pvc error

Could you please also run manual setup instructions by hand to make sure they also work?
Tested that just now, all good 👍

I'll wait a bit for all style checks to pass and then merge it.
/retest

/retest

Build were failing and I don't know why, it can't be related to a readme and quick install script change though. Rebasing anyways.

/retest

/build-images
/retest

I don't know why some builds keep failing, but they are failing in the same way in other PRs and this can't logically be connected to install script changes so I'll go ahead and merge this


docker-tools test fails to run nix image

Describe the bug
The docker-tools test is broken.
To Reproduce
Steps to reproduce the behavior:
$ nix-build nixos/tests/docker-tools.nix
# ...
error: command `docker run --rm nix nix-store -qR /nix/store/xiqgdw8s05szign92b7q3mc1yvnkz8gx-nix-2.3.1' did not succeed (exit code 1)

The command before (loading the image) worked well but the failing command has no output. With my limited knowledge about docker i was not able to find out, why.
Maintainer information:
nixos/tests/docker-tools.nix
/cc @LnL7

Close this issue since the issue you are referencing is closed and I can not reproduce the problem at commit 9a3b4264c2876e03134b73a06a74068f0bb08b36.


Update django.md

Proposed changes
the command "docker compose up" didn't work on my Mac. It gave error saying "ModuleNotFoundError: No module named 'psycopg2'" and failed to load.
I had to run "docker compose up --build" and that worked.

Hi @surfdemon, thank you for contributing.
Can you help explain why the error appeared and why you had to add the --build flag to fix it?

@craig-osterhout I don't know why it errored, I followed the instructions on the page and when I got to that command, it failed. I then searched on Google and after lots of pages that said to use psycopg2-binary instead of psycopg2 which didn't work I then found a page that said to do --build. I tried that and it worked, since doing that once I've not needed to add --build to the command.

Thank you @surfdemon.
It sounds like there was a typo on that line in the Dockerfile that was fixed when you changed it and then changed it back.
In this case, --build was required to rebuild the image after it was corrected in the Dockerfile and is probably not the case for everyone else.
Closing this, but please feel free to reopen with any additional info.


using the cfg file to run the ovrd_params script

As you can see, the build will call the "./scripts/ovrd_params.py" scripts only if needed (exists in the cfg file)
the default is not to try and override the parameters values. There are very specific cases where we would want to do such a thing.
supporting the rv32e HW configuration is one of them..
But later on it will have usages in the fabric. FIFO size, buffer sizes, fabric size, memory size etc..

See the "Development" section - you can tag issues from there


How to update Tr Web Control on xiaomi router, model: Mi 3G

Hi friends, sorry my english, (brazilian)
how to update Tr Web 1.0 to recent version??
I'm following the tutorial, but I'm having this error..
BusyBox v1.24.2 (2018-04-08 01:25:59 MSK) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/home/root # ls
install-tr-control.sh
src.tar.gz
/home/root # sudo bash install-tr-control.sh
-sh: sudo: not found
/home/root # bash install-tr-control.sh
install-tr-control.sh: line 7: syntax error: unexpected newline
/home/root # ./install-tr-control.sh
-sh: ./install-tr-control.sh: Permission denied

I don't know this device but after downloading the installation script maybe you should first give it the right to run: chmod + x install-tr-control.sh
Do you have OPKG installed at all?

@lordmathbr
I am not sure which version of the script you are using, please update to the latest version and try again.
rm install-tr-control.sh
wget https://raw.githubusercontent.com/ronggang/transmission-web-control/master/release/install-tr-control.sh
bash install-tr-control.sh

Reopen if needed, but close for now.


Created issue details page

Story https://app.shortcut.com/deskpro/story/93949/gitlab-issue-details

Seems fine


buildGoPackage's fetcher don't remove submodules

ref: https://github.com/golang/go/blob/master/src/cmd/vendor/golang.org/x/mod/zip/zip.go#L212
go get will remove submodules(subdirectories with go.mod in it) after fetch repo, but the fetcher in buildGoPackage simply use fetchgit clone the whole repo.
This has some potential bad effect, also might be an issue when we want to support different versions of submodules from same repo in tools like vgo2nix.
If we simply add postFetch hook to fetchgit to remove directories in repo, the sha256 would not match, an option would be create a wrapper derivation to copy/link the sources (what's the idiomatic way to do this in nix?).
$ GOPATH=`pwd` go get -d github.com/yihuang/test-golang-module-major-version/v2@master
$ ls -1<EMAIL_ADDRESS>a.go
go.mod
$ git clone https://github.com/yihuang/test-golang-module-major-version.git
$ ls -1 test-golang-module-major-version
a.go
go.mod
sub

since vgo2nix is superseded by gomod2nix, closing.


fix: correctly infer schema types from the correct parameters

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

Current dependencies on/for this PR:

main

PR #159

PR #160   👈

This stack of pull requests is managed by Graphite.

Merge activity

Apr 19, 4:22 PM GMT+2: @pevisscher started a stack merge that includes this pull request via Graphite.


Switch to latest Dell ONIE (.7)

Task completed:
https://github.com/githedgehog/onie_catalog/commit/f1be359b4a026117d1ba4749999af21024422f0d


Can I get voucher list/Invoice list by Customer ID (specific customer )

I want to get a specific customer list of invoices, vouchers, and activities. Can we achieve this?
I tried to filter but not work. @Sysix

the lexoffice API is not support  filtering by customer atm.
Read more about here what you can filter:
https://developers.lexoffice.io/docs/#voucherlist-endpoint-retrieve-and-filter-voucherlist
PS: our framework is not supporting filtering for voucherlist.


[LifetimeCompletion] Avoid instruction list walk.

When computing the available region, a forward walk is done from the non-lifetime-ending boundary of the live region.  That boundary consists of (1) the target blocks of boundary edges, (2) dead defs, and (3) last users which are non-consuming.  This forward walk is done at the block level, so neither the specific dead def (for (2)) nor specific last non-consuming user (for (3)) is required to perform the walk; indeed currently these are computed and then immediately used only to obtain the blocks in which they appear and then discarded.  Avoid computing the specific dead defs and specific last non-consuming users by switching to a lower-fidelity liveness boundary computation via PrunedLivenessBlockBoundary.

@swift-ci please test

@swift-ci please apple silicon benchmark

@swift-ci please test source compatibility

preset=buildbot_osx_package
@swift-ci Please test with preset macOS

preset=buildbot,tools=RA,stdlib=RDA,long_test
@swift-ci Please test with preset macOS

preset=buildbot_incremental_linux,long_test
@swift-ci Please test with preset linux

@swift-ci please test


Cowboy request reply crashing

I have a POST request which accepts json and returns json. I have added both content_types_accepted/2 and content_types_provided/2.
In my handler I am manually setting the response data like this
    Req2 = cowboy_req:set_resp_body(Response, Req),
    Req3 = cowboy_req:set_resp_header(<<"content-type">>,
             <<"application/json">>, Req2),
    Req4 = cowboy_req:reply(200, Req3),
    {true, Req4, State}.

I see this error
18:51:19.749 [error] CRASH REPORT Process <0.798.0> with 0 neighbours crashed with reason: no function clause matching cowboy_req:reply/4 line 796
18:51:19.749 [error] Cowboy stream 1 with ranch listener http and connection process <0.797.0> had its request process exit with reason: no function clause matching cowboy_req:reply/4 line 796

What is the cause of this error, any help highly appreciated?

It appears you might be trying to reply twice, which is what's causing the crash.
First you do :reply, which sends a reply.
Then you return (from your "handler") {true, _, _}, which would send a new reply.
You should try with stop, instead of true and see if that helps.

It appears you might be trying to reply twice, which is what's causing the crash.
First you do :reply, which sends a reply.
Then you return (from your "handler") {true, _, _}, which would send a new reply.
You should try with stop, instead of true and see if that helps.

It resolved the error. Thanks

It resolved the error. Thanks