rds: Instance cannot be destroyed error when importing existing resource

What happened?
Existing RDS Instance fails to get imported with error message:
'observe failed: cannot run plan: plan failed: Instance cannot be destroyed:
      Resource aws_db_instance.cicd-us-west-2-prod-eks-0-artifactory has lifecycle.prevent_destroy
      set, but the plan calls for this resource to be destroyed. To avoid this error
      and continue with the plan, either disable lifecycle.prevent_destroy or reduce
      the scope of the plan using the -target flag.'

How can we reproduce it?

Create RDS instance not using Upbound AWS provider.
Apply next yaml:

apiVersion: rds.aws.upbound.io/v1beta1
kind: Instance
metadata:
  annotations:
    crossplane.io/external-name: app-db
  labels:
    app.kubernetes.io/component: crossplane-aws-rds
    app.kubernetes.io/instance: ""
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/part-of: app-db
    argocd.argoproj.io/instance: app-db
    helm.sh/chart: crossplane-aws-rds-0.31.0-1
  name: app-db
spec:
  deletionPolicy: Orphan
  forProvider:
    allocatedStorage: 50
    applyImmediately: true
    autoMinorVersionUpgrade: false
    availabilityZone: us-west-2d
    backupRetentionPeriod: 7
    backupWindow: 07:00-08:00
    caCertIdentifier: rds-ca-2019
    copyTagsToSnapshot: true
    dbName: artifactory
    dbSubnetGroupName: app-db
    dbSubnetGroupNameRef:
      name: app-db
    engine: postgres
    engineVersion: "13.10"
    instanceClass: db.t3.small
    iops: 3000
    licenseModel: postgresql-license
    maintenanceWindow: Sat:08:00-Sat:11:00
    multiAz: true
    networkType: IPV4
    optionGroupName: default:postgres-13
    parameterGroupName: app-db
    passwordSecretRef:
      key: password
      name: app-database-creds
      namespace: app
    performanceInsightsEnabled: true
    performanceInsightsKmsKeyId: arn:aws:kms:us-west-2:00000000000000:key/7996b4fe-c1bd-49e2-888e-0000000000
    performanceInsightsRetentionPeriod: 7
    port: 5432
    publiclyAccessible: false
    region: us-west-2
    skipFinalSnapshot: true
    storageEncrypted: false
    storageThroughput: 125
    storageType: gp3
    tags:
      Billing-Center: Unknown
      Billing-Org: Unknown
      Billing-Team: Unknown
      Chart: crossplane-aws-rds-0.31.0-1
      Managed-By: Helm
      Name: app-db
      Release: app-db
      crossplane-kind: instance.rds.aws.upbound.io
      crossplane-name: app-db
      crossplane-providerconfig: aws-provider
    username: postgres
    vpcSecurityGroupIds:
    - sg-0019069c1b2989a5d
  providerConfigRef:
    name: aws-provider
  # publishConnectionDetailsTo:
  #   configRef:
  #     name: crossplane-provider-ub-aws
  #   metadata:
  #     annotations:
  #       reflector.v1.k8s.emberstack.com/reflection-allowed: "true"
  #       reflector.v1.k8s.emberstack.com/reflection-allowed-namespaces: app
  #       reflector.v1.k8s.emberstack.com/reflection-auto-enabled: "true"
  #       reflector.v1.k8s.emberstack.com/reflection-auto-namespaces: app
  #     labels:
  #       app.kubernetes.io/component: crossplane-aws-rds
  #       app.kubernetes.io/instance: ""
  #       app.kubernetes.io/managed-by: Helm
  #       app.kubernetes.io/part-of: app-db
  #       helm.sh/chart: crossplane-aws-rds-0.31.0-1
  #       secret.crossplane.io/owner-uid: 051e55c5-77b7-4af6-86bb-422506b011f3
  #   name: app-db

Resulting yaml:
apiVersion: rds.aws.upbound.io/v1beta1
kind: Instance
metadata:
  annotations:
    crossplane.io/external-name: app-db
    kubectl.kubernetes.io/last-applied-configuration: >
      {"apiVersion":"rds.aws.upbound.io/v1beta1","kind":"Instance","metadata":{"annotations":{},"labels":{"app.kubernetes.io/component":"crossplane-aws-rds","app.kubernetes.io/instance":"","app.kubernetes.io/managed-by":"Helm","app.kubernetes.io/part-of":"app-db","argocd.argoproj.io/instance":"app-db","helm.sh/chart":"crossplane-aws-rds-0.31.0-1"},"name":"app-db"},"spec":{"deletionPolicy":"Orphan","forProvider":{"allocatedStorage":50,"applyImmediately":true,"autoMinorVersionUpgrade":false,"backupRetentionPeriod":7,"backupWindow":"07:00-08:00","copyTagsToSnapshot":true,"dbName":"artifactory","dbSubnetGroupNameRef":{"name":"app-db"},"engine":"postgres","engineVersion":"13.10","instanceClass":"db.t3.small","maintenanceWindow":"Sat:08:00-Sat:11:00","multiAz":true,"parameterGroupName":"app-db","passwordSecretRef":{"key":"password","name":"app-database-creds","namespace":"app"},"performanceInsightsEnabled":true,"publiclyAccessible":false,"region":"us-west-2","skipFinalSnapshot":true,"storageEncrypted":false,"storageType":"gp3","tags":{"Billing-Center":"Unknown","Billing-Org":"Unknown","Billing-Team":"Unknown","Chart":"crossplane-aws-rds-0.31.0-1","Managed-By":"Helm","Name":"app-db","Release":"app-db"},"username":"postgres","vpcSecurityGroupIds":["sg-0019069c1b2989a5d"]},"providerConfigRef":{"name":"aws-provider"},"publishConnectionDetailsTo":{"configRef":{"name":"crossplane-provider-ub-aws"},"metadata":{"annotations":{"reflector.v1.k8s.emberstack.com/reflection-allowed":"true","reflector.v1.k8s.emberstack.com/reflection-allowed-namespaces":"app","reflector.v1.k8s.emberstack.com/reflection-auto-enabled":"true","reflector.v1.k8s.emberstack.com/reflection-auto-namespaces":"app"},"labels":{"app.kubernetes.io/component":"crossplane-aws-rds","app.kubernetes.io/instance":"","app.kubernetes.io/managed-by":"Helm","app.kubernetes.io/part-of":"app-db","helm.sh/chart":"crossplane-aws-rds-0.31.0-1"}},"name":"app-db"}}}
  creationTimestamp: '2023-03-21T22:04:51Z'
  finalizers:
    - finalizer.managedresource.crossplane.io
  generation: 4
  labels:
    app.kubernetes.io/component: crossplane-aws-rds
    app.kubernetes.io/instance: ''
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/part-of: app-db
    argocd.argoproj.io/instance: app-db
    helm.sh/chart: crossplane-aws-rds-0.31.0-1
  name: app-db
  resourceVersion: '4977330'
  uid: dc48a1c1-9ec9-40b6-8b81-cd46d0aa5c33
spec:
  deletionPolicy: Orphan
  forProvider:
    allocatedStorage: 50
    applyImmediately: true
    autoMinorVersionUpgrade: false
    availabilityZone: us-west-2d
    backupRetentionPeriod: 7
    backupWindow: '07:00-08:00'
    caCertIdentifier: rds-ca-2019
    copyTagsToSnapshot: true
    dbName: artifactory
    dbSubnetGroupName: app-db
    dbSubnetGroupNameRef:
      name: app-db
    engine: postgres
    engineVersion: '13.10'
    instanceClass: db.t3.small
    iops: 3000
    licenseModel: postgresql-license
    maintenanceWindow: 'Sat:08:00-Sat:11:00'
    multiAz: true
    networkType: IPV4
    optionGroupName: 'default:postgres-13'
    parameterGroupName: app-db
    passwordSecretRef:
      key: password
      name: app-database-creds
      namespace: app
    performanceInsightsEnabled: true
    performanceInsightsKmsKeyId: >-
      arn:aws:kms:us-west-2:00000000000000:key/7996b4fe-c1bd-49e2-888e-redacted
    performanceInsightsRetentionPeriod: 7
    port: 5432
    publiclyAccessible: false
    region: us-west-2
    skipFinalSnapshot: true
    storageEncrypted: false
    storageThroughput: 125
    storageType: gp3
    tags:
      Billing-Center: Unknown
      Billing-Org: Unknown
      Billing-Team: Unknown
      Chart: crossplane-aws-rds-0.31.0-1
      Managed-By: Helm
      Name: app-db
      Release: app-db
      crossplane-kind: instance.rds.aws.upbound.io
      crossplane-name: app-db
      crossplane-providerconfig: aws-provider
    username: postgres
    vpcSecurityGroupIds:
      - sg-0019069c1b2989a5d
  providerConfigRef:
    name: aws-provider
  publishConnectionDetailsTo:
    configRef:
      name: crossplane-provider-ub-aws
    metadata:
      annotations:
        reflector.v1.k8s.emberstack.com/reflection-allowed: 'true'
        reflector.v1.k8s.emberstack.com/reflection-allowed-namespaces: app
        reflector.v1.k8s.emberstack.com/reflection-auto-enabled: 'true'
        reflector.v1.k8s.emberstack.com/reflection-auto-namespaces: app
      labels:
        app.kubernetes.io/component: crossplane-aws-rds
        app.kubernetes.io/instance: ''
        app.kubernetes.io/managed-by: Helm
        app.kubernetes.io/part-of: app-db
        helm.sh/chart: crossplane-aws-rds-0.31.0-1
        secret.crossplane.io/owner-uid: dc48a1c1-9ec9-40b6-8b81-cd46d0aa5c33
    name: app-db
status:
  atProvider:
    address: >-
      app-db.redacted.us-west-2.rds.amazonaws.com
    arn: >-
      arn:aws:rds:us-west-2:00000000000000:db:app-db
    endpoint: >-
      app-db.redacted.us-west-2.rds.amazonaws.com:5432
    engineVersionActual: '13.10'
    hostedZoneId: Z1PVIF0B656C1W
    id: app-db
    latestRestorableTime: '2023-03-21T21:59:32Z'
    resourceId: db-MX7UWOBUBO2NWXKR6I3FAODF7E
    status: available
    tagsAll:
      Billing-Center: Unknown
      Billing-Org: Unknown
      Billing-Team: Unknown
      Chart: crossplane-aws-rds-0.31.0-0
      Managed-By: Helm
      Name: app-db
      Release: app-db
      crossplane-kind: instance.rds.aws.upbound.io
      crossplane-name: app-db
      crossplane-providerconfig: aws-provider
  conditions:
    - lastTransitionTime: '2023-03-21T22:05:03Z'
      message: >-
        observe failed: cannot run plan: plan failed: Instance cannot be
        destroyed: Resource
        aws_db_instance.app-db has
        lifecycle.prevent_destroy set, but the plan calls for this resource to
        be destroyed. To avoid this error and continue with the plan, either
        disable lifecycle.prevent_destroy or reduce the scope of the plan using
        the -target flag.
      reason: ReconcileError
      status: 'False'
      type: Synced
    - lastTransitionTime: '2023-03-21T22:04:58Z'
      reason: Finished
      status: 'True'
      type: AsyncOperation
    - lastTransitionTime: '2023-03-21T22:04:58Z'
      reason: Available
      status: 'True'
      type: Ready

Nevertheless, if instance is created using Crossplane from the very beginning - creation succeeds. The only difference of such instance is the presence of next annotation:
upjet.crossplane.io/provider-meta: '{"e2bfb730-ecaa-11e6-8f88-34363bc7c4c0":{"create":2400000000000,"delete":3600000000000,"update":4800000000000},"schema_version":"1"}'

Adding such annotation manually to imported resource doesn't help.
What environment did it happen in?

Universal Crossplane Version: 1.10.1
Provider Version: 0.31.1
Cloud provider or hardware configuration: AWS
Kubernetes version (use kubectl version): v1.25.6-eks-48e63af
Kubernetes distribution (e.g. Tectonic, GKE, OpenShift): EKS
ArgoCD: v2.6.4+7be094f

I'll mention my team and I were getting a similar error with an RDS resource, upgrading from 0.38.0 to 0.47.4 resolved it for us
Linking similar issue https://github.com/crossplane-contrib/provider-upjet-aws/issues/823


Android-emulator offical AVD

I am trying to install magisk on emulator within docker, but it says magisk install incomplete
I am trying to create a distributable image of docker container for other to simple use/test magisk on emulator.
Environment
Hostos: ubuntu 20.04 with docker version 19.03.13
To recreate the error:
$ docker run -it --rm --privileged androidsdk/android-30:latest bash

# avdmanager create avd -n first_avd --abi google_apis/x86_64 -k "system-images;android-30;google_apis;x86_64"
# emulator -avd first_avd -no-window -no-audio &

# cd /opt/
# git clone https://github.com/shakalaca/MagiskOnEmulator.git
# cp /opt/android-sdk-linux/system-images/android-30/google_apis/x86_64/ramdisk.img ramdisk.bk.img
# wget https://github.com/topjohnwu/Magisk/releases/download/v21.4/Magisk-v21.4.zip
# wget https://github.com/topjohnwu/Magisk/releases/download/v22.0/Magisk-v22.0.apk

# cp ramdisk.bk.img /opt/MagiskOnEmulator/ramdisk.img
# cp Magisk-v22.0.apk /opt/MagiskOnEmulator/magisk.zip
# bash patch.sh
# cp /opt/MagiskOnEmulator/ramdisk.img /opt/android-sdk-linux/system-images/android-30/google_apis/x86_64/ramdisk.img
# adb -e reboot
# adb wait-for-device

---- magisk is not accessible as command
# adb shell
127|generic_x86_64_arm64:/ $ magisk su
/system/bin/sh: magisk: inaccessible or not found

---- it seems it was installed at /data/user_de/0/com.topjohnwu.magisk/install/magisk....
# adb root
# adb shell
1|generic_x86_64_arm64:/ # /data/user_de/0/com.topjohnwu.magisk/install/magisk --install-module props.zip
Incomplete Magisk install

What am I missing.

show me the logcat and dmesg from boot.

sorry for a very long delay ... tried the guide again ... with the latest 22.1 magisk, with android-30. Its working. It keepshowing the update and install in the app, but it works, was able to load some modules as well .... thank you very much for a fantasitc piece of code.


Peplink Balance 20X with LoRaWAN FlexModule Mini

Summary

...
Screenshots

...
Changes

...
...

Notes for Reviewers

...
Checklist

[x] Scope: The referenced issue is addressed, there are no unrelated changes.
[x] Run Locally: Verified that the docs build using make server, posted screenshots, verified external links. Test with HUGO_PARAMS_SEARCH_ENABLED=true if style changes will affect the search bar.
[x] New Features Marked: Documentation for new features is marked using the new-in-version shortcode, according to the guidelines in CONTRIBUTING.
[x] Style Guidelines: Documentation obeys style guidelines in CONTRIBUTING.
[x] Commits: Commit messages follow guidelines in CONTRIBUTING, there are no fixup commits left.

Hi @Giedrius-GM , we don't allow you to just provide a link to your own instructions. If you want to add your gateway, you need to explicity provide directions for adding the gateway to The Things Stack. See an example here https://github.com/TheThingsIndustries/lorawan-stack-docs/blame/master/doc/content/gateways/models/mikrotik-ltap/_index.md

@benolayinka ok, let me then adjust the instruction and get back again.


Automations Tasks available for user contributions?

Hi @vitorgalvao , started using v5 EA and was looking into a few details about Automation Tasks.

Can we as users contribute to this repo?
I noticed that the Tasks are JSON files with complex shell/bash script that execute the functionality. Any way we can use a different language and ref it from the JSON file?

Can we as users contribute to this repo?

Yes. The contribution might be edited to conform to the style of the repo / fix bugs / add enhancements.

shell/bash script that execute the functionality.

Most are in JXA, not shell. Others are in Zsh, as appropriate.

Any way we can use a different language and ref it from the JSON file?

Technically you can use literally any language, just as you can with Workflows. Practically, not every language will be accepted in this repo if there’s an alternative way to do it. With Apple removing the language runtimes in macOS, those become dependencies. Automation Tasks should “just work” as often as possible, so the best languages to write them in right now are Bash / Zsh (latter preferred) and AppleScript / JXA (latter preferred). Swift will be a good contender too.
In the not too distant future a tool will be made available to make creating Automation Tasks easier, you won’t have to edit JSON files directly. I’m also working on a document with best practices to ensure consistency. There are still a bunch of Automation Tasks planned, so for now it’s best to suggest them rather than submit PRs. No harm in accompanying the suggestion with working code, if you already have it.


Monkey Madness Puzzle Box

The puzzle solver does not apply to the monkey madness puzzle box

Duplicate of #2063


FCM OAUth2.0 with Ethernet not work

hello author
I would like to ask how to use firebase FCM OAUth2.0 with Ethernet
I am using esp32s3
Irebase FCM OAUth2.0 can be used normally when I am on wifi
Ethernet doesn't work

I assumed that you mean HTTPv1 API cloud messaging.
This library does not support that, only legacy API supported.
You should use this library instead.
If you already used that library, you post in the wrong repository.
For ethernet with native support PHY (e.g., LAN8720) please follow this example.
For other SPI ethernet module (MAC), please use external client by follow this example and this example.
When you use external ethernet client, it is not in this library scope, and you should debug your ethernet client yourself.

You should post your code or create the simple code to replicate the issue and describe more error details.

But won't the old version of FCM stop serving next year?
Suwatchai K. @.***> 於 2023年7月19日 週三 下午12:42寫道：

You should post your code or create the simple code to replicate the issue
and describe more error details.
—
Reply to this email directly, view it on GitHub
https://github.com/mobizt/Firebase-ESP32/issues/282#issuecomment-1641401327,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGW7Z4W5NH7HRIWCSJNCFXLXQ5QSPANCNFSM6AAAAAA2PJ44YI
.
You are receiving this because you authored the thread.Message ID:
@.***>

I have no idea. You should ask Google supports.

Hello author, I would like to ask if there is any way to get the Bearer
token in the esp32+w5500 solution?
I plan to send FCM via http after getting the token
I refer to https://github.com/mobizt/ESP-Signer
I want to get token through this project
Create an account according to the process and implement it but it is not
successful
Here is my code and error message
Thank you very much for your help
[image: image.png]
/**

This example show how to get access token using ESP32 and LAN8720
Ethernet module.

Created by K. Suwatchai (Mobizt)

Email: @.***

Github: https://github.com/mobizt/ESP-Mail-Client

Copyright (c) 2023 mobizt

*/
/**

There are many sources for LAN8720 and ESP32 interconnection on the
internet which may
work for your LAN8720 board.

Some methods worked unless no IP is available.

This modification and interconnection provided in this example are mostly
worked as
the 50 MHz clock was created internally in ESP32 which GPIO 17 is set to
be output of this clock
and feeds to the LAN8720 chip XTAL input.

The on-board LAN8720 50 MHz XTAL chip will be disabled by connect its
enable pin or pin 1 to GND.

Please see the images in the folder "modified_LAN8720_board_images" for
how to modify the LAN8720 board.

The LAN8720 Ethernet modified board and ESP32 board wiring connection.

ESP32 LAN8720

GPIO17 - EMAC_CLK_OUT_180 nINT/REFCLK - LAN8720 XTAL1/CLKIN 4k7 Pulldown
GPIO22 - EMAC_TXD1 TX1
GPIO19 - EMAC_TXD0 TX0
GPIO21 - EMAC_TX_EN TX_EN
GPIO26 - EMAC_RXD1 RX1
GPIO25 - EMAC_RXD0 RX0
GPIO27 - EMAC_RX_DV CRS
GPIO23 - MDC MDC
GPIO18 - MDIO MDIO
GND GND
3V3 VCC

*/
//In case of Gmail, to send the Email via port 465 (SSL), less secure app
option should be enabled in the account settings.
https://myaccount.google.com/lesssecureapps?pli=1
#include <Arduino.h>
#include <Ethernet.h>
#include <ESP_Signer.h>
/** These credentials are taken from Service Account key file (JSON)

https://cloud.google.com/iam/docs/service-accounts
*/
// See
https://github.com/mobizt/ESP-Signer#how-to-create-service-account-private-key

#define PROJECT_ID "The project ID" //Taken from "project_id" key in JSON
file.
#define CLIENT_EMAIL "Client Email" //Taken from "client_email" key in JSON
file.
const char PRIVATE_KEY[] PROGMEM = "-----BEGIN PRIVATE KEY-----\n-----END
PRIVATE KEY-----\n";
#define WIZNET_RESET_PIN 8 // Connect W5500 Reset pin to GPIO 8 of ESP32
#define WIZNET_CS_PIN 10 // Connect W5500 CS pin to GPIO 10 of ESP32
#define WIZNET_MISO_PIN 13 // Connect W5500 MISO pin to GPIO 13 of ESP32
#define WIZNET_MOSI_PIN 11 // Connect W5500 MOSI pin to GPIO 11 of ESP32
#define WIZNET_SCLK_PIN 12 // Connect W5500 SCLK pin to GPIO 125 of ESP32
uint8_t Eth_MAC[] = {0x02, 0xF0, 0x0D, 0xBE, 0xEF, 0x01};
bool eth_connected = false;
void networkConnection()
{
Ethernet.init(WIZNET_CS_PIN);
ResetEthernet();
Serial.println("Starting Ethernet connection...");
while (Ethernet.linkStatus() != LinkON){
Serial.println("wait ethline");
Serial.println(Ethernet.localIP());
delay(500);
}
Serial.println("ethline finish");
IPAddress ip = Ethernet.localIP();
// Ethernet.begin(Eth_MAC);
while(!Ethernet.begin(Eth_MAC,1000,4000))
{
Serial.println(".");
}
while (ip == IPAddress(0, 0, 0, 0)) {
delay(500);
ip = Ethernet.localIP();
Serial.println("wait ip");
}
Serial.println(Ethernet.localIP());
Serial.println(ip);
while (ip == IPAddress(0, 0, 0, 0)) {
delay(500);
ip = Ethernet.localIP();
Serial.println("wait ip");
}
unsigned long to = millis();
while (Ethernet.linkStatus() == LinkOFF)
{
Serial.println("Wait Ethernet connection...");
delay(100);
}
Serial.print("Connected with IP ");
eth_connected = true;
Serial.println(Ethernet.localIP());
}
void ResetEthernet()
{
Serial.println("Resetting WIZnet W5500 Ethernet Board... ");
pinMode(WIZNET_RESET_PIN, OUTPUT);
digitalWrite(WIZNET_RESET_PIN, HIGH);
delay(200);
digitalWrite(WIZNET_RESET_PIN, LOW);
delay(50);
digitalWrite(WIZNET_RESET_PIN, HIGH);
delay(200);
}
SignerConfig config;
bool beginReady = false;
void tokenStatusCallback(TokenInfo info);
void begin()
{
beginReady = true;
/* Assign the sevice account credentials and private key (required) */
config.service_account.data.client_email = CLIENT_EMAIL;
config.service_account.data.project_id = PROJECT_ID;
config.service_account.data.private_key = PRIVATE_KEY;
/* Expired period in seconds (optional). Default is 3600 sec.*/
config.signer.expiredSeconds = 3600;
/* Seconds to refresh the token before expired (optional). Default is 60
sec.*/
config.signer.preRefreshSeconds = 60;
config.token_status_callback = tokenStatusCallback;
config.signer.tokens.scope = "
https://www.googleapis.com/auth/spreadsheets,https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/drive.file
";
Signer.begin(&config);
}
void setup()
{
Serial.begin(115200);
Serial.println();
networkConnection();
}
void loop()
{
if (eth_connected && !beginReady)
{
begin();
}
//Check to status and also refresh the access token
bool ready = Signer.tokenReady();
if (ready)
{
int t = Signer.getExpiredTimestamp() - config.signer.preRefreshSeconds -
time(nullptr);
Serial.print("Remaining seconds to refresh the token, ");
Serial.println(t);
delay(1000);
}
}
void tokenStatusCallback(TokenInfo info)
{
if (info.status == esp_signer_token_status_error)
{
Serial.printf("Token info: type = %s, status = %s\n", Signer.getTokenType(
info).c_str(), Signer.getTokenStatus(info).c_str());
Serial.printf("Token error: %s\n", Signer.getTokenError(info).c_str());
}
else
{
Serial.printf("Token info: type = %s, status = %s\n", Signer.getTokenType(
info).c_str(), Signer.getTokenStatus(info).c_str());
if (info.status == esp_signer_token_status_ready)
Serial.printf("Token: %s\n", Signer.accessToken().c_str());
}
}
Suwatchai K. @.***> 於 2023年7月19日 週三 下午2:05寫道：

I have no idea. You should ask Google supports.
—
Reply to this email directly, view it on GitHub
https://github.com/mobizt/Firebase-ESP32/issues/282#issuecomment-1641469398,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGW7Z4QBNLQA6C2Q3YWSUB3XQ52L5ANCNFSM6AAAAAA2PJ44YI
.
You are receiving this because you authored the thread.Message ID:
@.***>

You don't need to use ESP-Signer library.
You can update the library to latest version 4.3.18.
And please don't forget to define this macro in FirebaseFS.h
#define FB_ENABLE_EXTERNAL_CLIENT
Then try this example.


Synchronize LZ4 with upstream

This synchronizes our LZ4 library with upstream. This is needed to prevent crashes when compiled with optimizations using GCC5.

:+1:

:+1:


Multi-Image Posts

Hi
Is it possible to upload albums?
Best
Sali

Upload method updated!, just wait commit aproval

Upload method updated!, just wait commit aproval

PR merged but I couldn't make a multi-image feed post. Any ideas, @codexJoin?

Upload one for one, this function don't supports multiple image posts in feed, only one for one

@codexJoin do you think a carousel post is possible?


Phoebemirman/ch15844/unable to copy paste additional details if

https://app.clubhouse.io/augur/story/15844/unable-to-copy-paste-additional-details-if-the-text-is-long-enough-to-result-in-a-read-more-button
https://app.clubhouse.io/augur/story/16283/change-text-styling-within-primary-buttons-rectangular

Coverage remained the same at 63.347% when pulling b3c7e0355c772d64f107a5580a4700dc77944af9 on phoebemirman/ch15844/unable-to-copy-paste-additional-details-if into 74aa0092acbf70a8cb6dba80fe7eb3992c7a10ea on master.


Update http gem from deprecated fork

oauth2c had required http ~> 2.0, which is holding back our ability to update the http gem in projects that use oauth2c.
This will be is a breaking change for anyone using this gem with ruby <= 2.2, which http 4.x has dropped support for. There appear to be no other breaking changes.
I'm proposing bumping the version to 1.x since we've been using this stably in production for a long time now and because a major bump is appropriate for a potentially breaking
change.
I'll test this branch of auth2c in our projects before final release.

To be re-opened when we're ready to update dependent projects.


Use dockertest to instantiate the test database

This project would benefit from using dockertest to dynamically launch the database instance required for the tests.

It looks promising. It would be fine for some tests but the setup needed for many scenarios is more complex. We have to test SSPI auth, Always Encrypted, named pipes, etc.
Today we rely on docker to test against SQL server on Linux in the github actions, and we rely on Appveyor to cover Windows SQL instances.
Presumably the helper function that returns the connection could switch over to dockertest if there's no .connstr file and no environment variable set. It would reduce the work needed for a new contributor to get tests running locally.

Dockertest is not limited to just using func TestMain(m *testing.M) for the setup. You can just as well use it with a custom setupMyScenario() that is different for every test.
Github Actions will also just work by default as long as you have docker available in them. The only place I see the need for a .connstr as fallback would be the Windows test environments.


Bump standard-* versions

standard-* has updated per eslint 2.0 release, please update the dependencies.

bumped! download<EMAIL_ADDRESS>as it has the latest deps :)


zfs: prevent install phase from touching files outside of Nix store

If it detects, for example Ubuntu, it makes assumptions about the installation paths.
While this doesn't happen when the build system is NixOS, it does happen when trying to build something like nixos-images with Nix on, for example, Ubuntu. I encountered this when trying to deploy NixOS VMs using nixos-anywhere from a Ubuntu machine.
NOTE: I discovered this on 23.11 so backporting it to that is desirable.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

--
Add a :+1: reaction to pull requests you find important.

Do you have the Nix build sandbox disabled? If not may be a Nix bug here as well.

Looks like it yes (from Debian pkg):
$ cat /etc/nix/nix.conf
# see https://nixos.org/nix/manual/#sec-conf-file

# So far the sandbox feature does not seem to work on Debian:
# https://github.com/NixOS/nixpkgs/pull/47794#issuecomment-429575989
sandbox = false

So likely not a Nix bug.

It cost nothing to add it here but Nix without sandbox is not a supported setup FWIW.

Just did a full rebuild (without this change) with sandbox = relaxed and I'm not getting the same error. So this change isn't necessary.


Typo "Azure File sync"→"Azure File Sync"

https://docs.microsoft.com/en-us/azure/backup/azure-file-share-support-matrix
#PingMSFTDocs

Hi @ktoliver, thank you for looping me in.
@hyoshioka0128, I'll review it soon and let you know. Thank you.

#sign-off

Hi @hyoshioka0128, thanks for the fix.
@ktoliver, please merge.


Add-on does not hve the correct structure

I installed openelec 5.0 on linux, and now I can't install the pulsar add-on with zip files. The add-on (unpacked) as .zip are on my ftp server, but I keep getting "add-on does not hve the correct structure" can anyone help?

I run OpenELEC / Kodi in my new PRi2, and have the same issue. Only tried installing it from a USB-drive through the XBMC "Install from ZIP" option, and get this error every time. Any pointers?

Had this error, it's the permissions on your file system/directory where you store the .zip files


Using the plugin with Kotlin and GitHub Actions

Hi, thanks a lot for creating this!
I'm still seeing no updates on my coveralls though: https://coveralls.io/github/PHPirates/kotlin-template-project
This is what I did:

Added the plugin to my build file: https://github.com/PHPirates/kotlin-template-project/blob/master/build.gradle.kts
Add COVERALLS_REPO_TOKEN secret to my repository.
Use the following GitHub Actions yml: https://github.com/PHPirates/kotlin-template-project/blob/master/.github/workflows/main.yml which basically sets the token and runs ./gradlew check jacocoTestReport coverallsJacoco

Codecov does get coverage reported correctly.
I also tried to run the coverallsJacoco task locally, with the environment variable set, but I also didn't see updates on Coveralls.
Any idea how to debug this?

Seems the directory here is  nl.deltadak.ktemplate instead of nl/deltadak/ktemplate.
While Kotlin supports arbitrary directory names, it's recommended to flatten just the commonroot package and the rest should follow the normal java styled directory structure.
So in your case, renaming the directory containing the kotlin files would fix it. Or you can alternatively omit the directory all together, throw all files on src/main/kotlin, specify the rootPackage in plugin configuration and it should just work.

Thanks! Since it shows the same in IntelliJ, I had not noticed the mistake. It works now, great!


Complete event

A function to be called when the request finishes (after success and error callbacks are executed). Just like jquery, would be very helpful to do redundant tasks that needs to be done at either state. (Like show/hide progress or spinner etc)

Try the following (note the second then):
axios.post('/api/foo', {
    foo: 'bar'
}).then((response) => {
    // success
}).catch((response) => {
    // error
}).then(() => {
    // always executed
})

Closing as @lbausch's solution should work.


Proposing a few "more complex" rules

There are a few patterns I saw in a student's code that I would suggest refactorings on. I'd be glad to make pull requests with corresponding hlint rules, but first wanted to check whether they are considered reasonable, because they might be seen as "too special".
Case 1:
The student wrote code like this:
mapM (const ts) [1 .. n]

I'd replace this by:
replicateM n ts

An hlint rule
mapM (const x) l -> replicateM (length l) x

could serve that purpose, in particular if there were also a rule
length [1..n] -> max 0 n

or so.
If the above is considered fair game, then also this analogous rule would make sense:
map (const x) l -> replicate (length l) x

Case 2:
The student wrote code like this:
filter (`notElem` list) otherList

I'd propose a rule:
filter (`notElem` x) y -> y \\ x

Side issue:
I was surprised Hlint didn't "complain" about this elsewhere in the student's code: (,t) x. Can there be ordinary new rules
(,b) a -> (a,b)

and
(a,) b -> (a,b)

or are tuple sections treated in some special way during parsing so that these rules would not help?

All the first rules make a lot of sense. The ones about tuple sections might not though - as there are legitimate cases where the code becomes worse:
(,short) $ a really long sub expression
(short,) $ a really long sub expression

If those tuple rules were restricted to b being atomic (doesn't require brackets) then they'll probably all good.

I've made a pull request with these rules. Uncertain about two bits:

Is some kind of escaping (when writing the rule) necessary for \\ meant as list subtraction? https://github.com/ndmitchell/hlint/blob/68a7850e4f619d27fffbb14da010e85a89351b0f/data/hlint.yaml#L212
Above, did you really mean that in both cases b should be atomic in the tuple rules? Or always the expression that is moved from outside the tuple section inside the tuple? https://github.com/ndmitchell/hlint/blob/68a7850e4f619d27fffbb14da010e85a89351b0f/data/hlint.yaml#L571-L572

Anything else to do on this ticket or should it be shut?

Closing it.


Force safesearch for Web search engine (google, yahoo, bing...)

Add Safesearch option in proxy for filtering content in web search engine

timeout

Here's a description how to solve this with Unbound DNS:
https://forum.opnsense.org/index.php?topic=3423.0
You need to create a file with the CNAME A records like this:
 local-data: "www.google.com A <IP_ADDRESS>"
You can copy the list from the link above - we also duplicated the list without the 'www.'
local-data: "google.com A <IP_ADDRESS>"
and also added youtube and bing:
local-data: "www.youtube.com A <IP_ADDRESS>"
local-data: "youtubei.googleapis.com A <IP_ADDRESS>"
local-data: "youtube.googleapis.com A <IP_ADDRESS>"
local-data: "www.youtube-nocookie.com A <IP_ADDRESS>"
local-data: "www.youtube.de A <IP_ADDRESS>"
local-data: "youtubei.googleapis.de A <IP_ADDRESS>"
local-data: "youtube.googleapis.de A <IP_ADDRESS>"
local-data: "www.youtube-nocookie.de A <IP_ADDRESS>"
local-data: "youtube.de A <IP_ADDRESS>"
local-data: "youtube.com A <IP_ADDRESS>"

local-data: "www.bing.com A <IP_ADDRESS>"
local-data: "bing.com A <IP_ADDRESS>"

Hope this helps!
Cheers,
Stephan

Hi Stephan,
Thanks for the tutorial. :)
Cheers,
Franco

Could we have a list in this repo containing safesearch options for google/youtube, bing, startpage, ... so this could be embedded as a feature in OPNsense?

It's supported by Bind Plugin. Maybe I can add it to Dnscrypt-proxy too

Unbound is still the default on OPNsense installations so I was hoping to see such a feature in there, too.

@fichtner @AdSchellevis maybe we can add some folder include like with strongswan here too?
It would also ease things e.g. for plugins extending Unbound.

@mimugmail it's probably a good idea to add something similar, any suggestions for a target directory? The current files are generated into /var/unbound, I think we rather define some path in /usr/local/etc if that doesn't bite with the chroot it uses.

Though the point of the chroot is that you can't see /usr/local... additional symlink maybe? That being said, maybe a good point to kill the advanced settings as well...

Good point, an include folder could kill advanced options. I'm unsure at which place in config to include the include, my knowledge about Unbound is sadly bit limited.

Initially I thought the same, but I think it reads config  before performing the chroot(), within the chroot this doesn't exist either
https://github.com/opnsense/core/blob/31a81c51a6d76b44439acf4fdcb186075cab0e79/src/etc/inc/plugins.inc.d/unbound.inc#L329-L330
Which suggests it reads config first, but I might be wrong.
I don't mind killing advanced, as long as the include functions and it's in a major release.


Logo added

Description
I have added a .svg file for logo of the project
Checklist
Before submitting this pull request, please ensure that you have done the following:

[x] Read and understood the Contributing Guidelines.
[x] Checked that your changes align with the repository's goals and content.
[x] The submission is not already present in the list

Related Issues
Fixes #26
Additional Notes (if applicable)
Add any additional information or context that may be relevant to this pull request.

By submitting this pull request, you confirm that you have read and agree to abide by the Code of Conduct and the Contributing Guidelines of the AI Tools Collective project.

Thank you for viewing the design! Currently I don't have my laptop with me so I'll make the changes by evening today as soon as possible.

Nice design, Could you kindly incorporate this asset into the 'assets' directory? Within this directory, please create a new subdirectory and name it 'logo_v2.' Finally, place your assets in this 'logo_v2' subdirectory with the filename 'logo_v2.svg
We will promptly choose one of the assets from the pull requests (PRs) as soon as we can.
Thank you!

Sure. Don't forget to tick the checklist in the issue checklist

I have changed the location and updated the checklist.


Problem when upgrading Node.js to 16.31

I have upgrade node as recommended by a number of plugins, but then i get an error message in the log and the bluetooth devices don't work. When I set Node.js back to 14.81 everything works again but I get warning messages for plugins that want me to update Node.js
Is there a solution that allows me to keep all the plugins satisfied?
Thanks.
Details of your setup.

Do you use (1) Homebridge UI-X (2) Homebridge CLI or (3) HOOBS?

I use Homebridge UI-X running Govee on a child bridge.

Which version of Homebridge/HOOBS do you have?

homebridge-config-ui-x v4.41.2

Which platform do you run Homebridge/HOOBS on (e.g. Raspberry Pi/Windows/HOOBS Box)? Please also mention your version of Node.js/NPM if known.

Raspberry PI 3

Node version causes the problem in the plugin when I upgrade to 16.13 from 14.81

npm -version 8.1.0

Which version of this plugin (homebridge-govee) do you have? Has the issue started since upgrading from a previous version?

homebridge-govee v4.17.0

Which Govee devices do you have that are causing issues? Please include product models if applicable.
Bluetooth lights h6127

Please paste any relevant logs below.
relevant section of log showing error message.
<
[Govee] _Disabling BLE client as The module<EMAIL_ADDRESS>was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 93. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).was compiled against a different Node.js version using.

Yes, you can run these terminal commands to uninstall and reinstall the plugin...
sudo npm uninstall -g homebridge-govee

sudo npm install -g homebridge-govee

This will simply reinstall the plugin without losing any configuration or accessory cache.

Excellent, thanks very much.

solution worked perfectly


Query parameter name is encoded while it shouldn't be

Expected behavior
Query parameter name shouldn't be encoded.
Actual behavior
Query parameter name is encoded.
Steps to reproduce
If we go to following code, you will notice that we are encoding the query parameter name as well. I am wondering why would query parameter name needed to be encoded.
QueryStringEncoder.java
Also, if you look at unit test, it also don't test any specific use-case for parameter name to be encoded, although there are unit tests around parameter value to be encoded.
QueryStringEncoderTest.java
We works as a proxy app, and using Vertx, which in-turn uses Netty, and when we proxy following request, it causing the query parameter name being encoded while (probably) it shouldn't.
Input
/server/path?jREJBBB5x2AaiSSDO0/OskoCztDZBAAAAAADV1A4
Output
/server/path?jREJBBB5x2AaiSSDO0%2FOskoCztDZBAAAAAADV1A4
Please note that in sample above there is no value defined for the parameter. This is how we receive from a Windows device, so we are suppose to proxy it as-is.
Please See Vertx issue for reference - https://github.com/eclipse/vert.x/issues/2544
Netty version
4.1.x
JVM version (e.g. java -version)
1.8_181

@manish-panwar we love PRs... also @slandelle any thoughts ?

On vacation :)
@manish-panwar Actually, you're wrong, and parameter names must be encoded, just like parameter values.
The problem is that Netty's QueryStringEncoder uses URLEncoder for encoding query params, which is wrong as, as its javadoc states, is for application/x-www-form-urlencoded encoding!
From RFC3986:

query       = *( pchar / "/" / "?" )

so / shouldn't be percent encoded.
Sadly, JDK lacks a tool for building URIs (or maybe there's one with the new HTTP client in Java 11, can't say). There's one in JAX-RS, one in Spring, there's scala-uri for Scala... Basically, each URI part has its own valid character set.

Thanks a lot for the response guys! Looks like I might need help from Vertx guys to not use QueryStringEncoder.java, or some workaround. I will look into Java 11 HTTP Client as well, in case it has anything.

@arushi315 - Can you please look into Java 11?

Closing as it seems like this is not a bug


Health port 9879 conflict with kasperksy

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
We are setting up a server with cilium and for some reason it wouldn't work at all.
After a bit of investigating we saw that kaspersky antivirus is also using the port 9879.
The server is hosted on our IT infrastructure and every servers are required to have kaspersky installed on them without the possibility of uninstalling it.
The process using the port is kesl and I contacted IT about it but there is apparently no way to change the port used.
Cilium Version
1.12.0
Kernel Version
5.4.0-124-generic
Kubernetes Version
1.24.4
Sysdump
No response
Relevant log output
No response
Anything else?
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Have you checked and try the below helm attribute ?
https://docs.cilium.io/en/latest/helm-reference/#id1

healthPort | TCP port for the agent health API. This is not the port for cilium-health. | int | 9879


on "gallery" does not work "loop: false"

Issue description:  on "gallery" does not work "loop: false"
Demo link/slider setting:   https://codepen.io/Slllava/pen/WMwXow
Tiny-slider version:   2.5.2
Browser name && version:  Google Chrome 63
OS name && version:   mac os sierra

Hey, it's true and that's expected.

For gallery mode, a slide can't be transforming out while at the same time transforming in. So at least 3 times of items displayed on one page are required for this to work.
While I can detect if the total slide number is enough and then decide if the slider can set loop: false, but that won't guarantee the loop will always be false when user set it to.

If you set animateIn: 'fadeIn' and animateOut: 'fadeOut' it shouldn't need to duplicate the slides for example.
Is there a way to force the loop: false for "gallery" mode? are only set it to false if not provided by the user?
(I have some trouble with duplicated slides a reactive frameworks)

Fixed in v2.7.0


Restructuring of contributor's guide to be consistent with portal guide

Restructuring of contributor's guide to be consistent with changes made in the main Project Pythial Portal contributor's guide. This PR should not be merged until https://github.com/ProjectPythia/projectpythia.github.io/pull/97 is merged.

Now that https://github.com/ProjectPythia/projectpythia.github.io/pull/97 is merged, this one is just waiting for one more review from @andersy005  (prod, prod)


:wrench: [iOS・Compose Multiplatform] The issue where the bottom navigation overlapped with the Create Profile button and made it difficult to press has been fixed.

Issue

close #905

Overview (Required)

I simply added 30.dp to the bottom.
As I mentioned in the comments, I think it would be better to get the inset from the iOS side as a permanent measure and set the padding in ProfileCardScreen based on that.

Screenshot (Optional if screenshot test is present or unrelated to UI)

Before iPad mini
After iPad mini

Before iPhone 15
After iPhone 15

Before iPhone SE 3rd gen
After iPhone SE 3rd gen

Thank you for your contribution!


Ignore null values when decoding JSON

lgtm, I have a fix in my PR for the sleep at startup.

I added the missing handler https://github.com/code-ready/tray-windows/pull/85/files#diff-d321e6c10e14601e27b4840363160e8ccf82dd7fe4aef9d76b6c282914ae782eR79
lgtm!

I still see the exception when start result is an error and it tries to decode it as a working start result.

I still see the exception when start result is an error and it tries to decode it as a working start result.

This is fixed in #87 ?

It fixes for me the exception when start is ending with an error.


[Question] Duplicate metaData，version-2.4.0，Is this a bug or it has been fixed

Question

in database，the two same metaData createTime and updateTime is same

pls in english

2.0.4 is soul ？  if spring cloud have two， pls remove it

version is 2.0.4，Spring cloud plugin is only one

in multiple environments?  used same db ?

no，We have 6 environments，They are independent，but every env has same problem

已收到，谢谢。

synchronized and @Transactional(rollbackFor = Exception.class)

this is  2.4.1 ， you can try

Hi, does this question still exist? If there is still a problem, please resubmit the issue.


Performance monitor

Easy to enable / disable. It is disabled by default, can be enabled by setting fint.cache.performance-monitor=true
It will log performance numbers for implementations of no.fint.cache.CacheService, does not require the services themselves to implement anything
Provides the results (max, min, average, count and totalTimeUsed) on the endpoint /performance-monitor/measurements
All public methods are logged on the services, but the results can be filtered by adding ?key=, for instance if I want to look only at the add methods I can write the path like this: /performance-monitor/measurements?key=add
The responses will look like this:

"no.fint.consumer.models.kontaktperson.KontaktpersonCacheService.populateCacheAll": {
  "count": 1,
  "totalTimeUsed": 8,
  "min": 8,
  "max": 8,
  "average": 8
}

The measurements can be delete with DELETE /performance-monitor/measurements

I've updated Measurement to also be able to calculate variance, and using numerically stable calculation taken from https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance


Generic not inferred from contextual types

TypeScript Version:  2.9.2

Search Terms: generic infer contextual type
Code
const baz: (n: number) => number = (
    // param `n` is correctly inferred to be `number` :-)
    n => n
);

const identity = <T>(t: T) => t;

const bar: (n: number) => number = identity(
    // param `n` is inferred as `any`, expected `number` :-(
    x => x
);

Expected behavior: TypeScript should infer the generic T in identity from the contextual type.
Actual behavior: TypeScript infers the generic T in identity as any!
Playground Link:
Related Issues:

hmm I don't think this is valid.
What you are after is following:
// inferred bar 👉 (x: number) => number
const bar = identity((x: number) => x)

by doing
const bar: (n: number) => number = identity(
    x => x
);

you're telling compiler that bar should be type of (n: number) => number, but your are assigning to it identity<any>((x:any): any => x)

I thought TypeScript would use bars type annotation as a "contextual type" and use it to infer the generic to identity as (n: number) => number. 🤔

I might be wrong but I don't think so, that would mean that Generics can flow deeply to function calls

This is working as intended. Function and arrow expression parameters without type annotations are assigned contextual types only when the contextual type is known (before instantiation) to be a function type. In your example the contextual type is simply T, so we infer from the argument (x: any) => any to T. Had the contextual type been something like (x: T) => T, we would fix the inferences we've made so far for T (which would include inferences from the return type) and then assign that type to the x parameter.

yup what @ahejlsberg  and (myself partially) said :)

Thanks for the explanation @ahejlsberg and @Hotell.
To justify why I would like this with a real world use case:
const numberPromise = Promise.resolve(1);

numberPromise.then(
  // x is inferred as number, no type annotation required
  x => x + 1
);

// Later, when I need to expand on this function, if I use `pipe` I'm
// forced to add a type annotation to the parameter when it wasn't
// needed before.

numberPromise.then(pipe(
  // x is inferred as any, requiring me to add a type
  // annotation to the param that wasn't needed before
  x => x + 1,
  x => x * 2,
));

numberPromise.then(pipe(
  (x: number) => x + 1,
  x => x * 2,
));

@OliverJAsh How is pipe defined?

@ahejlsberg I'm using flow from Lodash, which is the same idea as pipe: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/64104e9760065bd498a3d62d98bb05ea26500dc2/types/lodash/common/util.d.ts#L209

Hmm interesting, those definitions might be wrong ? this works
declare const pipe: <A, R1, R2>(a: (arg: A) => R1, b: (args: R1) => R2) => (resolved: A) => R2

// $Expect number
const numberPromise = Promise.resolve(1)

numberPromise.then(
  // $Expect (x:number)=>number
  (x) => x + 1
)

// $Expect Promise<number>
numberPromise.then(
  pipe(
    // $Expect (x:number)=>number
    (x) => x + 1,
    // $Expect (x:number)=>number
    (x) => x * 2
  )
)

The issue appears to be that the flow wall of overloads starts with a series of declarations that have zero parameters for the first function. In the process of matching against those, we assign type any to the x parameter of the lambda (because there is no matching contextual parameter). However, once we've made that assignment it sticks and for reasons of consistency we can't undo it. It all works if you eliminate all but the one-parameter-first-function declarations of flow. Not sure there is much we can do to change this.

Ahh, that's good to know, so we can at least workaround it by patching the flow types to remove that overload (which we don't use).
I realised my original example was off the mark. Here is a correct example which does work:
const identityFn = <T>(fn: (t: T) => T) => fn;

const bar: (n: number) => number = identityFn(
  // param `n` is correctly inferred to be `number` :-)
  x => x
);

I guess this can be labelled as "won't fix"?


chore: update main deps

Group 2 is failing, specifically TS + Jest (ts-jest somehow cannot be found?)

I think it's because I didn't update de generators yet.

It seems version 23.0.0 breaks things.

Well that's not it. :|


updated broken url

Updated broken link to quantization-aware training section

I’ve never signed anything and id like to unsubscribe from these messages.
On Sun, Mar 7, 2021 at 11:17 AM Facebook Community Bot <
<EMAIL_ADDRESS>wrote:

Thank you for signing our Contributor License Agreement. We can now accept
your code for this (and any) Facebook open source project. Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/facebookresearch/d2go/pull/14#issuecomment-792313590,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASLGUDBJS7NXE2R3TDX5QFLTCOYKVANCNFSM4YYBKDPA
.

I’ve never signed anything and id like to unsubscribe from these messag

You may want to unwatch this repository.


New format for github.io site?

It would be nice to change the format for the github.io website.
At the moment it looks like a single "book" with chapters.
Ideally, I think we want it to have:

A stable intro or index page ("welcome to our data website")
A link to dashboards hosted on shinyapps.io
A set of blog posts so people can read what's new. These probably want to be created once (e.g. on a developer laptop) then uploaded somewhere.

github.io may not even be the right format for this... we should see how e.g. blog.tidyverse.org does it.

Here is how tidyverse.org does it:
https://github.com/tidyverse/tidyverse.org/
They use "hugodown"

But see also https://quarto.org/docs/websites/website-blog.html


Fix "minuteRead" i18n for post summaries

Thanks for the wonderful theme!
I noticed that post summary "minuteRead" i18n breaks when "en" language is selected.
Upon checking, I discovered that the i18n directive hadn't been passed the quantity variable. I added it, and a seemed to be good again. :)

Thank you for your love and help to fix this error! Already merged.

Thank you for your love and help to fix this error! Already merged.


[W5.7][W10-3]Zhang Cheng

Making Person implement Comparable is a good idea, I should do that as well. Maybe you can add JUnit tests for the sort command?

It would also be good if you updated the ParserTest too!


discord 0.10.0 broken on master

Describe the bug
Discord 0.10.0 cannot be built on master
To Reproduce
Steps to reproduce the behavior:

...
...
...

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: discord
# a list of nixos modules affected by the problem
module:

Error log:
these derivations will be built:
  /nix/store/j703fwcnzfg39n09rxzbzcr7gvn5gdkg-discord-0.0.10.drv
building '/nix/store/j703fwcnzfg39n09rxzbzcr7gvn5gdkg-discord-0.0.10.drv'...
unpacking sources
unpacking source archive /nix/store/5jmy879l92q2lbm9rp8yxs3p7j3i4fjv-discord-0.0.10.tar.gz
source root is Discord
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file Discord/swiftshader/libvk_swiftshader.so
patching sources
configuring
no configure script, doing nothing
building
no Makefile, doing nothing
installing
warning: working around a Linux kernel bug by creating a hole of 962560 bytes in ‘/nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/Discord’
gappsWrapperArgsHook
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10
shrinking /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/libGLESv2.so
shrinking /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/chrome-sandbox
shrinking /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/swiftshader/libGLESv2.so
shrinking /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/swiftshader/libEGL.so
shrinking /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/swiftshader/libvk_swiftshader.so
shrinking /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/libffmpeg.so
shrinking /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/.Discord-wrapped
shrinking /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/libEGL.so
rewriting symlink /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/bin/Discord to be relative to /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10
rewriting symlink /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/share/pixmaps/discord.png to be relative to /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10
strip is /nix/store/ivmds12g88jbjf8famgwkj36a4rrfcy6-binutils-2.31.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/bin
patching script interpreter paths in /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10
/nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/postinst.sh: interpreter directive changed from "/bin/sh" to "/nix/store/n313xks5ym0s0a5v8a5285rmnmvy6ms9-bash-4.4-p23/bin/sh"
checking for references to /build/ in /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10...
automatically fixing dependencies for ELF files
searching for dependencies of /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/libGLESv2.so
  libX11.so.6 -> found: /nix/store/k7s8q0wvm3fmrmnaxpazffm8xs28p7hg-libX11-1.6.8/lib/libX11.so.6
  libxcb.so.1 -> found: /nix/store/qvp4ypcri7gyqnr2wi3yvzx509v1imvj-libxcb-1.13.1/lib/libxcb.so.1
setting RPATH to: /nix/store/k7s8q0wvm3fmrmnaxpazffm8xs28p7hg-libX11-1.6.8/lib:/nix/store/qvp4ypcri7gyqnr2wi3yvzx509v1imvj-libxcb-1.13.1/lib
warning: working around a Linux kernel bug by creating a hole of 4096 bytes in ‘/nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/chrome-sandbox’
searching for dependencies of /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/chrome-sandbox
searching for dependencies of /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/swiftshader/libGLESv2.so
searching for dependencies of /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/swiftshader/libEGL.so
searching for dependencies of /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/swiftshader/libvk_swiftshader.so
searching for dependencies of /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/libffmpeg.so
searching for dependencies of /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/.Discord-wrapped
  libffmpeg.so -> found: /nix/store/v356dpr7phxqjc3v8sk8yyf1ykwnrb0j-discord-0.0.10/opt/Discord/libffmpeg.so

  libgobject-2.0.so.0 -> found: /nix/store/rwqh2r2ywf60f89yqly0psa5l8sjnldl-glib-2.64.3/lib/libgobject-2.0.so.0
  libglib-2.0.so.0 -> found: /nix/store/rwqh2r2ywf60f89yqly0psa5l8sjnldl-glib-2.64.3/lib/libglib-2.0.so.0
  libgio-2.0.so.0 -> found: /nix/store/rwqh2r2ywf60f89yqly0psa5l8sjnldl-glib-2.64.3/lib/libgio-2.0.so.0
  libX11.so.6 -> found: /nix/store/k7s8q0wvm3fmrmnaxpazffm8xs28p7hg-libX11-1.6.8/lib/libX11.so.6
  libX11-xcb.so.1 -> found: /nix/store/k7s8q0wvm3fmrmnaxpazffm8xs28p7hg-libX11-1.6.8/lib/libX11-xcb.so.1
  libxcb.so.1 -> found: /nix/store/qvp4ypcri7gyqnr2wi3yvzx509v1imvj-libxcb-1.13.1/lib/libxcb.so.1
  libXcomposite.so.1 -> found: /nix/store/7nwa0rik1lmbyjv6id9hcsc06h0v52qi-libXcomposite-0.4.5/lib/libXcomposite.so.1
  libXcursor.so.1 -> found: /nix/store/v4a5lf5m9ia352xmxwdc5rhz8b6s5w8y-libXcursor-1.2.0/lib/libXcursor.so.1
  libXdamage.so.1 -> found: /nix/store/il8ks656r8sx6shljyxl4zr92d293kqg-libXdamage-1.1.5/lib/libXdamage.so.1
  libXext.so.6 -> found: /nix/store/q6zp3wq8b4qvz5cxr377mdpr759pricy-libXext-1.3.4/lib/libXext.so.6
  libXfixes.so.3 -> found: /nix/store/1ifdrk72xs9wzxls40x22dcfg67100l2-libXfixes-5.0.3/lib/libXfixes.so.3
  libXi.so.6 -> found: /nix/store/3sfvhc845r67z9a1rgg25n7irx7mwhj9-libXi-1.7.10/lib/libXi.so.6
  libXrender.so.1 -> found: /nix/store/njj67kjmj3358vp3p98f9rfdlzsn6ihi-libXrender-0.9.10/lib/libXrender.so.1
  libXtst.so.6 -> found: /nix/store/rvqqd6s99ljkqxdc7zlgnvsnwgrjrb95-libXtst-1.2.3/lib/libXtst.so.6
  libnss3.so -> found: /nix/store/0h8qbyhgmd36y66xnpivypnydk1qdpnn-nss-3.52/lib/libnss3.so
  libnssutil3.so -> found: /nix/store/0h8qbyhgmd36y66xnpivypnydk1qdpnn-nss-3.52/lib/libnssutil3.so
  libsmime3.so -> found: /nix/store/0h8qbyhgmd36y66xnpivypnydk1qdpnn-nss-3.52/lib/libsmime3.so
  libnspr4.so -> found: /nix/store/3z4sd3rnm1x01lfmvfkmzb4l0202rn2y-nspr-4.25/lib/libnspr4.so
  libgdk_pixbuf-2.0.so.0 -> found: /nix/store/ngw5ls582h8fw2r6zl40cvllhx8nfhjj-gdk-pixbuf-2.40.0/lib/libgdk_pixbuf-2.0.so.0
  libgtk-3.so.0 -> found: /nix/store/77pnjyz4xs9zg3zpi37rcknh70x6sbpp-gtk+3-3.24.20/lib/libgtk-3.so.0
  libgdk-3.so.0 -> found: /nix/store/77pnjyz4xs9zg3zpi37rcknh70x6sbpp-gtk+3-3.24.20/lib/libgdk-3.so.0
  libpangocairo-1.0.so.0 -> found: /nix/store/qarj2ld0srspvzd6rm2lw6bbyb2vkxn9-pango-1.44.7/lib/libpangocairo-1.0.so.0
  libpango-1.0.so.0 -> found: /nix/store/qarj2ld0srspvzd6rm2lw6bbyb2vkxn9-pango-1.44.7/lib/libpango-1.0.so.0
  libatk-1.0.so.0 -> found: /nix/store/p6vzpc8sw4sv2ggv8g8cnd030bw4dy78-atk-2.36.0/lib/libatk-1.0.so.0
  libcairo.so.2 -> found: /nix/store/37ibwas86h407ngjmfjdhaw0zxfvhxfy-cairo-1.16.0/lib/libcairo.so.2
  libdbus-1.so.3 -> found: /nix/store/2i9ajsf6v9h929pb7x30rgxxrciqjkaw-dbus-1.12.16-lib/lib/libdbus-1.so.3
  libexpat.so.1 -> found: /nix/store/xl7q014dcsr3gnmh7gzfbm5cpkg711y8-expat-2.2.8/lib/libexpat.so.1
  libuuid.so.1 -> not found!
  libXrandr.so.2 -> found: /nix/store/b705b0yd0i722z1kyylkg8qfc5jj6sj7-libXrandr-1.5.2/lib/libXrandr.so.2
  libXss.so.1 -> found: /nix/store/yccw8mi0zfb216pgbpljzy3l6z8ymvjk-libXScrnSaver-1.2.3/lib/libXss.so.1
  libasound.so.2 -> found: /nix/store/l81gdpk157khia4bj2zk98dv761pzcqq-alsa-lib-1.2.2/lib/libasound.so.2
  libatk-bridge-2.0.so.0 -> found: /nix/store/yqgj52grfyp6jdzplsdsy22cj0ljxgpp-at-spi2-atk-2.34.2/lib/libatk-bridge-2.0.so.0
  libatspi.so.0 -> found: /nix/store/9amlijmm615skg07rrrwacbz6qmbzbg8-at-spi2-core-2.36.0/lib/libatspi.so.0
  libcups.so.2 -> found: /nix/store/ns7mdjm5j2f3fmrrdg19rcbv1csvpqsx-cups-2.3.3-lib/lib/libcups.so.2
builder for '/nix/store/j703fwcnzfg39n09rxzbzcr7gvn5gdkg-discord-0.0.10.drv' failed with exit code 1
error: build of '/nix/store/j703fwcnzfg39n09rxzbzcr7gvn5gdkg-discord-0.0.10.drv' failed

important line:
  libuuid.so.1 -> not found!

Adding libuuid to nativeBuildInputs allows the package to build for me. I don't what changed to need this https://github.com/NixOS/nixpkgs/blob/dbdc5af9e8145dbc7ffe71cf1c7287d7497f1c16/pkgs/applications/networking/instant-messengers/discord/base.nix#L15

@rtldg can you send a pull request with the fix, please?


investigator vs traffickingGrab?

What's the difference between the goals of this repo and https://github.com/EricSchles/traffickingGrab ?

Hey Ian,
That's a great question!  There is no difference between the goals.  However, I'd say traffickingGrab was an early attempt and a poor one at that.  It was early in my programming days and stands as one of the worst pieces of code I've written.  This is definitely my fault - I have a bad habit of starting a project in one form and then giving up, and starting over in a new form.  I like to take the good ideas from the previous project without any of the cruft of the old.
In fact, this version, is probably closer to the 50th iteration of the same idea.  But that's the advantage of mostly working alone (on this), I get to learn what I can from each iteration and then move onto a new repository.
However, I've recognized this pattern and I think it's time to stick it out with one repo.  That's why this one has key features the others did not:

a commitment to documentation
a commitment to code clarity with careful documentation standards for every single function
a commitment to test driven development - that will be going on the road map soon - to get everything working on travis-ci (I'm still trying to do decide on how to test the machine learning pieces the right way)
a commitment to being transparent - which is why all conversations are happening in the issues of the repo


Will Catch get an update?

Make sure to do the following before submitting your issue - thanks!

[ ] Make sure you're running the latest release. You can find your version number at the bottom of the Help menu in Catch.
[ ] Check the FAQ, your question might be answered there.
[ ] Check for an open issue, and please comment on that issue instead of creating a duplicate.

Yes, check out the releases page for alphas!


Over resource limits on Streamlit Cloud

Hey there :wave: Just wanted to let you know that your app on Streamlit Cloud deployed from this repo has gone over its resource limits. Access to the app is temporarily limited. Visit the app to see more details and possible solutions.

Yes, a lot of people using it and I don't want to pay more :)


Remove test release from deployment action

My proposal to fix #662 is to remove the test PyPI deploy, which I don't think is necessary. This was overkill on my part.

Thank you, @palewire !


Refactor utility functions for efficiency

Many of the utility functions defined in ros_utils, math_utils, and quad_kd pass inputs by value rather than const reference. Switching these should help efficiency across the board (particularly when mapping between data structures or computing FK/IK across trajectories).

Also any functions which can be defined as const should be.


Attemp to fix issue #39

Attemp to fix issue #39 by using reloadFromDisk instead of saveDocumentAsIs

I'll open a new one, this one was from master


Parse raw headers only if its name matches

Otherwise the header we're matching against will be parsed even if its name doesn't match.

I think it could be worthful to add a couple of tests for this change – some positive and negative scenario. wdyt?

Oh. this is a name shadowing. Well spotted.

A test would be nice, I agree. Seems a bit tricky but I have an idea, though I likely won't have time to try it before the weekend.

I also think this can be released against series/0.21.

Sorry, I can't come up with a test for this.
As far as I can tell it would require mocking either Header.Raw.parsed or (object) Header.unapply, and the first isn't possible with Mockito because it's a final class and the second isn't possible because it's an object.
Using the debugger shows that this calls Header.Raw.parsed also for Boom without my fix (and that my change eliminates that call), but I don't know how to translate it into a test:
import org.http4s.headers.`Content-Location`

class DoNotParseUnnecessarily extends Http4sSpec {
  "HeaderKey matchHeader".can {
    "Skip parsing headers that don't match the name" in {
      val s = "http://www.foo.com"
      val Right(uri) = Uri.fromString(s)
      val hs = Headers.of(
        Header("Boom", "123"),
        Header("Content-Location", s)
      )

      `Content-Location`.from(hs) must beSome(`Content-Location`(uri))
    }
  }
}

Maybe there's a way, but I'm stumped.

Ah, seems I got it. This check for name equality doesn't change any observable behavior but speeds matchHeader up by letting to avoid parsing a "raw" header. Sorry, all this header-related mechanic is a way complicated, didn't catch it from the first time. I agree, that it'd be too difficult to test this particular case appropriately and it should be safe to go without it.

No problem, @satorg. It was worth a shot. @rossabaker I don't think I have anything more to add, feel free to merge if it looks good to you.

Cherry-picked for release in 0.21.8. Thanks again!


DOCS Update cow docs to reflect current process

The cow release process doesn't reflect the current state of play.
For better or worse, these docs have been updated to reflect the actual process as it currently is.

Have rebased after the merge of the Satis PR and retargeted to 4.0.
This is looking much better. Thanks, everyone.


Check overlap with pydantic

What's done here that modelspec doesn't currently do?
https://github.com/pydantic/pydantic

I took a look at pydantic when I did the conversion to attrs/cattrs. This article gives some of the reasoning behind why I decided against using it.  Overall though, both libraries implement similar functionality. The main difference between modelspec and these libraries is the non-conventional way we are representing lists of objects that have ids as dicts in JSON. Most of the code that I wrote for modelspec handles overriding default JSON serialization and deserialization of a list of objects with ids so that that ids are not serialized with other attributes in the object but instead as keys in a dictionary that contains the underlying object.


[AMBARI-23032] Support for Blueprint exports for MPack-based clusters

What changes were proposed in this pull request?
Improvements for blueprint installation and export.

mpack information is exported
fixed the NPE during blueprint export

How was this patch tested?
Fixes were tested manually.
Unit test run results:
Tests run: 4890, Failures: 29, Errors: 86, Skipped: 43

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1249/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1250/
Test FAILed.
Test FAILured.

Hey @rnettleton, re unit test: actually it's a bit difficult. The cause of the issue was, that the internals of AmbariContext changed. AmbariContext is normally created by Guice with its dependencies injected but the ClusterBlueprintRenderer simply instantiated it (this was a wrong approach, but hadn't cause an error until the internals had changed and the code path was hitting an uninjected dependency). I changed the implementation so that ClusterBlueprintRenderer uses a properly injected instance. Unfortunately writing a unit test for this would require setting up mocks for AmbariContext and the test would only prove whether mocks were properly set up.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1306/
Test FAILed.
Test FAILured.

@adoroszlai please check out the latest commit re exported "Blueprints" key.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1355/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1389/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1399/
Test FAILed.
Test FAILured.


How to resize a UIImage in mm?

Is it possible to apply this framework to a UIImage?  I want to resize an image to 152 mm x 203 mm for printing on paper?

This framework is focused more on ensuring that the on-screen size is accurate. For printing, you’d probably be best off using a UIPrintPageRenderer and manually specifying the exact size to draw.

Do you think if I size an imageview to 51x51mm for ex, then set its image, and then snapshot the image view, that it will work? It seems to give the wrong size.  The width and height is 302, 302 - when it is exported out, preview say its 152 mm?


Unable to remove corrupted movie

Description
I have a movie in my watchlist that became "not found" somehow.
There is a Clear Data button under it, but when I press it, nothing happens.
Version
2.0.1
Steps to Reproduce

Not sure how it happened, but the "Movie not found" tile appears in my watchlist on the home page.
Press Clear Data button
Movie remains there

Screenshots

Logs
No response
Platform
desktop
Device
PC
Operating System
Windows 11
Browser
Chrome, Firefox
Additional Context
No response
Code of Conduct

[X] I agree to follow Jellyseerr's Code of Conduct

It's not a corrupted media. That media has been removed from tmdb. It's just cached for now. Should be cleared when your tmdb cache gets renewed

Is there a way to manually renew this cache?
The missing movie has been there for months now, not getting cleared.
I tried clearing everything by the settings/Job & Caches, but didn't help.

Is there a way to manually renew this cache?
The missing movie has been there for months now, not getting cleared.
I tried clearing everything by the settings/Job & Caches, but didn't help.

flush cache tmdb didn't help? Did you try pressing clear data and then flush cache?

flush cache tmdb didn't help? Did you try pressing clear data and then flush cache?
yes, I did first press the clear data button then flush cache.
Now in Settings / Job & Caches I can see The Movie Database (tmdb) image cached / cache size = 0, but the missing movie is still showing up.

Pressing the clear button outputs this error in the log BTW:
Could not find any entity of type "Media" matching: { "where": { "id": 1261287 } }

Hi, I'm also having this issue. I've clicked on clear data and flushed all my caches in the web UI and the issue persists. I'm running the latest version of Jellyseer 2.0.1 on TrueNAS SCALE ElectricEEL <IP_ADDRESS>

Hi, I'm also having this issue. I've clicked on clear data and flushed all my caches in the web UI and the issue persists. I'm running the latest version of Jellyseer 2.0.1 on TrueNAS SCALE ElectricEEL <IP_ADDRESS>

Your issue is different. Please hop onto discord to troubleshoot. This issue is about a media thats removed. Your issue seems to be entirety of tmdb not being reached


Fix popover double-focus

Jira
http://vjira2:8080/browse/BDS-1986
Summary
Fix popover double-focus.
Details
We were checking the wrong slot for focusable content. Now we're checking the "default" slot which contains the trigger, the content we actually want to inspect. With that change, it's working as expected.
How to test

Review code change.
Test this demo on PL: /pattern-lab/patterns/02-components-popover-20-popover-use-case-menu/02-components-popover-20-popover-use-case-menu.html. You should only have to tab once to focus on the Popover trigger.

PR was released with v2.18.0


load-time metadata transformation pipeline

When we ingest plugin/theme/whatever metadata, we should run it through a series of steps including validation (basic sanity checks, the Model can take care of the rest) and targeted filtering and rewrites.  For instance, I would like to blacklist upstream's version of advanced-custom-fields such that it never makes it into the database.  We can add ACF from its official source, but the mechanics of that are out of scope for metadata filtering and transformation.
Laravel's own Pipeline class might be ideal for this, it's how middleware is implemented.  I'm not totally enamored of every aspect of Pipeline's design, but it's more than good enough for this purpose.

The ACF issue may soon become moot, so I haven't prioritized this, but we're going to want the pipeline for other reasons.


Integration with PF2E world clock

Hi. I really like the aesthetic of this module for "player awareness". I wonder if there's any prospect of syncing to the PF2E World Clock in the same way that it looks like you do with AboutTime? (The latest version of PF2E does not play nicely with AboutTime.)

Ughhh why does PF2E have to do everything on its own. I think probably the answer is no, trying to incorporate two separate sync sources is beyond what I'm interested in doing, but I'll take a look. Would be great if the PF2E folks could figure out how to send to AT though.

Not a smalltime issue, but I just tested the about-time/pf2e interaction issue and could not repro with pf2e 1.15

Resolved - root cause was an non-rules default user setting in the world in question causing PF2E & About TIme to interact peculiarly.


OAI endpoint no longer supports exposing embargo dates

Is your feature request related to a problem? Please describe.
In DSpace 5.x and 6.x, embargo dates where present in the item metadata, and therefore could be crosswalked and exposed in the OAI metadata. This is something particularly important when exposing the open access status of fulltext bitstreams in DSpace.
Describe the solution you'd like
For this information to be exposed back in the OAI metadata.
Describe alternatives or workarounds you've considered
We've considered using the open access status (open access, embargoed, etc.) instead but this not provide any information about when the file will become available and it is needed for a number of external open access services.
Additional context
Add any other context or screenshots about the feature request here.

@tdonohue Cambridge is willing to submit a pull request for this functionality so that it is made available for all DSpace users. To give a bit more context, this functionality not being available since the upgrade will cause issues to many institutions in the UK that currently submit theses information to the EThOS service, based at the British Library, amongst potentially other external services.

We would support this at Uni of Nottingham. We've not moved to 7 yet but when we do, we plan to start hosting our eTheses collection on it so having the embargo dates in OAI would be useful for us re. BL/EThOS too. Not sure if they show on the repository UI but if they don't, that would be useful too.

We would support this at Queen Mary University of London, as we use the same service.  We are in the process of planning our migration for DSpace 7, and already host our thesis collection in our current version (5.x)

@amgciadev : I think this makes sense as a new, minor improvement to OAI-PMH.  Depending on the size of the code changes, it might also be considered a "bug fix" and could be considered for a bug-fix release of 7.6 (as we will still have bug fix releases to the 7.x platform in the future). But, I think that determination couldn't be made until we understand the scope of the changes required.
In any case, I'll assign this to you since you've volunteered to create a PR.


[Basic] What does null! mean?

What cheatsheet is this about? (if applicable)
Basic cheatsheet
What's your issue or idea?
const ref1 = useRef<HTMLElement>(null!);
What does null! mean in the code above, and the first time I saw this used, what benefits did he have? Can it be used elsewhere?
type Action =
   | {type: "SET_ONE"; payload: string}
   | {type: "SET_TWO"; payload: number };

In the above code, why is there no content to the left of the first |? this is the code can not write type?
Thank you

null! is a non-null assertion operator (the !). It asserts that any expression before it is not null or undefined, so if you have useRef<HTMLElement>(null!) it means that you're instantiating the ref with a current value of null but lying to TypeScript that it's not null.

The TypeScript syntax allows for leading | when creating unions:
// this is valid syntax
type Fruits = | 'banana' | 'apple' | 'cherry'

nice shout, i can explain that better in the cheatsheet


Implement android register page

Implement a register page for android
Registration page must include these:

mail
name
password and its validation
accept conditions check

A simple design is given below.

Make sure all fields have proper validation before sending it to server:

Password fields match and it is safe (at least 6 characters and a number maybe?)
Mail address is valid
Name is not empty
Terms of use is accepted

Thank you, I will go over these.

Done.


Setting up of react-native-reanimated-carousel with react-native-web on Bare React Native

Hi there, this is a really great library and replacement for react-native-snap-carousel.
I've been looking through the repository for an example of how to configure react-native-reanimated-carousel but all I was able to see was a setup for expo and I tried using some of the webpack configurations used but I'm still experiencing problems with while on react-native-web
ERROR in ../../node_modules/react-native/Libraries/Alert/Alert.js 1:380-408
Module not found: Error: Can't resolve './RCTAlertManager' in '{project}/node_modules/react-native/Libraries/Alert'

ERROR in ../../node_modules/react-native/Libraries/Components/TextInput/TextInputState.js 1:264-299
Module not found: Error: Can't resolve '../../Utilities/Platform' in '{project}/node_modules/react-native/Libraries/Components/TextInput'

ERROR in ../../node_modules/react-native/Libraries/Network/XMLHttpRequest.js 1:1656-1682
Module not found: Error: Can't resolve './RCTNetworking' in '{project}/node_modules/react-native/Libraries/Network'

ERROR in ../../node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js 1:902-973
Module not found: Error: Can't resolve '../Components/AccessibilityInfo/legacySendAccessibilityEvent' in '{project}/node_modules/react-native/Libraries/ReactPrivate'

ERROR in ../../node_modules/react-native/Libraries/StyleSheet/normalizeColor.js 1:248-284
Module not found: Error: Can't resolve './PlatformColorValueTypes' in '{project}/node_modules/react-native/Libraries/StyleSheet'

ERROR in ../../node_modules/react-native/Libraries/StyleSheet/processColor.js 1:362-417
Module not found: Error: Can't resolve './PlatformColorValueTypes' in '{project}/node_modules/react-native/Libraries/StyleSheet'

ERROR in ../../node_modules/react-native/Libraries/Utilities/HMRClient.js 1:567-588
Module not found: Error: Can't resolve './Platform' in '{project}/node_modules/react-native/Libraries/Utilities'

This is what I have in my webpack.config.js
const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');
const appDirectory = path.resolve(__dirname);
const isProduction = process.env.NODE_ENV === 'production';
const APP_ENV = process.env.APP_ENV;

const compileNodeModules = [
  'react-native-reanimated',
  'react-native-reanimated-carousel',
  'react-native-web'
].map((moduleName) => path.resolve(appDirectory, `../../node_modules/${moduleName}`));

const babelLoaderConfiguration = {
  test: /\.js$|tsx?$/,
  include: [
    path.resolve(__dirname, 'index.web.js'), // Entry to your application
    path.resolve(__dirname, 'src'),
    ...compileNodeModules
  ],
  use: {
    loader: 'babel-loader',
    options: {
      cacheDirectory: true,
      presets: ['module:metro-react-native-babel-preset'],
      plugins: [
        'react-native-web',
        [
          'babel-plugin-styled-components',
          {
            displayName: !isProduction,
            pure: true
          }
        ],
        process.env.NODE_ENV !== 'production' && 'react-refresh/babel'
      ].filter(Boolean)
    }
  }
};

const svgLoaderConfiguration = {
  test: /\.svg$/,
  use: [
    {
      loader: '@svgr/webpack'
    }
  ]
};

const ttfLoaderConfiguration = {
  test: /\.ttf$/,
  loader: 'url-loader', // or directly file-loader
  include: [path.resolve(appDirectory, '../../node_modules/react-native-vector-icons')]
};

const imageLoaderConfiguration = {
  test: /\.(gif|jpe?g|png)$/,
  use: {
    loader: 'url-loader',
    options: {
      name: '[name].[ext]',
      esModule: false
    }
  }
};

const cssLoaderConfiguration = {
  test: /\.css$/,
  use: ['style-loader', 'css-loader', 'postcss-loader']
};

module.exports = {
  target: 'web',
  entry: [
    path.resolve(appDirectory, 'index.web.js')
  ],
  output: { ... },
  resolve: {
    extensions: ['.web.tsx', '.web.ts', 'web.js', '.tsx', '.ts', '.js', '.json'],
    alias:
      'react-native$': 'react-native-web',
      locales: path.resolve(__dirname, 'i18n/locales'),
      '../Utilities/Platform': 'react-native-web/dist/exports/Platform'
    }
  },
  module: {
    rules: [
      babelLoaderConfiguration,
      svgLoaderConfiguration,
      ttfLoaderConfiguration,
      imageLoaderConfiguration,
      cssLoaderConfiguration
    ]
  }
};

This is what I have in babel.config.js
module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: [
    [
      'module-resolver',
      {
        root: ['./src'],
        extensions: ['.ios.js', '.android.js', '.js', '.ts', '.tsx', '.json'],
      }
    ],
    'react-native-reanimated/plugin',
    '@babel/plugin-syntax-dynamic-import'
  ]
};

I'm not exactly sure how to resolve all this errors so I would like to seek help on this. Thank you so much, do let me know if you require more details.

Hi @JavanHuang 👋, are you facing this issues through the react native app project or specifically on react native for web?, I'm looking how I can help you with this

@oliverloops Hi there, thanks for the follow-up! Apologies for the late reply.
I'm unsure if I did implemented this correctly because there isn't any mention of how this library is compiled onto the web through react-native-web. So what I wanted was to have some clearer instructions on how to use this library react-native-web (is there any additional steps to do on babel.config.js or webpack.config.js that I'm missing besides the one I've included).

Hi @JavanHuang :  Did you find any solution for this ?


Training SOTA details on Mapillary

Hello, thanks for your great work!
I tried to reproduce the results on the Mapillary val set that mIoU is 61.05. But I got 60.08 on val set there is still a 1.0 gap with your model results. My train_mapillary.yml is:
CMD: "python -m torch.distributed.launch --nproc_per_node=8 train.py"

HPARAMS: [
  {
   dataset: mapillary,
   cv: 0,
   result_dir: LOGDIR,

   pre_size: 2177,
   crop_size: "1024,1856",
   syncbn: true,
   apex: true,
   fp16: true,
   gblur: true,

   bs_trn: 1,

   lr_schedule: poly,
   poly_exp: 1.0,
   optimizer: sgd,
   lr: 2e-2,
   max_epoch: 200,
   rmi_loss: true,

   arch: ocrnet.HRNet_Mscale,
   n_scales: '0.25,0.5,1.0,2.0',
  }
]

And I train this model across 4 nodes that 8GPUs per node. All these settings are the same as mentioned in your paper.
Could you provide some other training details?
Thanks!

Hello @huangqiuyu ,
It sounds like you're very close. I'm sharing the per-class evaluation for our best model below. Note that we achieve this only with multi-scale eval with scales of 0.25, 0.5, 1.0, 2.0. It would probably make sense to compare your per-class IOUs to ours to see where the difference is. There may be a few unstable classes that differ, which may result in the overall difference.

Hello @huangqiuyu ,
It sounds like you're very close. I'm sharing the per-class evaluation for our best model below. Note that we achieve this only with multi-scale eval with scales of 0.25, 0.5, 1.0, 2.0. It would probably make sense to compare your per-class IOUs to ours to see where the difference is. There may be a few unstable classes that differ, which may result in the overall difference.

This is my results below. It's look like a lot of differents with you provide, there are 6.0+ gaps in some classes. I can't find the reason of these differences, can you give me your yml file about training best model?


invalidate only works once, removes computation

Not certain exactly why this is the case, but once a call is invalidated it removes the computation and is not able to be invalidated again.
Reproduction: https://github.com/ecwyne/reactive-method-issue-10

Thanks, a repro would be much appreciated!

@stubailo Here's the repro

Especially notice that you can only click invalidate button once.

Is a Computation automatically "stopped" onInvalidate?
https://github.com/meteor/meteor/blob/devel/packages/tracker/tracker.js#L567
And then ReactiveMethod deletes computation here?

I don't think you posted the repro when you said "Here's the repro"

Look at the original comment. My bad

I believe I got it working. Check out how I did so manually in the working branch of my repo
https://github.com/ecwyne/reactive-method-issue-10/blob/working/invalidate-example.js#L16-L17

After deleting the _reactiveMethodData property we need to run the Computation._compute() method instead of the Computation.invalidate() method

PR: https://github.com/stubailo/meteor-reactive-method/pull/11

I ran into this issue as well, hoping PR #11 fixes this :)

I'm having this issue as well, has it been resolved by PR #11?

+1

I think that the error is because the command:
recordMethodComputation(cc, serializedArgs);
is inside the else and this command should run for both conditions (if and else)

+1


esphome: 2023.7.1 -> 2023.8.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for esphome is: Make creating custom firmwares for ESP32/ESP8266 super easy
meta.homepage for esphome is: https://esphome.io/
meta.changelog for esphome is: https://github.com/esphome/esphome/releases/tag/2023.8.1
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2023.8.1 with grep in /nix/store/bjzav0jc7fc4m4yxryz6jp3q9620j5xa-esphome-2023.8.1
found 2023.8.1 in filename of file in /nix/store/bjzav0jc7fc4m4yxryz6jp3q9620j5xa-esphome-2023.8.1

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
esphome

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/bjzav0jc7fc4m4yxryz6jp3q9620j5xa-esphome-2023.8.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A esphome https://github.com/r-ryantm/nixpkgs/archive/7e03f66725679528c73160da56565a2d10998884.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/bjzav0jc7fc4m4yxryz6jp3q9620j5xa-esphome-2023.8.1
ls -la /nix/store/bjzav0jc7fc4m4yxryz6jp3q9620j5xa-esphome-2023.8.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

esphome

Maintainer pings
cc @globin @mweinelt for testing.

Result of nixpkgs-review pr 249966 run on x86_64-linux 1

2 packages built:

esphome
esphome.dist

Deployed on all my nodes at home and everything is working alright.


Refactor supported_modes to calculation_strategy for consistency

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

4 of 4 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 97.011%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2661

Relevant Lines:
2743

💛  - Coveralls


Fix: Use the same version of phpunit on Travis as required with Composer

This PR

[x] uses the same version of PHPUnit on Travis as required with Composer

Good idea :+1:


Concurrency

Can spark-xml be used to read lots of files in parallel? i.e., I've used RDDs of file names in the past and, using map(), read the files in parallel at the executors. The general usage patterns I see for spark-xml look like I/O would be serialized at the driver. Am I missing something simple?
Thanks.

Hi @stevencox, the transformation process would be executed in parallel just like the other data sources. Do you mind if I ask some sample codes you run? I would like to reproduce if it was observed that the jobs are executed not in parallel.

Hi @HyukjinKwon, I'm probably just not using the API correctly. Perhaps you can help me get it straight.
I'm iterating over a list of XML files to create a list of dataframe objects.
My first question is why there's a large pause between each file (which suggest it's actually being parsed, therefore serializing I/O) whereas, I thought execution should be deferred until I try to call collect() or similar on the dataframe.
My second questions is what the best way is to union the results of these dataframes - is there a way to pass a list of files to read? Ultimately, I really want a single dataframe with all of these results.
archives = glob.glob (os.path.join (path, "*.xml"))
dataframes = map (parse, archives)
union = self.sc.parallelize ([])
for d in dataframes:
    union = union.union (d)

The parse() function is something like this:
            sqlContext = SQLContext (sc)
            dataframe = sqlContext.read.format ('com.databricks.spark.xml'). \
                        options(rowTag='RowTag'). \
                        load (file_uri)
            dataframe = dataframe.select (dataframe["FieldA"], dataframe["FieldB"]). \
                    map (lambda r : translate_row (r))

I just learned about SparkContext.union() which seems like a better option for my second question.

@HyukjinKwon, can you help me understand why the code below still reads one file at a time?

First, we find a set of XML files and parse them. My intention is to union a set of dataframes without actually executing the Spark pipeline:

        archives = glob.glob (os.path.join (self.medline_path, "*.xml"))
        dataframes = map (self.parse_xml, archives)
        union = self.sc.union (dataframes).select (
            dataframe["DateCreated"],
            dataframe["Article"]["Journal"]["JournalIssue"]["PubDate"],
            dataframe["PMID"]). \
            map (lambda row : Medline.map_date_numeric (row))

The parse_xml function looks like this:

def parse_xml (...): ...

@staticmethod
    def parse_medline_xml (data_root, file_name):
        dataframe = None
        ...
        logger.info ("** Parsing {0}".format (file_uri))
        return SQLContext (Medline.sc).read. \
            format ('com.databricks.spark.xml'). \
            options(rowTag='MedlineCitation'). \
            load (file_uri)

I had hoped that parse_xml would not actually parse the file so that I could union the resulting dataframes for parallel loading. That's not what happens. There's a long pause as each file is completely parsed.
Thanks for your help.

FYI, for whatever it's worth to others, I

Got rid of dataframes
parallelized the file list as an RDD
parsed each with ElementTree
flatMapped the results into a flat RDD
It's easy and perfectly parallel.

It takes time because if you dont specify a schema, it has to infer it.
though im not a python coder and you seem to have solved your issue
On Wed, Jul 20, 2016 at 4:21 PM, Steven<EMAIL_ADDRESS>wrote:

FYI, for whatever it's worth to others, I

Got rid of dataframes
parallelized the file list as an RDD
parsed each with ElementTree
flatMapped the results into a flat RDD It's easy and perfectly
parallel.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/databricks/spark-xml/issues/130#issuecomment-233964069,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQVELCebfv_zC95Yea4pPhJ2QoROJEpLks5qXi72gaJpZM4I7m5f
.
--
Benjamin Bertrand
<EMAIL_ADDRESS>Skype : bertrandbenjam1
LinkedIn : http://www.linkedin.com/pub/benjamin-bertrand/8a/a4a/461

hello, I have met the same problem as you, can you give me an example of how to realize concurrency, I used scala, but I don't know what to do with it


0.47 issue on initial install, fixed by downgrading and upgrading

Please select the area your Bug applys to. (Multiple selections are Possible)

[ ] Onboard. Initial vault setup and import/export pods
[x ] Create. Note creation, lookup, snippets and templates
[ ] Retrieve. Backlinks, references, graph view
[ ] Structure. Refactoring, multi-vault and schemas
[ ] Publish. Sharing your repo with the world
[ ] Misc (Choose this if your not sure)

Describe the bug
A clear and concise description of what the bug is.
When using the Lookup command on Windows 10, VSCode, Devcontainer, using 0.47 version of Dendron, I am getting the following errors when trying to open a note using crtl+l Lookup.
'Cannot read property 'name' of undefined'
Strangely, when I downgraded to 0.46, it worked, and continued working when I re-upgraded back to 0.47.
Desktop (please complete the following information)

OS: [e.g. iOS] Windows 10
Browser [e.g. chrome, safari]
Version [e.g. 22] 0.47

0.47 is supposed to add the following to the dendron.yml on upgrade (because of a new feature) but sometimes it doesn't work:
journal:
    dailyDomain: daily
    name: journal
    dateFormat: y.MM.dd
    addBehavior: childOfDomain

As a workaround, you can manually add the above block to dendron.yml.

We updated our update script so this should no longer happen with 0.48


Share state between view and Layout view?

I would like to be able to set some variable from within a content view, which gets rendered by its Layout view.
For example, in Razor for MVC I can do this: ViewBag.Title = "My Content Page".
Then, from within Layout.cshtml I can render that string like so: @ViewBag.Title
I tried to mimic that behavior by setting a custom base template which has a dynamic ViewBag property initialized to a new ExpandoObject, but it looks like as if the Layout template gets executed before the content template itself (causing a "Cannot perform runtime binding on a null reference" error, probably because Title is not yet set from the content page)

Correction: RazorEngine does execute the content template before the Layout template, so that's not the cause of the above mentioned error. After second thought, both the content template as the Layout template are individual instances of TemplateBase, so they each have their own Title property of course. I will try to see what I can do with the model, which should be shared by both template instances.

Bummer, when resolving the Layout, it does not get an instance of the model :(

We could add a shared ViewBag property to the base template, this would have to be tracked through the ExecuteContext that manages the template execution. Will investigate today for you. The model type will need consideration, but I imagine we could simply reuse the same model type, and allow you to override it using @model in the layout.

This now works. It would make sense for me to push a common ViewBag property into the base template type, which is what I have done. This means you don't need to implement in a custom base template type. There is a caveat, this only shares state between layouts and child templates.
If you are using @Include(...) then this creates a whole new ExecuteContext for that child rendering request.

In regards to the Model issue, I'll address this through issue #6