Do not erase received results after call to jatos.abortStudy()

This is related to https://github.com/JATOS/JATOS/issues/150#issuecomment-414946686
According to the docs, an experiment can be aborted by calling jatos.abortStudy() but then all results that have been already received will be erased. Our osweb library (currently) allows a study to be aborted by pressing ESC. We would however like to keep the received results even when this happens, and show the status of the experiment as 'aborted' within Jatos. Currently, a status of RESULTDATA_POSTED is shown, because I abort the experiment with jatos.endStudy(false, 'Experiment aborted'). This is the only way I could work around the data loss after cancellation.
Would it be possible to pass a flag to jatos.abortStudy() that indicates if the results should be kept or discarded? For instance, jatos.abortStudy(true) will keep the results, while jatos.abortStudy(false) will discard them?

jatos.abortStudy() exists solely to provide a way for a participant to cancel a study and make sure that all gathered data is removed. Internally abort actually does mostly the same as jatos.endStudy, plus this result removal. Adding a flag to this method would make challenge its existence. But why not use jatos.endStudy() for this purpose? What you propose, jatos.endStudy(false, 'Experiment aborted'), is actually what I would have used.

It's simply aesthetics :smiley: . I'd like the experiment result state to show ABORTED as it does after a call to jatos.abortStudy() instead of RESULTDATA_POSTED as it does after a call to jatos.endStudy(). RESULTDATA_POSTED is a more ambiguous state in my perception, which does not clearly convey that the participant aborted the experiment before it was finished.

Hm, actually it should be FINISHED after endStudy was called. RESULTDATA_POSTED is one state before, after result data were send but before study was finished. Something wrong here. What is your actual jatos.js call to send the result data and end the study?

With this piece of code, which is a callback function that is invoked when the experiment terminates:
/** Callback function for processing after an experiment is finished.
 * @param {Object} data - The result data.
 * @param {Object} sessionData - The session data.
 */
function onFinishedHandler(data, sessionData) {
    if (aborted) {
        jatos.endStudy(false, 'Experiment aborted by user');
    } else if (errorsOccured) {
        jatos.endStudy(false, 'Errors occurred during the experiment');
    } else {
        jatos.endStudy('Study completed successfully');
    }
    document.getElementById('osweb_div').style.display = 'none';
}

The data is sent after each call to the log function of osweb:
/**
 * Callback function for processing log data
 * @param {Object} data - The result data.
 */
function onLogHandler(data) {
    if (data === null) {
        return;
    }
    // Add Jatos parameters to this log entry
    if( jatos.componentJsonInput && jatos.componentJsonInput.omitJatosIds !== true) {
        jatos.addJatosIds(data);
    }

    // Send this log entry to the server
    jatos.appendResultData(
        JSON.stringify(data),
        () => {},
        (err) => {
            // How to handle errors?
            errorsOccured = true;
        }
    );
}

the vars aborted and `errorsOccurred are global and are set if required.
In any case, FINISHED  doesn't state if an experiment ended succesfully or was aborted, so I think it might be better to reflect a succesful or failed termination of the experiment in different status codes?

Your code looks fine.
But I just looked at JATOS' source code and realize that it is a little bit more complex than I remembered: if you call jatos.endStudy with false it will lead to study result state FAIL:

jatos.endStudy(true, "some message") -> study state FINISHED and last component state FINISHED
jatos.endStudy(false, "some message") -> study state FAIL and last component state is whatever it was before the study was finished

Addionally one has to distinguish between component result state and study result state. This RESULTDATA_POSTED is actually a component result state. But with jatos.endStudy(false) you change the study result state. Often instead of jatos.endStudy jatos.nextComponent, jatos.startLastComponent, or jatos.startComponentByPos is used which leads, if the current component is the last one, automatically to an ending of the study.
Now one could argue that an finished study implies that the last component was finished and I have to say that it seems to be logical. Let me think about this one.
Anyway, about your problem at hand, if you look into the state of your study result what is the state there?

That correctly shows FAIL

it never occurred to me though that a study also has a general result page. I always clicked on the result button of the OSWeb experiment, because that's the first thing you see (incl the number of results) when you open an experiment:

There it says RESULTDATA_POSTED, which is true in a sense, because the osweb component did post some results.
I'm also considering what you're saying: if an OSweb experiment fails, should it not simply continue with the next component, or should it fail the whole study? That's something @smathot can also chip in about, but I'd say you could be allowed to continue if there are more components..

In the upcoming v3.3.2 I changed it so now you should get FINISHED, FAIL, or ABORTED instead of RESULTDATA_POSTED as the component state. It makes more sense if the study is done.
More in detail: If the study finishes the following component states are set:

study result FAIL -> last component result FAIL and all other stay untouched
study result ABORTED -> all component result ABORTED
study result FINISHED -> last component result FINISHED and all others FINISHED as long as they are not already in FAIL or RELOADED


Restore model from config and weights for model training, via CLI option

Add a CLI option to model training that provides the possibility to continue training an existing model.
If the option is specified, with the model filename, we should ignore all the parameters that refer to the model architecture or raise an error if they are specified.

@nicolafan
want to work on this issue. Is the below command what you want to add as as option?
python -m src.models.train_model --model_path 'models/weights/train_20230314-012026.h5' --config_path models/config/train_20230314-012026.json

Hi @IsraelAbebe thank you for wanting to contribute!
Currently, according to the model evaluation which already restores a saved model, the command as I thought it would be:
python -m src.models.train_model --model_filename 'train_20230314'

And it will restore the weights and model accordingly.
I will assign this issue to you. Thanks!


com.mendix.charts.json file is not deployed into the "deployment\web\widgets" directory

It seems that during the Mendix (7.15.1) project deployment, the "theme/widget" directory containing a "com.mendix.charts.json" file is not merged into the "deployment\web\widgets" directory.
The following issue at runtime is then encountered:
404 - file not found for file: widgets/com.mendix.charts.json

Dear Jumarock,
Thanks for reporting this issue. It looks like the newer version of the Mendix server is not copying the theme/widget folder any longer to the deployment folder. We will move the the theme configuration to an other directory in the next release.
With kind regards, Andries

Hi @jumarock ... the widget has been updated to work with a configuration file located directly in the theme folder. You can test with the beta here. Will include the fix in the next release.

The fix is release 1.2.2 , now available in the app store.


Fix 1484

Fix #1484

Nice and to-the-point! Why does {arrow} need to be explicitly installed?

It looked like there was an issue that pops up at times with installing C++ dependencies on MacOS, and the simplest solution I could find was installing with source = TRUE. Not totally sure if this is needed, but this is the only time I can remember tests failing only on one OS and not others - GH Actions log here


Fluid names for density and viscosity

Reported by rfranke on 17 Jan 2013 19:39 UTC
Modelica.Fluid generally uses the names rho for density and mu for dynamic viscosity. See e.g.:
Modelica.Fluid.Machines.Pump
Modelica.Fluid.Pipes.BaseClasses.FlowModels
Modelica.Fluid.Fittings.BaseClasses.massFlowRate_dp_and_Re

The models
Modelica.Fluid.Interfaces.PartialPressureLoss
Modelica.Fluid.Fittings.SimpleGenericOrifice

internally use the names d and eta instead. These alternative names are not used in Fluid because:

eta is reserved for efficiency (see e.g. Pump)
d is ultimately short, complicating maintenance, and might be messed up with diameter
The uses if d and eta for density and dynamic viscosity shall be replaced with rho and mu, respectively.

Even though these names are only used internally, a renaming in MSL3.2.1 might break compatibility, e.g. for models extending from Modelica.Fluid.Interfaces.PartialPressureLoss.

Migrated-From: https://trac.modelica.org/Modelica/ticket/966

Modified by dietmarw on 18 Jan 2013 07:57 UTC

Comment by dietmarw on 1 Aug 2015 21:36 UTC
Milestone renamed

Comment by dietmarw on 1 Aug 2015 21:39 UTC
Milestone renamed

@rfranke Modelica.Fluid.Interfaces.PartialPressureLoss uses the names d_a, d_b, eta_a and eta_b. Same idents are also used in Modelica.Fluid.Fittings.BaseClasses.Bends.CurvedBend.{massFlowRate, pressureLoss},  Modelica.Fluid.Fittings.BaseClasses.Bends.EdgedBend.{massFlowRate, pressureLoss} and Modelica.Fluid.Fittings.BaseClasses.Orifices.ThickEdgedOrifice.{massFlowRate, pressureLoss} as function arguments. Shall they be renamed as well?
Furthermore, eta is used in Fluid.Dissipation for dynamic viscosity. Shall it be replaced as well?

No reply from libray officers -> removing milestone.


Feature/aemceds-64 modal block

Please always provide the [Jira issue(s)] your PR is for, as well as test URLs where your change can be observed (before and after):
Fixes #AEMCEDS-64
Test URLs:

Before: https://main--aem-competency--aem-comp.hlx.live/drafts/lohit/modal

After: https://feature-aemceds-64-modal-block--aem-competency--aem-comp.hlx.live/drafts/lohit/modal

[ ]  If you are adding a new block or a variation to an existing block, please fill below:
Block library path: https://main--aem-competency--aem-comp.hlx.live/tools/sidekick/library.html?plugin=blocks&path=/tools/sidekick/blocks/modal&index=0

Change the look and feel as per design https://xd.adobe.com/view/e9937e70-1422-46de-8eb8-3dd6fd1d6025-bcc0/screen/5ded235a-7c7f-4383-8154-5d1beca81401
X icon is different

Lohit - This is addressed


rewrite rule for nginx and php

im sorry, i am not able to get the redirect right for php and nginx, maybe you can help me.
i tried with:

location ~ ^/.well-known/acme-challenge/(.*)$ {
    if (!-e $request_filename){
      rewrite ^(.*)$ /.well-known/acme-challenge/index.php?q=$1 last;
      break;
    }
}

location ~ \.php$ {
    try_files @heroku-fcgi @heroku-fcgi;
}

but this results in a downloaded file, so guess the redirect is fine but its not interpreted as php file.

I'm speculating, but browsers usually look at HTTP headers and MIME types when deciding whether to render/display or download a resource.
I suggest verifying those two pieces.

This is definitely a content-type issue.
Try adding the following right after your rewrite call:
add_header Content-Type text/plain;

the downloaded file contains PHP script, so i assume its not interpreted as php file from nginx.
i doubt that the content-type will help here.

In any case, this is an nginx issue, not one with sabayon.
My recommendation would be to open a question on stackoverflow.


Bump tonic and prost dependencies

When using a newer version of prost (in my case 0.9) the crate complains that it can find the prost::Message trait.
Bumping the version of tonic and prost fix the issue

gentle bump :)

And now tonic is at 0.8.0 :see_no_evil:

I still use the project and bumped the version for the 0.8.0 to works, but haven't bothered to update the PR as the author seem absent.
Regarding mocking, I saw that tonic propose some way to mock directly in their project
https://github.com/hyperium/tonic/blob/master/examples/src/mock/mock.rs
but I haven't tested myself, as I already have done my tests with this project.
Maybe worth considering instead of relying on this dead project

Yes, indeed, I follow the same example and realized I have no need for this project. Just call .message() on what's returned from the client calls and do the assertions from there...


Implement new motion detectors

I just received a new wireless movement detector with integrated actuator.
The sensor is already recognized by the integration, but I can´t see when it detects movement nor do I see the actuator.
This is what I have in HA:

And this is the config:
 "ABB7041E02FA": {
        "deviceReboots": "9",
        "floor": "02",
        "room": "FB",
        "interface": "RF",
        "deviceId": "3104",
        "displayName": "Bewegungsmelder Einfahrt",
        "unresponsive": false,
        "unresponsiveCounter": 0,
        "defect": false,
        "channels": {
          "ch0001": {
            "displayName": "Bewegungsmelder Einfahrt",
            "floor": "02",
            "function": "UNKNOWN",
            "functionID": "1099",
            "inputs": {
              "idp0000": {
                "pairing": "AL_INFO_ON_OFF",
                "pairingID": 256,
                "value": "0"
              },
              "idp0001": {
                "pairing": "AL_INFO_FORCE",
                "pairingID": 257,
                "value": "0"
              },
              "idp0002": {
                "pairing": "AL_INFO_TIMED_MOVEMENT",
                "pairingID": 357,
                "value": "0"
              },
              "idp0003": {
                "pairing": "AL_TIMED_MOVEMENT_REQUEST",
                "pairingID": 356,
                "value": ""
              },
              "idp0004": {
                "pairing": "AL_LOCK_SENSOR",
                "pairingID": 359,
                "value": "0"
              },
              "idp0005": {
                "pairing": "UNKNOWN",
                "pairingID": 1590,
                "value": ""
              },
              "idp0006": {
                "pairing": "UNKNOWN",
                "pairingID": 1588,
                "value": ""
              },
              "idp0007": {
                "pairing": "UNKNOWN",
                "pairingID": 1592,
                "value": ""
              },
              "idp0008": {
                "pairing": "UNKNOWN",
                "pairingID": 432,
                "value": "1"
              }
            },
            "outputs": {
              "odp0000": {
                "pairing": "AL_TIMED_MOVEMENT",
                "pairingID": 6,
                "value": "0"
              },
              "odp0001": {
                "pairing": "AL_TIMED_PRESENCE",
                "pairingID": 7,
                "value": "0"
              },
              "odp0002": {
                "pairing": "AL_BRIGHTNESS_LEVEL",
                "pairingID": 1027,
                "value": "0.07"
              },
              "odp0003": {
                "pairing": "AL_MOVEMENT_DETECTOR_STATUS",
                "pairingID": 358,
                "value": "0"
              },
              "odp0004": {
                "pairing": "AL_TRIGGERED_PIR_MASK",
                "pairingID": 426,
                "value": "0"
              },
              "odp0005": {
                "pairing": "AL_INFO_GROUP_TIMER_CONTROL_8",
                "pairingID": 418,
                "value": "65535"
              },
              "odp0006": {
                "pairing": "UNKNOWN",
                "pairingID": 1591,
                "value": "15"
              },
              "odp0007": {
                "pairing": "UNKNOWN",
                "pairingID": 1589,
                "value": "1"
              },
              "odp0008": {
                "pairing": "UNKNOWN",
                "pairingID": 1593,
                "value": "2"
              },
              "odp0009": {
                "pairing": "AL_INFO_LOCKED_SENSOR",
                "pairingID": 360,
                "value": "0"
              }
            },
            "parameterNames": {
              "PID_PIR_1_SENSITIVITY (par0166)": "3",
              "PID_PIR_2_SENSITIVITY (par0167)": "3",
              "PID_PIR_3_SENSITIVITY (par0168)": "3",
              "PID_PIR_4_SENSITIVITY (par0169)": "3",
              "PID_PIR_1_ACTIVE (par016a)": "1",
              "PID_PIR_2_ACTIVE (par016b)": "1",
              "PID_PIR_3_ACTIVE (par016c)": "1",
              "PID_PIR_4_ACTIVE (par016d)": "2",
              "PID_MOVEMENT_DETECTOR_SWITCH_ON_CONDITIONS (par0034)": "2",
              "PID_TWILIGHT_BRIGHTNESS (par00d5)": "15",
              "PID_MOVEMENT_DETECTOR_TEST_MODE (par00fc)": "1"
            },
            "parameters": {
              "par0166": "3",
              "par0167": "3",
              "par0168": "3",
              "par0169": "3",
              "par016a": "1",
              "par016b": "1",
              "par016c": "1",
              "par016d": "2",
              "par0034": "2",
              "par00d5": "15",
              "par00fc": "1"
            },
            "room": "FB"
          },
          "ch0009": {
            "displayName": "Bewegungsmelder Einfahrt",
            "floor": "02",
            "function": "FID_BRIGHTNESS_SENSOR",
            "functionID": "41",
            "inputs": {},
            "outputs": {
              "odp0000": {
                "pairing": "AL_BRIGHTNESS_ALARM",
                "pairingID": 1026,
                "value": "0"
              },
              "odp0001": {
                "pairing": "AL_BRIGHTNESS_LEVEL",
                "pairingID": 1027,
                "value": "0"
              },
              "odp0002": {
                "pairing": "AL_SCENE_CONTROL",
                "pairingID": 4,
                "value": "0"
              }
            },
            "parameterNames": {
              "PID_BRIGHTNESS_ALERT_ACTIVATION_LEVEL (par002b)": "19998.7",
              "PID_HYSTERESIS (par002c)": "4999.68",
              "PID_ALERT_ACTIVATION_DELAY (par0047)": "7",
              "PID_DEALERT_ACTIVATION_DELAY (par0048)": "7"
            },
            "parameters": {
              "par002b": "19998.7",
              "par002c": "4999.68",
              "par0047": "7",
              "par0048": "7"
            },
            "room": "FB"
          },
          "ch0007": {
            "displayName": "Bewegungsmelder Einfahrt",
            "floor": "02",
            "function": "UNKNOWN",
            "functionID": "F0",
            "inputs": {
              "idp0000": {
                "pairing": "AL_SWITCH_ON_OFF",
                "pairingID": 1,
                "value": "0"
              },
              "idp0001": {
                "pairing": "AL_TIMED_START_STOP",
                "pairingID": 2,
                "value": ""
              },
              "idp0002": {
                "pairing": "AL_FORCED",
                "pairingID": 3,
                "value": ""
              },
              "idp0003": {
                "pairing": "AL_TIMED_MOVEMENT",
                "pairingID": 6,
                "value": "0"
              },
              "idp0004": {
                "pairing": "UNKNOWN",
                "pairingID": 430,
                "value": ""
              },
              "idp0005": {
                "pairing": "UNKNOWN",
                "pairingID": 1586,
                "value": ""
              }
            },
            "outputs": {
              "odp0000": {
                "pairing": "AL_INFO_ON_OFF",
                "pairingID": 256,
                "value": "0"
              },
              "odp0001": {
                "pairing": "AL_INFO_FORCE",
                "pairingID": 257,
                "value": "0"
              },
              "odp0002": {
                "pairing": "AL_INFO_TIMED_MOVEMENT",
                "pairingID": 357,
                "value": "0"
              },
              "odp0003": {
                "pairing": "AL_INFO_LOCAL_TIMER_CONTROL_8",
                "pairingID": 417,
                "value": "65535"
              },
              "odp0004": {
                "pairing": "AL_INFO_ERROR",
                "pairingID": 273,
                "value": "0"
              },
              "odp0005": {
                "pairing": "UNKNOWN",
                "pairingID": 431,
                "value": "190"
              },
              "odp0006": {
                "pairing": "UNKNOWN",
                "pairingID": 1587,
                "value": "0"
              }
            },
            "parameterNames": {
              "PID_AUTONOMOUS_SWITCH_OFF_TIME_DURATION (par0015)": "190",
              "PID_SWITCH_OFF_PREWARNING (par00fe)": "2",
              "PID_BEHAVIOUR_ON_MALFUNCTION (par0014)": "1",
              "PID_SWITCH_ACTUATOR_OPERATION_MODE (par0186)": "1",
              "PID_FORCE_MODE_DURATION_TYPE (par0187)": "2",
              "PID_FORCE_MODE_AUTONOMOUS_SWITCH_OFF_TIME_DURATION (par0188)": "90",
              "UNKNOWN (par0193)": "1",
              "PID_LOCK_ON_SITE_OPERATION (par00e5)": "1"
            },
            "parameters": {
              "par0015": "190",
              "par00fe": "2",
              "par0014": "1",
              "par0186": "1",
              "par0187": "2",
              "par0188": "90",
              "par0193": "1",
              "par00e5": "1"
            },
            "room": "FB",
            "selectedIcon": "1"
          }
        },
        "parameters": {
          "par010e": "1"
        },
        "parameterNames": {
          "PID_CHANNEL_SELECTOR_MOVEMENT_DETECTOR (par010e)": "1"
        }
      },

I transfered this to the pypi-package repo

With the CUSTOM keyword we should be 100% on the save side and later - if ABB updates their documentation - we can simple adjust it.

That works, so then I'd suggest FID_SWITCH_ACTUATOR_PYCUSTOM0 and FID_MOVEMENT_DETECTOR_PYCUSTOM0

This is the device: 2CKA006200A0861

@nrenner73 , how many brightness sensors does this thing have? Do you mind linking it it on some website? I see a dedicated FID_BRIGHTNESS_SENSOR function, but the motion detector 1099 also has a brightness AL_BRIGHTNESS_LEVEL pairing id.

From what I can see in the f@h ui there should be one brightness sensor:

@nrenner73 : Am I allowed to use this information to send an official email to ABB/Busch-Jaeger and requesting the needed information? If yes: Can you provide the official device name?

Please go ahead. I have absolutely no issues with sending said information to ABB/Busch-Jaeger

From what I can see in the f@h ui there should be one brightness sensor

@nrenner73 , I guess it's dark out now, but looks like it's reporting 0 which doesn't seem possible. The other bright sensor in your config is showing 0.07. My guess is you'll have to ignore the existing sensor you have in your integration setup. When this change get's merged in you'll get a new brightness sensor which should hold the correct value.

The brightness sensor works. The sensor is sitting on my workbench in my basement with no light at the moment. When turning on the light, I get a different value.

@nrenner73 , these entities should now be available in the latest version of the integration which was just posted: https://github.com/kingsleyadam/local-abbfreeathome-hass/releases/tag/0.16.0
Go ahead and upgrade and let us know if you see any issue. I'd also be interested in the brightness sensors. :)

Just tested it and it's working perfect.
Switch and motion detection are working.
It really has two brightness sensors which show different values when I shine a spotlight from different directions on it. Haven't figured out, where the brightness sensors are located exactly and it's a bit of a mystery as why there are two.
Also haven't figured out what the brightness alarm is for. It just says 'no light'.
Bit of a mysterious device, but the integration is working!


Missing arguments in scDEED documentation

The rerun argument is missing in ?scDEED.

This also applies to the permuted argument.

Hi,
Apologies, the manual page was incorrect. I overlooked the manual page while doing the update. It is updated now. Please re-install the package to the latest version.
Best,
Christy

Thanks!


Replace this "switch" statement by "if" statements to increase readability.

Code Path:server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/ExpressionUtils.java

switch statements are useful when there are many different cases depending on the value of the same expression. For just one or two cases however, the code will be more readable with if statements.

[WeOpen Star]I would like to help

[WeOpen Star]I would like to help

I would like to help


Improve the logging

Any chance you could improve the logging of this module? At least, add the corresponding username to which the logins are coming in the log.
For example:
The failed attempts should log as below:
*** Sat Feb  3 13:29:42 2024
2024/02/03 13:29:42 Failed to retrieve token: HTTP request failed with status code 401 - USERNAME
The successful attempts should log as follows:
2024/02/01 20:02:17 Token acquired and verified Successfully - USERNAME

Will probably work on a log reformat since I started using this as well, will probably migrate to slog if possible :)

I will look into implementing this, any PRs are also welcome

Closed by https://github.com/kha7iq/kc-ssh-pam/pull/13


fix(TDI-40061): A job with tSalesforceInput and tRedshiftInput components when executed in parallel fails in 6.5.1 after migrating from 6.2.1.

What is the current behavior? (You can also link to an open issue here)
https://jira.talendforge.org/browse/TDI-40061
What is the new behavior?
https://jira.talendforge.org/browse/TDI-40061
Please check if the PR fulfills these requirements

[x] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features) ?
[ ] The code coverage on new code >75%
[ ] The new code does not introduce new technical issues (sonar / eslint)

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build / CI related changes
[ ] Other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Pull request test result: success :star:
Sonar results


Rename tests related build options

The only available flag right now is WITH_TESTS and it only determines whether unit tests and benchmarks are installed, not whether they are compiled.

[ ] Rename WITH_TESTS to something more appropriate according to what it actually does like INSTALL_TESTS

Isn't it done?

It is done, good catch!


Cannot update cart quantity

I am trying to update the line item's quantity in the order but the API returns a validation error.
Steps:

Add an SKU to the cart with external_price set to true.
Try to update the quantity of the line item using line_items.update({id, quantity}).
Update fails with error unit_amount_cents - doesn't match with the associated item one.

I think it is because I haven't created a dedicated price for this SKU.
Expectation:
It should let me update the quantity as I added the item to the cart using an external pricing mechanism.

Hi @hari if the issue is not strictly related to the SDK but to the API itself you ca write and ask for support on our Slack channel: https://commercelayer.slack.com. There our team can better give you assistance and answer to your questions.

@pviti Thanks. I will try to contact someone in the slack channel.


v2.2.0

New

Added unit tests for internal functions

Improved

Added my Kyanite Library to make use of utilities
Fixed current linter issues
Removed slow for in loop for getting the card type
Made expired functionality no longer statically use 20 if only 2 digits are passed in for a year
Heavy optimizations to cvn functionality

Removed unneeded processing
Cleaned up code base
Removed unneeded code

Optimizations to match functionality
Tweaked Luhn Algorithm for easier catch on non-number cards
Code optimizations within the number validation function
Re wrote card type functionality from the ground up, improving performance
Rebuilt validation flow taking advantage of the Kyanite library
Re structured the flow of the expired functionality
Updated all dev dependencies
Better sanitization of data, cleaning up non-digits from data strings

Pull Request Test Coverage Report for Build 46

27 of 28 (96.43%)  changed or added relevant lines in 7 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-2.4%) to 97.59%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/number.js
5
6
83.33%

Totals

Change from base Build 38:
-2.4%

Covered Lines:
54

Relevant Lines:
55

💛  - Coveralls


NUnit Retry Commonly Failed Tests

Description

Modify a couple tests that typically fail in CI to retry up to 2 times.
This is done by assigning the attribute Retry(3) ; even though the value is 3, the first run counts as number 1.
Related Issue

Closes #5399
Motivation and Context

Stop test builds from failing out on a common failure.
Requires Documentation Change

N/A
How Has This Been Tested?

Tests still run-able and passing
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] Refactor (non-breaking change which improves implementation)
[ ] Performance (non-breaking change which improves performance. Please add associated performance test and results)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Non-functional change (xml comments/documentation/etc)

Checklist:

[x] My code follows the code style of this project.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

Closing in favor of bisection to debug why test is failing.


New version: JLC.EasyEDA.Pro version <IP_ADDRESS>.1

Created by 🥟 Dumplings in workflow run #9134.

Log
Updated: <IP_ADDRESS> → <IP_ADDRESS>.1
No ReleaseNotes (en-US) for version <IP_ADDRESS>.1
Submitting WinGet manifests
Creating manifests
Uploading manifests and making commits
Creating a pull request

Microsoft Reviewers: Open in CodeFlow

@wingetbot run


Terminal offset error for StdinController

When waiting for the StdinController, but not executing the process with gdb and it crashes, the terminal gets offset.
See screenshot for output and terminal offset behaviour.

Temporary fix: enter reset in terminal.


Link to documentation?

Describe the feature
If we have wyw-in-js documentation, it'd be nice if this repo links to those docs.
Motivation
I'm looking to replace the linaria CLI with the wyw-in-js equivalent, but I'm not seeing any documentation on how to use @wyw-in-js/cli.
Possible implementations
The README.md and metadata fields for the repo could provide a link to documentation.

On a related note, I did find https://wyw-in-js.dev/, but I am not seeing any explanation of how to use @wyw-in-js/cli. There's currently a security audit failure with the happy-dom dependency, so I was hoping that migrating to the newer CLI would resolve this:
<EMAIL_ADDRESS>│ └─┬<EMAIL_ADDRESS>│   └──<EMAIL_ADDRESS>


Collaboration on home automation and loupedeck

Hi pernozzoli,
i am working on a home assistant plugin https://github.com/lubeda/Loupedeck-HomeAssistantPlugin, perhaps we can work together on our plugins. Possibly we need the same interface from the loupedeck sdk and only our backend is different.
I will take a detailed look on your plugin on the weekend. Possibly i can provide a windows binary for your plugin if you can provide a mac binary for my plugin.
I'll contact you the next days
Ludger

Hi Ludger,
that's a good idea!
I'll figure out building the plugin for distribution this weekend, so once done I can build a version of your Home Assistant plugin as well. I also must get familiar with Github as I'm used to Gitlab at my company. Git is pretty the same but in the details there are some differences.
Yes I think, probably we will need similar SDK functions. I'm not familiar with Home Assistant, but I think you can probably retrieve items as well via an API function.
Cheers
Arno

Hi,
I took a look at your source. I like your approach but openhap has another concept of commands and items, that does not map well to the services and entities of home assistant. For now I have no idea on how to adapt your you to home assistant.
Sadly….
I will watch your solution
Greeting from Germany
Ludger

Am 17.01.2023 um 21:52 schrieb pernozzoli @.***>:
Hi Ludger,
that's a good idea!
I'll figure out building the plugin for distribution this weekend, so once done I can build a version of your Home Assistant plugin as well. I also must get familiar with Github as I'm used to Gitlab at my company. Git is pretty the same but in the details there are some differences.
Yes I think, probably we will need similar SDK functions. I'm not familiar with Home Assistant, but I think you can probably retrieve items as well via an API function.
Cheers
Arno
—
Reply to this email directly, view it on GitHub https://github.com/pernozzoli/Loupedeck_OpenHABPlugin/issues/1#issuecomment-1386035468, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIIHXOHZHUWR3VTWMSVET3WS4A7BANCNFSM6AAAAAAT6EPIJU.
You are receiving this because you authored the thread.


Readme not work link

In part
Use
Link to "how get user token" doesn't work :sob: , fix it or add this https://github.com/TheRacingLion/Discord-SelfBot/wiki/Discord-Token-Tutorial

👍🏻 added lions temporarily until I'm able to make a video/gif


Chocolatey only comes up with version 1.9.0

There have been 37 since...
It would be great if new releases would show up in Chocolatey.
See https://chocolatey.org/docs/create-packages for details on creating a package.

PerfView 2.0.26 is now on Chocolatey: https://chocolatey.org/packages/perfview
I'll be maintaining it there and update as soon as new versions are released.

Super, just installed it :-) Thanks!

@ilabutin  Just a thought, but I think this project and others would benefit from a dotnet tools extension for chocolatey similar to dotnet push but maybe dotnet pushchocolatey

@jzabroski Could be, but since releases here are not made often I'll maintain them manually for a start. If we see increased frequency of releases, then I'll consider more automated way.


feat: support fish shell in swiftly-install.sh (#72)

resolves #72
I added support for fish to swiftly-install.sh.
I added a unit test and confirm that all tests have passed by running docker compose up install-test. And of course, I tested that I could run swiftly after clean installation on my real environment.

@swift-server-bot add to allowlist

@swift-server-bot test install please

Sorry for the slow turnaround on this, thank you for your contribution!

Thank you for merging!


I am getting 'No Results' in the Shortcuts Menu, even though shortcuts were working perfectly a couple of days ago.

Hey, thanks for this incredible plugin. I rely on it every day and I love it.
It was working perfectly okay last time I tried, but today, without me making any changes, I noticed that when I try to open.
Key Sequence Shortcut Open Key Sequence Palette (Menu)
I get 'no results' found, even though I have all my commands in kssrc, and they were working successfully just a couple of days ago, and I haven't made any changes to that file these last few days.

I'm happy to provide more details if needed, but it doesn't seem to be the case that something happened on my side. It might be that some Obsidian update broke the plugins. Please let me know if you can also see this error from your side; otherwise, I can provide more details in case this is only happening to me.
Thanks

Update: I got it working. The issue was on my side; I accidentally moved the location of the kssrc.md file to a sub-folder, which broke the path in the settings without me realizing.
All good now. Thanks again for the awesome plugin, I'll close this issue.


Update machine-learning-service-inference-config.md

scikit-learn needs to be pinned to 0.22.1 in order for this work

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


How long does Hightail run

Hightail keeps on running and is not stopping when I run it
ant -f C:\\Users\\Varun\\Documents\\GitHub\\hightail\\Hightail -Dnb.internal.action.name=run run init: Deleting: C:\Users\Varun\Documents\GitHub\hightail\Hightail\build\built-jar.properties deps-jar: Updating property file: C:\Users\Varun\Documents\GitHub\hightail\Hightail\build\built-jar.properties compile: run:

I don't really understand. What happens if you run the .jar file? Does the window appear?


Using external authentication backend

Dear Dev,
I am looking for a library that would allow me to upload files to Swift using this authorization backend, so that the password is not seen by the web app:
AUTHENTICATION_BACKENDS = ('openstack_auth.backend.KeystoneBackend',)
(source: http://django-openstack-auth.readthedocs.io/en/latest/installation.html#installation)
Unfortunately, I see that your library defines SWIFT_KEY/SWIFT_PASSWORD as a Required field.
The question is: can I use your library without specifying the password, so that it uses the django authentication backend that I set up?
Thanks!

So you want to supply a token instead maybe? If auth info such as passwords are not supposed to be in the app, then you would have to supply a token from somewhere. Are you thinking about using django_openstack_auth or simply just supplying a token from the outside in requests?
As far as I can see there are no support for using tokens directly. It might not be hard to add.

I (sorry, wrong account) was thinking that passing a Keystone v3 fernet scoped token to Swift should be the logical thing to do. Now, how to get that token? I am not so sure that django_openstack_auth supplies that (I guess it does), but otherwise the python openstack client should do.

Requesting a token and using that in the swift client works fine. Should the app itself get the token or is the token supplied from somewhere outside? Is this limited to a fixed set of containers in a specific domain/project or should it be able to upload to any container in any domain/project?

The app never sees the password. It gets an OIDC token that then uses to get a Keystone token. The question is, since in your API doc is said that Password is a mandatory field, what happens if you don't have one, but a Keystone token. In principle, the limits on what the app can upload/download depend on the user can do (e.g. in Horizon), from any domain/project if possible.
Sorry but this is all very theoretical: I'm only evaluating libs, did not throw a line of code yet.
Thanks!

This package was originally only intended to be a storage backend for media and static files. You can of course instantiate the backend manually and send parameters in the constructor instead of using the ones in the settings module.
What is missing right now is the ability to pass in a token instead of using password authentication. You would also have to know the exact name of an existing container in the destination project.
.. so it's probably doable by adding a token config option. Then you would probably also need to manually set the SWIFT_BASE_URL.

Your assumption is correct. Thanks a lot for all the info!


Specify NODE_ENV=production in documentation

Just add some examples with production environment.
Could be useful for users who don't have experience with node.js! :)

Thanks!


NuitkaOptimizationError for distribution version attribute lookup in an exception block

Nuitka version, full Python version, flavor, OS, etc. as output by this
command.

python -m nuitka --version
1.0.5
Commercial: None
Python: 3.7.3 (default, Aug 24 2022, 17:04:32)
Flavor: pyenv
Executable: /home/vinay/code/testing/compile/.venv/bin/python
OS: Linux
Arch: x86_64
Distribution: Ubuntu (based on Debian) 20.04.4

If you are not providing the full output. The issue cannot be solved and will
be considered invalid. It does more than you think, and we are adding more
all the time. We do not want to left guessing or trying things out to
reproduce your issue.

How did you install Nuitka and Python

Installed Python using pyenv.
Installed Nuitka via pip.

Also supply a Short, Self Contained, Correct, Example

# main.py
import pkg_resources
try:
    pkg_version = pkg_resources.get_distribution('Nuitka').parsed_version
except Exception:
    pkg_version = None

print(pkg_version)

Provide in your issue the Nuitka options used

python -m nuitka main.py
Nuitka-Options:INFO: Used command line options: main.py
Nuitka-Options:WARNING: You did not specify to follow or include anything but main program. Check options and make sure that is intended.
Nuitka:INFO: Starting Python compilation with Nuitka '1.0.5' on Python '3.7' commercial grade 'not installed'.
PASS 1: 0.0%|                         | 0/1, __main__Problem with statement at main.py:2:
-> try:
Nuitka:INFO: Interrupted while working on '<Node 'PYTHON_MAIN_MODULE' with {'filename': 'main.py', 'module_name': , 'main_added': False, 'mode': 'compiled', 'code_flags': ''}>'.
PASS 1: 0.0%|                         | 0/1, __main__Traceback (most recent call last):
File "/home/vinay/code/testing/compile/.venv/lib/python3.7/site-packages/nuitka/main.py", line 138, in
main()
File "/home/vinay/code/testing/compile/.venv/lib/python3.7/site-packages/nuitka/main.py", line 124, in main
MainControl.main()
File "/home/vinay/code/testing/compile/.venv/lib/python3.7/site-packages/nuitka/MainControl.py", line 918, in main
main_module = _createNodeTree(filename=filename)
File "/home/vinay/code/testing/compile/.venv/lib/python3.7/site-packages/nuitka/MainControl.py", line 206, in _createNodeTree
optimizeModules(main_module.getOutputFilename())
File "/home/vinay/code/testing/compile/.venv/lib/python3.7/site-packages/nuitka/optimizations/Optimization.py", line 329, in optimizeModules
finished = makeOptimizationPass()
File "/home/vinay/code/testing/compile/.venv/lib/python3.7/site-packages/nuitka/optimizations/Optimization.py", line 291, in makeOptimizationPass
changed = optimizeModule(current_module)
File "/home/vinay/code/testing/compile/.venv/lib/python3.7/site-packages/nuitka/optimizations/Optimization.py", line 187, in optimizeModule
changed = optimizeCompiledPythonModule(module)
File "/home/vinay/code/testing/compile/.venv/lib/python3.7/site-packages/nuitka/optimizations/Optimization.py", line 98, in optimizeCompiledPythonModule
scopes_were_incomplete = module.computeModule()
File "/home/vinay/code/testing/compile/.venv/lib/python3.7/site-packages/nuitka/nodes/ModuleNodes.py", line 892, in computeModule
CompiledPythonModule.computeModule(self)
File "/home/vinay/code/testing/compile/.venv/lib/python3.7/site-packages/nuitka/nodes/ModuleNodes.py", line 537, in computeModule
trace_collection=self.trace_collection
File "/home/vinay/code/testing/compile/.venv/lib/python3.7/site-packages/nuitka/nodes/StatementNodes.py", line 163, in computeStatementsSequence
new_statement = statement.computeStatementsSequence(trace_collection)
File "/home/vinay/code/testing/compile/.venv/lib/python3.7/site-packages/nuitka/nodes/FrameNodes.py", line 182, in computeStatementsSequence
new_statement = trace_collection.onStatement(statement=statement)
File "/home/vinay/code/testing/compile/.venv/lib/python3.7/site-packages/nuitka/optimizations/TraceCollections.py", line 643, in onStatement
new_statement, change_tags, change_desc = statement.computeStatement(self)
File "/home/vinay/code/testing/compile/.venv/lib/python3.7/site-packages/nuitka/nodes/TryNodes.py", line 154, in computeStatement
statement,
nuitka.Errors.NuitkaOptimizationError:
This statement does raise but didn't annotate an exception exit.

    <node is_temp="False" kind="StatementAssignmentVariableGeneric" line="3" owner="__main__" var_type="object" variable_name="pkg_version">
      <role name="source">
        <node attribute_name="parsed_version" kind="ExpressionAttributeLookup" line="3">
          <role name="expression">
            <node kind="ExpressionPkgResourcesDistributionValueRef" line="3" />
          </role>
        </node>
      </role>
    </node>

I am not sure why, but this one escaped my attention, but I believe it got fixed, 1.1 does not reproduce the error anymore, and I recall doing something for the attributes and annotating if they raise an exception. Might have been when I added importlib.metadata.distribution support.
What a pity, this is actually an excellent report.

I think it's not fixed yet? In my case, similar program still exist (ps: if I remove PackageNotFoundError import, it works well)
version
python -m nuitka --version
1.3.3
Commercial: None
Python: 3.8.3 (default, Jul  2 2020, 16:21:59)
Flavor: Anaconda Python
Executable: /data1/xiaojianjin/anaconda3/bin/python
OS: Linux
Arch: x86_64
Distribution: Ubuntu (based on Debian) 18.04.6
Version C compiler: /usr/bin/gcc (gcc).

code for reproduce
# python > 3.8
from importlib.metadata import PackageNotFoundError, version  # pragma: no cover

try:
    # Change here if project is renamed and does not equal the package name
    dist_name = "frontend"
    __version__ = version(dist_name)
except PackageNotFoundError:  # pragma: no cover
    __version__ = "unknown"
finally:
    del version, PackageNotFoundError

error log
PASS 1: 98.9%|████████████████████████▋| 86/87, frontend    Problem with statement at /tmp/build-via-sdist-k_2pf00r/frontend-2.0.0b1.dev3+g2faab02.d20221228/build/lib/frontend/__init__.py:2:
-> from importlib.metadata import PackageNotFoundError, version  # pragma: no cover

Nuitka:INFO: Interrupted while working on '<Node 'COMPILED_PYTHON_PACKAGE' with {'filename': '/tmp/build-via-sdist-k_2pf00r/frontend-2.0.0b1.dev3+g2faab02.d20221228/build/lib/frontend/__init__.py', 'module_name': <ModuleName frontend>, 'code_flags': ''}>'.
PASS 1: 98.9%|████████████████████████▋| 86/87, frontendTraceback (most recent call last):
  File "/tmp/build-env-f3x5cw4u/lib/python3.8/site-packages/nuitka/__main__.py", line 151, in <module>
    main()
  File "/tmp/build-env-f3x5cw4u/lib/python3.8/site-packages/nuitka/__main__.py", line 137, in main
    MainControl.main()
  File "/tmp/build-env-f3x5cw4u/lib/python3.8/site-packages/nuitka/MainControl.py", line 915, in main
    main_module = _createNodeTree(filename=filename)
  File "/tmp/build-env-f3x5cw4u/lib/python3.8/site-packages/nuitka/MainControl.py", line 210, in _createNodeTree
    optimizeModules(main_module.getOutputFilename())
  File "/tmp/build-env-f3x5cw4u/lib/python3.8/site-packages/nuitka/optimizations/Optimization.py", line 341, in optimizeModules
    finished = makeOptimizationPass()
  File "/tmp/build-env-f3x5cw4u/lib/python3.8/site-packages/nuitka/optimizations/Optimization.py", line 297, in makeOptimizationPass
    changed = optimizeModule(current_module)
  File "/tmp/build-env-f3x5cw4u/lib/python3.8/site-packages/nuitka/optimizations/Optimization.py", line 188, in optimizeModule
    changed = optimizeCompiledPythonModule(module)
  File "/tmp/build-env-f3x5cw4u/lib/python3.8/site-packages/nuitka/optimizations/Optimization.py", line 99, in optimizeCompiledPythonModule
    scopes_were_incomplete = module.computeModule()
  File "/tmp/build-env-f3x5cw4u/lib/python3.8/site-packages/nuitka/nodes/ModuleNodes.py", line 550, in computeModule
    result = module_body.computeStatementsSequence(
  File "/tmp/build-env-f3x5cw4u/lib/python3.8/site-packages/nuitka/nodes/StatementNodes.py", line 172, in computeStatementsSequence
    new_statement = statement.computeStatementsSequence(trace_collection)
  File "/tmp/build-env-f3x5cw4u/lib/python3.8/site-packages/nuitka/nodes/FrameNodes.py", line 184, in computeStatementsSequence
    new_statement = trace_collection.onStatement(statement=statement)
  File "/tmp/build-env-f3x5cw4u/lib/python3.8/site-packages/nuitka/optimizations/TraceCollections.py", line 684, in onStatement
    new_statement, change_tags, change_desc = statement.computeStatement(self)
  File "/tmp/build-env-f3x5cw4u/lib/python3.8/site-packages/nuitka/nodes/TryNodes.py", line 152, in computeStatement
    raise NuitkaOptimizationError(
nuitka.Errors.NuitkaOptimizationError:
This statement does raise but didn't annotate an exception exit.

    <node kind="StatementAssignmentVariableHardValue" line="2" variable_name="version" is_temp="False" var_type="object" owner="frontend">
      <role name="source">
        <node kind="ExpressionImportlibMetadataVersionRef" line="2" />
      </role>
    </node>

@Jackiexiao posting below closed issues is a surefire way to get ignored, although I will admit this is one of the better ones, with my current factory version it doesn't reproduce, but that might be because of recent changes that generate these kinds of nodes, and they might have fixed it on the side.


Use before_count > after_count

Hi,
We can not use this case:
throttle {
  after_count => 5
  before_count => 6
  ...
}

When "before_count" greater than "after_count", "after_count" is never considered.

That is an invalid range. Works as designed.
Invalid range:
puts (5..6).to_a

Result:
(nothing returned)

Good range:
puts (5..6).to_a

Result:
5
6


Wrong files deleted when multi select (shift) and then unselect (control)

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.68.1
OS Version: Windows 11 version 21H2

Steps to Reproduce:

Create a folder 'test'

Create 3 files in this folder 'a file.txt', 'other file.txt', 'do not delete file.txt'

Click the top file (a file.txt)

Press shift, click last file (other file.txt)

press CTRL and click the middle file (do not delete file.txt)
example:

The first and last file are now selected and marked with a blue bar.

press the delete button on the keyboard
⚠ 'do not delete file.txt' is deleted

This should be fixed now in VS code insiders https://code.visualstudio.com/insiders/


Hash Transformation Question

In the section explaining the randomizer secret, it says for the key config:
"For Key usage, select Secret."
This should state "For Key type, select Secret"
That being said, the next question I have is what should be configured for "key usage," Signature or Encryption? Since this is hashing the value provided, should this be encryption?
Lastly, Which hashing algorithm is used for this claims transformation?

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

ID: 9161f948-7c8c-0a57-19ad-1ae731fd65c8
Version Independent ID: 77b6ea7f-e2fe-a7b2-60fa-80b198413ee8
Content: General claims transformation examples for the Identity Experience Framework Schema of Azure Active Directory B2C
Content Source: articles/active-directory-b2c/general-transformations.md
Service: active-directory
Sub-service: b2c
GitHub Login: @mmacy
Microsoft Alias: marsma

@seantleonard Thanks for the feedback. when you select the manual option, you will not get to select Key type and you will only have the option for Key Usage.
I am checking internally about the hashing algorithm used and what should be selected as the key usage and will get back to you.

I received feedback internally that the hashing algorithm is SHA256. No updates regarding the key usage config.


[BUG] Windows Excessive Disabled Services Event uses ComputerName instead of src field (CIM issue)

Describe the bug
The rule Windows Excessive Disabled Services Event uses ComputerName to store the host affected rather than src (which would be consistent with CIM).  This causes some queries expecting src to be present not to work.
Expected behavior
Execute a rename of the field in the rule so that when it goes to the notable index, views looking for src work correctly.
App Version:

ESCU: 4.9.1

thanks for this feedback. I'm on this

apologize for the delay for this issue. the fix will be included in next release.

fix was already in the latest release of ESCU 4.23. thank you again.


Removed annotation feature

The annotation feature is a good idea, but has limited use. It only works in the situations where monitoring_checks are right there in a manifest.pp (as opposed to hiera, defines, create_resources, etc)
But mostly it just generates noise noise when manifests run. :( I think the complexity and noise aren't worth the small nicety that it provides.
cc @hashbrowncipher @EvanKrall  @mrtyler @bobtfish

shipit
I agree about the noise.

This broke API compatibility (e.g. where we explicitly pass annotation => something). Whoops.

Ah! I'll fix.


Seeking documentation - what operators are allowed?

I tried searching:

https://www.google.com/#q=htmlbars+expressions
https://www.google.com/#q=htmlbars+logic+in+templates
https://www.google.com/#q=htmlbars+and+or+operators

Found this presentation: http://oscarlodriguez.nl/Labs/htmlbars/#/8

But it doesn't tell me much about the syntax.
My current code:
<div class="flags {{if submission.approved 'hidden'}} {{if submission.rejected 'hidden'}}">

</div>

I want to add class hidden whenever submission has been approved or rejected.

I would like to know which operators works out of the box, what is the syntax and how to write own helpers as described here: http://stackoverflow.com/questions/8853396/logical-operator-in-a-handlebars-js-if-conditional

Better use a computed property Ember.computed.or

Or alternatively this excellent addon: https://github.com/jmurphyau/ember-truth-helpers
These helpers are not provided "out of the box", without an addon you would need to create a computed property. There are no immediate plans to add utility helpers like or, but we will be considering it later in the year.
This will be better documented as the Guides for ember are updated around 2.0. I'm closing this as I believe it is actually an issue with Ember's documentation, and unrelated to HTMLBars itself.

OK, thank you for letting me know.


Client should retry on ABORTED error

@skuruppu - for attention.
As per this StackOverflow[4] post: client is not returning {code: 10 .. } for transactions. The client library should retry the request with the same session.
documentation:
[1] https://github.com/grpc/grpc/blob/master/doc/statuscodes.md
[2] https://googleapis.github.io/google-cloud-dotnet/docs/Google.Cloud.Spanner.Data/api/Google.Cloud.Spanner.V1.html#retrying-aborted-transactions
[4] http://stackoverflow.com/questions/58960190

@snehashah16 currently we do retry transactions on aborted errors, are you able to link to the SO question? I would be curious to know if they're using getTransaction instead of runTransaction

http://stackoverflow.com/questions/58960190 - you can ask for clarifications here

@callmehiphop I have the below code for transaction:
database.runTransaction(async (err, transaction) => {
if (queries.length != 0) {
try {
await transaction.batchUpdate(queries);
transaction.commit(function(err) {
if (!err) {
console.log('transaction commited');
});
} catch (error) {
//I get the error here in transaction commit.
console.log(JSON.stringify(error));
return callback(some code);
}
}catch (error) {
console.log(JSON.stringify(error));
}
});
}

@sharmilahash I'm a little concerned about how you're mixing callbacks and promises in your example code, we have error handling/retry strategies for running transactions with callbacks or promises but not both simultaneously. I might suggest a refactor that resembles the following
async function runBatchUpdate(queries) {
  if (!queries.length) return;

  try {
    await database.runTransactionAsync(async transaction => {
      await transaction.batchUpdate(queries);
      return transaction.commit();
    });
  } catch (e) {
    console.error(error);
  }
}

@callmehiphop Thanks for the help.  I need to do some coding when the query is executed, could you please let me know if I can add some code once commit successful like below:
  try {
    await database.runTransactionAsync(async transaction => {
      await transaction.batchUpdate(queries);
transaction.commit(function(err) {
          if (!err) {
             when there is no error I need to do some coding here.
        });
      }
	  });
  } catch (e) {
    console.error(error);
  }

@sharmilahash I would advise against mixing callbacks and promises, you could revise my example a little to look like this
async function runBatchUpdate(queries) {
  if (!queries.length) return;

  return database.runTransactionAsync(async transaction => {
    await transaction.batchUpdate(queries);
    return transaction.commit();
  });
}

runBatchUpdate([/**/]).then(
  () => console.log('transaction worked!'),
  err => console.error(err)
);

runBatchUpdate will resolve once the transaction is committed and that should be a good entry point for any code you want to execute after the fact.

@sharmilahash did that help you out?

@sharmilahash did that help you out?

Yes, thank you for the help 😊


Conflict with pushState

I am trying to use ui.router in an older system that was originally built possibly before angular was that well known. It is using a system that behaves somewhat similar (although much simpler and functionally very different) to the ui.router to handle different "pagelets" on the screen that function and navigate independently of the rest of the page. This system use a pattern of <doman>?<pagelent_name>=<pagelet_url>&<pagelet2_name>=<pagelet2_url> to track the state of each pagelet independently and uses basic history.pushState to handle this. However, when that state changes, just the act of setting ui.router as a dependency causes an error. I don't even have to use $stateProvider or anything. It's comparing the previous value of <pagelet_url> with the new value of <pagelet_url> in LocationHashbangUrl.$$parse. I'm not sure if this is a known issue or if there is a way to avoid this.
Error: withoutBaseUrl is undefined
LocationHashbangUrl/this.$$parse@www.mytestapp.com/static/js/libs/angular/angular.js:10502:9
$LocationProvider/this.$get</</<@www.mytestapp.com/static/js/libs/angular/angular.js:11153:9
$RootScopeProvider/this.$get</Scope.prototype.$eval@www.mytestapp.com/static/js/libs/angular/angular.js:14123:16
$RootScopeProvider/this.$get</Scope.prototype.$digest@www.mytestapp.com/static/js/libs/angular/angular.js:13939:15
$RootScopeProvider/this.$get</Scope.prototype.$apply@www.mytestapp.com/static/js/libs/angular/angular.js:14227:13
done@www.mytestapp.com/static/js/libs/angular/angular.js:9493:36
completeRequest@www.mytestapp.com/static/js/libs/angular/angular.js:9678:7
requestLoaded@www.mytestapp.com/static/js/libs/angular/angular.js:9621:1

www.mytestapp.com/static/js/libs/angular/angular.js
Line 11358

https://gist.github.com/christopherthielen/b3fc0304b737a4bf8ec9
Also, a plnkr would help since what you are describing is hard to understand


Legacy SPAR Disable A Class Option

Disable A class option on the Legay SPAR.
Acceptance Criteria

New version deployed.

Rolled over from Sprint 30 to Sprint 31.
cc: @SLDonnelly @PMAKIA1


[FLINK-26756][table-planner] Fix the deserialization error for match recognize

What is the purpose of the change
*This pr aims to fix the deserialization error for match recognize. The reason is: RexNodeJsonSerializer and RexNodeJsonDeserializer does not consider the SqlOperators with empty names, such as: pattern_concat, the testing logic in JsonPlanTestBase#compileSqlAndExecutePlan is not correct. *
Brief change log

*Fix the ser/de logic for pattern_concat in  RexNodeJsonSerializer and RexNodeJsonDeserializer *
Fix the JsonPlanTestBase#compileSqlAndExecutePlan

Verifying this change
This change is already covered by existing tests, such as MatchRecognizeJsonPlanTest and MatchRecognizeJsonPlanITCase.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot run azure

cc @twalthr

LGTM

Thanks for the review, I will merge it


Camera Module no longer initializes properly on creation.

Describe the bug
Probably a running / not running type of bug. When creating a Camera module, it seems to hang the GUI thread.
Application: Brain Simulator
Module/Network: Camera Module
To Reproduce
Steps to reproduce the behavior:

Create a Camera Module.
Notice cursor remains cross-hair even on application close icon top right..
move cursor to brainsim icon on start bar and close it.
sometimes it inits before asking to save, sometimes not...

Expected behavior
Camera module should work the way it did before.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Windows 10 Pro  20H2
Version: 2021-05-18 master.

Add any other context about the problem here.

Eventually this turned out to be in the automated test.


Ipset restore error

I tried to restore previously saved ipset but the file had invalid line (no ip address in one line, that's my fault):
add my-set  <IP_ADDRESS>
add my-set
add my-set  <IP_ADDRESS>

The problem is that the function only printed:
ipset v7.22: Missing second mandatory argument to command add
Try `ipset help' for more information.

without me being able to do match based on its response:
Result<(), ipset::types::Error>

Also when i try to retrieve restored set with:
ipset_session.list()

I only get like there's only 246 IP addresses restored, but from the shell I see that there are more IP addresses.


Missing library loguru when installing fcmaes 1.6.3 with pip

Required package loguru is not installed automatically by pip in the 1.6.3 version.
I tested with python 3.9 and 3.11:
starting from a fresh virtual environment
~$ pip install fcmaes
~$ pip list
Package       Version
------------- -------
fcmaes        1.5.9
joblib        1.3.2
numpy         1.26.0
pip           23.2.1
scikit-learn  1.3.1
scipy         1.11.3
setuptools    68.2.0
threadpoolctl 3.2.0
wheel         0.41.2

>>> from fcmaes import cmaes
ModuleNotFoundError: No module named 'loguru'

Although loguru is specified as "required" in setup.py, it is not mentioned in the wheel on PyPi.
In the METADATA file of the wheel, we can read the dependencies:
"Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: scikit-learn
Requires-Dist: threadpoolctl"
Of course, for now, I could install loguru manually to solve the issue.
I suppose the same issue will arise with missing numba package.

Uploaded 1.6.4.
Now I see
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: scikit-learn
Requires-Dist: threadpoolctl
Requires-Dist: numba
Requires-Dist: loguru
Should be fixed. Thks for the hint.


Fix error in got_connected for remote.harmony

Description:
Fixed an issue when device is reconnected and race condition for available state
Related issue (if applicable): fixes #19657
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.

Can be merged when build passes.


Fix example configuration in README.md

The example configuration file (host param) in README.md is incorrect and causes the server to abort on startup.
https://github.com/GunnarFarneback/LocalPackageServer.jl/blob/d1b752483a1d31b757c5237339d27ce1a9c8be6f/README.md?plain=1#L34
Behavior
Aborts with error on startup.
Expected behavior
Server should start normally with the example configuration.
Error message

julia --project bin/run_server.jl ../localpackageserver-configs/config.toml
┌ Info: server listening on localhost:8000
└   Dates.now() = 2024-05-10T17:09:50.356
ERROR: LoadError: ArgumentError: invalid base 10 digit 'l' in "localhost"

Suggested fix
Update the example in README.md to state host = "<IP_ADDRESS>".

Thanks for the report. Fixed in #12.


Crash with example using AAR face_detection_aar_example

i used "mediapipe_face_detection_aar_example-master" example  build a face_effect_app,  the aar file was builded with mediapipe v<IP_ADDRESS>.
android code:
public class MainActivity extends AppCompatActivity {
    private static final String TAG = "MainActivity";

    private static final String BINARY_GRAPH_NAME = "pb/face_effect_gpu.binarypb";
    private static final String INPUT_VIDEO_STREAM_NAME = "input_video";
    private static final String OUTPUT_VIDEO_STREAM_NAME = "output_video";
    private static final CameraHelper.CameraFacing CAMERA_FACING = CameraHelper.CameraFacing.FRONT;

    // Flips the camera-preview frames vertically before sending them into FrameProcessor to be
    // processed in a MediaPipe graph, and flips the processed frames back when they are displayed.
    // This is needed because OpenGL represents images assuming the image origin is at the bottom-left
    // corner, whereas MediaPipe in general assumes the image origin is at top-left.
    private static final boolean FLIP_FRAMES_VERTICALLY = true;

    static {
        // Load all native libraries needed by the app.
        System.loadLibrary("mediapipe_jni");
        System.loadLibrary("opencv_java3");
    }

    // {@link SurfaceTexture} where the camera-preview frames can be accessed.
    private SurfaceTexture previewFrameTexture;
    // {@link SurfaceView} that displays the camera-preview frames processed by a MediaPipe graph.
    private SurfaceView previewDisplayView;

    // Creates and manages an {@link EGLContext}.
    private EglManager eglManager;
    // Sends camera-preview frames into a MediaPipe graph for processing, and displays the processed
    // frames onto a {@link Surface}.
    protected FrameProcessor processor;
    // Converts the GL_TEXTURE_EXTERNAL_OES texture from Android camera into a regular texture to be
    // consumed by {@link FrameProcessor} and the underlying MediaPipe graph.
    private ExternalTextureConverter converter;

    // Handles camera access via the {@link CameraX} Jetpack support library.
    private CameraXPreviewHelper cameraHelper;
    private static final String USE_FACE_DETECTION_INPUT_SOURCE_INPUT_SIDE_PACKET_NAME =
            "use_face_detection_input_source";
    private static final boolean USE_FACE_DETECTION_INPUT_SOURCE = false;

    private static final String SELECTED_EFFECT_ID_INPUT_STREAM_NAME = "selected_effect_id";
    private final Object effectSelectionLock = new Object();
    private int selectedEffectId = 0;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        previewDisplayView = new SurfaceView(this);

        setupPreviewDisplayView();

        // Initialize asset manager so that MediaPipe native libraries can access the app assets, e.g.,
        // binary graphs.
        AndroidAssetUtil.initializeNativeAssetManager(this);
        eglManager = new EglManager(null);
        processor =
                new FrameProcessor(this,
                        eglManager.getNativeContext(),
                        BINARY_GRAPH_NAME, INPUT_VIDEO_STREAM_NAME,
                        OUTPUT_VIDEO_STREAM_NAME);
        processor.getVideoSurfaceOutput().setFlipY(FLIP_FRAMES_VERTICALLY);
        Map<String, Packet> inputSidePackets = new HashMap<>();
        inputSidePackets.put(
                USE_FACE_DETECTION_INPUT_SOURCE_INPUT_SIDE_PACKET_NAME,
                processor.getPacketCreator().createBool(USE_FACE_DETECTION_INPUT_SOURCE));
        processor.setInputSidePackets(inputSidePackets);
        processor.setOnWillAddFrameListener(
                (timestamp) -> {
                    Packet selectedEffectIdPacket = null;
                    try {
                        synchronized (effectSelectionLock) {
                            selectedEffectIdPacket = processor.getPacketCreator().createInt32(selectedEffectId);
                        }

                        processor
                                .getGraph()
                                .addPacketToInputStream(
                                        SELECTED_EFFECT_ID_INPUT_STREAM_NAME, selectedEffectIdPacket, timestamp);
                    } catch (RuntimeException e) {
                        Log.e(
                                TAG, "Exception while adding packet to input stream while switching effects: " + e);
                    } finally {
                        if (selectedEffectIdPacket != null) {
                            selectedEffectIdPacket.release();
                        }
                    }
                });
        PermissionHelper.checkAndRequestCameraPermissions(this);
    }

    @Override
    protected void onResume() {
        super.onResume();
        converter = new ExternalTextureConverter(eglManager.getContext());
        converter.setFlipY(FLIP_FRAMES_VERTICALLY);
        converter.setConsumer(processor);
        if (PermissionHelper.cameraPermissionsGranted(this)) {
            startCamera();
        }
    }

    @Override
    protected void onPause() {
        super.onPause();
        converter.close();
    }

    @Override
    public void onRequestPermissionsResult(
            int requestCode, String[] permissions, int[] grantResults) {
        super.onRequestPermissionsResult(requestCode, permissions, grantResults);
        PermissionHelper.onRequestPermissionsResult(requestCode, permissions, grantResults);
    }

    private void setupPreviewDisplayView() {
        previewDisplayView.setVisibility(View.GONE);
        ViewGroup viewGroup = findViewById(R.id.preview_display_layout);
        viewGroup.addView(previewDisplayView);
        previewDisplayView
                .getHolder()
                .addCallback(
                        new SurfaceHolder.Callback() {
                            @Override
                            public void surfaceCreated(SurfaceHolder holder) {
                                processor.getVideoSurfaceOutput().setSurface(holder.getSurface());
                            }

                            @Override
                            public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
                                // (Re-)Compute the ideal size of the camera-preview display (the area that the
                                // camera-preview frames get rendered onto, potentially with scaling and rotation)
                                // based on the size of the SurfaceView that contains the display.
                                Size viewSize = new Size(width, height);
                                Size displaySize = cameraHelper.computeDisplaySizeFromViewSize(viewSize);

                                // Connect the converter to the camera-preview frames as its input (via
                                // previewFrameTexture), and configure the output width and height as the computed
                                // display size.
                                converter.setSurfaceTextureAndAttachToGLContext(
                                        previewFrameTexture, displaySize.getWidth(), displaySize.getHeight());
                            }

                            @Override
                            public void surfaceDestroyed(SurfaceHolder holder) {
                                processor.getVideoSurfaceOutput().setSurface(null);
                            }
                        });
    }

    private void startCamera() {
        cameraHelper = new CameraXPreviewHelper();
        cameraHelper.setOnCameraStartedListener(
                surfaceTexture -> {
                    previewFrameTexture = surfaceTexture;
                    // Make the display view visible to start showing the preview. This triggers the
                    // SurfaceHolder.Callback added to (the holder of) previewDisplayView.
                    previewDisplayView.setVisibility(View.VISIBLE);
                });
        cameraHelper.startCamera(this, CAMERA_FACING, /*surfaceTexture=*/ null,null);
    }
}

console wrong:
I/native: I20210416 11:38:21.461977 26260 resource_util_android.cc:87] Successfully loaded: face_detection_front.tflite
E/tflite: Following operations are not supported by GPU delegate:
    DEQUANTIZE:
    164 operations will run on the GPU, and the remaining 0 operations will run on the CPU.

source uploaded github:
https://github.com/cjl84914/face_effect_android
download aar file url:
https://pan.baidu.com/s/1DyhMfzJK5FQswDz6LK6VdQ     code: 5kxp

Duplicate issue https://github.com/google/mediapipe/issues/1311

@sgowroji  thanks.   but this error about mediapipe <IP_ADDRESS>,  not issue #1311, old version not have error.

the DEQUANTIZE message can be ignored.

@mcclanahoochie  thank you, this demo error, how can i do better?

Hi @cjl84914, Can you share us the crash logs.

@sgowroji
04/27 15:19:28: Launching 'app' on Physical Device. Install successfully finished in 8 s 271 ms. $ adb shell am start -n "com.example.myfacedetectionapp/com.example.myfacedetectionapp.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Connected to process 20706 on device 'huawei-oxf_an00-8UJDU19B22003185'. Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. I/acedetectionap: Late-enabling -Xcheck:jni E/acedetectionap: Unknown bits set in runtime_flags: 0x8000 I/acedetectionap: Reinit property: dalvik.vm.checkjni= false     ReInitProperties: persist.vm.debug.dumpapi= false D/ActivityThread: Attach thread to application I/ActivityThread: Init compatible state: true D/HwFrameworkSecurityPartsFactory: HwFrameworkSecurityPartsFactory in. I/HwFrameworkSecurityPartsFactory: add HwFrameworkSecurityPartsFactory to memory. D/BehaviorCollectManager: hook process for AI virus second I/BehaviorCollectManager: bindAnalyzerService: huawei.android.security.IAppBehaviorDataAnalyzer$Stub$Proxy@f18402e pid:20706 I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.example.myfacedetectionapp#10160#256     need clear apicache,because volumes changed,oldCnt=0 newCnt=1 I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.example.myfacedetectionapp#10160#0     need clear apicache,because volumes changed,oldCnt=1 newCnt=1 I/ActivityThread: finishPreloaded preloadStatus 0 D/OpenGLRenderer: disableOutlineDraw is true I/HwPartIawareFactory: add android.common.HwPartIawareFactoryImpl to memory. I/AwareBitmapCacher: init processName:com.example.myfacedetectionapp pid=20706 uid=10160 E/AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@8c15065 V/ActivityThread: callActivityOnCreate I/DecorView[]:  old windowMode:0 new windoMode:1 I/OverScrollerOptimization: start init SmartSlideOverScroller and get the overscroller config     get the overscroller config W/acedetectionap: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) W/acedetectionap: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) I/native: I20210427 15:20:08.654327 20706 asset_manager_util.cc:59] Created global reference to asset manager. I/FrameFlow: FrameFlowInit app is not supported by frameflow solution I/iGraphics: [0020080c] pn: com.example.myfacedetectionapp, p: 20706     [0030080c] no spt app: com.example.myfacedetectionapp I/: [CAF] out_sc_config: sc_enable=1, max_size=3670016      [CAF] sc_policy[0] = 0x0     [CAF] sc_policy[1] = 0x0     [CAF] sc_policy[2] = 0x0     [CAF] sc_policy[3] = 0x0 I/: package[com.example.myfacedetectionapp] pid[20706] game[0] E/libEGL: validate_display:103 error 3008 (EGL_BAD_DISPLAY) I/FrameFlow: FrameFlowInit app is not supported by frameflow solution I/native: I20210427 15:20:08.666584 20706 gl_context_egl.cc:163] Successfully initialized EGL. Major : 1 Minor: 4 I/native: I20210427 15:20:08.671277 20931 gl_context.cc:331] GL version: 3.2 (OpenGL ES 3.2 v1.r18p0-01rel0.91256554b836fb72cce9d96d095364da) D/PermissionHelper: checkAndRequestCameraPermissions D/ActivityThread: add activity client record, r= ActivityRecord{c3319af token=android.os.BinderProxy@27587cf {com.example.myfacedetectionapp/com.example.myfacedetectionapp.MainActivity}} token= android.os.BinderProxy@27587cf I/FrameFlow: FrameFlowInit app is not supported by frameflow solution D/GlThread: Starting GL thread ExternalTextureConverter I/HwPartMagicWindowFactory: add android.common.HwPartMagicWindowFactoryImpl to memory. I/HwPartPowerOfficeFactory: add HwPartPowerOfficeFactoryImpl to memory. D/InputEventReceiver: dispatchInputInterval 1000000 I/RmeSchedManager: init Rme, version is: v1.0 D/GlThread: Stopping GL thread ExternalTextureConverter D/OpenGLRenderer: disableOutlineDraw is true I/FrameFlow: FrameFlowInit app is not supported by frameflow solution D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 D/HiTouch_PressGestureDetector: onAttached, package=com.example.myfacedetectionapp, windowType=1, mHiTouchRestricted=false D/HwForceDark: [SetDarkThemeInfo] enable = [0], appType = [0], winWidth = [1080] W/Gralloc3: mapper 3.x is not supported D/RtgSchedIpcFile: setCommandByIoctl failed ret:-1, cmdid:21, errno:101 I/HwViewRootImpl: removeInvalidNode jank list is null D/RtgSched: resetRtgSchedHandle failed enable:1 D/RtgSched: resetRtgSchedHandle failed enable:0 D/ZrHung.AppEyeUiProbe: not watching, wait. D/ActivityThread: Won't deliver top position change in state=4 D/PermissionHelper: onRequestPermissionsResult     android.permission.CAMERA permission granted. D/ZrHung.AppEyeUiProbe: restart watching I/FrameFlow: FrameFlowInit app is not supported by frameflow solution D/GlThread: Starting GL thread ExternalTextureConverter D/DecorView: showOrHideHighlightView: hasFocus=true; winMode=1; isMrgNull=true W/InputMethodManager: startInputReason = 1 W/InputMethodManager: startInputReason = 5 I/CameraManagerGlobal: Connecting to camera service D/CameraRepository: Added camera: 0 I/Camera2CameraInfo: Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED D/CameraRepository: Added camera: 1 D/UseCaseAttachState: Active and attached use case: [] for camera: 0 I/Camera2CameraInfo: Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED D/CameraRepository: Added camera: 2 D/UseCaseAttachState: Active and attached use case: [] for camera: 1 I/Camera2CameraInfo: Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED D/CameraRepository: Added camera: 3 D/UseCaseAttachState: Active and attached use case: [] for camera: 2 I/Camera2CameraInfo: Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED D/CameraRepository: Added camera: 4 D/UseCaseAttachState: Active and attached use case: [] for camera: 3 I/Camera2CameraInfo: Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED D/CameraRepository: Added camera: 5 D/UseCaseAttachState: Active and attached use case: [] for camera: 4 I/Camera2CameraInfo: Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED D/CameraRepository: Added camera: 6 D/UseCaseAttachState: Active and attached use case: [] for camera: 5 I/Camera2CameraInfo: Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED D/UseCaseAttachState: Active and attached use case: [] for camera: 6 D/CameraOrientationUtil: getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=270, isOppositeFacing=false, result=270 D/DeferrableSurface: Surface created[total_surfaces=1, used_surfaces=0](androidx.camera.core.SurfaceRequest$2@56ddeba} D/CameraXPreviewHelper: Received surface request for resolution 1280x720 D/CameraOrientationUtil: getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=270, isOppositeFacing=false, result=270 I/FrameFlow: FrameFlowInit app is not supported by frameflow solution D/UseCaseAttachState: Active and attached use case: [] for camera: 1 D/UseCaseAttachState: All use case: [androidx.camera.core.Preview-cf4ab4c5-1337-43b3-a84a-59596ab1b74e266497871] for camera: 1 D/UseCaseAttachState: Active and attached use case: [androidx.camera.core.Preview-cf4ab4c5-1337-43b3-a84a-59596ab1b74e266497871] for camera: 1 D/CameraStateRegistry: tryOpenCamera(Camera@37274b4[id=1]) [Available Cameras: 1, Already Open: false (Previous state: null)] --> SUCCESS D/CameraXPreviewHelper: Providing surface D/CameraStateRegistry: Recalculating open cameras:     Camera                                       State                      -------------------------------------------------------------------     Camera@f565e02[id=4]                         UNKNOWN                    Camera@8cbcb9e[id=2]                         UNKNOWN                    Camera@37274b4[id=1]                         OPENING                    Camera@6cb3a7c[id=5]                         UNKNOWN                    Camera@866681[id=6]                          UNKNOWN                    Camera@952a7fa[id=0]                         UNKNOWN                    Camera@852db38[id=3]                         UNKNOWN                    -------------------------------------------------------------------     Open count: 1 (Max allowed: 1) D/UseCaseAttachState: All use case: [androidx.camera.core.Preview-cf4ab4c5-1337-43b3-a84a-59596ab1b74e266497871] for camera: 1 I/CameraManager: open camera: 1, package name: com.example.myfacedetectionapp D/UseCaseAttachState: Active and attached use case: [androidx.camera.core.Preview-cf4ab4c5-1337-43b3-a84a-59596ab1b74e266497871] for camera: 1 D/CameraStateRegistry: Recalculating open cameras:     Camera                                       State                      -------------------------------------------------------------------     Camera@f565e02[id=4]                         UNKNOWN                    Camera@8cbcb9e[id=2]                         UNKNOWN                    Camera@37274b4[id=1]                         OPEN                       Camera@6cb3a7c[id=5]                         UNKNOWN                    Camera@866681[id=6]                          UNKNOWN                    Camera@952a7fa[id=0]                         UNKNOWN                    Camera@852db38[id=3]                         UNKNOWN                    -------------------------------------------------------------------     Open count: 1 (Max allowed: 1) D/UseCaseAttachState: All use case: [androidx.camera.core.Preview-cf4ab4c5-1337-43b3-a84a-59596ab1b74e266497871] for camera: 1 D/DeferrableSurface: New surface in use[total_surfaces=1, used_surfaces=1](androidx.camera.core.SurfaceRequest$2@56ddeba}     use count+1, useCount=1 androidx.camera.core.SurfaceRequest$2@56ddeba D/CaptureSession: Opening capture session. D/CaptureSession: Attempting to send capture request onConfigured     Issuing request for session. D/CaptureSession: CameraCaptureSession.onConfigured() mState=OPENED D/CaptureSession: CameraCaptureSession.onReady() OPENED W/Gralloc3: allocator 3.x is not supported I/FrameFlow: FrameFlowInit app is not supported by frameflow solution D/CameraOrientationUtil: getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=270, isOppositeFacing=false, result=270 D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 D/ExternalTextureConv: Created output texture: 2 width: 720 height: 1280 I/FrameFlow: FrameFlowInit app is not supported by frameflow solution I/native: I20210427 15:20:10.525943 21238 graph.cc:475] Start running the graph, waiting for inputs. I/FrameFlow: FrameFlowInit app is not supported by frameflow solution I/native: I20210427 15:20:10.526152 21238 gl_context_egl.cc:163] Successfully initialized EGL. Major : 1 Minor: 4 I/native: I20210427 15:20:10.528470 21346 gl_context.cc:331] GL version: 3.2 (OpenGL ES 3.2 v1.r18p0-01rel0.91256554b836fb72cce9d96d095364da) I/native: I20210427 15:20:10.532434 20931 resource_util_android.cc:87] Successfully loaded: face_detection_front.tflite I/tflite: Initialized TensorFlow Lite runtime. I/tflite: Created TensorFlow Lite delegate for GPU. E/tflite: Following operations are not supported by GPU delegate:     DEQUANTIZE:      164 operations will run on the GPU, and the remaining 0 operations will run on the CPU. D/ExternalTextureConv: Created output texture: 4 width: 720 height: 1280 I/FrameFlow: FrameFlowInit app is not supported by frameflow solution I/native: I20210427 15:20:10.560541 21345 jni_util.cc:41] GetEnv: not attached I/FrameFlow: FrameFlowInit app is not supported by frameflow solution I/native: I20210427 15:20:10.597136 21341 jni_util.cc:41] GetEnv: not attached I/FrameFlow: FrameFlowInit app is not supported by frameflow solution I/native: I20210427 15:20:10.638722 21344 jni_util.cc:41] GetEnv: not attached I/FrameFlow: FrameFlowInit app is not supported by frameflow solution I/FrameFlow: FrameFlowInit app is not supported by frameflow solution I/FrameFlow: FrameFlowInit app is not supported by frameflow solution I/native: I20210427 15:20:10.751435 21340 jni_util.cc:41] GetEnv: not attached I/native: I20210427 15:20:10.791033 21338 jni_util.cc:41] GetEnv: not attached I/native: I20210427 15:20:10.830927 21343 jni_util.cc:41] GetEnv: not attached I/native: I20210427 15:20:10.909360 21342 jni_util.cc:41] GetEnv: not attached I/native: I20210427 15:20:11.119069 20931 resource_util_android.cc:87] Successfully loaded: face_detection_front.tflite A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 21341 (Thread-13), pid 20706 (acedetectionapp) E/tflite: Following operations are not supported by GPU delegate:     DEQUANTIZE:      164 operations will run on the GPU, and the remaining 0 operations will run on the CPU. I/native: I20210427 15:20:11.467945 21339 jni_util.cc:41] GetEnv: not attached D/ExternalTextureConv: Created output texture: 6 width: 720 height: 1280 D/ExternalTextureConv: Created output texture: 6 width: 720 height: 1280 I/native: I20210427 15:20:11.626473 20931 resource_util_android.cc:87] Successfully loaded: face_landmark.tflite D/ExternalTextureConv: Created output texture: 6 width: 720 height: 1280 D/ExternalTextureConv: Created output texture: 6 width: 720 height: 1280 D/ExternalTextureConv: Created output texture: 6 width: 720 height: 1280 D/ExternalTextureConv: Created output texture: 6 width: 720 height: 1280 D/ExternalTextureConv: Created output texture: 6 width: 720 height: 1280 D/ExternalTextureConv: Created output texture: 6 width: 720 height: 1280 D/ExternalTextureConv: Created output texture: 6 width: 720 height: 1280 D/ExternalTextureConv: Created output texture: 6 width: 720 height: 1280 E/RtgSchedManager: endActivityTransaction: margin state not match D/GlThread: Stopping GL thread ExternalTextureConverter

@mcclanahoochie  @jiuqiant  @sgowroji  thank you very much!

@cjl84914 Hi it seems I ran into a similar problem. What's your answer?

Hi @cjl84914, Could you please share your resolution, That will really help the community with similar errors. Thanks!

@cjl84914 Can please share latest github link


packager restarts while running an app in debug mode on iOS

I am getting below issue while running an app on iOS simulator. Initially it loads the default packager with default bundle and start the app simulator.but when navigating to the component where "this.workerThread = new Thread('workerThread.js')" used, app start searching for the new bundle file (http://localhost:8081/workerThread.bundle?platform=ios&dev=true&minify=false).
I can see below error on Xcode console window.
"Failed to load bundle(http://localhost:8081/workerThread.bundle?platform=ios&dev=true&minify=false) with error:(Could not connect to development server."
I m using RN 0.59.5 version.

I am facing the same issue, is there any insights on the same?

How did you solve this issue?

anybody resolved this? same issue on RN 60.5

Running into the same issue. Did anyone find a fix?


refactor status conditions logic for Gateway API resources

Description:
The GatewayClass and Gateway logic for computing status conditions lives here
https://github.com/envoyproxy/gateway/blob/main/internal/status/conditions.go
and the logic for Routes lives here
https://github.com/envoyproxy/gateway/blob/085e6fa5a56066472a52e8c07bc1aefa3ffca5a2/internal/gatewayapi/contexts.go#L89
These should be consolidated to one place for improving code reuse

Hi @arkodg
I would like to work on this.
Seems like we would be able to remove duplicate code by changing SetCondition to something like this:
func (l *ListenerContext) SetCondition(conditionType v1beta1.ListenerConditionType, status metav1.ConditionStatus, reason v1beta1.ListenerConditionReason, message string) {
	cond := conditions.NewCondition(...)

        l.gateway.Status.Listeners[l.listenerStatusIdx].Conditions = conditions.MergeConditions(l.gateway.Status.Listeners[l.listenerStatusIdx].Conditions, cond)
}

Does that sound ok? Any other ideas?

actually that would cause an import cycle. Let me think about this a bit more tomorrow.


Add azure-cli version checks

What
Add azure-cli version checks. We prefer to run preflight scripts in Cloud shell, or run script with auzre-cli 2.31.0 or later
Context
https://github.com/EnterpriseDB/cloud-utilities/issues/32

please also merge this commit to branch ba/preflight-ergonomics

merged the code in #18


Transient Issue with "my activity" in mechanic's dashboard

object not set to an instance of an object error.

Can't reproduce.


847 dpl 433 as a user i need to be able to select the new run design options for smrt link 11 so we can create sample sheets

Closes #
Changes proposed in this pull request:

...

Yes. It does.
Thought I had removed them all.
I might leave this one as it will be fixed in the final story.
On 20 Oct 2022, at 10:05, Stuart McHattie<EMAIL_ADDRESS>wrote:
@sdjmchattie approved this pull request.
Would be good to get rid of code rather than just comment it out, otherwise all good.

In src/components/pacbio/PacbioRunInfoEdit.vue [github.com]https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sanger_traction-2Dui_pull_912-23discussion-5Fr1000355169&d=DwMCaQ&c=D7ByGjS34AllFgecYw0iC6Zq7qlm8uclZFI0SqQnqBo&r=PioAYl_Zz9lnGwJRms8MsEB0E-grNRW-ut-_gAGl70g&m=aT06G_4jHFvQNNbf_35O3UxoDO_1d8MT4dsKi-AsD2tfFpPuRlR_tjYSSG5BZOBm&s=o_aiBKQhOXHDx3mXDvFvujnSgyemWjxJwQ6KuLxXpaE&e=:

@@ -123,18 +156,31 @@ export default {
comments: (state) => state.currentRun.comments,
uuid: (state) => state.currentRun.uuid,
systemName: (state) => state.currentRun.system_name,

 smrtLinkVersion: (state) => state.currentRun.smrt_link_version,

 // smrtLinkVersion: (state) => state.currentRun.smrt_link_version,

Does this commented out code need removing?
—
Reply to this email directly, view it on GitHub [github.com]https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sanger_traction-2Dui_pull_912-23pullrequestreview-2D1148852400&d=DwMCaQ&c=D7ByGjS34AllFgecYw0iC6Zq7qlm8uclZFI0SqQnqBo&r=PioAYl_Zz9lnGwJRms8MsEB0E-grNRW-ut-_gAGl70g&m=aT06G_4jHFvQNNbf_35O3UxoDO_1d8MT4dsKi-AsD2tfFpPuRlR_tjYSSG5BZOBm&s=Qthfu65lUXIETIZqtGFiHt63yh34Wcy7YPYlePggaB8&e=, or unsubscribe [github.com]https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAD6ZHY7YBS4S3B2WGQLJUTWEEDNTANCNFSM6AAAAAAQ6MOVG4&d=DwMCaQ&c=D7ByGjS34AllFgecYw0iC6Zq7qlm8uclZFI0SqQnqBo&r=PioAYl_Zz9lnGwJRms8MsEB0E-grNRW-ut-_gAGl70g&m=aT06G_4jHFvQNNbf_35O3UxoDO_1d8MT4dsKi-AsD2tfFpPuRlR_tjYSSG5BZOBm&s=T62nUgmeIjjENd4YTuoni9JLdlcBjUTx0k162uHJvrc&e=.
You are receiving this because you authored the thread.Message ID: @.***>
--
The Wellcome Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.


add snapshot header feature

This PR adds the feature to identify a snapshot (vdisk backup) using a header, rather than storing/loading the deduped map directly. This allows us to add some useful metadata as well as some extra other metadata. While adding this feature and all what goes with it, backwards compatibility with backups made in the past is guaranteed.

closes #509;
closes #510 (0159798);
closes #511 (67af0b5);
closes #512 (f223ae6);

While most of the work for this PR is perhaps a bit invisible, it does also add the new zeroctl describe snapshot command, which allows you to describe a snapshot for both humans and machines in JSON (pretty) format (and thus make this PR a bit more visible):
$ zeroctl describe snapshot mybackup --pretty

outputs:
{
  	"snapshotID": "mybackup",
  	"blockSize": 131072,
  	"size": 14024704,
  	"created": "2017-10-02T23:48:51-05:00",
  	"source": {
  	  	"vdiskID": "foo",
  	  	"blockSize": 4096,
  	  	"size":<PHONE_NUMBER>0
  	}
}

For machines you would basically omit the --pretty flag and get the following output instead:
{"snapshotID":"mybackup","blockSize":131072,"size":14024704,"created":"2017-10-02T23:48:51-05:00","source":{"vdiskID":"foo","blockSize":4096,"size":10737418240}}

LGTM


[Compute] az sig image-version create Add new parameters --target-region-cvm-encryption to support CVM security profile

Description

CVM security profile Cli extension support request https://github.com/Azure/azure-cli/issues/19754
close https://github.com/Azure/azure-cli/issues/19754
Testing Guide

History Notes

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

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

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

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

Compute


feat: add endpoint-related attributes for better non-standard endpoint support (like azure)

What does this PR do?

Adds extra attributes for api_base, api_type, api_version to all openai spans
Nests span management behind if span.is_recording() more consistently

Motivation

With 1 users can identify openai spans that communicate to the Azure OpenAI Service (which is currently in beta), and any other non-standard OpenAI endpoints that come up later.

Testing
Tests pass locally, and the spans i capture in console look as i expect them to look.

Note, we could also add a similar attribute with a partially redacted openai api token, in case we think users will want to directly correlate api tokens with performance and usage of data in their openai spans. If that sounds worth adding, just let me know. Otherwise i'll just wait until someone asks for it.


Bash syntax doesn't highlight commands in quoted command substitution with $()

When I have e.g. x="$(echo "y")", everything inside $() should be a completely independent command ("y" should be highlighted as a string).
Prism.js incorrectly highlights "$(echo " and ")" as a string instead, and doesn't highlight commands inside like with x=`echo "y"` (which is working as expected).

Thanks for reporting! It should be fixed now.


Remove pyyaml pin. CC #2271.

Coverage increased (+0.05%) to 93.056% when pulling 35e7f1b4e90e774a1aed475c45ea47f28f35da81 on unpin-pyyaml into 1d890099c32ba63f58e09413ba853af76ca29e9a on master.


A11y_AzureToolsStorageExplorer_Activities_Activitiestab_keyboard: keyboard focus goes illogical that after the Auto Resolve behavior button ,it goes to Cancel all button.

“Check out Accessibility Insights! - Identify accessibility bugs before check-in and make bug fixing faster and easier.”
GitHubTags: #A11y_AzureToolsStorageExplorer; #A11yMAS; #A11YTCS; #DesktopApp; #WCAG2.4.3; #Keyboard; #Win32;
Environment Details:
Application Name: Azure Tools Storage Explorer
Application Version: 1.10.0
Windows10
Repro Steps:

Launch Storage Explorer
Navigate to "Open Connect dialog" pane and Sign in to Azure.
Go to "Manage Accounts" pane and Select the subscriptions you will use. Once selected, click on "Apply" button.
Navigate to "Blob Containers" of the selected subscription, right click and hit enter on "Create Blob container" to Create a new Blob container.
Navigate to "Activities" Tab present on right bottom of the screen and hit enter.
Navigate to the list of items present under Activities Tab.
Navigate through tab key upto Cancel all and Auto Resolve behavior.
Check whether the keyboard focus goes illogical or not.
Actual:
While navigating through tab key,keyboard focus goes illogical that after the Auto Resolve behavior button ,it goes to Cancel all button.

Expected:
Keyboard focus should go to Cancel all button first and then go to Auto Resolve behavior.
UserImpact:
Keyboard user unable to get the content and control in logical way.
Attachment for Reference:
1897_A11y_AzureToolsStorageExplorer_Activities_Activitiestab_keyboard.pptx

Jason merged a fix for this into master

@MRayermannMSFT Verified on version 1.12.0 and the issue is no longer reproduced.Hence close this bug.

GithubTags:#Closed;

GitHubTags:#BM-TCS-StorageExplorer-Win32-Sep2019;