Version 3.x

Hi all,
I've started working on the 3.x version of the Jaxon library, and there's already  a few beta releases. It's still an ongoing work, and I would like to share the main features that are expected in the next releases.
All comments and suggestions are welcome.

Lightweight class registration

Until now, registering a user callable object with jaxon actually means creating an instance of both the class and the CallableObject, which is the wrapper class Jaxon internally uses to generate Javascript code and handle Ajax requests.
$jaxon->register(Jaxon::CALLABLE_OBJECT, new FirstClass());
$jaxon->register(Jaxon::CALLABLE_OBJECT, new SecondClass());
$jaxon->register(Jaxon::CALLABLE_OBJECT, new ThirdClass());

When using the jaxon-armada or any framework integration package, we had to avoid registering the classes when processing a request, since only the requested class actually needs to be instanciated.
if($armada->canProcessRequest())
{
    // Process the request
    $armada->processRequest();
}
else
{
    // Register all the classes. Then they are all instanciated.
    $armada->register();
}

In the 3.x version, the user registers classes instead of objects, and Jaxon will instanciate them when needed.
$jaxon->register(Jaxon::CALLABLE_CLASS, 'FirstClass');
$jaxon->register(Jaxon::CALLABLE_CLASS, 'SecondClass');
$jaxon->register(Jaxon::CALLABLE_CLASS, 'ThirdClass');

Directories will also be registered the same way, with no object created until it is actually needed.
$jaxon->register(Jaxon::CALLABLE_DIR, '/path/to/the/first/dir/');
// With namespace
$jaxon->register(Jaxon::CALLABLE_DIR, '/path/to/the/second/dir/', ['namespace' => 'Ns\Jaxon\Second']);

The same will apply to jaxon-armada or any framework integration package.
// Register the classes. No object is created.
$armada->register();
if($armada->canProcessRequest())
{
    // Process the request. Only the requested object is created.
    $armada->processRequest();
}

Dependency injection

This feature is already implemented in the latest release https://www.jaxon-php.org/docs/advanced/dependency-injection.html.
The next releases will take the feature a step further by allowing the use of third party dependencies. For example when using the Laravel framework, the user will be able to inject Laravel dependencies in Jaxon classes with no extra cost.

Config based registration

This feature will let the user specify the functions, classes and namespaces to register in a config file, instead on manually listing them in the code.
Until now, only the jaxon-sentry -based packages could benefit from this feature.

Packages

This may be the most important feature planned in the next releases, and also the most hard to implement.
A Jaxon package bundles a set of classes and templates, and implements all the features needed to provide a service, including the required user interfaces.
After installing a Composer package, setting some config options and adding a couple of lines in a template, the user will be able to gain access to a service from a new or an existing application.
I need your comments
Please let me know if there's any feature you would like to see in the next releases, if you foresee any issue with the planned features, or if you have any questions.
Thank you.

Hello, great to hear this news.
I truly appreciate all your efforts to take Jaxon into the next level.
I came here to make a comment on something that just gave me some hard time to find out the problem and I found this news...
Well, when registering a function if there is a whitespace at the end of the string that corresponds to the name of the function, lets say:
$jaxon->register(Jaxon\Jaxon::USER_FUNCTION, 'myFunction '); //whitespace at the end of name
It will return an HTML content and not the jaxon object.
I haven't checked if there is a trim function in later releases of the release I am using, but still, I wanted to point this out since this is one of those cases in which you wouldn't pay attention
to the section of code where you register your functions.
And that's it, keep up the good work!

Hi All,
Good news! The version 3 is almost ready.
I'm currently updating the docs, and right after that I'll release a stable version.
All the changes listed above have been implemented, excepted the package management which I'll add in the next releases.
Thanks!

Hi all,
Just tagged the 3.0 beta 7 release, which is probably the last beta release before the final version.
Still updating the docs.

Finally done!
I'm very excited to announce the stable release of the version 3.
Here's an overview of the main changes: https://www.jaxon-php.org/docs/v3x/about/changes.html
I hope you'll enjoy using it.


add clone support for runtime layer

This will make it easier to do deep copies of runtime objects

killing this for now.  Will re-open if needed.


Update code-server packages

The following packages need to be updated:

http-proxy >= 1.18.1
Pin node to 12.18.1

v3.5.0 with VS Code v1.48.2 has been released, fixing this issue!


VBAD-SUM

Why do you include very-bad-summary in RLHF training? Why not using normal summary data?

Hi there. This is mostly due to a compute limitation. Technically RL algorithms need the policy to explore several trajectories to understand "good" and "bad" ones.
In our setup, we have a 2-step process to obtain the reward. First, Mistral-7B gives the rating of the opinion summary along $7$ features ($7$ forward passes through the model). An example of a feature is aspect-coverage -- indicates what fraction of aspects (of a product) mentioned in the reviews is picked by the summary. Then, a reward model $\varphi$ uses these $7$ features to produce the final reward. Doing this online, during policy gradient updates is very compute-heavy. So, we use an offline buffer of GOOD, SBAD-SUM and VBAD-SUM. These let the model explore several qualities of trajectory, without using heavy compute resources.
Please refer to our paper for more detail -- specifically, Section 4.2. Hope it helped :)


Critical CVE reported in latest<EMAIL_ADDRESS>

Hello,
Prebuild-install has a dependency on minimist and a critical CVE of CVSS score 9.8 has been reported in the current version of minimist being used which was fixed in the latest (minimist@1.2.6).
Can you please let us know the plans to upgrade so as to remedy the CVE reported, Thanks in advance.
minimist - 1.2.3

CVE-2021-44906
CVSS Score: 9.8
Fixed by version: 1.2.6
CVE Link: https://nvd.nist.gov/vuln/detail/CVE-2021-44906
Severity: CRITICAL_VULNERABILITY_SEVERITY

Hello @lovell , can you check and comment on this if possible, Thanks

The currently-accepted semver range for the minimist dependency includes (and therefore package managers will install) the latest 1.2.8 version.
https://github.com/prebuild/prebuild-install/blob/8250adf958fcec6fb3ddfcd7dd5ceb0e0e29e419/package.json#L25
Please update your lockfiles and see also #177


A typo in README.md

Hi, I found a typo in
Link,
where "-sequence_folder" was input twice in here and the following commands.

Thank you for reporting, we will fix it.

Thank you for your report @Arkitect-z, we have fixed the typo.


feat: Quote keywords when translating

Closes https://github.com/prql/prql/issues/896

(Merging but feel free to comment and I'll clean anything up)

Nice, this is as efficient as it gets.


Is it possible to use this input filter to search for things NOT included?

Like let's say I want to return all rows that do not contain a word.. so basically the opposite of the default behaviour.
I would find that quite useful!
Thanks!

It is possible, you need to create a custom filter like described here: https://github.com/outl1ne/nova-input-filter#customizing
So for your example, first make a NameFilter.php file:
class NameFilter extends InputFilter
{
    public function apply(Request $request, $query, $search)
    {
        return $query->where('name', 'not like', "%$search%");
    }
}

and then add it to your resource:
public function filters(NovaRequest $request): array
{
    return [
        NameFilter::make(['name'], "Name doesn't contain"),
    ];
}


does this work on the ESP-IDF framework or is arduino the only supported one?

Does this work on ESP32-C3 or any of the other variants?

It should work on any esp32 with bluetooth

This is really weird. I have two different types of ESp32C3s - A and B.
This controller works just fine on A and BLE Client running on another ESP32-WROOM. However, the same ESP32-WROOM can't connect to B with literally the same YAML difinition.
Config for A:
esphome:
  name: sunroom-bottom-end-stop
  friendly_name: sunroom-bottom-end-stop
  platformio_options:
    board_build.flash_mode: dio

esp32:
  variant: ESP32C3
  board: esp32-c3-devkitm-1
  framework:
    type: arduino

logger:

api:
  encryption:
    key: !secret encryption_key

ota:
  password: !secret ota_password

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    static_ip: <IP_ADDRESS>
    gateway: <IP_ADDRESS>
    subnet: <IP_ADDRESS>

  ap:
    ssid: "Sunroom-Bottom-End-Stop"
    password: !secret fallback_password

external_components:
  - source: github://wifwucite/esphome-ble-controller

binary_sensor:
  - platform: gpio
    name: Bottom End Stop
    id: bottom_end_stop
    internal: True
    pin:
      number: 07
      inverted: True
      mode:
        input: True
        pullup: True

sensor:
  - platform: adc
    name: "Battery voltage"
    id: battery_voltage
    pin: GPIO0
    accuracy_decimals: 2
    update_interval: 60s
    attenuation: auto
    filters:
      - multiply: 10.0

esp32_ble_controller:
  services:
    - service: "0000180F"
      characteristics:
        - characteristic: "00002A19"
          exposes: battery_voltage
    - service: "fc23b9ec-4b22-4356-abec-6083712765e3"
      characteristics:
        - characteristic: "4ef07259-6c07-4c95-a2a0-56072829e1ec"
          exposes: bottom_end_stop

  commands:
    - command: toggle-wifi
      description: Toggle Wifi
      on_execute:
        - if:
            condition: wifi.enabled
            then:
              - logger.log: "Wifi Disabled"
              - wifi.disable:
            else:
              - logger.log: "Wifi Enabled"
              - wifi.enable:

  security_mode: none

captive_portal:

Config for B:
esphome:
  name: sunroom-top-end-stop
  friendly_name: sunroom-top-end-stop
  platformio_options:
    board_build.flash_mode: dio

esp32:
  variant: esp32c3
  board: esp32-c3-devkitm-1
  framework:
    type: arduino

logger:

api:
  encryption:
    key: !secret encryption_key

ota:
  password: !secret ota_password

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    static_ip: <IP_ADDRESS>
    gateway: <IP_ADDRESS>
    subnet: <IP_ADDRESS>

  ap:
    ssid: "Sunroom-Top-End-Stop"
    password: !secret fallback_password

external_components:
  - source: github://wifwucite/esphome-ble-controller

binary_sensor:
  - platform: gpio
    name: Top End Stop
    id: top_end_stop
    internal: True
    pin:
      number: 07
      inverted: True
      mode:
        input: True
        pullup: True

sensor:
  - platform: adc
    name: "Battery voltage"
    id: battery_voltage
    pin: GPIO0
    accuracy_decimals: 2
    update_interval: 60s
    attenuation: auto
    filters:
      - multiply: 4.5

esp32_ble_controller:
  services:
    - service: "0000180F"
      characteristics:
        - characteristic: "00002A19"
          exposes: battery_voltage
    - service: "387386a3-c12c-48a9-a687-283127ecc2f3"
      characteristics:
        - characteristic: "00a4fcdd-22ec-4c9d-ab69-cd7aa612e3eb"
          exposes: top_end_stop

  commands:
    - command: toggle-wifi
      description: Toggle Wifi
      on_execute:
        - if:
            condition: wifi.enabled
            then:
              - logger.log: "Wifi Disabled"
              - wifi.disable:
            else:
              - logger.log: "Wifi Enabled"
              - wifi.enable:

  security_mode: none

captive_portal:

Config for ESP32-WROOM:
esphome:
  name: sunroom

esp32:
  board: nodemcu-32s
  framework:
    type: arduino

logger:

api:
  encryption:
    key: !secret encryption_key

ota:
  password: !secret ota_password

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    static_ip: <IP_ADDRESS>
    gateway: <IP_ADDRESS>
    subnet: <IP_ADDRESS>

  ap:
    ssid: "Sunroom Fallback Hotspot"
    password: !secret fallback_password

switch:
  - platform: shutdown
    name: "Sunroom Shutdown"

output:
  - platform: ledc
    id: motor_reverse_pin
    pin: 26
  - platform: ledc
    id: motor_forward_pin
    pin: 27

ble_client:
  - mac_address: 48:31:b7:04:ba:e6
    id: sunroom_top_end_stop

  - mac_address: 54:32:04:46:6b:fa
    id: sunroom_bottom_end_stop

sensor:
  - platform: internal_temperature
    name: "Temperature"

  - platform: ble_client
    type: characteristic
    ble_client_id: sunroom_top_end_stop
    id: sunroom_top_end_stop_sensor
    name: "Sunroom Top Endstop"
    internal: True
    service_uuid: "387386a3-c12c-48a9-a687-283127ecc2f3"
    characteristic_uuid: "00a4fcdd-22ec-4c9d-ab69-cd7aa612e3eb"
    notify: true

  - platform: ble_client
    type: characteristic
    ble_client_id: sunroom_top_end_stop
    name: "Sunroom top endstop battery level"
    service_uuid: '180f'
    characteristic_uuid: '2a19'
    icon: 'mdi:battery'
    lambda: |-
      return *((float*)(&x[0]));
    notify: true

  - platform: ble_client
    type: characteristic
    ble_client_id: sunroom_bottom_end_stop
    id: sunroom_bottom_end_stop_sensor
    name: "Sunroom Bottom Endstop"
    internal: True
    service_uuid: "fc23b9ec-4b22-4356-abec-6083712765e3"
    characteristic_uuid: "4ef07259-6c07-4c95-a2a0-56072829e1ec"
    notify: true

  - platform: ble_client
    type: characteristic
    ble_client_id: sunroom_bottom_end_stop
    name: "Sunroom bottom endstop battery level"
    service_uuid: '180f'
    characteristic_uuid: '2a19'
    icon: 'mdi:battery'
    lambda: |-
      return *((float*)(&x[0]));
    notify: true

binary_sensor:
  - platform: template
    name: "Sunroom Blind Open"
    id: sunroom_top_end_stop_binary_sensor
    internal: True
    lambda: |-
      if (id(sunroom_top_end_stop_sensor).state > 0) {
        return true;
      } else {
        return false;
      }
    icon: 'mdi:roller-shade'

  - platform: template
    name: "Sunroom Blind Closed"
    id: sunroom_bottom_end_stop_binary_sensor
    internal: True
    lambda: |-
      if (id(sunroom_bottom_end_stop_sensor).state > 0) {
        return true;
      } else {
        return false;
      }
    icon: 'mdi:roller-shade-closed'

cover:
  - platform: feedback
    name: "Sunroom Blind"
    id: sunroom_blind
    icon: mdi:roller-shade
    open_action:
      - output.turn_off: motor_forward_pin
      - output.turn_on: motor_reverse_pin
    open_duration: 55s
    open_endstop: sunroom_top_end_stop_binary_sensor

    close_action:
      - output.turn_off: motor_reverse_pin
      - output.turn_on: motor_forward_pin
    close_duration: 50s
    close_endstop: sunroom_bottom_end_stop_binary_sensor

    stop_action:
      - output.turn_off: motor_reverse_pin
      - output.turn_off: motor_forward_pin

time:
  - platform: sntp
    timezone: America/Denver
    on_time:
      - seconds: 0
        minutes: 0
        hours: 12
        then:
          - cover.open: sunroom_blind
      - seconds: 0
        minutes: 0
        hours: 18
        then:
          - cover.close: sunroom_blind

Here is the output from ESP32-WROOM:
[03:44:05][D][sensor:094]: 'Sunroom bottom endstop battery level': Sending state 4.79778  with 0 decimals of accuracy
[03:44:16][W][ble_sensor:117]: [Sunroom top endstop battery level] Cannot poll, not connected
[03:44:23][D][sensor:094]: 'Sunroom Bottom Endstop': Sending state 0.00000  with 0 decimals of accuracy
[03:44:24][W][ble_sensor:117]: [Sunroom Top Endstop] Cannot poll, not connected

Here is the output from Sunroom Top Endstop (B):
[03:52:21][I][app:102]: ESPHome version 2023.11.6 compiled on Dec 19 2023, 03:50:19
[03:52:21][C][wifi:559]: WiFi:
[03:52:21][C][wifi:391]:   Local MAC: 48:31:B7:04:BA:E4
[03:52:21][C][wifi:396]:   SSID: 'SandhuHouse'
[03:52:21][C][wifi:397]:   IP Address: <IP_ADDRESS>
[03:52:21][C][wifi:399]:   BSSID: 24:05:88:36:76:9D
[03:52:21][C][wifi:400]:   Hostname: 'sunroom-top-end-stop'
[03:52:21][C][wifi:402]:   Signal strength: -71 dB ▂▄▆█
[03:52:21][C][wifi:406]:   Channel: 6
[03:52:21][C][wifi:407]:   Subnet: <IP_ADDRESS>
[03:52:21][C][wifi:408]:   Gateway: <IP_ADDRESS>
[03:52:21][C][wifi:409]:   DNS1: <IP_ADDRESS>
[03:52:21][C][wifi:410]:   DNS2: <IP_ADDRESS>
[03:52:21][C][logger:416]: Logger:
[03:52:21][C][logger:417]:   Level: DEBUG
[03:52:21][C][logger:418]:   Log Baud Rate: 115200
[03:52:21][C][logger:420]:   Hardware UART: UART0
[03:52:21][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Top End Stop'
[03:52:21][C][gpio.binary_sensor:016]:   Pin: GPIO7
[03:52:21][C][adc:097]: ADC Sensor 'Battery voltage'
[03:52:21][C][adc:097]:   Device Class: 'voltage'
[03:52:21][C][adc:097]:   State Class: 'measurement'
[03:52:21][C][adc:097]:   Unit of Measurement: 'V'
[03:52:21][C][adc:097]:   Accuracy Decimals: 2
[03:52:21][C][adc:107]:   Pin: GPIO0
[03:52:21][C][adc:109]:  Attenuation: auto
[03:52:21][C][adc:142]:   Update Interval: 60.0s
[03:52:21][C][esp32_ble_controller:318]: Bluetooth Low Energy Controller:
[03:52:21][C][esp32_ble_controller:319]:   BLE device address: 48:31:b7:04:ba:e6
[03:52:21][C][esp32_ble_controller:320]:   BLE mode: 3
[03:52:21][C][esp32_ble_controller:340]:   security disabled
[03:52:21][C][captive_portal:088]: Captive Portal:
[03:52:21][C][mdns:115]: mDNS:
[03:52:21][C][mdns:116]:   Hostname: sunroom-top-end-stop
[03:52:21][C][ota:097]: Over-The-Air Updates:
[03:52:21][C][ota:098]:   Address: <IP_ADDRESS>:3232
[03:52:21][C][ota:101]:   Using Password.
[03:52:21][C][api:139]: API Server:
[03:52:21][C][api:140]:   Address: <IP_ADDRESS>:6053
[03:52:21][C][api:142]:   Using noise encryption: YES
[03:52:51][D][sensor:094]: 'Battery voltage': Sending state 1.79962 V with 2 decimals of accuracy
[03:52:51][D][ble_component_handler_base:049]: Update component battery_voltage to 1.799617
[03:53:51][D][sensor:094]: 'Battery voltage': Sending state 2.04601 V with 2 decimals of accuracy
[03:53:51][D][ble_component_handler_base:049]: Update component battery_voltage to 2.046012

And looks like this component only works with the arduino framework and not the ESP-IDF framework based on this line:

Aite - I have great news!!! IT WORKS!!!!
[05:02:24][C][ble_sensor:017]: BLE Sensor 'Sunroom Top Endstop'
[05:02:24][C][ble_sensor:017]:   State Class: ''
[05:02:24][C][ble_sensor:018]:   MAC address        : 48:31:B7:04:BA:E6
[05:02:24][C][ble_sensor:019]:   Service UUID       : 387386A3-C12C-48A9-A687-283127ECC2F3
[05:02:24][C][ble_sensor:020]:   Characteristic UUID: 00A4FCDD-22EC-4C9D-AB69-CD7AA612E3EB
[05:02:24][C][ble_sensor:021]:   Descriptor UUID    : 00000000-0000-0000-0000-000000000000
[05:02:24][C][ble_sensor:022]:   Notifications      : YES
[05:02:24][C][ble_sensor:023]:   Update Interval: 60.0s
[05:02:24][C][ble_sensor:017]: BLE Sensor 'Sunroom top endstop battery level'
[05:02:24][C][ble_sensor:017]:   State Class: ''
[05:02:24][C][ble_sensor:017]:   Unit of Measurement: ''
[05:02:24][C][ble_sensor:017]:   Accuracy Decimals: 0
[05:02:24][C][ble_sensor:017]:   Icon: 'mdi:battery'
[05:02:24][C][ble_sensor:018]:   MAC address        : 48:31:B7:04:BA:E6
[05:02:24][C][ble_sensor:019]:   Service UUID       : 0x180F
[05:02:24][C][ble_sensor:020]:   Characteristic UUID: 0x2A19
[05:02:24][C][ble_sensor:021]:   Descriptor UUID    : 00000000-0000-0000-0000-000000000000
[05:02:24][C][ble_sensor:022]:   Notifications      : YES
[05:02:24][C][ble_sensor:023]:   Update Interval: 60.0s

I had to change the board to:
esp32:
  variant: esp32c3
  board: seeed_xiao_esp32c3
  framework:
    type: arduino

Can't get it to connect to wifi but that is not in scope of this repository. I think this will also work with board: lolin_c3_mini.

Sorry! I was looking at the incorrect log entry. Reopening it.

Well, the maintenance service is crashing causing the continuous reboot on this ESP32C3. Not sure why but here is the relevant output. I think I can make do without the maintenance service.
[05:19:07][  5079][V][GeneralUtils.cpp:296] hexDump():      00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
[05:19:07][  5087][V][GeneralUtils.cpp:297] hexDump():      -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
[05:19:07][  5096][V][GeneralUtils.cpp:312] hexDump(): 0000 5b 43 5d 5b 62 6c 65 5f 63 6f 6d 70 6f 6e 65 6e  [C][ble_componen
[05:19:07][  5106][V][GeneralUtils.cpp:312] hexDump(): 0010 74 5f 68 61 6e 64 6c 65 72 5f 62 61 73 65 3a 30  t_handler_base:0
[05:19:07][  5116][V][GeneralUtils.cpp:312] hexDump(): 0020 34 34 5d 3a 20 74 6f 70 5f 65 6e 64 5f 73 74 6f  44]: top_end_sto
[05:19:07][  5126][V][GeneralUtils.cpp:312] hexDump(): 0030 70 3a 20 53 52 56 20 33 38 37 33 38 36 61 33 2d  p: SRV 387386a3-
[05:19:07][  5137][V][GeneralUtils.cpp:312] hexDump(): 0040 63 31 32 63 2d 34 38 61 39 2d 61 36 38 37 2d 32  c12c-48a9-a687-2
[05:19:07][  5147][V][GeneralUtils.cpp:312] hexDump(): 0050 38 33 31 32 37 65 63 63 32 66 33 20 2d 20 43 48  83127ecc2f3 - CH
[05:19:07][  5157][V][GeneralUtils.cpp:312] hexDump(): 0060 41 52 20 30 30 61 34 66 63 64 64 2d 32 32 65 63  AR 00a4fcdd-22ec
[05:19:07][  5167][V][GeneralUtils.cpp:312] hexDump(): 0070 2d 34 63 39 64 2d 61 62 36 39 2d 63 64 37 61 61  -4c9d-ab69-cd7aa
[05:19:07][  5177][V][GeneralUtils.cpp:323] hexDump(): 0080 36 31 32 65 33 65 62                             612e3eb
[05:19:07][  5186][V][BLECharacteristic.cpp:500] notify(): << notify: No connected clients.
[05:19:07][  5194][D][BLECharacteristic.cpp:796] onStatus(): >> onStatus: default
[05:19:07][  5200][D][BLECharacteristic.cpp:797] onStatus(): << onStatus
[05:19:07][  5216][V][BLECharacteristic.cpp:659] setValue(): >> setValue: length=71, data=5b445d5b626c655f636f6d706f6e656e745f68616e646c65725f626173653a3036355d3a2055706461746520636f6d706f6e656e7420746f705f656e645f73746f7020746f2030, characteristic UUID=a1083f3b-0ad6-49eE (9954) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
[05:19:07]E (9954) task_wdt:  - loopTask (CPU 0)
[05:19:07]E (9954) task_wdt: Tasks currently running:
[05:19:07]E (9954) task_wdt: CPU 0: loopTask
[05:19:07]E (9954) task_wdt: Aborting.
[05:19:08]ESP-ROM:esp32c3-api1-20210207
[05:19:08]Build:Feb  7 2021
[05:19:08]rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
[05:19:08]Saved PC:0x40381a64
WARNING Decoded 0x40381a64: esp_restart_noos_dig at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:44 (discriminator 1)
[05:19:08]SPIWP:0xee
[05:19:08]mode:DIO, clock div:1
[05:19:08]load:0x3fcd6100,len:0x438
[05:19:08]load:0x403ce000,len:0x918
[05:19:08]load:0x403d0000,len:0x24e4
[05:19:08]entry 0x403ce000
[05:19:08][   497][V][BLEDevice.cpp:76] createServer(): >> createServer
[05:19:08][   498][V][BLEServer.cpp:290] registerApp(): >> registerApp - 0
[05:19:08][   498][V][FreeRTOS.cpp:189] take(): Semaphore taking: name: RegisterAppEvt (0x3fca7ab4), owner: <N/A> for registerApp
[05:19:08][   508][V][FreeRTOS.cpp:198] take(): Semaphore taken:  name: RegisterAppEvt (0x3fca7ab4), owner: registerApp
[05:19:08][   518][D][BLEDevice.cpp:102] gattServerEventHandler(): gattServerEventHandler [esp_gatt_if: 3] ... ESP_GATTS_REG_EVT
[05:19:08][   528][V][BLEUtils.cpp:1530] dumpGattServerEvent(): GATT ServerEvent: ESP_GATTS_REG_EVT
[05:19:08][   536][V][BLEUtils.cpp:1673] dumpGattServerEvent(): [status: ESP_GATT_OK, app_id: 0]

Hopefully someone can fix this soon. But I am closing this ticket as this is not a showstopper for me.


Converting xls to xform not working

Originally reported on Google Code with ID 1098
What steps will reproduce the problem?
1.go to https://opendatakit.org/xiframe
2. browse for xls file wanting to convert to xform, Click 'Submit'
3. Verify no errors (by previewing in enketo).
4. Click 'download' so can convert
5. No converted file is created. Instead a field containing the data field info is
presented, but no where can I can save/download/create as xform file.

What is the expected output? What do you see instead?
An xform file. No created file.

What version of the product are you using? On what operating system?
I tried on Win 7 and Win8. It was previously working for me.

Please provide any additional information below.

Reported by Brenda.Rodgers.VR on 2015-01-06 05:13:33

Old issue, so not reproducible.


[FEATURE] General query on hosting loop app on Olive App Store

Hi, We are an Olive partner in developing different loops for some of the clients of Olive. We are currently working on a loop that may require hosting it on Olive App Store in near future.
We require step by step guide for hosting an app in Olive App Store. This guide will be useful in the near future.
Please provide us with any document or a web link. Thanks.

Hi! All of our developer documentation is available here: https://oliveai.dev
Our available documentation for publishing a loop in our library is here: https://docs.oliveai.dev/ldk/loop-publication


Only featured strategies are shown in the website

http://www.passportjs.org/packages/

I came here to ask this as well. The front page lists "500+ strategies!"

And the Features page shows "300+"

But click that button and there's only 5?? 😕

For anyone else who's looking, I found a link to a wiki page of strategies in the comments on issue #675
https://github.com/jaredhanson/passport/wiki/Strategies


Importing users from different tenants

Importing user from different tenants not working i used the below code ...
namespace :users_importing_to_intercome do
desc "Importing users to Intercom"
task creation_of_user: :environment do
Tenant.all.pluck(:name).each do |tenant_name|
Apartment::Tenant.switch(tenant_name)
begin
IntercomRails::Import.run(:status_enabled => true)
rescue IntercomRails::ImportError => e
puts e.message
end
end
end
end

Looks like a duplicate of https://github.com/intercom/intercom-rails/issues/119
So closing this. If it is still and issue then please feel free to re-open it and provide any error msgs you are seeing.


"something's wrong" with the CH340 on KD233

When using the kflash.py, the otp boot fails to start the app, may due to file inconsistent during the download stage.

interesting, something's wrong, boot failed with exit code 233, go to find your vendor.

It seems like only the KD233 have this issue. Dan is working ok. (but for the old version, both is working)
auto_isp.py is grabbed from https://github.com/kendryte/kflash.py/commit/0dd769cf740b47b80d86ca2a65672387509da9c8 and kflash.py is grabbed from https://github.com/kendryte/kflash.py/commit/adc3d69056d617ec2e4967d767c62b1e597eee55
I noticed that the only difference that may be related to this issue is @vowstar add the "change the baudrate function" while replease the whole blob. https://github.com/kendryte/kflash.py/commit/0450ee7901b2b4dc3d3330b0af7f36c1e7e2dd20

I will update a niubility isp_flash blob.

It seems like the problem is not at that blob.
If I comment out
loader.change_baudrate(args.baudrate)

Everything just works fine for both platforms.
Further investigation finds that the CH340 on KD233 may be a fake chip.

The etching of the CH340 on KD233 appears to be lighter than that on Dan.

For kendryte-flash-windows project, it closes the serial, then enable it again. Which I tried on pyserial, it yields some extra issues on DTR/RTS, which I am currently trying to figure it out.
 public async Task ChangeBaudRate()
        {
            var status = JobItemsStatus[JobItemType.ChangeBaudRate];
            CurrentJob = JobItemType.ChangeBaudRate;
            await DoJob(status, () =>
            {
                return Task.Run(async () =>
                {
                    var buffer = new byte[4 * 5];
                    var payload = new ArraySegment<byte>(BitConverter.GetBytes(_baudRate));
                    SendPacket(buffer, (ushort)FlashModeResponse.Operation.ISP_UARTHS_BAUDRATE_SET, 0, payload: payload);

                    _port.Close();
                    await Task.Delay(50);
                    _port.BaudRate = _baudRate;
                    _port.Open();
                });
            });
        }

Anyway... still want to opensource the ISP Source code :3

I will update a niubility isp_flash blob.

This issue will not close until @ly0 update a niubility isp_flash blob.

isp_flash blob updated, I think this issue fixed

after I  download bin file using k flash unitity ,I open the COM and see the printing, Has the problem been solved


Number of facets returned on elasticsearch are limited to 10

Hello everyone. I have facet with following problem: the number of facets returned on elasticsearch are limited to 10, is it possible to increase this number?
As i can see, the number was increased to 100 in this issue https://github.com/django-haystack/django-haystack/issues/658
But it's still 10 for me
receiving facets by - queryset.facet_counts()
Operating system version: Mac os (but dockerized on linux)
Search engine version:
Python version: python:3.11
Django version: Django==4.0.8 djangorestframework==3.12.4
Haystack version: drf-haystack==1.8.13

Hi @mrk4148-kreios
I just did a very brief search in the code base for an obvious thing to update, but didn't fint any.
I wouldn't count on this being fixed, unless you take the time to investigate the matter further and provide a pull request yourself.

@decibyte Thank you for response


Bump g stands for

For the next 1.28 release

objc macos: https://github.com/grpc/grpc/issues/18430
objc ios: ios-test-cfstream-tests
MSAN C/C++: https://github.com/grpc/grpc/issues/19726
ubsan C/C++: https://github.com/grpc/grpc/issues/21961
bazel RBE windows opt C/C++: https://github.com/grpc/grpc/issues/21221


Admin Commission Table Error

`DataTables warning: table id=zero_admin_commission_record - Ajax error. For more information about this error, please see http://datatables.net/tn/7
{"error":{"type":"BadMethodCallException","message":"Call to undefined method App\Models\Payback::date()","code":0,"file":"/www/wwwroot/zeropanel/vendor/illuminate/support/Traits/ForwardsCalls.php","line":71}}

hey, can you fix it?

hey, can you fix it?


feat: add theme color changer to hello users to change preset themes

🙋 Feature Request
In the current web applications, users like to customize the colors either for readability or in some cases because of challenges they prefer high contrast settings. It would be great if you could provide a component under the settings COG so that the user can select and set their themes to change their primary colors and their text colors.
🤔 Expected Behavior
If you look at any of the current standard web applications they have a cog and settings that allows the user to select and then a tab opens up or a modal/drawer on the right so that the user can select the colors for their theme, preciwed and save.
Also in the second help video it shows that authorization has been ported over but that sample is missing on the website.
😯 Current Behavior
This is missing.
💁 Possible Solution

🔦 Context

💻 Examples

Sorry, this makes no sense to me at all. Closing...


Beginners documentation is lacking

With frameworks such as Fastlane and Danger becoming more and more popular, it seems that for better or worse, a degree of Ruby knowledge seems to be a requirement for a senior iOS developer.
I believe we badly need a document entitled "Everything an iOS developer needs to know about Ruby before touching Fastlane".
Having just spent quite a few days figuring much of this out for myself, I am not sure I am the best person to write it.

The iOS Getting Started document advises beginners to use sudo gem install fastlane. Is this not terrible advice?
Beginners using this to set up their development machines or CI servers will obviously be OK to start with but run in to trouble when they have different projects in the same machine using different versions, or wish to have versions upgraded by non root users.
I think this documentation should spell out traps to avoid (such as using sudo to install, or using the system standard Ruby), and be opinionated on matters such as the best stack for new users (e.g. rbenv/bundler).
Too many guides online either assume knowledge, or spell out alternatives without indicating all pros and cons.
New users here would appreciate a clear steer on best practice.

Having just spent quite a few days figuring much of this out for myself, I am not sure I am the best person to write it.

I disagree, just because you just had to fight your way through it you are in the best position to create a list of things that are currently missing from the documentation. We would sure appreciate such a list over at https://github.com/fastlane/docs/issues

The iOS Getting Started document advises beginners to use sudo gem install fastlane. Is this not terrible advice?

Yes and no. You listed a few reasons why this might get problematic for some users. But for the majority this will work just fine. Adding "Install rbenv / rmv / ..." would add an additional step for all users, while the majority will probably never need and use it.
If I remember correctly, this is even mentioned somewhere in the docs... but maybe not surfaced in all the correct locations.


do the errno handling on Owl side

add the errno POSIX constants
simplify the C system primitives where possible

Work in progress.
For this, some functions need to be able to return EOF on Owl side. Would you prefer to have #eof as a language feature (like #true, #false, #empty, etc.) as it is returned by make-renderer, or go the Scheme way directly with something like (define eof-object (let ((eof (cast 4 13))) (λ () eof)))?

Looks like you already did pretty much what I was about to comment here.
Eof is a somewhat annoying special value. (eof-object? (read port)) should be true iff the port is closed, so there should be no textual representation for it. On the other hand, there should be a textual representation for all values.
The least ugly solution seems to be to have one place where it can be obtained from, as if one had opened a known empty port and attempted to read from there.

Issue #52 has one more thing related to the eof case.


Pre-use questions.

Codebase
Built-in vanilla WordPress
Host OS
Arch Linux (desktop)
Docker version
Docker version 18.09.5-ce, build e8ff056dbc
I'm not using this yet.

Can requests to the internet (js, css, img, services, etc) from within the Apache and NginX containers, be routed through VPN containers like https://github.com/kylemanna/docker-openvpn and https://github.com/dperson/openvpn-client ?
And only local/internal traffic through traefik.
Instructions to Custom configure vhosts for NginX is clear. What about Apache ?
Is the example location /var/www/html/vhost.conf for a custom vhost config for NginX persistent ?
Is https://hub.docker.com/r/jwhitworksweb/docker4wordpress on Docker Hub, somehow related to this repo ? :

So I just checked this out.
In ~/dev/docker-test/docker4wordpress/.env because the initial login group for regular users (users) on Arch Linux is 100. :
# Linux (uid 1000 gid 1000)
Linux (uid 1000 gid 100)

docker-compose up
ERROR: In file ./.env: environment variable name 'Linux (uid 1000 gid 100)' may not contains whitespace.

Jeez! (◔_◔) I just gave it another shot. It is :
uid=1000
gid=100

Uninstalling!


Pytorch version

If I want to install julius, what is the minimum version of torch I should use? Julius seems to be incompatible with torch 1.5.1.

I successfully used julius 0.1.1 with pytorch 1.6.0 way back in november 2020. I would say consider upgrading your pytorch.

OK, I will use the newer version of pytorch directly. Thanks.


porting to python3

It implements a compatibility for Python3.
It was tested both Python2 and Python3.

Thanks for your PR!


⚠ Bofrost.nl has degraded performance

In 44a5dd7, Bofrost.nl (https://www.bofrost.nl) experienced degraded performance:

HTTP code: 200
Response time: 903 ms

Resolved: Bofrost.nl performance has improved in abf2836.


Can't read "volcello" files

As far as I can tell, iris can't read any "volcello" files e.g.
>>> import iris

# e.g. file (I've also tried other CMIP6 volcello files and get the same behaviour)
>>> volcello_path = "CMIP6/CMIP/NCAR/CESM2-WACCM/piControl/r1i1p1f1/Ofx/volcello/gn/v20190320/volcello_Ofx_CESM2-WACCM_piControl_r1i1p1f1_gn.nc"
>>> iris.load_cube(volcello_path)
.../miniconda3/envs/netcdf-scm/lib/python3.7/site-packages/iris/fileformats/cf.py:798: UserWarning: Missing CF-netCDF measure variable 'areacello', referenced by netCDF variable 'volcello'
  warnings.warn(message % (variable_name, nc_var_name))
Traceback (most recent call last):
  File ".../miniconda3/envs/netcdf-scm/lib/python3.7/site-packages/iris/__init__.py", line 377, in load_cube
    cube = cubes.merge_cube()
  File ".../miniconda3/envs/netcdf-scm/lib/python3.7/site-packages/iris/cube.py", line 374, in merge_cube
    raise ValueError("can't merge an empty CubeList")
ValueError: can't merge an empty CubeList

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../miniconda3/envs/netcdf-scm/lib/python3.7/site-packages/iris/__init__.py", line 381, in load_cube
    raise iris.exceptions.ConstraintMismatchError('no cubes found')
iris.exceptions.ConstraintMismatchError: no cubes found

I did some digging and I think the reason is that "volcello" is being identified as a iris.fileformats.cf.CFMeasureVariable and hence does not appear in iris.fileformats.cf.CFGroup.data_variables (which matters here https://github.com/SciTools/iris/blob/5d4976614d39a93c12e640ff5a2ec1ccdd6e8380/lib/iris/fileformats/netcdf.py#L709)
If someone can suggest a fix, I'm happy to try and implement it (alongside a test). I just have no idea what the logic sitting underneath all the CF stuff is so can't work out how to start.

Don't know much about the background of this, but I downloaded a "volcello_fx_GFDL-CM3_historicalMisc_r0i0p0.nc", and I can load that fine.
It's dump is like this (in part, it's long.  Shame we don't have comment section collapse) ...
$ ncdump -h volcello_fx_GFDL-CM3_historicalMisc_r0i0p0.nc
netcdf volcello_fx_GFDL-CM3_historicalMisc_r0i0p0 {
dimensions:
	lev = 50 ;
	rlat = 200 ;
	rlon = 360 ;
	vertices = 4 ;
	bnds = 2 ;
variables:
            . . .
	float volcello(lev, rlat, rlon) ;
		volcello:missing_value = 1.e+20f ;
		volcello:coordinates = "lat lon" ;
		volcello:_FillValue = 1.e+20f ;
		volcello:standard_name = "ocean_volume" ;
		volcello:long_name = "Ocean Grid-Cell Volume" ;
		volcello:units = "m-3" ;
		volcello:comments = "Note: This model output is presented on the model\'s tripolar grid. The North Pole singularity is avoided by using this nonregular grid north of 65N. More information about the ocean and sea ice model\'s grid can be found at http://nomads.gfdl.noaa.gov/." ;
		volcello:original_name = "volcello" ;
		volcello:original_units = "<undefined>" ;
		volcello:associated_files = "baseURL: http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation gridspecFile: gridspec_ocean_fx_GFDL-CM3_historicalMisc_r0i0p0.nc" ;
    . . .
}

Is it really a volcello file that won't load, or a file that refers to one ??
If so it could be a problem with the concept of 'associated files'
For instance, I see files in the archives with structures like ...
	float variable(time, plev, lat, lon) ;
            . . .
		rh:cell_measures = "volume: volcello" ;
		rh:associated_files = "baseURL: http://cmip-pcmdi.llnl.gov/xxx volcello: volcello_xxxx.nc" ;

The meaning is that there is a cross-reference between files.
I'm pretty sure Iris doesn't know how to do that, though I'm surprised if this stops you loading something.
I assume your case must be a bit different.
An ncdump would really help here
Can you give a bit more detail @znicholls ?

Hi @pp-mo, here's an ncdump (it's the full thing as I don't know what I should be looking at, sorry it's so long). If any more information is helpful let me know.
ncdump -h volcello_Ofx_CESM2-WACCM_piControl_r1i1p1f1_gn.nc
netcdf volcello_Ofx_CESM2-WACCM_piControl_r1i1p1f1_gn {
dimensions:
	nlat = 384 ;
	d2 = 2 ;
	nlon = 320 ;
	lev = 60 ;
	vertices = 4 ;
variables:
	float volcello(lev, nlat, nlon) ;
		volcello:_FillValue = 1.e+20f ;
		volcello:cell_measures = "area: areacello volume: volcello" ;
		volcello:cell_methods = "area: mean" ;
		volcello:comment = "For oceans with more than 1 mesh (e.g. staggered grids), report areas that apply to surface vertical fluxes of energy. If this field is time-dependent then save it instead as one of your Omon and Odec fields" ;
		volcello:coordinates = "lev lat lon" ;
		volcello:description = "For oceans with more than 1 mesh (e.g. staggered grids), report areas that apply to surface vertical fluxes of energy. If this field is time-dependent then save it instead as one of your Omon and Odec fields" ;
		volcello:frequency = "fx" ;
		volcello:id = "volcello" ;
		volcello:long_name = "Ocean Grid-Cell Volume" ;
		volcello:mipTable = "Ofx" ;
		volcello:missing_value = 1.e+20 ;
		volcello:out_name = "volcello" ;
		volcello:prov = "fx ((isd.003))" ;
		volcello:realm = "ocean" ;
		volcello:standard_name = "ocean_volume" ;
		volcello:time_label = "None" ;
		volcello:time_title = "No temporal dimensions ... fixed field" ;
		volcello:title = "Ocean Grid-Cell Volume" ;
		volcello:type = "real" ;
		volcello:units = "m3" ;
		volcello:variable_id = "volcello" ;
	double lat(nlat, nlon) ;
		lat:axis = "Y" ;
		lat:bounds = "lat_bnds" ;
		lat:standard_name = "latitude" ;
		lat:title = "Latitude" ;
		lat:type = "double" ;
		lat:units = "degrees_north" ;
		lat:valid_max = 90. ;
		lat:valid_min = -90. ;
	double lev(lev) ;
		lev:axis = "Z" ;
		lev:bounds = "lev_bnds" ;
		lev:positive = "down" ;
		lev:standard_name = "olevel" ;
		lev:title = "ocean model level" ;
		lev:type = "double" ;
		lev:units = "centimeters" ;
	double lon(nlat, nlon) ;
		lon:axis = "X" ;
		lon:bounds = "lon_bnds" ;
		lon:standard_name = "longitude" ;
		lon:title = "Longitude" ;
		lon:type = "double" ;
		lon:units = "degrees_east" ;
		lon:valid_max = 360. ;
		lon:valid_min = 0. ;
	int nlat(nlat) ;
		nlat:long_name = "cell index along second dimension" ;
		nlat:units = "1" ;
	int nlon(nlon) ;
		nlon:long_name = "cell index along first dimension" ;
		nlon:units = "1" ;
	float lat_bnds(nlat, nlon, vertices) ;
		lat_bnds:units = "degrees_north" ;
	float lon_bnds(nlat, nlon, vertices) ;
		lon_bnds:units = "degrees_east" ;
	float lev_bnds(lev, d2) ;
		lev_bnds:units = "m" ;

// global attributes:
		:Conventions = "CF-1.7 CMIP-6.2" ;
		:activity_id = "CMIP" ;
		:case_id = "1" ;
		:cesm_casename = "b.e21.BW1850.f09_g17.CMIP6-piControl.001" ;
		:contact =<EMAIL_ADDRESS>;
		:creation_date = "2019-01-29T19:10:22Z" ;
		:data_specs_version = "01.00.29" ;
		:experiment = "pre-industrial control" ;
		:experiment_id = "piControl" ;
		:external_variables = "areacello volcello" ;
		:forcing_index = 1LL ;
		:frequency = "fx" ;
		:further_info_url = "https://furtherinfo.es-doc.org/CMIP6.NCAR.CESM2-WACCM.piControl.none.r1i1p1f1" ;
		:grid = "native gx1v7 displaced pole grid (384x320 latxlon)" ;
		:grid_label = "gn" ;
		:initialization_index = 1LL ;
		:institution = "National Center for Atmospheric Research, Climate and Global Dynamics Laboratory, 1850 Table Mesa Drive, Boulder, CO 80305, USA" ;
		:institution_id = "NCAR" ;
		:license = "CMIP6 model data produced by <The National Center for Atmospheric Research> is licensed under a Creative Commons Attribution-[]ShareAlike 4.0 International License (https://creativecommons.org/licenses/). Consult https://pcmdi.llnl.gov/CMIP6/TermsOfUse for terms of use governing CMIP6 output, including citation requirements and proper acknowledgment. Further information about this data, including some limitations, can be found via the further_info_url (recorded as a global attribute in this file)[]. The data producers and data providers make no warranty, either express or implied, including, but not limited to, warranties of merchantability and fitness for a particular purpose. All liabilities arising from the supply of the information (including any liability arising in negligence) are excluded to the fullest extent permitted by law." ;
		:mip_era = "CMIP6" ;
		:model_doi_url = "https://doi.org/10.5065/D67H1H0V" ;
		:nominal_resolution = "100 km" ;
		:parent_mip_era = "CMIP6" ;
		:parent_source_id = "CESM2-WACCM" ;
		:parent_time_units = "days since 0001-01-01 00:00:00" ;
		:physics_index = 1LL ;
		:product = "model-output" ;
		:realization_index = 1LL ;
		:realm = "ocean" ;
		:source = "CESM2 (2017): atmosphere: CAM6 (0.9x1.25 finite volume grid; 288 x 192 longitude/latitude; 70 levels; top level 4.5e-6 mb); ocean: POP2 (320x384 longitude/latitude; 60 levels; top grid cell 0-10 m); sea_ice: CICE5.1 (same grid as ocean); land: CLM5 0.9x1.25 finite volume grid; 288 x 192 longitude/latitude; 70 levels; top level 4.5e-6 mb); aerosol: MAM4 (0.9x1.25 finite volume grid; 288 x 192 longitude/latitude; 70 levels; top level 4.5e-6 mb); atmosChem: WACCM (0.9x1.25 finite volume grid; 288 x 192 longitude/latitude; 70 levels; top level 4.5e-6 mb; landIce: CISM2.1; ocnBgchem: MARBL (320x384 longitude/latitude; 60 levels; top grid cell 0-10 m)" ;
		:source_id = "CESM2-WACCM" ;
		:source_type = "AOGCM BGC CHEM AER" ;
		:sub_experiment = "none" ;
		:sub_experiment_id = "none" ;
		:table_id = "Ofx" ;
		:tracking_id = "hdl:21.14100/3ad6d7f4-6ccd-4c61-ae62-018d0fdc079e" ;
		:variable_id = "volcello" ;
		:variant_info = "CMIP6 CESM2 piControl experiment with high-top atmosphere (WACCM6) with interactive chemistry (TSMLT1), interactive land (CLM5), coupled ocean (POP2) with biogeochemistry (MARBL), interactive sea ice (CICE5.1), and non-evolving land ice (CISM2.1)" ;
		:variant_label = "r1i1p1f1" ;
		:parent_experiment_id = "piControl-spinup" ;
		:parent_activity_id = "CMIP" ;
		:parent_variant_label = "r1i1p1f1" ;
		:branch_time_in_parent = 48545. ;
		:branch_time_in_child = 0. ;
		:branch_method = "standard" ;
}

@znicholls Some sample metadata to look at

Thanks !
It looks like the problem is that the main variable is not only itself called 'volcello', but has the attribute
volcello:cell_measures = "area: areacello volume: volcello" ;
So, it appears to reference itself as a cell measure variable.
Are you confident this is actually correct, and/or is this a standard gridfile output used by some model ??

There's a discussion about this here: https://github.com/cmip6dr/CMIP6_DataRequest_VariableDefinitions/issues/394

Great thanks Emma that’s perfect. I’m happy to close this then if that
works for you @pp-mo
On Wed, 28 Aug 2019 at 7:26 pm, Emma Hogan<EMAIL_ADDRESS>wrote:

There's a discussion about this here:
cmip6dr/CMIP6_DataRequest_VariableDefinitions#394
https://github.com/cmip6dr/CMIP6_DataRequest_VariableDefinitions/issues/394
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SciTools/iris/issues/3367?email_source=notifications&email_token=AFUH5G6FKBS2VCCRL5KYYWLQGZAC3A5CNFSM4IK5UU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5KPJNI#issuecomment-525661365,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFUH5G3FOHT7EPVB7DQU3DTQGZAC3ANCNFSM4IK5UU3Q
.

@ehogan is it also your understanding that the changes proposed in https://github.com/cmip6dr/CMIP6_DataRequest_VariableDefinitions/issues/394 would not fix the problem identified here?

@znicholls yes, it looks like the volume: volcello will continue to be part of the cell_measures for volcello (for consistency with other variables with this cell volume). It would be great if Iris had the ability to read these files :)

a discussion about this here

Nice spot @ehogan !
Ok, I also chased up the CESM2 downloads from NCAR, from "b.e21.B1850.f09_g17.CMIP6-deforest-globe.001" --> file volcello_Ofx_CESM2_deforest-globe_r1i1p1f1_gn.nc
And it does have this same problem.
It does look like it would be a good idea for Iris to tolerate this quirk, after all.
So I wouldn't close this just yet ...

ok great. @pp-mo I'm happy to do a PR if you can point me to the bit of the code I should look at. My initial hack solution would be to just drop this cell measure if it's a volcello file but maybe you can see a better way.

I'm happy to do a PR if you can point me to the bit of the code I should look at.

Thanks @znicholls !
I've been looking at the code, it's a bit nasty with a lot of boilerplate, due to some difficulties generalising the classification operation in each subclass of iris.fileformats.cf.CfVariable.
For this very limited purpose, though,  I think you can probably just change around this line
Roughly, change if variable_name not in ignore: to
if variable_name not in ignore and variable_name != nc_var_name:
The idea is that a cell_measure reference to a candidate "doesn't count" if it is found on the variable itself.
Well, that's just my hint.  No promise that this works !

Cheers @pp-mo ! Is it possible to get a volcello added to the iris test data or should I write one using netCDF-4 in a test setup instead?

It's up to you really, depending how complicated on-the-fly creation looks.  A "real" file might have more credibility?
To add to iris-test-data ...

try to keep it small-ish
make a separate PR to https://github.com/SciTools/iris-test-data.
add a change to the iris-test-data reference commit SHA in .travis.yml in an Iris PR

I've started working on a fix (using on-the-fly creation first), see #3386 .

try to keep it small-ish

The smallest volcello file I can find in the CMIP6 database is 8Mb. Is that too big?


HAWQ-1135. MADlib: Raising exception leads to database connection ter…

…mination.
To solve this bug, we remove AtSubAbort_ActiveQueryResource() when subtransaction abort.
In sub transaction, ActiveQueryResource should not be set NULL.
Sub transaction inherits resource from parent.
Parent transaction may still use ActiveQueryResource to reference the original resource.

🍻

Nice fix, Hubert! Is it possible to simplify the reproduction case and make it MADlib independent so that this scenario can be added to hawq regression test?

+1


[Map] DM-Awoken

The author of this map is Zanieon. More info about the map can be found on it's ModDB page

URL: https://unrealarchive.org/maps/unreal-tournament-3/deathmatch/A/dm-awoken_7cce285e.html
Hash: 7cce285ee5a902332a5b38084f408c15ac04f3a1
Current name: DM-Awoken

Updated author and added the ModDB link


Pass -enable-builtin-module by default for stdilb modules

This passes -enable-builtin-module by default for all stdlib modules as well as removes -parse-stdlib from everything but the actual stdlib module. This allows those modules to 1. implicitly import Swift like regular Swift code and 2. explicitly pass import Builtin where needed in the file. In addition to these changes, also explicitly add import Builtin to the stdlib files that use Builtin (we are NOT removing -parse-stdlib from the actually stdlib module).

@swift-ci please test

I think the only place we add -parse-stdlib now is Swift and SwiftOnoneSupport (I don't want to touch the latter in fear that it's relying on one of the weird quirks that come with -parse-stdlib).

I think the only place we add -parse-stdlib now is Swift and SwiftOnoneSupport (I don't want to touch the latter in fear that it's relying on one of the weird quirks that come with -parse-stdlib).

$ git grep -- -parse-stdlib stdlib
stdlib/cmake/modules/SwiftSource.cmake:        "-nostdimport" "-parse-stdlib" "-module-name" "Swift")
stdlib/private/SwiftPrivate/CMakeLists.txt:    "-parse-stdlib"
stdlib/public/BackDeployConcurrency/CMakeLists.txt:    -parse-stdlib
stdlib/public/Concurrency/CMakeLists.txt:    -parse-stdlib
stdlib/public/Differentiation/CMakeLists.txt:    -parse-stdlib
stdlib/public/Distributed/CMakeLists.txt:    -parse-stdlib
stdlib/public/Reflection/Sources/Reflection/CMakeLists.txt:  "-parse-stdlib")
stdlib/public/Reflection/Sources/_Runtime/CMakeLists.txt:  "-parse-stdlib")
stdlib/public/SwiftOnoneSupport/CMakeLists.txt:  SWIFT_COMPILE_FLAGS "-parse-stdlib" "-Xllvm" "-sil-inline-generics=false" "-Xfrontend" "-validate-tbd-against-ir=none" "-Xfrontend" "-check-onone-completeness" "-Xfrontend" "-disable-access-control" "${SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS}" "${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}"

I don't see the changes to e.g. SwiftPrivate/CMakeLists.txt.

I'm not even sure why SwiftPrivate was using it in the first place, wasn't using Builtin... removed!

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please clean test

@swift-ci please test

@swift-ci please test Linux

@swift-ci please test macOS

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

Should this be closed? Seems rather inactive

I would still like to land this, just been busy recently 😅


Add reset util to useList

useMap has a reset callback that resets the state to its initial value which I was missing in useList so I added it here. I also added tests and updated the docs and story.
I also added memoization of the callback utils and aded tests for this.
Last but not least I was thinking about removing clear because you mostly need to be able to clear the array when you're starting with an empty array in the first place. The reset callback proposed here results in the same behaviour as it resets to the initial (default) value []. I haven't implemented it as I wanted to know what others think

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[Feat] Creating a like icon for the blog post .

Description
Add a "like" icon (thumbs up) to the blog post.
Icon should be clickable and Include a counter next to the icon to display the number of likes.
Screenshots

Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I'm a GSSoC'24-Extd contributor
[X] I'm a Hacktoberfest'24 contributor
[X] I am willing to work on this issue (optional)

@mdazfar2  please assign this issue to me under gssoc-extd  and hacktoberfest label

hey @RabdeepKaur As of now, we do not need it. We will let you know in the future if there is a need. Please search for another issue and raise it, which I'm happy to assign to you.


Feature flagging the parser?

I need to do pragma-flagging with a Nom parser like Alex and Happy do in GHC:
Cf.
https://github.com/ghc/ghc/blob/master/compiler/parser/Lexer.x#L244
https://github.com/ghc/ghc/blob/master/compiler/parser/Lexer.x#L405
Could you please point me in the right direction for doing this?

hello, the cond combinator should help for this


Problems in .py file do not disappear when closing a file which is checked into source control

From @jan11011977 on June 29, 2018 8:52
Issue Type: Bug
If you open a file, and then close it again, the problems for that file stay in the Problems window. Over time the number of problems in the list grows, eventually causing me to have to restart Visual Studio Code just to clear the list.
I am using the Python extension, but this is also happening for the Go extension, for Javascript, etc. So it's not specific to a particular plugin. It's a problem with VSCode itself.
The behaviour I expect would be that problems generated by a Task hang around permanently, but that problems generated when opening a file will disappear again when that file is closed.
This issue has been reported numerous times before:
https://github.com/Microsoft/vscode/issues/29169
https://github.com/Microsoft/vscode/issues/15524
https://github.com/Microsoft/vscode-go/issues/1036
https://github.com/trixnz/vscode-lua/issues/32
https://github.com/Microsoft/vscode/issues/52348
https://github.com/Microsoft/vscode/issues/23010
https://github.com/Microsoft/vscode/issues/50448
https://github.com/angular/vscode-ng-language-service/issues/185
Pretty much all of these have been closed for one reason or another, without a fix,. This is still clearly a serious usability problem for a lot of people, so I am opening another bug for it. I am hoping this will draw attention to underlying problem.
Thanks!
VS Code version: Code 1.23.1 (d0182c3417d225529c6d5ad24b7572815d0de9ac, 2018-05-10T17:11:17.614Z)
OS version: Windows_NT x64 10.0.17134

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2712)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: unavailable_softwarevideo_decode: enabledvideo_encode: enabledvpx_decode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
15.90GB (9.07GB free)

Process Argv
C:\Program Files\Microsoft VS Code\Code.exe

Screen Reader
no

VM
0%

Extensions (3)

Extension
Author (truncated)
Version

python
ms-
2018.6.0

jinjahtml
sam
0.3.0

perforce
sle
3.1.0

Copied from original issue: Microsoft/vscode#53310

@jan11011977 problems are owned by the extension that generate them and hence an extension is responsible for cleaning them up. In addition as outlined in #52348 it depends on the language whether problems should be cleared on file closed or not. In general the VS Code recommendation for languages extensions ares:

if it is a single file language (like html) then problems should be clear if a file is closed
if it is a project language (there is a project file and usually there are inter file dependencies) problems shouldn't be cleared when a file closes.

It sounds like you are seeing this independent of the language used (e.g. even for HTML). Could you provide me with a reproducible test case best a GitHub repository to clone. This would ease to understand why the problem always stay for you.

From @vscodebot[bot] on June 29, 2018 8:53
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

Clear problems using a task (#50448)

From @jan11011977 on July 2, 2018 10:50
Thanks for the reply. I am using Python and Perforce for version control. It looks like for a python file (unlike, say Javascript), the problems do get cleared from the list when the file is closed. However there seems to be a bug where if a .py file is checked into Perforce, the problems for it stay around after closing it. If the file isn't checked into Perforce, then the problems do disappear.
repro.zip
I have attached a .zip file to help reproduce the problem:

unzip the contents of this zip file to c:\temp\
Run c:\temp\p4_server\p4d.exe - this will start the Perforce server
Start VSCode and open the 'vscode_repro' folder in it.
Install the recommended plugins. The Perforce plugin should connect to the local Perforce server (see P4 indicator in the bottom left)
Open test.py
Close test.py
Note how the problems for test.py are still displayed even though test.py was closed.

(note: you will need install Python + Pylint manually, they were too big to fit in the .zip file)

Hi @dbaeumer, thanks for the report!
One thing stands out to me:

...if a .py file is checked into Perforce, the problems for it stay around...

and:

perforce | sle | 3.1.0

Could you please try uninstalling/disabling the Perforce extension and reproduce the issue?

@d3r3kk the report came originally from @jan11011977 I moved it here. As @jan11011977 pointed out the problems do not stay if the file is not checked into Perforce. So disabling it will very likely not reproduce it anymore. @d3r3kk were you able to reproduce it?

@d3r3kk the zip even containes the perforce server. No need to install anything :-) besides some Python tools

Ok, this turns out to have nothing at all to do with the perforce extension. I can reproduce it simply by enabling the Python Language Server.
Reproduction steps:

Open VSCode in a new workspace.
Enable jedi in the user settings (Ctrl+, to open settings, search for jedi, check the box to enable it). Reload as necessary.
Create a single file called test.py.
Add the text this is a test to the file and save it.
Open the interactive terminal and switch to the Problems pane, notice that the line:
"E0001:invalid syntax (<string>, line 1)"
appears in the list.
Close the test.py file. Notice that the Problems pane clears of any problem reports.
Switch to the Python Language Server by disabling jedi (Ctrl+, to open settings, search for jedi, uncheck the box to disable it). Reload as necessary.
Open the test.py file, note that in the problems pane the following two lines appear:
[pylint] E0001:invalid syntax (<string>, line 1)
[Python (parser)] unexpected token 'test'
Close the test.py file.

Expected result
No problems will be reported in the problems pane.
Observed result
The problem:
[Python (parser)] unexpected token 'test'
remains reported in the problems pane even if the file is closed.

cc: @DonJayamanne, @brettcannon, @ericsnowcurrently: I'm set up for anything to do with Perforce now, should there be a need for it.

Closing in favor of #2290
@d3r3kk thanks for clarifying the issue


Sync with upstream main branch

This is an automatically generated pull request to merge changes from the upstream main branch.

It looks like https://github.com/dotnet/runtime/pull/63482 introduced an issue. It is being reverted upstream , so we will skip this sync up and try again next weekend.


Add support for mips64le

Replaces/closes #63
Depends on https://github.com/docker-library/official-images/issues/6709 (hardware availability) and https://github.com/docker-library/go-dockerlibrary/pull/24 (inc. the inevitable follow-ups to actually vendor this into bashbrew for tooling updates).

Yes, it works.
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.84-22.fc21.loongson.6.mips64el #1 SMP PREEMPT Sat Jul 13 11:14:48 CST 2019 mips64 mips64 mips64 GNU/Linux
[root@localhost ~]#
[root@localhost ~]# /root/hello
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:

The Docker client contacted the Docker daemon.
The Docker daemon pulled the "hello-world" image from the Docker Hub.
(mips64le)
The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
[root@localhost ~]#


add InputStream#skip(long) because it is flaky

This can be really problematic with FileInputStream as documented in the API:
https://issues.apache.org/jira/browse/IO-203?focusedCommentId=12842641&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12842641


Revert merged imports option which is still unstable

This was introduced in #2707, but causes spurious warnings for those on the
stable toolchain.

@bors-libra r+

:pushpin: Commit 84b5ee5 has been approved by bmwill

:hourglass: Testing commit 84b5ee5a05b3047a0d49f413ad20c6540cbf90e6 with merge ce445b17e1ee99e8d952d21c2b7511f7cd1c88b7...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: bmwill
Pushing ce445b17e1ee99e8d952d21c2b7511f7cd1c88b7 to master...


Default: [object Object] appears after settings

Default: [object Object] appears after settings on each of the CodeMirror settings pages, due to the use of an object to pass the list of settings through the EditorExtensionRegistry.createConfigurableExtension() mechanism.

Caused by upstream behavior. Filed upstream at https://github.com/jupyterlab/jupyterlab/issues/15323.


Export-DbaScript with ScriptBatchTerminator

@caderoux - can you test if this works?
First, I fixed another bug - we shouldn't be using $script as a variable. Second, we were overwriting some settings if ($ScriptingOptionsObject.ScriptBatchTerminator) { so I made it a bit more flexible.
Let me know if this fixes it for you.

LOL, my attempt sucked. i'll try again later.


Cannot install on Xcode 8

When trying to run ClangFormat on Xcode 8 to install the plugin it says:
Message from debugger: cannot attach to process due to System Integrity Protection
It works fine with Xcode 7.3. I don't want to disable SIP just for that but would love to be able to use ClangFormat on Xcode 8.
Any help / workaround? Thanks.
I tried the suggestion from #85 but same error.

I talked to a number of engineers about this while at WWDC last week: there's no path forward for any existing Xcode plugin after Xcode 8 is released. Short of disabling SIP (don't do this), Xcode will not load third party xcplugins anymore.
It might be possible to write a simplified version of Clang Format using the new Source Editor Extension API.

See https://github.com/mapbox/XcodeClangFormat for a version that works in Xcode 8.

@kkaefer Thanks a lot，U are 666 in Chinese.

You can unsign the xcode binary to load the bundles
ref to : https://github.com/XVimProject/XVim/issues/988

Updated docs for Xcode 8: https://github.com/travisjeffery/ClangFormat-Xcode#installation


beets.plugins.{alternative,copyartifacts}: fix evaluation

Motivation for this change
Commit 8c5d37129fc5097d9fb52e95fb07de75392d1c3c apparently did not confirm that all its alterations resulted in evaluatable expressions, meaning that these files became unevaluatable:
error: undefined variable 'lib' at
/var/nixup/nixpkgs/pkgs/tools/audio/beets/plugins/alternatives.nix:22:21

The fix is simply to make sure the required value is available as a function argument.
Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Commit 8c5d371 apparently did not confirm that all its alterations resulted in evaluatable expressions, meaning that these files became unevaluatable

Thats because it is not evaluated by ofborg.

Commit 8c5d371 apparently did not confirm that all its alterations resulted in evaluatable expressions, meaning that these files became unevaluatable

Thats because it is not evaluated by ofborg.

Thats because it is not evaluated by ofborg.

this is a bug in the beets expression: hydra doesn't evaluate or build them and ofborg tries to evaluate everything Hydra does. Please, for the long term sustainability of the project, don't just move past these sorts of issues and help us find systemic fixes.
I think we need in top-level.nix:

beetsPlugins = lib.recurseIntoAttrs beets.plugins;

Thats because it is not evaluated by ofborg.

this is a bug in the beets expression: hydra doesn't evaluate or build them and ofborg tries to evaluate everything Hydra does. Please, for the long term sustainability of the project, don't just move past these sorts of issues and help us find systemic fixes.
I think we need in top-level.nix:

beetsPlugins = lib.recurseIntoAttrs beets.plugins;

@mdorman: Can you please rebase against master? This should also address the suggestions made by @SuperSandro2000.

I think we need in the list of all packages:

beetsPlugins = lib.recurseIntoAttrs beets.plugins;

@grahamc: While it does solve this particular issue, I'd consider this to be a workaround. What would be a reason to re-expose the plugins other than for Hydra or ofborg eval?
Unrelated to that: What about running nix-instantiate --parse on all .nix files via ofborg? While of course, this wouldn't address full evaluation, but it would address issues like the above.


README: update Maieutical Labs url

Codecov Report

Merging #5227 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5227   +/-   ##
=======================================
  Coverage   63.45%   63.45%
=======================================
  Files         261      261
  Lines       19842    19842
  Branches     1998     1998
=======================================
  Hits        12591    12591
  Misses       7242     7242
  Partials        9        9

Continue to review full report at Codecov.

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

Good


Hosted API down

The API for the main site is returning Internal Server Error since quite a few days:
https://api.npms.io/v2/search?from=0&q=react&size=25

Restarted couch, it was 100% locked in CPU.

Wow, that was fast! Thanks a lot!


Scripts for generating interactive spec docs

Adds scripts for traversing the spec types and building HTML documentation
The code for generating the docs still relies on some python 3.12 typing features, so it won't pass pyright checking since it's configured in pyproject.toml to use python 3.8. This can be fixed soon, though
Usage, for now:
cd ./scripts
PYTHONPATH=.. python -m docgen

A million warnings get emmited and the docs are generated at dist/interactive_docs*.html. The warnings are usually stuff we could fix in the spec itself (like missing examples)

Closed in favor of #630, which is inside this repo and therefore can pass the deployment test

Closed in favor of #630, which is in this repo and therefore can pass the deployment test


Steam status api

Hi, how can I use steamstat.us api (undocumented?). It found on this link.
I'm going to do GUI status indicator and dont know how to take the data.
It will be about 1 query/hour.

You can use it for yourself, but no guarantees that it won't break.


Add components/dashboard-extensions documentation

Adds a central place for guidance on Dashboard extensions and their installation
Removes outdated installation of KubeVirt extension from the virtualization doc
Adds Akri extension documentation

Would you mind switching the spelling of art[i|e]facts then merging?


Issue with k8s.io/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro/

This is a Bug Report

Problem:
Proposed Solution:
Page to Update:
https://kubernetes.io/...

Hi Asmatmaker
What issue did you encounter on that page?
/triage needs-information


LocalFileServer does not resolve to fully qualified host

The LocalFileServer.java file starts a web server for serving the storm.yaml file.  This resolves to host to its local hostname.  For our use-case we require the fully qualified hostname including its domain name:
private String getHost() throws Exception {
    final String envHost = System.getenv("MESOS_NIMBUS_HOST");
    if (envHost == null) {
      return InetAddress.getLocalHost().getHostName();
    } else {
      return envHost;
    }
  }

Can getHostName() be changed to getCanonicalHostName()

This was fixed in https://github.com/mesos/storm/pull/20


V-Net not working

Hi,
I think there might be something wrong with the v-net implementation.
When calling custom_unet (on its own) I get something like :
<function keras_unet.models.custom_unet.custom_unet(input_shape,num_class ... ='sigmoid')>
When calling custom_vnet:
<module 'keras_unet.models.custom_vnet' ... custom_vnet.py'>
So the module rather than the function.
Best, Kirsten

Hi @kissievendor
Thanks for reporting this issue. I think this is related to init.py file under keras_unet/models.

It's missing an import statement for custom_vnet

Thanks! Could you push this fix to the package?
Otherwise I can't fix it in my container image.

@kissievendor this should be now fixed from v0.1.2 going forward.
Thanks for your contribution!


Automatic visual PDF testing

I updated run.sh as mentioned in #386 to test if the PDFs are created in the same manner as before.

I decided to use vitest for testing and pdf2json for the snapshot of the PDF files instead.
One of the reasons for that is that it doesn't require the installation of additional native libraries.
Nevertheless, thank you for taking the time to improve this library.


Create price test

Create a module containing precomputed costs of running test functions, and a test suite for regression testing.

This change is

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (1263f51) 67.37% compared to head (c698ff0) 67.37%.

Additional details and impacted files
@@                       Coverage Diff                        @@
##           dori/depend-on-fee-type-in-test    #1174   +/-   ##
================================================================
  Coverage                            67.37%   67.37%
================================================================
  Files                                   52       52
  Lines                                 6740     6740
  Branches                              6740     6740
================================================================
  Hits                                  4541     4541
  Misses                                1783     1783
  Partials                               416      416

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


grid doesn't update unless i reload the web page

here is the sockets.io event handler that renders json returned from server into the columns plugin.
the top two steps render content and metadata into separate  tags, and the data returned is not the same as the data in the #mongo tag (the mongo tag is stale, and the raw incoming json is up to date).
when i reload the web page, the two data visualizations match.
is there another way to refresh columns with a fresh batch of data? or does the grid only update on document.ready() or onLoad()?
Stack trace snippet:
Columns (jquery.columns.js:382)
...
i.onData (index.js:83)
i.onLoad (index.js:83)
hasXDR.e.onreadystatechange (index.js:83)
other than this issue, you've saved me tons of time in my prototyping...
read well and prosper
michael corning

I have done this with:

setInterval(function() {
    $.get('data.json', function(data) {
        $('#mygrid').columns('setMaster', data);
    });
}, 5000);


[WIP] Foundational boilerplate for layer axis labels

Description
I recently started thinking more seriously (again) about layer-specific axis labels. In my mind there are two main approaches to this work.
1.) Add an axis_labels attribute for each layer.
2.) Use xarray for all napari layer data.
This PR lays some initial foundation boilerplate for approach (1) and could be useful for others to work off (@melonora). I also added an example based off an old comment of mine in #906. I also added ViewerModel.axis_labels as a separate attribute to think about that could be without having to think about Dims.axis_labels for now. This PR does not currently do anything with these layer axis labels though - at a minimum we'd want to use them for making correspondences between dimensions of different layers.
Note that I'm not dismissing approach (2), which solves a few hard, important problems for free. My impression is that we're still unsure of all the implications of that approach, but based some recent comments things may have improved recently and it may be worth seriously reconsidering as a larger change of direction.

I pushed this as a draft to napari/napari for visibility, but can move it elsewhere (e.g. my fork) if that's too noisy!

Thanks @andy-sweet! Indeed I would prefer to push on (1) first. It should be reasonable to synchronise with (2) later if done well. (layer.axis_names -> layer.data.dimensions, right?)

Thanks @andy-sweet! I agree to push on (1) first. I think here we should have it the same way as we have napari models being independent of the Vispy backend. In the sense we should be able to switch easily. Then we can hook it up with xarray.

There's still not much here, but I did fix some typing coercion (thanks to @melonora!), also added an example with missing axis labels, where we are using negative numbers as axis labels.
Note that unlike @sofroniewn's example, this doesn't handle mixing layers with and without named axes well. I.e. if you have a bunch of layers with explicitly named axis labels, then add one without, it won't use the existing viewer axis labels to populate the new layer's labels. That behavior relies on going through the viewer (e.g. through add_image) as the Layer class doesn't (and probably shouldn't) have access to all the other layers' axis labels, so would make add_image and the Image initializer more inconsistent.

Note that I'm pushing some rough/experimental code to this branch now. If you want some cleaner foundational basis to start from you can use https://github.com/napari/napari/pull/5688/commits/ceb6958d60977d34ef79e3bb23159839b026e723 as a starting point.

Closing this since its just an early proof of concept that I thought may be helpful to others thinking about this work.


Documentation menu issue

https://www.bourbon.io/docs/latest/#stylelint-disable-order-properties-alphabetical-order-mixin-overflow-wrap-wrap-break-word

Thanks for reporting this issue! All fixed.


Video and Stream buttons having extra padding

Just installed the theme and noticed this one bug where the stream and video buttons are clipping out when in a voice channel.
Image Link

Patched


Long run of "kubectl run" does not refresh IAM token

This is issue more related to kubectl, but it make sense have record here too as it impact EKS.
Related kubectl issue: https://github.com/kubernetes/kubectl/issues/534
Problem is when I'm running container with --stdin=true on EKS cluster for ~20min, container app complete successful, but kubectl return an error:
$ time kubectl run --rm -i sleep --restart=Never --image=ubuntu:precise -- sleep 999
If you don't see a command prompt, try pressing enter.
pod "sleep" deleted
error: You must be logged in to the server (the server has asked for the client to provide credentials (get pods))

real	16m41.928s
user	0m0.332s
sys	0m0.125s

It seems that kubectl run does internally calls get pods and it doesn't refresh IAM token.

#160 should solve this


Single Action Responsibility Controller

Here's a solution proposal for the Single Action Responsibility Controller.
After that we can create such a Routes i.e.:
Route::get('foo', ['uses' => 'FooClass']);
and declare controller class with handle method that is responsible for the action. So we don't need to use __invoke magic method.

is this just for naming consistency? so we can name our method handle instead of __invoke?

@taylorotwell he just wants to be able to name the method handle or __invoke, which does not currently work.
doesn't change any functionality, but stays in line with listener and other namings, and we don't have to hijack the magic method.
personally i could take it or leave it.

@taylorotwell I know that Laravel supports this: Route::get('foo', 'FooController');. What I want to get is to stay straight with the new web convetion ( which is head by Laravel) and have a possibility to declare class as like other system components (Listeners, Comands, Jobs etc.).
So I think that my proposal is more than justified.

... stay straight with the new web convetion ( which is head by Laravel)

What new web convention are you talking about? Have you found someones private blog where they overract to the single-responsibility-principle? You have no links in this issue that explains this new convention. And how can it be headed by Laravel if it isn't already in Laravel?
Give some links, explain this new convention, and explain how this implementation is better than the things we already support.

Also, may I suggest that you do not suddenly provide a PR with "a solution proposal for the Single Action Responsibility Controller", but instead start a discussion in https://github.com/laravel/internals?

@sisve in fact this isn't new convention in Laravel. It already exists in Laravel (as I metioned before). SARC also occurs in the Framework (as Taylor mentioned) but in other way (by a __invoke magic method). My intetion was to show a small improvment (with a PR) and maybe start a discussion about. Well - the word 'new' is a shortcut of some trands that are held.
When developing big project (but not only) - Application design on the basis of individual object liability is commonplace.
I am not going to force this convention but to fine-tune it as an alternative. It works graet with CQRS as well as with MVC.
If you realy need a link here is one:
https://jenssegers.com/85/goodbye-controllers-hello-request-handlers
But it only describs the solution that is already in Laravel.
But as I said before - I do not want to force it so much - when we designe application we should fin d a balnace between conventions.

My thoughts is that you're using a term (Single Action Responsibility Controller) which isn't used by the link. That term isn't used on the web at all, according to Google. . I believe that a proper implementation of request handlers are much larger than this PR, we need to discuss the name, consider documentation, write tests, compare the features to other frameworks to make sure we don't make up something that is totally weird, etc.
The next step would be to discuss it on https://github.com/laravel/internals

@sisve
OK, here is the proposal:
https://github.com/laravel/internals/issues/926
Is it what You expected?


[TH2-5007] Reverted cradle: 5.1.1-dev because 5.1.3-dev can't wor…

…k with pages where removed field is null.

check session alias sessions-5007_1_1 from: 2023-09-15T11:42:59Z end: 2023-09-15T12:15:44Z
Sequences with direction First - size: '1095712'
Sequences with direction Second - size: '1096516'
Sequences all - size: '2193032'
Sequences with direction First - first sequence = '1694778143279023524' last sequence = '1694778143280119235' delta = '1095711'
Sequences with direction Second - first sequence = '1694778143279023615' last sequence = '1694778143280120130' delta = '1096515'
missing sequences for direction FIRST: '0'
missing sequences for direction SECOND: '0'
check session alias sessions-5007_1_2 from: 2023-09-15T11:42:59Z end: 2023-09-15T12:15:44Z
Sequences with direction First - size: '1096611'
Sequences with direction Second - size: '1095661'
Sequences all - size: '2191322'
Sequences with direction First - first sequence = '1694778143279023644' last sequence = '1694778143280120254' delta = '1096610'
Sequences with direction Second - first sequence = '1694778143279023721' last sequence = '1694778143280119381' delta = '1095660'
missing sequences for direction FIRST: '0'
missing sequences for direction SECOND: '0'
check session alias sessions-5007_2_1 from: 2023-09-15T11:42:59Z end: 2023-09-15T12:15:44Z
Sequences with direction First - size: '1109311'
Sequences with direction Second - size: '1109486'
Sequences all - size: '2218972'
Sequences with direction First - first sequence = '1694778143280020907' last sequence = '1694778143281130217' delta = '1109310'
Sequences with direction Second - first sequence = '1694778143280020946' last sequence = '1694778143281130431' delta = '1109485'
missing sequences for direction FIRST: '0'
missing sequences for direction SECOND: '0'
check session alias sessions-5007_2_2 from: 2023-09-15T11:42:59Z end: 2023-09-15T12:15:44Z
Sequences with direction First - size: '1109095'
Sequences with direction Second - size: '1109108'
Sequences all - size: '2218216'
Sequences with direction First - first sequence = '1694778143280021199' last sequence = '1694778143281130293' delta = '1109094'
Sequences with direction Second - first sequence = '1694778143280020952' last sequence = '1694778143281130059' delta = '1109107'
missing sequences for direction FIRST: '0'
missing sequences for direction SECOND: '0'
tested


Add support for Lum-alpha textures to ETC fallback

Addresses reduz' comment in https://github.com/godotengine/godot/pull/34772
I realized detected_channels wasn't working because the texture I was using was pure white so get_detected_channels() was returning DETECTED_LA. Instead of converting to RGBA4444, we now convert LA textures to LA8 which uses the same space as RGBA4444 but looks just as good as RGBA8

Thanks!


Change name of build conventions to avoid matching those used in core…

… libraries
Reviewer checklist

[ ] Read the contributing guide
[ ] PR should be motivated, i.e. what does it fix, why, and if relevant, how
[ ] Ensure relevant issues are linked (description should include text like "Fixes #")
[ ] Ensure any appropriate documentation has been added or amended

Coverage: 96.269%. Remained the same when pulling c05d579e2d715cfef7e8ab5d57088a66a9d384f1 on rename-conventions into 7b35c24f5b61d376790b15391a5588e9e4ad4a0c on main.


[QA] API tests for /app/ endpoints

:exclamation: Pre-requisites:
~- setup collaboration service with Collabora and OnlyOffice~

[x] setup FakeOffice (should be sufficient) #9885

API tests for endpoints:

POST: /app/open?file_id={file_id}

[x] query: app_name=FakeOffice - e.g: /app/open?file_id={file_id}&app_name=FakeOffice
[x] text file https://github.com/owncloud/ocis/pull/9911
[x] .odt file https://github.com/owncloud/ocis/pull/9885
[x] shared .odt file https://github.com/owncloud/ocis/pull/9922
[x] public link .odt file https://github.com/owncloud/ocis/pull/9912
[x] Different &view_mode=[view|read|write] https://github.com/owncloud/ocis/pull/9954

POST: /app/open-with-web?file_id={fileid} @anon-pradip

[x] query: app_name=FakeOffice - e.g: /app/open-with-web?file_id={fileid}&app_name=FakeOffice
[x] text file https://github.com/owncloud/ocis/pull/9939
[x] .odt file https://github.com/owncloud/ocis/pull/9931
[x] shared .odt file https://github.com/owncloud/ocis/pull/9941
[x] public link .odt file https://github.com/owncloud/ocis/pull/9968
[x] Different &view_mode=[view|read|write] https://github.com/owncloud/ocis/pull/9969

POST: /app/new?parent_container_id={parent_folder_id}&filename={filename} @PrajwolAmatya

[x] create text file https://github.com/owncloud/ocis/pull/9960
[x] create .odt file https://github.com/owncloud/ocis/pull/9964
[x] create .odt file in a share received folder https://github.com/owncloud/ocis/pull/9967
[x] create .odt file in public link folder https://github.com/owncloud/ocis/pull/9978
[x] create .odt file in public link space (https://github.com/owncloud/ocis/issues/8691) https://github.com/owncloud/ocis/pull/9983
[x] create .odt file inside deleted parent folder https://github.com/owncloud/ocis/pull/10064

Edge cases:

[x] request /app/open without app_name query for a text file

https://github.com/owncloud/ocis/pull/9911

[x] request with unsupported file format

https://github.com/owncloud/ocis/pull/9945
https://github.com/owncloud/ocis/pull/9984

[x] request with non-existing file-id or deleted file

https://github.com/owncloud/ocis/pull/9953
https://github.com/owncloud/ocis/pull/9985

Bug Reports:

https://github.com/owncloud/ocis/issues/9495
https://github.com/owncloud/ocis/issues/9928

All the test coverage has been covered, so closing this issue as done.


Improve the precision of the return coordinates

I have a problem now, my image pixel is about 2000 * 4000, now want to find a button in the image, I observed now the return accuracy is two decimal points, if directly with the return value times the image width, height, the value and the actual button position will be deviation, is there any way to improve the accuracy of the return value to three decimal places

Hello, we tried to solve the issue.
This is what we did:
Modified the ShowUIImageProcessor class to handle large images with higher precision. Updated the smart_resize function to use float values instead of integers for more accurate scaling. Adjusted the preprocess method to work with these higher precision values.
You can review changes in this commit: https://github.com/wwqwq2313/showlab-ShowUI-23/commit/9edf31881beaa55d4d75b000edc89f9026856727.

[!CAUTION]
Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.

If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

Thanks for replying! I have tried your ShowUIImageProcessor class, it seems to have some errors.
Traceback (most recent call last):
File "/Users/apple/miniconda3/envs/showui/lib/python3.12/site-packages/flask/app.py", line 1536, in call
return self.wsgi_app(environ, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/miniconda3/envs/showui/lib/python3.12/site-packages/flask/app.py", line 1514, in wsgi_app
response = self.handle_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/miniconda3/envs/showui/lib/python3.12/site-packages/flask_cors/extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/miniconda3/envs/showui/lib/python3.12/site-packages/flask/app.py", line 1511, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/miniconda3/envs/showui/lib/python3.12/site-packages/flask/app.py", line 919, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/miniconda3/envs/showui/lib/python3.12/site-packages/flask_cors/extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/miniconda3/envs/showui/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/miniconda3/envs/showui/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/Wei/workbench/autoTest/AppConchAutoTestCV/app.py", line 20, in analyse_page
generated_img_url, coordinate = find_target_point(image_path, query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/Wei/workbench/autoTest/AppConchAutoTestCV/process.py", line 107, in find_target_point
generated_ids = model.generate(**inputs, max_new_tokens=128)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/miniconda3/envs/showui/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/miniconda3/envs/showui/lib/python3.12/site-packages/transformers/generation/utils.py", line 2009, in generate
self._validate_model_kwargs(model_kwargs.copy())
File "/Users/apple/miniconda3/envs/showui/lib/python3.12/site-packages/transformers/generation/utils.py", line 1388, in _validate_model_kwargs
raise ValueError(
ValueError: The following model_kwargs are not used by the model: ['patch_pos', 'patch_assign', 'patch_assign_sep', 'patch_assign_len'] (note: typos in the generate arguments will also show up in this list)

@pickled-pepper-pig Hi, for improve the accuracy, I think one way is using iterative grounding as shown in this gradio demo:
https://huggingface.co/spaces/showlab/ShowUI
You can refer the code here:
https://huggingface.co/spaces/showlab/ShowUI/blob/main/app.py#L93
While for our preprocessor,
can you please first try this, which connect Qwen2-VL weight in ShowUI for token selection
https://github.com/showlab/ShowUI/blob/main/test.ipynb
I am still working with improve and integrate the codes, stay tuned for more updates!


Fix strings in bash

In bash, we don't properly support strings. For example:
commit_message="$(git log -1 --pretty=format:"%s" HEAD)"

This is actually two nested strings: "$(git log -1 --pretty=format:"%s" HEAD)" and "%s". We should figure out how to make this work, probably using the parse tree, and/or some flavour of https://github.com/cursorless-dev/cursorless/issues/1812#issuecomment-1691493746

@AndreasArvidsson fyi this doesn't work either on today's main or on https://github.com/cursorless-dev/cursorless/pull/2457

This is one of those things we probably need to use the parse tree
(program
  (variable_assignment
    name: (variable_name)
    "="
    value: (string
      """
      (command_substitution
        "$("
        (command
          name: (command_name
            (word)
          )
          argument: (word)
          argument: (number)
          argument: (concatenation
            (word)
            (string
              """
              (string_content)
              """
            )
          )
          argument: (word)
        )
        ")"
      )
      """
    )
  )
)

I think we could just use parse tree to tell us if it's opening or closing?

Text fragment thing will get in the way a bit tho I fear as well treat the string as a fragment