Clarifications for dual-stack going GA in 1.23.

As requested by @sftim in https://github.com/kubernetes/website/pull/29386#pullrequestreview-811843907, slight adjustments for dual-stack docs as of 1.23. /cc @khenidak @marosset @jsturtevant for accuracy check/edits
Signed-off-by: Bridget Kromhout<EMAIL_ADDRESS>

/assign @nate-double-u

Deploy previews:

https://deploy-preview-30677--kubernetes-io-vnext-staging.netlify.app/docs/setup/production-environment/tools/kubeadm/dual-stack-support/#create-a-dual-stack-cluster
https://deploy-preview-30677--kubernetes-io-vnext-staging.netlify.app/docs/setup/production-environment/windows/intro-windows-in-kubernetes/#ipv6-networking

/lgtm

/lgtm

fyi @daschott

/lgtm

/approve

Thanks for the update @bridgetkromhout!


Add "Connect to delegate"

Context & versions
https://dev-sanchonet.govtool.byron.network/
Actual behavior

Expected behavior
Change "View DRep Directory" for "Connect to delegate"

@ValMBO This is also on GovTool side not PDF

@MSzalowski

And in GovTool side it is designed to display View DRep Directory - source
@m-i-k-e Should we change that?

@l-br1 Think that this should have the same principle as with any other card, so if you dont have your wallet connected, you should have Connect to Delegate instead of View DRep Directory, do you agree? If so, please update the figma file.


Likes and dislikes colored bar on thumbnails will only show the default one

Enable Rating Bar = checked
Position= Bottom
Download data = at start of page
Visible = Always
Default color = whatever color
Likes color = blue
Dislikes color = red
It's stuck to the default color and it has been that way since the last 3 versions.
I want my blue and red back.
What can I do, please, thank you.

Changing the setting works for me. Did you refresh the page after changing your settings?

I always refresh it after any changes.
The "default" option will take over the likes and dislikes colors anyway. Why is it there?

I just downloaded v525 and still no changes.
Also, similar problem with the thumbnail rating count: both thumbs up and down show zero
likes and dislikes.

The "default" color bar (grey by default settings) will display if there are no likes or dislikes on a video, or the script is unable to load the like/dislike count for some reason.

Yeah, it now works! It was that API v3 that I had to check. I had no idea.
Thank you, much appreciated!


[@xstate/test][@xstate/graph] Fix getAdjacencyMap to ignore transitions for events not explicitly passed into the options.events

Wasn't entirely sure what the changeset should be -- this could be considered a breaking change, despite the original behavior being flawed.
Basically, getAdjacencyMap would always attempt to find adjacencies for every transition. It would first look in the options.events to determine the payload, but if none was found, then it would create a payload-less event and use that to find adjacencies.
This is problematic for a couple reasons:

We can't assume events can be run without a payload
The adjacency map is far more expensive to compute when you only need adjacencies for a subset of events (eg: getPathFromEvents

There are a couple threads in discord related to this:
Expensive adjacency map
https://discord.com/channels/795785288994652170/809564635614150686/943109510040551424
getPlanFromEvents tried unwanted transitions
https://discord.com/channels/795785288994652170/809564635614150686/943823319625519124
Anyway, curious to see what people think!

Perhaps this will be fixed as part of https://github.com/statelyai/xstate/pull/3036?

Hey, just getting back to this! Let's see if we can port some of this logic over to https://github.com/statelyai/xstate/pull/3036

Apologies for the delayed reply!

Hey, just getting back to this! Let's see if we can port some of this logic over to #3036

Is this not already incorporated? When I tested the PR locally (using getPlanForEvents) I didn't notice it to be particularly slow at all where the previous version could take 10+ seconds to build up adjacency map in some of our cases.

Apologies for the delayed reply!

Hey, just getting back to this! Let's see if we can port some of this logic over to #3036

Is this not already incorporated (in some form)? When I tested the PR locally (using getPlanForEvents) I didn't notice it to be particularly slow at all where the previous version could take 10+ seconds to build up adjacency map in some of our cases.

Potentially; I'll copy the tests over to verify.

This has been fixed in #3036


Release development branch to github pages

Deploy the development branch to github pages.
Github pages is setup to use branch 'gh-pages-develop-dist' https://github.com/MetaCell/open-physiology-viewer/tree/gh-pages-develop-dist.

This one is done , our development release is here https://metacell.github.io/open-physiology-viewer/


⚙  Make load_consumer move faster than monitor

#80  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @RTLS and the rest of your teammates on  Graphite


Example 'dynamic_services' (ESP32!): Exception was unhandled

Hello Maxim,
I ported the example 'dynamic_services' to ESP32 and I changed all ESP8266 procedures. For example:
    #if WITH_ESP32 == 1
      gpio_set_level(relay, on ? 1 : 0);
    #else
      gpio_write(relay, on ? 1 : 0);
    #endif

It worked fine with the last version of homekit. Now I updated homekit to current version with the new feature 'Add functions & macros to allocate objects at runtime'!
Now I got this error if I connect iPhone with my ESP32:
>>> HomeKit: Got new client connection: 55
>>> HomeKit: [Client 55] Pair Setup Step 1/3
>>> HomeKit: [Client 55] Pair Setup Step 2/3
>>> HomeKit: [Client 55] Pair Setup Step 3/3
>>> HomeKit: Added pairing with A6836AB0-B4AF-4F15-9AB4-E3FE1FE823DF
>>> HomeKit: Configuring mDNS
>>> HomeKit: [Client 55] Successfully paired
>>> HomeKit: [Client 55] Closing client connection
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x4011e774  PS      : 0x00060830  A0      : 0x8011e7af  A1      : 0x3ffc96e0
0x4011e774: homekit_characteristic_remove_notify_callback at /Users/myname/esp/esp-homekit-demo/components/common/homekit/src/accessories.c:477

A2      : 0x3ffc6028  A3      : 0x4011e7c8  A4      : 0x3ffbd640  A5      : 0x3ffbaf00
0x4011e7c8: client_notify_characteristic at /Users/myname/esp/esp-homekit-demo/components/common/homekit/src/server.c:3115

A6      : 0x3ffc93d0  A7      : 0x00000001  A8      : 0x36304337  A9      : 0x3ffc96c0
A10     : 0xfb003234  A11     : 0x00000037  A12     : 0x3ffc95f4  A13     : 0x00000000
A14     : 0x00000002  A15     : 0xff000000  SAR     : 0x00000009  EXCCAUSE: 0x0000001c
EXCVADDR: 0xfb003234  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0xffffffff

Backtrace: 0x4011e774:0x3ffc96e0 0x4011e7ac:0x3ffc9700 0x4012093a:0x3ffc9720 0x40120b20:0x3ffc9740 0x40120bfa:0x3ffc9760 0x40121c3a:0x3ffc97a0 0x4008dc21:0x3ffc97c0
0x4011e774: homekit_characteristic_remove_notify_callback at /Users/myname/esp/esp-homekit-demo/components/common/homekit/src/accessories.c:477

0x4011e7ac: homekit_accessories_clear_notify_callbacks at /Users/myname/esp/esp-homekit-demo/components/common/homekit/src/accessories.c:477

0x4012093a: homekit_server_close_client at /Users/myname/esp/esp-homekit-demo/components/common/homekit/src/server.c:3115

0x40120b20: homekit_server_close_clients at /Users/myname/esp/esp-homekit-demo/components/common/homekit/src/server.c:3184

0x40120bfa: homekit_run_server at /Users/myname/esp/esp-homekit-demo/components/common/homekit/src/server.c:3230

0x40121c3a: homekit_server_task at /Users/myname/esp/esp-homekit-demo/components/common/homekit/src/server.c:3391

0x4008dc21: vPortTaskWrapper at /Users/myname/esp/esp-idf/components/freertos/port.c:403

Rebooting...
ets Jun  8 2016 00:22:57

Do you have any idea for the reason?

Did you update your code as well? Can you post part of the code that generates services/characteristics?

Here is the main procedure:
void init_accessory() {
    uint8_t macaddr[6];
    #if WITH_ESP32 == 1
       esp_wifi_get_mac(ESP_IF_WIFI_STA, macaddr);
    #else
       sdk_wifi_get_macaddr(STATION_IF, macaddr);
    #endif
    int name_len = snprintf(NULL, 0, "Relays-%02X%02X%02X",
                            macaddr[3], macaddr[4], macaddr[5]);
    char *name_value = malloc(name_len+1);
    snprintf(name_value, name_len+1, "Relays-%02X%02X%02X",
             macaddr[3], macaddr[4], macaddr[5]);

    homekit_service_t* services[MAX_SERVICES + 1];
    homekit_service_t** s = services;

     *(s++) = NEW_HOMEKIT_SERVICE(ACCESSORY_INFORMATION, .characteristics=(homekit_characteristic_t*[]) {
         NEW_HOMEKIT_CHARACTERISTIC(NAME, name_value),
         NEW_HOMEKIT_CHARACTERISTIC(MANUFACTURER, "HaPK"),
         NEW_HOMEKIT_CHARACTERISTIC(SERIAL_NUMBER, "0"),
         NEW_HOMEKIT_CHARACTERISTIC(MODEL, "Relays"),
         NEW_HOMEKIT_CHARACTERISTIC(FIRMWARE_REVISION, "0.1"),
         NEW_HOMEKIT_CHARACTERISTIC(IDENTIFY, lamp_identify),
         NULL
     });

    for (int i=0; i < relay_count; i++) {
        int relay_name_len = snprintf(NULL, 0, "Relay %d", i + 1);
        char *relay_name_value = malloc(name_len+1);
        snprintf(relay_name_value, relay_name_len+1, "Relay %d", i + 1);

        *(s++) = NEW_HOMEKIT_SERVICE(LIGHTBULB, .characteristics=(homekit_characteristic_t*[]) {
            NEW_HOMEKIT_CHARACTERISTIC(NAME, relay_name_value),
            NEW_HOMEKIT_CHARACTERISTIC(
                ON, true,
                .callback=HOMEKIT_CHARACTERISTIC_CALLBACK(
                    relay_callback, .context=(void*)&relay_gpios[i]
                ),
            ),
            NULL
        });
    }

    *(s++) = NULL;

    accessories[0] = NEW_HOMEKIT_ACCESSORY(.category=homekit_accessory_category_other, .services=services);
}

@maximkulkin  I was trying dynamic example. Please can you check?

>>> HomeKit: [Client 5] Verification successful, secure session established
>>> HomeKit: [Client 5] Get Accessories
Fatal exception (9):
epc1=0x4025ba4e

0x4025ba4e: homekit_characteristic_has_notify_callback at /Volumes/case-sensitive4/maxim/components/common/homekit/src/accessories.c:581

....
....

>>> HomeKit: Got new client connection: 5
>>> HomeKit: [Client 5] Pair Verify Step 1/2
>>> HomeKit: [Client 5] Closing client connection
Fatal exception (9):
epc1=0x4023880e

0x4023880e: homekit_characteristic_remove_notify_callback at /Volumes/case-sensitive4/hk/components/common/homekit/src/accessories.c:477

@maximkulkin any news?

Quick update: I've found the problem and will push fix soon.

@maximkulkin i hope it works with more than 8 accessory.. https://github.com/maximkulkin/esp-homekit-demo/issues/230

At my environment it did not work. I used latest version of esp_homekit:
>>> HomeKit: Starting server
>>> HomeKit: Using existing accessory ID: BE:E3:E1:2C:CB:9F
>>> HomeKit: Configuring mDNS
>>> HomeKit: Got new client connection: 51
>>> HomeKit: [Client 51] Pair Setup Step 1/3
>>> HomeKit: [Client 51] Pair Setup Step 2/3
>>> HomeKit: [Client 51] Pair Setup Step 3/3
>>> HomeKit: Added pairing with A6836AB0-B4AF-4F15-9AB4-E3FE1FE823DF
>>> HomeKit: Configuring mDNS
>>> HomeKit: [Client 51] Successfully paired
>>> HomeKit: [Client 51] Closing client connection
>>> HomeKit: Got new client connection: 52
>>> HomeKit: [Client 52] Pair Verify Step 1/2
>>> HomeKit: [Client 52] Pair Verify Step 2/2
>>> HomeKit: [Client 52] Found pairing with A6836AB0-B4AF-4F15-9AB4-E3FE1FE823DF
>>> HomeKit: [Client 52] Verification successful, secure session established
>>> HomeKit: [Client 52] Get Accessories
>>> HomeKit: [Client 52] Update Characteristics
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x400e8c7e  PS      : 0x00060430  A0      : 0x800e9318  A1      : 0x3ffcb1f0
0x400e8c7e: homekit_characteristic_add_notify_callback at /Users/myname/esp/M5Stack_20_Dyn_Homekit/components/esp-homekit/src/accessories.c:477

A2      : 0x3ffcca94  A3      : 0x400e8d18  A4      : 0x3ffbd8f4  A5      : 0x3ffbcd38
0x400e8d18: client_notify_characteristic at /Users/myname/esp/M5Stack_20_Dyn_Homekit/components/esp-homekit/src/server.c:3115

A6      : 0x3ffcaf10  A7      : 0x00000001  A8      : 0x003ffbd1  A9      : 0x3ffbd46d
A10     : 0x3ffb9ad0  A11     : 0x003ffbd4  A12     : 0x00000000  A13     : 0x3ffbd394
A14     : 0x3ffbd185  A15     : 0x3ffbd395  SAR     : 0x00000004  EXCCAUSE: 0x0000001c
EXCVADDR: 0x003ffbd1  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xfffffffe

ELF file SHA256: 522fbf438fe01081ab363a974922143c7bb5f4ab0b0c7024f93a432a90cc8f63

Backtrace: 0x400e8c7e:0x3ffcb1f0 0x400e9315:0x3ffcb210 0x400eabe5:0x3ffcb260 0x400ec1b1:0x3ffcb2a0 0x40125475:0x3ffcb2c0 0x400e9cca:0x3ffcb320 0x400eb003:0x3ffcb350 0x400ebfba:0x3ffcb390 0x4008b26d:0x3ffcb3b0
0x400e8c7e: homekit_characteristic_add_notify_callback at /Users/myname/esp/M5Stack_20_Dyn_Homekit/components/esp-homekit/src/accessories.c:477

0x400e9315: process_characteristics_update at /Users/myname/esp/M5Stack_20_Dyn_Homekit/components/esp-homekit/src/server.c:3115

0x400eabe5: homekit_server_on_update_characteristics at /Users/myname/esp/M5Stack_20_Dyn_Homekit/components/esp-homekit/src/server.c:3115

0x400ec1b1: homekit_server_on_message_complete at /Users/myname/esp/M5Stack_20_Dyn_Homekit/components/esp-homekit/src/server.c:2911

0x40125475: http_parser_execute at /Users/myname/esp/M5Stack_20_Dyn_Homekit/components/http-parser/http-parser/http_parser.c:2335

0x400e9cca: homekit_client_process at /Users/myname/esp/M5Stack_20_Dyn_Homekit/components/esp-homekit/src/server.c:3115

0x400eb003: homekit_run_server at /Users/myname/esp/M5Stack_20_Dyn_Homekit/components/esp-homekit/src/server.c:3223

0x400ebfba: homekit_server_task at /Users/myname/esp/M5Stack_20_Dyn_Homekit/components/esp-homekit/src/server.c:3391

0x4008b26d: vPortTaskWrapper at /Users/myname/esp/esp-idf/components/freertos/port.c:403

Rebooting...
ets Jun  8 2016 00:22:57

Here are my complete example:
M5Stack_20_Dyn_Homekit.zip

Quick solution maybe changing HOMEKIT_SPI_FLASH_BASE_ADDR
HOMEKIT_SPI_FLASH_BASE_ADDR = 0xb0000 # 720.896
make clean and make erse_flash
#HOMEKIT_SPI_FLASH_BASE_ADDR ?= 0x7A000 orginal
#HOMEKIT_SPI_FLASH_BASE_ADDR = 0xcb000 # 831.488

Hi kiralikbeyin,
thank you for trying to help quickly. In past I used the default address 0x200000.
I did this:

make menuconfig
Change HOMEKIT_SPI_FLASH_BASE_ADDR to 0xb0000
make clean
make erase_flash flash monitor
I got:

WiFI ready
>>> HomeKit: Starting server
>>> HomeKit: Formatting flash at 0xb0000
!!! HomeKit: Failed to erase flash
>>> HomeKit: Generated new accessory ID: 7A:D9:50:0C:D4:26
!!! HomeKit: Failed to write accessory ID to flash
>>> HomeKit: Generated new accessory key
!!! HomeKit: Failed to write accessory key to flash
>>> HomeKit: Configuring mDNS

Here I used an ESP32 and I think the correct address is 0x200000. I looked at Kconfig:
config HOMEKIT_SPI_FLASH_BASE_ADDR
    string "SPI flash address for storing HomeKit data"
    default 0x200000
    help
        SPI flash address to store HomeKit related persisted data

The address is 0xb0000 is to small.
I think my problem is at the environment of 'homekit_characteristic_add_notify_callback'!
The HomeKit pair verify worked fine: 'Verification successful, secure session established'
At 'get accessories' my problems started.

@GermanSheepDog  i dont have any experince with esp32 but if your uncompressed firmware.bin size is less than 700k you can try 0xb0000 or 0xcb000 (831.488)  so HomeKit setup will be at the veri end of your flash.
I am not sure if esp32 accepts more than 1MB binary..

@kiralikbeyin: I am sure that 0x200000 worked at an ESP32. I have some experience and I have a static example that worked fine. I got some problems with the dynamic example and at an other program with the heap size:  Issue 98

Please can you send a link of your HTTPS client lib?
I am using https://github.com/SuperHouse/esp-open-rtos/tree/master/extras/mbedtls and i am chaning config.h to get all data (4096 heap direclty used by lib)
#define MBEDTLS_SSL_MAX_CONTENT_LEN              4096 /**< Maxium fragment length in bytes, determines the size of each of the two internal I/O buffers */

I tried to get data with wolfssl which is already in this Homekit lib but couldnt succeed..
Maybe dynamic example has a special situation with ESP32. Did you try with ESP8266?

@kiralikbeyin: I used https://github.com/loboris/ESP32_curl_example.
No, I dianot try with ESP8266 because the memory is to small for my application.

@kiralikbeyin + @maximkulkin:
I found two challenges and solved them:

ESP32 need more Stack Size:

void lamp_identify(homekit_value_t _value) {
    printf("Lamp identify\n");
    #if ESP32 != 1
       xTaskCreate(lamp_identify_task, "Lamp identify", 256, NULL, 2, NULL);
    #else
       xTaskCreate(lamp_identify_task, "Lamp identify", 2048, NULL, 2, NULL);
    #endif
}

HOMEKIT_CHARACTERISTIC_CALLBACK did not work (only at ESP32?)

*(s++) = NEW_HOMEKIT_SERVICE(LIGHTBULB, .characteristics=(homekit_characteristic_t*[]) {
            NEW_HOMEKIT_CHARACTERISTIC(NAME, relay_name_value),
            NEW_HOMEKIT_CHARACTERISTIC(
                ON, true,
                .setter = relay_callback,
                .context = (void*)&relay_gpios[i],
                //.callback=HOMEKIT_CHARACTERISTIC_CALLBACK(
                //  relay_callback, .context=(void*)&relay_gpios[i]
                //),
            ),
            NULL
        });

Now relay_callback was called, but the value of context is not correct in procedure relay_callback. Did it work at ESP8266?

HOMEKIT_CHARACTERISTIC_CALLBACK words fine with current commit for ESP8266

@kiralikbeyin: Thank you for the quick answer. On ESP32 it did not work (or I made a big mistake).

@kiralikbeyin + @maximkulkin: I found a workaround:
        *(s++) = NEW_HOMEKIT_SERVICE(LIGHTBULB, .characteristics=(homekit_characteristic_t*[]) {
            NEW_HOMEKIT_CHARACTERISTIC(NAME, relay_name_value),
            NEW_HOMEKIT_CHARACTERISTIC(
                ON, true,
                #if ESP32 != 1
                   .callback=HOMEKIT_CHARACTERISTIC_CALLBACK(
                    relay_callback, .context=(void*)&relay_gpios[i]
                  ),
                #else
                   .setter_ex = relay_callback,
                   .context = (void*) relay_gpios[i],
                #endif
            ),
            NULL
        });

and:
#if ESP32 != 1
  void relay_callback(homekit_characteristic_t *ch, homekit_value_t value, void *_context) {
     uint8_t *gpio = _context;
     relay_write(*gpio, value.bool_value);
  }
#else
  void relay_callback(homekit_characteristic_t *ch, const homekit_value_t value) {
      uint8_t gpio = (uint8_t) ch->context;
      relay_write(gpio, value.bool_value);
  }
#endif

Now I am sure that HOMEKIT_CHARACTERISTIC_CALLBACK is a problem at ESP32.

@kiralikbeyin + @maximkulkin: I updated all software components to last version:

esp-homekit
esp-cjson
esp-http-parser
esp-wolfssl
esp-idf

Summary: I got the same error in homekit_characteristic_has_notify_callback.
During this change I found two little challenges:

In file CMakeListst.txt in esp-homekit there are used the names without "esp-". Please look here:
set(COMPONENT_REQUIRES wolfssl cJSON http-parser mdns)
I would have expected:
set(COMPONENT_REQUIRES esp-wolfssl esp-cjson esp-http-parser mdns)
In esp-homekit-demo/examples/dynamic_services/main.c there was used an wrong variable in malloc:

for (int i=0; i < relay_count; i++) {
        int relay_name_len = snprintf(NULL, 0, "Relay %d", i + 1);
        char *relay_name_value = malloc(relay_name_len+1);  // <- not name_len!!!
        snprintf(relay_name_value, relay_name_len+1, "Relay %d", i + 1);

I wonder, why do you use CMake? I'm using regular Make, works fine.
Good catch with that variable, fixed it, although that should not have affected you as name_len is larger anyways (unless you're creating a 10 million of services).

I didn‘t use CMake. I load all modules separatly, got errors, renamed all diretories and it worked. Then I search for the filenames and it was an mistake of me.
Did you have an idea why  HOMEKIT_CHARACTERISTIC_CALLBACK or (!) the callback-function-call was a problem at ESP32? I can send you the whole example.

@GermanSheepDog I plan to test that example on ESP32 In near future.

I can send you the whole example.

I thought you just used dynamic_servies example on ESP32. If not, yeah, send me your code in full.

@maximkulkin Thanks for planning the activity in near future.
Yes, the base was the dynamic_service example. But I changed the system calls from ESP8266 to ESP32. You do not have to do this a second time.
You can use my example 'M5Stack_20_Dyn_Homekit.zip' above.

@GermanSheepDog
Hello,
Here is an example that works for me on ESP32 with HOMEKIT_CHARACTERISTIC_CALLBACK
Archive.zip
But I tried to optimize my code to remove redundancy (based on dynamic_services) and it fails like you say.
I don't know why... maybe because of NEW_HOMEKIT_..., or the context pointer?
I'll tell you if I find something.

I just have converted dynamic_services example to ESP32, tested it and it worked fine. See examples/esp32/dynamic_services.
I checked your code, it looks correct, but I guess (unless what I was seeing was not the latest code) is that you run not the latest version of esp-homekit: you miss commit 9ae79f4 "Fix cloning characteristic callbacks" and that commit fixes exactly your problem.
Also, I should say that this is an awful way to maintain cross platform code: you have #if statements everywhere which mess up code a lot. E.g. to abstract GPIO API, you could
a. Use #defines to alias ESP8266 APIs to translate into ESP32 APIs:
#if ESP32
#define gpio_enable gpio_set_direction
#define gpio_write gpio_set_level
#define GPIO_OUTPUT GPIO_MODE_OUTPUT
#endif

and continue using ESP8266 versions in the code (or vise versa)
b. Abstract away those APIs and create your own which would call platform specific APIs:
#if ESP32
#define MY_GPIO_OUTPUT GPIO_MODE_OUTPUT
void my_gpio_init(uint8_t gpio, uint8_t mode) {
    gpio_set_direction(gpio, mode);
}
void my_gpio_write(uint8_t gpio, bool level) {
    gpio_set_level(gpio, level);
}
#elif ESP8266
#define MY_GPIO_OUTPUT GPIO_OUTPUT
void my_gpio_init(uint8_t gpio, uint8_t mode) {
    gpio_enable(gpio, mode);
}
void my_gpio_write(uint8_t gpio, bool level) {
    gpio_write(gpio, level);
}
#endif

and use this abstract API in the code.


File upload field throwing error when specific pictures are uploaded

Description of the bug
When I try to upload some .jpg pictures I am getting errors as on the screenshot below.
The picture that I try to upload is this one:

Reproduction steps

Create a file upload field
Try to upload the picture above or try uploading couple other pictures, preferably .jpg ones and probably a bit bigger ones
Notice that the picture it's not uploaded and you receive an error.

Expected behavior
You should be able to upload the picture without any issues.
Screenshots

Versions
Branch: 2022.9.8-rc.1

For today: try to upload image and see if issue will pop up. If not ping Bojan for assistance

This is now resolved. Retested it again and now the upload works as it is supposed to. So moving the card straight to Done.


deps: Aggregate dependabot updates

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

im going to look further to figure out why our attempts to fix dependabot so far have failed, in the meantime this aggregates the recent updates (need to fix...)

cc @kfaseela
heads up that a recent update to pip-tools now means that dependabot replaces all package separators with - - who knows why, but no point trying to fight it - anyone updating pip locallly will need a recent version of pip-tools
$ pip freeze | grep pip-tools
pip-tools==6.5.1

...minus the twitter update which breaks the thrift test

thanks @phlax looks good!

apologies for force-push - i have added the latest dependabot pr to this

/lgtm deps


add topics

I suggest adding the topics cfd, nek5000 in the About section

Done! Thank you for the tip.


Urgently add support for recent Tomcat patch releases to mitigate CVE-2017-12617

The Apache Tomcat team has announced a High severity remote code execution vulnerability affecting versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81.
The vulnerabilities have been fixed in Tomcat versions 8.5.23, 8.0.47, and 7.0.82.
webapp-runner needs to be updated urgently to allow users to deploy versions of Tomcat without this vulnerability.

They're already released:
http://repo1.maven.org/maven2/com/github/jsimone/webapp-runner/<IP_ADDRESS>/
http://repo1.maven.org/maven2/com/github/jsimone/webapp-runner/<IP_ADDRESS>/
http://repo1.maven.org/maven2/com/github/jsimone/webapp-runner/<IP_ADDRESS>/

Apologies - so they are. I hadn't checked just looked at the readme on the front page which I see is now updated

Sorry about that. I updated it after you opened the ticket. There is also a badge on the front page that displays the last version number (pulled directly from maven central). Thanks for the heads up.


Add reply sorting options

It'd be nice to have the ability to sort thread replies in different ways (for example, most liked replies first) instead of having it be strictly chronological.
I think there should be a default option you can choose to change, as well as the ability to manually set it on individual posts (kinda like reddits comment sorting thing)

Yeah I've been thinking about something like this as well

#1356 changed the core of the default sorting algorithm from "newest first" (i.e. chronological) to "most liked replies first". This is what I believe the current default sort order to be:

Original Poster's replies always first.

Within OP's replies, oldest-first (reverse chronological).

Remaining posts sorted in order of moderation score, lowest-first.

Within each moderation score band, most-liked-first.

For posts with equal likes, newest-first (chronological).

It's unclear to me whether this is just sorting the immediate replies, or whether it recursively sorts all branches of the thread?
In any case, having the option to choose how to sort the unmoderated replies (presumably the vast majority of replies, and the ones most users think of as replies) still seems like a good idea.

The default here is really important - and I don't think it should be 'by likes'; since it will have the negative effects detailed in #1407 (and in all the top replies of https://bsky.app/profile/bsky.app/post/3k6t3d3wkxv26 when sorted by likes 👀). I would advocate the old way being the default, with a sort control in the thread itself (i.e. under the OP) that a user can click to change (so it functions more like a 'peek').
I think a global user setting, or a change to the site-wide default, should maybe wait until it's possible to a) lock threads, or moderate replies (beyond just 'blocking') and, b) manage threads & reply chains in the UI better?
If you look at that linked thread - it's not sorted by 'healthy engagement', it's sorted by 'dunks and complaints that the majority agree with' (and also sorry that happened Paul - pile-ons suck).

This has been added in the upcoming 1.51 release


[Candidate 3v3 Glacier 6 ZH v1] Units can be air dropped on mountain

Observed behavior
Units can be air dropped on mountain.
Expected behavior
Units cannot be air dropped on mountain.
Screenshots

fixed


Getting an issue when modifying embeds on the new commits after everything was renamed to EMbeds

System.MissingMethodException: Method not found: 'Discord.Optional`1<Discord.Embed> Discord.MessageProperties.get_Embed()'.
   at Discord.Rest.MessageHelper.ModifyAsync(IMessage msg, BaseDiscordClient client, Action`1 func, RequestOptions options)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Discord.Rest.MessageHelper.ModifyAsync(IMessage msg, BaseDiscordClient client, Action`1 func, RequestOptions options)
   at Discord.WebSocket.SocketUserMessage.ModifyAsync(Action`1 func, RequestOptions options)
   at Mewdeko.Modules.Help.Help.HandleModules(SocketInteraction ine) in D:\Docs\Mewdeko\Mewdeko.Core\Modules\Help\Help.cs:line 119
   at Discord.EventExtensions.InvokeAsync[T](AsyncEvent`1 eventHandler, T arg)
   at Discord.WebSocket.DiscordSocketClient.TimeoutWrap(String name, Func`1 action)

Code?

Maybe you need make changes like this
- Message.ModifyAsync(props => props.Embed = new EmbedBuilder(...));
+ Message.ModifyAsync(props => props.Embeds = new[] { new EmbedBuilder(...) });

thats exactly what i did
await msg.ModifyAsync(x => x.Embed = new Embed[] { toSend.Build() }).ConfigureAwait(false);

i pulled from the latest commit, unless i didnt build everything i needed

I pulled lastest commit and build, work fine again 🤔


Cannot render assets from smart album

I was using Image from react-native.. and assets from smartAlbum ( CameraRoll ) worked fine... but now when i changed it to FastImage... the photos just aren't rendered... the source uri for example is - "photos://106E99A1-4F6A-45A2-B320-B0AD4A8E8473/L0/001"
and like i said, it doesn't rendered... but when i change for example uri to
'https://unsplash.it/400/400?image=1'
It works fine... so any ideas.. ?

I should clarify the readme, this package if intended to be used for remote images, not local images.

This is now handled, but currently falls back to Image (243b33db768b8afe4c58999db005600bda4a07dd). There is an open issue for displaying local images without a fallback.


[Burn-Index] Add a new entry to the burn index - 76a90088ac

Burn Details
In 2011, Mt. Gox burned a sizable amount of BTC by sending them to an invalid bitcoin script 76a90088ac.
Example Transactions
81f591582b436c5b129f347fe7e681afd6811417973c4a4f83b18e92a9d130fd:1
Suggested note
The Bitcoin Script 76a90088ac was erroneously constructed by Mt. Gox. It decodes to:
OP_DUP OP_HASH160 OP_0 OP_EQUALVERIFY OP_CHECKSIG

It is a variant of the traditional P2PKH script, which is structured as:
OP_DUP OP_HASH160 <20-byte push> OP_EQUALVERIFY OP_CHECKSIG

Mt. Gox mistakenly replaced the 20-byte push with a single 0x00 byte. As OP_HASH160 always produces a 20-byte output, this script can never evaluate to true, even if a key pair is discovered for which the public key's HASH160 evaluates to a zero-hash.
List of Scripts
76a90088ac

Closed in https://github.com/RaghavSood/btcsupply/commit/414fb0131658ec16d7a21f8deb175243fab0be1a


How to remove all cards from Card View without animation

How to remove all cards from Card View without animation

yeah, cardView can do it now. remove all card in CardView without animation.


Warning while compiling

Latest version gives warning while compiling on the roku device...
BRIGHTSCRIPT: WARNING: unused variable 'episode' in function 'initsections' in pkg:/components/EpisodesScreen/SeasonsWithEpisodesScreen.brs(29)
I do not have any content with seasons/episodes to test with. The warning may not be an issue.

It's not an issue. It's in a function I have not fully implemented yet and may remove.


Suggestion to add function to read the phylogenies of a BEAST2 posterior file

olli0601's rBEAST package has a function to read a .trees file to obtain a list of posterior phylogenies. The function is called beast2out.read.trees and I have used it much. I suggest to add that function to this repository (with the proper acknowledgements of course).
Do I have a green light to submit a Pull Request?

Hi @richelbilderbeek, Olli's tree reader looks great.  Please

prepare a pull request
briefly document how this function behaves differently from OutbreakTools::read.annotated.tree() (which I am planning on moving into RBeast)

Am very happy to have you and @olli0601 on-board!


[Feature]: Microsoft OLE DB Driver mulitple languages and Additional 'Base Version' attribute

What is your feature request?
Similar to https://github.com/aaronparker/evergreen/issues/685
Currently the Microsoft OLE DB Driver download is only offered without a defined language (so will by default download the English (United States) version) and only for the latest v19 build (or Base Version 19).
There can also often be a need to deploy the earlier generation v18 (Base Version 18) driver, which Microsoft still updates from time to time (usually to fix security vulnerabilities).
Base version 19 builds are offered via this Microsoft Learn webpage:
https://learn.microsoft.com/en-us/sql/connect/oledb/download-oledb-driver-for-sql-server?view=sql-server-ver16
Earlier versions (Including the latest Base version 18) are offered via this Microsoft Learn webpage:
https://learn.microsoft.com/en-us/sql/connect/oledb/release-notes-for-oledb-driver-for-sql-server?view=sql-server-ver16#previous-releases
Fortunately setting the correct url per language is as simple as appending the &clcid=<language_id> to the end of the URL (for either Base Version).

Language
Language Id

Chinese (Simplified)
0x804

Chinese (Traditional)
0x404

English (United States)
0x409

French
0x40c

German
0x407

Italian
0x410

Japanese
0x411

Korean
0x412

Portugese (Brazil)
0x416

Russian
0x419

Spanish
0x40a

N.B These Lanuguage Id's appear to be consistent across all Microsoft downloads - which might be useful
e.g. to obtain the Spanish download URL for the x64 v19.3.3, the full URL would be:
https://go.microsoft.com/fwlink/?linkid=2266674&clcid=0x40a
This would allow Evergreen to serve the correct language specific download for the Microsoft OLE DB Driver
As Evergreen is not offering the latest version of Base Version 18 downloads, I wonder if the function could be extended to include them too?
The current downloads for each Base version are as follows

Base Version
(Current Latest Version)
Architecture
URL (excluding Language Id)

18
(18.7.2)
x64
https://go.microsoft.com/fwlink/?linkid=2266757

18
(18.7.2)
x86
https://go.microsoft.com/fwlink/?linkid=2266858

19
(19.3.3)
x64
https://go.microsoft.com/fwlink/?linkid=2266674

19
(19.3.3)
x86
https://go.microsoft.com/fwlink/?linkid=2266883

19
(19.3.3)
ARM64
https://go.microsoft.com/fwlink/?linkid=2266884

What I am asking is two things:

Add the alternative languages (much like is currently done for Microsoft SSMS gea MicrosoftSSMS -Verbose)
Add a new attribute for the Base version

This will allow users of Evergreen to filter the results on both their chosen Language and the specific version they require.
Verbose Output for Get-EvergreenApp MicrosoftOLEDBDriverForSQLServer:
Get-EvergreenApp MicrosoftOLEDBDriverForSQLServer -Verbose
VERBOSE: Function path: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2405.1013\Apps\Get-MicrosoftOLEDBDriverForSQLServer.ps1
VERBOSE: Function exists: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2405.1013\Apps\Get-MicrosoftOLEDBDriverForSQLServer.ps1.
VERBOSE: Dot sourcing: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2405.1013\Apps\Get-MicrosoftOLEDBDriverForSQLServer.ps1.
VERBOSE: Get-FunctionResource: read application resource strings from [C:\Program Files\WindowsPowerShell\Modules\Evergreen\2405.1013\Manifests\MicrosoftOLEDBDriverForSQLServer.json]
VERBOSE: Calling: Get-MicrosoftOLEDBDriverForSQLServer.
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve: https://go.microsoft.com/fwlink/?linkid=2248728.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://download.microsoft.com/download/f/1/3/f13ce329-0835-44e7-b110-44decd29b0ad/en-US/<IP_ADDRESS>/x64/msoledbsql.msi].
VERBOSE: Get-FileType: found extension: [msi]
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve: https://go.microsoft.com/fwlink/?linkid=2249102.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://download.microsoft.com/download/f/1/3/f13ce329-0835-44e7-b110-44decd29b0ad/en-US/<IP_ADDRESS>/x86/msoledbsql.msi].
VERBOSE: Get-FileType: found extension: [msi]
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve: https://go.microsoft.com/fwlink/?linkid=2249103.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://download.microsoft.com/download/f/1/3/f13ce329-0835-44e7-b110-44decd29b0ad/en-US/<IP_ADDRESS>/arm64/msoledbsql.msi].
VERBOSE: Get-FileType: found extension: [msi]

Version      : <IP_ADDRESS>
Date         : 06/10/2023 16:53:18
Size         : 4894720
Architecture : x64
Type         : msi
URI          : https://download.microsoft.com/download/f/1/3/f13ce329-0835-44e7-b110-44decd29b0ad/en-US/<IP_ADDRESS>/x64/msoledbsql.msi

Version      : <IP_ADDRESS>
Date         : 06/10/2023 16:53:18
Size         : 2805760
Architecture : x86
Type         : msi
URI          : https://download.microsoft.com/download/f/1/3/f13ce329-0835-44e7-b110-44decd29b0ad/en-US/<IP_ADDRESS>/x86/msoledbsql.msi

Version      : <IP_ADDRESS>
Date         : 06/10/2023 16:53:15
Size         : 2981888
Architecture : ARM64
Type         : msi
URI          : https://download.microsoft.com/download/f/1/3/f13ce329-0835-44e7-b110-44decd29b0ad/en-US/<IP_ADDRESS>/arm64/msoledbsql.msi

Have you tested against the current version?

[X] Yes, I've updated Evergreen and tested against the current version.

Have you reviewed the documentation?

[X] Documentation at: https://stealthpuppy.com/evergreen/

I've added Get-MicrosoftOLEDBDriverForSQLServer18 to return the v17 driver. When v20 comes out, then we can create a MicrosoftODBCDriverForSQLServer19, leaving Get-MicrosoftOLEDBDriverForSQLServer to alway return the latest version.


bosh ssh via $BOSH_ALL_PROXY and $BOSH_GW_HOST

I have $BOSH_ALL_PROXY and $BOSH_GW_HOST set - the former to route traffic via the jumpbox, the latter for ssh requests to be routed via an additional gateway. If both are set then I'd like ssh commands to be routed via the jumpbox -> gateway -> instance, please?
My use case here is to bosh ssh into garden containers within a bosh-lite running behind a jumpbox.

What currently happens in this case?

socks5 proxy settings override gateway environment variables and flags for bosh ssh.
see https://github.com/cloudfoundry/bosh-cli/blob/master/ssh/ssh_args.go


chore: Bumped dependency

xmlunit-core 2.9.1 -> 2.10.0

Forgot to update the DEPENDENCIES file again... 🫠


Use ZAS v4.23.0 in ZAT BUMP v3.6.0

:v:
/cc @zendesk/vegemite @zendesk/dingo
Description
We need this in ZAT for when custom objects become available.
Risks

[low] Bumping ZAS in ZAT.

@Mehul-Porwal

BTW does this change the developer experience? Any changes to ZAT/app submission that should be documented on developer.zendesk.com?
Looks good, but pending confirmation on no new documentation is required before merging.

As discussed in person. This does not change the developer experience. This work is mainly for custom objects.
@ocke

If this is only a ZAM change, why do we need to bump ZAT?

As for now this change only affects ZAM, but when custom objects is available, developers want to developers to be able to do zat validate


feature: install vfox

Describe the bug
bluefin-dx needs a good sdk manager like vfox
What did you expect to happen?
there is not one installed
Output of rpm-ostree status
No response
Extra information or context
https://vfox.lhan.me/

another alternative
https://mise.jdx.dev/
maybe put these in documentation instead of installing.  Closing issue


[IR][doc] ONNX IR online doc is showing 'FileNotFoundError'

From https://onnxscript.ai/intermediate_representation/getting_started.html

Now showing DecodeError: Error parsing message. Need to investigate further.


library version

Could you please share the library version of the used keras and tensorflow. I tried to played around with the older versions of keras but there are always some errors. Thanks a lot in advance.

Hello Zhiliang, unfortunately I am not 100% sure of the exact versions I used. If I am not mistaken it should work with Tensorflow 0.10 and Keras 1. I think the lastest version before Keras 2 should be fine, which is 1.2.2. I apologize for not having a more precise answer. Feel free to message me again if this does not help you so that we can try to figure it out.

Hello robert, thanks for reply the message. I tried the tensofrflow 0.10.0 with keras 1.2.2, installing the package with conda install. Here are the message I got:
$ python fast_style_transfer.py --checkpoint_path data/models/candy.h5 --input_path content_imgs/brad_pitt.jpg --output_path test.jpg --use_style_name --gpu -1
Using TensorFlow backend.
Creating pastiche model...
Traceback (most recent call last):
  File "fast_style_transfer.py", line 50, in <module>
    targets=class_targets)
  File "/Users/zhiliangwu/Gitlab/neural-style-keras/model.py", line 63, in pastiche_model
    o = conv(x, 16 * k, kernel_size=9, nb_classes=nb_classes, targets=targets)
  File "/Users/zhiliangwu/Gitlab/neural-style-keras/model.py", line 26, in conv
    o = ReflectionPadding2D(padding=(pad, pad))(x)
  File "/Users/zhiliangwu/miniconda3/envs/style-keras/lib/python3.5/site-packages/keras/engine/topology.py", line 572, in __call__
    self.add_inbound_node(inbound_layers, node_indices, tensor_indices)
  File "/Users/zhiliangwu/miniconda3/envs/style-keras/lib/python3.5/site-packages/keras/engine/topology.py", line 635, in add_inbound_node
    Node.create_node(self, inbound_layers, node_indices, tensor_indices)
  File "/Users/zhiliangwu/miniconda3/envs/style-keras/lib/python3.5/site-packages/keras/engine/topology.py", line 166, in create_node
    output_tensors = to_list(outbound_layer.call(input_tensors[0], mask=input_masks[0]))
  File "/Users/zhiliangwu/Gitlab/neural-style-keras/layers.py", line 17, in call
    return tf.pad(x, pattern, mode='REFLECT')
  File "/Users/zhiliangwu/miniconda3/envs/style-keras/lib/python3.5/site-packages/tensorflow/python/ops/array_ops.py", line 1330, in pad
    name=name)
  File "/Users/zhiliangwu/miniconda3/envs/style-keras/lib/python3.5/site-packages/tensorflow/python/ops/gen_array_ops.py", line 1262, in _mirror_pad
    mode=mode, name=name)
  File "/Users/zhiliangwu/miniconda3/envs/style-keras/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 454, in apply_op
    as_ref=input_arg.is_ref)
  File "/Users/zhiliangwu/miniconda3/envs/style-keras/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 628, in convert_to_tensor
    ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
  File "/Users/zhiliangwu/miniconda3/envs/style-keras/lib/python3.5/site-packages/tensorflow/python/framework/constant_op.py", line 180, in _constant_tensor_conversion_function
    return constant(v, dtype=dtype, name=name)
  File "/Users/zhiliangwu/miniconda3/envs/style-keras/lib/python3.5/site-packages/tensorflow/python/framework/constant_op.py", line 163, in constant
    tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape))
  File "/Users/zhiliangwu/miniconda3/envs/style-keras/lib/python3.5/site-packages/tensorflow/python/framework/tensor_util.py", line 353, in make_tensor_proto
    _AssertCompatible(values, dtype)
  File "/Users/zhiliangwu/miniconda3/envs/style-keras/lib/python3.5/site-packages/tensorflow/python/framework/tensor_util.py", line 290, in _AssertCompatible
    (dtype.name, repr(mismatch), type(mismatch).__name__))
TypeError: Expected int32, got 4.0 of type 'float' instead.

Do you have any idea about it?

It seems to me the problem is not on the libraries, but the fact that you are using python 3. The code was made for python 2 and was not tested on python 3. The line that computes the padding is returning a float because / in python 2 is integer division and in python 3 it is float division. If using python 2.7 is not a problem for you, I would recommend it. Otherwise, changing it to pad = (kernel_size - 1) / 2 should fix the problem. Let me know how it works for you.

Thanks for your reply. It works perfect under Python2.7.
Here is the summary of the requirements:
tensorflow==0.10.0
keras==1.2.2
pillow==5.2.0

Really appreciate your instant reply and great implementation.

No problem! Feel free to contact me if you need anything else.


Video should be pause when player is out of active screen

hello,
I am using videojs-ima where I facing a problem, why video player playing active player screen out.
Please suggest me how to stop this thing when player out of active screen.
Thanks

Hi,
If you're asking for us to pause the video player when it's off-screen, such as when the user scrolls a page and the video is no longer visible, it's not something we support. However, you can try to implement the feature yourself, as we provide the ability to pause and resume ads whenever you need to.

Closing this out as there hasn't been any activity for a while. Feel free to reopen if necessary.


cmd/services: improve help text

The slash separating the two paths is easily confused for another path
separator. Let's make it less ambiguous by using something that isn't
also a path separator.

Thanks @SMillerDev!

Good idea, thanks @carlocab!


Mice saying What? When? Where? etc.

Description
If you get the word jumble disease as a mouse you can speak in simple What When Where How ETC. randomly
Reproduction
get sick with the word jumble disease as a mouse
Screenshots

Probably fixed in https://github.com/space-wizards/space-station-14/pull/15684

Probably fixed in #15684

probably.

cryptobiolin also gives the scrambled accent


rename this repo from "ci-status" to "project-repos"

In https://github.com/ipfs/ci-status/issues/8 we decided to publish this project at project-repos.ipfs.io
Unless there are objections, I will rename this repo from ci-status to project-repos to match.  Same reasoning, and minimizes confusion.

Done; if there are serious objections we can reverse it.

Should we edit the tagline, too?

Yes good idea

SGTM!
On Mon, Dec 14, 2015 at 3:26 PM Harlan T Wood<EMAIL_ADDRESS>wrote:

In #8 https://github.com/ipfs/ci-status/issues/8 we decided to publish
this project at project-repos.ipfs.io
Unless there are objections, I will rename this repo from ci-status to
project-repos to match. Same reasoning, and minimizes confusion.
—
Reply to this email directly or view it on GitHub
https://github.com/ipfs/ci-status/issues/16.


ability to inject ca_bundles from configmap

ca_bundles are public info and there is a trend now make them available in configmaps rather than secrets. Cert-uitls should support injecting ca_bundles from configmaps.
A single configmap to secret injector should suffice as all other injector support secret as source.

This Fixes #41 also when closed.

Going to review if this was completed as part of or #82

@mathianasj can we close this?

I will take a look today to make sure it is present

Need this as well. The The Cluster Network Operator injects certificates across any namespace when an empty ConfigMap is created with the config.openshift.io/inject-trusted-cabundle=true label, but several components like the GitLab Runner Operator expect the ca-bundle within a secret.
Injecting the ca from the above configmap into the secret would be required.

yes, like https://docs.openshift.com/container-platform/4.14/networking/configuring-a-custom-pki.html#certificate-injection-using-operators_configuring-a-custom-pki - just targeting secrets for the storage.


forbidden access to infura

Hi,
I am trying to get access to infura, however I get the following error:
Starting connection to server...
Connected to server!
HTTP/1.1 403 Forbidden
Date: Tue, 15 Dec 2020 13:48:18 GMT
Content-Type: application/json
Content-Length: 163
Connection: close
Vary: Origin
{"jsonrpc":"2.0","id":0,"error":{"code":-32600,"message":"project ID is required","data":{"reason":"project ID not provided","see":"https://infura.io/dashboard"}}}
This is my code:
#include <WiFi.h>
#include <Web3.h>
#define ENV_SSID     "Bloc Multimedia 2"
#define ENV_WIFI_KEY ""
string* INFURA_HOST = new string("mainnet.infura.io");
string* INFURA_PATH = new string("/915c75c2843144a58d78099635e7e02f");
//5ce73750796a46fab5099fbfd423fb9b
Web3 web3(INFURA_HOST, INFURA_PATH);
void web3_example();
void setup() {
Serial.begin(115200);
for(uint8_t t = 4; t > 0; t--) {
Serial.printf("[SETUP] WAIT %d...\n", t);
Serial.flush();
delay(1000);
}
WiFi.begin(ENV_SSID, ENV_WIFI_KEY);

// attempt to connect to Wifi network:
while (WiFi.status() != WL_CONNECTED) {
    Serial.print(".");
    // wait 1 second for re-trying
    delay(1000);
}

Serial.println("Connected to WiFi");

net_example();

}
void loop() {
// put your main code here, to run repeatedly:
}
void web3_example() {
string result = web3.Web3ClientVersion();
Serial.println("web3_ClientVersion");
Serial.println(result.c_str());
}

I have fixed the error by making this modification:
string* INFURA_PATH = new string("/v3/915c75c2843144a58d78099635e7e02f");

Hi! I'm a security researcher @TruffleSecurity. I found a valid API key leaked in a comment in this Issue. I highly recommend rotating the API key immediately (not just deleting the comment). Here's a blog post I wrote on remediating these types of vulnerabilities: https://trufflesecurity.com/blog/remediate-leaked-api-keys-with-key-rotation.If you can't find the leaked API key, you can use the following TruffleHog command to automatically scan for it:trufflehog github --repo https://github.com/<your_username>/<your_reponame> --issue-comments --only-verifiedIf it's not clear where/what the security issue is, please let me know. I'd be happy to help. Please note that the API key might be in the past edit of a comment.(cc @toutou8148)


Fixed & duplicate findings

Hello,
We are using a secret detection tool in our organization and the findings are submitted to defectdojo. However, detected secret does not block the pipeline.

If in the next commit (test in defectdojo context) the secret is not there anymore, is it possible to remove it from DefectDojo completely?
Another question is we want to remove duplicates in engagement-level rather than product-level, how would that be configured?
And finally, is it possible to upload the findings to the existing test (update it completely, removing previous findings) if the test name is already existent in engagement rather that creating tests with duplicate names? That would solve our first question.

Quick answer is appreciated.
Thanks in advance.

For 1. and 3. I suppose you should use reimport/re-uploaded
UI (in test view):

API: /api/v2/reimport-scan/
It will not remove solved but close (mark as mitigated). Automatic removal is not implemented (and also not recommended - you want to have a history of findings for audit).
For 2.
UI (in engagement view):

I agree with @kiblik - reimport is what you want to use for the secrets scans you're asking about.
I'd also look at the API docs built into DefectDojo for the /reimport-scan endpoint especially the response's "delta" and "after" stanzas

@kiblik @mtesauro Thank you for replies! Regarding the second question, does that mean that it should be done for each engagement manually? If I check deduplicate findings and delete duplicates in System Settings, will it be applied in a product level? Because I could not find within engagement or within products option as shown in the documentation. Also, for the first question, I understood that in UI it would have been done manually for each test as well, just to make sure, if I use /re-import API in upload script, will it be applied for all the uploads and no duplicate test names will be created?

Thank you for replies! Regarding the second question, does that mean that it should be done for each engagement manually?

Depends on if you're using the API or UI - for the UI, check this box during imports:

For the API, both the /import-scan & reimport-scan endpoints have this:

If I check deduplicate findings and delete duplicates in System Settings, will it be applied in a product level?

This turns on dedup generally/globally for DefectDojo - it needs to be enabled if your doing product or engagement level dedup

This set the max number of dedups that will be kept in DefectDojo - I usually don't use that unless I'm worried about storage space. The few times I've enabled it, I never set it lower than 5. DefectDojo seems to do better with a few dups around.

Because I could not find within engagement or within products option as shown in the documentation.

Log into the public demo then go to here: https://demo.defectdojo.org/product/1/new_engagement to see the checkbox I screenshot'ed above

Also, for the first question, I understood that in UI it would have been done manually for each test as well, just to make sure, if I use /re-import API in upload script, will it be applied for all the uploads and no duplicate test names will be created?

See my answer about about the checkbox and API boolean parameter.
HTH

@mtesauro Thanks! We use script to upload the results via API, can we only use reimport-scan (not import-scan at all). Will it work fine if there is no previous test with the same name and the results are being uploaded for the first time?

@mtesauro Thanks! We use script to upload the results via API, can we only use reimport-scan (not import-scan at all). Will it work fine if there is no previous test with the same name and the results are being uploaded for the first time?

Yes, for the first/initial reimport, the delta will be all the findings since it's the only import - things like before and after also don't have great values for the first reimport e.g. before will be all zeros.

Hello again, we are facing another issue. We changed import to reimport in script, the issue is when the findings are added, the previous ones are marked mitigated even though they are the same issues. For example, if there were 4 findings and in reimport they still remain, it will mark previously added 4 to mitigated and add another 4 - so mitigated 4 and active 4 findings will be shown. I marked delete duplicates in system settings - but it does not seem to work. Here is the screenshot:

Some things to note about reimport:

Make sure that the scope aka what you test does NOT change from scan to scan e.g. for your secret scanner, restrict the scanner to the same repo when reimporting
reimport is designed to take a 'diff' of each added scan so the overall findings of the test are the net difference between the new and previous scan.  So, using your example:

reimport 1: 4 findings added - net result = 4 active findings
reimport 2: same 4 findings - net results = 4 active findings, 4 marked inactive/mitigated

So it appears from your description above that reimport is doing the right thing,  For example, if you scan the same network segment with Nessus ever week and reimport those scans, you'd expect:

Week 1: 4 findings - net result = 4 active findings
Week 2: 3 findings are the same as week 1 - net results = 3 active findings with 1 marked as mitigated
Week 3: 5 findings, 4 are the same as week 1 & 1 is brand new - net results = 5 active findings (with 1 re-activated that was mitigated in week 2 & 1 new finding)

reimport 2: same 4 findings  - net results = 4 active findings, 4 marked inactive/mitigated - is it possible to do it in a way that if the findings are the same as the previous ones/if they are not mitigated, they just remain as they were (active) and the duplicates do not get added/ previous ones do not get marked "mitigated" ?

The idea behind reimport is to do a continually diff of recurring scans so that those that are active in that test are the only ones you need to worry about. The rest will be activated or mitigated based on if they reappear or disappear from future scan runs.

I understand that the idea behind the reimport is to do a diff of recurring scans however, if the findings are the same as the previous findings, it means that there is no difference, so marking the previously added ones as mitigated and adding the exact same findings creates redundancy and complicates auditing process (monitoring really mitigated findings). If there is no any workaround, is there any other way to achieve what we want? Thanks for your time,


Add some kind of ACL-based sharing with co-coaches

Could be via Firebase database layer, or an API to Google Sheets.

Various ways to go about this.

Use a pure firebase DB layer and implement own ACLs.  This might support multiple coaches having the same view of a single game, but I think it might be a lot of work, and I don't know if there's a lot of value in that.

Rely on Google Drive for ACLs, and use Google Drive's REST API as database.  This might be interesting, if the native format was a Google Sheet, and so player lineups and position setup could be done in the spreadsheet.

A hybrid, where you start with a spreadsheet but dup the data into Firebase DB.  This approach is described in https://sites.google.com/site/scriptsexamples/new-connectors-to-google-services/firebase/tutorials/read-and-write-data-in-firebase-from-apps-script

I'm kind of inclined to have the data live in Google Drive, but maybe the approach in #3 is a good way to transmit the data into Firebase app.  The question is how do we then persist the game data back into the spreadsheet (and is that even an important direction)?

Cloud platform ACLs: https://cloud.google.com/storage/docs/access-control/lists


Akka Cluster Operator v.0.2.0

PR'ing our Master for internal review prior to PR'ing upstream.
Still testing, last possible change is to hyphenate or not in:
      deployments:
        - name: akkaclusteroperator-deployment

Signed-off-by: Edward Callahan<EMAIL_ADDRESS>Thanks submitting your Operator. Please check below list before you create your Pull Request.

Flat operator directory structure is obsolete from 23-rd of October 2019, only nested directory structure will be accepted.

New Submissions

[X] Has you operator nested directory structure?
[N/A] Have you selected the Project Community Operator Submissions in your PR on the right-hand menu bar?
[X] Are you familiar with our contribution guidelines?
[X] Have you packaged and deployed your Operator for Operator Framework?

[X] Is your submission signed?

Updates to existing Operators

[X] Is your new CSV pointing to the previous version with the replaces property?
[X] Is your new CSV referenced in the appropriate channel defined in the package.yaml ?
[X] Have you tested an update to your Operator when deployed via OLM?
[X] Is your submission signed?

Your submission should not

[X] Modify more than one operator
[X] Modify an Operator you don't own
[X] Rename an operator - please remove and add with a different name instead
[X] Submit operators to both upstream-community-operators and community-operators at once
[X] Modify any files outside the above mentioned folders
[WIP] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[X] Description about the managed Application and where to find more information
[X] Features and capabilities of your Operator and how to use it
[X] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[X] Human readable name and 1-liner description about your Operator
[X] Valid category name1
[X] One of the pre-defined capability levels2
[X] Links to the maintainer, source code and documentation
[X] Example templates for all Custom Resource Definitions intended to be used
[X] A quadratic logo

Different error from Travis than with v001.
resolvconf
git.checkout
1.70s$ git clone --depth=50 --branch=ACOv020 https://github.com/lightbend/community-operators.git lightbend/community-operators
0.01s
Setting environment variables from .travis.yml
$ export CHANGE_MINIKUBE_NONE_USER=true
$ export DISTRO_TYPE=upstream
0.01s$ source ~/virtualenv/python3.6/bin/activate
$ python --version
Python 3.6.7
$ pip --version
pip 19.0.3 from /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/pip (python 3.6)
$ source scripts/ci/check-pr $DISTRO_TYPE
fatal: ambiguous argument '3647ddea939e...0bc78c6010f7': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Invalid commit range.

I'd try a push -f to see if  that cures the build problem.  I've seen this happen before with at-different-times commits to a PR.  For some reason that has confused the build system.


fix: pull to refresh indicator

What

Added pull to refresh indicator to all new_product_page.dart and product_list_page.dart

Screenshot
https://user-images.githubusercontent.com/57723319/160268452-80418b3b-0d6b-4b9e-9495-fca5422b782d.mp4
and 1 more screen including a search page and info card
Fixes bug(s)

#1348 and #1337

@M123-dev  had to recreate the pr, there were too many conflicts in reverting the code.
Did the changes as suggested by you on the last pr, please review


DF Settings Clarity: Search Bar Misaligned

Module
DF Settings Clarity 3.1.0
Describe the issue
The size and position of the search bar doesn't actually match what is shown in the readme, which means it doesn't line up with Tidy UI.
Foundry 0.8.7 w/ DFSC 3.1.0

Readme from this git.

To Reproduce

Install and Activate DFSC 3.1.0 and Tidy UI 0.1.23
Go to "Configure Settings"
Observe

Expected behavior
They should match as shown in the readme.
Addendum
Ideally, the search bar would use exactly the same CSS descriptors as the Tidy UI bar, so that skinning modules will pick them both up and reconfigure them the same way.

TidyUI does not have any associated CSS classes. Instead they are querying the element's ID. You'll have to open a ticket with whoever wrote your UI override module as they have added specialized styling just for TidyUI and would have to do the same for Settings Clarity. In the meantime, I will adjust the Settings Clarity layout to contain a generic "searchBox" CSS class that they can potentially target.


Minor cleanups

Remove some commented code
Remove some redundant code
Remove some redundant type definitions
Remove duplicate registration of html diagnostics provider
Avoid default exports

You don't like default exports Hu? ^^


lib/cglm and lib/glfw are missing

about to make a pr to fix makefile and paths, i need these libraries for it to compile, where can i get them?

cd lib/
git clone https://github.com/glfw/glfw.git
git clone https://github.com/recp/cglm.git

Fixed, they have been added as submodules.

Fixed, they have been added as submodules.


[cairo] update to 1.15.6

This also renames static library to cairo.lib (was cairo-static.lib) which should fix #1400.
Additionally, patch was needed to prevent static build from exporting symbols

LGTM! I'm going to run some test builds before merging.

Thanks! Confirmed that gtk still builds in x86-windows and x64-windows-static.


the example 1.2.3-alpha.10.beta.0+build.unicorn.rainbow in README is no longer valid

node
Welcome to Node.js v12.6.0.
Type ".help" for more information.
> const semverRegex = require('semver-regex')
undefined
> semverRegex().test('1.2.3-alpha.10.beta.0+build.unicorn.rainbow')
false
> semverRegex().test('1.2.3-alpha.0')
false
> semverRegex().test('1.2.3-alpha.1')
true

while in semver package, .0 is considered correct and in npm doc we can see this usage

after looking at the history I think #15 is related, then we need to update the example and it will be great to add some notes and an example

But I don't think the mentioned semver clause 9 forbids this because their grammar as well as the given regex suggests that alpha.0 is still valid


enable inputting numbers via pop-ups, at least on mobile

should make entering easier
should do for numbers and for text fields

unnecessary


Lost all of my old images if I follow the docker step

$ dir=/etc/systemd/system/docker.service.d
$ file="$dir/kata-containers.conf"
$ sudo mkdir -p "$dir"
$ sudo test -e "$file" || echo -e "[Service]\nType=simple\nExecStart=\nExecStart=/usr/bin/dockerd -D --default-runtime runc" | sudo tee "$file"
$ sudo grep -q "kata-runtime=" $file || sudo sed -i 's!^(ExecStart=[^$].*$)!\1 --add-runtime kata-runtime=/usr/local/bin/kata-runtime!g' "$file"
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
this will make my existed image lost, because I set custom graph dir

Hi @Allenhaozi - I think you are referring to https://github.com/kata-containers/documentation/blob/master/Developer-Guide.md#update-docker-configuration?
Unfortunately, running the commands in that guide are "at your own risk":

https://github.com/kata-containers/documentation/blob/master/Developer-Guide.md#warning
https://github.com/kata-containers/documentation/blob/master/Developer-Guide.md#assumptions

However, ideally we would either not modify the docker ExecStart=, or we would ensure the existing settings are retained. Were you running dockerd --storage-driver=... ?
/cc @grahamwhaley, @chavafg.

One improvement is to detect any existing docker service file with:
sudo systemctl show -p FragmentPath docker.service

This is because unit files could be placed in /etc/systemd, /usr/lib/systemd, ..., and this should be taken into account to avoid masking out an existing unit file.


workspace widget gates capture volume tab

[ ] Capture volume loads up when array is fully calibrated and point estimates are available.
[ ] capture volume loads when extrinsic calibration is complete

basic functional goals met with recent workspace guide refactors to determine whether to load capture volume tab or not


Unit test

Provides abstraction to run unit tests #21

@lance I've added some code to explain more or less what is my idea for test-framework flag. Let me know wdyt


can't add/update record on ipv4 and ipv6 both

https://github.com/libdns/alidns/blob/4a895238a95da7e97afb4e23a36c8bf4f42a3cc8/provider.go#L77
maybe we should add param type when we query domain record

Thanks for your pointing out. I'll add them later.


action :destroy doesn't work, OR nodes/MACHINE.json not being written out.

It seems that with investigating https://github.com/chef-partners/chef-provisioning-vsphere/pull/41 I discovered that the node/MACHINE.json was not being written out via the allocate_machine method. I have a feeling it's due to the deep_symbolize fix for Cheffish 5. This needs to be investigated further.

I should mention this means the action :destroy does not work either now. We can create the machines via c-p-vsphere, but we can't clean anything up 😭 🐼 .

Converging 1 resources
Recipe: elephant::simple-vmware

machine[vswin1.mintpress.io] action destroy/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/cheffish-13.0.0/lib/cheffish/merged_config.rb:6: warning: toplevel constant Mash referenced by Chef::Mash
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/cheffish-13.0.0/lib/cheffish/merged_config.rb:7: warning: toplevel constant Mash referenced by Chef::Mash
establishing connection to <IP_ADDRESS>

Delete VM [vm/vswin1.mintpress.io]
delete node vswin1.mintpress.io at https://newjjosi1.mintpress.io:8443/organizations/environmint
delete client vswin1.mintpress.io at clients
[2017-06-06T09:57:22+10:00] WARN: Skipping final node save because override_runlist was given

Running handlers:
Running handlers complete
Chef Client finished, 1/1 resources updated in 04 seconds

Non-issue, it seems it was a configuration issue on my test environment.


feat(api): allow move_to to take a Point (RFC)

This is an RFC for something that would streamline some of my code. I often find myself writing protocols with pipette.move_to(types.Location(types.Point(200,100,100), "bla")). E.g. recently to take pictures of the tip with a webcam. I'd like to be able to pass a types.Point directly to move_to. This change automatically converts Points to Locations in move_to. It currently names them "unnamed_location" but it could also include the coordinates.
I can see a bunch of reasons this might strike you as unholy, so do just say that -- it was just easier to make it a PR than an Issue, and I thought I might as well capture something that I encountered as I expect others may too.

Some prior discussion here, too: https://github.com/Opentrons/opentrons/issues/4763

Thanks a lot for the suggestions @sfoster1 and the pointer @SyntaxColoring . For now going to close this in favour of more discussion in the original ticket -- will reopen with changes if this is the consensus way forward.


Origin validation

This my seem odd feature request, but I was wandering about a use case that might be interesting to discuss.
Let's assume I have 100 devices with their own MAC addresses and let's assume that these devices generates their own UUIDs as part of the whole data.
At some point in time those devices send a request to the mother ship (cloud) with the newly generated UUIDs. For example, let's assume that each of those devices generate a small, sub graph, where those UUIDs are important part of the data inside.
Now, when you want to merge the data on the mother ship you'll have to validate that those UUIDs are really generated correctly, by using their own MAC addresses. A possible con might be one device to pretend to be another. Also, if you use timestamp as part of the UUID, you might want to verify that the UUID is generated by using a timestamp (or time interval between X and Y).
Since the package generates the UUIDs it would be a good question is it possible to be performed a symmetric check that validates the UUID by MAC and/or timestamp?
In my example, if I find on the cloud that the UUIDs are not generated with correct MAC or timestamp, I might decide to regenerate the UUIDs to assure data consistency. To generate one on the cloud I have to pass MAC and/or timestamp.
In this particular case I guess there will be needed a change in the constructors to accept MAC and timestamp as arguments (instead of unconditionally search for a network interface with setup MAC address and/or use current timestamp).

Do you still have a need for this feature?
Would most of your needs be filled if you could easily extract the MAC address and time.Time value out of the timestamp, so that you could compare them?
I'm admittedly hesitant to easily allow the injection of a different MAC address or timestamp.

Currently my need is postponed for later time (cloud implementation), but from consistency point of view seems like a good idea. However this is not part of the original RFC.. Also it seems most of my colleagues are using google/uuid anyway.


Docplex is not fully compatible with cplex 20.1

Information

Qiskit Optimization version: NA
Python version: 3.7.9, 3.8.7, 3.9.1
Operating system: macOS 11.2

What is the current behavior?
There are two issues related to docplex as follows.
(1)
Docplex 2.14.186 (May 2020) or older does not work with cplex 20.1 (Jan 2021)
(2)
Docplex 2.16.196 (Nov 2020) or newer does not work without installing cplex. But, cplex is not included as the dependency of docplex. It seems a bug. Because no cplex wheel available for Python 3.9, docplex 2.16.196 or newer does not work with Python 3.9. cplex version also matters.
This change is mentioned as follows.

Changed in 2.16.196 (2020.11):
In docplex.mp:
For solving, docplex.mp now uses the cplex module if it has been installed. If not, docplex.mp checks for the latest installed version of CPLEX Optimization Studio (COS) (using the CPLEX_STUDIO_DIRXXX environment variables) and use the cplex if a COS is found, unless the configuration of the engine states otherwise.
https://pypi.org/project/docplex/#description

Summary of compatibility:

docplex →
2.14.186 or older
2.15.194
2.16.196 or newer

w/ cplex 12.10 (Dec 2019 - Jul 2020)
OK
OK
OK

w/ cplex 20.1 (Jan 2021)
NG
OK
OK

w/o cplex
OK
OK
NG (macOS), OK (Ubuntu, Windows)

cplex 12.10 supports Python 3.6 and 3.7 https://pypi.org/project/cplex/<IP_ADDRESS>/#files
cplex 20.1 supports Python 3.7 and 3.8 https://pypi.org/project/cplex/<IP_ADDRESS>/#files

Steps to reproduce the problem
from docplex.mp.model import Model
a = Model()
x = a.binary_var()
print(a.add_constraint(x <= 1))

Python 3.7, docplex 2.15.194 without cplex
x1 <= 1

Python 3.7, docplex 2.16.196 with cplex 20.1
x1 <= 1

Python 3.7, docplex 2.16.196 without cplex
Traceback (most recent call last):
  File "/Users/ima/envs/test/lib/python3.7/site-packages/docplex/mp/environment.py", line 290, in get_cplex_module
    import cplex  #@UnresolvedImport
ModuleNotFoundError: No module named 'cplex'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c.py", line 2, in <module>
    a = Model()
  File "/Users/ima/envs/test/lib/python3.7/site-packages/docplex/mp/model.py", line 397, in __init__
    self._environment = self._make_environment()
  File "/Users/ima/envs/test/lib/python3.7/site-packages/docplex/mp/model.py", line 174, in _make_environment
    env = Environment.get_default_env()
  File "/Users/ima/envs/test/lib/python3.7/site-packages/docplex/mp/environment.py", line 427, in get_default_env
    Environment._default_env = Environment.make_new_configured_env()
  File "/Users/ima/envs/test/lib/python3.7/site-packages/docplex/mp/environment.py", line 422, in make_new_configured_env
    return Environment(start_auto_configure=True)
  File "/Users/ima/envs/test/lib/python3.7/site-packages/docplex/mp/environment.py", line 84, in __init__
    self.auto_configure(logger=logger)
  File "/Users/ima/envs/test/lib/python3.7/site-packages/docplex/mp/environment.py", line 220, in auto_configure
    self.check_cplex(logger=logger)
  File "/Users/ima/envs/test/lib/python3.7/site-packages/docplex/mp/environment.py", line 328, in check_cplex
    cplex = self.get_cplex_module(logger=logger)
  File "/Users/ima/envs/test/lib/python3.7/site-packages/docplex/mp/environment.py", line 314, in get_cplex_module
    cplex = load_cplex_from_cos_root(loc) if loc else None
  File "/Users/ima/envs/test/lib/python3.7/site-packages/docplex/mp/environment.py", line 286, in load_cplex_from_cos_root
    return load_cplex(full_path, version=version)
  File "/Users/ima/envs/test/lib/python3.7/site-packages/docplex/mp/environment.py", line 261, in load_cplex
    raise FileNotFoundError("Could not load module from %s" % module_location)
FileNotFoundError: Could not load module from /Applications/CPLEX_Studio201/cplex/python/3.7/x86-64osx/cplex/__init__.py

Python 3.8, docplex 2.15.194 with and without cplex
x1 <= 1

Python 3.8, docplex 2.16.196 with cplex 20.1
x1 <= 1

Python 3.8, docplex 2.16.196 without cplex
Traceback (most recent call last):
  File "/Users/ima/envs/test/lib/python3.8/site-packages/docplex/mp/environment.py", line 290, in get_cplex_module
    import cplex  #@UnresolvedImport
ModuleNotFoundError: No module named 'cplex'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c.py", line 2, in <module>
    a = Model()
  File "/Users/ima/envs/test/lib/python3.8/site-packages/docplex/mp/model.py", line 417, in __init__
    self._environment = self._make_environment()
  File "/Users/ima/envs/test/lib/python3.8/site-packages/docplex/mp/model.py", line 181, in _make_environment
    env = Environment.get_default_env()
  File "/Users/ima/envs/test/lib/python3.8/site-packages/docplex/mp/environment.py", line 427, in get_default_env
    Environment._default_env = Environment.make_new_configured_env()
  File "/Users/ima/envs/test/lib/python3.8/site-packages/docplex/mp/environment.py", line 422, in make_new_configured_env
    return Environment(start_auto_configure=True)
  File "/Users/ima/envs/test/lib/python3.8/site-packages/docplex/mp/environment.py", line 84, in __init__
    self.auto_configure(logger=logger)
  File "/Users/ima/envs/test/lib/python3.8/site-packages/docplex/mp/environment.py", line 220, in auto_configure
    self.check_cplex(logger=logger)
  File "/Users/ima/envs/test/lib/python3.8/site-packages/docplex/mp/environment.py", line 328, in check_cplex
    cplex = self.get_cplex_module(logger=logger)
  File "/Users/ima/envs/test/lib/python3.8/site-packages/docplex/mp/environment.py", line 314, in get_cplex_module
    cplex = load_cplex_from_cos_root(loc) if loc else None
  File "/Users/ima/envs/test/lib/python3.8/site-packages/docplex/mp/environment.py", line 286, in load_cplex_from_cos_root
    return load_cplex(full_path, version=version)
  File "/Users/ima/envs/test/lib/python3.8/site-packages/docplex/mp/environment.py", line 261, in load_cplex
    raise FileNotFoundError("Could not load module from %s" % module_location)
FileNotFoundError: Could not load module from /Applications/CPLEX_Studio201/cplex/python/3.8/x86-64osx/cplex/__init__.py

Python 3.8, docplex 2.14.186 with cplex 20.1
Traceback (most recent call last):
  File "c.py", line 4, in <module>
    print(a.add_constraint(x <= 1))
  File "/Users/ima/envs/dev38/lib/python3.8/site-packages/docplex/mp/model.py", line 3518, in add_constraint
    ct = self._add_constraint_internal(ct, ctname)
  File "/Users/ima/envs/dev38/lib/python3.8/site-packages/docplex/mp/model.py", line 2995, in _add_constraint_internal
    self._post_constraint(ct)
  File "/Users/ima/envs/dev38/lib/python3.8/site-packages/docplex/mp/model.py", line 3003, in _post_constraint
    ct_engine_index = self._create_engine_constraint(ct)
  File "/Users/ima/envs/dev38/lib/python3.8/site-packages/docplex/mp/model.py", line 2881, in _create_engine_constraint
    return eng.create_linear_constraint(ct)
  File "/Users/ima/envs/dev38/lib/python3.8/site-packages/docplex/mp/cplex_engine.py", line 937, in create_linear_constraint
    return self._make_cplex_linear_ct(cpx_lin_expr=cpx_linexp,
  File "/Users/ima/envs/dev38/lib/python3.8/site-packages/docplex/mp/cplex_engine.py", line 925, in _make_cplex_linear_ct
    ret_add = fast_add_linear(self._cplex, cpx_lin_expr, cpx_sense, cpx_rhs, cpxnames)
  File "/Users/ima/envs/dev38/lib/python3.8/site-packages/docplex/mp/cplex_engine.py", line 215, in fast_add_linear1290
    cpxenv._apienc) as (rmat, nnz):
AttributeError: 'Environment' object has no attribute '_apienc'

Python 3.9, docplex 2.15.194 without cplex
x1 <= 1

Python 3.9, docplex 2.16.196 without cplex
Traceback (most recent call last):
  File "/Users/ima/envs/dev39/lib/python3.9/site-packages/docplex/mp/environment.py", line 290, in get_cplex_module
    import cplex  #@UnresolvedImport
ModuleNotFoundError: No module named 'cplex'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/ima/tasks/1_2021/qiskit/aqua/tmp/c.py", line 2, in <module>
    a = Model()
  File "/Users/ima/envs/dev39/lib/python3.9/site-packages/docplex/mp/model.py", line 417, in __init__
    self._environment = self._make_environment()
  File "/Users/ima/envs/dev39/lib/python3.9/site-packages/docplex/mp/model.py", line 181, in _make_environment
    env = Environment.get_default_env()
  File "/Users/ima/envs/dev39/lib/python3.9/site-packages/docplex/mp/environment.py", line 427, in get_default_env
    Environment._default_env = Environment.make_new_configured_env()
  File "/Users/ima/envs/dev39/lib/python3.9/site-packages/docplex/mp/environment.py", line 422, in make_new_configured_env
    return Environment(start_auto_configure=True)
  File "/Users/ima/envs/dev39/lib/python3.9/site-packages/docplex/mp/environment.py", line 84, in __init__
    self.auto_configure(logger=logger)
  File "/Users/ima/envs/dev39/lib/python3.9/site-packages/docplex/mp/environment.py", line 220, in auto_configure
    self.check_cplex(logger=logger)
  File "/Users/ima/envs/dev39/lib/python3.9/site-packages/docplex/mp/environment.py", line 328, in check_cplex
    cplex = self.get_cplex_module(logger=logger)
  File "/Users/ima/envs/dev39/lib/python3.9/site-packages/docplex/mp/environment.py", line 314, in get_cplex_module
    cplex = load_cplex_from_cos_root(loc) if loc else None
  File "/Users/ima/envs/dev39/lib/python3.9/site-packages/docplex/mp/environment.py", line 286, in load_cplex_from_cos_root
    return load_cplex(full_path, version=version)
  File "/Users/ima/envs/dev39/lib/python3.9/site-packages/docplex/mp/environment.py", line 261, in load_cplex
    raise FileNotFoundError("Could not load module from %s" % module_location)
FileNotFoundError: Could not load module from /Applications/CPLEX_Studio201/cplex/python/3.9/x86-64osx/cplex/__init__.py

What is the expected behavior?
QuadraticProgram works fine.
Suggested solutions
I recommend to pin 2.15.194 (Jul 2020) for the time being because it is the only docplex that works with any Python 3.6-3.9 even without cplex wheel.

I can fix this as part of #23

We need to include a fix for Aqua 0.8.2 bugfix release. I suggest to pin docplex 2.15.194 for the release. What do you think?

The PR #30 runs all unit tests under Ubuntu for all python versions, with and without cplex and cvxpy with no restrictions.

As Manoel noted above, the unit tests are running with the latest docplex and all seem to be working fine without cplex being installed. Can we review the analysis that led to us pinning an older version in the recent stable release as to how to move forwards here? Are we missing some unit test that would show the failure that the review above hit - maybe its there on Mac but does not manifest in the platform used for the build?

@manoelmarques @woodsp-ibm Thank you for the unit tests without cplex. I notice from the result that the issue of docplex without cplex occurs only on macOS. Docplex 2.20 works fine without cplex on Ubuntu and Windows. I updated the table. So, we need version pin of docplex is necessary for only macOS.

@t-imamichi I see there is a cplex <IP_ADDRESS> that was released and says its from Feb 8th. Is it worth double checking the status of the docplex/cplex ahead of release to see if the version pinning we have in place still makes sense or whether it can be relaxed at all.

Thank you for the notice. I tried them and confirmed that the two NGs in the table remain as of Mar. 26, 2021.
https://github.com/Qiskit/qiskit-optimization/issues/24#issue-803138170

This issue is resolved with docplex 2.21.207.


Update README.md with Node Authentication Article

Add article providing tutorial on how to add authentication to Node.js apps using the Passport.js package, Google drive update as well with information

thanks! 🎉


.security in body must be of type array: "null"

Problem statement
Following the documented example, we have the following in our meta section:
//     Security:
//     - bearer:
//
//     SecurityDefinitions:
//       bearer:
//         type: apiKey
//         name: Authorization
//         in: header

When running the following:
swagger generate spec -m --base-path ./server/http -o resources/swagger.json
swagger validate resources/swagger.json

I get:
- paths./deploy/{Namespace}.post.security in body must be of type array: "null"
- paths./deploy/{Namespace}.get.security in body must be of type array: "null"
... one for every path ...

This just started after fetching go-swagger HEAD today.
I've tried  - bearer and  - bearer: [] to no avail.
Swagger specification
Steps to reproduce
Environment
swagger version: dev
go version: go1.9.2 linux/amd64
OS: Linux 4.9.65-1-lts x86_64

Fixed here yesterday: https://github.com/go-openapi/spec/pull/40


Make to json for clob and blob more robust

Currently, down-converting Ion blobs and clobs to JSON strings involves getting the text Ion representation of the values and chopping off the {{, {{", etc. This is fragile because it relies on a canonical text representation, which isn't guaranteed. A more robust technique would be to reuse the code from ion-rust that creates the text representation of the blob/clob context without the surrounding syntax.
See #44

This was fixed by #52. blob and clob are now transcribed to JSON by directly encoding their &[u8] data using the base64 crate.


Watson crash for get_SystemBackdrop

Microsoft PowerToys version
0.45
Running as admin

[ ] Yes

Area(s) with issue?
Settings
Steps to reproduce
via watson.
Steps to fix is 2.6.2+ for WinUI
✔ Expected Behavior
no crashing :)
❌ Actual Behavior
watson sees a crash by WinUI
Other Software
No response

This has resolved with 0.47 release


In-line Images are not displayed

Summary
Upon referencing in-line images like ![ {alt text} ]( {URL of image}  "{Hover text} " ), no image is displayed. Instead one encounters the 'source code'.
Environment Information

Device Name: iPhone 6s
OS Version: iOS 10.3
Mattermost App Version: 1.0 (Build 39)
Mattermost Server Version: 3.10.0 (Build 3.10.0)

Steps to reproduce
Post some in-line image
Expected behavior
Expected to view image from source URL.
Observed behavior
Source code was viewed instead

Thanks @ea396!
We still need to add support for displaying inline images, we have a ticket here to track: https://mattermost.atlassian.net/browse/RN-173


fix: add support for remote audio files

Signed-off-by: anna-charlotte<EMAIL_ADDRESS>Goals:
As of right now, only local audio files can be handled as part of a Document, we want to extend support for remote audio files.
The following code snippet currently fails with a FileNotFoundError:
from docarray import dataclass, Document, DocumentArray
from docarray.typing import Image, Text, Audio, Video, Blob

@dataclass
class MMDoc:
	audio: Audio = None

aud_file = MMDoc(audio='https://p.scdn.co/mp3-preview/4d26180e6961fd46866cd9106936ea55dfcbaa75?cid=774b29d4f13844c495f206cafdad9c86')
doc = Document(aud_file)

Goals:

[ ] add support for remoteaudio files
[ ] add remote audio file to test
[ ] check and update documentation, if required. See guide

Codecov Report
Base: 88.47% // Head: 77.12% // Decreases project coverage by -11.34% :warning:

Coverage data is based on head (f47f800) compared to base (6ec0cf5).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #933       +/-   ##
===========================================
- Coverage   88.47%   77.12%   -11.35%
===========================================
  Files         155      155
  Lines        8009     8018        +9
===========================================
- Hits         7086     6184      -902
- Misses        923     1834      +911

Flag
Coverage Δ

docarray
77.12% <100.00%> (-11.35%)
:arrow_down:

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

Impacted Files
Coverage Δ

docarray/document/mixins/audio.py
100.00% <100.00%> (+13.33%)
:arrow_up:

docarray/array/mixins/dataloader/helper.py
0.00% <0.00%> (-100.00%)
:arrow_down:

docarray/array/mixins/embed.py
9.89% <0.00%> (-82.42%)
:arrow_down:

docarray/array/mixins/evaluation.py
8.33% <0.00%> (-80.13%)
:arrow_down:

docarray/array/mixins/reduce.py
26.92% <0.00%> (-73.08%)
:arrow_down:

docarray/array/mixins/io/pushpull.py
23.07% <0.00%> (-70.09%)
:arrow_down:

docarray/array/mixins/io/csv.py
23.68% <0.00%> (-65.79%)
:arrow_down:

docarray/array/mixins/io/dataframe.py
41.66% <0.00%> (-58.34%)
:arrow_down:

docarray/array/storage/memory/find.py
37.50% <0.00%> (-57.82%)
:arrow_down:

docarray/array/mixins/sample.py
45.45% <0.00%> (-54.55%)
:arrow_down:

... and 52 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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


Mob Protector

When I'm in the dimension Promenade of the Condemned everything work perfectly fine but whenever a protector spawn near me the game instantly crash.

Fixed already #73
Either update Mine Cells to the latest version (both for 1.19.2 and 1.20.1), or downgrade Fabric Loader to 0.14.x


Update taxonomy template

Aim:  A robot template for generation of OWL taxonomy that preserves the metadata found on nodes in the original taxonomy.
Spec: Extend the current robot template to add the following properties as http://n2o.neo/custom/. e.g. http://n2o.neo/custom/cell_set_preferred_alias:
cell_set_preferred_alias , original_label , cell_set_label , cell_set_aligned_alias , cell_set_additional_alias , cell_set_alias_assignee, cell_set_alias_citation.  In the original JSON, multiple entries are separated by a |.  These should be split into separate annotations.
Also store the whole node JSON as a JSON string under http://n2o.neo/custom/node_metadata
Example node metadata:
{
                                              "members": 3,
                                              "midpoint": 0.75,
                                              "height": 0.0376,
                                              "label": "",
                                              "edgePar.col": "#000000",
                                              "edgePar.lwd": 2,
                                              "edgePar.conf": 1,
                                              "cell_set_preferred_alias": "",
                                              "original_label": "n11",
                                              "cell_set_label": "RNAseq 002-004",
                                              "cell_set_accession": "CS202002013_127",
                                              "cell_set_aligned_alias": "",
                                              "cell_set_additional_alias": "",
                                              "cell_set_alias_assignee": "Zizhen Yao",
                                              "cell_set_alias_citation": "10.1101/2<IP_ADDRESS>0558",
                                              "cell_set_structure": "primary motor cortex",
                                              "cell_set_ontology_tag": "UBERON:0001384",
                                              "taxonomy_id": "CCN202002013",
                                              "species": "Mouse",
                                              "modality": "RNAseq",
                                              "_row": "n11"
                                            }

@hkir-dev - please review

change implemented, please see new table

observed an nconsistency in the dendorgram json files. In CCN202002013.json property name is "cell_set_additional_alias" but in other jsons it is "cell_set_additional_aliases"

According to this https://github.com/obophenotype/brain_data_standards_ontologies/blob/master/doc/dendrogram_spec.md (supplied by Jeremy), it should be plural. As a quick fix, I'd change the keys in CCN202002013.json.  If we continue to use JSON files shared informally with us, we should write a JSON schema validator to automate reports of non-compliant files. This might become unnecessary once we have access to the Neo4J taxonomy database.


Support for other maps in TextureModule

PR related to #156 issue.

Added textures/phong example. [See image below]

Added Label class to UTILS. Can be useful for further examples.

Added some textures

TextureModule

Added functionality to support multiple entities
Added type parameter that defines relationship between current texture and its place in material.

textures/phong example:

Coverage decreased (-0.01%) to 56.947% when pulling 6d0b0fbe75fafd4adc586d0f88a2f711647192a3 on #156 into 8899f47fdfa35dd27f796763628c64e9647e03dd on beta.


The system requirements are not satisfied

I got a sudden issue with VT-x enables VMs on my VMWare saying not supported on this processor.
when tried to uninstall and reinstall I got this message in %temp% log file

Version: 7.6.5
Execute: C:\Program Files\Intel\HAXM\checktool.exe --verbose
CPU vendor          *  GenuineIntel
Intel64 supported   *  Yes
VMX supported       -  No
VMX enabled         -  No
EPT supported       -  No
NX supported        *  Yes
NX enabled          *  Yes
Hyper-V disabled    -  No
OS version          *  Windows 10.0.19042
OS architecture     *  x86_64
Guest unoccupied    *  Yes. 0 guest(s)
The system requirements are not satisfied.
p.s tried to install the latest got the same error.

Thanks for your question. Could you check your Hyper-V status first? This wiki page may help you to resolve installation issues.

@wcwang thanks for reply. Hyper-v is disabled. Is the *.sys file suppose to boot with the OS?

That's true. The HAXM service will start with the host OS. Could you check the feature of Windows Sandbox status further? It has to be disabled too.

Having the same issue!  Hyper-v is disabled, Virtualization is enabled in BIOS.  I had it working and noticed there was a new HAXM so I updated and now it's not working.  I did full uninstall and cleanup of old HAXM files and folders, but still having this issue.
Version: 7.7.0
CPU vendor          *  GenuineIntel
Intel64 supported   *  Yes
VMX supported       -  No
VMX enabled         -  No
EPT supported       -  No
NX supported        *  Yes
NX enabled          *  Yes
Hyper-V disabled    -  No
OS version          *  Windows 10.0.19043
OS architecture     *  x86_64
Guest unoccupied    *  Yes. 0 guest(s)

Thanks for your question. Could you check your Hyper-V status first? This wiki page may help you to resolve installation issues.

That's true. The HAXM service will start with the host OS. Could you check the feature of Windows Sandbox status further? It has to be disabled too.

Tried it, didn't work.

@aaqeel87, I noticed that your CPU does not support EPT. HAXM can only be installed on the CPU that supports EPT. You may refer to the specification of your CPU model further. Thanks.

@wcwang it's been working fine for a year or so! not sure what happened, could be windows update. Either way I had to restore windows just to get rid of it. Thanks for keeping up with us.

@wcwang getting same issue, new Thinkpad X1 with 1135G7 which supports EPT according to Intel spec

@rosghub, thanks for your report. Could you find the installation log in %TEMP% folder first and check your system environment according to the wiki page?

@wcwang my issue was resolved by executing the bcdedit command for the Hyper-V check. The install completed successfully after rebooting.
This was my complete log in case it helps anyone else:

Output folder: C:\Program Files\Intel\HAXM
Extract: checktool.exe
Execute: C:\Program Files\Intel\HAXM\checktool.exe --verbose
CPU vendor          *  GenuineIntel
Intel64 supported   *  Yes
VMX supported       -  No
VMX enabled         -  No
EPT supported       -  No
NX supported        *  Yes
NX enabled          *  Yes
Hyper-V disabled    -  No
OS version          *  Windows 10.0.19042
OS architecture     *  x86_64
Guest unoccupied    *  Yes. 0 guest(s)
Execute: cmd.exe /c type

Thanks for your reply. Hyper-V cannot be re-enabled even after installing HAXM. HAXM cannot coexist with Hyper-V or WSL.

Having the same issue! Hyper-v is disabled, Virtualization is enabled in BIOS. I had it working and noticed there was a new HAXM so I updated and now it's not working. I did full uninstall and cleanup of old HAXM files and folders, but still having this issue.
Version: 7.7.0
CPU vendor * GenuineIntel
Intel64 supported * Yes
VMX supported - No
VMX enabled - No
EPT supported - No
NX supported * Yes
NX enabled * Yes
Hyper-V disabled - No
OS version * Windows 10.0.19043
OS architecture * x86_64
Guest unoccupied * Yes. 0 guest(s)

I'm facing the same issue. I'm using Intel NUC8i5BEH with virtualization enabled in BIOS. I also have disabled Hyper-V, WIndows Hypervisor Platform and Windows Sandbox. However, I have WSL and VMware installed, but after checking, it seems like I have WSL version 1, not version 2.

Having the same issue! Hyper-v is disabled, Virtualization is enabled in BIOS. I had it working and noticed there was a new HAXM so I updated and now it's not working. I did full uninstall and cleanup of old HAXM files and folders, but still having this issue.
Version: 7.7.0
CPU vendor * GenuineIntel
Intel64 supported * Yes
VMX supported - No
VMX enabled - No
EPT supported - No
NX supported * Yes
NX enabled * Yes
Hyper-V disabled - No
OS version * Windows 10.0.19043
OS architecture * x86_64
Guest unoccupied * Yes. 0 guest(s)

I'm facing the same issue. I'm using Intel NUC8i5BEH with virtualization enabled in BIOS. I also have disabled Hyper-V, WIndows Hypervisor Platform and Windows Sandbox. However, I have WSL and VMware installed, but after checking, it seems like I have WSL version 1, not version 2.

@KygekDev ,please try to disable hyper-V by 'bcedit /set hypervisorlaunchtype off' in terminal with admin account, then reboot your NUC and try again.

@wayne-ma Tried that and it didn't solve the issue (still giving the same error and output).

I managed to solve the issue by disabling Secure Boot on the BIOS and setting 'Turn on Virtualization Based Security' on gpedit -> Computer Configuration -> Administrative Templates -> System -> Device Guard to Disabled.
Please let me know if it solves your issue too.

I turned on the virtualization and it is not still working

After i installed windows 11, i got an error saying that HAXM installation failed in android studio.

I tried that HAXM works with Windows11. Could you open a new ticket for your issue? Seems it is difference with this one. Appreciate if you could provide more details.
BTW, please also double check if you enabled VT in BIOS and disabled Hyper-V.

I turned on the virtualization and it is not still working

Please double check if you disabled HyperV. Could you open a new ticket for your issue? Seems it is difference with this one. Appreciate if you could provide more details.

some fox said that you should turn off core isolation in your windows 11 settings. and try. but it did not work for me. also u have install wsl2 going on windows PowerShell type -> wsl  --install. let install successfully. it did not work for me but it works for most of people.

I figured out my issues. make sure your windows features looks like this. turn off your core isolations. try it it does not work install wsl  --install in PowerShell. it will work.