Sparse expression to involve SSE (sum square error) in objective function

I'm now working on a problem with the SSE of linear regression in the objective function. To describe it briefly, I want to include the convex term  y.T * (I - X * ((X.T * X)**(-1)) * X.T) * y in the objective function，where X is a matrix of shape (n, 2), I is an identity matrix of shape (n, n), y is a vector of shape (n, ), and it is the variable to be optimized.
the code below gives a simple example with n=4:
import numpy as np
import cvxpy as cvx
X = np.array([[1,2],[2,3],[3,2.5],[4,4]])
y = cvx.Variable((4,))
I = np.identity(4)

Then I can write the second order term of SSE of linear regression
sse_term = cvx.quad_form(y,I-np.dot(X,np.dot(np.linalg.inv(np.dot(X.T,X)),X.T)))
sse_term.is_convex()

the output is True, cvxpy can identify this term is convex, however, the real problem I'm working on is with much more data compared with this sample problem, if I use solvers like ECOS, the expression above cannot harness the sparsity expression of matrix, and the solving time is intolerable, so I try to express sse_term in a sparsity form
sse_term = cvx.quad_form(y,I)-cvx.quad_form(X.T*y,np.linalg.inv(np.dot(X.T,X)))
sse_term.is_convex()

the output is False, this term can no longer be identified as a convex function.
The question is that if there is a way in cvxpy to write this SSE term using sparse expression, thus to speed up the calculation when using solvers like ECOS and SCS?

What's wrong with sum_squares?

I represented the sse term using sum_squares in the simplified 4 variable example:
import numpy as np
import cvxpy as cvx
X = np.array([[1,2],[2,3],[3,2.5],[4,4]])
y = cvx.Variable((4,))
I = np.identity(4)

sse_term = cvx.sum_squares(y-np.dot(X,np.linalg.inv(np.dot(X.T,X)))*(X.T*y))

sse_term can be identified convex, however the calculation using ECOS is still slow, it seems that  ECOS doesn't harness the sparse representation when I use sum_squares under this circumstance. It takes about 140 seconds to solve my problem (with 1200 variables). But when I use structured matrix input in other problems (such as structured asset covariance in mean-variance problem), ECOS usually gives the solution within 1 second.
btw, the cvxpy version is 1.0.8, and ecos version is 2.0.4

I see. Add a variable z = X.T*y

I tried z = X.T*y, the simplified 4-variable example is as follows:
import numpy as np
import cvxpy as cvx
X = np.array([[1,2],[2,3],[3,2.5],[4,4]])
y = cvx.Variable((4,))
I = np.identity(4)

z = X.T*y
sse_term = cvx.sum_squares(y-np.dot(X,np.linalg.inv(np.dot(X.T,X)))*z)

however, this revise seems can not help to improve calculation efficiency using ECOS.
In my problem, X is a matrix of shape (1200,38), y is a vector of shape (1200,), the calculation time is still above 140 seconds.

I meant declare a variable z (z = Variable(n) and add the constraint z == X.T*y. Literally writing z = X.T*y is the same as before.

That works for me. after declaring variable z, problem can be solved within 1 second. Thanks very much.


Clean field labels in param editor

Will now always show the "secondary" field name in the context menu on right click.
So if it's using the Alt Names, will show the internal name, and vice versa.
The brackets can now be toggled on/off.
Also changed the names of the field name settings in the menu a little.


Suggestions for contributing.md

Suggestions to make the code contribution process for new users more streamlined and logically organized:

Change .[cpu] to ".[cpu]" to fix https://github.com/google/jax/pull/9194. (Side question: Is it necessary to specify [cpu] at all?)
Move Google contributor license agreement to the beginning of Contributing code using pull requests, since it's a prerequesite for contributing code as a whole.
Move Linting and Type-checking to the step before "Make sure the tests pass by running the following command from the top of the repository", since it logically belongs at that stage of the process.
Add the following to the step about running tests: "You can also test a specific function using the -k flag, e.g. pytest -n auto tests/lax_scipy_test.py -k testLogSumExp." This saves users time when testing a specific function.
Move Single-change commits and pull requests to the step that comes before pushing, to ensure users have squashed their commits before pushing.

Thoughts? I can open a PR if desired.

Great ideas, thanks for bringing them up! Regarding your installation question: the [cpu] is required, because otherwise jaxlib is not installed (jaxlib is an optional dependency for JAX because of the fact that specific jaxlibs are required for different architectures).
If you'd like to put together a PR, that would be great! Alternatively, if you don't have the cycles for it right now I'd be happy to take over and implement your ideas. Thanks!

@jakevdp Feel free to do so. Thanks.


[Keepalived VIP] keepalived keeps restarting

I have followed the example to set up keepalived-vip daemonset. But got following error
VRRP child process(6794) died: Respawning
Starting VRRP child process, pid=6796
Registering Kernel netlink reflector
Registering Kernel netlink command channel
Registering gratuitous ARP shared channel
Opening file '/etc/keepalived/keepalived.conf'.
pid 6796 exited due to segmentation fault (SIGSEGV).
  Please report a bug at https://github.com/acassen/keepalived/issues
  and include this log from when keepalived started, what happened
  immediately before the crash, and your configuration file.

  Please report a bug at https://github.com/acassen/keepalived/issues
  and include this log from when keepalived started, what happened
  immediately before the crash, and your configuration file.

  Please report a bug at https://github.com/acassen/keepalived/issues
  and include this log from when keepalived started, what happened
  immediately before the crash, and your configuration file.
VRRP child process(6800) died: Respawning

This is the vip configmap,
# kubectl --namespace=kube-system get configmap vip-configmap -o yaml
apiVersion: v1
data:
  <IP_ADDRESS>: demo/nginx
  <IP_ADDRESS>: demo/tomcat
  <IP_ADDRESS>: demo/httpd
kind: ConfigMap
metadata:
  annotations:
    k8s.co/cloud-provider-config: '{"services":[{"uid":"d2cce28b-e5fd-11e7-889e-005056adb12a","ip":"<IP_ADDRESS>"},{"uid":"bb01f0ca-e610-11e7-889e-005056adb12a","ip":"<IP_ADDRESS>"},{"uid":"7c748d66-e632-11e7-889e-005056adb12a","ip":"<IP_ADDRESS>"},{"uid":"436b64ee-e9ea-11e7-889e-005056adb12a","ip":"<IP_ADDRESS>"},{"uid":"e6b45cf8-ea42-11e7-889e-005056adb12a","ip":"<IP_ADDRESS>"}]}'
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"v1","data":null,"kind":"ConfigMap","metadata":{"annotations":{},"name":"vip-configmap","namespace":"kube-system"}}
  creationTimestamp: 2017-12-21T03:16:33Z
  name: vip-configmap
  namespace: kube-system
  resourceVersion: "1059007"
  selfLink: /api/v1/namespaces/kube-system/configmaps/vip-configmap
  uid: 5898e43e-e5fd-11e7-8187-005056adb12a

And keepalived-vip daemonset,
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  labels:
    name: kube-keepalived-vip
  name: kube-keepalived-vip
  namespace: kube-system
spec:
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      name: kube-keepalived-vip
  template:
    metadata:
      creationTimestamp: null
      labels:
        name: kube-keepalived-vip
    spec:
      containers:
      - args:
        - --services-configmap=kube-system/vip-configmap
        - --watch-all-namespaces=true
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.name
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
        image: gcr.io/google_containers/kube-keepalived-vip:0.9
        imagePullPolicy: IfNotPresent
        name: kube-keepalived-vip
        resources: {}
        securityContext:
          privileged: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /lib/modules
          name: modules
          readOnly: true
        - mountPath: /dev
          name: dev
      dnsPolicy: ClusterFirst
      hostNetwork: true
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
      volumes:
      - hostPath:
          path: /lib/modules
          type: ""
        name: modules
      - hostPath:
          path: /dev
          type: ""
        name: dev
  templateGeneration: 2
  updateStrategy:
    type: OnDelete

It's a bug of keepalived, and fixed in 1.4.1
* Fix segfault if no sorry server configured for a virtual server.
  Issue #751 identified a segfault in vs_end_handler(), and it
  transpires that the forwarding method of the sorry server was being
  checked without first testing that a sorry server had been configured.


States not Updating for H7143

Govee Device SKU
H7143
Govee2MQTT Version
2024.01.24-ea3cd430
Describe the issue
It seems there might be an API issue, but I've noticed a few problems when adjusting settings through the app:

The humidity measured by the appliance isn't reported. There isn't even a device entity for it.
Changes made in the app, like mode (auto, manual), fan speed, and the night light switch, don't seem to update in Home Assistant. Everything appears static except for power toggle updates in the app. However, when the add-on is restarted, the entities sync correctly with the app's settings.

I can manage how things are for now, but I wanted to mention these issues in case they still need to be reported. Please let me know if you need any data or logs to help you further.
Startup Diagnostics
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
GOVEE_API_KEY=REDACTED
GOVEE_LAN_BROADCAST_GLOBAL=true
GOVEE_MQTT_HOST=core-mosquitto
GOVEE_TEMPERATURE_SCALE=F
GOVEE_EMAIL=REDACTED
GOVEE_PASSWORD=REDACTED
GOVEE_MQTT_PASSWORD=REDACTED
GOVEE_LAN_BROADCAST_ALL=true
GOVEE_MQTT_USER=addons
GOVEE_LAN_NO_MULTICAST=false
GOVEE_MQTT_PORT=1883
++ cd /app
++ exec /app/govee serve
[2024-02-11T13:02:11 INFO  govee::commands::serve] Starting service. version 2024.01.24-ea3cd430
[2024-02-11T13:02:11 INFO  govee::commands::serve] Querying platform API for device list
[2024-02-11T13:02:11 INFO  govee::commands::serve] Querying undocumented API for device + room list
[2024-02-11T13:02:12 INFO  govee::service::iot] Connected to IoT: CONNACK code 0: Connection Accepted.
[2024-02-11T13:02:12 INFO  govee::commands::serve] Starting LAN discovery
[2024-02-11T13:02:12 INFO  govee::commands::serve] Waiting 10 seconds for LAN API discovery
[2024-02-11T13:02:12 INFO  govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted.
[2024-02-11T13:02:22 INFO  govee::commands::serve] Devices returned from Govee's APIs
[2024-02-11T13:02:22 INFO  govee::commands::serve] Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143)
[2024-02-11T13:02:22 INFO  govee::commands::serve]   Platform API: devices.types.humidifier. supports_rgb=true supports_brightness=true
[2024-02-11T13:02:22 INFO  govee::commands::serve]                 color_temp=None segment_rgb=None
[2024-02-11T13:02:22 INFO  govee::commands::serve]   Undoc: room=None supports_iot=true ble_only=false
[2024-02-11T13:02:22 INFO  govee::commands::serve]
[2024-02-11T13:02:22 INFO  govee::service::http] http server addr is <IP_ADDRESS>:8056
[2024-02-11T13:02:27 INFO  govee::service::hass] Wait 650ms for hass to settle on 13 entity configs
[2024-02-11T13:02:27 INFO  govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted.
[2024-02-11T13:05:48 INFO  govee::service::hass] powerSwitch for 20416074F46B6F6C: OFF
[2024-02-11T13:05:48 INFO  govee::service::state] Using Platform API to set Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) power state
[2024-02-11T13:05:48 INFO  govee::platform_api] control_device result: ControlDeviceResponse { request_id: "uuid", code: 200, message: "success", capability: ControlDeviceResponseCapability { kind: OnOff, instance: "powerSwitch", value: Number(0), state: Object {"status": String("success")} } }
[2024-02-11T13:05:51 INFO  govee::service::hass] powerSwitch for 20416074F46B6F6C: ON
[2024-02-11T13:05:51 INFO  govee::service::state] Using Platform API to set Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) power state
[2024-02-11T13:05:51 INFO  govee::platform_api] control_device result: ControlDeviceResponse { request_id: "uuid", code: 200, message: "success", capability: ControlDeviceResponseCapability { kind: OnOff, instance: "powerSwitch", value: Number(1), state: Object {"status": String("success")} } }
[2024-02-11T13:05:53 INFO  govee::service::state] Polling Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) to get latest state after control
[2024-02-11T13:05:53 INFO  govee::service::state] requesting update via Platform API Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) Some(DeviceState { on: true, light_on: None, online: None, kelvin: 0, color: DeviceColor { r: 0, g: 0, b: 0 }, brightness: 0, scene: None, source: "AWS IoT API", updated: 2024-02-11T19:05:25.982369420Z })
[2024-02-11T13:05:56 INFO  govee::hass_mqtt::humidifier] mqtt_humidifier_set_target: 20416074F46B6F6C: 60
[2024-02-11T13:05:56 INFO  govee::service::state] Using Platform API to send Number(60) control to Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143)
[2024-02-11T13:05:56 INFO  govee::service::state] Polling Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) to get latest state after control
[2024-02-11T13:05:56 INFO  govee::service::state] requesting update via Platform API Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) Some(DeviceState { on: false, light_on: None, online: None, kelvin: 0, color: DeviceColor { r: 0, g: 0, b: 0 }, brightness: 0, scene: None, source: "AWS IoT API", updated: 2024-02-11T19:05:49.671687845Z })
[2024-02-11T13:05:56 INFO  govee::platform_api] control_device result: ControlDeviceResponse { request_id: "uuid", code: 200, message: "success", capability: ControlDeviceResponseCapability { kind: Range, instance: "humidity", value: Number(60), state: Object {"status": String("success")} } }
[2024-02-11T13:06:00 INFO  govee::service::hass] Command for Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143): {"state":"OFF"}
[2024-02-11T13:06:00 INFO  govee::service::state] Using Platform API to set Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) brightness
[2024-02-11T13:06:01 INFO  govee::service::state] Polling Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) to get latest state after control
[2024-02-11T13:06:01 INFO  govee::service::state] requesting update via Platform API Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) Some(DeviceState { on: true, light_on: Some(true), online: Some(true), kelvin: 0, color: DeviceColor { r: 255, g: 141, b: 11 }, brightness: 5, scene: None, source: "PLATFORM API", updated: 2024-02-11T19:05:53.799235488Z })
[2024-02-11T13:06:02 INFO  govee::platform_api] control_device result: ControlDeviceResponse { request_id: "uuid", code: 200, message: "success", capability: ControlDeviceResponseCapability { kind: Range, instance: "brightness", value: Number(1), state: Object {"status": String("success")} } }
Additional Logs
No response
Home Assistant Logs
No response
Anything else?
No response

Same issue here. I tried reloading the add-on in HACS to no avail, and also to restart local control on each Govee device. Same behaviour. I know there is now a Govee "local control" add-on too but that couldn't find any of my lights either.


Correct the Canonical URL for the validate operation

Description
Update the canonical URL for the validate operation to the correct fhir value as documented
http://hl7.org/fhir/R4B/operation-resource-validate.html
(the Canonical is a specific value documented on the page, not the address of the webpage itself)
Related issues
Addresses #2810
Testing
Manually checked that the output CapabilityStatement resource from the /metadata endpoint returned the correct value.
FHIR Team Checklist

[ ] Update the title of the PR to be succinct and less than 50 characters
[ ] Add a milestone to the PR for the sprint that it is merged (i.e. add S47)
[ ] Tag the PR with the type of update: Bug, Dependencies, Enhancement, or New-Feature
[ ] Tag the PR with Azure API for FHIR if this will release to the Azure API for FHIR managed service (CosmosDB or common code related to service)
[ ] Tag the PR with Azure Healthcare APIs if this will release to the Azure Healthcare APIs managed service (Sql server or common code related to service)
[ ] CI is green before merge
Review squash-merge requirements

Semver Change (docs)
None - minor bug/correction

/azp run


[Lagobot 2.0] part 3: set HOME to temp-dir to enable a few example projects

Summary
Many language toolchains rely on $HOME being set. For example:

csharp and fsharp were failing due to ~/.dotnet not being writable.
golang was failing due to GOCACHE=$HOME/Library/Caches/go-build

In this PR, I set HOME to a temp-dir. This continues to ensure isolation.
I also only do this for examplesrunner, and not for the testrunner so that
we continue to ensure devbox unit tests do not rely on this.
This enables quite a few projects: csharp, fsharp, haskell, poetry, ... and golang (removed the specific GOCACHE code for golang)
I also wrote comments for why the remaining ones are failing and will address
them in followups.
How was it tested?
DEVBOX_DEBUG=0 go test -v -run TestExamples/development_go -count 1 ./testscripts
...
--- PASS: TestExamples (2.09s)
    --- PASS: TestExamples/development_ruby_run_test.test (6.69s)
    --- PASS: TestExamples/development_java_maven_hello-world_run_test.test (14.22s)
    --- PASS: TestExamples/development_csharp_hello-world_run_test.test (17.13s)
    --- PASS: TestExamples/development_java_gradle_hello-world_run_test.test (14.84s)
    --- PASS: TestExamples/development_zig_zig-hello-world_run_test.test (23.72s)
    --- PASS: TestExamples/development_go_hello-world_run_test.test (10.61s)
    --- PASS: TestExamples/stacks_lepp-stack_run_test.test (24.92s)
    --- PASS: TestExamples/development_fsharp_hello-world_run_test.test (18.92s)
    --- PASS: TestExamples/development_python_poetry_poetry-demo_run_test.test (38.52s)
    --- PASS: TestExamples/development_rust_rust-stable-hello-world_run_test.test (43.40s)
    --- PASS: TestExamples/stacks_lapp-stack_run_test.test (24.77s)
    --- PASS: TestExamples/development_haskell_run_test.test (167.18s)
PASS
ok      go.jetpack.io/devbox/testscripts        169.612s

Current dependencies on/for this PR:

main

PR #806   👈

This comment was auto-generated by Graphite.

@gcurtis right right, I was hoping that by having the regular test script unit tests not set HOME that we still catch those situations

I'm going to land in the interests of moving forward, but @loreto happy to chat more if you'd like

@savil ah ok, makes sense. I misunderstood.


Update current state of features for custom resources

Fixes https://github.com/kubernetes/kubernetes/issues/58414#issuecomment-432130595
Page preview: https://deploy-preview-10994--kubernetes-io-master-staging.netlify.com/docs/concepts/extend-kubernetes/api-extension/custom-resources/#advanced-features-and-flexibility
/assign @sttts

/lgtm
/approve


Update name of github action script

Add space so the name updates for MIGraphX Sync to onnxruntime in Actions

https://github.com/ROCmSoftwarePlatform/AMDMIGraphX/actions/workflows/sync-onnxrt-main.yaml
We should also find out why it runs on branches/ PRs.

This needs to get resolved.
Also CI is complaining that line 7 is invalid.
YML file needs to be updated to not use ::set-output.

https://github.com/ROCmSoftwarePlatform/AMDMIGraphX/actions/workflows/sync-onnxrt-main.yaml
We should also find out why it runs on branches/ PRs.

This needs to get resolved.

This needs to get resolved. Also CI is complaining that line 7 is invalid. YML file needs to be updated to not use ::set-output.

This already doesn't use ::set-output

https://github.com/ROCmSoftwarePlatform/AMDMIGraphX/actions/workflows/sync-onnxrt-main.yaml
We should also find out why it runs on branches/ PRs.

This needs to get resolved.

This should just trigger off cron

This already doesn't use ::set-output

Right. Some of the branches are using older versions of .yml file. that's why i saw that.

This already doesn't use ::set-output

Right. Some of the branches are using older versions of .yml file. that's why i saw that.

Oh, I'll check actions. Maybe I need to prune /update some older branches then.


Add filtering option for groupPreview

When you are logged out, there is no way of filtering all groups on karrot. My proposal would be adding a search bar underneath groupPreview's "Which group do you want to join?" headline for when you are logged out.

I would like a location filter, perhaps we can get an approximate location of the user (GeoIP and/or browser location API) and show groups close to the user first.

When you are logged out, there is no way of filtering all groups on karrot. My proposal would be adding a search bar underneath groupPreview's "Which group do you want to join?" headline for when you are logged out.

seems implemented in master, will close.


The new TileSet Atlas Merging Tool does not include Animations

Godot version
v4.0.alpha2.official [79077e6c1]
System information
Windows 10
Issue description
When I try to use the merge tool on a TileSet that uses animations, it only brings the first tile over and gives a bunch of messages and then the animation does not work:
 Cannot create tile. The tile is outside the texture or tiles are already present in the space the tile would cover.
Steps to reproduce

use the merge tool
errors (as soon as select  two atlas to merge) and just the first frame from each animation in merged atlas

Minimal reproduction project
https://github.com/rakkarage/NewTileMapTest

https://github.com/godotengine/godot/issues/57680
also low/no alpha tiles that were ignored by the original "Create Tiles From Non-Toansparent Texture Regions, and added manually are not added to the merged atlas


Ryan

Will be closing this pull request as resolution not found. Will manually update the files and then push to my branch. Raj.


Make deploy environment configurable

What it says on the tin.
Also adds help text for each flag.
Also, closes #45.

All your examples in the code use the Environment name but IIRC the API will accept name or ID. Can we confirm IDs work from sectionctl too?

Can confirm both the string and int values work.


Question Regarding Alamofire

Hello, this manager looks like it does what I need it to do, very nice work and thanks for making this available.
I see that AF is a dependency of your pod, and that you import Network within the source, but in reviewing the sample I noticed your sample class MSTRequest (or similarly named) executes requests using URLSession within the class definition.
So, can you please help me understand what role AF plays in your framework? I have an API framework already built around URLSession and I am not trying to change anything to adopt Alamofire, but perhaps I don’t need to.
Thanks in advance,
Dan

closing, as testing and code review told me what I need to know. Great work, again.


authentication.md: improve description of anonymous API requests

The text uses double-negative which makes it hard to follow what it tries to say.
This change proposes phrasing with better flow, IMHO

/sig auth

Where are we now? Shall we proceed to merge or close this one?

Hi @amosshapira . Is the existing text clear or are you proposing changes?

Hi @amosshapira . Is the existing text clear or are you proposing changes?

Yep all good. Thanks.

OK, @amosshapira. Can you close your pull request?
/close

OK, @amosshapira. Can you close your pull request?
/close

Do you mean "merge and close" or just "close"?

Perhaps you could clarify what action you'd now like to take, in light of the reviews so far?

I'd be happy to see changes come in that are like the ones you suggested @amosshapira
What help can we give you to make that happen?

I already closed my PR. As someone who was reading the K8s docs for the first time, I found the text confusing. I suggested a clarification and was told that I misunderstood the text. I don't know how to improve it from here.


:warning: populate the repo

Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>

Part of https://github.com/kcp-dev/kcp/issues/1943
Part of https://github.com/kcp-dev/kcp/issues/209

/retitle ✨ populate the repo

/test all

/test all

/lgtm
/approve


Failing JTReg: java/io/CharArrayReader/OverflowInRead.java

https://github.com/ibmruntimes/openj9-openjdk-jdk11/blob/d24795242d614819423ba3b48f91e61c7f675a6c/test/jdk/java/io/CharArrayReader/OverflowInRead.java#L1 fails intermittently for JDK11/13 on all platforms

Category: openjdk
Testname: java/io/CharArrayReader/OverflowInRead.java
Jenkins can't seem to find the test but it can find the file OverflowInRead.java, producing a Test results: no tests selected result (perhaps due to the absence of a @Test flag in the main method?).
Ran locally, the test passes without issue on mac, windows and linux for JDK11 & 13 when using the "quick and dirty" method of running tests (e.g. `./java -jar jtreg.jar OverflowInRead.java) but also when running the test as per https://github.com/eclipse/openj9/wiki/Reproducing-Test-Failures-Locally. JDK versions are the same (on jenkins and local)
Yet this test is excluded anyway (probably due to the previously mentioned Jenkins result)
Is this the appropriate place to raise this problem?

Investigate the annotations at the top of the test, do we have the proper settings in our playlists?
example, this test has a @requires tag, we may need to restrict this test to machines with certain capabilities
https://github.com/ibmruntimes/openj9-openjdk-jdk11/blob/d24795242d614819423ba3b48f91e61c7f675a6c/test/jdk/java/io/CharArrayReader/OverflowInRead.java#L27

Good catch, I just googled
@requires
Express a dependence on characteristics of the system being tested, which is supported by jtreg framework. Should not need any manual setting.
To confirm I just run a grinder on linux with jdk_custom=test/jdk/java/io/CharArrayReader/OverflowInRead.java
https://ci.adoptopenjdk.net/view/work in progress/job/Grinder_Sandbox/982/console
03:27:49  Test results: no tests selected

Tried also with 'openjdk_sparcv9_solaris' as it is sun.arch unfortunately the machine has not setup correctly.
https://ci.adoptopenjdk.net/view/work in progress/job/Grinder_Sandbox/984/
To double check could also search another test with @requires tag asking other platforms.

That'll teach me to double check the details at the top of the test instead of diving straight into the code! Thank you both :). Seeing as we don't have any working solaris machines at hyc either, I'll try and test this locally on a solaris VM

Currently waiting for my solaris SPARC approval to go through so until then, there's not much else I can do for this. I'll comment again if I get approved
https://www.oracle.com/solaris/solaris11/downloads/solaris11-vm-templates-downloads.html

A month down the line without approval. I'll send another request.

@smlambert Does adopt distribute solaris-hotspot-jdk11 from the website? I can see a solaris jdk8 but no jdk11

No, we currently do not have a jdk11 solaris build, see https://github.com/AdoptOpenJDK/openjdk-build/issues/1279

Are there any other builds at adopt that are sun.arch?

agree, closing this issue now (since no jdk11 on solaris) or hardware setup for testing jdk8 build.


At startup we need to perform ispn reindexing

@lucasponce please review.

As commented, it could be nice to maintain the flag just in case we might want to skip this ?


ipynb format 4 cannot be imported

new with ipython3

eg https://gist.github.com/anonymous/cfbdcf8787fbd21a5319

https://github.com/twosigma/beaker-notebook/commit/53c33c23f4c82da361e897dc5cfbb4b89631a26a


Added author tags and method descriptions

Coverage decreased (-0.2%) to 91.756% when pulling ff7bb89b58ea1f05e0d804d1025939019d0afe85 on DaoHanLim:master into e37c1c47b64538de9c9fc839b96cab78334ac13e on CS2103JUN2017-T4:master.


[PROPOSAL] Added getter for the loader.

This is a proposal to make the loader public. The reason for this is that, while the Loader's  setEnvironmentVariable method is marked as public, there is no way to access it from a DotEnv instance. This leaves you with two options, either extend the class to expose it, or initiating a new Loader just to give access to the method. This solves that problem.
Use case for this would be needing to add an environment variable programmatically like a define, but still be able to retain in the rest of the code the use of getenv. An example of where I could of used this is at https://github.com/QuintanaTech/site/blob/master/web/env.php.

I'd rather not expose the loader object to users. Thanks though.

Did you need to call a specific method on it?


pull request for e2e test at 01/12/2017 21:15:09

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Keyword to return value found depth in EOS JSON

User should be able to specify an arbitrary path within the JSON and get the value from that location.  This is similar to the Robot Get From Dictionary keyword but with multi-level support.   This is already a part of the AristaLibrary Expect keyword with checks.  We should be able to break that out to its own keyword.

See Get Value at https://github.com/aristanetworks/robotframework-aristalibrary/blob/develop/AristaLibrary/Expect.py#L437


What to input in URL matcher?

My aim is to automatically rename tabs using the URL.
For example: if the URL is cdetsng.company.com/blah/ABCde12345&xyz=1/... , then I want to tab tile to display only the variable part "de12345", because the part before that remains same (like for ABCef67890, the URL will be cdetsng.company.com/blah/ABCef67890). (I can easily put the title as ABC, but that's of no use to me.)
What should go in URL matcher to do this?

Hello @hartnn,
You have to put the write RegExp that will catch the need part of text. Maybe @denilsonsa may help you?
And just write $1 in the title input to display it.
Bests

Thanks for the prompt reply sylouuu!
While we wait for @denilsonsa to check this, I will mention what I tried here :
Title : $1
URL matcher : https\:\/\/cdetsng.company.com\/blah\/\#view\=ABC(.+?)[&\s\/]
doesn't work....
not even just ABC(.+?)[&\s\/]

First you wrote cdetsng.company.com/blah/ABCde12345&xyz=1/, but I believe you meant cdetsng.company.com/blah/#view=ABCde12345&xyz=1/.
I'd try: #view=ABC([^&#/]+)

It occurred to me that the URI is probably changing after the page load, and I don't think the extension supports it yet. @sylouuu try this:

Add this rule:

URL contains developer.mozilla.org
Title: :$1
URL matcher: #(.*)

Open: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Introduction
Click on any of the links from the table of contents (the sidebar to the right). They change the hash portion of the URI, but the extension does not detect it.
Try a different URI: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash#Examples
This time, the extension manages to change the title as expected, but the title will get out of date as soon as we repeat the step 3 on this page.

Hey @denilsonsa,
Thanks for this answer. Waiting for @hartnn reply to know if your suggestion solves his issue.
By the way, you just pointed a bug. Actually, the overall process isn't applied when the hash changes, only on page load.
I should reprocess when this event is fired.
Bests

Yes! That works.
Worked for cdetsng.company.com/blah/#view=ABCde12345
and
cdetsng.company.com/blah/#view=ABCde12345&xyz=1
too.
Thanks, thats what I wanted 👍
Just one minor thing:
I do have links of different such URLs (again only the variable part "de12345"), in every such page.
Now if I am on page with tab title 'de12345' and click on link with variable part as 'ef67890', the tab title does not automatically change with URL, stays the same, unless refreshed.
Though I am fine with that, it would be great if tab title automatically changes with URL without the need of refreshing page.

Glad it's OK. Yes it's a bug a just noticed.

By the way, you just pointed a bug. Actually, the overall process isn't applied when the hash changes, only on page load.

I will plan this fix.
Bests

Worked for cdetsng.company.com/blah/#view=ABCde12345

That's why. You showed us one kind of URL, but were trying to match against a different kind.
ABC(.+?)[&\s\/] means:

The letters ABC,
Followed by any characters one or more times (non-greedy, and save this as a group),
Followed by one of &, whitespace, /.

The part 3 of this regex can't match anything on that URL from the top of this comment, but works on the other URLs you showed in your earlier comments.

Just released 0.16.1. This will fix the window hash detection.
Bests

I think I have to revert this @hartnn @denilsonsa.

Add this rule:

URL contains developer.mozilla.org
Title: test {title}
URL matcher: #(.*)

Open: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash#Examples
Click on some links (hash)

The tab title is not as expected.

The fix takes previous title and runs the rule again through processPage(),
hence we see test written many times.
Instead of taking previous title, can you save and take the first title that came after page load?
Maybe that can fix the issue we see....but you know better :)
PS : Your fix works fine for my set of web pages.

Just reverted previous changes. Sorry.
I'll take a look later about that.
Bests


Null provider for dependency ':app:compileDebugJavaWithJavac' when building

Description
Following up on this issue here: https://github.com/facebook/react-native/issues/38056. I have installed React Native on multiple devices with the same project as I am doing a university project and it works with everyone else's devices except for this case.
Here is the error...

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not determine the dependencies of null.
   > Cannot query the value of this provider because it has no value available.

Here is the gradle scan...
https://scans.gradle.com/s/ltphubeyhh5yw
Here is the results from react-native doctor...
Common
 ✓ Node.js - Required to execute JavaScript code
 ✓ yarn - Required to install NPM dependencies
 ● Metro - Metro Bundler is not running

Android
 ✖ Adb - No devices and/or emulators connected. Please create emulator with Android Studio or connect Android device.
 ✓ JDK - Required to compile Java code
 ✓ Android Studio - Required for building and installing your app on Android
 ✓ ANDROID_HOME - Environment variable that points to your Android SDK installation
 ✓ Gradlew - Build tool required for Android builds
 ✓ Android SDK - Required for building and installing your app on Android

Errors:   1
Warnings: 1

(expected as I am running with ./gradlew build in the android folder instead of using npm start and starting up the emulator)
Here is the output for npx react-native info...
System:
  OS: Windows 11 10.0.22621
  CPU: (4) x64 Intel(R) Pentium(R) Silver N5030 CPU @ 1.10GHz
  Memory: 403.51 MB / 3.82 GB
Binaries:
  Node:
    version: 20.11.1
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.21
    path: ~\OneDrive\Documents\cs317-strath-walker\node_modules\.bin\yarn.CMD
  npm:
    version: 10.4.0
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK:
    API Levels:
      - "33"
      - "34"
    Build Tools:
      - 23.0.1
      - 33.0.0
      - 33.0.1
      - 34.0.0
    System Images:
      - android-33 | Intel x86_64 Atom
      - android-34 | Google APIs Intel x86_64 Atom
      - android-34 | Google Play Intel x86_64 Atom
    Android NDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-231.9392.1.2311.11330709
  Visual Studio: Not Found
Languages:
  Java:
    version: 17.0.10
    path: /c/Users/duffy/.jdks/corretto-17.0.10/bin/javac
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.4
    wanted: 0.73.4
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

I have tried building also with the npx create-expo-app AwesomeProject referenced in these instructions and encounter the same error, so I believe this is a less of a problem with how my project is set up.
This is my first time doing an issue report so if you need any more details/have done anything wrong, I'll get back as soon as I can! Thank you for any help!
Steps to reproduce

Init any react-native project and use npm install to install any dependencies
Go to the android directory (cd android) and run ./gradlew clean and then  ./gradlew build

React Native Version
0.73.4
Affected Platforms
Runtime - Android, Build - Windows
Output of npx react-native info
System:
  OS: Windows 11 10.0.22621
  CPU: (4) x64 Intel(R) Pentium(R) Silver N5030 CPU @ 1.10GHz
  Memory: 403.51 MB / 3.82 GB
Binaries:
  Node:
    version: 20.11.1
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.21
    path: ~\OneDrive\Documents\cs317-strath-walker\node_modules\.bin\yarn.CMD
  npm:
    version: 10.4.0
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK:
    API Levels:
      - "33"
      - "34"
    Build Tools:
      - 23.0.1
      - 33.0.0
      - 33.0.1
      - 34.0.0
    System Images:
      - android-33 | Intel x86_64 Atom
      - android-34 | Google APIs Intel x86_64 Atom
      - android-34 | Google Play Intel x86_64 Atom
    Android NDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-231.9392.1.2311.11330709
  Visual Studio: Not Found
Languages:
  Java:
    version: 17.0.10
    path: /c/Users/duffy/.jdks/corretto-17.0.10/bin/javac
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.4
    wanted: 0.73.4
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Stacktrace or Logs
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not determine the dependencies of null.
   > Cannot query the value of this provider because it has no value available.

Reproducer
https://github.com/FionaLMcLaren/rn-app
Screenshots and Videos

Thank you, @cortinico , for your prompt reply. We are trying with a fresh reinstall as of now and looking into testing it on another machine too. Is there maybe anywhere you know where I could get more help - like if this is a Gradle problem, where would I go?

UPDATE: We were able to fix the issue and get it running by uninstalling android studio and cleaning the device of any android installs and then doing a clean reinstall of android studio by following the "Setting up the Development Environment" guide on React Native's site. To uninstall android studio, we followed this stack overflow's instructions: https://stackoverflow.com/questions/39953495/how-to-completely-uninstall-android-studio-from-windowsv10

UPDATE: We were able to fix the issue and get it running by uninstalling android studio and cleaning the device of any android installs and then doing a clean reinstall of android studio by following the "Setting up the Development Environment" guide on React Native's site. To uninstall android studio, we followed this stack overflow's instructions: stackoverflow.com/questions/39953495/how-to-completely-uninstall-android-studio-from-windowsv10

Great so closing because of this

UPDATE: We were able to fix the issue and get it running by uninstalling android studio and cleaning the device of any android installs and then doing a clean reinstall of android studio by following the "Setting up the Development Environment" guide on React Native's site. To uninstall android studio, we followed this stack overflow's instructions: https://stackoverflow.com/questions/39953495/how-to-completely-uninstall-android-studio-from-windowsv10

Life saver! I was having following version

"react-native": "^0.72.4",
"react-native-reanimated": "3.5.4"
java 17
Latest 2024 Nov Android Studio

And always seeing :app:compileDebugJavaWithJavac with react-native-reanimated when running ./gradlew build.
After I changed from java 17 to java 11, from latest Android Studio to Android Studio Iguana | 2023.2.1 Canary 1, on MacBook Pro m1, it works!
npx react-native run-android build succeed!


ExAllocatePoolZero

[Enter feedback here]
It does not cover any or all the NDIS or StorPort memory allocation functions and if they are going to zero buffers or not.
Should these calls be combined with RtlZeroMemory calls? Are they going to zero memory automatically from Windows 10 2004 releases onwards?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ba2a6e9f-8e86-c441-c9cc-bf9c3718d175
Version Independent ID: 607d12cd-80a2-ff35-d538-330f785e2617
Content: WdkDeprecatedApi (Windows Driver CodeQL Query) - Windows drivers
Content Source: windows-driver-docs-pr/devtest/codeql-windows-driver-wdkdeprecatedapi.md
Product: windows-hardware
Technology: devtest
GitHub Login: @DOMARS
Microsoft Alias: domars

@lousybrit - I have reached out to the dev team for additional information on updated memory allocation for NDIS and Storport and the idea of expanded CodeQL tests.  For an example DDI for NDIS, I see NdisAllocateSharedMemory function (ndis.h). To make sure I'm understanding your input, are there other NDIS Memory allocation DDIs, that you are considering? And do you have an example  memory allocation call for Storport?

We have an NDIS Miniport driver, and it uses the following:
NdisAllocateMemoryWithTagPriority
NdisMAllocateSharedMemoryAsync
NdisMAllocateSharedMemoryAsyncEx
Are these routines being deprecated or mapping to functions like ExAllocatePool2 or ExAllocatePoolZero?
So will the Ndis memory allocations return zeroed memory or not?
Should the driver owners be explicitly calling RltZeroMemory or not? In cases where they do such a thing, is that leading to buffers being zeroed twice on newer Windows OS versions?
It would be good to know what is the status of these routines.
Also, does the zeroing of allocated memory apply to the StorPort allocation routines?
Thanks
Steve
From: Don Marshall @.>
Sent: Monday, November 08, 2021 2:15 PM
To: MicrosoftDocs/windows-driver-docs @.>
Cc: Steve Goddard @.>; Mention @.>
Subject: Re: [MicrosoftDocs/windows-driver-docs] ExAllocatePoolZero (Issue #2956)
@lousybrithttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flousybrit&data=04|01|sgoddard%40vmware.com|213ea486bf6b4b9bb45f08d9a3052921|b39138ca3cee4b4aa4d6cd83d9dd62f0|0|0|637720064852982074|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=zXVWsUYohM%2FpLWt8aHHpZYw9sedBjPtgxe5KtymX5c0%3D&reserved=0 - I have reached out to the dev team for additional information on updated memory allocation for NDIS and Storport and the idea of expanded CodeQL tests. For an example DDI for NDIS, I see NdisAllocateSharedMemory function (ndis.h)https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Fdrivers%2Fddi%2Fndis%2Fnf-ndis-ndisallocatesharedmemory&data=04|01|sgoddard%40vmware.com|213ea486bf6b4b9bb45f08d9a3052921|b39138ca3cee4b4aa4d6cd83d9dd62f0|0|0|637720064852992041|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=PhERRpjbA3E6cOzz0vEoGaeb9UBpNPbeRw%2FIVE5MFuk%3D&reserved=0. To make sure I'm understanding your input, are there other NDIS Memory allocation DDIs, that you are considering? And do you have an example memory allocation call for Storport?

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fwindows-driver-docs%2Fissues%2F2956%23issuecomment-963623352&data=04|01|sgoddard%40vmware.com|213ea486bf6b4b9bb45f08d9a3052921|b39138ca3cee4b4aa4d6cd83d9dd62f0|0|0|637720064852992041|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=72Kr%2B5a4i5QXi8jkt1enfdAdV%2FMad9Ij2Q61w5zazZ4%3D&reserved=0, or unsubscribehttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADTOTGC76DXZL6Q5TDRBMK3ULBDVBANCNFSM5HHK4QTA&data=04|01|sgoddard%40vmware.com|213ea486bf6b4b9bb45f08d9a3052921|b39138ca3cee4b4aa4d6cd83d9dd62f0|0|0|637720064853002004|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=WHTOjEqthuZULqyoVuh%2BjM99npiDqEPh%2BmyF26iOIPA%3D&reserved=0.
Triage notifications on the go with GitHub Mobile for iOShttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04|01|sgoddard%40vmware.com|213ea486bf6b4b9bb45f08d9a3052921|b39138ca3cee4b4aa4d6cd83d9dd62f0|0|0|637720064853002004|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=%2Bwre3DccgF0vWBFpRSyif1ePaq7JN0mEIUSTbdxjwps%3D&reserved=0 or Androidhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04|01|sgoddard%40vmware.com|213ea486bf6b4b9bb45f08d9a3052921|b39138ca3cee4b4aa4d6cd83d9dd62f0|0|0|637720064853011946|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=7iDtYLQyAAXtwxguH1jsp0Jk4n8WPJoHoMMRmWSmIQo%3D&reserved=0.

@lousybrit - Thanks for this PR. The dev team double checked and the popular current day APIs for NDIS and Storport, such as NdisAllocateMemoryWithTagPriority, NdisMAllocateSharedMemoryAsyncEx and StorPortAllocatePool function do zero out memory. So at this point, they will not be expanding the CodeQL query. But is possible that there may be more APIs that will be added, if any that are in active use, are later surfaced. I think you may have mentioned a deprecated version of an API, those are not recommended for use for a number of reasons, such as test coverage and security updates. The recommendation would be to move as quickly as possible to the currently supported memory allocate DDIs. Thanks again for this PR, and your interest in helping everyone to continue to increase the security of their memory allocation code.


rename fork tests

remove the redundant '-test' in fork test names
adds test files matching params required for fork tests of other chains

Lets merge this in next week, after we do the big SOETH deploy


Change border color when not in focus

Description of the new feature / enhancement
Ok I admit I didn't quite get the use case immediately, but ever since WFT I now rely on 100% on the windows calculator and it has made me bat shit crazy.  Saw some blog about it and I'm all in.
It would be nice if the border was different when it has facus vs does not have focus
Scenario when this would be used?
??????????????????????????????????????????
Supporting information
?????????????????????????????????????????

Great idea!
also thanks!  Changed the title to make it crisp


v20220124 suggestion: Option to uninstall or deactivate plugins

might be nice to have?

Most of the plugins support enable/disable.
But it requires some minimal effort in the plugin.
Which one do you refer to not having this?

possibly just an evil tester's (?) thought - when I was fiddling with more-nmea and avnav-history plugins. An option of a clean remove and reinstall would have come in handy.
From a user's point of view it might be useful, if a plugin was installed 'just to try'.


ARTEMIS-2285 Sorting by user column in connections view not working

The value returned by ConnectionsView.getField(con, "users") currently returns a Set which does not implement the Comparable interface thus ActiveMQAbstractView#getComparator() always returns a comparator which evaluates to 0.

looking good. Could you add a unit test?

I will try to provide a test case. stay tuned :)

@gaohoward @michaelandrepearce  I added a test as requested.

@sebthom thanks for this great contributions. merged.


If build command fails raise a helpful exception

Fixes #28
I’m not sure convention wise if there are better ways of outputting this error message, let me know and I can make adjustments.
Once sorted I’ll PR a similar change into jsbundling-rails.

Nope it doesn’t swallow the yarn output, system returns false if the exit code was > 0.
Output when pushing to heroku without the node.js buildpack:
remote:        Bundle complete! 27 Gemfile dependencies, 84 gems now installed.
remote:        Gems in the groups 'development' and 'test' were not installed.
remote:        Bundled gems are installed into `./vendor/bundle`
remote:        Bundle completed (33.05s)
remote:        Cleaning up the bundler cache.
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote:        Running: rake assets:precompile
remote:        Yarn executable was not detected in the system.
remote:        Download Yarn at https://yarnpkg.com/en/docs/install
remote:        Yarn executable was not detected in the system.
remote:        Download Yarn at https://yarnpkg.com/en/docs/install
remote:        rake aborted!
remote:        cssbundling-rails: Command css:build failed, ensure yarn is installed and `yarn build:css` runs without errors
remote:        /tmp/build_54c5dff2/vendor/bundle/ruby/3.0.0/bundler/gems/cssbundling-rails-ae6760770765/lib/tasks/cssbundling/build.rake:5:in `block (2 levels) in <main>'
remote:        /tmp/build_54c5dff2/vendor/bundle/ruby/3.0.0/gems/sentry-ruby-core-4.7.3/lib/sentry/rake.rb:23:in `block in execute'
remote:        /tmp/build_54c5dff2/vendor/bundle/ruby/3.0.0/gems/sentry-ruby-core-4.7.3/lib/sentry/hub.rb:158:in `with_background_worker_disabled'
remote:        /tmp/build_54c5dff2/vendor/bundle/ruby/3.0.0/gems/sentry-ruby-core-4.7.3/lib/sentry/rake.rb:22:in `execute'
remote:        Tasks: TOP => assets:precompile => css:build
remote:        (See full trace by running task with --trace)
remote:
remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to anthem-test.
remote:
To https://git.heroku.com/anthem-test.git
 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/anthem-test.git'


Running Docker image on Mac M1

I do try to run the docker on MacBook with Apple M1 Max chip
The result is bellow. How to approach it?
Mention: I intend only use the DB, not develop, so may be there a simplier (or already compiled) DB engine
docker run -u 0 -p <IP_ADDRESS>:7243:7243 --name ragedb -t dockerhub.ragedb.com/ragedb/ragedb:latest --cap-add=sys_nice
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Killed

Thanks

Hello! Thank you for bringing this up. I tried building a multi architecture docker image and pushing it but it errored out. Just realized I had not pushed to Docker Hub in months! I'll get on it and fix this tomorrow hopefully.

Having a problem building the docker image for the arm64 architecture.
Trying to run this command:
 docker buildx build --platform linux/arm64  -t ragedb/ragedb:latest --push .

But I get this error:
#0 22.76 /usr/bin/ld: /root/.conan/data/luajit/2.1.0-beta3-2022-7-22/_/_/package/115c8fa606e08a868a5ec8073c26c1a096c7263b/lib/libluajit-5.1.so: error adding symbols: file in wrong format
#0 22.77 collect2: error: ld returned 1 exit status
#0 22.80 gmake[2]: *** [CMakeFiles/test_package.dir/build.make:98: bin/test_package] Error 1
#0 22.80 gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/test_package.dir/all] Error 2
#0 22.81 gmake: *** [Makefile:91: all] Error 2
#0 22.85 ERROR: luajit/2.1.0-beta3-2022-7-22 (test package): Error in build() method, line 12
#0 22.85 	cmake.build()
#0 22.85 	ConanException: Error 2 while executing cmake --build '/data/luajit/test_package/build/b4fc232286346fa3046bf24c2af61902d21a6bce' '--' '-j8'
------
Dockerfile:21
--------------------
  19 |     RUN conan profile update settings.compiler.libcxx=libstdc++11 default
  20 |     RUN conan profile update settings.arch=armv8 default
  21 | >>> RUN conan create . 2.1.0-beta3-2022-7-22@
  22 |     RUN git clone https://github.com/ragedb/sol2-recipe.git /data/sol2
  23 |     WORKDIR /data/sol2
--------------------
ERROR: failed to solve: process "/bin/sh -c conan create . 2.1.0-beta3-2022-7-22@" did not complete successfully: exit code: 1

I tried adding this to the dockerfile before any conan builts, but no luck.
RUN conan profile new default --detect
RUN conan profile update settings.compiler.libcxx=libstdc++11 default
RUN conan profile update settings.arch=armv8 default

thanks for trying out,

Re, I saw your last commits. There probably related to this ticket.
Can we have a new docker image ? Like M1 compatible for now

Trying... and failing so far... it shouldn't be this hard, but c'est la vie

After DAYS spent on this: https://hub.docker.com/r/ragedb/ragedb/tags
Try it and let me know if it worked correctly

Do this:
docker pull dockerhub.ragedb.com/ragedb/ragedb:arm64-latest
docker run -u 0 -p <IP_ADDRESS>:7243:7243 --name ragedb -t dockerhub.ragedb.com/ragedb/ragedb:arm64-latest --cap-add=sys_nice
Then open a browser to http://<IP_ADDRESS>:7243

Seems to work!
WARNING: unable to mbind shard memory; performance may suffer:  WARN  2022-10-23 13:03:24,639 [shard 0] seastar - Creation of perf_event based stall detector failed, falling back to posix timer: std::system_error (error system:1, perf_event_open() failed: Operation not permitted) INFO  2022-10-23 13:03:24,640 [shard 0] seastar - Created fair group io-queue-0, capacity rate 2147483:2147483, limit 12582912, rate 16777216 (factor 1), threshold 2000 INFO  2022-10-23 13:03:24,640 [shard 0] seastar - Created io group dev(0), length limit 4194304:4194304, rate<PHONE_NUMBER>:2147483647 INFO  2022-10-23 13:03:24,640 [shard 0] seastar - Created io queue dev(0) capacities: 512:2000/2000 1024:3000/3000 2048:5000/5000 4096:9000/9000 8192:17000/17000 16384:33000/33000 32768:65000/65000 65536:129000/129000 131072:257000/257000 WARNING: unable to mbind shard memory; performance may suffer:  WARN  2022-10-23 13:03:24,649 [shard 2] seastar - Creation of perf_event based stall detector failed, falling back to posix timer: std::system_error (error system:1, perf_event_open() failed: Operation not permitted) WARNING: unable to mbind shard memory; performance may suffer:  WARNING: unable to mbind shard memory; performance may suffer:  WARN  2022-10-23 13:03:24,651 [shard 3] seastar - Creation of perf_event based stall detector failed, falling back to posix timer: std::system_error (error system:1, perf_event_open() failed: Operation not permitted) WARN  2022-10-23 13:03:24,651 [shard 1] seastar - Creation of perf_event based stall detector failed, falling back to posix timer: std::system_error (error system:1, perf_event_open() failed: Operation not permitted) RageDB running on 4 cores. Logging disabled  RageDB HTTP server listening on <IP_ADDRESS>:7243 ...
Thank you very Much! I am gonna try this further. Sorry I cannot help as I have no experience with c++. I am going to try to implement Lua into Java code with the help of https://sourceforge.net/projects/luaj/


Change engines.node version in DE package.json

In DE main package.json file outdated version of node is presented (6.6.0). We should change it to the current LTS (10.15.x).

@korneliakobiela @TomaszLukawskiSam
TAU requires node in version 6.x
WATT requires node in version 10.15.X
Is there a possibility that it is due to TAU dependency?


Feature Request: Attribute Driven Pre/PostProccessors

As attributes can now be generic, I would love the ability to attach pre/post processors as attributes similar to how action filters work in ApiControllers.
I wouldn't mind making the PR if I could get some guidance on how you would like to go about it. Currently the attributes are defined in a lower level project than processors and I am not sure how you would want to approach that.

Thanks for the idea. It has been implemented in v<IP_ADDRESS>-beta. Check it out and send feedback.
Do note that we decided to not place the new attribute in the separate attribute package to avoid some headaches. The main purpose of the separate attribute package was to allow Blazor apps to reference the request DTOs without having to pull in the whole FE package. Since the new attribute will only be referenced from endpoint classes in server-side, it's ok that it doesn't exist in the attribute package.
[HttpPost("/test"),
 PreProcessor<PreProc>,
 PostProcessor<PostProc>]
sealed class Endpoint : Endpoint<Request, Response>
{
    public override Task HandleAsync(Request r, CancellationToken c)
    {
        ...
    }
}


"Cannot open file" error being produced when exporting with web template.

Tested versions

Reproducible in 2ac562cdf8 and later
Not reproducible in 4.4.dev4

System information
Ubuntu 24.04.1 LTS - Firefox 132.0.1 (64-bit)
Issue description
After building a template with scons platform=web target=template_debug and exporting to web. The game errors with "Cannot open file {insert main scene here}".
Steps to reproduce

Open any project
Export to web using build made using scons platform=web target=template_debug
Run export in browser

Minimal reproduction project (MRP)
N/A

Not specific to the web export, all exports seem to be broken (fail to load main scene).
ERROR: Cannot open file 'res://test.tscn'.
   at: load (scene/resources/resource_format_text.cpp:1389)
ERROR: Resource file not found: res://test.tscn (expected type: )
   at: _load (core/io/resource_loader.cpp:332)
ERROR: Failed loading scene: res://test.tscn.
   at: start (main/main.cpp:4203)

Bisects to 2ac562cdf8366876381902a0667fec704e357495


E2E testing for CP4I BOM

Documentation Discrepancies :

[ ] Readme is missing at the Integration which is expected to describe the BOM Level details (https://github.com/cloud-native-toolkit/automation-solutions/tree/main/boms/software/integration)
[ ] Readme needs to be updated with the following changes ( https://github.com/cloud-native-toolkit/automation-solutions/tree/main/boms/software/integration/files )
[ ] No instructions for individual CP4I component to install
[ ] Azure / AWS mentioned as TBD. The instructions are mentioned for Azure but nothing for AWS
[ ] No Instructions mentioned for ODF like storage classes to be passed in the Terraform files
[ ] can we remove the BOM links pointing to (https://stackedit.io/) ?
[ ]  Does the CP4I tested on the AWS / Azure ?
[ ]  Can we also remove the Coming Soon ?
[ ] Can we also remove the "Portworks on AWS and Azure are currently not released, but are coming soon "
[ ] Can we add links for OpenShift IPI instances ?
[ ] Symbolic link for the Runtime.MD needs to be fixed
[ ]  Make sure runtime Colima runtime is replaced with docker or multipass based on today announcement (https://gsicsi.slack.com/archives/C039DRPL77U/p1660840741635939)

When implementing automated testing, we should also regenerate from the latest BOM to include the latest modules and README docs.

Fixed  the reference to stackedit.io links from the readme..

As per discussion with sean, we are NOT expecting the README BOM links to be working inside the Files Folder.

Purpose of this BOM links to be working in the published automation folder such as automation-integration-* , automation-turbonomic-***

Example Usage missing in some MD as well as standard template
Example usage fields needs to be updated
Add Stage/Test links

Common Modules
https://github.com/IBM/automation-integration-platform/blob/main/210-ibm-portworx-storage/terraform/docs/gitops-ibmcloud-operator.md
CP4I Modules
https://github.com/IBM/automation-integration-platform/blob/main/215-integration-platform-navigator/terraform/docs/cp4i-dependency-management.md
https://github.com/IBM/automation-integration-platform/blob/main/215-integration-platform-navigator/terraform/docs/gitops-cp-catalogs.md
https://github.com/IBM/automation-integration-platform/blob/main/215-integration-platform-navigator/terraform/docs/gitops-cp-platform-navigator.md
https://github.com/IBM/automation-integration-platform/blob/main/220-integration-apiconnect/terraform/docs/gitops-cp-apic-operator.md
https://github.com/IBM/automation-integration-platform/blob/main/220-integration-apiconnect/terraform/docs/gitops-cp-apic.md
https://github.com/IBM/automation-integration-platform/blob/main/220-integration-apiconnect/terraform/docs/gitops-cp-catalogs.md
https://github.com/IBM/automation-integration-platform/blob/main/230-integration-mq/terraform/docs/gitops-cp-mq.md
https://github.com/IBM/automation-integration-platform/blob/main/230-integration-mq/terraform/docs/gitops-cp-queue-manager.md
https://github.com/IBM/automation-integration-platform/blob/main/240-integration-ace/terraform/docs/gitops-cp-ace-designer.md
https://github.com/cloud-native-toolkit/terraform-gitops-cp-ace-designer
https://github.com/IBM/automation-integration-platform/blob/main/240-integration-ace/terraform/docs/gitops-cp-ace.md
https://github.com/IBM/automation-integration-platform/blob/main/250-integration-eventstreams/terraform/docs/gitops-cp-es-operator.md
https://github.com/IBM/automation-integration-platform/blob/main/250-integration-eventstreams/terraform/docs/gitops-cp-event-streams.md
https://github.com/IBM/automation-integration-platform/blob/main/260-integration-mq-uniform-cluster/terraform/docs/gitops-cp-mq-uniform-cluster.md
https://github.com/IBM/automation-integration-platform/blob/main/260-integration-mq-uniform-cluster/terraform/docs/gitops-cp-mq.md


Retraining with image size of 500x500

When retraining with my own data set of size 500x500 I get the following error
ValueError: Cannot reshape a tensor with 466560 elements to shape [20,8100,2] (324000 elements) for 'interpret_output/pred_class_probs' (op: 'Reshape') with input shapes: [233280,2], [3].
What is the best way to modify the net and anchors?
H, W, B = 22, 76, 9

@xjoshramos The H and W should be approximately 1/16 of the input image size. However, due to integer rounding caused by padding/striding/down-sampling strategy, the exact number could be a bit different. Given input image size of 500x500, I would suggest starting with 32x32 and go through a few iterations of trial-and-error.
B is just the number of anchors for each grid center, so it really depends on how many objects can be inside one image, the range of object size, etc.

Thank you!

My training data is not all the same size. When training, does the the resizing affect my bounding box ground truth? Is the ground truth change according to the resize or do I need to handle that on my end?

@xjoshramos If you look at this line: https://github.com/BichenWuUCB/squeezeDet/blob/master/src/dataset/imdb.py#L189 You will see that bounding boxes are also scaled accordingly together with the image.


factors in lmer models causes error

This works fine:
hsb1 <- lmer(
  math ~ minority + (minority | sch.id),
  hsb
)
extract_eq(hsb1)

But this:
hsb$minority = factor(hsb$minority)
hsb2 <- lmer(
  math ~ minority + (minority | sch.id),
  hsb
)
extract_eq(hsb2)

yields the error:
Error in `[<-`(`*tmp*`, v[1], v[2], value = greek_vcov) :
  subscript out of bounds

Thanks for the report. I believe this was fixed by #143. Would you mind re-installing with remotes::install_github("datalorax/equatiomatic") and see if you're still getting an error? It's working on my end.
library(equatiomatic)
library(lme4)
#> Loading required package: Matrix
hsb1 <- lmer(
  math ~ minority + (minority | sch.id),
  hsb
)
extract_eq(hsb1)
#> Registered S3 method overwritten by 'broom.mixed':
#>   method      from
#>   tidy.gamlss broom

hsb$minority = factor(hsb$minority)
hsb2 <- lmer(
  math ~ minority + (minority | sch.id),
  hsb
)
extract_eq(hsb2)

Created on 2021-02-10 by the reprex package (v0.3.0)

Yup! That fixed it, thanks!


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_4e9tftsedo/clone/recipe/meta.yaml:15: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_4e9tftsedo/clone/recipe/meta.yaml:20: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_4e9tftsedo/clone/recipe/meta.yaml:30: missing_pip_check: For pypi packages, pip check should be present in the test commands
ERROR: /tmp/abs_4e9tftsedo/clone/recipe/meta.yaml:33: invalid_url: https://github.com/kubeflow/pipelines/tree/master/backend/api/python_http_client : Not reachable: 404
ERROR: /tmp/abs_4e9tftsedo/clone/recipe/meta.yaml:38: missing_documentation: The recipe is missing a doc_url or doc_source_url
ERROR: /tmp/abs_4e9tftsedo/clone/recipe/meta.yaml:38: missing_dev_url: The recipe is missing a dev_url
Errors were found


Add number of visualisations using a dataset as metadata

Not only the maps using a dataset. I think we should add the other metadata as well.
Also note that the actual color on the privacy label is wrong, it should be blue since it's a link.
'X Maps' should open the modal showing which maps (Nice-to-have).

There has been no activity on this issue for more several months. We are closing it. If you think this still needs to be addressed please open a new issue.


Remove nuclear ops evac lockdown

About the PR
Removes evac lockdown if there's nukies(Does not effect warops announcement)
Why / Balance
I've seen this create a lot of problems multiple times.  It removes player agency and gives nukies way too much power during the round. Often causing the crew to be held hostage to some solo flukie. Also creates more admin work than its worth no doubt.
Requirements

[X] I have read and am following the Pull Request and Changelog Guidelines.
[X] I have added media to this PR or it does not require an ingame showcase.

Changelog
:cl:

remove: Nuclear Operative evacuation lockdown

Summary by CodeRabbit

New Features

Enhanced control over shuttle operations during nuclear operative presence.
Simplified round-ending announcements focusing on nuclear threat elimination.

Bug Fixes

Removed redundant references to shuttle lockdown in threat announcements for clarity.

merge speedrun


base-files: back up additional files

This PR add a few additional entries to the list of files that are backed up and restored during an operating system upgrade: /etc/hostname, /etc/hosts, and the ssh host keys.

Apparently I forgot to click the merge button, or just clicked it once and forgot to confirm.


Validate Archival config on startup

Right now the validation of archival config happens after dynamic config override is applied. This leads to incorrect result, for example, archival is enabled in static yaml file and provides a provider section. But, dynamic config overrides the status to be disabled. Then the validation in server.go will fail as it thinks archival is disabled but config for provider specified.
We need to validate the config in static yaml file instead.

https://github.com/uber/cadence/pull/2376


Race condition fixes and optimisations for concurrent lifecycle changes on Service instances

https://hibernate.atlassian.net/browse/HSEARCH-1589
https://hibernate.atlassian.net/browse/HSEARCH-2484

thanks, merged.


Game 1 becomes unresponsive for a single user

Haven't been able to reproduce yet, but here's the situation:

Player A and others start a game
Everything working fine through mine placement, etc.
At some point, Player A tries doing a build action when it is not their turn.
All other players are still able to communicate, but Player A no longer receives game chat updates

Got these errors in the logs from separate instances of the error:
TypeError: Cannot set property 'structure' of undefined
    at applyBuildAction (/Users/andrewalbers/workspaces/alien-empire/game_actions.js:286:60)
    at applyAction (/Users/andrewalbers/workspaces/alien-empire/game_actions.js:104:11)
    at Object.module.exports.resolveGameAction (/Users/andrewalbers/workspaces/alien-empire/game_actions.js:75:21)
    at Object.module.exports.resolveAction (/Users/andrewalbers/workspaces/alien-empire/game_server.js:36:20)
    at Socket.<anonymous> (/Users/andrewalbers/workspaces/alien-empire/app.js:80:30)
    at Socket.EventEmitter.emit (events.js:106:17)
    at Socket.onevent (/Users/andrewalbers/workspaces/alien-empire/node_modules/socket.io/lib/socket.js:330:8)
    at Socket.onpacket (/Users/andrewalbers/workspaces/alien-empire/node_modules/socket.io/lib/socket.js:290:12)
    at Client.ondecoded (/Users/andrewalbers/workspaces/alien-empire/node_modules/socket.io/lib/client.js:193:14)
    at Decoder.Emitter.emit (/Users/andrewalbers/workspaces/alien-empire/node_modules/socket.io/node_modules/socket.io-parser/node_modules/component-emitter/index.js:134:20)

TypeError: Cannot set property 'structure' of undefined
    at applyBuildAction (/Users/andrewalbers/workspaces/alien-empire/game_actions.js:262:60)
    at applyAction (/Users/andrewalbers/workspaces/alien-empire/game_actions.js:104:11)
    at Object.module.exports.resolveGameAction (/Users/andrewalbers/workspaces/alien-empire/game_actions.js:75:21)
    at Object.module.exports.resolveAction (/Users/andrewalbers/workspaces/alien-empire/game_server.js:36:20)
    at Socket.<anonymous> (/Users/andrewalbers/workspaces/alien-empire/app.js:80:30)
    at Socket.EventEmitter.emit (events.js:106:17)
    at Socket.onevent (/Users/andrewalbers/workspaces/alien-empire/node_modules/socket.io/lib/socket.js:330:8)
    at Socket.onpacket (/Users/andrewalbers/workspaces/alien-empire/node_modules/socket.io/lib/socket.js:290:12)
    at Client.ondecoded (/Users/andrewalbers/workspaces/alien-empire/node_modules/socket.io/lib/client.js:193:14)
    at Decoder.Emitter.emit (/Users/andrewalbers/workspaces/alien-empire/node_modules/socket.io/node_modules/socket.io-parser/node_modules/component-emitter/index.js:134:20)

Haven't seen this for months, closing issue


[Event Request] codeunit 99000830 "Create Reserv. Entry". - Add parameter to function OnBeforeUseOldReservEntry

Dear ALAppExtensions Team,
Is it possible to add a parameter to function OnBeforeUseOldReservEntry in codeunit 99000830 ?
-local procedure OnBeforeUseOldReservEntry(var ReservEntry: Record "Reservation Entry"; var InsertReservEntry: Record "Reservation Entry")
+local procedure OnBeforeUseOldReservEntry(var ReservEntry: Record "Reservation Entry"; var InsertReservEntry: Record "Reservation Entry";  CurrSignFactor: Integer)

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


[Checkbox] Warning: Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both)

I use Checkbox with checked prop. I do not have any defaultChecked props set on the component. Why do I see this warning? When I comment out checked prop no warnings are throws. How to get rid of it? I need to use checked prop.
My component.
import Checkbox from 'material-ui/lib/checkbox';

                <Checkbox
                    label={i18n[this.props.data.label]}
                    onCheck={this[this.props.onCheck]}
                    checked={this.props.data.checked}
                    disabled={this.props.data.disabled}
                />

@wzup what is the starting value of  this.props.data.checked?

Ihave the same issue with the checbox component, and the starting checked  props is false

Same problem here with just checked and onCheck props.
I do update the checked prop from a parent component

Same here.
 <Checkbox
                      label="Editable"
                      checked={this.props.editable}
                      onCheck={this.props.toggleEditable}
 />

I update the editable prop from the parent component.
When I toggle, I get the warning.
Everything works as expected though

@teknologist What value are you providing at the initial render?

We have been porting the component on the v1-beta branch. We reimplemented it from the ground-up. While we haven't tested it, I think that the issue is most likely fixed on that branch. Hence, I'm closing it.
Still, we will accept PR fixes until v1-beta takes over the master branch.


you can't use 2 client.

I'm trying to use 2 clients at the same time but I don't know why when I create a player in the second client it creates in the first, any idea?
I used the example in the docs to make it easier for you to understand but I tweak it a bit to accept 2 clients or more:
const { Client } = require("discord.js");
const { Manager } = require("erela.js");
const { tokens } = require('./tokens');

(async () => {
  for (let token of tokens) {

    const client = new Client();

    await client.login(token);

    client.manager = new Manager({
      nodes: [
        {
          host: "localhost",
          port: 41892,
          password: "$2FOYMnktb4Zg0lF2kBuj%YgB@v!BS!CC9$NY!pOVNO95OELvG",
          identifier: client.user.id // <-- I've tried to create an identifier to specify it when creating a player but I think the nodes are separated between the clients already
        },
      ],
      send(id, payload) {
        const guild = client.guilds.cache.get(id);
        if (guild) guild.shard.send(payload);
      },
    })
      .on("nodeConnect", node => console.log(`Node ${node.options.identifier} connected`))
      .on("nodeError", (node, error) => console.log(`Node ${node.options.identifier} had an error: ${error.message}`))
      .on("trackStart", (player, track) => {
        client.channels.cache
          .get(player.textChannel)
          .send(`Now playing: ${track.title}`);
      })
      .on("queueEnd", (player) => {
        client.channels.cache
          .get(player.textChannel)
          .send("Queue has ended.");

        player.destroy();
      });

    client.once("ready", () => {
      console.log("I am ready!");
      client.manager.init(client.user.id);
    });

    client.on("raw", (d) => client.manager.updateVoiceState(d));

    client.on("message", async (message) => {
      if (message.content.startsWith(client.user.id + "play")) {

        const res = await client.manager.search(
          message.content.slice(6),
          message.author
        );

        const player = client.manager.create({
          guild: message.guild.id,
          voiceChannel: message.member.voice.channel.id,
          textChannel: message.channel.id,
          node: client.user.id // <-- here i'm trying to use the node
        });

        player.connect();

        player.queue.add(res.tracks[0]);
        message.channel.send(`Enqueuing track ${res.tracks[0].title}.`);

        if (!player.playing && !player.paused && !player.queue.size)
          player.play();

        if (
          !player.playing &&
          !player.paused &&
          player.queue.totalSize === res.tracks.length
        )
          player.play();
      }
    });

  }
})();

however when i try to play something like<PHONE_NUMBER>60308038play happier using the second client it runs in the first one:
<ref *1> Manager {
  _events: [Object: null prototype] {
    nodeConnect: [Function (anonymous)],
    nodeError: [Function (anonymous)],
    trackStart: [Function (anonymous)],
    queueEnd: [Function (anonymous)]
  },
  _eventsCount: 4,
  _maxListeners: undefined,
  players: Collection(0) [Map] {},
  nodes: Collection(1) [Map] {
    '784823155860308038' => Node { // <-- look here the id of the second client
      options: [Object],
      socket: [WebSocket],
      calls: 1,
      reconnectAttempts: 1,
      manager: [Circular *1],
      stats: [Object]
    }
  },
  initiated: true,
  options: {
    plugins: [],
    nodes: [ [Object] ],
    shards: 1,
    autoPlay: true,
    send: [Function: send],
    clientId: '784823155860308038' // <-- look here the id of the second client
  },
  [Symbol(kCapture)]: false
}

but the one who played music is the first one with id<PHONE_NUMBER>88236831

Have you considered running both clients on separate processes? Because using two clients on the same process can lead to unexpected issues, such as the one presented here.

Closed - we will not edit our code-base to support bad practices.


Question : mapId edge/node

Hello,
I have a question about a data structure. Specifically, I noticed that the mapId attribute is present in the node object, but it seems to be missing from the edge object. I'm trying to understand the reason behind this design choice.
Thank you

Only nodes have a position relative to a specific map (mapId). The start and end position of an edge is defined by the start and end node.


fix: move cache to os.tmpdir()

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

POST and PUT test failure related to https://github.com/postmanlabs/httpbin/issues/614


Temporarily mark CoreML export test as xfail

This will suppress the failure in #1332. When that issue is fixed, we
should remove the xfail.

Thanks,@znation!   I'll xfail those as well on 10.13.


Send multi-line replys or send multiple replies to make it look multi-lined

In providing options to my users to help them with the Luis intent I wanted to add a help command. However it looks all messed up when I try to reply with new-lines. Trying to do it in multiple calls such as this
await context.PostAsync($"Ok! {message} start off the game.");
await context.PostAsync($"{_options}");
only desplays the first. I followed the example of Alarm bot and it works similar. Search on the documentation or some more examples would be great.
Thanks
Kevin

We use markdown, so you need an extra cr to make a new line. See http://docs.botframework.com/connector/message-content/#navtitle
line 1 \n\n
line 2\n\n
The PostAsync should work as long as the second one is not empty.  If you send an empty message it is ignored.

Awesome! thank you, I can't believe I missed that!

I've tried sending multiple replies using the context.PostAsync method and it sends the first message successfully but it never sends the next message. I've verified it is not empty and since I await the method I don't actually hit the break point on the other side of the second await contexts.PostAsync. Is there some function I have to call after a post async to allow me to send another? I'm using a LuisDialog and I'm trying to send back messages before and after processing some information. here is the method that I'm using
` public async Task PlaceMarker(IDialogContext context, LuisResult result)
{
bool invalid = false;
if (_playing)
{
_ticTacToeBoard.PlaceMarker(marker, loc);
_isPlayerTurn = false;
await context.PostAsync($"Interesting Move   \n" +
$"{_ticTacToeBoard}");
if (_ticTacToeBoard.GameOver)
{
SendEndGameNotification(context, _ticTacToeBoard.Winner);
}
_ticTacToeBoard.SelfMove();
await context.PostAsync($"My move is:   \n" +
$"{_ticTacToeBoard}");
_isPlayerTurn = true;
if (_ticTacToeBoard.GameOver)
{
SendEndGameNotification(context, _ticTacToeBoard.Winner);
}
}
}
}
        context.Wait(MessageReceived);
    }`

I've cut out some of the verification code I have to make it a little smaller but appreciate the help.

When you send multiple PostAsyncs, we start up the ConnectorClient to send the message out of line with the initial http request.  By default, this message goes to the production deployment.  We're working to make this configurable, so that it can be sent to the emulator as well.

You can send it to the emulator now.  To do you change your connector client like this:
var client = new ConnectorClient(new Uri("http://localhost:9000/api/messages"), new ClientCredentials());
This will instantiate a client pointing to the port that the emulator is listening on. With this you should be able to send async messages.

So sending two messages in a row is something that is going to be possible at some point? How often are they going to release new betas?

We've published the updated nuget that automatically redirects multiple messages to the emulator if you're running with the emulator.

"\n\n" will create a paragraph break. but if you want just a line change, put two spaces before a single line change: "  \n"

Hello. Whether there is new information with regards to sending several messages in succession is not an emulator, in public channels (webchat, skype, telegram)?

I don't understand your question, can you restate?
Sent from my tumbs

From<EMAIL_ADDRESS>Sent: 5/9/2016 2:24 AM
To<EMAIL_ADDRESS>Cc: Tom<EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: Re: [Microsoft/BotBuilder] Send multi-line replys or send multiple replies to make it look multi-lined (#33)
Hello. Whether there is new information with regards to sending several messages in succession is not an emulator, in public channels (webchat, skype, telegram)?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHubhttps://github.com/Microsoft/BotBuilder/issues/33#issuecomment-217816785

Hello.
Why in the emulator when I call this code:
await context.PostAsync("1");
await context.PostAsync("2");
await context.PostAsync("3");
bot returns all three values (1,2,3)  and webchat/telegram just the first (1)
How do I get all three values ?

any information?

I am having this issue as well. I get a "Access Denied" error.


wal: do not race reader and writer

Fix https://github.com/coreos/etcd/issues/2423

Good job to find this out!

lgtm


feat: allow to $patch writeable computed refs in setup stores

currently its not possible to $patch writeable computed refs in setup stores
example:
const counter = ref(0)
const double = computed({
  get: () => counter.value,
  set: (d) => ( counter.value = d/2 )
})

const useStore = defineStore('main', () => ({
  counter,
  double,
}))

const store = useStore()

// double is missing in store.$state
// store.$state == {counter: 0}

// works, but store.$state.double still isn't there
store.double = 4
// doesn't update the store
store.$patch({double: 8})
// now store.$state.double is 8, but store.double is still 4

repro
so this pr changes the isComputed checks to the isReadonly function from vue,
since computed refs with only a getter are readonly and with a setter they aren't

Thanks but patch can only change state and computed properties are not state so we cannot really go forward with this.

This feature is worked now?


[Firefox] Use float: inline-start/inline-end directly in MOZCENTRAL builds (PR 15968 follow-up)

Currently float: inline-start/inline-end is only supported in Firefox, see https://developer.mozilla.org/en-US/docs/Web/CSS/float#browser_compatibility, and in order to support other browsers we're thus forced to jump through some hoops.
This leads to slightly less nice code in the built-in Firefox PDF Viewer, and this patch attempts to improve the current situation:

Use Stylelint to forbid direct use of float: inline-start/inline-end in the CSS files, to prevent future bugs in the general PDF.js viewer.
Do a build-time replacement, only in MOZCENTRAL builds, to replace the CSS-variables with raw float: inline-start/inline-end instances.

/botio-linux preview

r=me with a rebase; thanks!


Fix smaller wording issues with edgeConnect CRD

Description
Fix smaller wording issues with edgeConnect CRD
How can this be tested?
No need to be tested just wording changed
Checklist

[ ] Unit tests have been updated/added
[x] PR is labeled accordingly with a single label
[x] I have read and understood the contribution guidelines

Codecov Report

Merging #2093 (e230709) into main (280acb5) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main    #2093   +/-   ##
=======================================
  Coverage   63.20%   63.20%
=======================================
  Files         242      242
  Lines       15357    15357
=======================================
  Hits         9706     9706
  Misses       4909     4909
  Partials      742      742


what are the anno_dir and detection_dir?

the directory in /utils/lane_evaluation/CULane/src/evaluate.cpp, which  directory should  I  write about anno_di, detection_dir  and im_dir ?

Please use utils/lane_evaluation/CULane/Run.sh as reference.

Thank you!You are a great man
---Original---
From<EMAIL_ADDRESS>Date: Tue, Sep 3, 2019 11:22 AM
To<EMAIL_ADDRESS>Cc: "xxzcxb1314"<2627084603<EMAIL_ADDRESS>Subject: Re: [harryhan618/SCNN_Pytorch] what are the anno_dir and detection_dir? (#14)
Please use utils/lane_evaluation/CULane/Run.sh as reference.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Download proof

Depends on #2 . This is very hacky, but works for a prototype. Adds some print only styling to make it look a bit like a cert, a button to download a (static) pdf, and a button to print the page

This is what that PDF looks like

And the extra button:


[Question]Using mbtiles offline

Osmdroid ver. 5.6.5
I have "map.mbtiles" file in /sdcard/osmdroid, this file I created with TileMill, zoom between 9 - 12
I have tried several ways to show this map, but only empty screen shown

This methods and some modification I've used
ver. 1
protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_osmdroid);
        mapView = (MapView) findViewById(R.id.map);
        tileSource = new XYTileSource("mbtiles", 9, 12, 256,".png", new String[]{});

        mapView.setTileSource(tileSource);
        mapView.setUseDataConnection(false);
        mapView.setBuiltInZoomControls(true);
        GeoPoint pt = new GeoPoint(61.5372,51.6274);
        IMapController mapViewController = mapView.getController();
        mapViewController.setZoom(10);
        mapViewController.setCenter(pt);
    }

ver. 2
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_osmdroid);
        mapView = (MapView) findViewById(R.id.map);
        tileSource = new XYTileSource("mbtiles", 9, 12, 256,".png", new String[]{});
        File f = new File(Environment.getExternalStorageDirectory() + "/osmdroid", "map.mbtiles");

        IArchiveFile[] files = { MBTilesFileArchive.getDatabaseFileArchive(f) };
        MapTileModuleProviderBase moduleProvider = new MapTileFileArchiveProvider(new SimpleRegisterReceiver(this), tileSource, files);
        mProvider = new MapTileProviderArray(tileSource, null,
                new MapTileModuleProviderBase[]{ moduleProvider }
        );
        mapView.setTileProvider(mProvider);
        mapView.setTileSource(tileSource);
        mapView.setUseDataConnection(false);
        mapView.setBuiltInZoomControls(true);
        GeoPoint pt = new GeoPoint(61.5372,51.6274);
        IMapController mapViewController = mapView.getController();
        mapViewController.setZoom(10);
        mapViewController.setCenter(pt);
    }

ver. 3
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.activity_osmdroid);

    mapView = (MapView) findViewById(R.id.map);

    String name = "map.mbtiles";
    File f = new File(Environment.getExternalStorageDirectory() + "/osmdroid", name);
    if (f.exists()) {
        try {

            //ok found a file we support and have a driver for the format, for this demo, we'll just use the first one

            //create the offline tile provider, it will only do offline file archives
            //again using the first file
            OfflineTileProvider tileProvider = new OfflineTileProvider(new SimpleRegisterReceiver(this),
                    new File[]{f});

            //tell osmdroid to use that provider instead of the default rig which is (asserts, cache, files/archives, online
            mapView.setTileProvider(tileProvider);

            //this bit enables us to find out what tiles sources are available. note, that this action may take some time to run
            //and should be ran asynchronously. we've put it inline for simplicity

            String source = "";
            IArchiveFile[] archives = tileProvider.getArchives();
            if (archives.length > 0) {
                //cheating a bit here, get the first archive file and ask for the tile sources names it contains
                Set<String> tileSources = archives[0].getTileSources();
                //presumably, this would be a great place to tell your users which tiles sources are available
                if (!tileSources.isEmpty()) {
                    //ok good, we found at least one tile source, create a basic file based tile source using that name
                    //and set it. If we don't set it, osmdroid will attempt to use the default source, which is "MAPNIK",
                    //which probably won't match your offline tile source, unless it's MAPNIK
                    source = tileSources.iterator().next();
                    mapView.setTileSource(FileBasedTileSource.getSource(source));
                } else {
                    mapView.setTileSource(TileSourceFactory.DEFAULT_TILE_SOURCE);
                }

            } else {
                mapView.setTileSource(TileSourceFactory.DEFAULT_TILE_SOURCE);
            }
            mapView.setUseDataConnection(false);
            mapView.setBuiltInZoomControls(true);
            IMapController mapController = mapView.getController();
            mapController.setZoom(10);
            GeoPoint startPt = new GeoPoint(61.5797,51.5997);
            mapController.setCenter(startPt);
            mapView.invalidate();
            return;
        } catch (Exception ex) {
            ex.printStackTrace();
        }
 }

How can I use mbtiles offline?

mbtiles offline should just work at long as the tile archives are located at a location where osmdroid can find and read it.

is this still an issue for you?

Hi, thank you for reply.
Yes mbtiles work fine. It was my error in geopoint, map was pointing to wrong place and thus it was empty:)