Call this._handleLoadingState(false) inside requestAnimationFrame callback

I've noticed(especially on mobile Safari) that sometimes loading text doesn't disappear.
After some debugging, I've found that this._handleLoadingState(true) could run after ajax callback which calls directly this._handleLoadingState(false).
Calling ajax callback inside requestAnimationFrame fixed an issue.
What do you think about calling this._handleLoadingState(false) inside requestAnimationFrame it should remove the possibility of calling this._handleLoadingState(true) after this._handleLoadingState(false).

Hey @marzubov,
Do you mean like this?
requestAnimationFrame(() => {
  this._handleLoadingState(true);
  fn(this._ajaxCallback());
  this._handleLoadingState(false);
});

Hi @jshjohnson,
In your example, this._handleLoadingState(false); is redundant, because the loading state will be shown and then will be removed instantly.
I was thinking about updating this line to something like this:
requestAnimationFrame(() => {
  this._handleLoadingState(false);
});


CPU usage after close PC

I notice that process "android.hardware.camera.provider" steel consume about 25% of CPU after PC was closed because capturer was not stopped.
It should be stopped when we stop publishing or when we stop the stream(only cam, not PC).

Lovely 😊


Typo in lexer.c#L194?

When reading code in lexer.c, it seems to be a typo in line 194:
{ "trn", TK_TAG_BIND },

But when I try to run ponyc --ast for code containing tag, it is printed correctly, so not sure when this typo will take effect.

Thanks! Fixed.


found way too many original posts for some twitter @-replies

we've incorrectly found and sent wms to way too many original posts for some of @tantek's twitter @-replies recently. eg:

https://brid.gy/twitter/t?responses_before=2016-02-29T23:00:00.113230#responses
https://brid.gy/twitter/t?responses_before=2016-02-29T23:01:28.257390#responses

example log for this post + this posse tweet + this @-reply. we sent wms to 81 (!) of tantek's other posts, eg here, here, here.
doesn't look like tantek's site is to blame. the synd urls on his posts are all correct, ie they don't all point to this originaly tweet, and he didn't suddenly start including synd urls in his feed.
afaik the only nearby changes recently were in #624...but looking at 4fb909666346d1bded02babcb66b7c487f331f37 and a00c4cec1b9e1de207ec51ee79256dbdd450555e, they don't look related. maybe (long shot) tommorris/mf2py#61? not sure.
cc @aaronpk @kylewm

more data: the example above was a bridgy publish possed video, so it had a PSL at the end:
Clouds rolling in over TRON city.

#ericprydz #laser #lasers #fog #smoke #cloud #clouds… (http://tantek.com/2016/060/t6/clouds-over-tron-city-lasers …)

however, this example was possed by falcon, so it had a PSC at the end:
@RikMende my @Falcon code uses #Webmention to Brid.gy Publish to POSSE video from my site to Facebook, Flickr, Twitter (ttk.me t4g09)

SyndicatedPost entities look ok. none for the first example tweet yet, and
no unusual ones for one of the incorrect target posts we sent wms to.

i'm really curious if this has happened to anyone else. these examples caused a noticeable spike in bridgy's monitoring, and i haven't seen anything else like that recently, so i suspect no, but i'm not sure.

@kylewm nailed it (thanks kyle!): @tantek's twitter account is now private, which we evidently choke on. :/
specfically, we HEAD syndication urls (like all urls) to follow redirects, but private account tweet urls redirect to https://twitter.com/t?protected_redirect=true, so we've dutifully started collecting SyndicatedPosts connecting that url to lots of his original posts, which means we're backfeeding responses on any of those tweets to all of those original posts. whee!

fixes:

[ ] detect when a public account goes private and stop backfeeding
[ ] validate silo syndication urls better (with silo-specific url heuristics like Facebook.canonicalize_syndication_url)
...?

also, ideally whatever we do here should work for instagram too, since it also supports private accounts. (facebook, G+, and flickr don't.)

related: #292, #620


Add grafana renderer

A grafana renderer service is already setup, however an external storage system for the images is missing (I think)
grafana image renderer #external image storage

feature branch created


Built with ESP32 not-nimble?

I have a crash when using Nimble instead of the normal ESP32 libs..
https://github.com/h2zero/NimBLE-Arduino/issues/530
basically I need to change the UUID of my service.
with ArduinoBLE I  had to destroy the whole setup and rebuild to do that
that works with ESP32 BLE.
doesn't work with NIMBLE
but I also need OTA on the ESP32-DevKitv1.
have u tried to build this with the base esp32 lib?

have u tried to build this with the base esp32 lib?
About "base esp32 lib" You mean ArduinoBLE or esp32 bluetooth c-style libraries?
I have tested with ArduinoBLE and NimBle libraries. By default is  ArduinoBLE. If You use NimBle with ArduinoBleOTA please add flag USE_NIM_BLE_ARDUINO_LIB.

Currently I can't understand usecase. Please give me more information how ArduinoBleOTA should work in Your project

I have an ESP32 device, it uses BLE to advertise (as server).  the UUID(1st 8 chars)  has meaning
during the execution,    a sensor changes value, and the UUID changes.
(using UUID instead of  characteristic as multiple phones need to know the UUID value.. if connected, no other device can see it.
so as server, I have to stop service, server... and restart to change the UUID.  Nimble crashes. (reboots)
anyhow using the official Arduino supplied (via Espressif) from https://github.com/nkolban/ESP32_BLE_Arduino
pre Nimble

If I correctly understand, value of a sensor is a part of service uuid. When sensor value changes, uuid changes according to it (1st 8 chars). Than you can broadcast value via advertising to more than one devices. Not sure if there no better way to do that in BLE.
May be this example can help You:
https://github.com/vovagorodok/ArduinoBleOTA/blob/main/examples/multiservice/main.ino
#include <ArduinoBleOTA.h>
#include <BleOtaMultiservice.h>

#define NAME "MultiSrv"
#ifndef USE_NIM_BLE_ARDUINO_LIB
using BleString = std::string;
#else
using BleString = String;
#endif

BleString serviceWithValueInUuid = "<initial value>"

void setup() {
  initBle(NAME);

  ArduinoBleOTA.begin(InternalStorage);
  advertiseBle(NAME, serviceWithValueInUuid);
}

void loop() {
  if (<sensor value changed>) {
    serviceWithValueInUuid = <new uuid with value>;
    advertiseBle(NAME, serviceWithValueInUuid);
  }

#ifndef USE_NIM_BLE_ARDUINO_LIB
  BLE.poll();
#endif
  ArduinoBleOTA.pull();
}

and there are characteristics too
get some config data
get my sw version info
turn on LED
turn off relay
advertiseBle

where did that come from?
I don't see it in Nimble, ArduinoBle or ESP32 BLE.

where did that come from?

It's from additional ArduinoBleOTA utils in <BleOtaMultiservice.h> that helps to use BleOta with additional services

thx.. I see what you did
nline bool advertiseBle(const char* deviceName,
                         const char* secondaryUUID)
{
    return advertiseBle(deviceName, BLE_OTA_SERVICE_UUID, secondaryUUID);
}

does your code/sender depend on the OTA service UUID being 1st?.  right now my apps depend on that ..

No, BLE_OTA_SERVICE_UUID can be secondaryUUID

looks pretty cool,  I'll have to experiment with changing the advertised service.. vs start/stop
so I am replacing this in my existing  code with your advertiseBle() equivalent
#ifdef ESP32
  if(pAdvertising == null){
     pAdvertising = BLEDevice::getAdvertising();
     pAdvertising->setScanResponse(true);
  }
  pAdvertising->addServiceUUID(ourService->getUUID());

#else
  BLE.setAdvertisedService(*ourService);
  BLE.addService(*ourService);
#endif

and adding your service functionality as well..

like you I createService(UUID)
does the setAdvertisementdata() override that name?
I don't see it change when using my android scanner apps

Advertisement data has limited size. If you add to it more than max size, something will be removed from advertisement block. Can it be even name.
In advertiseBle() desided to:

in setAdvertisingData() add OTA 128bit UUID and flags
in setScanResponseData() add other custom service UUID and name. Max name size with 128 bit UUID is 11. If you write here more than 11 chars, 128 bit UUID wil be removed from block

More about it:
https://novelbits.io/maximum-data-bluetooth-advertising-packet-ble/

thats gonna be a mess as we both have 128bit UUIDs..
but, at the moment I am only doing mine, to make sure the service UUID switch is correct

so, using your approach for setting the UUID of the services does not change the UUID as seen by the app store BLE scanners.
here is my adaptation of your code (multiservice) and the code I use to stop/rebuild/restart the service
void changeServiceUUID(const char* deviceName,
                       const char* primaryUUID,
                       const char* secondaryUUID) {
#ifdef ESP32
  #if USE_NIMBLE
    BLEAdvertisementData primaryAdvertisementData {};
    primaryAdvertisementData.setFlags(BLE_HS_ADV_F_DISC_GEN | BLE_HS_ADV_F_BREDR_UNSUP);
    primaryAdvertisementData.setCompleteServices(BLEUUID(primaryUUID));
    pAdvertising->setAdvertisementData(primaryAdvertisementData);
    if(secondaryUUID){
      BLEAdvertisementData secondaryAdvertisementData{};
      secondaryAdvertisementData.setShortName(deviceName);
      secondaryAdvertisementData.setCompleteServices(BLEUUID(secondaryUUID));
      pAdvertising->setScanResponseData(secondaryAdvertisementData);
    }
  #else
    BLEAdvertisementData primaryAdvertisementData {};
    primaryAdvertisementData.setFlags(BLE_HS_ADV_F_DISC_GEN | BLE_HS_ADV_F_BREDR_UNSUP);
    primaryAdvertisementData.setCompleteServices(BLEUUID(primaryUUID));
    pAdvertising->setAdvertisementData(primaryAdvertisementData);
    if(secondaryUUID){
      BLEAdvertisementData secondaryAdvertisementData{};
      secondaryAdvertisementData.setShortName(deviceName);
      secondaryAdvertisementData.setCompleteServices(BLEUUID(secondaryUUID));
      pAdvertising->setScanResponseData(secondaryAdvertisementData);
    }
  #endif
#else                     }
  BLEAdvertisingData primaryAdvertisementData {};
  primaryAdvertisementData.setFlags(BLEFlagsGeneralDiscoverable | BLEFlagsBREDRNotSupported);
  primaryAdvertisementData.setAdvertisedServiceUuid(primaryUUID);
  BLE.setAdvertisingData(primaryAdvertisementData);
  if(secondaryUUID){
    BLEAdvertisingData secondaryAdvertisementData{};
    secondaryAdvertisementData.setLocalName(deviceName);
    secondaryAdvertisementData.setAdvertisedServiceUuid(secondaryUUID);
    BLE.setScanResponseData(secondaryAdvertisementData);
  }
#endif
}
// restart the service with a new UUID
void restartServices() {
// UseQuick means use the advertismentdata approach
#if UseQuick
   #ifdef ESP32
     #if USE_NIMBLE
       pAdvertising->stop();
     #else
       BLEDevice::stopAdvertising();
     #endif
   #else
     BLE.stopAdvertise();
   #endif
   changeServiceUUID(DeviceName.c_str(), makeUUIDString().c_str(),null);
   #ifdef ESP32
     #if USE_NIMBLE
        pAdvertising->start();
     #else
        BLEDevice::startAdvertising();
     #endif
   #else
     BLE.advertise();
   #endif
   pBLEScanner->start(2 /*scanTimeout/1000*/, true);
#else

  // is the current way, destroy all the functions, service, server...  and rebuild
  #ifdef ESP32
    BLEDevice::stopAdvertising();
      #if USE_NIMBLE
        //  keep the advertising object, just remove the service
        pAdvertising->removeServiceUUID(ourService->getUUID());
      #endif
    pBLEScanner->stop();
    #if USE_NIMBLE == 0
      Sprintln("stopping service");
      ourService->stop();
    #endif
    Sprintln("deleting service");
    delete ourService;
      #if USE_NIMBLE == 0
        // nimble has no deinit on server
        // and no way to remove the service
        Sprintln("deleting server");
        delete pServer;
        pServer = NULL;
      #endif
    Sprintln("sleep a little, 100ms");
    delay(100);
    // create the server/service/characteristics again
    setupService();
    Sprintln("restart advertising after resetup");
    startAdvertising();

    Sprintln("after restart advertising after resetup");

  #else
    // this is the ArduinoBLE way (nano IOT 33)
    // stop advertising
    BLE.stopAdvertise();
    // disconnect any attached clients (timing is everything!)
    BLE.disconnect();
    // shut down BLE processor
    BLE.end();
    delay(50);
    // delete our service
    delete ourService;
    delay(50);
    // start BLE again
    BLE.begin();
    // create the service and characteristics again
    setupService();
    // and advertise the new info
    BLE.advertise();
    advertising = true;
    // continue looking for our app uuid
    BLE.scan();  // resume scanning, ble.end killed it
  #endif
#endif
}

Hmm, I never need and never try restart ble services. Don't know what happens here. Maybe It's more question to NimBle library experts

thx.. of course they don't answer

looking at the nimble bleserver, it had add abd remove service...
so at least for me, I can add another characteristic to start the ota service advertising and then your stuff works. on reboot, my service would be started.
and I can create two

do you have a library function to create your service definition?

No, it's just only singleton instance. As I understand you need start OTA with other UUIDs then default?

well, you have characteristics too, so there is some setup someplace..
so, I am advertising x, and then at some point I need to add your service too. so your code can work.
I really want to add on the fly, if I can get nimble to work..
then add yours when I need the OTA service to execute, then remove yours when done
right now I am trying to
create my services (type 1, and type 2) and toggle between them, but nimble showing both.(remove doesn't), add says duplicate...

so, I have this in platformio dev section
[env:esp32doit-devkit-v1-ota]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
build_flags = -DESP32
	-DUSE_ESP32_BLE_LIB
lib_deps =
<EMAIL_ADDRESS>	adafruit/Adafruit<EMAIL_ADDRESS>	https://github.com/vovagorodok/ArduinoBleOta
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
no nimble_arduino anywhere
and I get this  (to first error)
Processing esp32doit-devkit-v1-ota (platform: espressif32; board: esp32doit-devkit-v1; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 (6.1.0) > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 @ 3.20007.0 (2.0.7)
 - tool-esptoolpy @ 1.40500.0 (4.5.0)
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 42 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Arduino_JSON @ 0.2.0
|-- Adafruit VL53L1X @ 3.1.0
|   |-- Wire @ 2.0.0
|-- ArduinoBleOta @ 1.0.0+sha.b2a0dec
|   |-- ArduinoOTA @ 1.0.9
|   |-- ArduinoBLE @ 1.3.4
|   |-- ESP32 BLE Arduino @ 2.0.0
|   |-- CRC32 @ 2.0.0
|   |-- CircularBuffer @ 1.3.3
|-- ArduinoOTA @ 1.0.9
|-- CRC32 @ 2.0.0
|-- CircularBuffer @ 1.3.3
|-- ArduinoBLE @ 1.3.4
|-- ESP32 BLE Arduino @ 2.0.0
|-- EEPROM @ 2.0.0
|-- NimBLE-Arduino @ 1.4.1
Building in release mode
Compiling .pio/build/esp32doit-devkit-v1-ota/lib86c/ArduinoBleOta/ArduinoBleOtaClass.cpp.o
Compiling .pio/build/esp32doit-devkit-v1-ota/lib86c/ArduinoBleOta/ArduinoBleOtaClassESP32Ble.cpp.o
Compiling .pio/build/esp32doit-devkit-v1-ota/lib86c/ArduinoBleOta/ArduinoBleOtaClassNimBle.cpp.o
Compiling .pio/build/esp32doit-devkit-v1-ota/lib86c/ArduinoBleOta/BleOtaUploader.cpp.o
In file included from .pio/libdeps/esp32doit-devkit-v1-ota/ArduinoBleOta/src/BleOtaSizes.h:2,
                 from .pio/libdeps/esp32doit-devkit-v1-ota/ArduinoBleOta/src/BleOtaUploader.h:2,
                 from .pio/libdeps/esp32doit-devkit-v1-ota/ArduinoBleOta/src/BleOtaUploader.cpp:1:
.pio/libdeps/esp32doit-devkit-v1-ota/ArduinoBleOta/src/ArduinoBleOTA.h:5:17: note: #pragma message: esp32 defined
 #pragma message "esp32 defined"
                 ^~~~~~~~~~~~~~~
.pio/libdeps/esp32doit-devkit-v1-ota/ArduinoBleOta/src/ArduinoBleOTA.h:9:21: note: #pragma message: esp32 loading ESPBLE.h
     #pragma message "esp32 loading ESPBLE.h"
                     ^~~~~~~~~~~~~~~~~~~~~~~~
Compiling .pio/build/esp32doit-devkit-v1-ota/libd67/NimBLE-Arduino/nimble/nimble/controller/src/ble_ll_dtm.c.o
Compiling .pio/build/esp32doit-devkit-v1-ota/libd67/NimBLE-Arduino/nimble/nimble/controller/src/ble_ll_hci.c.o

why is NimBLE-Arduino there?
AFTER the build (pio run -e ....)
Nimble_arduino is back in the libs for this dev element?
here is my complete platformio.ini
; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:nano_33_iot]
platform = atmelsam
board = nano_33_iot
framework = arduino
build_flags = -D __SAMD21__
lib_deps =
<EMAIL_ADDRESS>	adafruit/Adafruit<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
build_flags = -D ESP32
lib_deps =
<EMAIL_ADDRESS>	adafruit/Adafruit<EMAIL_ADDRESS>
[env:esp32doit-devkit-v1-nimble]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
build_flags = -D ESP32 -D USE_NIMBLE
lib_deps =
<EMAIL_ADDRESS>	adafruit/Adafruit<EMAIL_ADDRESS>	h2zero/NimBLE-Arduino

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
build_flags = -D ESP32
lib_deps =
<EMAIL_ADDRESS>	adafruit/Adafruit<EMAIL_ADDRESS>
[env:esp32doit-devkit-v1-ota]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
build_flags = -DESP32
	-DUSE_ESP32_BLE_LIB
lib_deps =
<EMAIL_ADDRESS>	adafruit/Adafruit<EMAIL_ADDRESS>	https://github.com/vovagorodok/ArduinoBleOta
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
my code builds correctly for all but the last entry (which is what I am trying to fix/add to my code for ESP32)

ok it compiles all the files whether needed or not.. SO  the ifdef/endif block around the whole file..
so I compiled and build now.. SO.. i'll close this for now


feat: enable editing conditions from entities

Adds existing condition using the entity on to the entity modal.

Note: This new table is only shown for number LUIS type entites and not ENUMs even though they both can have conditions because when editing ENUM you can only change the value and since values are mutually exclusive this doesn't really make sense.
If you are renaming a value then this can already be done through the entity modal.
Basic flow is I have model with entity myNumber which is used as condition on action(s). I go to the myNumber entity modal and click edit on the condition. It opens the Condition modal where I can edit and save the changes.  It will then edit all the actions using this condition.  I can then close the entity modal since I technically only made changes to the actions, not to the entity.

:tada: This PR is included in version 0.402.0 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


fix: moving appflow stage lambda code inline

Closes #267

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: 41a2e565d2d730f474a6b25f9b0bd7a00ba6e4ec
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Auth integrate resolver to support micro web & api

Note: this implementation does mean the selector gets called twice per request, once by micro web/api and once by the auth service. However the selector caches the services, so I don't think this is an issue.

@asim (non-urgent) - I'm happy to merge this and the micro PR when you're happy. I'd like to open a second PR to fix the resolver inconsistency as documented in the PR, lmk your thoughts on using "Endpoint" to represent both web paths and rpc methods.


Error during build attacker

Hello,
I get this error when running either ./init.sh or sudo ./init.sh
docker-compose version 1.29.2

How to solve this problem?

I changed my Ubuntu version from 16 to 20, the problem is solved.


Add Mailjet adapter

Hello,
this is an implementation of a Mailjet adapter.
Be warned that I'm in no way an Elixir expert, so there might be errors and room for improvement ;-)

@Moxide This looks pretty good! We're trying to keep Bamboo core small, so we're going to move most of the adapters out of Bamboo at some point. So what you can do is create a library for this (similar to this project: https://github.com/fewlinesco/bamboo_smtp) and I can link to it in the README so people can find it.
So I'm going to go ahead and close this. When you've made the library and published it to hex, please open an issue (or a PR!).
Thanks!

Ok, I got it !
Will be the occasion to create my first hex package ;-)
Thanks.

You're welcome and good luck!


How do I remove the shadow?

Hi !
Problem
I'm using your implementation in my app and realy like your work! Is there a way to solve this? When I drag & drop my custom widgets.
There is always an widget below mine that looks like a square and has it's own shadow.
Is there a way to hide this shadow and or make the widget transparent?

Hell, you can custom the draw widget like this:

      dragWidgetBuilderV2: DragWidgetBuilderV2(builder: (int index, Widget child, ImageProvider? screenshot) {
        return child;
      }),

Thanks a lot! Sometimes I'm just blind ...


[BUG] If only one cloud credential exists, unable to select namespace, image and network

Describe the bug

To Reproduce
Steps to reproduce the behavior:

create one harvester cloud credential (only one cloud credential  in rancher)
create rke2 cluster by harvester node driver

Expected behavior

Users are able to select namespace, image and network during create rke2 cluster by harvester node driver
Support bundle

Environment:

Harvester ISO version:   rancher 2.6.0-rc3 + harvester master-head iso
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630):

Additional context
Add any other context about the problem here.

fix it by change ui-dashboard-index to https://harvester-dev.oss-cn-hangzhou.aliyuncs.com/cloud/index.html

Tested with master-f38adc70-head and Rancher v2.6.0-head.

Created cloud credentials via UI with RKE1 cluster
Selected cloud credentials from RKE2 cluster c

reation


Re-exporting CJS module with export = from ESM via export * causes type error

Bug Report
TypeScript raises diagnostics when re-exporting a cjs package whose type declaration is defined with export = via export * in an ES module.
🔎 Search Terms

"'export =' and cannot be used with 'export *'"

🕗 Version & Regression Information
5.0.0-dev.20221216
⏯ Playground Link
N/A - multiple files
💻 Code

mkdir scratch && cd scratch
npm init -y
npm i react @types/react typescript@next
tsconfig.json{
  "compilerOptions": {
    "target": "ESNext",
    "moduleResolution": "NodeNext",
    "strict": true
   }
}

react.mtsexport * from "react";

// notice this import is fine and does not error
import { useCallback } from "react";

main.mtsimport { useCallback } from "./react.mjs";
console.log(useCallback);

🙁 Actual behavior
Try type checking & emitting:
> npx tsc
main.mts:1:10 - error TS2305: Module '"./react.mjs"' has no exported member 'useCallback'.

1 import { useCallback } from "./react.mjs";
           ~~~~~~~~~~~

react.mts:1:15 - error TS2498: Module '"V:/scratch-npm/node_modules/@types/react/index"' uses 'export =' and cannot be used with 'export *'.

1 export * from "react";
                ~~~~~~~

Found 2 errors in 2 files.

Errors  Files
     1  main.mts:1
     1  react.mts:1

It will emit, so try running it and see that it works:
> node main.mjs
[Function: useCallback]

🙂 Expected behavior
Should type check fine because this works at runtime and export = matches the runtime code which has a single module .exports = ... assignment.

So, IIRC, we didn't allow this because what meanings, exactly, the export * may pull from the cjs-y export= defined module was ambiguous. Now, in node16, we have a fairly canonical answer nowadays, namely that the syntactically detected cjs named exports will be reexported (which we can probably assume are the named members in the declaration file). Downlevel, it's still a bit unclear - does it strip the call and construct signatures from the assigned module object? The __exportStar helper has a behavior, but it's maybe not the one people would expect (especially without allowSyntheticDefaultImports or esModuleInterop), which, afaik, is why we have this error, which is omega old. Removing the error entirely only makes 3 tests fail, but those tests do bring up some weird cases, since you can export= a lot of stuff, things like
    declare module "interface" {
        interface Foo {
            x: number;
            y: number;
        }
        export = Foo;
    }

or, more interestingly,
    declare module "variable" {
        var Foo: {
            a: number;
            b: number;
        }
        export = Foo;
    }

Even in modern node, it can be confusing - take something like
// @filename: a.ts
export = { a: 0 }

// @filename: b.ts
export * from './a';

It's maybe unclear that export * from './a'; reexports nothing, because a.ts has no syntactically hoisted members, and the module-as-default isn't included in the reexported members (since defaults never are).
So while we could remove the error, I think it's probably still pointing out likely issues when people cross module system boundaries.

It's maybe unclear that export * from './a'; reexports nothing, because a.ts has no syntactically hoisted members, and the module-as-default isn't included in the reexported members (since defaults never are).
So while we could remove the error, I think it's probably still pointing out likely issues when people cross module system boundaries.

There's lots of cases where a cjs module described with export = could not work with named imports in an es module, but TypeScript will allow you to write a named import. I think the same should apply to re-exports?


Image fails to re-encode

Re-encoding this as a jpeg causes a panic. Re-encoding it as a png causes visual artifacts.

dimensions (50, 50)
RGB(8)
thread 'test::test_convert' panicked at 'shift operation overflowed',     /Users/nathanael/.cargo/registry/src/github.com-0a35038f75765ae4/image-0.3.11/./src/jpeg/encoder.rs:267

Code straight out of Readme:
  // Use the open function to load an image from a Path.
// ```open``` returns a dynamic image.
let img = image::open(&Path::new("test.jpg")).unwrap();

// The dimensions method returns the images width and height
println!("dimensions {:?}", img.dimensions());

// The color method returns the image's ColorType
println!("{:?}", img.color());

let ref mut fout = File::create(&Path::new("test2.jpg")).unwrap();

// Write the contents of this image to the Writer in PNG format.
let _ = img.save(fout, image::JPEG).unwrap();

Perhaps related to https://github.com/PistonDevelopers/image/issues/431

Fixed by #513


Is this installable with pip?

Hi,
There is a release, cool. But is this installable with pip? Maybe by using an url and not the name?

Well, I think it is. But the name is not the one from the project title because it is already in use.
It would be extraordniary if you would write on the frontpage that the name for installation is django-uw-keycloak.

I just tried to get in touch with the previous maintainers at urban platform but the email bounced for both. It is an integral part of my project and might create my own package from it.

Let me know if you do so.

Hi @moritz89 I will get in touch with you via email regarding this project! Thank you so much for all your contributions and interest, and please apologise for the email issues beforehand. /cc @Wissperwind

@Wissperwind I added in fd8e975 the installation with pip as well as compiling from source. I believe this issue is now resolved.


key mapping for A+B+START+SELECT

For Zelda Link's Awakening, it's a major PITA to press the four keys simultaneously.
Also tried to do it on master branch but I can't compile it for DS.
And my editor was configured to remove all trailing spaces, I hope that's fine.

Cool. Don't worry about the master branch, it's sort of in limbo.


Doc is missing info to enable feature AAD-V2

Hi.
Managed AAD does not work until you enable the feature via e.g. CLI:
#register AAD-V2 feature
az feature register --name AAD-V2 --namespace Microsoft.ContainerService
#query status and wait until "Registered"
az feature list -o table --query "[?contains(name, 'Microsoft.ContainerService/AAD-V2')].{Name:name,State:properties.state}"
#when status is "Registered" run
az provider register --namespace Microsoft.ContainerService
Please add this info to the docs. It took us several hours to find out ...
Best regards
Andreas

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

ID: 22a4b366-3eac-83f8-05bb-1302ce5c9235
Version Independent ID: 73a9c88b-784d-2f96-becc-14e8d751834f
Content: Use Azure AD in Azure Kubernetes Service - Azure Kubernetes Service
Content Source: articles/aks/managed-aad.md
Service: container-service
GitHub Login: @mlearned
Microsoft Alias: thomasge

@andreasmarx
Thanks for the feedback! We are currently investigating and will update the document as required.

@andreasmarx This Feature is GA and there is no need of enabling feature flag.
Can you please share the region where you are facing the issue. We will check and get back on this.

@andreasmarx Any update on the issue?
Can you please share the region details as requested.

Hi, Sorry. Thanks for your help. We deploy in westeurope.

@andreasmarx
I can't repro the issue in westeurope.
Can you please share the following information?

the error you hit before enabling the feature
the output of az --version
the FQDN of your failed cluster. You can provide it by sending it to my email<EMAIL_ADDRESS>or by a support ticket (an official way).

Waiting for @andreasmarx to provide more information.

@andreasmarx Can you please provide the requested detail for better assist on you the issue.

Hi. Sorry for getting back to you so late. I deployed another Cluster end of last week and it worked without enabling the feature. Maybe there changed something during the time between my two deployments. I think we can close this issue for now. Thanks again for your help. Best regards Andreas

@andreasmarx Thanks for confirming on this.


CRDT Implementation did:peer

https://identity.foundation/peer-did-method-spec/#crdts

Building off of #120


FoundOnReddit.java:97: get rid of FoundOnReddit.TmpDto...

The puzzle 6-57333c2d from #6 has to be resolved:
https://github.com/iakunin/codexia-bot/blob/12b0267fd64d63502a8ca557331c6cda07f05f1f/src/main/java/dev/iakunin/codexiabot/bot/FoundOnReddit.java#L97-L97
The puzzle was created by Maksim Iakunin on 13-Apr-20.
role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

The puzzle 6-57333c2d has disappeared from the source code, that's why I closed this issue.


Token's 'bar style' attribute not copied

Everything is copied fine except for I have to manually set each new token's bar style to 'compact' again.

This is a roll20 issue. They recently made an update which broke the ability to change the tokenbar defaults with the API.


Bug: Post button does nothing on mobile when you want to post a highlight

Describe the bug
https://github.com/open-sauced/app/assets/62995161/9bc7ab3c-ad2f-4201-9740-8e29dea2305e
Steps to reproduce

connect to github
try creating a new highlight on mobile screen

Browsers
Chrome
Additional context (Is this in dev or production?)
No response
Code of Conduct

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

Contributing Docs

[X] I agree to follow this project's Contribution Docs

.take

@aryanas159, apologies, but we forgot to tag this as core team work. Assigning it to Sunday and myself.

@aryanas159, apologies, but we forgot to tag this as core team work. Assigning it to Sunday and myself.

Ok, no problem.

Not sure when this changed, but the Post button does nothing because there is no form rendered on mobile, so there is no form to submit.


update reading list

Notes for Reviewers
This PR shows updates reading list to show related integrations by category.
Signed commits

[ ] Yes, I signed my commits.

🚀 Preview for commit a6f54b731c6c97d32b7eb8379e481ec01d949ee3 at: https://662a103796c8337294b66dd0--meshery-docs-preview.netlify.app


fixed testAvailabilityQuery34 and testAvailabilityQueryUnavailability28

I've opened a new PR because today git gave me some trouble. Sorry for the inconvenient

The test failures look unrelated to me. The status bot is currently failing with similar issues. I’ll re-trigger testing when the status bot is green.

@swift-ci Please test macOS

Congrats to getting your first PR merged, @CippoX.


Laravel Echo

Hi guys,
I see some references to laravel-echo in the code, but I can't figure out how to make this work.
Is there a driver which needs to be installed on botman?
And when I try to do useEcho: true, i get the error Pusher is not defined. Of course i included this inside package.json. I can't find any documentation of this part (yet).
Thanks in advance,

You need to installa and configure a websocket server.
https://laravel.com/docs/9.x/broadcasting
https://beyondco.de/docs/laravel-websockets/getting-started/introduction


database as_dbc_string() TypeError using bitstruct.c

Python Version: 3.8.5
Cantools Version 34.2.0+
OS: Windows 10 (1909)
This works fine in cantools version 34.1.0. From the commits it appears there was a change from using bistruct to using bitstruct.c. Reverting this change in 34.2.0 does fix the issue.
Further analysis shows bitstruct was at version 8.10.0, updating to 8.11.1 can also resolve the issue.
I am no expert but I think this means that the setup.py needs to have the required bitstruct version upped?
Test code
import cantools
dbc = cantools.database.load_file("vehicle.dbc",strict=False)
cantools.database.dump_file(dbc,"vehicle2.dbc")

Error Messages
  File "c:\anaconda3\envs\py38-logger-tool\lib\site-packages\cantools\database\__init__.py", line 216, in dump_file
    output = database.as_dbc_string()
  File "c:\anaconda3\envs\py38-logger-tool\lib\site-packages\cantools\database\can\database.py", line 279, in as_dbc_string
    return dbc.dump_string(InternalDatabase(self._messages,
  File "c:\anaconda3\envs\py38-logger-tool\lib\site-packages\cantools\database\can\formats\dbc.py", line 1524, in dump_string
    database = deepcopy(database)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 172, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 270, in _reconstruct
    state = deepcopy(state, memo)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 146, in deepcopy
    y = copier(x, memo)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 230, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 146, in deepcopy
    y = copier(x, memo)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 205, in _deepcopy_list
    append(deepcopy(a, memo))
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 172, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 270, in _reconstruct
    state = deepcopy(state, memo)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 146, in deepcopy
    y = copier(x, memo)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 230, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 146, in deepcopy
    y = copier(x, memo)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 230, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 172, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 264, in _reconstruct
    y = func(*args)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 263, in <genexpr>
    args = (deepcopy(arg, memo) for arg in args)
  File "c:\anaconda3\envs\py38-logger-tool\lib\copy.py", line 161, in deepcopy
    rv = reductor(4)
TypeError: cannot pickle 'bitstruct.c.CompiledFormatDict' object

Hello,
I'm having the same issue as I want to use the decode function with multiprocessing for my project. The pickling does not work.
It's this commit which introduces the error, especially these lines.
For a quick fix I would propose to make it configurable which version is imported (bitstruct vs bitstruct.c). In the current code if it is possible bitstruct.c is always imported.
A long term solution would be to make bitstruct.c pickleable, but I dont know how. Is this possible?
@eerimoq Do you need help implementing any of the changes?
Best regards
Julian

@andlaus is the new maintainer, and I'm sure he appreciates all help he can get.

yes, help is always appreciated :)
I guess that in this concrete case, I might need to come back to you if changes to the bistruct or bitstruct.c turn out to be the best solution. My current naive view is that bitstruct.c should be replaced by bitstruct if the performance impact is negligible, or if it is not, all bitstruct.c objects should become pickleable. Let's see, it should not be too hard. (Famous last words.)

Pickling support
It is possible to make c extensions pickleable. See more information here. The link is wrong in the post, but the edit is too short to fix it. Here is the correct link to PyMethodDef. Unfortunately I still dont quite understand the way forward with this as I never have written a c extension in Python. May be this code is relevant?
Benchmarking
I've just benchmarked the first test case of bitstruct and the c implementation is much faster:
%timeit packed = pack('u1u1s6u7u9', 0, 0, -2, 65, 22)

# bitstruct.c
# 239 ns ± 1.91 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)

# bitstruct
# 18 µs ± 336 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

Also looking at test, but probably more suited for another issue: cantools and bitstruct would be greatly suitable for hypothesis.
This is a very low level test, here is a more practical benchmark.
db = cantools.database.Database()
db.add_dbc_string("""
BO_ 257 TestMessage: 6 Vector__XXX
SG_ TestSignal1 : 16|16@1- (1,0) [0|0] "" Vector__XXX
SG_ TestSignal2 : 32|16@1- (1,0) [0|0] "" Vector__XXX
SG_ TestSignal3 : 0|16@1- (1,0) [0|0] "" Vector__XXX
""")

hm, this is not exactly what I meant: I am aware that, on its own, bitstruct.c is much faster than bitstruct, but I was wondering how much impact this has on a holistic level. For this purpose, I've modified the decode subparser to measure the relevant timings plus disabling the terminal output and then set it to work on a trace containing ~85000 frames using an ARXML database. Here are the performance results:
# bitstruct.c
Setup time: 8.41
Decode time: 2.01

# bitstruct
Setup time: 8.53
Decode time: 3.07

The "Setup time" is the time required to parse the database, while "Decode time" is the time required to decode the raw CAN frames via database.decode_message() (as you can see from the timing, the database is quite large). From the results above, I conclude that bitstruct.c indeed has a significant impact on decoding performance, but also that the regular bitstruct module seems to be "fast enough" in most cases, in particular when considering scenarios that involve a "live" bus instead of decoding a trace as fast as possible (the trace used here captures about two minutes of an almost fully loaded 500kbps bus).
I guess that I will give making bitstruct.c codecs pickleable a shot in the future anyway, but I will not press very hard on this front...

I'm having the same problem getting the "can't pickle bitstruct.c.CompiledFormatDict objects" exception when trying to use the cache for faster loading. Also I have huge blfs with a lot of messages that need to be decoded. By utilising multiprocessing the dbc object has to be passed as a parameter but since it is not fully pickable with the bitstruct.c integration, I can't utilise the benefits of multiprocessing. What I've done so far is checking out the repo, and enforcing the use of bitstruct instead of bitstruct.c by reversing this  commit.
I'm really relying on the dbc object being picklable because although the bistruct.c is faster, with bitstruct the blf files I'm using can be decoded 50% faster. Can we just make the use of bitstruct.c or bitstruct optional?

Can we just make the use of bitstruct.c or bitstruct optional?

bitstruct is pretty essential w.r.t. encoding I agree pickleability is more important than performance, i.e. the default should be switched to bitstruct. Mind opening a PR to that end?

Mind opening a PR to that end?

Yes, I can do that tomorrow.

If there is a problem with bitstruct, just open an issue on that project explaining the issue.
https://github.com/eerimoq/bitstruct

done: https://github.com/eerimoq/bitstruct/issues/24

Is it then still needed to open a PR to switch the default to bistruct? If the pickleable issue for bitstruct.c gets fixed soon, this will just lead to switching the default back to bitstruct.c with an update of bitstruct.
Also, maybe it is smart to integrate a test to check if can.Database remains pickleable?

If the pickleable issue for bitstruct.c gets fixed soon, this will just lead to switching the default back to bitstruct.c after updating it.

yes. This hopefully will not cause us any headaches, though...

Also, maybe it is smart to integrate a test to check if can.Database remains pickleable?

I agree. But for this, it first needs to become pickleable ;)
@eerimoq: Do you intend to fix this issue or shall I give it a go. (the latter will probably take substantially longer.)

@andlaus I'll give it a try during the weekend, so no need for you to work on it right now.

since  eerimoq/bitstruct#24, should have addressed that issue, I'm closing it. feel free to re-open if the problem still persists...

@andlaus Is the revision of bitstruct pinned or will it update on the next cantools release?

requirements.txt says it is unpinned. could you tag a new cantools release? this issue seemed to have affected more people than usual...

Have released. Has already propagated through for my by now.

bitstruct did not update when doing pip cantools uninstall/install. Will make another release ad require bitstruct >= 8.12.1.


[Question] Execution permission for pre_commit_hook

I am using this action in my swift library for automated releases as a custom composite action inside a reusable workflow. The issue is when running pre_commit hook action hangs indefinitely with running command npm run generate but runs fine when I run independently. Is there any limitation to pre_commit hook I should be aware of?

Hi, I cannot see quite clearly why this should not work, if you run the pre commit locally does it also work correctly?

Hi, I cannot see quite clearly why this should not work, if you run the pre commit locally does it also work correctly?

@TriPSs sorry for the late response, pre-commit-hook does run without issue both when run locally and when just running the hook in GitHub action. The issue happens when I am running the hook as part of this action itself.

I have moved the step containing this action to run on ubuntu runner and able to run the action successfully. This issue only happening when running with macos runner.
@TriPSs since I can use this workaround to proceed in my workflows, should I close this issue? Or do you want to track keep this open for proper closure?

@soumyamahunt lets close the issue until other ppl also have it and switching to ubuntu aint a option. Thanks for the reporting and investigating.


Restored custom editors never load if the extension is uninstalled

Repro:

Install Luna Paint
Open an image
Uninstall Luna Paint
Reload the window

The editor will stay in loading animation forever:

@bpasero I'm not sure of the best path forward here so I'm adding you to the issue as well. This has to do with restoring editors in general. We call this.restoreEdtiors from editorGroupView.ts and try and show the custom editor or notebook editor input without the backing extension. This leads to the bug above. We cannot access the editorOverrideService from the group without creating a circular dependency.

I do not agree that this is a problem the editor override service should solve because we are not opening an editor, we are restoring an editor and imho there it does not make sense to use a different editor for opening. The user picked Luna paint to open a file and I would expect to restore Luna paint as editor, not some other editor.
I think this is something the custom editor should solve:

either throw an error when the extension is not enabled (this will gracefully close the editor)
or show a generic message in the editor that the extension either needs to be installed or enabled

There are two cases I think we should handle:

When the restored editor is non-dirty: Reopen automatically using the new default editor since data loss is not a concern and it's what the user would probably expect after uninstalling the extension
When the restored editor is dirty:

show a generic message in the editor that the extension either needs to be installed or enabled

What if the extension is just temporarily disabled and later will be enabled again? You would essential loose that UI state?

This is what notebooks provide and I think it's more than enough. They show a blank editor with nothing in it and just let the user know that this was extension backed.

Sounds good to me

I would probably prefer a solution that is more inline without a notification (similar to our binary editor that suggests to reopen with another editor using a link in the content area.

We now have this nice text whenever an editor cannot restore, I wonder if we could show a message like that for custom editors which fail to restore, with a link to the Reopen With... action.


Extract math libraries in its own artifact

This is an enhancement request
Issue details
First of all, I have to say that I'm impressed by the quality of this lib (good job)!
My problem is that I only need the Math part of it and I don't want to pull the whole core to use it.
If you find the time, it would be very valuable for the community to have a separate package for this.
I personally need many of the utilities of Vector2 that I canno't find in other libs.
Version of LibGDX and/or relevant dependencies
Math package
Please select the affected platforms

All

Similar request appeared for the collections (Arrays, Maps, etc.), and it would be nice to have both separated to own library/libraries.
Math stuff might be harder though, as it has some natives (at least some Matix4 operations, IIRC).

TBH, we are unlikely to separate parts of libgdx into separate libraries since we don't have the need for that ourselves. I suggest copying the parts you need into a separate library and using that (or just into your project).

Someone did that (https://github.com/mini2Dx/gdx-math), just that it is better when it's official. Anyway I thought it would be useful for the java community at large since we don't have a lot of good simple math libraries, but I can understand if it is complicated for you.

I remember when I copied the Animation class that used TextureRegions (back then it wasn't generic) and modified it to use whole Textures. It's that easy :)

Ah, it's good someone has done it. As you can tell from the number of PRs and issues, libgdx maintainers are already struggling to keep up. I don't think we have the bandwidth for making it official, at least not now.


chore(build): add hook export in @lumx/react build

General summary
Add export of hooks in the @lumx/react build
TODO:

[ ] Add jest configuration + add tests
[ ] Use hook in lumx/react
[ ] Test alpha version

Replaced by https://github.com/lumapps/design-system/pull/883


[Bug]: Queries containing colons : cannot be executed in MySQL.

Is there an existing issue for this?

[X] I have searched the existing issues

Description
Queries that contain colons : cannot be executed in MySQL because they will always result in the error: java.lang.IllegalStateException: Parameter at position 0 is not set. For example, the following query cannot be executed in Appsmith but can be executed in DBeaver:
SELECT @media_id := MAX(id) FROM media;

WorkArround:
SELECT MAX(id) AS media_id FROM media;

Steps To Reproduce

Create a table.

CREATE TABLE media (
  id INT AUTO_INCREMENT PRIMARY KEY,
  media_type VARCHAR(50),
  entry_datetime DATETIME,
  discovery_notes TEXT,
  short_list INT
)

Insert data into the table.

INSERT INTO media (media_type, entry_datetime, discovery_notes, short_list)
VALUES ('book', '2023-06-12 10:00:00', 'Some discovery notes', 1),
       ('movie', '2023-06-11 15:30:00', 'Another discovery notes', 0),
       ('music', '2023-06-10 08:45:00', 'More discovery notes', 1);

Write the SELECT query with colons and you will see it fails.

SELECT @media_id := MAX(id) FROM media;

Use the same query in DBeaver and you will see that it works correctly.

Use the workaround in Appsmith and you will see that it works correctly.

SELECT MAX(id) AS media_id FROM media;

Public Sample App
No response
Environment
Production
Issue video log
No response
Version
Cloud/ Self Hosted v1.9.21

this works now


Extend blacklisting for derived updates

After a day of trying to figure out the core reason of the https://phabricator.wikimedia.org/T169911 with no success, we can at least enable blacklisting for all of the derived content types.
I'm changing the key for the HTML blacklist, so we will loose the blacklisting that's already been done, but it's ok, there's not too much stuff in there anyway.
cc @wikimedia/services

:+1:

Gerrit: https://gerrit.wikimedia.org/r/363731

Coverage remained the same at 89.093% when pulling 6ab4e64ff61010f0b770c47caaf6fd50b540cf94 on Pchelolo:blacklist_derived into<PHONE_NUMBER>f8e21d5441720c97198fd98c7eec73 on wikimedia:master.


$wpClient->newTerm(); add new term in taxonomy use  file WordpressClient.php show error

Fatal error: Call to undefined function HieuLe\WordpressXmlrpcClient\xmlrpc_encode_request() in E:\VERTRIGO_SERVER\www\convert_rpc\WordpressClient.php on line 901

Hi,
Thanks for using this package. You have to enable xmlrpc extension in your php.ini file first.

thank you !
On Thu, May 19, 2016 at 3:31 PM, Hieu Le<EMAIL_ADDRESS>wrote:

Hi,
Thanks for using this package. You have to enable xmlrpc extension in your
php.ini file first.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/letrunghieu/wordpress-xmlrpc-client/issues/30#issuecomment-220260714


Hello , the dataset website(http://island.me.berkeley.edu/ugscnn/data/climate_sphere_l5.zip) is now inaccessible. Is there any other way to download the dataset?

Hope to get your help, thank you.

"https://github.com/maxjiang93/ugscnn"  may have possible solution. However I am finding difficulties to get their data. If anyone fine solution, please post

https://1drv.ms/u/s!At2Rqn8R-kGdiP9c0XW-lu7HB9ivqQ


Format instruction/documentation links in README.md

Format it as a list, it's more readable this way.

Hi @tdgroot,
Thanks!
Regards,
Rik
Adyen


Convert data storage to use SQLAlchemy

Currently we are using custom methods/logic for persisting objects to SQLite database. We should introduce an ORM layer to handle this instead.

Completed in
https://github.com/cloud-ark/cloudark/commit/8bed7ec7e05178e2f4bda60044dbd02e1b73bce4


label corruption

There seems to be something wrong with the label generation... possibly to do with removing HTML char encodings, leading to a label "Fatty Aanion "head-out"" in WP1902 rev 81630. I confirmed that there is no "Aanion" is in the GPML, suggesting the problem is in the conversion.

fixed in current version


JIT build fails for ROCM 6.0

Am I safe to assume that DeepSpeed does not yet support ROCm 6.0? A whole lot of errors during JIT build of transformer_inference.
$ pip show torch
Name: torch
Version: 2.3.0+rocm6.0

HIPCC call arguments:
[1/5] /opt/rocm/bin/hipcc  -DWITH_HIP -DTORCH_EXTENSION_NAME=transformer_inference -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -I/home/nexus/.conda/envs/xtts/lib/python3.11/site-packages/deepspeed/ops/csrc/transformer/inference/includes -I/home/nexus/.conda/envs/xtts/lib/python3.11/site-packages/deepspeed/ops/csrc/includes -isystem /home/nexus/.conda/envs/xtts/lib/python3.11/site-packages/torch/include -isystem /home/nexus/.conda/envs/xtts/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/nexus/.conda/envs/xtts/lib/python3.11/site-packages/torch/include/TH -isystem /home/nexus/.conda/envs/xtts/lib/python3.11/site-packages/torch/include/THC -isystem /home/nexus/.conda/envs/xtts/lib/python3.11/site-packages/torch/include/THH -isystem /opt/rocm/include -isystem /home/nexus/.conda/envs/xtts/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 -std=c++17 -g -Wno-reorder -D__HIP_PLATFORM_AMD__=1 -fPIC -D__HIP_PLATFORM_AMD__=1 -DUSE_ROCM=1 -DHIPBLAS_V2 -DCUDA_HAS_FP16=1 -D__HIP_NO_HALF_OPERATORS__=1 -D__HIP_NO_HALF_CONVERSIONS__=1 -O3 -std=c++17 -U__HIP_NO_HALF_OPERATORS__ -U__HIP_NO_HALF_CONVERSIONS__ -U__HIP_NO_HALF2_OPERATORS__ -DROCM_VERSION_MAJOR=6 -DROCM_VERSION_MINOR=0 --offload-arch=gfx1100 -fno-gpu-rdc -c /home/nexus/.conda/envs/xtts/lib/python3.11/site-packages/deepspeed/ops/csrc/transformer/inference/csrc/apply_rotary_pos_emb.hip -o apply_rotary_pos_emb.cuda.o

FAILED: apply_rotary_pos_emb.cuda.o
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated when compiling for gfx1100

FAILED: rms_norm.cuda.o
1 warning and 16 errors generated when compiling for gfx1100.

FAILED: layer_norm.cuda.o
1 warning and 16 errors generated when compiling for gfx1100.

FAILED: pt_binding_hip.o
...

CoquiEngine: Error initializing main coqui engine model: Error building extension 'transformer_inference'

FYI @rraminen  and @jithunnair-amd


Adding testIDs to elements

I am attempting to automate my application using Detox. I have added the ability to provide testID props for the date picker wrapper touchable highlight, confirm and cancel buttons. This allows me to automate my screens enough for now. I might need to add more later to be able to select a specific date.

Coverage remained the same at 95.313% when pulling 317fd06017e913a11d2811fe303e900ddd87feec on ConstructiveCoding:master into 617b674c07e9e1835b4f86a66628a8f560bcf84a on xgfe:master.


PageRevision.content_json doesn't serialize StreamFields

http://docs.wagtail.io/en/v1.1/reference/pages/model_reference.html#wagtail.wagtailcore.models.PageRevision.content_json
If I run page.get_latest_revision().content_json I expect to see the data in a format like this:
[{
 "pk": 9,
 "model": "team.person",
 "fields": {
 "interview": [{
  "type": "discussion",
  "value": {
   "answer": "nmhbu?",
   "question": "What's up?"
   }
  }],
 "name": "Alex Gleason",
 "photo": null,
 "biography": "
Hello world.
",
 "job_title": "Developer",
 "personal_title": "Very Special",
 "work_title": "Hacker"
 }
}]

but instead it appears like this:
[{
 "pk": 9,
 "model": "team.person",
 "fields": {
 "interview": "[{\"type\": \"discussion\", \"value\": {\"answer\": \"nmhbu?\", \"question\": \"What's up?\"}}]",
 "name": "Alex Gleason",
 "photo": null,
 "biography": "
Hello world.
",
 "job_title": "Developer",
 "personal_title": "Very Special",
 "work_title": "Hacker"
 }
}]

On closer inspection, it appears to be used to find the Page object for a PageRevision.
Why is this exposed as part of the public API?
What I'm really looking for is Page.get_content_as_json(), which doesn't exist.

I wouldn't consider this a bug. content_json is the database-friendly representation of an article converted into JSON, and since StreamField data is already JSON within the database-friendly representation, it gets encoded twice.
It is primarily an internal feature, but it's in the documentation because it's something you might need to know about if you're updating article content programatically (e.g. in migrations).

Thank you for the clarification. :)
On Sep 16, 2015 4:09 AM, "Matt Westcott"<EMAIL_ADDRESS>wrote:

I wouldn't consider this a bug. content_json is the database-friendly
representation of an article converted into JSON, and since StreamField
data is already JSON within the database-friendly representation, it gets
encoded twice.
It is primarily an internal feature, but it's in the documentation because
it's something you might need to know about if you're updating article
content programatically (e.g. in migrations).
—
Reply to this email directly or view it on GitHub
https://github.com/torchbox/wagtail/issues/1687#issuecomment-140679283.


Machine-specific persistent option to specify SSH config

@nathanleclaire
This adds two flags to docker-machine create:
--generic-ssh-config-file <path/to/config>

    Use the provided config file with the external SSH client (-F)

--generic-use-user-ssh-config

    Use ~/.ssh/config as the config file

(The flags are mutually exclusive in order to avoid ambiguity.)
Tried this out in my environment, which requires a ProxyCommand to
access a remote site via SSH. Before, the issue described in #3310
occurred, preventing me from using docker-machine to configure this
host. With this, the --generic-use-user-ssh-config option adds
the config file in place of the previous-default /dev/null and all
seems well.
Also added a couple unit test cases.
Depends on an updated version of #3209.
Note that this PR includes brettdh/machine@d39de4f
(which is just #3209 rebased on master).
The merge will be a bit messy, since this will get rebased on whatever #3209
becomes, but at least now it can be reviewed in relative isolation.
I considered setting the base for this PR on brettdh/machine@d39de4f,
but I'm pretty sure that would make a PR on my fork, rather than on docker/machine.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "use-user-ssh-config" git@github.com:brettdh/machine.git somewhere
$ cd somewhere
$ git rebase -i HEAD~7
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "use-user-ssh-config" git@github.com:brettdh/machine.git somewhere
$ cd somewhere
$ git rebase -i HEAD~7
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "use-user-ssh-config" git@github.com:brettdh/machine.git somewhere
$ cd somewhere
$ git rebase -i HEAD~7
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "use-user-ssh-config" git@github.com:brettdh/machine.git somewhere
$ cd somewhere
$ git rebase -i HEAD~7
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

Gordon is a little excitable about a missing sign-off, it seems.

@nathanleclaire any further thoughts on this and/or #3209?

Is --generic-use-user-ssh-config really needed? As it's seems equivalent to --generic-ssh-config-file ~/.ssh/config.

@bamarni yep, that's correct. Just a shortcut (barely).

Any progress on this? This will block anyone with a slightly complicated SSH setup.

@brettdh I'd happily take this over if you aren't inclined.

@lox rebased and resolved conflicts. I'd say this is still in @nathanleclaire 's court, though - I don't know what he wanted to do about #3209, so that conversation was blocking this, IIRC.

Yup fair enough. Merging this would at least let the majority of users who need ssh proxying get on with things though, as it stands machine just doesn't work for us.

Good news is that docker-machine is tremendously easy to build, so if you
need this today you can always go that route, as I've done at my company.
On Thu, Nov 3, 2016 at 6:32 PM Lachlan Donald<EMAIL_ADDRESS>wrote:

Yup fair enough. Merging this would at least let the majority of users who
need ssh proxying get on with things though, as it stands machine just
doesn't work for us.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/docker/machine/pull/3410#issuecomment-258294053, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAFlnrQb6yGb9qLcJwWegu7rV7HGeK5Dks5q6mEIgaJpZM4IX_Rb
.

I'm fairly allergic to distributing custom builds of docker things internally, but yup, fair point.

Here's some thinking on this.  Sorry it's been slow going but it's a bit riskier change than most.

it's good feature and i'd like to support it if possible, additionally fixing the long-standing propagating of options bug would be nice
we could probably avoid bumping the API version and just print a warning like we've done here, since we are just adding methods, not changing or removing existing ones, but this should be tested to make sure it behaves as expected.  maybe we could treat this as experiment since api version bump / modification hasn't really been done before
@brettdh  you can't edit vendored code directly but it seems you could just set HTTPClient.Proxy on the returned client where we generate the code.
what's the utility of GetMachineOptions in general?  I would expect to just call SetMachineOptions for each server driver... It's a one-way operation dictating what those options should be from the main binary/flags, right?
isn't this a bit risky?  have you tested invoking this code on hosts originally created with 0.8.2?  i think it will need either a proper host migration or some other way to assure safety, the nil checking seems a bit off to me... i guess it's so you don't have to specify the ssh config file each invocation? (i agree our lack of a default config generally, which would help to avoid having to set the flags each time, is annoying).
why --use-user-ssh-config when they could just specify that themselves with the other new flag?

thanks for your persistence and interest in this.

Agree with dropping --use-user-ssh-config, seems like unneeded syntactic sugar.

@brettdh you can't edit vendored code directly but it seems you could just set HTTPClient.Proxy on the returned client where we generate the code.

I'm taking a crack at this, but my golang is rusty, and I feel like I'm doing something rather dumb - or just not fully understanding the details of http.Transport and related bits.

what's the utility of GetMachineOptions in general? I would expect to just call SetMachineOptions for each server driver... It's a one-way operation dictating what those options should be from the main binary/flags, right?

I think you answered your own question in the next bit; we need to be able to retrieve the saved options because the user isn't providing this option on every invocation.
...at least, that would have been my answer a few minutes ago. Looking more carefully, it looks like GetMachineOptions is only called during create, and it only ever returns the defaultOptions from libmachine/opt/options.go. So that's pretty silly. I'll rip it out and just call mcnopt.Opts() directly.

isn't this a bit risky? have you tested invoking this code on hosts originally created with 0.8.2? i think it will need either a proper host migration or some other way to assure safety, the nil checking seems a bit off to me... i guess it's so you don't have to specify the ssh config file each invocation? (i agree our lack of a default config generally, which would help to avoid having to set the flags each time, is annoying).

Maybe? It's been a while since I tested it, but I thought that the missing value would end up with a value of nil, since it's just saved as JSON.
Giving this a quick test: with a machine created with 0.8.1, and using this PR's build to talk to it, docker-machine inspect shows SSHOptions: null, and docker-machine ssh works fine. (Interestingly, using 0.8.1  to docker-machine inspect a machine created with this PR's build also works fine; it just doesn't show SSHOptions.)

why --use-user-ssh-config when they could just specify that themselves with the other new flag?

This has now been brought up by three different people, so I give. 😅
I might like to try just having --generic-ssh-config-file having a default value of $HOME/.ssh/config if it's given without a value, but it appears that's tricky, because (I think) you get "" for its value whether it's provided without a value or .

@nathanleclaire any further thoughts on this? I think I've addressed all your concerns stated above, except perhaps the API version non-bump testing that you mentioned, as I'm not sure how to go about that.

@nathanleclaire had another coworker get bit by the lack of this feature today. Any chance we could take another look at this soon?

Any status on this? I can't use docker-machine because of it.

I am not maintainer any more -- ping @shin-

And I'm not using docker-machine these days, so @lox if you still want to take it over, be my guest :)

@shin- Any thoughts on this? Thanks!

@shin this makes impossible to use GitLab CI autoscale approach within isolated network

What is the status of this? This is currently a big impediment for connecting to remotes beyond bastions.

Could please any maintainer summarize the changes needed to get this to master? Thanks 👍

Is there an update on this?
How can I use docker-machine if I'm using Bastion and not able to change the ssh config?


'Multiarch' memory allocation is too large for Raspberry Pi 3

Would it be possible to drop the Java memory allocation in the Multiarch target from 1GB to 700MB, or let it dynamically allocate? The 1GB footprint is too high to run on the Raspberry Pi 3B+ under AMD64 Ubuntu.

Hmm, I can't think of an easy way to have the env var vary by platform built by BuildKit. The memory allocation can be overridden by passing -e MEMORY=700M. Would that be good enough?

I'm playing with this idea over here https://github.com/MarcDoughty/docker-minecraft-server. I flipped it over to Ubuntu-based images for familiarity reasons.
I just built, ran, and played against it a bit on my desktop with nothing horrible happening. I'll see how it runs on the Pi 3B+ with two players soon.
I'm very new to git, and Docker. I hope you don't mind my fork!
I also filed a feature request with the Ubuntu people to see if they can enable Transparent HugePages on the raspi2 kernels so we can run this in 350 2MB pages instead of 175,000 4KB entries in the page table. Might speed things up, might turn it into an unstable mess.

Forking is very welcome, so experiment away.
I do want to point out that the multiarch branch was already switched over to Debian since armv7 and aarach64 were not readily available on Alpine. I'm a major user of Ubuntu and found the Debian base image is familiar enough.
So...I'd recommend you start from multiarch branch rather than master for the experiments you're doing. Just note that you'll need to either set the three build args listed here
https://github.com/itzg/docker-minecraft-server/blob/multiarch/Dockerfile#L32-L36
with --build-arg on a regular docker build or use docker buildx with BuildKit where it'll set those platform arguments automatically. I use the latter to do the multiarch image build that is currently pushed to Hub.

I have added a section to README that discusses the new tag for rpi and notes the memory config should be adjusted:
https://github.com/itzg/docker-minecraft-server#running-on-raspberrypi

I cloned the 'multiarch' branch locally and changed the Dockerfile to source from adoptopenjdk:latest, which is based on Ubuntu Focal with JDK 15.
With very few changes, it works beautifully. I also made a set of flags (much like the Aikar flags) that optimize for performance in a restricted environment (e.g. use Shenandoah GC, only run one GC thread, and only trigger it when the JVM's memory is almost full). There are some tweaks for Transparent Huge Pages as well.
I would be happy to split these up and try checking them into a new branch, maybe something like 'multiarch-adopt-latest' or something.
I can see some advantages to being primarily on 'multiarch', with a branch that is based on the latest Forge-compatible AdoptOpenJDK and another that tracks the current JDK release, especially with AWS starting to offer ARM64-based EC2 instances at a lower cost than amd64. It would also get the Helm charts and docker-compose orchestrations onto a cross-platform track.

@MarcDoughty a few PRs for each of the ideas makes sense to me. How about simply "multiarch-latest" for the branch name? If that works for you, I'll create the branch and let you target the PRs at that.

That sounds great! Thanks!

@MarcDoughty the branch has been created https://github.com/itzg/docker-minecraft-server/tree/multiarch-latest . It's currently a branch off of multiarch.


Fix UsdCs import settings for OSX and Windows (USDU-206)

Purpose of this PR
Ticket/Jira #: https://jira.unity3d.com/browse/USDU-206

New settings are:

OSX

Windows

Testing
Functional Testing status:
@clusty can you do an IOS build for me please? Or do you know how I should trigger an IOs build on yamato?
Overall Product Risks

Complexity:

Low
Halo Effect:

Low
Additional information
Note to reviewers:

Reminder:

[ ] Add entry in CHANGELOG.md (if applicable)

@IlliaKo Can you please validate this PR against https://jira.unity3d.com/browse/USDU-66 and also the builds on Windows and MacOS

I would add a unit test that checks that there are no weird libraries when you do a build:
Here's an example of such a test: https://github.cds.internal.unity3d.com/unity/com.unity.recorder/blob/4bbecfc3cc7a5eb52efa8b35a4de4582559cd72e/projects/recorder-tests/Assets/Tests/Editor/MovieRecorder/BuildSupportTests.cs

FIxed in https://github.com/Unity-Technologies/usd-unity-sdk/pull/333


Recursively validate frontend links and fix examples

This adds recursive validation of frontend links per @boffbowsh's suggestion in https://github.com/alphagov/govuk-content-schemas/pull/389#r79144815.
This means that the links-inside-links that have been expanded by the publishing-api also need to conform to the frontend links schema. The only thing that is not validated after this change is that the link type actually is allowed for the format. That's something for another day.
After implementing the validation is becomes clear that there are many completely wrong examples. This is quite scary because the examples are often used in unit tests. An example of a bug caused by incorrect examples is alphagov/government-frontend#180.

Isn't the commit easier to understand as one? It shows the change and the
necessary follow up. You couldn't revert one without the other so it looks
pretty atomic.
Fine either way but on a bus now, so can only comment :)
On Friday, 16 September 2016, Paul Bowsher<EMAIL_ADDRESS>wrote:

@boffbowsh requested changes on this pull request.
Can you split the first commit into the schema change and examples fixes
please?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/alphagov/govuk-content-schemas/pull/390#pullrequestreview-350452,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOQzLJC08_f2JYaWvDO2W9_jnJ0y3yHks5qqpZwgaJpZM4J-65J
.

--
Tijmen Brommet
Tech lead, Team Finding Things, GOV.UK
E<EMAIL_ADDRESS>M: (0)776 224 5412
Government Digital Service | Aviation House | 125 Kingsway | Holborn | WC2B
6NH

Nevermind my recalcitrance, here's with the commits split. Diff looks much easier to understand.


Merge 4.9 to master (#2223)

To pick up https://github.com/microsoft/botbuilder-js/pull/2223 which fixes https://github.com/microsoft/botbuilder-js/pull/2224 (Webpack fails with botframework-streaming due to Node.js "net" dependency)

Fixed via https://github.com/microsoft/botbuilder-js/pull/2228


connection.ActiveConfig() should use config.Active() instead of reading configuration directly

Puzzling over #1231
config.Active() supports the --config flag where the previous code for connection.ActiveConfig() does not.

But now this doesn't work:
$ registry --config apiz apply -f .
Usage:
...

Error: open /home/tim/.config/registry/apiz: no such file or directory
Run 'registry --help' for usage.

Now with the latest changes, all of the following work:
# local config file with only a basename
$ registry --config apiz apply -f .
  INFO[0000] Applying apis/petstore    uid=57088557
  INFO[0000] 1 YAML file(s) applied (3 found, 1 with 'apiVersion: apigeeregistry/v1') uid=57088557

# local config file, multisegment path
$ registry --config ./apiz apply -f .
  INFO[0000] Applying apis/petstore    uid=a41eb5db
  INFO[0000] 1 YAML file(s) applied (3 found, 1 with 'apiVersion: apigeeregistry/v1') uid=a41eb5db

# config file in ~/.config/registry
$ mv apiz ~/.config/registry
$ registry --config apiz apply -f .
  INFO[0000] Applying apis/petstore    uid=0a8bbee3
  INFO[0000] 1 YAML file(s) applied (3 found, 1 with 'apiVersion: apigeeregistry/v1') uid=0a8bbee3

Now with tests.


patterns desugaring can lead to overcapturing on VM

CFE uses late final variable with an initializer to achieve lazy evaluation and caching of temporary values. The initializer itself is represented by a closure (in accordance to late final representation which is currently used). This closure captures variables from the surrounding scope which can lead to potential over capturing if there are other closures in the same scope. Consider for example this code:
void Function() f(List<int> list) {
  return switch (list) {
    [final item] => () {  // (*)
      use(item);
    },
    [] => () {
    },
  };
}

The first closure will end up holding to list due to the late final field introduced by pattern desugaring.
It is in some sense duplicate of https://github.com/dart-lang/sdk/issues/36983, but we could consider if we want to change desugaring of late variables with initializers (e.g. simply duplicate the body of the initializer?)
/cc @alexmarkov @johnniwinther @chloestefantsova

I've seen folks do:
void Function() f(List<int> list) {
  return switch (list) {
    [final item] => () {
      use(item);
      use2(item);
    }(),
  };
}

To have a multi-line expression switch.
Would this suffer from the same issue?

@mraleph, just to clarify, by duplication of the body of the initializer do you mean using the body of the initializing closure directly as the initializer of the intermediate lazy variable?
So that we'll replace the following code for your example (in Kernel)
    final synthesized core::List<core::int> #0#0 = list;
    function ##0#1#initializer() → core::int
      return #0#0.{core::List::length}{core::int};
    late final synthesized core::int #0#1 = ##0#1#initializer(){() → core::int};

with something like the following?
    final synthesized core::List<core::int> #0#0 = list;
    late final synthesized core::int #0#1 = #0#0.{core::List::length}{core::int};

@chloestefantsova

@mraleph, just to clarify, by duplication of the body of the initializer do you mean using the body of the initializing closure directly as the initializer of the intermediate lazy variable?

Sorry for the confusion I did not suggest that CFE should do it. I was suggesting that back-end does it (e.g. so it forcefully inlines initialization closure when the IL graph is constructed).
@rrousselGit

I've seen folks do:
Would this suffer from the same issue?

IIFL (immediately invoked function literals) don't live long (they become unreachable after being invoked) so they are not really affected by "overcapturing".
But IIFLs themselves introduce the same problem - if they capture variables that affects the context chain structure and can lead to surprising leaks.

@mraleph Would this be addressed if the CFE didn't use late final to encode this but instead put the "initializer" inline, like we do for cache variable with multiple initializers:
void Function() f(List<int> list) {
  return { // a block expression
    var #result;
    #outer: {
      var #0 = list;
      {
        final item;
        if (#0.length == 1 &&
            let #1 = item = #[0] in true) { // a let expression of the initializer
          #result = () {  // (*)
            use(item);
          };
          break #outer;
        }
      }
      {
        #result = () {
        };
        break #otuer;
      }
    }
  } => #1;
}

@johnniwinther yes, that would also solve it. If there are no closures involved then there is no problem.

Bump. Can we prioritize to fix this? As patterns get used in the wild this leads to sever code quality issues on the VM.

@mraleph Should we go for the suggested CFE fix?

I don't see any issues with that. @alexmarkov Alex do you have any opinion?

+1 to avoid using late variables in pattern desugaring, as @johnniwinther described in https://github.com/dart-lang/sdk/issues/52805#issuecomment-1628573861.

@rakudrama @alexmarkov I have chatted about this with @johnniwinther a bit and I have the following question: should we fix late variable implementation in the VM / dart2js instead to cover for the cases when people use late local variables themselves?
CFE can make sure they don't emit redundant closures, but they still could use late variables (instead of code duplication) to express caching. And then dart2js and VM could optimize late local variables.

@mraleph Always duplicating initializers of user-defined late variables could result in bloated code size as they can be arbitrarily complex. Maybe we should more aggressively inline closures and un-capture variables to deal with simple initializers (other code involving closures could also benefit from this optimization), or heuristically choose to duplicate simple (but not all) initializers on AST.
Patterns currently use late variables to cache simple expressions like property access a.b, so it makes sense to always duplicate cached pattern expressions instead of wrapping them into late variable initializers.


Fix bug in environment restart

Solves https://github.com/emasquil/ppo/issues/10

@emasquil I think we need to rebase it. Other than that I agree with what you did.

Sure, i'll rebase main and merge it

done!


Not able to add service without adding host

When creating an issuer with the addHost option set to false I am not able to successfully issue a certificate. This is because by default by default to create a service a host with the same FQDN must exist. To circumvent this issue the --skip-hostcheck option would be set on the command line. It's equivalent would have to be set in the request to the FreeIPA web API.
Logs from the controller container:
{
  "level": "error",
  "ts":<PHONE_NUMBER>.570603,
  "logger": "controller-runtime.manager.controller.certificaterequest",
  "msg": "failed to sign certificate request",
  "reconciler group": "cert-manager.io",
  "reconciler kind": "CertificateRequest",
  "name": "test2-gm5pp",
  "namespace": "default",
  "certificaterequest": "default/test2-gm5pp",
  "error": "Fail to request certificate: NotFound (4001): The host 'test3.i.k3test.dns.navy' does not exist to add a service to.",
  "stacktrace": "github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132\ngithub.com/guilhem/freeipa-issuer/controllers.(*CertificateRequestReconciler).Reconcile\n\t/workspace/controllers/certificaterequest.go:112\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.7.0/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.7.0/pkg/internal/controller/controller.go:235\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.1\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.7.0/pkg/internal/controller/controller.go:198\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/apimachinery@v0.19.2/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/apimachinery@v0.19.2/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/apimachinery@v0.19.2/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/apimachinery@v0.19.2/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/apimachinery@v0.19.2/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/apimachinery@v0.19.2/pkg/util/wait/wait.go:99"
}

So I did some more research and it seems like the option is not present in the version of tehwalris/go-freeipa. I updated the autogenerated code here and added the usage of the skip_host_check option here. This works and adds the service to the IPA Server without requiring a host.
I am not sure if this is wanted behavior for this application and I am also unsure about opening a PR because of the change of dependencies.

@StefanAbl you can make a PR in upstream project.
before beoing merged, you can go mod edit -replace to override lib with your patched version (and do a PR here ^^)

Okay, I created a PR upstream
I tried using go mod edit -replace github.com/tehwalris/go-freeipa/freeipa=../go-freeipa/freeipa and the replacement was successfully added to the go.mod file, however it seems like the old version is still used:
$ go build provisionners/freeipa.go
# command-line-arguments
provisionners/freeipa.go:125:6: unknown field 'SkipHostCheck' in struct literal of type freeipa.ServiceAddOptionalArgs

I am not sure why, I think it could be because of the strange versioning of go-freeipa.
Maybe I should just wait for the pullrequest in go-freeipa to be accepted or someone has better go knowledge than I do.


okhttp3 memory high after stress test with http2

Excuse me, I'm doing a stress test using http2 with okhttp3 as library I'm using JMeter as testing tool My thread is 200 for 300s and ramp up in 30s
I'm using docker as a platform After stress test, the memory goes up high into 8GB and never go down I already use code like this

client.dispatcher().executorService().shutdown();
client.connectionPool().evictAll();

And already using singleton for my okhttpclient
But still not go down Is there any things that I miss?
Thanks

Please post to stack overflow. Or provide an executable reproduction of the bug.


Put popups over modals so modals can have popups.

Without this, modals cannot have popups because they will be obfuscated due to popups currently having a z-index of 900, beneath the modal's z-index of 1000.

Already in next https://github.com/Semantic-Org/Semantic-UI/commit/671948c25287ea3e0d135ee4a8eccd38193e81ee

Oops, I didn't know to check next. I didn't see it in master so I figured it was still open! Sorry about that.


LongControl: remove redundant check on active

I know it's useless, but there is a chinese proverb: "勿以善小而不为" (Don't miss doing any good thing no matter how insignificant it looks.).  so I still submitted this PR

As the Dutch say: "Wie het kleine niet eert, is het grote niet weerd" (Who does not honour small things, is not worthy of great things)


How to control the size central vision

When the motionTarget is moving, the size of central vision is changing based on the motion. However, I don't know which is the main code about changing the size. I want to ask about it. Thank you.

I also want to ask the function of _blurRt0 and _blurRt1 in TunnellingImageBase.cs, thank you.

Using forceVignetteMode and forceVignetteValue (0-1) is the easiest way to control the vignette. That will lerp between 0 screen coverage and effectCoverage.
For example,
forceVignetteMode = ForceVignetteMode.CONSTANT;
effectCoverage = 0.8f;
forceVignetteValue = 0.5f;
will produce a vignette covering effectCoverage * forceVignetteValue = 0.4 of the screen.
The blur RTs are the render textures used when the effect is set to blur mode. They are alternated to perform each blur pass.
For example, if there are 3 blur passes:

Blit(screen, _blurRt0)
Blit(_blurRt0, _blurRt1, blur shader)
Blit(_blurRt1, _blurRt0, blur shader)
Blit(_blurRt0, _blurRt1, blur shader)
Blit(_blurRt1, screen)

Thanks a lot! I think I got it.


Infix to postfix  conversion

Hey, I am Vabhv1903 a GSSOC'21 Participant. I am having experience in C++ Coding as well as I am doing Competitive coding in the C++ programming language.
Please assign this task to me :)
Thank-you.
@anubhavitis @dheerajkotwani @tarun26091999 @todi-2000 @geekquad @plazzy99

Hi, I would like to solve this problem using C++. Please assign this issue to me.

Hey, I am Riya Jain, a GSSOC,21 Participant. I would like to solve this problem using Java. Please assign this issue to me.
@anubhavitis @dheerajkotwani @tarun26091999 @todi-2000 @geekquad @plazzy99

i want to work on this issue please assign this to me

Present at #511


Simulation Experiments

Introduced in #103 - a simulation experiment is worth exploring. Currently, the simulation experiment samples the following signals (copy and pasted from #103):

Groups (based on different normal distributions along given across axes)
Nonlinear functions (any transformation to a randomly sampled vector)
Cell-types (based on a different proportions of normal distributions across given axes)
Presence/absence (random determination if feature is present)
Random noise features

As mentioned, some of the evals envisioned include:

Ability to distinguish groups
Identify nonlinear but continuous patterns
Robust to noise injection
Latent space arithmetic (e.g. Group 1: Yes Feature - Group 1: No Feature + Group 2: No Feature = Group 2: Yes Feature?)
Generative ability of models

As suggested by @jaclyn-taroni, we will use this issue to track important citations and discuss rationale for the simulations and evals.

In initial experiments with these kind of simulated data it has become clear that the simulated features are too simplistic. The evals based on these signals basically breakdown to asking if the models learn simple distributions. An initial test (without "noise" features) shows the compression algorithms learn these structures rather easily.

In order to better assess model performance, we need to either use more complicated simulations (like WGCNA, or RUVcorr; but I don't think we need to use more complicated simulators like BEERS or Polyester)
In discussing with @huqiwen0313 today it was determined that the primary eval should be LSA. The module based structure of WGCNA is a current promising lead.
Future updates will impact the recently added simulation script, but the proposed DataModels class should still be valid.


ADVZ parallelism for distinct polynomials

Currently ADVZ does not use parallelism. There are some easy wins here: the work for each polynomial could be done on a separate core.

Closing. This task is ill-specified. Opportunities for parallelism:

polynomial commitments: already done in #400
proof generation (FK23): new issue #467


Update EmrEtlRunner installation: remove build instructions from 3. Installation

https://github.com/snowplow/snowplow/wiki/1-Installing-EmrEtlRunner#22-software
https://github.com/snowplow/snowplow/wiki/1-Installing-EmrEtlRunner#3-installation

Steps:

Update this to reflect the JRuby artifacts on Bintray
Remove talk of building the CLI tool oneself - this setup guide is for devops, not developers

@ihortom if you read through the Snowplow release blog posts you should get an idea of how we recommend installing EmrEtlRunner now. You can also talk to @chuwy and @ninjabear about this today...

@alexanderdean this ticket is esentially the same as #2371. Could be closed.

It still needs some work - I have updated the title now!

@alexanderdean you can review the the forked version of the page. Also I noticed the same problem with StorageLoader installation

Really nice @ihortom - I have pushed to master, closing


Update grpc-api, grpc-okhttp, grpc-stub to 1.61.1

About this PR
📦 Updates

io.grpc:grpc-api
io.grpc:grpc-okhttp
io.grpc:grpc-stub

from 1.49.2 to 1.61.1
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.grpc" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "io.grpc" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #376.


Bug 1711173: Handle emptying the s3 bucket before deleting it

/assign @adambkaplan

@adambkaplan responded to your comments.

/cherrypick release-4.1