Allow compilation to JavaScript via emscripten

Currently the emscripten JavaScript environment for C/C++ programs
cannot do multithreading, and doesn't have a sysctl implementation
to get hardware CPU count. Hardcode to 1.
Added platform file with Linux-like properties.
To build with emscripten (tested 1.30.0):
emmake make OS=emscripten ARCH=asmjs
The resulting libopenh264.so is LLVM bitcode which can be further
linked into an emscripten project for final JavaScript output.

@ethanhugg

quite curious how the performance will be with the JavaScript version. There was some attempts we made with this direction, but the performance reports were not attractive.

I haven't benchmarked it yet, but if it's comparable to libvpx for VP8 it should achieve acceptable playback at SD resolutions on reasonably fast computers with current-version browsers. I get much better performance on Ogg Theora, which is an older-generation codec.
See demos of Ogg and WebM JS playback; I haven't finished the MP4 bits yet but have confirmed emscripten'd OpenH264 decoding in isolation is working via some crazy Mozilla patches.
Making use of SIMD extensions for JavaScript should help both libvpx and OpenH264, but that's still experimental in the browsers and will take some fiddling with vector intrinsics on the C/C++ side.
(Most browsers support MP4/H.264 via system, hardware, or bundled codecs these days so I'm actually most interested in JavaScript OpenH264 for encoding in browser-side tasks such as animation widgets.)

The change looks acceptable, but just out of curiosity - is there anything that strictly needs to be different from the linux makefile? I.e., would an emmake make OS=linux ARCH=asmjs right now work as well, or does it fail due to -lpthread or -fPIC? You might be interested in adding -MMD -MP as well to get dependency generation/tracking (if that makes sense at all for emscripten builds - I'm not familiar with it).

Confirmed the Linux platform settings seem to work without exploding; dropping the extra platform file and cutting the patch down to just the thread count fallback. :)

Thanks! You probably want to update the commit message at the same time though :-)

This looks fine.  Glad to hear it works.


DPL-746 - As a user I need to be able to add samples to 2 plates when I am creating a run for SMRT Link 12 for Revio

User story
As a user I need to be able to add samples to 2 plates when I am creating a run for SMRT Link 12 for Revio
Who are the primary contacts for this story
James / Craig / Steve
Who is the nominated tester for UAT
James / Craig
Acceptance criteria
To be considered successful the solution must allow:

[ ] When I select SMRT Link 11 I will be able to add samples to a single plate in any well
[ ] When I select SMRT Link 12 for Revio I will be able to add samples to 2 plates in selected wells

Dependencies
This story is blocked by the following dependencies:

#1133

References
This story has a non-blocking relationship with:

#1132

Additional context
Add any other context or screenshots about the feature request here.

Tasks

Change the VueX store to look like the below, and get the current implementation working

{
  "state":{
    "run":{
      "plates":[
        {
          plate_attr_1: "",
          "wells": {
            "pools": {}
          }
        },
        {
          plate_attr_1: "",
          "wells": {
            "pools": {}
          }
        }
      ]
    }
  }
}

src/store/traction/pacbio/runCreate/actions.js

fetchRun in include plate in request, and commit 'populateRun'
saveRun just include run (which should include the plate/wells)
getOrCreateWell gets wells from run.plate not wells

src/store/traction/pacbio/runCreate/getters

pools ??
getWell

src/store/traction/pacbio/runCreate/mutations

populateRun
populatePools
setPools
removePool
updateWell
deleteWell

src/store/traction/pacbio/runCreate/run.js

Dependencies
Traction Service branch: 976-dpl-740-modify-the-pacbio-run-to-have-more-than-one-plate-for-multi-plate-support
https://github.com/sanger/traction-service/pull/1019


no model named second

python create_data.py create_kitti_info_file --data_path=CLOCs/KITTI_DATASET
Traceback (most recent call last):
File "create_data.py", line 11, in
from second.core import box_np_ops
ModuleNotFoundError: No module named 'second'
i met this error before and dont know how to slove

Hello, how did you solve this error?

我之前使用3060ti和cuda11.3，出现了这个问题，查阅了一些博客之后，我租了1080ti和使用cuda9.2在autodl，问题得到解决。

Hello, how did you solve this error?

I was using 3060ti and cuda11.3 and had this problem, after checking some blogs I rented 1080ti and used cuda9.2 in autodl and the problem was resolved.


Installing LuckPerms stops my MOTD showing

Hi, recently I started a new server on Shockbyte and I used the Sponge version (ore) of LuckPerms.
Before installing it my MOTD was working right, but now it has dissapeared. I'm using Nucleus to run my server.
Any help?

You are most likely missing a permission node. Depending on the plugin you use to show MOTD, you need to set the perm node accordingly.
LuckPerms provides a verbose command to help you find out what permissions a command/plugin is checking: https://github.com/lucko/LuckPerms/wiki/Verbose
Nuleus perm node list: https://nucleuspowered.org/docs/permissions.html
Also note that OP will be disabled when a permission plugin like luckperm is installed on a forge server, its just how a forge server works. So you will have to use LP to set permissions for all relevant commands.

Just to add-on about sponge forge disabling OP: https://github.com/lucko/LuckPerms/wiki/FAQ#i-use-spongeforge-and-when-i-install-luckperms-i-lose-all-my-permissions-why

Fixed ! Thank you very much.


storm-hbase

Hi, I study Storm HBase.
I want to run your example Persistent Word Count
My actions

MVN compile - ok!
2 When you run mvn exec: java -Dstorm.topology = org.apache.storm.hbase.topology.PersistentWordCount
I receive an error
[ERROR] Failed to execute goal org.codehaus.mojo: exec-maven-plugin: 1.4.0: java (default-cli) on project storm-hbase: The parameters 'mainClass' for goal org.codehaus.mojo: exec- maven-plugin: 1.4.0: java are missing or invalid -> [Help 1]

Tell me, please, what am I doing wrong?
Vladimir

Thank problem was solved.

Hi VladimirVV , I am getting same error. how did you solve this issue?

Hi VladimirVV, I am getting the same error, Can please tell us how did you solve it.

VladimirVV, bad boy... you could, at least, post again and admit to the world you got lucky and have no idea how you fixed it.
For everyone else, try making sure you have Java 7 JDK installed, and ensure JAVA_HOME is set properly, and ensure the Java 7 JDK is used for the javac and java commands.
Once I set all the java stuff to use Java 7 JDK, this issue went away.
I used oracle java, your mileage may vary.
Good luck!


QuickJS modules are uninitialized.

QuickJS exposes std and os modules to the JS. These appear to be uninitialized in Sciter.JS. This might not be a problem for the most part because the Sciter.JS API has some of the same functionality through @sys, except an important part of the original QuickJS API is missing. Namely the ability to load external script files and execute them in a different context, eval JS from within JS,  and execute JS scripts in a worker thread.
Reproduce:
Create a basic Sciter.JS native project using the template.
Create a JS module which will import * as std from 'std'
Add the JS module to your entry html page.
Build, and run the project.
std is an empty object.

Please check this discussion: https://sciter.com/forums/topic/quickjs-std-module/


Add more APIs in storage sdk

Service Client

List Containers
Get User Delegation Key

Blob Client

Set Access Tier
Copy From Uri
Abort Copy From Uri
Create Snapshot
Undelete

Block Blob Client

Stage Block From Uri

Append Blob Client

Create
AppendBlock

Page Blob Client

Create
UploadPages
UploadPagesFromUri
ClearPages
Resize
GetPageRanges
StartCopyIncremental

Other

Rewrite xml serializer/deserializer in auto-generated rest client
Support for conditional headers(If-Modified-Since, If-Unmodified-Since, If-Match, If-None-Match)

            && path[1] == XmlTagName::k_Containers && path[2] == XmlTagName::k_Container)

I think deeply nested if statements are more readable than this.

Refers to: sdk/storage/inc/blobs/internal/protocol/blob_rest_client.hpp:1212 in 78647d0. [](commit_id = 78647d089befdb8306de1f0f90fac3ac3a1e4d3c, deletion_comment = False)

    return ret;

This does not except on partial xml body right? Is there a content-length/body length mismatch check then?

Refers to: sdk/storage/inc/blobs/internal/protocol/blob_rest_client.hpp:1253 in 78647d0. [](commit_id = 78647d089befdb8306de1f0f90fac3ac3a1e4d3c, deletion_comment = False)

            && path[1] == XmlTagName::k_Containers && path[2] == XmlTagName::k_Container)

I think deeply nested if statements are more readable than this.
Refers to: sdk/storage/inc/blobs/internal/protocol/blob_rest_client.hpp:1212 in 78647d0. [](commit_id = 78647d0, deletion_comment = False)

Yes, but it's harder to auto-generate

#include "blob_client_options.hpp"

This file should be named blob_options.hpp given that all blob options are in one files now.

Refers to: sdk/storage/inc/blobs/blob_client.hpp:6 in 78647d0. [](commit_id = 78647d089befdb8306de1f0f90fac3ac3a1e4d3c, deletion_comment = False)

@gilbertw , this PR seems does not involve your team for review by default, it could because the changes happened to storage folder only. Do you want to add your team to the default reviewer even the change is storage files only?
Meanwhile, we will keep this PR open for one more day in casa any comments you want to put.

@vinjiang It doesn't include us because of code ownership.  I've added my team to the Storage folders code owner so that we get notified for future PRs.  Thank you for bringing this to my attention


No chart data w/ Poloniex

With GDAX, i get chart data as soon as a sensible amount of data has been backfilled, but with Poloniex, i always get "No data :(" no matter what i do.
Any ideas on what is going on?
The relevant part of my config.js looks like this:
c.assets = [
  "BTC",
  "USDT",
  "ETH"
]
c.currencies = [
  "USDT",
  "BTC",
  "ETH"
]

// selector for indicators, trading, etc
c.default_selector = "poloniex.BTC-ETH"

// add selectors in the format "{exchange-slug}.{asset}-{currency}" to graph them
c.graph_selectors = [
  c.default_selector,
  "poloniex.USDT-ETH",
  "poloniex.USDT-BTC"
]

I'm running the backfill via ./zenbot launch map --backfill.

Nevermind, looks like poloniex support that is currently in master is completely broken.


Problems with ESP12F

Thanks for this nice library. I’ve tried it on ESP32 and it works well. But with ESP12F (ESP8266) it’s not working. No idea if where is the problem.

i've tried it on the ESP8266 as well, but it doesn't work there, no clue why

i've tried it on the ESP8266 as well, but it doesn't work there, no clue why

Can you provide a sample app that's not working if it produces any relevant error message?
Thanks,

Can you provide a sample app that's not working if it produces any relevant error message?
Thanks,

Hi,
Nice Library :-)
I also have tested your library in a ESP8266 (Wemos Lolin D1 Mini Pro) and unfortunately it does not work. However I have seen in your utelegram.py you are using the urequests and I suppose it has to do with following error from the urequests together with the telegram API. This error can be replicated with following code:
import urequests

def do_connect():
    import network
    wlan = network.WLAN(network.STA_IF)
    wlan.active(True)
    if not wlan.isconnected():
        print('connecting to network...')
        wlan.connect('SSID', 'WIFI_PASSWORD')
        while not wlan.isconnected():
            pass
    print('network config:', wlan.ifconfig())

do_connect()

msg = "Testmessage"
token = "XXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
user_id = "XXXXXXXXXX"
urequests.get(f'https://api.telegram.org/bot{token}/sendMessage?text={msg}&chat_id={user_id}')

And returns following error:
Traceback (most recent call last):
  File "main.py", line 20, in <module>
  File "urequests.py", line 162, in get
  File "urequests.py", line 104, in request
OSError: -40
MicroPython v1.13 on 2020-09-11; ESP module with ESP8266

I have tried to find a solution but I have no clue....
Unfortunately I have no ESP32 on hand to try your code so I suppose this urequests error is only appearing on ESP8622 with the Telegram API, because using urequests.get("https://www.google.com") gets a valid reply...
Maybe this helps with solving the error.
Cheers:)

Hi,
Nice Library :-)
I also have tested your library in a ESP8266 (Wemos Lolin D1 Mini Pro) and unfortunately it does not work. However I have seen in your utelegram.py you are using the urequests and I suppose it has to do with following error from the urequests together with the telegram API. This error can be replicated with following code:
import urequests

def do_connect():
    import network
    wlan = network.WLAN(network.STA_IF)
    wlan.active(True)
    if not wlan.isconnected():
        print('connecting to network...')
        wlan.connect('SSID', 'WIFI_PASSWORD')
        while not wlan.isconnected():
            pass
    print('network config:', wlan.ifconfig())

do_connect()

msg = "Testmessage"
token = "XXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
user_id = "XXXXXXXXXX"
urequests.get(f'https://api.telegram.org/bot{token}/sendMessage?text={msg}&chat_id={user_id}')

And returns following error:
Traceback (most recent call last):
  File "main.py", line 20, in <module>
  File "urequests.py", line 162, in get
  File "urequests.py", line 104, in request
OSError: -40
MicroPython v1.13 on 2020-09-11; ESP module with ESP8266

I have tried to find a solution but I have no clue....
Unfortunately I have no ESP32 on hand to try your code so I suppose this urequests error is only appearing on ESP8622 with the Telegram API, because using urequests.get("https://www.google.com") gets a valid reply...
Maybe this helps with solving the error.
Cheers:)

Hi,
With the latest merge we are explicitly freeing the urequests objects once they are no longer needed. I believe this could have been your issue. Could you please give it a try?

OSError: -40 on ESP 8266 (ESP01).
very strange to work on esp32 and not on esp8266

OSError: -40 on ESP 8266 (ESP01). very strange to work on esp32 and not on esp8266

This might be related to a ESP8266 specific TLS problem other urequests users (like me) encounter
https://github.com/micropython/micropython/issues/3198#issuecomment-313856270
https://github.com/micropython/micropython-lib/issues/400#issuecomment-843416279


Error calling 'infix': symbol weather not found

I just installed zygo v5.0.1 on my Mac (macOS 10.14.1), and when I try the example I found in the wiki
(def sn (snoopy asst: (hornet forecast: (weather desc:"sunny"))))

then I get
error in evalGeneratedFunction:4: Error calling 'infix': symbol `weather` not found
in infix:0
in __main:22

What may be the problem here?

Yeah. Sorry this isn't clearer. It's perfectly natural to wonder why this would work at all. After all. Without a defmap or registration of a Go struct, none of the snoopy, hornet, or weather calls should work.  Nobody has defined those functions.
So what is going on. Well, there is a special flag for demo and testing purposes.
https://github.com/glycerine/zygomys/blob/master/zygo/cfg.go#L43
So the trick is, starting zygo with zygo -demo will register those functions, letting the example function.


Datadog-agent does not forward metrics to own statsd server

Output of the info page (if this is a bug)
Getting the status from the agent.

==============
Agent (v6.4.2)
==============

  Status date: 2018-09-24 11:59:30.052389 UTC
  Pid: 337
  Python Version: 2.7.15
  Logs:
  Check Runners: 2
  Log Level: DEBUG

  Paths
  =====
    Config File: /etc/datadog-agent/datadog.yaml
    conf.d: /etc/datadog-agent/conf.d
    checks.d: /etc/datadog-agent/checks.d

  Clocks
  ======
    NTP offset: -0.002020282 s
    System UTC time: 2018-09-24 11:59:30.052389 UTC

  Host Info
  =========
    bootTime: 2018-09-21 20:00:34.000000 UTC
    kernelVersion: 4.14.62-70.117.amzn2.x86_64
    os: linux
    platform: debian
    platformFamily: debian
    platformVersion: buster/sid
    procs: 71
    uptime: 227959
    virtualizationRole: guest
    virtualizationSystem: xen

  Hostnames
  =========
    ec2-hostname: REDACTED.us-west-2.compute.internal
    host_aliases: [REDACTED.us-west-2.compute.internal]
    hostname: i-0c622fc943984bc6e
    instance-id: i-0c622fc943984bc6e
    socket-fqdn: REDACTED.us-west-2.compute.internal.
    socket-hostname: REDACTED.us-west-2.compute.internal

=========
Collector
=========

  Running Checks
  ==============
    cpu
    ---
      Total Runs: 158
      Metric Samples: 6, Total: 942
      Events: 0, Total: 0
      Service Checks: 0, Total: 0
      Average Execution Time : 0ms

    disk (1.2.0)
    ------------
      Total Runs: 158
      Metric Samples: 130, Total: 20540
      Events: 0, Total: 0
      Service Checks: 0, Total: 0
      Average Execution Time : 1180ms

    docker
    ------
      Total Runs: 158
      Metric Samples: 228, Total: 36024
      Events: 0, Total: 3
      Service Checks: 1, Total: 158
      Average Execution Time : 141ms

    file_handle
    -----------
      Total Runs: 158
      Metric Samples: 1, Total: 158
      Events: 0, Total: 0
      Service Checks: 0, Total: 0
      Average Execution Time : 0ms

    io
    --
      Total Runs: 158
      Metric Samples: 26, Total: 4090
      Events: 0, Total: 0
      Service Checks: 0, Total: 0
      Average Execution Time : 0ms

    kubelet (1.4.0)
    ---------------
      Total Runs: 158
      Metric Samples: 116, Total: 18321
      Events: 0, Total: 0
      Service Checks: 3, Total: 474
      Average Execution Time : 912ms

    load
    ----
      Total Runs: 158
      Metric Samples: 6, Total: 948
      Events: 0, Total: 0
      Service Checks: 0, Total: 0
      Average Execution Time : 0ms

    memory
    ------
      Total Runs: 158
      Metric Samples: 17, Total: 2686
      Events: 0, Total: 0
      Service Checks: 0, Total: 0
      Average Execution Time : 5ms

    network (1.6.0)
    ---------------
      Total Runs: 158
      Metric Samples: 32, Total: 5056
      Events: 0, Total: 0
      Service Checks: 0, Total: 0
      Average Execution Time : 11ms

    ntp
    ---
      Total Runs: 158
      Metric Samples: 1, Total: 158
      Events: 0, Total: 0
      Service Checks: 1, Total: 158
      Average Execution Time : 0ms

    uptime
    ------
      Total Runs: 158
      Metric Samples: 1, Total: 158
      Events: 0, Total: 0
      Service Checks: 0, Total: 0
      Average Execution Time : 0ms

========
JMXFetch
========

  Initialized checks
  ==================
    no checks

  Failed checks
  =============
    no checks

=========
Forwarder
=========

  CheckRunsV1: 158
  Dropped: 0
  DroppedOnInput: 0
  Errors: 0
  Events: 0
  HostMetadata: 0
  IntakeV1: 14
  Metadata: 0
  Requeued: 0
  Retried: 0
  RetryQueueSize: 0
  Series: 0
  ServiceChecks: 0
  SketchSeries: 0
  Success: 330
  TimeseriesV1: 158

  API Keys status
  ===============
    https://6-4-2-app.agent.datadoghq.com,*************************624b7: API Key valid

==========
Logs Agent
==========

  Logs Agent is not running

=========
DogStatsD
=========

  Checks Metric Sample: 92246
  Event: 4
  Events Flushed: 4
  Number Of Flushes: 158
  Series Flushed: 73253
  Service Check: 2373
  Dogstatsd Metric Sample: 396

Describe what happened:
I have an EKS cluster which runs the datadog-agent:v6.x to report on custom metrics from my application. I am able to see the custom metric on my dashboard which is fowarded by the datadog agent (i verified using tcpdump on the port 8125 that the agent recieves this metric)
I want to also export this metric to prometheus, so i deployed the statsd_exporter as a daemonset on the cluster to convert the statsd style metrics to prometheus.
From looking at the documentation
(https://github.com/DataDog/datadog-agent/blob/master/pkg/config/config_template.yaml#L250-L256 )
I enabled the two variables by passing in the env variables to the datadog-agent.
        - name: DD_STATSD_FORWARD_HOST
          value: <IP_ADDRESS> (clusterIP of the statsd_exporter daemonset)
        - name: DD_STATSD_FORWARD_PORT
          value: "9125"

But, i am unable to see any metrics forwarded to the exporter. It looks like the datadog-agent is not forwarding the metrics to the statsd_exporter
I have verified by pointing my application to the statsd_exporter and it works by transforming the statsd metrics into the prometheus style.
Here is the daemonset spec for the datadog agent.
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  creationTimestamp: 2018-09-23T06:45:01Z
  generation: 1
  labels:
    app: ddog-datadog
    chart: datadog-1.0.0
    heritage: Tiller
    release: ddog
  name: ddog-datadog
  namespace: default
spec:
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: ddog-datadog
  template:
    metadata:
      labels:
        app: ddog-datadog
      name: ddog-datadog
    spec:
      containers:
      - env:
        - name: DD_API_KEY
          valueFrom:
            secretKeyRef:
              key: api-key
              name: ddog-datadog
        - name: DD_LOG_LEVEL
          value: DEBUG
        - name: KUBERNETES
          value: "yes"
        - name: DD_KUBERNETES_KUBELET_HOST
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: status.hostIP
        - name: DD_USE_DOGSTATSD
          value: "true"
        - name: DD_DOGSTATSD_PORT
          value: "8125"
        - name: DD_DOGSTATSD_NON_LOCAL_TRAFFIC
          value: "true"
        - name: DD_STATSD_FORWARD_HOST
          value: <IP_ADDRESS>
        - name: DD_STATSD_FORWARD_PORT
          value: "9125"
        image: datadog/agent:6.4.2
        imagePullPolicy: IfNotPresent
        livenessProbe:
          exec:
            command:
            - ./probe.sh
          failureThreshold: 3
          initialDelaySeconds: 15
          periodSeconds: 5
          successThreshold: 1
          timeoutSeconds: 1
        name: datadog
        ports:
        - containerPort: 8125
          hostPort: 8125
          name: dogstatsdport
          protocol: UDP
        resources:
          limits:
            cpu: 200m
            memory: 256Mi
          requests:
            cpu: 200m
            memory: 256Mi
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /var/run/docker.sock
          name: dockersocket
          readOnly: true
        - mountPath: /host/proc
          name: procdir
          readOnly: true
        - mountPath: /host/sys/fs/cgroup
          name: cgroups
          readOnly: true
      dnsPolicy: ClusterFirst
      hostNetwork: true
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: ddog-datadog
      serviceAccountName: ddog-datadog
      terminationGracePeriodSeconds: 30
      volumes:
      - hostPath:
          path: /var/run/docker.sock
          type: ""
        name: dockersocket
      - hostPath:
          path: /proc
          type: ""
        name: procdir
      - hostPath:
          path: /sys/fs/cgroup
          type: ""
        name: cgroups
  templateGeneration: 1
  updateStrategy:
    type: OnDelete

Here is the daemonset spec for the statsd_exporter
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  generation: 2
  labels:
    app: statsd-exporter
    chart: statsd-exporter-0.1.0
    heritage: Tiller
    release: one
  name: one-statsd-exporter
  namespace: default
spec:
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: statsd-exporter
      release: one
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: statsd-exporter
        release: one
    spec:
      containers:
      - image: docker.io/prom/statsd-exporter:v0.7.0
        args:
          - "--statsd.listen-tcp=:9125"
          - "--statsd.listen-udp=:9125"
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: prom-tcp
            scheme: HTTP
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        name: statsd-exporter
        ports:
        - containerPort: 9125
          name: statsd-udp
          protocol: UDP
        - containerPort: 9102
          name: prom-tcp
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: prom-tcp
            scheme: HTTP
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
  templateGeneration: 2
  updateStrategy:
    rollingUpdate:
      maxUnavailable: 1
    type: RollingUpdate

Describe what you expected:
The datadog-agent should forward the metrics to my own statsd server (statsd_exporter in this case) which it does not do.
Steps to reproduce the issue:
Apply the specs provided in the ticket.
Additional environment details (Operating System, Cloud provider, etc):
AWS EKS cluster.

Also
$ tcpdump -n udp dst port 9125

Does not capture any packets when ran in the agent pod

statsd_forward_host: "<IP_ADDRESS>"
statsd_forward_port: 9125

Setting these parameters in /etc/datadog-agent/datadog.yaml makes DataDog forward the stats to statsd_exporter

The environment variables were used following this documentation.
https://github.com/DataDog/datadog-agent/blob/master/docs/agent/config.md#environment-variables

Hi @hrishiic
Although these options are available since 6.0.0, the environment variable bindings were added in 6.5.0, via https://github.com/DataDog/datadog-agent/pull/2089, please upgrade your agent.

@xvello ah! it worked with v6.5.1. Thanks

Thanks for the confirmation, closing the issue then.


roc test crashes with unreachable code: symbol/layout 13.IdentId(26) using Abilities

interface Crashes
    exposes []
    imports [Json]

expect
    input = [82, 111, 99] # "Roc"
    got = Decode.fromBytes input Json.fromUtf8
    got == Ok "Roc"

luke@192-168-1-108 aoc-2022 % roc check Crashes2.roc
0 errors and 0 warnings found in 17 ms.
luke@192-168-1-108 aoc-2022 % roc test Crashes2.roc
thread 'main' panicked at 'internal error: entered unreachable code: symbol/layout `13.IdentId(26)` ProcLayout {
    arguments: [
        Builtin(
            List(
                Builtin(
                    Int(
                        U8,
                    ),
                ),
            ),
        ),
        Struct {
            field_order_hash: FieldOrderHash(
                0,
            ),
            field_layouts: [],
        },
    ],
    result: Union(
        NonRecursive(
            [
                [
                    Builtin(
                        List(
                            Builtin(
                                Int(
                                    U8,
                                ),
                            ),
                        ),
                    ),
                ],
                [],
            ],
        ),
    ),
    captures_niche: CapturesNiche(
        [],
    ),
} combo must be in DeclarationToIndex', crates/compiler/mono/src/borrow.rs:165:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This is a bug due to polymorphic expression compilation.
With a monotype annotation this succeeds:
got : Result Str _
got = Decode.fromBytes input Json.fromUtf8

The layout we actually want was found
ProcLayout {
    arguments: [
        Builtin(
            List(
                Builtin(
                    Int(
                        U8,
                    ),
                ),
            ),
        ),
        Struct {
            field_order_hash: FieldOrderHash(
                0,
            ),
            field_layouts: [],
        },
    ],
    result: Union(
        NonRecursive(
            [
                [
                    Union(
                        NonRecursive(
                            [
                                [
                                    Builtin(
                                        List(
                                            Builtin(
                                                Int(
                                                    U8,
                                                ),
                                            ),
                                        ),
                                    ),
                                ],
                                [],
                            ],
                        ),
                    ),
                ],
                [
                    Builtin(
                        Str,
                    ),
                ],
            ],
        ),
    ),
    captures_niche: CapturesNiche(
        [],
    ),
},

but, it looks like we are building a call to Decode.fromBytes that expects a Result * _ to show up, which leads to the void layout.

Seems to be a nested-expect-specific issue. The polymorphic expression compiles fine in all of the following
input = [82, 111, 99]
got = Decode.fromBytes input Json.fromUtf8

expect
    got == Ok "Roc"

main =
    input = [82, 111, 99]
    got = Decode.fromBytes input Json.fromUtf8

    if got == Ok "Roc" then "roc" else "asdasdasda"

input = [82, 111, 99]
got = Decode.fromBytes input Json.fromUtf8

main =
    if got == Ok "Roc" then "roc" else "asdasdasda"

https://github.com/roc-lang/roc/blob/a0af21becc70874541b0693ef2d05c98675f0205/crates/compiler/load_internal/src/file.rs#L5605
is the problem line. eliding the transformation avoids the problem

This is a problem with the layout cache. We determine the right type for the polymorphic expression
[crates/compiler/mono/src/ir.rs:5255] env.subs.dbg(fn_var) = Func([<71>Apply(`List.List`, [2600]),<73>Opaque(`Json.Json`, [], <90>EmptyRecord),], <2597=76>LambdaSet([`Decode.fromBytes` , ], ^<2595>), <77>Alias(`Result.Result`, [2604, 2605, 2606], <2607>[TagName('Err') <2628>[TagName('Leftover') <2631>Apply(`List.List`, [2610]) , TagName('TooShort') , ]<2632> , TagName('Ok') <81>Apply(`Str.Str`, []) , ]<107>))

but the layout cache has a stale entry
[crates/compiler/mono/src/layout.rs:2145] (var, result) = (
    77,
    Ok(
        Union(
            NonRecursive(
                [
                    [
                        Builtin(
                            List(
                                Builtin(
                                    Int(
                                        U8,
                                    ),
                                ),
                            ),
                        ),
                    ],
                    [],
                ],
            ),
        ),
    ),
)

The question now is, why does that type even show up in the layout cache? It shouldn't until the poly expr is specialized.

A simpler case of the same problem is
expect
    got : [Y[Y1, Y2], Z [Z1, Z2]]
    got = Z Z1

    t : [A [A1, A2]]
    t = A A1

    got == t

here we generate the lookup layouts
[crates/compiler/mono/src/ir.rs:6608] (symbol, layout) = (
    `A.got`,
    Union(
        NonRecursive(
            [
                [
                    Builtin(
                        Bool,
                    ),
                ],
                [
                    Builtin(
                        Bool,
                    ),
                ],
            ],
        ),
    ),
)
[crates/compiler/mono/src/ir.rs:6608] (symbol, layout) = (
    `A.t`,
    Builtin(
        Bool,
    ),
)

which is wrong, the lookup layouts for both should be due to [A [A1, A2], Y [Y1, Y2], Z [Z1, Z2]].


Issue 322 - Add Postgres and Nginx Libraries

Also included:

Fix for issue-933 - Fail to create database and username containing hyphen character
Fix for issue-934 - Add function to reset user password in mysql library
Refactoring of logger.sh

Pour @cedricguindon
"So when doing IFS= read -r line, what you are doing is setting IFS to an empty string (no character will be used to split, therefore no splitting will occur) so that read will read the entire line and see it as one word that will be assigned to the line variable. The changes to IFS only affect that statement, so that any following commands won't be affected by the change."
Ref.: https://unix.stackexchange.com/questions/209123/understanding-ifs-read-r-line


numpy.core._multiarray_umath not found

When I start the KingPhisher client I get the following error message:
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
I have installed numpy, but the message persists.
KingPhisher otherwise seems to work correctly.
What can I do to get rid of the error?

sudo ./KingPhisher --env-update

Looks related to https://github.com/numpy/numpy/issues/11871

@zeroSteiner Could be the --env-update should resolve the issue as it forces a reinstall of the required packages in the pipenv environment.

Thanks the env update helped


When I stored the contents of spacy decomposition into sqlite, I got garbled.

Hi @HAIDIRAO, Snorkel v0.9 has native tooling for spaCy and we don't rely on a fixed DB schema anymore. That means you can be a lot more flexible with how you operate over spaCy objects. There's an example of using spaCy for LF preprocessing in our new intro tutorial. As an FYI, we've moved the information extraction version of Snorkel (v0.7) to https://github.com/snorkel-team/snorkel-extraction. Feel free to reopen this issue there!


Create reference-source-like site for .Net Core

Reference Source and Roslyn both have Roslyn-based sites that allow easy navigation of their source code. It would be nice if there was a similar site for .Net Core.
For me, the most important difference between the Roslyn-based site and using Github directly is finding some member. GitHub search is text-based, so it does not differentiate between declaration and usage. You can mostly get around that by searching for some string that's unique to the declaration (e.g. "void Method" for void-returning method Method), but that's cumbersome.

This is something we've talked about and ultimately may want to do.  It would involve building a Roslyn index over corefx with SourceBrowser.

I think this can now be closed, the site is at https://source.dot.net/.


[SPARK-47395] Add collate and collation to other APIs

What changes were proposed in this pull request?

Added collate and collation functions to:

Scala API
Python API
R API
Spark Connect Scala Client
Spark Connect Python Client

Why are the changes needed?

In order to access these collation capabilities from non-sql apis
Does this PR introduce any user-facing change?

Yes, users can now access these functions from non-sql apis
How was this patch tested?

Unit tests.
Was this patch authored or co-authored using generative AI tooling?

No.

I think Run / Run Docker integration tests is not related to the PR.

+1, LGTM. Merging to master.
Thank you, @stefankandic and @dbatomic @HyukjinKwon for review.


Research levels boundaries

Research minimum, maximum, and steps to every valuable parameter of ship

Frigates with negative base stats are likely glitched.

Frigates with an Expedition Count EQUAL to a Rank Up level are definitely glitched.


Integrate with code coverage?

Is there any documentation of showing that the results are integrated with code coverage?
For example,
would like to see that the tests will add to coder coverage with unit and common tests.

Just run your property-based test from eUnit and use that to monitor coverage?
E.g. add this to your property module, and run eunit:
property_test() -> true == check().
and enable code coverage in rebar3 config:
{cover_enabled, true}.


Missing "app.run" in source code of example "AJAX with jQuery"

While debugging issue #1517 , found that app.run() line is missing in jqueryexample.py

I will work on this and submit PR


IGNITE-22355 TableManagerTest's static mocks from #mockManagersAndCreateTableWithDelay don't work properly

JIRA ticket: IGNITE-22355 | TableManagerTest's static mocks from #mockManagersAndCreateTableWithDelay don't work properly
Description
In tests table creation method there is code like below:
try (MockedStatic<AffinityUtils> affinityServiceMock = mockStatic(AffinityUtils.class)) {
    ArrayList<List<ClusterNode>> assignment = new ArrayList<>(PARTITIONS);

    for (int part = 0; part < PARTITIONS; part++) {
        assignment.add(new ArrayList<>(Collections.singleton(node)));
    }

    affinityServiceMock.when(() -> AffinityUtils.calculateAssignments(any(), anyInt(), anyInt()))
            .thenReturn(assignment);
}

As the result AffinityUtils#calculateAssignments calls outside of try-with-resources returns list of empty sets, but desired behavior is list of sets with the given node. It's become critical and leads to failure of all tableManagerStopTest* tests if a test is rely on assignments check, like in https://issues.apache.org/jira/browse/IGNITE-22315
Solution
Due to this Mockito's issue static mocks aren't accessible from a different threads. I tired to use static mock as a field:
private MockedStatic<AffinityUtils> affinityUtilsStaticMock;

@BeforeEach
void before() throws NodeStoppingException {
    affinityUtilsStaticMock = mockStatic(AffinityUtils.class);
    // ...
}
// ...
private TableViewInternal mockManagersAndCreateTableWithDelay(
            String tableName,
            CompletableFuture<TableManager> tblManagerFut,
            @Nullable Phaser phaser
    ) throws Exception {
    // ...
    ArrayList<List<ClusterNode>> assignment = new ArrayList<>(PARTITIONS);

    for (int part = 0; part < PARTITIONS; part++) {
        assignment.add(new ArrayList<>(Collections.singleton(node)));
    }

    affinityUtilsStaticMock.when(() -> AffinityUtils.calculateAssignments(any(), anyInt(), anyInt())).thenReturn(assignment);

    TableManager tableManager = createTableManager(tblManagerFut);
    // ...
}
// ...
void after() throws Exception {
    ComponentContext componentContext = new ComponentContext();
    closeAll(
        // ...
        affinityUtilsStaticMock
    );
}

But inside inside TableManager#getOrCreateAssignments it didn't works, the place:
assignmentsFuture = distributionZoneManager.dataNodes(causalityToken, catalogVersion, zoneDescriptor.id())
        .thenApply(dataNodes -> AffinityUtils.calculateAssignments(
                dataNodes,
                zoneDescriptor.partitions(),
                zoneDescriptor.replicas()
    )//...

returns a list with size zoneDescriptor.partitions() of empty node set as the ticket describes as problem. In debug we can check is the mocking still works with:
Mockito.mockingDetails(AffinityUtils.class).isMock()

and it returns false. In oppisite, we can check that after .when(...) statement the same check returns true.
The temporal solution is to mock DistributionZoneManager#dataNodes with non-empty set with node1 inside:
when(distributionZoneManager.dataNodes(anyLong(), anyInt(), anyInt()))
                .thenReturn(completedFuture(Set.of(NODE_NAME)));

where NODE_NAME is node1.
Then, non-mocked AffinityUtils#calculateAssignments returns a list with size zoneDescriptor.partitions() (in the case partitions equals 32) of non-empty node set with node1 inside as desired.

Thank you for submitting the pull request.
To streamline the review process of the patch and ensure better code quality
we ask both an author and a reviewer to verify the following:
The Review Checklist

[ ] Formal criteria: TC status, codestyle, mandatory documentation. Also make sure to complete the following:
- There is a single JIRA ticket related to the pull request.
- The web-link to the pull request is attached to the JIRA ticket.
- The JIRA ticket has the Patch Available state.
- The description of the JIRA ticket explains WHAT was made, WHY and HOW.
- The pull request title is treated as the final commit message. The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
[ ] Design: new code conforms with the design principles of the components it is added to.
[ ] Patch quality: patch cannot be split into smaller pieces, its size must be reasonable.
[ ] Code quality: code is clean and readable, necessary developer documentation is added if needed.
[ ] Tests code quality: test set covers positive/negative scenarios, happy/edge cases. Tests are effective in terms of execution time and resources.

Notes

Apache Ignite Coding Guidelines

The ticket is created: https://issues.apache.org/jira/browse/IGNITE-22388
Related TODOs are added.


fix: block styles on inline text

Description
If block styles are applied to inline text during rendering, an exception will occur because it is not allowed. This patch solves the fitting so that only the inline styles allowed are applied, and the rest of the block styles are applied only to the block.
Instead of removing of the assert as suggested in the #1118 we could find the root of this problem.
Related Issues

Fix #1118

Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I titled the PR using Conventional Commits.
[x] I did not modify the CHANGELOG.md nor the plugin version in pubspec.yaml files.
[x] All existing and new tests are passing.
[x] I have run the commands in ./scripts/before-push.sh and it all passed successfully

Additional info
Tested with our internal App with many quill delta messages.
Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
[x] No, this is not a breaking change.

Hi there, thanks for opening your first Pull Request to this project!!

Description
If block styles are applied to inline text during rendering, an exception will occur because it is not allowed. This patch solves the fitting so that only the inline styles allowed are applied, and the rest of the block styles are applied only to the block.
Instead of removing of the assert as suggested in the #1118 we could find the root of this problem.
Related Issues

Fix #1118

Checklist

[ ] I read the Contributor Guide and followed the process outlined there for submitting PRs. (not found?)
[x] I titled the PR using Conventional Commits.
[x] I did not modify the CHANGELOG.md nor the plugin version in pubspec.yaml files.
[ ] All existing and new tests are passing. (how?)
[ ] I have run the commands in ./scripts/before-push.sh and it all passed successfully (not found?)

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
[x] No, this is not a breaking change.

Thank you for taking the time to contribute to this project
Please let us know when you are ready to merge.

Hi @singerdmx , @freshtechtips !
Regarding "All existing and new tests are passing." How to properly run the tests? I'm pretty new to Flutter/Dart development.
Regarding "./scripts/before-push.sh" - there is no such file?

Hi @singerdmx , @freshtechtips !
Regarding "All existing and new tests are passing." How to properly run the tests? I'm pretty new to Flutter/Dart development.
Regarding "./scripts/before-push.sh" - there is no such file?

Don't worry about it. The CI already runs that
But to not get CI test failures you could test it locally using the script we mentioned, unfortunately it doesn't work for Windows
Please fetching the latest changes from the upstream if you don't see it or tell me if it's still

Hi @singerdmx , @freshtechtips !
Regarding "All existing and new tests are passing." How to properly run the tests? I'm pretty new to Flutter/Dart development.
Regarding "./scripts/before-push.sh" - there is no such file?

The tests can be runed using the script we mentioned, which already execute the command flutter test in addition to other checks

Hi @singerdmx , @freshtechtips !
Regarding "All existing and new tests are passing." How to properly run the tests? I'm pretty new to Flutter/Dart development.
Regarding "./scripts/before-push.sh" - there is no such file?

The tests can be executed using flutter test
Which is already there in the script that we have in addition to other checks

Hi @freshtechtips , sorry for the confusion about the script etc. I was testing this patch on an exact version which was not a master version. So I went back to the master and found the script. Also ran the tests - everything is ok.

Hi @freshtechtips , sorry for the confusion about the script etc. I was testing this patch on an exact version which was not a master version. So I went back to the master and found the script. Also ran the tests - everything is ok.

Hi, No need to be sorry
Things like this happen all the time
Let me know when you are ready.

Hi @freshtechtips , sorry for the confusion about the script etc. I was testing this patch on an exact version which was not a master version. So I went back to the master and found the script. Also ran the tests - everything is ok.

Do you have a Slack account??

Hi @freshtechtips , sorry for the confusion about the script etc. I was testing this patch on an exact version which was not a master version. So I went back to the master and found the script. Also ran the tests - everything is ok.

Hi, No need to be sorry Things like this happen all the time
Let me know when you are ready.

I think it can be ready. Can you check it again?

Do you have a Slack account??

Depends on which server. Do you mean fluttercommunity.slack.com ?

Hi @freshtechtips , sorry for the confusion about the script etc. I was testing this patch on an exact version which was not a master version. So I went back to the master and found the script. Also ran the tests - everything is ok.

Hi, No need to be sorry Things like this happen all the time
Let me know when you are ready.

I think it can be ready. Can you check it again?

Do you have a Slack account??

Depends on which server. Do you mean fluttercommunity.slack.com ?

Can you join the Flutter Quill slack??
If not, maybe a email address?

Can you join the Flutter Quill slack??

joined :)

Description
If block styles are applied to inline text during rendering, an exception will occur because it is not allowed. This patch solves the fitting so that only the inline styles allowed are applied, and the rest of the block styles are applied only to the block.
Instead of removing of the assert as suggested in the #1118 we could find the root of this problem.
Related Issues

Fix [Desktop] Loading delta to controller throws exception #1118

Checklist

[x]  I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x]  I titled the PR using Conventional Commits.
[x]  I did not modify the CHANGELOG.md nor the plugin version in pubspec.yaml files.
[x]  All existing and new tests are passing.
[x]  I have run the commands in ./scripts/before-push.sh and it all passed successfully

Additional info
Tested with our internal App with many quill delta messages.
Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ]  Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
[x]  No, this is not a breaking change.

My apology, I commented on this change
While it's true it fixed a bug it caused other bugs, like issues with image resizing and styling
I'm afraid I will be unable to find the bug as I'm not a Quill expert
I only work on this library for anything that is not specific to Quill js

My apologies, I reverted this change by commenting it.
While it's true it fixed a bug it caused other bugs, like issues with image resizing and styling
I'm afraid I will be unable to find the bug as I'm not a Quill js expert and I haven't used it before
Please feel free to open a new pull request in attempt to try proving a new fixes


Setting toolbariconsize modifies the icons used in the toolbar

Environment in use was KDE 5 on openSUSE Tumbleweed. The VIM versions tested were 8.1.479 as packaged by SUSE and a local build of the source as of commit d0721058f494143186f66a60151c9634031a8c96
Steps to reproduce:

select a "Gnome" icon set in the KDE config for use in Gnome apps (just to eliminate a potential source for irritations)
start gvim
execute set toolbariconsize=huge  to modify the toolbar

The toolbar icons change size but at the same time some icons vanish (they still take space and are clickable, but no image is shown) while others / most are replaced by some default image (the same for every affected icon).
Which icon theme is actually used is probably irrelevant, since the behavior was the same for "Adwaita", "hicolor" and "breeze" (except for a different replacement icon).
(Re-) executing set toolbariconsize= or  set toolbariconsize=small only made some more of the generic icons disappear but did not reset the toolbar.
Same goes for the sequence of set toolbar=tooltips then set toolbar=icons.

I think this problem is specific to GTK3. Your openSUSE gvim is compiled with GTK3 GUI, isn't it? (it should be displayed near the top of the :version output).
On my own-compiled Big gvim 8.1.513 with GTK2 GUI running on openSUSE 15.0, all icons are different and look appropriate to their function no matter which value (of [tiny, small, medium, large, huge, giant]) I select for the 'toolbariconsize' value; and changing the value always reeplaces all icons by ones of the newly selected size.

I cannot say if it is specific to GTK3 but you are right in that the version I tested against indeed is 3.24.1

i believe this is fixed by https://github.com/vim/vim/commit/81a4cf469a0f5c1603ac3130af9f011053854180


Plfm 3605 revisit

Deprecating the Synapse MD processor in favor of integrating with a client-side (js) extendable library (markdown-it).  Could look into including a node.js module in the backend, but I think Synapse search requires a bigger overhaul.


Jax sharding API is too verbose

The jax sharding API is quite flexible, but for the very common use-case, it require too many lines of code:
For example, if we take the orbax tutorial: https://orbax.readthedocs.io/en/latest/orbax_checkpoint_101.html#a-standard-recipe
sharding = jax.sharding.NamedSharding(
    jax.sharding.Mesh(jax.devices(), ('model',)),
    jax.sharding.PartitionSpec('model',)
)
x = jax.device_put(x, sharding)

Understanding what this code does require to parse each line individually and try to reverse engineer what was the intent. It's not trivial at first look that this code is doing data parallelism.
To support multi-host in a generic way is even more verbose and very difficult to parse: https://jax.readthedocs.io/en/latest/_autosummary/jax.make_array_from_single_device_arrays.html
local_shape = local_array.shape
global_mesh = Mesh(np.array(jax.devices()), ('devices'))
global_shape = (jax.process_count() * local_shape[0], ) + local_shape[1:]
arrays = jax.device_put(
    np.split(local_array, len(global_mesh.local_devices), axis = 0),
    global_mesh.local_devices,
)
sharding = jax.sharding.NamedSharding(global_mesh, P(('devices'), ))
array = jax.make_array_from_single_device_arrays(global_shape, sharding, arrays)

Instead, jax should provide default sharding for the most common use-case:

Replicated across all hosts/devices
Sharded along the first dimension

Something like:
x = jax.device_put(x, jax.sharding.SHARED_FIRST_DIM)
x = jax.device_put(x, jax.sharding.REPLICATED)

Contrary to the first examples, this code is immediately understandable, even people coming from pytorch that don't know anything about Jax and sharding.

I think we can introduce some wrappers to create arrays like that.
Something like: jax.make_array_from_data_parallel_config(local_shape, mesh, np_array) which would basically do what the docstring does.
You do need devices to device_put so just specifying jax.sharding.REPLICATED is not enough. But a simple wrapper around it should work out. WDYT?

Thanks you for the answer!

Something like: jax.make_array_from_data_parallel_config(local_shape, mesh, np_array) which would basically do what the docstring does.

Without seeing the end-to-end code (with sharding, local_shape,... definition), it's difficult to compare. I'm not sure this would fix the issue:

There would still be boilerplate to create local_shape and mesh.
It's also not fully intuitive from the signature what the function does (similarly, I find jax.make_array_from_single_device_arrays( usage non trivial)
I feel this create duplication between jax.device_put and those jax.make_array_from_data_parallel_config. To keep API minimal, why not only keep jax.device_put for most usage.

You do need devices to device_put so just specifying jax.sharding.REPLICATED is not enough. But a simple wrapper around it should work out. WDYT?

We implemented this API in our codebase, so it is possible: http://google3/third_party/py/kauldron/evals/evaluators.py;l=177;rcl=598616568
If the constant is too confusing, then having a callable version is fine too, like:
x = jax.device_put(x, jax.sharding.sharding_first_dim())
x = jax.device_put(x, jax.sharding.sharding_replicated())

I think this issue can be decomposed into 2 sub-parts:
[ ] Have jax.device_put support multi-host sharding
[ ] Provide standard sharding, auto-computed for the common use-cases: Replicated and sharded, without having to create the mesh,...

It might work for your use case but providing such an API in JAX would not work for majority of stuff.

Of course, it would not work for complex use-cases and LLM. The goal of this issue is not to fix all use-cases, just that the 2 most standard uses cases works out-of-the-box, meaning:

Replicated sharding
Data parallelism: Sharding along the first dim (on all devices)

I believe those 2 uses cases already cover many use-cases. Flax for instance provide a flax.jax_utils.unreplicate for pmap, which was widely used: https://source.corp.google.com/search?q=flax.*replicate
So it should be a good signal there's a need for this kind of high level convenience


Include pressure gradient source term in GeoClaw Riemann solver

This PR includes terms in the Riemann solver so that it can compute the atmospheric pressure gradient source term in, for instance, storm surge or asteroid impact simulations (where this modification is actually critical).  This slightly modifies the rpn2_geoclaw Riemann solver and adds additional terms to the flux differences (similar to the bathymetry).
This of course adds some overhead if you are not using the pressure source term.  Tests show that an increase in run time of about 1-2% for the JCP Riemann solver should be expected.  We could eliminate the additional work by using pre-processor directives (there is no difference then).
On the storm surge side the overall runtime decreases by about 15-20% overall in preliminary estimates.

Note there is a modification to GeoClaw that needs to be made as well removing the pressure from src2.

This has been replaced with #116.


pyimg4 Errors

Get ready (0)
Release side button, but keep holding volume down (9)
Release side button, but keep holding volume down (2)
[] Device entered DFU!
[ ]Patching some boot files...
[] Finished moving the boot files to work
[] Decrypthing ibss and iboot
usb_timeout: 5
[libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID: 0x8015
Found the USB handle.
Stage: RESET
ret: true
[libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID: 0x8015
Found the USB handle.
Stage: SPRAY
ret: true
[libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID: 0x8015
Found the USB handle.
Stage: SETUP
ret: true
[libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID: 0x8015
Found the USB handle.
Stage: PATCH
ret: true
[libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID: 0x8015
Found the USB handle.
Now you can boot untrusted images.
[libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
Found the USB handle.
[*] Patching the kernel
Usage: python -m pyimg4 im4p create [OPTIONS]
Try 'python -m pyimg4 im4p create --help' for help.
Error: Invalid value for '-i' / '--input': 'work/kcache.patched': No such file or directory
I have all the dependencies installed, Im using python 3.8, im doing this on iPhone 8 Global restore to 16.7.5 => 16.1.2, I tried on both linux and macos and im getting this issue.

I changed the ispw to lower version (15.6.1) and I didnt get that error


Remove the gl_common crate

So I was the one who proposed this crate.
Crates.io show this: https://crates.io/crates/gl_common/reverse_dependencies
Glutin imports the crate to implement the trait in it, and glium imports the trait to call the load function. All other crates only import gl_common because it is required for gl_generator to compile.
Therefore this PR would only break glutin and glium, which I can easily fix.

In fact glium doesn't even call load. gl_common is imported but not used.


Allow Adam implementations to assume that epsilon is zero in some places.

One of our performance experts has requested the ability to treat epsilon as zero in certain places to better accommodate hardware. Given that epsilon is simply a numerical stability factor and in the "ideal mathematical" case it would be arbitrarily small I would propose that allowing this still conforms to the standard of mathematically equivalent to the reference modulo precision constraints.

Context:
Adam optimizers have an epsilon which is basically zero (e.g. 1e-8) which provides numeric stability. There are optimizations which can be made where the epsilon is computed to allow for hardware.
SWG:

We generally agree that some flexibility should be allowed here, but we want to make sure it bounded. To this end, a short document will be sent out summarizing the specific optimizations being referred to here. We intend to handle this particular inquiry offline with that document. The particular allowances will be written into the rules.
We strongly encourage anyone with similar optimizations to come forward ahead of submission with such optimizations.

I followed up with our performance experts, and the specific change that they would like to use is to replace
sqrt(vt) + epsilon with sqrt(vt + epsilon ** 2) in the denominator of the last update. To justify this change, we present the following perturbation theory:
k is the scale disparity
epsilon = vt / k
rel_error = 1 - sqrt(vt + vt**2 / k**2 )
                -------------------------
                   (sqrt(vt) + vt / k)

Factor out an vt and divide through
rel_error = 1 - sqrt(1 + vt / k**2 )
                -----------------------
                  (1 + sqrt(vt) / k)

eta = vt ** 0.5 / k
rel_error = 1 - sqrt(1 + eta**2) / sqrt(1 + eta)
This function behaves linearly if eta is < ~0.75, and is maximal at eta=1 with a value of 1 - 1/sqrt(2) ~= 0.3. Dropping back out out of eta space:
eta = x ** 0.5 / (vt / epsilon) = epsilon /sqrt(vt)
So even at vt == epsilon which is an extreme case, the relative error is still modest (~1e-4)

SWG:
Tentatively agreed unless objections are raised over email by tomorrow.


fix compile error

APIGroup and APIEntry were renamed to Group and Entry, but some of their usages haven't been updated simultaneously.

Codecov Report

Merging #140 (e2378c9) into main (2b4a6dc) will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #140      +/-   ##
==========================================
+ Coverage   58.45%   58.48%   +0.02%
==========================================
  Files          36       35       -1
  Lines        2477     2476       -1
==========================================
  Hits         1448     1448
+ Misses        924      923       -1
  Partials      105      105

Impacted Files
Coverage Δ

pkg/common/sys_proc_others.go

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 2f538fa...e2378c9. Read the comment docs.


[DC-1111] Update _mapping_person.person_id semantics

Thanks @nishanthpp93 ! I "fixed" the integration test -it was CaSiNg and  white   space  differences in the SQL. I went ahead and moved the test to unit test and also removed a redundant integration test that was already covered by a unit test. That should reduce the build time at least a little. Just waiting for the build to pass now before merging. :crossed_fingers:


Unnamed Compound Tag

Support for unnamed root Compound tags.

Fully supported now! Wanted to wait to have auto format detection working before closing this ticket.


Fix: Tags equality were wrongly computed between snapshots.

Fix bug in last bugfix. :)

Excellent. Thanks!


npm module out of date

Hey, sorry to bother, but it seems that the npm module is out of date with the library here. It would be quite helpful if we could have those brought together again. Thanks!

I don't understand what you mean.  Is there an error or something you're running into?

I've figured it out, I see I've neglected to update the files section of package.json...

Sorry I was actually just in the middle of typing a response. Thanks for all your work with Swagger/json schema/etc!
From: Jeremy Whitlock
Sent: Friday, July 17, 2015 7:02 PM
To: apigee-127/swagger-core-api
Cc: Jason Oettinger
I've figured it out, I see I've neglected to update the files section of package.json...
—
Reply to this email directly or view it on GitHub.

It's fixed in master.

npm install swagger-core-api --save still results in the output<EMAIL_ADDRESS>node_modules/swagger-core-api, only downloading a skeleton index.js and no dependencies or anything else from this repo. Still seems like npm package isn't linked to the repo. Sorry!

Yeah, I haven't produced an NPM build yet.  Until the next NPM release, you can use npm install https://github.com/apigee-127/swagger-core-api.git --save and it will work.


clion cannot resolve std::string when there is a bazel package named string

I have uploaded a repo where this is reproduced here: https://github.com/guyincognito24601/bazelstringpackage.
The issue manifests itself in many different ways, but, it seems when I have a bazel package named string, CLion doesn't correctly resolve std::string.  The different manifestations I've seen are:

Can't resolve container 'std' (when defining an std::string)
Cannot find 'string' (on #include <string>)
Types 'std::string' and 'const char *' are not compatible (std::string constructor)
Instantiating an unknown structure without a reference (std::string member variable)

Workaround is changing the name of the bazel package.

Thanks for the repro case. I've added a check that a candidate header VirtualFile is not a directory, which should fix this:
https://github.com/bazelbuild/intellij/blob/e92b0669084c9ba259faa661513eff4a6e0d10a8/cpp/src/com/google/idea/blaze/cpp/BlazeCustomHeaderProvider.java#L83
It'll be in the next release, which is in a few more weeks.


Error installing dependencies

Hi,i come here because I encounter errors when I install python and VCforpython.
The "checker.py" script does not install python 2.7 in wine.
I found that the problem was the "wine msiexec /I python2.7.12.msi",I tested this command alone,and I have no results,no error,nothing.
I solved this by downloading a 32bits version of python,and the command works with this file.
However,I can't do the same thing with VCforpython...
It seems to be a problem with wine architecture,have you got an idea to fix it ?
Anyway,thanks for your great projects !

I've tried in some distros and worked fine i dont understand what happens in some machine with wine, but i'll try fix it today

I tried to install it on Kali Linux,with wine preinstalled.I don't know why it happens,but since it worked with a 32bit file,i think that the problem is between file's arch and wine arch...
Thanks for your reply,i hope you'll find !

Try now @EinderJam


[ Keyboard usability enhancement ] Search box for Tree View

Hi,
Often a project is made up of tens if not hundreds or even thousands of files and directories, it would be quite handy to have a box to search (as-you-type) for them.
Cheers

Thanks for the suggestion! This looks like a duplicate of https://github.com/atom/tree-view/issues/159 – feel free to subscribe there for updates.
You can already live search for files in your project in Atom already though, via the fuzzy-finder: https://atom.io/docs/latest/getting-started-atom-basics#opening-a-file-in-a-project
Also, please take a look at the Contributing guide for a guide on submitting bug reports (including searching for duplicates first).


With this configuration, item data is being cleared  and we DONT want that

We have disabled all of the settings that would be clearing NBT data, but it still is.
{
  "main": {
    "_comment_checkInventoryActions": "// Prevents hitting/chatting with open GUI",
    "checkInventoryActions": false
  },
  "items": {
    "survival": {
      "_comment_legalise": "// Whether to enable 'legalising' survival items.",
      "_comment_bannedSurvivalItems": "// Which items should be cleared when clicked in survival inventory",
      "bannedItems": [],
      "checkEnchants": false,
      "checkPotionLevels": false,
      "checkItemCount": false
    },
    "creative": {
      "_comment_whitelistedNBT": "// Which NBT shouldn't be cleared",
      "whitelistedNBT": [
        "EntityTag",
        "Enchantments",
        "StoredEnchantments",
        "BlockEntityTag",
        "Damage",
        "Potion",
        "display"
      ],
      "_comment_removeCreativeNBTTags": "// Disallow all NBT tags in creative which aren't in whitelist section.",
      "removeCreativeNBTTags": false,
      "checkEnchants": false,
      "checkPotionLevels": false,
      "checkItemCount": false
    }
  },
  "combat": {
    "_comment": "// Combat checks settings.",
    "preventWallHit": false,
    "checkHitDistance": false,
    "checkHitAngle": false
  },
  "packet": {
    "_comment": "// Patches some outgoing server packets",
    "removeTeleportData": false,
    "removeHealthTags": false,
    "removeEquipmentTags": false,
    "checkPortalHack": false,
    "patchSoundExploits": true,
    "removeDroppedItemInfo": false,
    "patchItemKickExploit": true
  },
  "movement": {
    "_comment": "// Movement checks settings",
    "yesFall": false
  },
  "duplication": {
    "_comment": "// Duplication fixes",
    "_comment_patchSaveLimit1": "// Whether to prevent throwing an error when saving large string data.",
    "_comment_patchSaveLimit2": "// This is done by ignoring data after DataOutputStream limit.",
    "_comment_patchSaveLimit3": "// Written books can reach that point with hacked clients.",
    "patchSaveLimit": true,
    "_comment_patchGravityBlock": "// Whether to disable gravity block duping.",
    "patchGravityBlock": true,
    "_comment_patchDeathDuplication1": "// Checks if player is connected before applying damage.",
    "_comment_patchDeathDuplication2": "// Prevents duplicating inventory if player dies after disconnect.",
    "patchDeathDuplication": true
  }
}

I should add that what is being cleared is all the NBT data for  armor, weapons, tools, and whatnot.
I do believe that the following should cover that,
"removeEquipmentTags": false,
but its not.

On second look, that is actually not the proper toggle. And I dont see any that would cause what we are seeing.

If it is just a sync issue (not real clearing), disable patchItemKickExploit (see #39). Otherwise, it's a new bug.
Thanks for report.

I dont know how to tell if its a sync issue or not. The dont ever show up though, if thats what you are suggesting?  And disabling that isnt an option, thats what what we wanted it for in the first place.

You can tell it's a sync issue if it reverts after clicking on item. If it goes back to normal, it's a sync issue, otherwise sounds like a new bug.

OK, I have just checked for that, and n, they dont reappear.

awesome, I re-downloaded the mod to test if this was a sync issue and it has stripped all the enchantments and nbt tags from everything that was in my inventory when I was running the mod.  The tags didnt return when I unloaded the mod.

If it is just a sync issue (not real clearing), disable patchItemKickExploit (see #39). Otherwise, it's a new bug.
Thanks for report.

I had the same problem. Mine was just a client bug where items would revert after clicking on them.
I tried disabling all the settings in the config file and it didn't fix it.
Disabling some of them would straight up cause server crashes so I ended up just having to remove Golf.

Is this by chance with Creative? #58 may provide a fix if it is indeed such.
Note, due to how it's implemented, some stuff such as shulker boxes will appear as if they're missing their inventory.


Fixed: Use value of "schematron" for constraintSpec

The TEI has changed the value of "schematron" in its RNG, but the MEI RNG allows both "isoschematron" and "schematron".
If we're thinking about moving towards pure ODD this change will mean one less thing that breaks when we update.
Also fixed an issue where the customizations were using the TEI RNG, but the sources were pointing to the (older) MEI RNG. These were normalized to the MEI RNG so that all source and customizations use the same ODD schema.
Fixes #1158

FYI: I've also built it with the ant build script and it seems to work OK


Pre-launch edits

switch to standard download screen
switch to new standard confidential address language for family cases
refinements to review screen and nav panel
adjust progress bar
update github repo for launch
other minor edits

@RamiLorca This has all been tested so no need to do a deep dive, but wanted to give you a heads-up. If this looks OK, I think I'll send back to Amy for one last look and then we'll be ready for launch. (Unless you can think of anything else we need to consider.)


Add french translation

This is a downstream patch of https://github.com/sduduzog/slim-launcher/commit/4d08abb7da4c08b30083f6877a42fc2a905ea830.

Should I fix "AAPT: error: unescaped apostrophe in string" errors?


Automatic input method switching bug in Excel spreadsheets when using RemoteApp on Windows Server 2019

Describe the bug
Launch an Excel spreadsheet located on a Windows Server 2019 using the RemoteApp mode of FreeRDP. When selecting a cell in the spreadsheet and starting to type in Chinese. However, when selecting another cell to type in, the input method automatically switches back to English. Similarly, when selecting a cell and switching the input method to Chinese, then double-clicking the cell to enter editing mode, the input method also automatically switches back to English.
To Reproduce
Steps to reproduce the behavior:
1、Install MS Office Excel or WPS Excel on Windows Server 2019.
2、Publish MS Office Excel or WPS Excel.
3、Launch the application using the command "freerdp /u:user /d:domain /p:password /app:"||excel" /v:server".
4、When selecting a cell in Excel to input Chinese characters, switch to another cell and the input method will automatically switch to English.
Expected behavior
Switching to other cells in Excel should maintain the Chinese input method unless the shift key is intentionally pressed to switch the input method..
Application details

FreeRDP version (2.9.0)
Command line used：freerdp /u:user /d:domain /p:password /app:"||excel" /v:server
The client is running on Windows 7/10/11 and connecting to a Windows Server 2019

Additional context
I have tried SoftMaker FreeOffice 2021 and did not reproduce this issue.
I have tried Windows Server 2016 and did not reproduce this issue.

I tried using desktop mode for freerdp and remoteapp for mstsc, but I was unable to reproduce the issue.

Windows problem, just update the patch.


Ensure yapf can understand asyncio

Failures:

https://github.com/grpc/grpc/issues/18126
https://github.com/grpc/grpc/issues/20694
https://github.com/grpc/grpc/issues/20845
https://github.com/grpc/grpc/issues/20308


menu sorting!

Hi, i have menu with nested sets. So now i how can i softting menu or change two node.

If you are asking about code, you can do it with insertBefore() and insertAfter() methods as mentioned in README.
If you are asking about GUI for this task, you can try my extension yii2-tree or something similar.


iOS on-device training example Python dependency installation clarification

The instructions don't quite work as is on MacOS.
In particular,
https://github.com/microsoft/onnxruntime-training-examples/blob/8d820c5714f2c14eac2685176853818850b9d053/on_device_training/mobile/ios/README.md?plain=1#L36-L41
doesn't quite work with this requirement line:
https://github.com/microsoft/onnxruntime-training-examples/blob/8d820c5714f2c14eac2685176853818850b9d053/on_device_training/mobile/ios/requirements.txt#L4
See these installation instructions from onnxruntime.ai:

Resolved with PR fix


feat: change the way a user target its kubectl config context

Change the way a user will select the kubectl config context. Instead of $ to tell the command to fetch the context from a path in the CUE release, the user will use ..

LGTM, can you apply the same thing to the delete command please? Next refactor I'll make sure to use a common Aware pattern here too, so we don't forget.


Revert "Revert #18733"

Reverts grpc/grpc#18747
We need to update upb internally before this PR can be imported.

+cc @vishalpowar

Closing in favor of https://github.com/grpc/grpc/pull/18817


Upgrade version.mockito 4.8.1 -> 4.9.0

This PR contains the following updates:

Package
Type
Update
Change

org.mockito:mockito-errorprone

minor
4.8.1 -> 4.9.0

org.mockito:mockito-bom
import
minor
4.8.1 -> 4.9.0

Release Notes

mockito/mockito
v4.9.0
Compare Source
Changelog generated by Shipkit Changelog Gradle Plugin
4.9.0

2022-11-14 - 6 commit(s) by Andrei Solntsev, Rafael Winterhalter, Rick Ossendrijver, dependabot[bot]
Upgrade objenesis 3.2 -> 3.3 (#2784)
Upgrade objenesis 3.2 -> 3.3 (#2783)
Avoids clearing stale weak entries from critical code segments. (#2780)
bump gradle from 7.3.1 to 7.5.1 (#2776)
Bump gradle/wrapper-validation-action from 1.0.4 to 1.0.5 (#2775)
Bump gradle-errorprone-plugin from 2.0.2 to 3.0.1 (#2770)
Bump junit-platform-launcher from 1.9.0 to 1.9.1 (#2768)

[ ] If you want to rebase/retry this PR, click this checkbox.

Suggested commit message:
Upgrade Mockito 4.8.1 -> 4.9.0

See:
- https://github.com/mockito/mockito/releases/tag/v4.9.0
- https://github.com/mockito/mockito/compare/v4.8.1...v4.9.0


Why isn't there a --deliver-local option in version 0.0.11？

Why isn't there a --deliver-local option in version 0.0.11？

Because I don't own a time machine?


[Feature Request] multimodal support in android

🚀 Feature

Motivation

Alternatives

Additional context

Thank you @ricar0. We are recently pushing the feature of JSONFFIEngine in MLC that hopefully can bring multi modality to platforms like Android/iOS. Please stay tuned :-)

Thank you for your reply. I have another question, when running my own model in android, I found prefill is much lower than decode. Is that normal?

@ricar0
Good day! Similar in another models.

@ricar0 Good day! Similar in another models.

Do you also use multimodal model in android?

@ricar0
No.


Published my code

Yes keep it on the Huy branch.
Note for others: If you post your code on the repository, keep it on your own branch to distinguish who contributed what. The Main branch is for the final project and should not be merged at this time.

Closed.


Runtime require opentest4j in JPMS

Change Opentest4J dependency to be non-static in module-info.java.
Since we rely on OpenTest4J for any assertion error, we should
include it as a runtime dependency to prevent the user needing
to also explicitly include that dependency.
This also ensures requires transitive propagates this dependency
automatically.
Check List

Unit tests : N/A.
Javadoc with a code example (on API only) : N/A.
PR meets the contributing guidelines - simple change - should be covered.

opentest4j is not required (or at least it should not), I have looked for use of it in the main code and found in two places: SoftAssertionsProvider and SoftAssertions but the import is only used in the javadoc which we can remove.

Ahh, I was confusing the exception that provides the representation with this! Thanks for clarifying!


Define UMM-S record for net2cog

Also add to harmony services.yml

Check new variables needed for harmony service. Example: https://github.com/nasa/harmony/pull/442/files


Laravel should suppport MySQL SET NAMES syntax unquoted

PHP Version: 7.1
Laravel Version: 5.1(LTS)
MySQL Version: 5.5 with custom agent
Hi,Guys!
My database config
'hive_meta_reader' => [
            'driver'    => 'mysql',
            'host'      => '<IP_ADDRESS>',
            'database'  => 'foo1',
            'username'  => 'someuser',
            'password'  => 'pwd@local',
            'charset'   => 'utf8',
            'collation' => 'utf8_general_ci',
            'prefix'    => '',
            'strict'    => false,
        ]

and I get a mysql pdo exception:

then i edit the file MySqlConnector.php:line 38
change to
        try {
            $names = "set names '$charset'".
                (!is_null($collation) ? " collate '$collation'" : '');
            $connection->prepare($names)->execute();
        } catch (\PDOException $e) {
            $names = "set names $charset".
                    (!is_null($collation) ? " collate $collation" : '');
            $connection->prepare($names)->execute();
        }

then i fix the problem.
But, why ?It look like a syntax error, I find this
set-names syntax

The optional COLLATE clause may be used to specify a collation explicitly. If given, the collation must one of the permitted collations for charset_name.
charset_name and collation_name may be quoted or unquoted.
The default mapping can be restored by using a value of DEFAULT. The default depends on the server configuration.

I know Laravel 5.1 is not supported any more,but all version of Laravel has the same problem.
I think Laravel should  support the SET NAMES syntax unquoted.

Does the error message show the whole query?

Does the error message show the whole query?

Yes,the SET NAMES query always execute when connect to mysql.

Please post the whole error message.

If you believe that all versions have the same issue then why did you reported this on a non-supported version? Which other versions did you try this with? Please try to provide accurate information in the issue template as it would allow us to pinpoint the issue more precisely.

Thanks,actually I do not need to try other version of laravel.

charset_name and collation_name may be quoted or unquoted.

There are two style  of set names syntax: quote or unquote.
This error happen because some other version mysql(which i use) just support unquote syntax,and i don't why do not support, may be because it has an agent layer.
#style unquote
#some other version of mysql  just only support this syntax
set names utf8 collate utf8_general_ci;

#style quote, all laravel now use
#throw pdo exception because some mysql do not support this
set names 'utf8' collate 'utf8_general_ci';

I think laravel should be compatible with this two situation, is that right?
version of laravel MysqlConnector source code :
5.8 MysqlConnector.php
5.7 MysqlConnector.php
5.6 MysqlConnector.php
5.5 MysqlConnector.php
5.4 MysqlConnector.php
5.3 MysqlConnector.php
5.2 MysqlConnector.php

MySQL 5.5 does support quoted charset and collation names. This must be an issue with your setup.
I don't think Laravel should support both syntaxes. This is an extreme edge case and you are apparently the first person to have this.

MySQL 5.5 does support quoted charset and collation names. This must be an issue with your setup.
I don't think Laravel should support both syntaxes. This is an extreme edge case and you are apparently the first person to be affected by it.

Yes, this is a special case. I can't change mysql version or settings in my project,so I have had to edit the laravel source code.


[feature request] Send ICY metadata with audio stream

The audio stream is sent as raw audio stream (optionally encoded to flac or other codec) to a player.
This means that players with a small display do not show any metadata whats playing.
One of the solutions could be to implement ICY metadata but I'm not so sure if players do still request/support that.
I have checked a few players in my house (e.g. Chromecast) and None of them actually sent the ICY-Meta header but maybe I'm overlooking something.
If enough interest I can add this in but for now I consider this low prio.
Anyone interested in (re)acting to the metadata of MA can subscribe to the HA eventbus mass_event

I use Kodi (Libreelec) as player for music assistant (through Hass media player, not DLNA), and no metadata is shown on kodi but a random alphanumeric filename instead.
Any ideas or pointers?

Adding to a closed version 1 discussion is not ideal. Do not use HA media players when native MA players are available,

Kodi is not showing natively for me in MA, but it does without problem in HA. In MA it only appears as DLNA


line indents change on their own when typing

Steps to reproduce
1 Open a file
2 enter insert mode
3 press enter
Expected behaviour
a single new line character should be printed.
nothing else should happen
Version of Vim
8.2.2637
Environment
OS: AlmaLinux 9.4 (Seafoam Ocelot)
Terminal: not sure
$TERM: xterm-256color
Shell bash 5.1.8(1)-release
Logs and stack traces
No response

Sorry don't understand what the issue is. Can you show a screenshot? Can you reproduce using vim --clean and also a much newer Vim please?


Custom delimiter

The goal here is to allow to set a custom delimiter using parameters in the conf file.
Some examples and tests on the new feature can be found in the following file:
TestCaseFlyway.docx

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: JFNGO:x: ValerValer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Related to https://github.com/flyway/flyway/pull/2670

We're not sure about these changes. It looks like you're trying to add a Flyway feature that clashes with existing SQL language features.
Flyway should support any valid SQL. So if you can run it in SQL client for your DB engine, it should work. We consider it a bug when this isn't the case.
We don't want to add a generic way of changing delimiters when some DB engines already support it in their own way. Instead we should ensure we support the language features of the SQL flavors we support.
For instance, have you tried the various options for Oracle delimiter configuration? Like SET BLOCKTERMINATOR etc. It should work with Flyway. If it doesn't that's a bug that should be fixed as a localized change in the context of the existing Oracle parsing.

Thank you for your email.
We will take that into consideration and work on the Oracle Parser to allow
the use of '/' as delimiter on a new line even for standard statements.
Le mer. 12 févr. 2020 à 08:46, Mikiel Agutu<EMAIL_ADDRESS>a
écrit :

We're not sure about these changes. It looks like you're trying to add a
Flyway feature that clashes with existing SQL language features.
Flyway should support any valid SQL. So if you can run it in SQL client
for your DB engine, it should work. We consider it a bug when this isn't
the case.
We don't want to add a generic way of changing delimiters when some DB
engines already support it in their own way. Instead we should ensure we
support the language features of the SQL flavors we support.
For instance, have you tried the various options for Oracle delimiter
configuration? Like SET BLOCKTERMINATOR
https://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve040.htm#SQPUG067
etc. It should work with Flyway. If it doesn't that's a bug that should be
fixed as a localized change in the context of the existing Oracle parsing.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/flyway/flyway/pull/2670?email_source=notifications&email_token=ANRVFJGPZ2WQQM2MDGTWMFTRCQRWXA5CNFSM4KTLK3HKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELRPSWA#issuecomment-585300312,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANRVFJH5C7AIKK64Z2Y44RTRCQRWXANCNFSM4KTLK3HA
.

 All committers have signed the CLA.


Read and apply to mg local position

[x] contact bm

[x] contact bw

[x] contact jb

[x] receive response from rf

[x] write cover letter

[x] review application

[x] submit application

done


add hero_abilites.json, containing talents and abilities for each hero

for issue https://github.com/odota/dotaconstants/issues/16

I have checked several heroes that the ability ordering for talents does go in level 1, 2, 3, 4 order. have not checked all, but think safe to assume will be like that for all of them

RE #16, there are at least two types of variables - doing this with vague recollection atm - within the ability descriptions text, those with the %name% syntax and... another (sorry, short on time). Basically you have to cross-reference another file to get the variable definitions. In short, it's a pain in the butt. I can try to give it some more time in a couple weeks, but hopefully this is a start.

@austinmilt I don't really understand. If you mean that there's extra ability info you need, which is already in the abilities.json (or similar odota file). then yes, I deliberately didn't include that as don't want to duplicate data. Could refactor files but,
I feel like you either have to have
a) cross-referencing/joining files
b) possibly breaking backwards compatibility
c) Duplicating data across files
maybe I've just misunderstood you though. I've implemented what I needed, so there's no rush. If you get time you can make another issue/pull request for what you still need :)

@ThePianoDentist Sorry for not having a better description. I was referring to the %var% convention, as well as others used in dota_english.txt, e.g. %cleave_radius% (see #16). For those variables, you have to cross-reference other files, such as npc_abilities.txt, which isnt an impossible task, but took me a while to figure out how that was done.


expt: use migra to perform schema diff

What kind of change does this PR introduce?
experimental feature
What is the current behavior?
pgadmin diff is verbose and sometimes incorrect
What is the new behavior?
migra diff is more succinct and mostly correct
Additional context
Add any other context or screenshots.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 195 (0.51%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.7%) to 19.455%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

internal/db/switch_/switch_.go
0
1
0.0%

cmd/db.go
1
4
25.0%

internal/start/start.go
0
3
0.0%

internal/utils/misc.go
0
4
0.0%

internal/db/commit/migra.go
0
183
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.7%

Covered Lines:
971

Relevant Lines:
4991

💛  - Coveralls

This gives me an error on the first db commit:
Creating shadow database...
Error: Error creating shadow database: NOTICE:  database "supabase_shadow" does not exist, skipping

exit status 1

But subsequent runs seem to work fine

@soedirgo nice catch, had to silent notice messages from psql.

Thanks @pocin for helping us to try this out. One of the reasons for running migra and pgadmin side by side is to enlist some help from users to figure out which one works best for their schema and report any issues here.

i am personally using the pgadmin gui and it's spot on.

I tested through pgadmin gui as well, using a simple e-commerce db schema.

I discovered a rather common case where a new table (pet) is added and the old table (order) is updated to reference the new table via foreign key constraint (pet_id) in one migration, the generated script isn't executable due to incorrect ordering.
In addition, we also found that foreign table relations can crash migra and we haven't found a fix. But overall I feel that neither tool does the job perfectly at its current version (we still need to do more testing to confirm this).
As a general rule of thumb, users with simple schema are probably better off using migra as migrations are 10x faster to generate. When new tables are created with specific ownership, some manual editing is required. But hopefully this is less onerous now that migration scripts are concise and more readable.
Users with more complex postgres entities, like foreign tables, are probably better off sticking with pgAdmin.


clearAll Behaviour

In the Pimoroni library clearAll is used to clear the pixel buffer by making setting them all to black (which turns Blinkt! 'off'). In node-blinks it makes the pixels white. I'd like to propose that node-blinkt mirrors the Pimoroni functionality, partly for consistency and partly because clearAll does indicate that the Blinkt! will have and lights cleared.
If this is acceptable then I have a pull request ready.

Oh, I'm sorry, this change got pulled in with the other pull request. I'm happy to back it out if you're not happy with it. My apologies.

This is fine. I agree that the calls should mirror each other. Thanks for all your contributions. :)

Phew! And no thanks necessary. Thank you for putting the library together.


Finish setting up Istio's custom search engine

There are three outstanding tasks around Istio's use of Google's Custom Search Engine:

We need to register our search engine as being for a non-profit. This will let us remove ads from the returned search results.

We need to enable search engine analytics so we can understand what people are looking for on the Istio site.

We need to configure the search engine with various options such as auto-complete text, which improves the end-user's experience.

I've added you (Varun) as an admin of the search engine. Visit google.com/cse for the control panel.

Here's the instructions for labelling the search engine as non-profit/ad-free: https://support.google.com/customsearch/answer/70354?hl=en

I went ahead and disabled ads.
We'll be getting contacted by Google legal people to confirm our non-profit status.


namespace

PHP Parse error:  syntax error, unexpected 'namespace' (T_NAMESPACE) in /public_html/inc/vendor/jaxon-php/jaxon-core/src/Request/Plugin/BrowserEvent.php on line 1
This error occurs , I think it is the version of php so change 5.4 to 5.6 and continues to error.

Hi, can you please show the code that generated this error?

Also, make sure you don't have a class in your application named "Namespace".

<?php
@session_start();
require ('../inc/vendor/autoload.php');
include_once "../inc/model/user.php";
include_once '../inc/adminActions.php';
if (!isset($_SESSION['xx']))
{
  header("Location: ../#!/login");
}else{
	$user=new user($_SESSION['xx']);
	if ($user->usertype != 3) {
		die('You do not have permission');
	}
}
use Jaxon\Jaxon;
$jaxon = jaxon();
$jaxon->register(Jaxon::CALLABLE_OBJECT, new adminAction());
$jaxon->setOption('js.lib.uri', '../js/jaxon-js/src');
$jaxon->setOption('js.app.minify', true);
$jaxon->processRequest();
?>

this code on my pc works , but production is not the only difference is that my pc using php 7 and production  php 5.4

The above code doesn't call the BrowserEvent class. The error may be in the adminAction class or in when you link javascript events to your UI elements.

adminActions.php
`
destroy())
		{
			$xResponse->toastr->success("User deleted");
			$xResponse->script('$("#content").load("../views/adminUsers.php");');
		}else{
			$xResponse->toastr->error("User has not deleted");
		}
		return $xResponse;
	}
}
?>

the strange thing is that in my computer run but on the server check that error.
Sorry for my english.

same problem with xajax
https://openclassrooms.com/forum/sujet/xajax-erreur-a-la-creation-d-une-instance-xajax-81341
solution detail in this post is use another version.

The solution is to use another version of what? PHP or Xajax?
It seems to me that this issue is related to PHP rather than Jaxon. I see no reason why the BrowserEvent class is called in your code.
If you're using a caching system such as Xcache, try flushing or disabling it.

Solution is upload file in binary mode not in ASCII.


spelling error - co-location

@CHDAFNI-MSFT : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Looks good; edited to "colocation" per Microsoft Writing Style Guide.


Add dynamic AT commands for modem chat

Is your enhancement proposal related to a problem? Please describe.
When configuring a modem_cellular instance, some AT commands needs to be dependent on runtime configurations, for instance APN settings. At the moment, this setting comes from Kconfig and there's no possibility to easily customize AT commands run-time.
Describe the solution you'd like
A new AT command macro, for instance MODEM_CHAT_SCRIPT_CMD_RESP_DYNAMIC(_request_cb, _response_match) where the callback is called to provide the required AT command. I can implement this, but before putting way too much time on this I'd like input from maintainer @bjarki-trackunit
Describe alternatives you've considered
Inserting additional states like DIAL1, APN, DIAL2 and use modem_chat_run_script to send it in a state transition, however today all AT commands are static and the above suggestion would potentially solve other cases.
Additional context

Hi, check out https://github.com/zephyrproject-rtos/zephyr/blob/6f6fc4e25c3175d5a2587b0e6f3d858b4c336e99/drivers/gnss/gnss_quectel_lcx6g.c#L696-L718 and https://github.com/zephyrproject-rtos/zephyr/blob/6f6fc4e25c3175d5a2587b0e6f3d858b4c336e99/drivers/gnss/gnss_quectel_lcx6g.c#L351-L403

It is not the prettiest as I have not found a way to make it simpler than this, but it is fully flexible, you can create a complete script with as many matches and chats you want at runtime :)

@bjarki-trackunit Thanks for your input! I've been sitting all day pondering on how to implement the APN settings, adding additional states like dial1, apn and dial2 feels bloated. But modifying modem_chat to support semi-dynamic requests via macros is not trivial. One limitation I think it reasonable is to force the modem to be suspended when using the apn set API.
Would really appreciate your input into implementing this. Thanks!


Type Checking for resolvers seems broken with the latest TypeScript version

Apparently the latest version of TypeScript has stricter type checking. This is causing issues with the basic example on the README...
const resolvers = {
  Query: {
    hello: (_, { name }) => `Hello ${name || "World"}`
  }
};

const server = new GraphQLServer({ typeDefs, resolvers });

This error is reported...
[ts]
Argument of type '{ typeDefs: string; resolvers: { Query: { hello: (_: any, { name }: { name: any; }) => string; };...' is not assignable to parameter of type 'Props<any, any, any>'.
  Types of property 'resolvers' are incompatible.
    Type '{ Query: { hello: (_: any, { name }: { name: any; }) => string; }; }' is not assignable to type 'IResolvers | undefined'.
      Type '{ Query: { hello: (_: any, { name }: { name: any; }) => string; }; }' is not assignable to type 'IResolvers'.
        Property 'Query' is incompatible with index signature.
          Type '{ hello: (_: any, { name }: { name: any; }) => string; }' is not assignable to type '(() => any) | IResolverObject | GraphQLScalarType'.
            Type '{ hello: (_: any, { name }: { name: any; }) => string; }' is not assignable to type 'GraphQLScalarType'.
              Property 'name' is missing in type '{ hello: (_: any, { name }: { name: any; }) => string; }'.

This may be caused by https://github.com/DefinitelyTyped/DefinitelyTyped/issues/21359

@cruhl can you put up a repro?

The reason this fails is because everywhere GraphQLFieldResolver<any, any> is used it should be
GraphQLFieldResolver<any, any, any> instead.

See the generic types here: type GraphQLFieldResolver<TSource, TContext, TArgs = { [argName: string]: any }>
To reproduce use a resolver that doesn't use arguments conforming to { [argName: string]: any }
note that the following won't compile (this might be what's new in typescript)
interface A { foo: string; }
const a: A = { foo: 'bar' };
const b: { [name: string]: string; } = a;

@nmaro Based on that explanation my PR may fix this issue then: https://github.com/prismagraphql/graphql-yoga/pull/369.

@jasonkuhrt I would, but I'm away from a computer for the holidays, sorry! Thanks for looking into this everyone...

#418 also addresses this

any update on this? or  a workaround ?

@cport #418

@cport1 My current workaround is to "erase" the types:
const Query: QueryResolvers.Resolvers = {
	async search() {
		return {
			count: 0,
			hits: []
		};
	}
};

// Work around for https://github.com/prisma/graphql-yoga/pull/418
const resolvers = {
	Query: Object
		.entries(Query)
		.reduce((acc, [k, resolver]) => ({
			...acc,
			[k]: (...args) => resolver(...args)
		}), {})

};

const server = new GraphQLServer({
	typeDefs,
	resolvers
});

If you want to disable type-checking on the resolvers input to the GraphQLServer constructor, you can also do this instead:
const server = new GraphQLServer({
  typeDefs,
  resolvers: resolvers as any
});

graphql-yoga: 1.17.4 still has this issue.
using @nihalgonsalves solution for now, it's not really a fix but a patch.
However I  would really like to learn what is causing this on the interface, anyone care to share their knowledge :) I would really appreciate it.
best