Fix references to history.txt

Depends on the last commits of https://github.com/openmicroscopy/openmicroscopy/pull/5883

Merging as per openmicroscopy/openmicroscopy#5883 to complete the auto-generated documentation PR


Remove travis directory

This PR removes travis folder with some helper commands/files.
p.s. missed in https://github.com/amphp/amp/pull/372

Thanks!


Question: Battery life?

I really appreciate this project. Thank you for sharing! If you have a second I'm really curious what the battery life has been doing this? Or have you kept it plugged in?

Same question here :) I have "plugged on" weather dashboard (https://github.com/matopeto/kindle-weather-dashboard) and i wonder if this project can be replacement without cable

Same question here :) I have "plugged on" weather dashboard (https://github.com/matopeto/kindle-weather-dashboard) and i wonder if this project can be replacement without cable

I haven't yet run a full charge, but so far for me it consumes about 3-4% battery per day. I'm refreshing the screen every 30 minutes for 10 hours a day. The remaining hours the Kindle is suspended.
I expect the actual battery usage depends mostly on the number of screen refreshes per day. Refreshing an e-ink display is apparently quite power consuming.

I haven't yet run a full charge, but so far for me it consumes about 3-4% battery per day. I'm refreshing the screen every 30 minutes for 10 hours a day. The remaining hours the Kindle is suspended.
I expect the actual battery usage depends mostly on the number of screen refreshes per day. Refreshing an e-ink display is apparently quite power consuming.

Closing this for now. Feel free to re-open if you have any other questions about battery life.

FYI: Kindle DX, offline refresh (only pick random image from storage and show it), refresh every hour - battery life: 24 days

Two more data points:

Kindle4NT refreshing every 30 minutes during office hours 5 days a week (about 100 screen refreshes per week), fetching an online image. Battery endures about 30 days.
Kindle4NT refreshing 4 times a day, 7 days a week (28 refreshes per week), fetching an online image. Battery also endures about 30 days.

I haven't looked at the remaining battery capacity of both devices, but I assume the second has a bit worse battery condition. In any case still happy charging only once per month :-)


harfbuzz wrap is not functional, and as such should be removed from wrapdb

harfbuzz wrap is not functional, and as such should be removed from wrapdb

Harfbuzz upstream ships with meson build files now, so we could either sync with those or remove the wrapdb version. However, we don't really have a migration plan for people who have been using it already, do we?


feat(ComponentExample): add show html button to docs

It is very helpful to see the rendered HTML output for examples.  I find I am constantly drilling through the dev tools to very the output of example markup.
This PR adds an HTML5 logo icon button next to the code button for all examples.  You can now toggle the JSX and/or the HTML into view:

Current coverage is 98.86% (diff: 100%)

Merging #547 into master will not change coverage

@@             master       #547   diff @@
==========================================
  Files           108        108
  Lines          1764       1764
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1744       1744
  Misses           20         20
  Partials          0          0

Powered by Codecov. Last update 147a70d...189d9d3

Released in<EMAIL_ADDRESS>thanks!


Cloud Assembly error running maven plugin

Using the v2.1.0 maven plugin, when building the code I get an error saying:
[ERROR] @jsii/kernel.RuntimeError: Error: Cloud assembly schema version mismatch: Maximum schema version supported is 31.0.0, but found 32.0.0
I have imported the 2.88.0 version of the CDK.  Is this plugin limited to a specific version of the AWS CDK?  If I change to an earlier version of it, I not longer get this error.  If there is a dependency, can this be published somewhere?

@mjdinsmore Could you try the release v2.1.1? I just bumped to the latest version of JSII yesterday, just forgot to publish the release on GitHub Releases.

That solved it. Thanks for the quick turnaround!


Add threading info to documentation

Just some suggested changes. I was hitting some database is locked errors myself and it took a while to figure out what was up based on the current documentation. Figured I'd add some extra information about busyTimeout and busyHandler here.

Thanks for the pull!
This is actually a great topic for discussion Maybe the smarter default is to have a handler? I see the appeal of the library working in a vanilla state matching the core beneath it, but other libs like FMDB already set a default handler, and it's easy enough to nil out or override. What do you think?

I would love to see a default handler! I don't have any experience with FMDB (only Core Data) so I can't really speak to what expectations people coming from that might have, but seeing as SQLite.swift is a higher level library, I don't think that sensible defaults would be a problem.
I think part of the problem I had was that the database is locked error isn't super helpful. The official docs don't make any mention of the sqlite3_busy_timeout() or sqlite3_busy_handler() calls, nor does the sync<T>() method of Connection, so it wasn't until I explored that class a little more fully until I realized I even had the option.
That said, a default which points out that these properties exist and can be used would likely go a long way in helping others resolve similar issues.

Oh and thanks for the quick merge! :+1:


Fix 'Save & Continue' functionality in grading

This commit fixes the "Save & Continue" button in grading to consistently bring you to the correct page.
Previously, the function updated the URL with the wrong value. Now, the function will simply try to get the current URL, and add 1 to the question number

Pull Request Test Coverage Report for Build 3079

2 of 16 (12.5%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.08%) to 36.472%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/mocks/backend.ts
1
8
12.5%

src/sagas/backend.ts
1
8
12.5%

Totals

Change from base Build 3074:
-0.08%

Covered Lines:
2585

Relevant Lines:
6335

💛  - Coveralls

through componentDidUpdate of  anyway.
const currentQuestion = yield select(
(state: IState) => state.workspaces.grading.currentQuestion
);
yield history.push(/academy/grading/${submissionId}/${currentQuestion + 1});

OK! No problem, will try this instead

OK! No problem, will try this instead

I just realised I didn't really explain my preference here haha. Whilst I can't say I like the solution to use currentQuestion from the Redux store, Redux Saga here is a middleware and as such should only observe and interface with the store, not the browser window. This minimises additional coupling between the different layers of components (structural, presentational and behavioural), plus it avoids the use of regex.
Fun out-of-topic reading: regex is powerful, but also pretty dangerous if not written correctly
https://blog.cloudflare.com/details-of-the-cloudflare-outage-on-july-2-2019/

Yes, this was the intention. If the saving fails, the comment would not be discarded

Okay, nice! LGTM, so I'll merge it in.


Appears that Refresh Token expires?

Hi team. First off, thanks for the great project.
We generated a token via the API (/security/login) which includes an access + refresh token. We stored the output of these as secure credentials in our CI environment. Things have been working great with this script in CI for the past 2 weeks. Then, all of a sudden we're getting 401 Unauthorized responses for /security/refresh calls.
Nothing has changed in our environment / users-wise.
I'm curious if the refresh tokens only last for 2 weeks now? Is there a way to generate longer lived API tokens somehow?
This issue is likely outside the scope of this project per-say; however, I couldn't find very detailed information on the API access tokens anywhere else and was curious if others had experienced this or had a workaround to generate tokens that could persist in CI at some longer/indefinite period.
/ping @one-data-cookie
/cc @bkimjin

Hey @virgofx, Superset uses flask-jwt-extended for managing access/refresh tokens. You can configure the refresh token expiry using the JWT_REFRESH_TOKEN_EXPIRES environment variable.
Docs: https://flask-jwt-extended.readthedocs.io/en/stable/options.html#jwt-refresh-token-expires

Thanks so much @sweco ! This documentation helps and is perfect for us to resolve locally. 🎉


SSDB: Huge transaction execution on multiple nodes caused SSDB connection exception

Exception 1
System.TimeoutException: Redis Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use.
   at NServiceKit.Redis.PooledRedisClientManager.GetReadOnlyClient()
   at NServiceKit.Redis.RedisClientManagerCacheClient.Get[T](String key)
   at AElf.Database.RedisDatabase.GetAsync(String key) in /home/aelf/github/AElf/AElf.Database/RedisDatabase.cs:line 21
   at AElf.Kernel.Storages.StateStore.GetAsync(StatePath path) in /home/aelf/github/AElf/AElf.Kernel/Storages/StateStore.cs:line 61
System.TimeoutException: Redis Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use.
   at NServiceKit.Redis.PooledRedisClientManager.GetReadOnlyClient()
   at NServiceKit.Redis.RedisClientManagerCacheClient.Get[T](String key)
   at AElf.Database.RedisDatabase.GetAsync(String key) in /home/aelf/github/AElf/AElf.Database/RedisDatabase.cs:line 21
   at AElf.Kernel.Storages.StateStore.GetAsync(StatePath path) in /home/aelf/github/AElf/AElf.Kernel/Storages/StateStore.cs:line 61
System.TimeoutException: Redis Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use.
   at NServiceKit.Redis.PooledRedisClientManager.GetReadOnlyClient()
   at NServiceKit.Redis.RedisClientManagerCacheClient.Get[T](String key)
   at AElf.Database.RedisDatabase.GetAsync(String key) in /home/aelf/github/AElf/AElf.Database/RedisDatabase.cs:line 21
   at AElf.Kernel.Storages.StateStore.GetAsync(StatePath path) in /home/aelf/github/AElf/AElf.Kernel/Storages/StateStore.cs:line 61
System.TimeoutException: Redis Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use.
   at NServiceKit.Redis.PooledRedisClientManager.GetReadOnlyClient()
   at NServiceKit.Redis.RedisClientManagerCacheClient.Get[T](String key)
   at AElf.Database.RedisDatabase.GetAsync(String key) in /home/aelf/github/AElf/AElf.Database/RedisDatabase.cs:line 21
   at AElf.Kernel.Storages.StateStore.GetAsync(StatePath path) in /home/aelf/github/AElf/AElf.Kernel/Storages/StateStore.cs:line 61

Server configuration problem, fix it. Wait a few days to see if it is reproduced.

follow this config ssdb: http://ssdb.io/docs/config.html
follow this script config server: https://gist.github.com/luckydev/b2a6ebe793aeacf50ff15331fb3b519d

After change configuration, the issue not reproduced and close the issue.


Encapsulate waiting for write connection in Container.proposeCodeDetails

Related to #1539.
It might be nice if proposeCodeDetails waited for write connection before proposing. It needs to run the Code Loader compare with the quorum value at that point in time anyway.
It could also try to consolidate handling race conditions with proposing code. It should probably pull code directly from UpgradeManager. Or maybe we can just use UpgradeManager?

Is this same as https://github.com/microsoft/FluidFramework/issues/1539 ?

Is this same as https://github.com/microsoft/FluidFramework/issues/1539 ?

I think so. I think that issue is a more robust solution, but this issue is just a part of the problem.


Storing ESP_LOG into SPIFFS with esp_log_set_vprintf would cause other tasks to overflow (IDFGH-12149)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v5.1.1-577-g6b1f40b9bf-dirty
Espressif SoC revision.
ESP32
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-PICO-MINI-02
Power Supply used.
USB
What is the expected behavior?
I expect all tasks to not overflow and work as it would like before adding the logging to spiffs.
What is the actual behavior?
Other tasks overflowed.
Steps to reproduce.
The code for initializing and start logging into SPIFFS:
// This function will be called by the ESP log library every time ESP_LOG needs to be performed.
//      @CRITICAL Do NOT use the ESP_LOG* macro's in this function ELSE recursive loop and stack overflow! So use here printf() instead for logging.
int spiffs_log_vprintf(const char *fmt, va_list args)
{
    static const uint32_t WRITE_CACHE_CYCLE = 100;
    static uint32_t counter = 0;

    // Write to SPIFFS
    if (log_file == NULL) {
        printf("ABORT. file handle log_file is NULL\n");
        return -1;
    }

    int iresult = vfprintf(log_file, fmt, args);
    if (iresult < 0) {
        printf("ABORT. failed vfprintf() err %i\n", iresult);
        return iresult;
    }

    // Smart commit after x writes
    counter++;
    if (counter % WRITE_CACHE_CYCLE == 0) {
        /////printf("fsync'ing log file on SPIFFS (WRITE_CACHE_PERIOD=%u)\n", WRITE_CACHE_CYCLE);
        fsync(fileno(log_file));
    }

    // ALSO Write to stdout!
    return vprintf(fmt, args);
}

esp_err_t log_spiffs_init()
{
    ESP_LOGI(TAG, "Initializing SPIFFS for logging");

    esp_vfs_spiffs_conf_t conf = {
        .base_path = "/log",
        .partition_label = "log",
        .max_files = 5,
        .format_if_mount_failed = true
    };

    // Use settings defined above to initialize and mount SPIFFS filesystem.
    // Note: esp_vfs_spiffs_register is an all-in-one convenience function.
    esp_err_t ret = esp_vfs_spiffs_register(&conf);

    if (ret != ESP_OK) {
        if (ret == ESP_FAIL) {
            ESP_LOGE(TAG, "Failed to mount or format filesystem");
        } else if (ret == ESP_ERR_NOT_FOUND) {
            ESP_LOGE(TAG, "Failed to find SPIFFS partition");
        } else {
            ESP_LOGE(TAG, "Failed to initialize SPIFFS (%s)", esp_err_to_name(ret));
        }
        return ret;
    }

    size_t total = 0, used = 0;
    ret = esp_spiffs_info(conf.partition_label, &total, &used);
    if (ret != ESP_OK) {
        ESP_LOGE(TAG, "Failed to get SPIFFS partition information (%s). Formatting...", esp_err_to_name(ret));
        esp_spiffs_format(conf.partition_label);
        return ret;
    } else {
        ESP_LOGI(TAG, "Partition size: total: %d, used: %d", total, used);
    }

    // Check consistency of reported partiton size info.
    if (used > total) {
        ESP_LOGW(TAG, "Number of used bytes cannot be larger than total. Performing SPIFFS_check().");
        ret = esp_spiffs_check(conf.partition_label);
        // Could be also used to mend broken files, to clean unreferenced pages, etc.
        // More info at https://github.com/pellepl/spiffs/wiki/FAQ#powerlosses-contd-when-should-i-run-spiffs_check
        if (ret != ESP_OK) {
            ESP_LOGE(TAG, "SPIFFS_check() failed (%s)", esp_err_to_name(ret));
            return ret;
        } else {
            ESP_LOGI(TAG, "SPIFFS_check() successful");
        }
    }

    // Open log file
    log_file = fopen(LOG_PATH, "at"); // a=append t=textmode
    if (log_file == NULL) {
        ESP_LOGE(TAG, "Failed to open log file");
        return ESP_FAIL;
    }

    // Redirect ESP_LOG
    ESP_LOGI(TAG, "Redirecting ESP_LOG to SPIFFS log file (also keep sending logs to UART0)");
    esp_log_set_vprintf(&spiffs_log_vprintf);

    // Put BEGIN marker in the logs
    ESP_LOGI(TAG, "##########BEGIN##########");

    // Mark initialized
    log_initialized = true;

    return ESP_OK;
}

Added log_spiffs_init() in app_main.c after nvs_flash_init()
Debug Logs.
***ERROR*** A stack overflow in task XXX has been detected.

Backtrace: 0x40081cb6:0x3ffd6250 0x400944c1:0x3ffd6270 0x40094c1a:0x3ffd6290 0x400953ae:0x3ffd6310 0x400945f8:0x3ffd6340 0x400945aa:0x00000000 |<-CORRUPTED
0x40081cb6: panic_abort at /home/espuser/esp/esp-idf/components/esp_system/panic.c:452

0x400944c1: esp_system_abort at /home/espuser/esp/esp-idf/components/esp_system/port/esp_system_chip.c:84

0x40094c1a: vApplicationStackOverflowHook at /home/espuser/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:581

0x400953ae: vTaskSwitchContext at /home/espuser/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3728

0x400945f8: _frxt_dispatch at /home/espuser/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/portasm.S:450

0x400945aa: _frxt_int_exit at /home/espuser/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/portasm.S:245

### More Information.

We are trying to upload the ESP_LOG logging information to AWS IoT. Our approach is to first store logs into SPIFFS and send to AWS IoT at some point.

Following this [guide for sdcard](https://gist.github.com/igrr/82055d824cbbc521932f32217e0710b9) and this [spiffs logging example](https://github.com/pantaluna/esp32-mjd-starter-kit/blob/master/Projects/esp32_spiffs_basics/main/spiffs_basics_main.c#L40).

2. Your spiffs_log_vprintf doesn't guard against re-entry, which may happen for example if SPIFFS or esp_flash layers call ESP_LOGE while handling an attempt to write to the log file. (This is not happening in your case yet, but is an issue still.)

@igrr Thank you for your insight, and how to guard against re-entry?

and how to guard against re-entry?

Using a thread-local variable is one of the options:

int custom_vprintf(const char *format, va_list args)
{
    static __thread bool logging = false;
    if (logging) {
        // We have re-entered custom_vprintf. Skip writing to a file.
        return vprintf(format, args);
    } else {
        logging = true;
        // save the log line to a file
        ...
        logging = false;
        return vprintf(format, args);   // also log to UART, or alternatively just return the number of characters written.
    }
}

Regarding the UTF-8 issue, I'm sorry, I don't understand the issue. I understand each sentence you wrote separately, but they are not coming together to form a single picture. Could you please explain the issue in a more detailed way? Maybe if you can attache a piece of code which demonstrates the issue it will be better.

@igrr , here's an example of what I mean by it:
What is seen on the txt file:
================================

HEAP in DRAM: 139688

====== Heap Trace: 3 records (100 capacity) ======

    16 bytes (@ 0x3ffc10fc, Internal) allocated CPU 0 ccount 0x4b316714 caller 0x40152807:0x401528b6

0x40152807: mem_malloc at /home/espuser/esp/esp-idf/components/lwip/lwip/src/core/mem.c:209
0x401528b6: do_memp_malloc_pool at /home/espuser/esp/esp-idf/components/lwip/lwip/src/core/memp.c:254

    16 bytes (@ 0x3ffc1110, Internal) allocated CPU 0 ccount 0x4b3189cc caller 0x40152807:0x401528b6

0x40152807: mem_malloc at /home/espuser/esp/esp-idf/components/lwip/lwip/src/core/mem.c:209
0x401528b6: do_memp_malloc_pool at /home/espuser/esp/esp-idf/components/lwip/lwip/src/core/memp.c:254

    16 bytes (@ 0x3ffc1d8c, Internal) allocated CPU 0 ccount 0x4b31c008 caller 0x40152807:0x401528b6

0x40152807: mem_malloc at /home/espuser/esp/esp-idf/components/lwip/lwip/src/core/mem.c:209
0x401528b6: do_memp_malloc_pool at /home/espuser/esp/esp-idf/components/lwip/lwip/src/core/memp.c:254

====== Heap Trace Summary ======

What is seen on the terminal output:
================================
HEAP in DRAM: 139688
====== Heap Trace: 3 records (100 capacity) ======
    16 bytes (@ 0x3ffc10fc, Internal) allocated CPU 0 ccount 0x724300f4 caller 0x40152807:0x401528b6
0x40152807: mem_malloc at /home/espuser/esp/esp-idf/components/lwip/lwip/src/core/mem.c:209
0x401528b6: do_memp_malloc_pool at /home/espuser/esp/esp-idf/components/lwip/lwip/src/core/memp.c:254

    16 bytes (@ 0x3ffc1110, Internal) allocated CPU 0 ccount 0x724328b4 caller 0x40152807:0x401528b6
0x40152807: mem_malloc at /home/espuser/esp/esp-idf/components/lwip/lwip/src/core/mem.c:209
0x401528b6: do_memp_malloc_pool at /home/espuser/esp/esp-idf/components/lwip/lwip/src/core/memp.c:254

    16 bytes (@ 0x3ffc1d8c, Internal) allocated CPU 0 ccount 0x7243cee4 caller 0x40152807:0x401528b6
0x40152807: mem_malloc at /home/espuser/esp/esp-idf/components/lwip/lwip/src/core/mem.c:209
0x401528b6: do_memp_malloc_pool at /home/espuser/esp/esp-idf/components/lwip/lwip/src/core/memp.c:254

====== Heap Trace Summary ======

Those additional characters are ANSI color codes. They make the text you see in the terminal yellow. You can disable them in menuconfig (see CONFIG_LOG_COLORS).
Alternatively, you can do post-process the formatted string to remove ANSI escape sequences.

Hello. Did you resolve your issue?

@adokitkat  No I have not, apparently there are more characters that are non UTF-8 that needs to be manually removed.

UTF-8 should be backwards compatible with all of ASCII though. Are you sure this is the real issue here? Maybe there are still some ANSI escape codes?

@igrr Another issue we had is that the %d %s will still remain as is and not replaced by the provided value by ESP_LOG:
xRingbufferSend() OK: I (%lu) %s: Ack packet deserialized with result: %s.

where it should be
I (10961) coreMQTT: Ack packet deserialized with result: MQTTSuccess.

Here is the vprintf_like_t function:
int ringbuffer_log_vprintf(const char *fmt, va_list args)
{
    // Write to ring buffer
    UBaseType_t res = xRingbufferSend(buf_handle, fmt, strlen(fmt), pdMS_TO_TICKS(1000));
    if (res != pdTRUE) {
        printf("ABORT. xRingbufferSend() failed\n");
        return -1;
    } else {
        printf("xRingbufferSend() OK: %s\n", fmt);
    }

    // ALSO Write to stdout!
    return vprintf(fmt, args);
}

@law-ko:
You're sending the pure format string to the ringbuffer. So no wonder that it doesn't work.
First you have to evaluate the print function:
int ringbuffer_log_vprintf(const char *format, va_list paramList)
{
  va_list copy;
  va_copy(copy, paramList);
  int size = vsnprintf(NULL, 0, format, copy);
  va_end(copy);
  if (!size)
  {
    // your error handling here
    return 0;
  }
  char *ar = malloc(size + 2);
  va_copy(copy, paramList);
  size = vsnprintf(ar, size + 1, format, paramList);
  va_end(copy);
  // copy ar to the ringbuffer
  [...]
  free(ar);
  // write to stdout
  [...]
  return size;
}


[bug] logging options doesn't have a valid check

Ⅰ. Issue Description
Pouch does not check the logging options key, that results pouchd can start with useless options
Ⅱ. Describe what happened

start pouchd with any useless logging options:
# /usr/local/bin/pouchd --log-opt max-size=10m --log-opt max-file=2 --log-opt key=value
pouchd start successfully without error.

Ⅲ. Describe what you expected to happen
We need valid check for logging option. Invalid keys should be refused.
Ⅳ. How to reproduce it (as minimally and precisely as possible)

Ⅴ. Anything else we need to know?
Ⅵ. Environment:

pouch version (use pouch version): 1.0.0
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

I think this is solved in https://github.com/alibaba/pouch/pull/2306. Please take a look. @zjumoon01
And I we plan to release this in v1.0.1, right? @fuweid for double check.


Ameba Build Issue

Problem:
amebaD sdk uses u32 as a typedef.  CHIPTLVReader.cpp uses u32 in a function as an identifier.  This causes a build failure
Solution:
Renamed "u32" to "unsigned32" in CHIPTLVReader.cpp
Change limited only to name change within a single function
Testing:
Verified builds gn_build.sh
Verified all clusters app for amebad

fast track: small delta, simple change.


Add go fmt workflow, and go fmt the code

As of this writing, the go code in the repo has not been formatted with go fmt, so:

Ensure that the code is properly formatted
Add a GitHub action to verify it continues to be correctly formatted, for future commits

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

+1

Hi @xianlubird @dgoodwin @OmerKahani, this PR is ready to be reviewed/merged, feel free to let me know if anything else is required.


(ui) Add caching for api requests

Store request-response pairs in window local storage. If an identical request arises, return the response pair back instead of creating another API call.
Signed-off-by: Andrew-Butler<EMAIL_ADDRESS>

how about using { time: new date(), value: doc } as the caching value, then we can have a setting for TTL to invalidate the cache entry?

@andrew, could you describe how the caching works, i.e.

when/how invalidate cache
how long until cached resources get refreshed
how to force a cache invalidation
where are the settings/env variables?

Besides updating the PR description, also add that information in the UI README somewhere?

FYI, the asset list call results will give you the created_at timestamp of when a resource was last updated:
/apis/v1alpha1/catalog
{
  "components": [
    {
      "created_at": "2021-05-12T20:49:49Z",
      "description": "Evaluate the adversarial robustness using the Fast Gradient Sign Method of the Adversarial Robustness Toolbox (ART).\nThis is a simple demonstration of how to create evaluations using adversarial methods, and generally it is not recommended\nto evaluate adv",
      "featured": 0,
      "id": "adversarial-robustness-evaluation",
      "metadata": {
        "annotations": {
          "platform": "OpenSource"
        }
      },
      "name": "Adversarial Robustness Evaluation",
      "parameters": [
        {
          "default": "training-dummy",
          "description": "Required. Training model ID",
...

Thanks for adding some documentation @drewbutlerbb4. Two more questions :-)

I assume this caching is only for GET requests (fetch...), yes?
With React, this cache lives on the MLX-UI pod on the cluster, it is not cached on a per user (browser) basis, right?

Thanks for adding some documentation @drewbutlerbb4. Two more questions :-)

I assume this caching is only for GET requests (fetch...), yes?
With React, this cache lives on the MLX-UI pod on the cluster, it is not cached on a per user (browser) basis, right?

@ckadner

It is only for the three most common requests types: ${API}/apis/v1alpha1/${type}/${id}, ${API}/apis/v1alpha1/${type}/${asset.id}/templates, and ${API}/apis/v1alpha1/${type}
It is stored in Window.localStorage which is on a per browser basis

/lgtm


Welcome Message flashing

On PortalHome, the welcome message is flashing due to the state (list of messages) being updated.

Issue is solved: Home page will now only display "Welcome back, {name}" as alternate messages such as "Good Afternoon" corresponding to the time of the day are no longer active.


Scrolling is not stopping on mouseup outside scrolling area

Do you want to request a feature or report a bug?
bug
What is the current behavior?
Scenario: the user wants to scroll while selecting. The user preseses the mouse button inside the scroll area, moves the mouse outside, and then releases the mouse button. The area never stop scrolling, even after manually scrolling back. This is true for both vertical and horizontal scrolling.
If the current behavior is a bug, please provide the steps to reproduce and create a JSFiddle.

It can be reproduced on demo site (https://simonwep.github.io/selection/)

What is the expected behavior?
The area should stop scrolling after mouse up.
I have created pull request to fix the bug: https://github.com/Simonwep/selection/pull/47
Your environment:
Selection-version: 1.2.0
Browser-version:  Google Chrome 76.0.3809.100
Operating-system:  Windows 10

Oh, you already merged it. Thank you 😊


new rule: enforce consistent capitalisation of noqa statements

closes #9596

@danieleades -- Sorry I missed this! Are you interested in working on it? If so, I can write up some notes on how to implement it.

If you've got the time, that'd be great. I have a half-hearted attempt but found it a little impenetrable. Seems you need to make a lot of non-local changes to add a new rule

@danieleades - So first, here's a PR that you can use as a reference for all the stuff outside of the core rule logic: https://github.com/astral-sh/ruff/pull/9728/files (e.g., the addition of the rule in codes.rs, the addition of a fixture, and so on).
For the rule itself... I'd probably do the following:

Set the rule source to noqa (https://github.com/astral-sh/ruff/blob/1711bca4a0c97b809bc4c5b2204bc0da564feb99/crates/ruff_linter/src/registry.rs#L249).
In checkers/noqa.rs, there's a noqa_directives struct that contains all the parsed # noqa comments. I believe the range on the Directive field of NoqaDirectiveLine starts at the start of the comment. So you could iterate over the entries, pass each one to your rule function, and return a diagnostic if they're not "properly" capitalized.

I close this PR considering that there has been no work in a while. @danieleades, feel free to reopen if you're still planning to work on this.


cache.json error due to high amount of Loras

Unsure if this solely an issue with the extension, the cache system in A1111 or a combination of both, but I recently encountered it on a fresh reinstall, and only after installing the Tag Autocomplete extension, with it being the only extension installed.
When having a ridiculous amount of Loras (about 14k, send help), currently I'm getting a cache.json error "moving cache.json to /tmp and creating a new one". This seems to happen on every relaunch of the UI. There's also a high level of HDD activity since it re-reads the Lora folder and re-caches all of them, which also severely slows down the UI launch. I'm not entirely sure if it's a specific Lora causing this, it might be, but would also be hard to pin it down since the console doesn't specify one.
However, this only seems to happen with the default extension's settings. Disabling all "Search for" options except "Search for embeddings" and "Search for Loras", setting "How many results to load at once" to 10 and also disabling "Active in third party textboxes (though I think this last one isn't the issue) seems to resolve it.
Though I did have to temporarily rename the Lora folder to load the UI faster and then change those settings. I still got an error on relaunch, but only once since it only recached checkpoints and embeddings, and after that no more cache.json errors appeared on the console after changing the settings mentioned. Everything else seems to work as normal after that.
I do have Loras mixed with Lycoris, Lohas and other variations in the main Lora folder, so possibly disabling Lycoris autocomplete might be what's resolving it in my case. With A1111 native Lycoris support built in now, I haven't had other issues related to mixing all Lora types in one folder, and they all load fine with just <lora:name:weight>. Lowering the limit to load at once from the default 100 to only 10 is also possibly what's helping.

A few words about the assumptions:

Tag autocomplete does not use the cache.json file from the webui, so this is likely only a symptom
Almost all the extension settings affect the client side (the website in the browser), so changing anything there would only change the load times of the page or potential lag when the completion window itself shows up. The terminal should be unaffected.

In fact, the lora list etc. is even loaded if the setting to complete it is off, it will just skip it when searching for matches (to enable quickly toggling the settings without needing to reload).

Lycoris and Lora autocomplete use exactly the same methods, only that they search in different folders.

Did you experience any kind of slow startup before updating the webui to 1.5.0 with recent tag autocomplete versions?
The extension will run a recursive path search in the Lora folder at startup to obtain a list of all your loras, but that should not be that slow since it only lists the file names.
With the recent addition for model-keyword support, it will also write a cache file (that only updates when needed) to cache calculated simple hashes. These are compared with the model keyword lists. But if you don't have it installed, it shouldn't run, and the short hash only looks at the first few bytes so should be reasonably fast too.
14k files could very well be a problem for either approach, though.
As to why this results in the cache.json error you mentioned, no idea. Could maybe be file access related, as in that the webui tries to read files that are still being processed by tag autocomplete and locked by the file system.
Since you said it stopped after changing the extension settings, I'd like you to test a few things in order:

Does the issue come back if you re-enable those settings?
In the autocomplete install folder, go to tags/temp/. There should be three relevant files here, lora.txt, lyco.txt and known_lora_hashes.txt.

How many rows do these files have? Do they contain the expected 14k lora names?
Try deleting these one at a time, restart the webui completely between each one, see if the issue comes back.
These files are the only read/write operation the extension does related to loras, so it's likely to be related.

Thank you. Yeah honestly it might have been some rogue Lora and not the extension, it might even have been something specific to my system. I was able to reproduce it consistently on the fresh install, and the fresh reinstall was due to having sudden cache issues in the first place in the latest dev commits, but once the cache got properly recreated I haven't had that issue since.
Re-enabling those options doesn't bring the issue back either, the tags/temp folder does contain those files properly and deleting them and letting the extension recreate them also doesn't bring the issue back.
I'll close this since it's fixed, will update if it presents itself again in the future.


LowLevelILOperation.LLIL_FLAG_COND operand has 4 elements

Running into this issue when trying to iterate over lifted_il
The values in LowLevelILOperation.LLIL_FLAG_COND: [("condition", "cond", "semantic_class", "sem_class")] try to be unpacked here: https://github.com/Vector35/binaryninja-api/blob/dev/python/lowlevelil.py#L361
resulting in ValueError: too many values to unpack
I've temporarily avoided the problem by changing the line to name, operand_type = operand[:2], but that's probably not ideal

Fixed in build 1068


[WIP] Toolbar refactoring: Buttons ending with _new or _discover

Links
Parent issue: #6259
Related issue: #6554
Pivotal Tracker: https://www.pivotaltracker.com/story/show/136441199

Please re-create PR in https://github.com/ManageIQ/manageiq-ui-classic


Biome transitions on sky are literally not smoothed

^Biome transitions on sky are literally not smoothed
Causing 0-100 color change instantly the moment you cross specific chunk. making the sky flicker

Causing 0-100 color change?

Yeah biome caching seems to instantly change the sky texture when switching biomes (tested on Terralith biomes, not sure if that matters) and blocklight updates set to 80 (3s)
^Only when biome (or sky, idk) caching is set to true*

Closing as no further response was provided


feat(shell) allow specifying script file with @

@hutchic the idea of this PR is to be able to run CI scripts inside the generated test images for validation purposes (Pongo's own CI that is)

gojira uses @ for a slightly different thing.  wouldn't run be able to do the same (maybe with some quote and flag juggling)?

run runs the tests, shell gives a shell (interactive), shell some command simply executes some command.
It is exactly the whole quoting thing that makes it such a hassle, hence shell @scriptfile (stolen from curl/httpie) to skip on all the escaping. Adding more flags also seems like a hassle...

just wanted to note it, I'm cool with @file also.


Webpack 5 support is broken

See https://github.com/vercel/swr/issues/1112 and #20

@transitive-bullshit we can probably do without swr, don't you think? No need to revalidate here!
I'm working on the project today btw, so I could test it on a branch, and see how it goes.

Agreed; swr seems like overkill.

I think I got it working with 0.5.3.
It seems that whenever we try to get fancy with package.json exports:
  "type": "module",
  "exports": {
    "./src/styles.css": "./src/styles.css",
    ".": {
      "import": "./build/esm/index.js",
      "default": "./build/cjs/index.js"
    }
  },

the result is that the cjs version doesn't work because webpack views it as "type": "module" and interprets it as ESM. For now, just removing the exports seems to solve everything...

You can place a package.json here: build/cjs/package.json with { "type": "commonjs" }.
Otherwise build/cjs/index.js is below a package.json with "type": "module" and treated as ESM.

Thanks @sokra, I'm gonna try to implement it. Just for clarification, what I need to do is:

Create the build/cjs/package.json file with { "type": "commonjs" }
Don't ignore this file in git

Is that correct? It is a bit weird for me to put a file in the build dir. Won't it get deleted/overridden by webpack on build?

@DaniGuardiola yes, that is correct; we would need to do something like:
{
  "postbuild": "echo '{ \"type\": \"commonjs\" }' > build/cjs/package.json"
}

which would create this package file every time. This isn't really elegant, however.. it's unfortunate that Typescript doesn't support this as output https://github.com/microsoft/TypeScript/issues/18442.
Currently, just removing exports and relying on the "old" behavior works fine afaict with both Webpack v4 and Webpack v5:
{
  "main": "build/cjs/index.js",
  "module": "build/esm/index.js",
  "typings": "build/esm/index.d.ts"
}

without adding the new exports feature.
@sokra really appreciate you chiming in 💪 and congrats on the new job at Vercel! I've run into this exact same issue with 3-4 different TypeScript-powered packages that I own where my end result has been to degrade to the old, non-exports syntax which seems to "just work" by being less explicit. I'm curious how package authors like us who want to support TypeScript => ESM + CJS should be doing things going forwards since imho the exports feature seems to make things more complicated and brittle without much upside.
Thanks!

Fixed in 0.6.0

Fixed in 0.6.0

0.6.0 of what ?


Language change abnormal

I encounter a problem when I press "關於我們" then go to the software license.
The system language will turn into English.

Because license page will change app locale ,will be fixed in the next release.

Fix in https://github.com/abc873693/NKUST-AP-Flutter/pull/8


Xeno size stuns mispredict

Guns are predicted but the stuns aren't so it glitches out from time to time

Fixed by #4145 for the most part


Trait method getFailedLoginMessage has not been applied

Hello,
when using Reauthenticate, I receive the following error message:
FatalErrorException in AuthController.php line 116: Trait method getFailedLoginMessage has not been applied, because there are collisions with other trait methods on App\Http\Controllers\Auth\AuthController

Line 116 is the last line of the AuthController.
If I comment out the getFailedLoginMessage method in \Mpociot\Reauthenticate\Reauthenticates.php everything works like designed.
My AuthController.php is "naked" as it is shipped with Laravel 5.2 except the changes necessary to use this middleware and to update the password (two methods I have added but no traits). The traits which are used are
use AuthenticatesAndRegistersUsers, ThrottlesLogins, Reauthenticates;
Regards
Andreas

Hi,
I updated the README for this. Your AuthController should look like this:
use AuthenticatesAndRegistersUsers, ThrottlesLogins, Reauthenticates {
    AuthenticatesAndRegistersUsers::getFailedLoginMessage insteadof Reauthenticates;
}

The method exists in the trait, in case you want to use the middleware without the standard auth controller.


[Bug] HTML select options text is not coloured correctly

Describe the bug
Hi,
If you select any drop down menus using HTML select, you will be presented with anomalies in the dark theme where text is not visible:

This has been introduced recently and the only possible change is here: https://github.com/duckduckgo/Android/issues/1411 (pull: https://github.com/duckduckgo/Android/pull/1429)
There are no issues in light theme
How to Reproduce

enable dark theme in the system
go to any Phoronix benchmark with more than one page, like this
select drop down menu at the bottom for quick navigation (it will open the menu to jump to page)

Expected behavior
Options should be coloured properly: dark background with light text
Environment
- DDG App Version: 5.98.1
- OS: Android 10

Yeah, closing as duplicate. Thank you @Ammako  !


Remove unnecessary try/except

The except block was just re-throwing the exception - status_code was not used when set in that code path.
Thus, we can simplify be removing the unnecessary try/except block.

Missed unused import. Will merge once green.


Refactor and cleanup some locking code

This has been driving me mad.

Signed-off-by: Dan Ryan<EMAIL_ADDRESS>

That resolver failure is so consistent on appveyor now, I wonder what the real cause of it is...


Release Google.Cloud.AlloyDb.V1 version 1.8.0

Changes in this release:
New features

Add properties for nested resource name references (commit 15eec4d)

Created release for Google.Cloud.AlloyDb.V1-1.8.0


fix(weak-hardware): add overlay for weak hardware

Components
SpeedkitVimeo & SpeedkitYoutbe

Slots for before player container (beforePlayer) and after player container (afterPlayer).

WeakHardwareOverlay

Added WeakHardwareOverlay component.

Docs

Added page for WeakHardwareOverlay.
Updated pages SpeedkitVimeo & SpeedkitYoutube.

Tests

Added test for WeakHardwareOverlay.

Included in V3.


Revert "0.12.1"

Reverts Altinity/clickhouse-operator#574

why? 0.12.1 not affects anything important


partner docs template and instructions

Description of the change: adding initial templates for partner docs and adding instructions for using templates

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


Add main menu "preferences - settings - Name Display"

Some people found this practice handy. https://github.com/titoBouzout/WordCount/pull/2

I can see the logic as it makes the prefs easier to find.


Updating master from dev branch updates

Updating master from dev branch updates

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


⚠ SkipTheCommericals has degraded performance

In 3a7c2e9, SkipTheCommericals ($STC) experienced degraded performance:

HTTP code: 200
Response time: 1670 ms

Resolved: SkipTheCommericals performance has improved in c43cabd.


feat : Adding complex process for deleting the database

The  deleting of databases is very easy, and sometimes the intention is to delete the connection.. Please develop a more complex process for deleting the database, for example, asking the user to write something to confirm the decision to request the deletion process
An example of what is used in GitHub while deleting a repository

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

For DBeaver's team:
Please also consider to turn off this option in Preferences, for advanced users who understand what he is doing.
It is useful for those users, who works with temporary/debug databases on his own computer and want to drop database quickly without additional confirmations.
For example, user can have a regular backup strategy so that it will not be so painful even if he drops the database accidentially.

I think it could be specific to connection types. So, let's say, in the Production environment, you will be prompted to enter the name of a database (or any object in general) you want to delete.

We want to add one more confirmation which requires to iput database name for Production connection types.


VSCode not responding when I change 4k files at once in the workspace.

VSCode Version: 1.16.1
OS Version: Windows 7 64bits

Steps to Reproduce:

Have VSCode open with a workspace loaded
Run a script (from outside VSCode) that writes 4000 files very quickly
The window hangs out and finally asks me to "reopen" it.

Reproduces without extensions: No.
Here are my extensions :
dbaeumer.vscode-eslint
dzannotti.vscode-babel-coloring
eg2.vscode-npm-script
EQuimper.react-native-react-redux
fknop.vscode-npm
joelday.docthis
msjsdiag.debugger-for-chrome
robertohuertasm.vscode-icons
Shan.code-settings-sync
shinnn.stylelint
slevesque.vscode-hexdump
steoates.autoimport
timothymclane.react-redux-es6-snippets
xabikos.ReactSnippets```

What types of files are you changing? Does this still reproduce if you disable all extensions?


Fix LTDC active area

It was 321x241. Also calculates the accumulated values to be more clear.
(Found while experimenting with a Pico connected to the LCD connector...)

(Found while experimenting with a Pico connected to the LCD connector...)

:eyes:

Magic-number-b-gone! Thank you.
I think I might have introduced the 321x241 bug when I was fixing the gap on one side, maybe, possibly...


What should I do if I want to translate all the text on the page into the language of my country

What should I do if I want to translate all the text on the page into the language of my country

Under resources/lang, copy the en folder into a new folder with the ISO code for your country, then modify from there.


Message didn't deliver

Hi guys,
I have configured in my docker-compose.sh information to start hubot-matteruser, but when I send a message like hubot help the message didn't delivery.
Below, follow my configuration.
hubot-matteruser:
build:
context: ./hubot-matteruser
args:
hubot_owner: admin
hubot_name: hubot
hubot_description: GitGameBot
restart: always
user: hubot-matteruser
links:
- web:web
ports:
- "8080:8080"
environment:
- MATTERMOST_HOST=myIP
- MATTERMOST_PORT=myPort
- MATTERMOST_GROUP=myTime
- MATTERMOST_USER=myEmailUser
- MATTERMOST_PASSWORD=myPassword
- MATTERMOST_LOG_LEVEL=debug
- MATTERMOST_USE_TLS=false
- MATTERMOST_TLS_VERIFY=false
- MATTERMOST_WSS_PORT=80
And log, doesn't have any information about error:
Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Logging in...
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] DEBUG POST /users/login
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO api url:http://<IP_ADDRESS>:8090/api/v4/users/login
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Websocket URL: ws://<IP_ADDRESS>:8090/api/v4/websocket
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Logged in as user "hubot" but not connected yet.
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Loading /users/me
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] DEBUG GET /users/me
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO api url:http://<IP_ADDRESS>:8090/api/v4/users/me
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Loading /users/me/preferences
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] DEBUG GET /users/me/preferences
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO api url:http://<IP_ADDRESS>:8090/api/v4/users/me/preferences
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Loading /users/me/teams
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] DEBUG GET /users/me/teams
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO api url:http://<IP_ADDRESS>:8090/api/v4/users/me/teams
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Loaded Preferences...
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Loaded Me...
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Found 1 teams.
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] DEBUG Testing accurate == accurate
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Found team! 8s6rdaqubids58fydzriexnhqc
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Loading /users?page=0&per_page=200&in_team=8s6rdaqubids58fydzriexnhqc
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] DEBUG GET /users?page=0&per_page=200&in_team=8s6rdaqubids58fydzriexnhqc
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO api url:http://<IP_ADDRESS>:8090/api/v4/users?page=0&per_page=200&in_team=8s6rdaqubids58fydzriexnhqc
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Loading /users/me/teams/8s6rdaqubids58fydzriexnhqc/channels
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] DEBUG GET /users/me/teams/8s6rdaqubids58fydzriexnhqc/channels
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO api url:http://<IP_ADDRESS>:8090/api/v4/users/me/teams/8s6rdaqubids58fydzriexnhqc/channels
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Connecting...
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Connected to Mattermost.
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Sending challenge...
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Starting pinger...
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Mattermost server: <IP_ADDRESS>.9.0.d39ed1f8abee5df86e3d38e503512310.false
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] DEBUG Received unhandled message:
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] DEBUG { status: 'OK', seq_reply: 1 }
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Found 3 subscribed channels.
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Found 60 profiles.
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO Loading /users?page=1&per_page=200&in_team=8s6rdaqubids58fydzriexnhqc
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] DEBUG GET /users?page=1&per_page=200&in_team=8s6rdaqubids58fydzriexnhqc
[Wed Apr 18 2018 17:17:55 GMT+0000 (UTC)] INFO api url:http://<IP_ADDRESS>:8090/api/v4/users?page=1&per_page=200&in_team=8s6rdaqubids58fydzriexnhqc
[Wed Apr 18 2018 17:17:56 GMT+0000 (UTC)] INFO hubot-redis-brain: Using default redis on localhost:6379
Someone can help me ?

I've managed to make it work without any problems.

@bgualda please try the new v5.0.0 release and report any issues


Correct placement of CI files and other changes that were missed.

The old one was missing some things I had done in experimental branches. This is the correct setup.

Can one of the admins verify this patch?

Also, we need to merge this PR so that i can rebase my release script PR and move the appropriate files into the Tools dir


Upgrade to Bevy v0.6

Made changes to support Bevy v0.6.
cargo test and examples work.

Can't wait 🤩


Improve translation for spanish type-hints docs

Fix translations and add missed example code blocks

@tiangolo I think we can merge this PR now

📝 Docs preview for commit f76cbf1ad78639a9dccacc3bedc4cd31f0efc986 at: https://c4e3d175.fastapitiangolo.pages.dev

As this PR had requested changes to be applied but has been inactive for a while, it's now going to be closed. But if there's anyone interested, feel free to create a new PR.


Links broke

I am currently trying to play music with a youtube link but it doesnt work. Any reason why? Idk

This issue isn't related to lavalink, I assume it's from your lavaplayer version. Make sure to use lavaplayer > 1.3.19 to prevent some YouTube issues.

As per what Zenrac said;
While this is not an issue with lavalink.py, you failed to provide any kind of additional information that would help debug this issue.
The first step towards fixing this is to figure out what Lavalink version you're running. You can do this with java -jar lavalink.jar -v
Next, identify if your build is out of date. If it is, update your jar.
If the issue persists after updating, join this Discord server.


Add okteto and okteto cloud support

Okteto works
Autoingress for oktetocloud
Fix non-dev mode
Update readme

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 62.437%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
123

Relevant Lines:
197

💛  - Coveralls


Training stop unexpected at iteration 3618

Hi. I really like this work that uses the molecular fragmentation idea. But when I try to reproduce it, at the 3618th iteration, the iterator says that there are no more elements. Then the training stops. I only added the tqdm module to the loop for observing the training process on your code. In addition I modified the batch_size parameter to equal 64 and the num_workers parameter to equal 8. The error message is attached below. I think it's some kind of error in the setup. But I'm not quite sure. Please reply to me at your convenience if possible. Thanks!
`2023-10-23 01:37:14,919 :: train :: INFO] [Train] Iter 3617 | loss: 1.285635 | loss_pos: 1.181161 | loss_node: 0.091807 | loss_edge: 0.012668
Training:   3%|██████▏                                                                                | 3617/110000 [1:02:57<29:16:15,  1.01it/s][2023-10-23 01:37:15,320 :: train :: INFO] [Train] Iter 3618 | loss: 1.513661 | loss_pos: 1.436085 | loss_node: 0.067695 | loss_edge: 0.009880
Training:   3%|██████▏                                                                                | 3618/110000 [1:02:58<30:51:47,  1.04s/it]
Traceback (most recent call last):
File "D:\PaperCode\MolDiff.\utils\train.py", line 51, in inf_iterator
yield iterator.next()
File "C:\Users\ctw31\anaconda3\envs\GNN1\lib\site-packages\torch\utils\data\dataloader.py", line 633, in next
data = self._next_data()
File "C:\Users\ctw31\anaconda3\envs\GNN1\lib\site-packages\torch\utils\data\dataloader.py", line 1318, in _next_data
raise StopIteration
StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\PaperCode\MolDiff\scripts\train_drug3d.py", line 172, in
train(it)
File "D:\PaperCode\MolDiff\scripts\train_drug3d.py", line 90, in train
batch = next(train_iterator).to(args.device)
File "D:\PaperCode\MolDiff.\utils\train.py", line 53, in inf_iterator
iterator = iterable.iter()
File "C:\Users\ctw31\anaconda3\envs\GNN1\lib\site-packages\torch\utils\data\dataloader.py", line 441, in iter
return self._get_iterator()
File "C:\Users\ctw31\anaconda3\envs\GNN1\lib\site-packages\torch\utils\data\dataloader.py", line 388, in _get_iterator
return _MultiProcessingDataLoaderIter(self)
File "C:\Users\ctw31\anaconda3\envs\GNN1\lib\site-packages\torch\utils\data\dataloader.py", line 1042, in init
w.start()
File "C:\Users\ctw31\anaconda3\envs\GNN1\lib\multiprocessing\process.py", line 121, in start
self._popen = self._Popen(self)
File "C:\Users\ctw31\anaconda3\envs\GNN1\lib\multiprocessing\context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\ctw31\anaconda3\envs\GNN1\lib\multiprocessing\context.py", line 327, in _Popen
return Popen(process_obj)
File "C:\Users\ctw31\anaconda3\envs\GNN1\lib\multiprocessing\popen_spawn_win32.py", line 93, in init
reduction.dump(process_obj, to_child)
File "C:\Users\ctw31\anaconda3\envs\GNN1\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle 'Environment' object
(GNN1) D:\PaperCode\MolDiff>Traceback (most recent call last):
File "", line 1, in
File "C:\Users\ctw31\anaconda3\envs\GNN1\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "C:\Users\ctw31\anaconda3\envs\GNN1\lib\multiprocessing\spawn.py", line 126, in _main
self = reduction.pickle.load(from_parent)
EOFError: Ran out of input`

Hello, it's hard to pinpoint the issue based on your description alone. Have you tested the functionality without any modifications to see if it works in its original state? Furthermore, have you attempted running the code without using the tqdm module? This might help in troubleshooting the problem.

Thanks for your reply! This issue was solved. I have no idea what triggered this error and how it was solved. But it is solved. Thanks for your reply!


Crash on macOS

When running qspectrum analyzer on macOS latest version with latest qsa and soapy_power the app crashes due to soapy_power.
Found Rafael Micro R820T tuner
WARNING: Sample rate 2560000.0 Hz is not supported, setting it to 96000.0 Hz!
INFO: Using device: Audio
[INFO] Using format CF32.
INFO: repeats: 439
INFO: samples: 4390 (time: 0.04573 s)
INFO: max_buffer_size (samples): 13107200 (repeats: 1310720.00, time: 136.53333 s)
INFO: buffer_size (samples): 6144 (repeats: 614.40, time: 0.06400 s)
INFO: buffer_repeats: 1
INFO: overlap: 0.00000
INFO: bin_size: 9600.00 Hz
INFO: bins: 10
INFO: bins (after crop): 10
INFO: sample_rate: 0.096 MHz
INFO: sample_rate (after crop): 0.096 MHz
INFO: freq_range: 21.000 MHz
INFO: hopping: YES
INFO: hop_size: 0.096 MHz
INFO: hops: 219
INFO: min_center_freq: 87.048 MHz
INFO: max_center_freq: 107.976 MHz
INFO: min_freq (after crop): 87.000 MHz
INFO: max_freq (after crop): 108.024 MHz
INFO: Total time: 0.625 s
Traceback (most recent call last):
  File "/usr/local/bin/soapy_power", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/soapypower/__main__.py", line 373, in main
    max_threads=args.max_threads, max_queue_size=args.max_queue_size
  File "/usr/local/lib/python3.7/site-packages/soapypower/power.py", line 296, in sweep
    psd_future, acq_time_start, acq_time_stop = self.psd(freq)
  File "/usr/local/lib/python3.7/site-packages/soapypower/power.py", line 256, in psd
    self.device.read_stream_into_buffer(self._buffer)
  File "/usr/local/lib/python3.7/site-packages/simplesoapy.py", line 484, in read_stream_into_buffer
    res.ret, SoapySDR.errToStr(res.ret)
RuntimeError: Unhandled readStream() error: -1 (TIMEOUT)

I have reproduced that on Beagle bone black, ubuntu 18.04.2, airspy mini
ubuntu@arm:~$ soapy_power -r 1.0M -f 427M:447M -B 10k --fft-overlap 50 -F rtl_power_fftw -O output.csv --even -T 1 --debug
DEBUG: scipy.fftpack module found
WARNING: Sample rate 1000000.0 Hz is not supported, setting it to 3000000.0 Hz!
INFO: Using device: Airspy
DEBUG: SoapySDR stream - args: {}
[INFO] Using format CF32.
DEBUG: SoapySDR stream - buffer size: 65536
DEBUG: SoapySDR stream - read timeout: 0.121845
INFO: repeats: 1429
INFO: samples: 428700 (time: 0.14290 s)
INFO: max_buffer_size (samples): 13107200 (repeats: 43690.67, time: 4.36907 s)
INFO: buffer_size (samples): 458752 (repeats: 1529.17, time: 0.15292 s)
INFO: buffer_repeats: 1
INFO: overlap: 0.00000
INFO: bin_size: 10000.00 Hz
INFO: bins: 300
INFO: bins (after crop): 300
INFO: sample_rate: 3.000 MHz
INFO: sample_rate (after crop): 3.000 MHz
INFO: freq_range: 20.000 MHz
INFO: hopping: YES
INFO: hop_size: 3.000 MHz
INFO: hops: 7
INFO: min_center_freq: 428.500 MHz
INFO: max_center_freq: 446.500 MHz
INFO: min_freq (after crop): 427.000 MHz
INFO: max_freq (after crop): 448.000 MHz
DEBUG: Frequency hops table:
DEBUG:   Min:          Center:       Max:
DEBUG:    427.000 MHz   428.500 MHz   430.000 MHz
DEBUG:    430.000 MHz   431.500 MHz   433.000 MHz
DEBUG:    433.000 MHz   434.500 MHz   436.000 MHz
DEBUG:    436.000 MHz   437.500 MHz   439.000 MHz
DEBUG:    439.000 MHz   440.500 MHz   442.000 MHz
DEBUG:    442.000 MHz   443.500 MHz   445.000 MHz
DEBUG:    445.000 MHz   446.500 MHz   448.000 MHz
DEBUG: Run: 1
DEBUG:   Frequency hop: 428500000.00 Hz
DEBUG:     Tune time: 0.525 s
DEBUG:     Repeat: 1
INFO: Total time: 0.775 s
Traceback (most recent call last):
File "/usr/local/bin/soapy_power", line 10, in
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/soapypower/main.py", line 373, in main
max_threads=args.max_threads, max_queue_size=args.max_queue_size
File "/usr/local/lib/python3.6/dist-packages/soapypower/power.py", line 296, in sweep
psd_future, acq_time_start, acq_time_stop = self.psd(freq)
File "/usr/local/lib/python3.6/dist-packages/soapypower/power.py", line 256, in psd
self.device.read_stream_into_buffer(self._buffer)
File "/usr/local/lib/python3.6/dist-packages/simplesoapy.py", line 484, in read_stream_into_buffer
res.ret, SoapySDR.errToStr(res.ret)
RuntimeError: Unhandled readStream() error: -1 (TIMEOUT)
By the way,
On Beagle bone black, ubuntu 18.04.2, rtl-sdr it works normally.
On Thinkpad E480, ubuntu 18.04 airspy mini it works normally.


[RDBMS] MySQL restore network parameter added, replica zone parameter added / PostgreSQL update HA server bug fix

Description

MySQL restore enable change from/to private network <-> public network
MySQL replica create enable availability zone selection
PostgreSQL update high availability server bug fix

Testing Guide

History Notes

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

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

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

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

RDBMS

This PR is ready to get reviewed


Undefined behaviour if probe-run initializes RTT before target

Describe the bug
The target writes the control block to memory at init (defmt-rtt does this automatically, rtt-target requires calling an init macro). probe-run will load this control block from memory after flashing and starting the application.
From what I can see, the only thing stopping probe-run from reading this control block before the target writes it is a read for the RTT ID at the top of the memory space (written last by the target), however, if there is a control block written to memory from a previous run, probe-run might read this old control block before or while the target writes the new control block.
This can cause unexpected behaviour like corrupted control block message during init or when trying to read from the RTT up channel, or outputting corrupted data (only seen when using defmt). Some examples are below.
    Finished dev [unoptimized + debuginfo] target(s) in 0.09s
     Running `probe-run --chip ATSAMDA1G16B target\thumbv6m-none-eabi\debug\atsamda1_test`
(HOST) INFO  flashing program (293 pages / 18.31 KiB)
(HOST) INFO  success!
Error: Control block corrupted: Nonsensical array sizes at 20000000: max_up_channels=0 max_down_channels=15852
error: process didn't exit successfully: `probe-run --chip ATSAMDA1G16B target\thumbv6m-none-eabi\debug\atsamda1_test` (exit code: 1)

    Finished dev [unoptimized + debuginfo] target(s) in 0.09s
     Running `probe-run --chip ATSAMDA1G16B target\thumbv6m-none-eabi\debug\atsamda1_test`
(HOST) INFO  flashing program (293 pages / 18.31 KiB)
(HOST) INFO  success!
────────────────────────────────────────────────────────────────────────────────
RTT error: Control block corrupted: write pointer is 4 while buffer size is 1 for "up" channel 0 ()
────────────────────────────────────────────────────────────────────────────────
Error: An error with the usage of the probe occurred

Caused by:
    Operation timed out
error: process didn't exit successfully: `probe-run --chip ATSAMDA1G16B target\thumbv6m-none-eabi\debug\atsamda1_test` (exit code: 1)

(HOST) DEBUG Programmed page of size 64 bytes in 25 ms
└─ probe_run @ src\main.rs:114
(HOST) INFO  success!
└─ probe_run @ src\main.rs:132
(HOST) DEBUG 7108 bytes of stack available (0x20000438 ..= 0x20001FFC), using 712 byte canary
└─ probe_run::canary @ src\canary.rs:87
(HOST) TRACE setting up canary took 0.030s (23.28 KiB/s)
└─ probe_run::canary @ src\canary.rs:101
(HOST) DEBUG starting device
└─ probe_run @ src\main.rs:190
(HOST) DEBUG Successfully attached RTT
└─ probe_run @ src\main.rs:412
────────────────────────────────────────────────────────────────────────────────
♥☺☺j♥☺☻j♥☺♥j♥☺♦j♥☺♣j♥☺♠j♥☺j♥j♥☺ j♥☺
j♥☺
j♥☺
j♥☺j♥☺j♥☺►j♥☺◄j♥☺↕j♥☺‼j♥☺¶j♥☺§j♥☺▬j♥☺↨j♥☺↑j

To Reproduce
Steps to reproduce the behaviour:

Clone this test repo: https://github.com/sakian/atsamda1_test
Connect to a samd21 or samda1 chip through j-link
run cargo run

Expected and observed behaviour
Should output Started after flashing
config.toml
The contents of your project's .cargo/config.toml file
runner = "probe-run --chip ATSAMD21J16B" # Almost identical to the ATSAMDA1G16B
#runner = "probe-run --chip ATSAMDA1G16B --verbose"
rustflags = [
  "-C",
  "link-arg=-Tlink.x",
  # This is needed if your flash or ram addresses are not aligned to 0x10000 in memory.x
  # See https://github.com/rust-embedded/cortex-m-quickstart/pull/95
  "-C",
  "link-arg=--nmagic",
]

[build]
target = "thumbv6m-none-eabi"

# [env]
# DEFMT_LOG = "info"
# DEFMT_RTT_BUFFER_SIZE = "64"

Probe details
[0]: J-Link (J-Link) (VID: 1366, PID: 0101, Serial:<PHONE_NUMBER>90, JLink)

Operating System:
Windows 10

Thank you for reporting. Do you have any solutions in mind. Would it help if we reset the RTT ID before running?

I haven't had much time to look at this recently. I've added a delay to probe-run which has significantly reduced how often this happens, but is obviously not a great solution. I'm hopeful that I can return to this issue at some point and give it more thought.


PHOENIX-1673 Allow TenantId to be of any integral data type

PR for HBase 1.0, PHOENIX-1673

Thanks for the new PR, @JeffreyLyonsD2L. It's now in and this PR can be closed.


In Meet Pets Section "Meet our Friends Here" Text Background Color Not Changing in light Mode

In Meet Pets Section "Meet our Friends Here" Text Background Color Not Changing in light Mode.
Expected behavior
background section of the text "meet our friends here" background color should change in  light** mode.
Screenshort

I want to work with this issue, Please assign this issue with hacktober fest tag.
Thank You


Is this work for foundation 6?

Does your code work for F6?

I tried some minutes ago but I had a Foundation error... So it seems not compatible with Foundation 6 (unless I did some mistakes on my code)

I reworked this to match the syntax for the F6 dropdown. Give it at try and post any issues.
https://github.com/colinduwe/foundation-select

@colinduwe Your link 404s.
I need a good example to follow.

@colinduwe
nvm

Do we have any updated plugin. I've just migrated to F6 and the multiselect is not working.

Here's what I made long ago: https://github.com/colinduwe/foundation-select

I'll also mention that I no longer use my fork but instead use Select2 with F6

I'll also mention that I no longer use my fork but instead use Select2 with F6

Hi. Today I also need this functionality with multiple selectboxes with checkbox. You're wrote ".. instead use Select2 with F6" .. What do you mean with "select2". Do you have a link for this feature? Thanks.

https://select2.org/


Not very helpful in migrating from v2 to v3

If one has implemented v2 using the Microsoft v2 Service Reference like showing on this page
https://deanhume.com/microsoft-translator-api/
This article doesn't help one to migrate from v2 to v3. Can you outline how to users of the service reference migrate to v3? Is there a v3 service reference URL?

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

ID: ef9aa16f-9c7a-089a-8249-24a3902906e6
Version Independent ID: 886ef069-4001-3544-31ba-e4ef13fb62af
Content: Migrate to V3 - Translator Text API
Content Source: articles/cognitive-services/Translator/migrate-to-v3.md
Service: cognitive-services
GitHub Login: @Jann-Skotdal
Microsoft Alias: v-jansko

@YutongTie-MSFT any update on this? 30th April is around the corner and I don't have any way to migrate my v2 service to the v3 service as yet. Can the MS SOAP service as explained here https://deanhume.com/microsoft-translator-api/ be extended so it internally uses the v3 API. That would ensure that clients using this SOAP service can continue and the service internally maps it to the v3 API's.

@rboy1 Hi, thank you for the follow-up and sorry for the waiting, I am keeping eyes on it.
@Jann-Skotdal Hi Jann, could you please any insight on this issue? Documents or any guidance would help a lot for our customers. Please tell me if anything I can do, and also if there is other folk I should reach out, please tell me and I will do that. Thanks a lot.

Not much time left so I'm hoping you're working on putting together a reference service (just like the v2) and I simply repoint the existing code to the new service URL. Thanks

@rboy1 Please do not remove the assignment or we can not track it correct.
@Jann-Skotdal Hi Jann, could you please provide some insight for this issue? Thank you a lot.

@YutongTie-MSFT sorry, I didn't understand. What assignment are you referring to?

Oh I see, sorry it must have been a fat finger

@rboy1 No problem, I can help to figure it out.

@nitinme Hi Nitin, I could not assign it to Jann or Pauline according to the document. Could you please help with this? Thanks a lot.

@rboy1 : Sorry for the delay, we are working on pulling together some information for parsing the JSON responses in C# using Newtonsoft

Agreed!  I've got to migrate from to v2 soap service reference, not helpful at all.  Why isn't there an OpenAPI or Swagger documentation published for the v3 API?

2 weeks to go....

A week to go Sigh.... I think we're out of luck here.

@Jann-Skotdal Hi Jann, do you have any update for this issue?

hi @rboy1 ,
I am an engineer from the Translator team and would like to apologize for the extremely delayed and muddled reponse to your question.
We have a github example which will help you for your migration but doesn't cover the part for de-serializing the json. We are working to update the sample @ https://github.com/MicrosoftTranslator/Text-Translation-API-V3-C-Sharp
Meanwhile, following is the updated example that should assist in the migration. Please let me know if this answers your question.
We are working to have the right alerts in-place such that you receive a timely response going forward.
thanks,
vishal
using System;
using System.Net.Http;
using System.Text;
// NOTE: Install the Newtonsoft.Json NuGet package.
using Newtonsoft.Json;
namespace TranslatorTextQuickStart
{
/// <summary>
/// The c# class that represents the JSON returned by the translate api call.
/// </summary>
public class TranslationResult
{
    public DetectedLanguage DetectedLanguage { get; set; }
    public TextResult SourceText { get; set; }
    public Translation[] Translations { get; set; }
}

public class DetectedLanguage
{
    public string Language { get; set; }
    public float Score { get; set; }
}

public class TextResult
{
    public string Text { get; set; }
    public string Script { get; set; }
}

public class Translation
{
    public string Text { get; set; }
    public TextResult Transliteration { get; set; }
    public string To { get; set; }
    public Alignment Alignment { get; set; }
    public SentenceLength SentLen { get; set; }
}

public class Alignment
{
    public string Proj { get; set; }
}

public class SentenceLength
{
    public int[] SrcSentLen { get; set; }
    public int[] TransSentLen { get; set; }
}

class Program
{
    static string host = "https://api.cognitive.microsofttranslator.com";
    //replace with your subscription key
    static string subscriptionKey = "XXXXXX";
    static string path = "/translate?api-version=3.0";
    // Translate to German and Italian.
    static string params_ = "&to=id&to=it&to=de&to=zh";
    static string uri = host + path + params_;

    static string text = "Translate this sentence in multiple languages";

    async static void Translate()
    {
        System.Object[] body = new System.Object[] { new { Text = text } };
        var requestBody = JsonConvert.SerializeObject(body);

        using (var client = new HttpClient())
        using (var request = new HttpRequestMessage())
        {
            request.Method = HttpMethod.Post;
            request.RequestUri = new Uri(uri);
            request.Content = new StringContent(requestBody, Encoding.UTF8, "application/json");
            request.Headers.Add("Ocp-Apim-Subscription-Key", subscriptionKey);

            var response = await client.SendAsync(request);
            var responseBody = await response.Content.ReadAsStringAsync();
            var result = JsonConvert.SerializeObject(JsonConvert.DeserializeObject(responseBody), Formatting.Indented);
            Console.WriteLine(request.RequestUri);
            Console.OutputEncoding = UnicodeEncoding.UTF8;
            //json format
            Console.WriteLine(result);
            //convert to c# class.
            var translationResults = JsonConvert.DeserializeObject<TranslationResult[]>(result);
            Console.WriteLine(translationResults[0].Translations[0].Text);
        }
    }

    static void Main(string[] args)
    {
        Translate();
        Console.ReadLine();
    }
}

}

@talktovishal thanks for the note. It is not possible for MS to simply create a service endpoint like you did for V2? This makes the migration easy rather having to rewrite the entire application, we can just point to a new service endpoint URL and let MS handle all the detailed behind the scenes. This would be an ideal way to migrate especially since it appears that 99% of the functionality between v2 and v3 are identical?
A lot of this code is legacy code in some of our apps. Having to rewrite it will take an enormous effort our end so we're really depending on the service endpoint to make things easy and I'm sure we aren't the only ones facing this issue. Thoughts?

hi @rboy1 ,
That's a good point.
We listened to the developer feedback and wrote the v3 version that conforms to the REST design principles and makes it easier to work with when developing mobile apps. We were trying to better manage our stack and decided to deprecate v2 since the majority of our developers have moved to v3 after it was announced. Also, please note that we plan to add new features to the v3 api.
Having said all that, I do agree with your pain of migrating to the new api especially with large applications which may be at various client locations. I am going to have a discussion with the team and update this thread later in the week and give you a concrete resolution. We will do a detailed discussion evaluating the pros\cons of various alternatives.
Given that we have postponed the v2 deprecation, please wait for a few days before you start updating your codebase. I will get back to you with a concrete answer.
Thanks for your patience.

hi @rboy1 ,
I wanted to update you on the status of the v2 plans. We had a detailed discussion today and based on feedback from you and our other developers of the v2 api, we decided to make v2 available side-by-side v3. Please refer to the blog post for more details. https://www.microsoft.com/en-us/translator/blog/2019/04/23/translator-text-api-version-2-will-continue-to-be-available-alongside-version-3/
I wanted to thank you again for your feedback and your patience. We have put in processes in-place to ensure you and our developers will get timely response to any issues going forward.
Please feel free to reach out if you have any further questions, feedback. https://www.microsoft.com/en-us/translator/business/contact/
thanks,
vishal

hi @rboy1 ,
I wanted to update you on the status of the v2 plans. We had a detailed discussion today and based on feedback from you and our other developers of the v2 api, we decided to make v2 available side-by-side v3. Please refer to the blog post for more details. https://www.microsoft.com/en-us/translator/blog/2019/04/23/translator-text-api-version-2-will-continue-to-be-available-alongside-version-3/
I wanted to thank you again for your feedback and your patience. We have put in processes in-place to ensure you and our developers will get timely response to any issues going forward.
Please feel free to reach out if you have any further questions, feedback. https://www.microsoft.com/en-us/translator/business/contact/
thanks,
vishal

Thank you guys. This is definitely good news. I'm looking forward to the samples so we can see how to make the migration in future easier.

Thanks @rboy1 . The translate sample is posted below and we will update ones for the remaining api calls soon. Let me know if you were looking for something specific and I will ensure it get's addressed.

@rboy1 We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Unable to download

I have updated to latest youtube-dl and tried with different youtube links but still get the same error msg. For reasons, I have removed the youtube link.
NAME="Pop!_OS"
VERSION="22.04 LTS"
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy

$ youtube-dl <LINK TO VIDEO HERE>
[youtube] <VIDE LINK HERE>: Downloading webpage
ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

This is what I got:
[youtube] 0BT9OeRklB4: Downloading webpage
ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose fl

Probably a duplicate of https://github.com/ytdl-org/youtube-dl/issues/31530 but I didn't know how to make it work with brew. Not sure how to brew update to point to master, and obviously youtube-dl -U wouldn't work either.

#30839 !


New Relic Conflict

We are trying to implement this on a rails 4.2 project and we are having some conflicts and it seems to be with the New Relic gem.
Has anyone had experience with these 2 working insync

?
Thanks

If you're looking for a place to dig in, here is where we hijack the controller.
Any idea what the exception is in this code? Is it caused by an error in your controller/view/does it repro if there is no error?


Cms deid 2014

https://bmi-work.kumc.edu/work/ticket/5205#comment:9

In 86504ca, a separate commit for the table/column names would have made things easier to review.


CSS Vendors file is empty in production build

Is this a bug report?
yes

Did you try recovering your dependencies?

yes
Which terms did you search for in User Guide?

Fonts
Environment

$ npx create-react-app --info
npx: installed 67 in 8.4s

Environment:
  OS:  Linux 4.4
  Node:  10.4.1
  Yarn:  0.17.10
  npm:  6.1.0
  Watchman:  Not Found
  Xcode:  N/A
  Android Studio:  Not Found

Packages: (wanted => installed)
  react: ^16.4.1 => 16.4.1
  react-dom: ^16.4.1 => 16.4.1
  react-scripts: ^2.0.0-next.3e165448 => 2.0.0-next.3e165448

Steps to Reproduce

I used<EMAIL_ADDRESS>and tried to add a font from npm (typeface-aguafina-script). After building the app and looking at it in the browser, the default browser font is used. In development mode the Font is displayed correctly.
With import 'typeface-aguafina-script'; I imported the font in index.js and set font-family: 'Aguafina Script'; in the body section of my index.css
Development:

git clone https://github.com/edy/cra-font-build-test.git
cd cra-font-build-test
npm start

Production:

git clone https://github.com/edy/cra-font-build-test.git
cd cra-font-build-test
npm run build
npx serve -s build

Expected Behavior

In development mode you can see the font Aguafina Script. I expect that after building the app, i should also see the font.
Actual Behavior

CRA builds the app correctly and copies the fonts into build/static/media. however, the generated file build/static/css/vendors.[hash].chunk.css is empty.
Development:

Production:

Reproducible Demo

git clone https://github.com/edy/cra-font-build-test.git
cd cra-font-build-test
npm run build
npx serve -s build

I included the build folder in my test repository, too.

I wasn't able to repo on my system, was able to get the built app to serve correctly.  However if I serve the build/ folder you provided, I did indeed see the issue.


JSON not serialized in prepared reactive query

Hi,
I am not sure if this is a bug report or a question.
For reasons we are currently trying to use a psql table with a single JSON column and some constraints on the id field of the data:
CREATE TABLE contracts (
    json JSONB NOT NULL,
    CONSTRAINT validate_id CHECK( json ? 'id' )
);

CREATE UNIQUE INDEX contracts_ids_idx ON contracts( (json ->> 'id') );

Our relevant Java code (including code for a non-prepared version) in the respective write routine looks like this:
import io.reactiverse.reactivex.pgclient.PgPool;
import io.reactiverse.reactivex.pgclient.data.Json;
import io.vertx.core.json.JsonObject;

public class ContractRepository {

    private final PgPool pool; //instantiated outside the posted code

    private static final String CREATE_QUERY = "INSERT INTO contracts (json) VALUES ($1);";
    private static final String CREATE_QUERY_NOT_PREPARED = "INSERT INTO contracts (json) VALUES ('%s');";

    public Single<UUID> rxStoreNewContract(Contract contract) {

        UUID uuid = contract.getId();

        return Single.just(contract)
              .map(JsonObject::mapFrom)
              .map(Json::create)
              .flatMap( foo -> pool.rxPreparedQuery(CREATE_QUERY, Tuple.of(foo)) )
              //.flatMap(foo -> pool.rxQuery(String.format(CREATE_QUERY_NOT_PREPARED, foo)))
              .map(ar -> uuid);
    }
}

The non-prepared commented version works fine.
And if I run this code and inspect foo in the debugger, it looks fine too (see attached screenshot).

But the db complains about a null value in the json column:
06:42:59.688 [vert.x-eventloop-thread-0] ERROR i.m.h.s.netty.RoutingInBoundHandler - Unexpected error occurred: null value in column "json" violates not-null constraint
io.reactiverse.pgclient.PgException: null value in column "json" violates not-null constraint
	at io.reactiverse.pgclient.impl.QueryCommandBase.handleErrorResponse(QueryCommandBase.java:65)
	at io.reactiverse.pgclient.impl.codec.decoder.MessageDecoder.decodeError(MessageDecoder.java:253)
	at io.reactiverse.pgclient.impl.codec.decoder.MessageDecoder.decodeMessage(MessageDecoder.java:142)
	at io.reactiverse.pgclient.impl.codec.decoder.MessageDecoder.channelRead(MessageDecoder.java:122)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965)
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.lang.Thread.run(Thread.java:748)

I tried to trace the code in the debugger but pretty soon got lost. So I can't say if this is a bug or whether we are "holding it wrong".
We are running this in Micronaut and Micronauts preconfigured reactive-pg-client version is 0.10.5 . Updating to 0.10.9 didn't help and updating to 0.11.2 left us with some runtime exceptions that are probably solvable but we didn't pursue.

P.S.:
we have a select statement on the same column that looks quite the same
    private static final String SELECT_QUERY = "SELECT json FROM contracts where json->>'id'=$1";
    . . .
    // and later
   pool.rxPreparedQuery(SELECT_QUERY, Tuple.of(id.toString()))

and works fine. That's why I suspect that the problem is confined to JSON.

Also we tried various attempts to serialize it differently and to write an already serialized version of the contract. The latter of course resulted the String to be written as a single String field and thus the validate_id constraint in postgres failed.

can you provide a reproducer test @agschaid ?

hi @vietj ,
I've set up a little Micronaut project to demonstrate the problem: Link
First I have to clarify an error on my part: when creating the issue I was a little overworked and mixed up the Error-Message and the Code that caused it. The null value in column "json" violates not-null constraint was not actually our problem anymore. That one was caused by us trying to turn the json object into a string, resulting it to be written to the DB as a °drum roll° string, which of course has no id field.
Our actual problem is that we get a RuntimeException with the message Values [null] cannot be coerced to [Json] when trying to write to the db.
Please consider the test I've written.
We currently work around the problem by not using prepared statements. But of course that's a major itch ;)
Any help would be very appreciated.
And as noted: we don't know if this is a bug or if we just do something wrong . . .

thanks @agschaid

I had the same error and fixed it using addJson method, like this:
public Mono<PgRowSet> insert(String flow) {
	JsonObject jsonObject = new JsonObject(flow);
	Json json = Json.create(jsonObject);
	Tuple args = Tuple.tuple().addJson(json);
	return RxJava2Adapter.singleToMono(pgPool.rxPreparedQuery(INSERT_FLOW_SQL, args));
}

Hope this helps!

thanks @perttuk
I'll try that tomorrow (both in my toy project and our production code).

the issue is actually rather in vertx-rx that will not convert the JSON type correctly and it will be null instead.
The workaround is to do this:
        return Single.just(contract)
            .map(JsonObject::mapFrom)
            .map(Json::create)
            .flatMap( foo -> pool.rxPreparedQuery(CREATE_QUERY, Tuple.of(foo.getDelegate())) )
            .map( ar -> uuid);

the getDelegate() will return the correct type.
I think one solution is that Vert.x SQL Client and the Reactive PG Client should not use a codegen type for JSON and instead use a DataObject.

Another less hackish way to make it work is to do:
        Single<UUID> res = Single.just(contract)
            .map(JsonObject::mapFrom)
            .map(Json::create)
            .flatMap( foo -> pool.rxPreparedQuery(CREATE_QUERY, Tuple.tuple().addJson(foo)) )
            .map(ar -> uuid);

see https://github.com/eclipse-vertx/vertx-sql-client/issues/320 - I will close this issue.


Add payloadFormatVersion to API Gateway Integration trait.

Currently, when converting the Smithy model to API Gateway for HTTP APIs, it fails because it doesn't configure the payloadFormatVersion. This change adds the payload format version to the IntegrationTrait.
The payload format version specifies the format of the data that API Gateway sends to an integration, and how API Gateway interprets the response. If you create an integration for HTTP APIs programmatically, you must specify a payloadFormatVersion. The supported values are 1.0 and 2.0.
Issue #, if available: No issue #
Description of changes: See commit message above. Added the payloadFormatVersion that is required as document here: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Can you add this new property to the trait definition too? https://github.com/awslabs/smithy/blob/master/smithy-aws-apigateway-traits/src/main/resources/META-INF/smithy/aws.apigateway.json#L124

Sorry, forgot about that one. Added it to the trait definition now + modified the documentation.
Please let me know if there's anything else I missed.
Thanks


add typechecking

fix some types
packages\shared\contentManager\index.js needs converting to TS
rename node JS files to TS
fix node types

Note: recreates Pull Request history from previous repository.


Roll Engine from 2d8a00e21d8c to 16d241b576ff (3 revisions)

https://github.com/flutter/engine/compare/2d8a00e21d8c...16d241b576ff
2020-07-28<EMAIL_ADDRESS>Roll Fuchsia Linux SDK from 747AFt_Hq... to ETPOTPepP... (flutter/engine#20091)
2020-07-28<EMAIL_ADDRESS>Save current screenshot as attachment in scenarios test (flutter/engine#20090)
2020-07-28<EMAIL_ADDRESS>Use the GrDirectContext factories instead of deprecated GrContext ones (flutter/engine#19962)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from 747AFt_HqkTZ to ETPOTPepPWCH
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md

Commit queue failed; closing this roll.


Email invitations take an extended time to be delivered

Describe the solution you'd like
Inviting new people (Collaborators) presents a message that an invitation was sent, however that's not the case. Most cases the email doesn't arrive for hour(s), if ever. This is an issue as it has new team members stuck awaiting for an invite code which nobody knows when/if will arrive.
Email invitations should be sent in near real-time.
Describe alternatives you've considered
There are no alternatives.
Additional context
Screenshot below is very misleading as an invite was not sent. Fifteen minutes later and the invite has yet to be received.

I'm seeing the same problem. Invited several people within the last hour, and no one has received the invite emails.

@jessejjohnson
Looks like MSFT is aware and the issue is being tracked:
https://status.appcenter.ms/


Add squash merge commit title and message options

Signed-off-by: Kyle Leonhard<EMAIL_ADDRESS>Hey, I just made a Pull Request!
This PR adds options to configure the default squash merge commit title and message.
API references:

https://github.blog/changelog/2022-08-23-new-options-for-controlling-the-default-commit-message-when-merging-a-pull-request/
https://octokit.github.io/rest.js/v19
https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#create-a-repository-for-the-authenticated-user

I didn't see detailed option-level documentation; I'm happy to edit any if it exists!
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[x] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Bump, what do you think?
Alternatively, we could leave the defaults for these options undefined effectively delegating defaults to the API. I did this in another PR for a few other options


Add misc export: download selected frame as png

Solve issue: https://github.com/juliandescottes/piskel/issues/450
Download the selected frame as PNG named: piskelName-frameIndex.png

This change is

Looks good to me! Thanks for the PR @david-szabo97


Add package testing for MacOS

Right now deeprankcore is tested only on Linux. Even if for practical use case users should use supercomputers (Unix-based OS), it could be handy to let the package work with smaller set of data on their local machine, so also on Windows and Mac OS.

Now that DSSP is installed via conda (PR #549), it should be doable to have the MacOS build on the CI as well.


Adopt eslint openstack

@heckj @jlongever @zyoung51

a couple of nit questions, but overall looks great - conforms to their spec, fixes some linting to be specific. :+1:


sync up with master

Codecov Report

Merging #363 into experimental will decrease coverage by 0.12%.
The diff coverage is 50%.

@@               Coverage Diff                @@
##           experimental     #363      +/-   ##
================================================
- Coverage         79.41%   79.29%   -0.13%
================================================
  Files                23       23
  Lines              1098     1101       +3
================================================
+ Hits                872      873       +1
- Misses              226      228       +2

Impacted Files
Coverage Δ

vent/api/templates.py
73.5% <50%> (-1.06%)
:arrow_down:

Continue to review full report at Codecov.

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


Set up CI

Set up CI for automated builds

Ref: 83ca6e
I figured out the minisat part. But then the README instructions also need to be updated (later) as this is not mentioned.
Can you add the necessary prerequisites?
@prateekkumarweb

@GoodDeeds Why do you have to say only ci branch? Doesn't it take only the pushed commit?

Can be removed now I think, I was experimenting.

@GoodDeeds Build succeeded. I think we should cache the build files in cbmc/src in travis.


Hotfix/two-factor

Purpose
Reverts the changed to resources, resources.test, and App.
Adds default region state.
Connects TwoFactor.tsx so we can spread existing profile data.

Coverage increased (+0.01%) to 27.738% when pulling 9467b0c860ee3733fc5703b4fa3ec54ae2f140bc on rjstires:hotfix/two-factor into ef79d26e14ee23b08edfbc090ecc5c5d56b19f0c on linode:develop.


[ACR] Fix incorrect sub id in error messages

Closes https://github.com/Azure/azure-cli/issues/5619

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

[x] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

[x] I adhere to the Command Guidelines.

@tjprescott This is to fix a side-effect from this PR https://github.com/Azure/azure-cli/pull/6516 that the subscription we get from profile.get_subscription may have been overridden by --subscription parameter. /cc @NatalieGong @sajayantony

Codecov Report

Merging #6611 into dev will not change coverage.
The diff coverage is n/a.

@@         Coverage Diff         @@
##           dev   #6611   +/-   ##
===================================
  Coverage    0%      0%
===================================
  Files       11      11
  Lines      145     145
  Branches    11      11
===================================
  Misses     145     145

Continue to review full report at Codecov.

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

@tjprescott Could you please merge? Thanks.