Problem to write in InfluxDB

Hello,
i have a InfluxDB running on Raspberry PI3B. Installed for collecting Data from OpenHAB to Visualize it in Grafana.
This is running well.
With my Accountdata in the Arduino Scetch i get an connection refused. Here are the Lines from Serial Monitor with Debug.
Can anyone see what the Problem is?

15:44:49.563 -> 5.208 [D] Init
15:44:49.563 -> 5.209 [D]  Library version: 3.7.0
15:44:49.563 -> 5.209 [D]  Device : ESP8266
15:44:49.601 -> 5.209 [D]  SDK version: 2.7.0
15:44:49.601 -> 5.211 [D]  Server url: http://<IP_ADDRESS>:8086
15:44:49.601 -> 5.215 [D]  Org:
15:44:49.601 -> 5.216 [D]  Bucket: openhab_db
15:44:49.601 -> 5.219 [D]  Token:
15:44:49.601 -> 5.221 [D]  DB version: 1
15:44:49.601 -> 5.223 [D]  Connection reuse: false
15:44:49.601 -> 5.226 [D] setUrls
15:44:49.601 -> 5.228 [D]  writeUrl: http://<IP_ADDRESS>:8086/write?db=openhab_db&u=openhab&p=openhab
15:44:49.601 -> 5.235 [D]  queryUrl: http://<IP_ADDRESS>:8086/api/v2/query?&u=openhab&p=openhab
15:44:49.601 -> 5.243 [D] Validating connection to http://<IP_ADDRESS>:8086/ping?verbose=true&u=openhab&p=openhab
15:44:49.632 -> :ref 1
15:44:49.632 -> :er -14 0x00000000
15:44:49.632 -> :cabrt
15:44:49.632 -> :ur 1
15:44:49.632 -> :dsrcv 0
15:44:49.632 -> :del
15:44:49.632 -> 5.276 [E] Error - connection refused
15:44:49.632 -> InfluxDB connection failed: connection refused
15:44:49.632 -> 5.277 [D] setUrls
15:44:49.632 -> 5.277 [D]  writeUrl: http://<IP_ADDRESS>:8086/write?db=openhab_db&u=openhab&p=openhab
15:44:49.666 -> 5.282 [D]  queryUrl: http://<IP_ADDRESS>:8086/api/v2/query?&u=openhab&p=openhab
15:44:49.666 -> 5.289 [D]  writeUrl: http://<IP_ADDRESS>:8086/write?db=openhab_db&u=openhab&p=openhab&precision=s
15:44:49.666 -> 5.298 [D] Reset buffer: writeBuffSize: 3
15:44:58.577 -> pm open,type:2 0

@Maggi80, thanks for the detailed log.

Is OpenHAB running on the same RPI?
Are you able to connect to the InfluxDB server from a different host, eg. from your computer by entering http://<IP_ADDRESS>:8086/ping?verbose=true&u=openhab&p=openhab into the web browser?  You should get a simple JSON with the server version number.

@Maggi80, thanks for the detailed log.

Is OpenHAB running on the same RPI?
Are you able to connect to the InfluxDB server from a different host, eg. from your computer by entering http://<IP_ADDRESS>:8086/ping?verbose=true&u=openhab&p=openhab into the web browser?  You should get a simple JSON with the server version number.

HI vlastahajek,
thanks for your response. I am not a Linux or Raspberry expert, so i am happy with my Installation is running very stable without knowing everything in detail.
I tried to connect the URL you wrote via browser from another desktop PC without success. So i googled about Port and Firewall configuration and found the following commands and tried to scan the port 8086 on the IP and the localhost from the SSH console with different results.
Do i have to change anything?
Thank you!

[11:19:00] openhabian@openHABianPi:~$ nmap -p 8086 <IP_ADDRESS>
Starting Nmap 7.40 ( https://nmap.org ) at 2021-01-07 11:19 CET
Nmap scan report for <IP_ADDRESS>
Host is up (0.00035s latency).
PORT     STATE  SERVICE
8086/tcp closed d-s-n
Nmap done: 1 IP address (1 host up) scanned in 5.76 seconds
[11:19:18] openhabian@openHABianPi:~$ nmap -p 8086 localhost
Starting Nmap 7.40 ( https://nmap.org ) at 2021-01-07 11:19 CET
Nmap scan report for localhost (<IP_ADDRESS>)
Host is up (0.00052s latency).
Other addresses for localhost (not scanned): ::1
PORT     STATE SERVICE
8086/tcp open  d-s-n

HI vlastahajek,
thanks for your response. I am not a Linux or Raspberry expert, so i am happy with my Installation is running very stable without knowing everything in detail.
I tried to connect the URL you wrote via browser from another desktop PC without success. So i googled about Port and Firewall configuration and found the following commands and tried to scan the port 8086 on the IP and the localhost from the SSH console with different results.
Do i have to change anything?
Thank you!

[11:19:00] openhabian@openHABianPi:~$ nmap -p 8086 <IP_ADDRESS>
Starting Nmap 7.40 ( https://nmap.org ) at 2021-01-07 11:19 CET
Nmap scan report for <IP_ADDRESS>
Host is up (0.00035s latency).
PORT     STATE  SERVICE
8086/tcp closed d-s-n
Nmap done: 1 IP address (1 host up) scanned in 5.76 seconds
[11:19:18] openhabian@openHABianPi:~$ nmap -p 8086 localhost
Starting Nmap 7.40 ( https://nmap.org ) at 2021-01-07 11:19 CET
Nmap scan report for localhost (<IP_ADDRESS>)
Host is up (0.00052s latency).
Other addresses for localhost (not scanned): ::1
PORT     STATE SERVICE
8086/tcp open  d-s-n

@Maggi80, please, locate the InfluxDB configuration file, usually placed at /etc/influxdb/influxdb.conf and check parameter bind-address.  If it is different from ::8086 (probably you have <IP_ADDRESS>:8086, or similar), back it up and open it for editing: sudo nano /etc/influxdb/influxdb.conf, and change the value to ::8086.

@Maggi80, please, locate the InfluxDB configuration file, usually placed at /etc/influxdb/influxdb.conf and check parameter bind-address.  If it is different from ::8086 (probably you have <IP_ADDRESS>:8086, or similar), back it up and open it for editing: sudo nano /etc/influxdb/influxdb.conf, and change the value to ::8086.

@vlastahajek , thank you that helps me a lot.
I found the file and changed the line in influxdb.conf from:

bind-address = "localhost:8086"
to
bind-address = ":8086"

Now i get back a connection with my browser from desktop PC with the URL

http://<IP_ADDRESS>:8086/ping?verbose=true&u=openhab&p=openhab

{"version":"1.8.3"}

My RPI 3B runs with OpenHAB 2.5, PIhole, Influxdb, grafana and mosquitto Server on the same RPI without Problems.
Now i will try to connect the ESP8226 again and will give a feedback later.

@vlastahajek , thank you that helps me a lot.
I found the file and changed the line in influxdb.conf from:

bind-address = "localhost:8086"
to
bind-address = ":8086"

Now i get back a connection with my browser from desktop PC with the URL

http://<IP_ADDRESS>:8086/ping?verbose=true&u=openhab&p=openhab

{"version":"1.8.3"}

My RPI 3B runs with OpenHAB 2.5, PIhole, Influxdb, grafana and mosquitto Server on the same RPI without Problems.
Now i will try to connect the ESP8226 again and will give a feedback later.

Everything is fine. Now i can write into the influxdb. Thx

Everything is fine. Now i can write into the influxdb. Thx


Source of benchmark page

Hello,
Where can the source code of the https://benchmarks.llmonitor.com/ page be found? I would like to add more models and more questions.

Hi,
It's here: https://github.com/lunary-ai/llm-benchmarks
Also it's currently not synced with the version online (it's a previous version)


Comm error with RPi connected to PX4.

I have having following issues with my setup and would appreciate the support suggestions.
•	Mission Planner in ROVER mode, just used to view settings and change configuration. Connected over telemetry link to the PX4.
•	RPI-3 running w/Python 3.7 mounted on the rover.
•	Serial interface between the PX4 and RPI.
•	MAVLINK works – used this for testing the serial link
sudo mavproxy.py --master=/dev/serial0 --baudrate 9600 --aircraft MyCopter
o	I can communicate with the Pixhawk to arm and disarm.
•	MAVSDK loaded via pip3 install mavsdk
•	Using mavsdk_server_linux-armv7
•	Starting mavsdk server with the following “./mavsdk_server serial:///dev/serial0:9600"
o	Receiving the following errors. Seems to be re-sending the commands.
pi@raspberrypi:~/MAV1 $ ./mavsdk_server serial:///dev/serial0:9600
[08:09:03|Info ] MAVSDK version: 0.28.0 (mavsdk_impl.cpp:26)
[08:09:03|Debug] New: System ID: 0 Comp ID: 0 (mavsdk_impl.cpp:377)
[08:09:04|Info ] Server started (grpc_server.cpp:43)
[08:09:04|Info ] Server set to listen on <IP_ADDRESS>:44545 (grpc_server.cpp:44)
[08:09:04|Info ] Waiting to discover system on serial:///dev/serial0:9600... (connection_initiator.h:22)
[08:09:04|Debug] Component Autopilot (1) added. (system_impl.cpp:352)
[08:09:04|Warn ] sending again after 0.500717 s, retries to do: 3  (520). (mavlink_commands.cpp:224)
[08:09:05|Warn ] sending again after 1.00155 s, retries to do: 2  (520). (mavlink_commands.cpp:224)
[08:09:05|Debug] Discovered 1 component(s) (UUID: 1) (system_impl.cpp:525)
[08:09:05|Info ] System discovered [UUID: 1] (connection_initiator.h:61)
[08:09:06|Error] Error: UUID changed (system_impl.cpp:206)
[08:09:06|Warn ] Command ack 520 not matching our current command: 511 (mavlink_commands.cpp:142)
[08:09:06|Warn ] sending again after 0.504455 s, retries to do: 3  (511). (mavlink_commands.cpp:224)
[08:09:06|Error] Error: UUID changed (system_impl.cpp:206)
[08:09:06|Warn ] Command ack 520 not matching our current command: 511 (mavlink_commands.cpp:142)
[08:09:06|Debug] Falling back to Gimbal Version 1 (gimbal_impl.cpp:53)
[08:09:06|Error] Error: UUID changed (system_impl.cpp:206)
[08:09:06|Warn ] sending again, retries to do: 3  (NAV_MIN_FT_HT). (mavlink_parameters.cpp:458)
[08:09:07|Warn ] sending again after 1.01098 s, retries to do: 2  (511). (mavlink_commands.cpp:224)
[08:09:07|Warn ] Command ack 511 not matching our current command: 512 (mavlink_commands.cpp:142)
[08:09:07|Warn ] sending again after 0.504672 s, retries to do: 3  (512). (mavlink_commands.cpp:224)
[08:09:07|Warn ] sending again, retries to do: 2  (NAV_MIN_FT_HT). (mavlink_parameters.cpp:458)
[08:09:07|Warn ] Command ack 511 not matching our current command: 512 (mavlink_commands.cpp:142)
[08:09:08|Warn ] sending again after 0.504686 s, retries to do: 3  (520). (mavlink_commands.cpp:224)
[08:09:08|Warn ] sending again, retries to do: 1  (NAV_MIN_FT_HT). (mavlink_parameters.cpp:458)
[08:09:08|Warn ] Command ack 512 not matching our current command: 520 (mavlink_commands.cpp:142)
[08:09:09|Error] Error: UUID changed (system_impl.cpp:206)
[08:09:09|Warn ] sending again after 0.505059 s, retries to do: 3  (528). (mavlink_commands.cpp:224)
[08:09:09|Error] Error: Retrying failed get param busy timeout: NAV_MIN_FT_HT (mavlink_parameters.cpp:474)
[08:09:09|Warn ] Command ack 520 not matching our current command: 528 (mavlink_commands.cpp:142)

It sounds like you are using ArduPilot (ArduRover in this case) and not PX4.
MAVSDK is not compatible with ArduPilot (yet), see: #728.

I think it is against PX4: "Serial interface between the PX4 and RPI."
But it is a rover :innocent:.

@ssarfati: Actually, are you sure that you are using PX4 and not Ardupilot? It is not clear to me if Mission Planner works with PX4. Note that "PX4" is not the same thing as "Pixhawk". You could be running Ardupilot on a Pixhawk, and that would not be PX4 :blush:.

Hi, Sorry for the confusion here. I have only been part of this environment for a few weeks. I did not realize that MAVSDK does not currently work with Ardupilot. Ok, I will switch over to PX4.  I just loaded QGroundControl and loaded V1.10.1 of PX4. The unit boots up, but I don't see the Airframe for Rover. What airframe should I use? The instructions indicates that it does exist. In the meantime, I will just select a quadcopter and test the RPI with the PX4.  Thanks again for your quick support!

Ok, good to know :-). So I'm closing this for now, since it's not a connection issue between MAVSDK and PX4 :innocent:.
About the configuration for the rover, I would suggest you ask in #rover on the PX4 Slack! :blush:

Yes, rover support is very basic in PX4, and I'm not sure how well MAVSDK works with PX4 rover.


404 layout questions

Hi, I noticed a 404 layout was added; sounds good!
However, on making one, my site does have a 404.html but on navigating to a bad URL (i.e. actually 404), I see the plaintext HTTP/GET response and not the 404.html page.
How is this supposed to work? (i.e. how is a user to be redirected to /404.html or have the 404.html page show on any URL not found?)

@plutonium-239 which hosting service are you using? If you are using GitHub pages, cloudflare pages, and readthedocs, they will use 404.html as the 404 page automatically.
You can visit a non-exists page on https://shibuya.lepture.com to see the final result.

I'm using the completely free and blazing fast localhost!! 😅
Sorry, haven't tested it on rtd yet, but I got your point.
Thanks!


Lower code coverage requirements

Requirement - what kind of business use case are you trying to solve?
We want to merge some PRs (#760, #1311) that have very good test coverage, but not 100%, because some error checking code is very hard to test. For example, x509.SystemCertPool() returns an error when run on Windows, and we never test on Windows.
Problem - what in Jaeger blocks you from solving the requirement?
Current .codecov settings prevent merging PRs with less than 100% coverage.
Proposal - what do you suggest to solve the problem or improve the existing situation?
At a recent project video call we discussed that we may want to lower the target levels for PRs and the repo overall.
Any open questions to address
What are the new targets that we want to set? The PR target cannot be too aggressive because with small PRs one missed error check can lower the coverage significantly. Maybe PR=75%? The project target should stay reasonably high, e.g. 90% or even 95%.

Current .codecov settings prevent merging PRs with less than 100% coverage.

I shouldn't prevent. It does show a "red" (failed) icon on the checklist, but the PR should still be mergeable. For reference, this is what I see when a PR for the Operator has a low coverage:

What are the new targets that we want to set?

I think the goal should still be 100% as a rule, but we can use our human judgment and relax this requirement on a per-PR basis.

We could exclude problematic code from coverage. The current approach is not very nice though, it requires moving code to separate file and using build tags:  https://stackoverflow.com/questions/25511076/ignore-code-blocks-in-golang-test-coverage-calculation

@jpkrohling even if red coverage does not block merging, once we merge something with less than 100% these sections will be always red for everyone, so I still think we'd need to adjust levels. If we can exclude certain specific lines explicitly without lowering the targets, it would be a better approach.

Had a look at SO link, but it just says to move untestable code to a file (we do that today for certain files already, eg model.pb.go). However, if we have an otherwise testable function that had an error check inside that we cannot simulate, then such approach doesn't really help. We could introduce certain comment style that will inform the build to exclude the next N lines from coverage calculation.

We could introduce certain comment style that will inform the build to exclude the next N lines from coverage calculation.

That would be perfect. I had only a quick look if there is something and found the exclusion via tags.

We could introduce certain comment style that will inform the build to exclude the next N lines from coverage calculation.

I looked around for any tools that allow that, didn't find any. I don't think it's very easy to achieve, especially if we want the comments/annotations to be recognized at the statement level, e.g.
if err != nil {  # noqa
    // do something
    return err
}

Here, the #noqa annotation applies to the whole if statement. In order to recognize it and manipulate coverprofile files accordingly, we'd need AST parsing.

I think we might be overthinking this. Let's start with the simplest solution that works, even if it's not the perfect one: remove the hard requirement from .codecov.yml. This is how we have in the Jaeger Operator and it works fine: PRs that decrease the coverage will fail the check, but you still can merge them. Otherwise, the check passes (ie, "as good as", or "better" coverage).
Examples:
As good as: https://github.com/jaegertracing/jaeger-operator/pull/354
Better: https://github.com/jaegertracing/jaeger-operator/pull/353
Worse: https://github.com/jaegertracing/jaeger-operator/pull/324
IMO, the goal of having "100% coverage" isn't a good one in the first place. First, because we don't have 100% coverage today, no matter what the badge says (find . -name .nocover). Second, because 100% coverage doesn't mean that good testing is happening. It just means that all lines or conditions are being exercised. Good testing, including input/positive/negative/boundary checks, should be assessed during the code review. Code coverage should only be used as an early indication about the state of the tests for the PR, but not as a requirement.


rust: 1.17

Issue description
Please update to 1.17!
Also, our current version (1.15) doesn't support LLVM 4 :(.
I tried tackling this but the build changed (requires rustbuild now?) and I'm not sure how that should be handled in NixOS.
Steps to reproduce
Technical details

System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)
Nix version: (run nix-env --version)
Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
Sandboxing enabled: (run grep build-use-sandbox /etc/nix/nix.conf)

cc rustc maintainers for input and so this is at least in their inbox: @madjar @cstrahan @wizeman @globin @havvy @wkennington @retrry
If folks have ideas how to handle this but not time, I'd be willing to do the grunt work with some guidance O:).

I had almost working 1.16 with rustbuild, but I didn't have time to finish.
I copied rustbuild configuration from, I think, Fedora RPM spec file for rustc. The only thing with 1.17 is that, I think, vendored libs are only included in tarball. So you would need to change rustbuild to not use fetchgit when building release version.

cc @LnL7 as he is active in rust pull requests :)

Does anyone have a work in progress branch?

My colleague @jcranmer was awesome and put together enough to get a working rustStable! :tada:
With his permission, I've pushed his work to the 'update/rust-1.17' branch.
It'll need some more work (particularly handling the rustBeta/rustNightly bits) but hopefully serves as a good starting point!

@dtzWill let me know if you want help testing/fixing the changes on darwin, altho I don't want to stall the update (a second time) if it's too tricky to get working.

I don't plan on working on this in the near future, FWIW, so this is open to anyone who's to the task! :).

I took it a bit further, with updates to beta and nightly as well, and also a bit of cleaning up. If I don't hit any bugs I'll send a PR (or anyone else who's in a hurry is welcome to test it a bit and send the PR themselves)
https://github.com/anderspapitto/nixpkgs/commits/rust-updates

Do send a PR (even if with a "don't merge" warning) so that we can do review. I, for one, can't wait!

@FlorentBecker https://github.com/NixOS/nixpkgs/pull/26275


Don't throw exceptions in Dblib C callbacks

Throwing exceptions does terrible things to the C stack, which FreeTDS can't handle.
This uses changes in the FreeTDS OCaml bindings to hold onto C exceptions and rethrow
them after FreeTDS finishes.
See https://github.com/kennknowles/ocaml-freetds/pull/33

Hm seeing occasional out of memory errors that might be related to this.. :\


Extension Menu Not Opening

Type: Bug
When I click on extension menu ,it does not show anything except extension at the top, no search bar, nothing pops up either.
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z)
OS version: Windows_NT x64 10.0.22621
Modes:

I recently got this problem and installing extensions have become longer as compared to the previous experience.

Hi @Cargren18
Thank you for opening the issue. Sorry to hear you are experiencing the installation issue. It appears to be specific to VS Code editor and tools. It is best to reach out VS Code team at https://github.com/microsoft/vscode/issues.
-VS Marketplace Team

Ok thanks


Mobile browser getting stuck

Thanks for the cool library. I'm experiencing issues on mobile and would like to know whether there are any limitations or known issues for mobile?
What happens in my case is that it appears as if tensor flow or another internal component gets stuck sometimes on the live face tracking and then the expression detection also gets stuck unless I manually position my phone so that my face fits in the stationary bound box.
I'm using your demo link here https://justadudewhohacks.github.io/face-api.js/webcam_face_expression_recognition and viewing it on a Samsung S9+ running Chrome 73.0.3683.90. I've attached to my mobile via the Chrome debugger and no errors are being reported when I'm experiencing this issue.

I believe I'm seeing a related issue on an iPhone 7 running iOS 12.3.1. The same demo link @die-rooikat  references above freezes on a single frame from my camera after I allow the use of the camera. The UI that is supposed to show over the camera feed never loads and the camera feed never updates. There are no errors in the debugger when connecting to my laptop.

Same issue here @nsbingham. Any update?

Did you find a solution for your question?

No update from my side issue still persists.


I am running crawler4j and the output is to the directory /frontier/. The files in this directory are

00000000.jdb
je.info.0
je.lck
the .jdb file is the only one with data the other three files have zero bytes. I am not sure what to do with this data. I followed a stack overflow link and found out that the .jdb file can be opened by using Berkeley DB. I am on a windows system so its getting hard to build and use Berkeley db. Please suggest if this is the right output.
I downloaded the crawler4j library from the following link.
https://github.com/yasserg/crawler4j/releases

You shouldn't work with this directory. You should consider it as crawler's internal data. You can dump/write your data in whatever format you prefer in the visit method.


Fix for decimal conversion overflow bug

When mapping data from SQL Decimal(38,15) to .net decimal, this driver is throwing Conversion Overflow exception. Bug is already tracked under https://github.com/dotnet/SqlClient/issues/95.
This fix tries to alter this functionality, by rounding to nearest allowable decimal value.

This introduces a silent possible loss of precision.

cc @DavoudEshtehari

This solution solves some issues, though, we will miss the precise value.
So, I agree with @Wraith2. We must not implicitly round data.
For instance,<PHONE_NUMBER>989546_6619485619_32681216 will convert to<PHONE_NUMBER>989546_6619485619_33; as you can see we lost 6 last digits and 2 has rounded to 3.

I'll close this PR for now, due to data loss possibilities as captured by @Wraith2 and @DavoudEshtehari


Fix broken queries on rerun

After the update to the leapp db table names, the rerun command fails. This commit fixes the issue by using the current schema.
jira: https://issues.redhat.com/browse/RHEL-40363

/rerun

/rerun

/leapp-ci build

/packit copr-build

@dkubek Please rebase to fix packit

/packit copr-build

/packit copr-build

The currently failing tests passed in the previous run (no change pushed since) and the time-outing AWS tests are not relevant to this change. Merging.


minor oper unit test fix: cleanup tmp files once done with them

Fix two operator unit tests that were leaving temp directories behind in /tmp...

I was not aware that we had any unit tests creating actual files. Is there a reason that we cannot use InMemoryFileSystem to avoid this? It is used in a fair number of tests and is faster than creating real files.


SuGaR: high-quality meshes from gaussians

https://github.com/Anttwo/SuGaR
Seems like a good thing to produce meshes from gaussians. I think exporting meshes from gaussians is really feature that i and other people are waiting for.

@4eJIoBek1 I am trying to get my head around combining splatfacto with SuGaR. The problem is, that SuGaR uses their own scene model and out of the box it is not possible to use the generated splatfacto output as SuGaR's vanilla GS model.
Unfortunately SuGaR's GS training does not exclude masked regions with RGBA images which I definitely need. I think there are two possibilities:

A PR in the SuGaR model could be created to support splatfacto outputs as their "vanilla training"
A PR in this repository could be created to export meshes from splatfacto based on the methods used in SuGaR

I'm very looking forward to seeing a feature like that!


Add support in ChipTuneEngine for IIR/FIR filters in the instrument definitions.

Not sure we need this anymore.


Building RMF in RHEL 8

Hi,
is building and running RMF in RHEL 8 currently supported?
I tried the main and rel 21.09 branch and encountered issues such as missing dependencies on Eigen/Geometry for packages such as rmf_battery, rmf_traffic_ros.

Hi,
Most Open-RMF packages should build in RHEL 8. Specifically Eigen/Geometry seems to be there for those packages that you've mentioned:

Eigen: https://github.com/ros/rosdistro/blob/076d202447d344ff83a92cab535fcf078370cb6a/rosdep/base.yaml#L878

And you can see the package in RHEL 8 includes Geometry: https://centos.pkgs.org/8/centos-powertools-x86_64/eigen3-devel-3.3.4-6.el8.noarch.rpm.html

The only ohter related package I can see is eigen_cmake_module which is also there in the latest ROS2 distro: https://github.com/ros/rosdistro/blob/076d202447d344ff83a92cab535fcf078370cb6a/rolling/distribution.yaml#L795

It would help if you are more specific about what "issues" you're encountering. Maybe post the output of the error and steps to reproduce?
As a side note, please use the discussions when asking questions instead of opening an issue.

Hi,
I've created the discussion here.

Thanks will close this then and follow up there.


⚠ Bofrost.lu has degraded performance

In 42aaaf8, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 2212 ms

Resolved: Bofrost.lu performance has improved in fa5cab4 after 7 minutes.


ERROR in   Error: HTML5 Canvas is not supported -- Failed to compile

Bug report

What is the current behavior?
When I try to run my dev server, compilation fails and I get the following output :
...
 [0] multi (webpack)-dev-server/client?http://localhost:8080 whatwg-fetch 40 bytes {polyfills} [built]
 [2] multi (webpack)-dev-server/client?http://localhost:8080 ./samples/allsymbols/main.js 40 bytes {allsymbols} [built]
 [3] multi (webpack)-dev-server/client?http://localhost:8080 ./samples/balloons/main.js 40 bytes {balloons} [built]
 [4] multi (webpack)-dev-server/client?http://localhost:8080 ./samples/camera/main.js 40 bytes {camera} [built]
 [5] multi (webpack)-dev-server/client?http://localhost:8080 ./samples/clustering/main.js 40 bytes {clustering} [built]
 [6] multi (webpack)-dev-server/client?http://localhost:8080 ./samples/complexstroking/main.js 40 bytes {complexstroking} [built]
 [7] multi (webpack)-dev-server/client?http://localhost:8080 ./samples/constructivegeometry/main.js 40 bytes {constructivegeometry} [built]
 [8] multi (webpack)-dev-server/client?http://localhost:8080 ./samples/createedit/main.js 40 bytes {createedit} [built]
 [9] multi (webpack)-dev-server/client?http://localhost:8080 ./samples/data/main.js 40 bytes {data} [built]
[10] multi (webpack)-dev-server/client?http://localhost:8080 ./samples/dataformats/main.js 40 bytes {dataformats} [built]
[11] multi (webpack)-dev-server/client?http://localhost:8080 ./samples/dualmap/main.js 40 bytes {dualmap} [built]
[12] multi (webpack)-dev-server/client?http://localhost:8080 ./samples/ecdis/main.js 40 bytes {ecdis} [built]
[13] multi (webpack)-dev-server/client?http://localhost:8080 ./samples/extrudedshapes/main.js 40 bytes {extrudedshapes} [built]
[14] multi (webpack)-dev-server/client?http://localhost:8080 ./samples/firstsample/main.js 40 bytes {firstsample} [built]
[15] multi (webpack)-dev-server/client?http://localhost:8080 ./samples/googleimage/main.js 40 bytes {googleimage} [built]
    + 1102 hidden modules

WARNING in new Worker() will only be bundled if passed a String.
 @ ./lib/luciad/view/strategy/PhotonViewPaintingStrategy.js 28:0-78 104:35-58 111:49-72
 @ ./lib/luciad/view/WebGLMap.js
 @ ./samples/reprojection/main.js

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

ERROR in   Error: HTML5 Canvas is not supported

Child HtmlWebpackCompiler:
     32 assets
    Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
    Entrypoint HtmlWebpackPlugin_1 = __child-HtmlWebpackPlugin_1
    Entrypoint HtmlWebpackPlugin_2 = __child-HtmlWebpackPlugin_2
    Entrypoint HtmlWebpackPlugin_3 = __child-HtmlWebpackPlugin_3
    Entrypoint HtmlWebpackPlugin_4 = __child-HtmlWebpackPlugin_4
    Entrypoint HtmlWebpackPlugin_5 = __child-HtmlWebpackPlugin_5
    Entrypoint HtmlWebpackPlugin_6 = __child-HtmlWebpackPlugin_6
    Entrypoint HtmlWebpackPlugin_7 = __child-HtmlWebpackPlugin_7
    Entrypoint HtmlWebpackPlugin_8 = __child-HtmlWebpackPlugin_8
    Entrypoint HtmlWebpackPlugin_9 = __child-HtmlWebpackPlugin_9
    Entrypoint HtmlWebpackPlugin_10 = __child-HtmlWebpackPlugin_10
    Entrypoint HtmlWebpackPlugin_11 = __child-HtmlWebpackPlugin_11
    Entrypoint HtmlWebpackPlugin_12 = __child-HtmlWebpackPlugin_12
    Entrypoint HtmlWebpackPlugin_13 = __child-HtmlWebpackPlugin_13
    Entrypoint HtmlWebpackPlugin_14 = __child-HtmlWebpackPlugin_14
    Entrypoint HtmlWebpackPlugin_15 = __child-HtmlWebpackPlugin_15
    Entrypoint HtmlWebpackPlugin_16 = __child-HtmlWebpackPlugin_16
    Entrypoint HtmlWebpackPlugin_17 = __child-HtmlWebpackPlugin_17
    Entrypoint HtmlWebpackPlugin_18 = __child-HtmlWebpackPlugin_18
    Entrypoint HtmlWebpackPlugin_19 = __child-HtmlWebpackPlugin_19
    Entrypoint HtmlWebpackPlugin_20 = __child-HtmlWebpackPlugin_20
    Entrypoint HtmlWebpackPlugin_21 = __child-HtmlWebpackPlugin_21
    Entrypoint HtmlWebpackPlugin_22 = __child-HtmlWebpackPlugin_22
    Entrypoint HtmlWebpackPlugin_23 = __child-HtmlWebpackPlugin_23
    Entrypoint HtmlWebpackPlugin_24 = __child-HtmlWebpackPlugin_24
    Entrypoint HtmlWebpackPlugin_25 = __child-HtmlWebpackPlugin_25
    Entrypoint HtmlWebpackPlugin_26 = __child-HtmlWebpackPlugin_26
    Entrypoint HtmlWebpackPlugin_27 = __child-HtmlWebpackPlugin_27
    Entrypoint HtmlWebpackPlugin_28 = __child-HtmlWebpackPlugin_28
    Entrypoint HtmlWebpackPlugin_29 = __child-HtmlWebpackPlugin_29
    Entrypoint HtmlWebpackPlugin_30 = __child-HtmlWebpackPlugin_30
    Entrypoint HtmlWebpackPlugin_31 = __child-HtmlWebpackPlugin_31
    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/allsymbols/main.js] 9.85 KiB {HtmlWebpackPlugin_0} [built]
    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/balloons/main.js] 1.84 KiB {HtmlWebpackPlugin_1} [built]    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/camera/main.js] 5.5 KiB {HtmlWebpackPlugin_2} [built]
    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/clustering/main.js] 4.41 KiB {HtmlWebpackPlugin_3} [built]
    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/complexstroking/main.js] 2.94 KiB {HtmlWebpackPlugin_4} [built]
    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/constructivegeometry/main.js] 5.21 KiB {HtmlWebpackPlugin_5} [built]
    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/createedit/main.js] 7.27 KiB {HtmlWebpackPlugin_6} [built]
    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/data/main.js] 2.87 KiB {HtmlWebpackPlugin_7} [built]
    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/dataformats/main.js] 34.4 KiB {HtmlWebpackPlugin_8} [built]
    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/dualmap/main.js] 8.75 KiB {HtmlWebpackPlugin_9} [built]
    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/ecdis/main.js] 1.66 KiB {HtmlWebpackPlugin_10} [built]
    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/extrudedshapes/main.js] 3.81 KiB {HtmlWebpackPlugin_11} [built]
    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/firstsample/main.js] 3.5 KiB {HtmlWebpackPlugin_12} [built]
    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/googleimage/main.js] 1.94 KiB {HtmlWebpackPlugin_13} [built]
    [./node_modules/html-webpack-plugin/lib/loader.js!./samples/googlemaps/main.js] 2.21 KiB {HtmlWebpackPlugin_14} [built]
        + 1037 hidden modules

    WARNING in new Worker() will only be bundled if passed a String.
     @ ./lib/luciad/view/strategy/PhotonViewPaintingStrategy.js 28:0-78 104:35-58 111:49-72
     @ ./lib/luciad/view/WebGLMap.js
     @ ./node_modules/html-webpack-plugin/lib/loader.js!./samples/reprojection/main.js
i ｢wdm｣: Failed to compile.

If the current behavior is a bug, please provide the steps to reproduce.
I have the following folder structure :

My package.json contains the following setup :
{
  "name": "ria-webpack",
  "version": "1.0.0",
  "description": "Sample project demonstrating RIA integration with webpack",
  "main": "index.js",
  "author": "Luciad NV",
  "license": "MIT",
  "dependencies": {
    "@babel/polyfill": "^7.4.0",
    "whatwg-fetch": "^3.0.0"
  },
  "devDependencies": {
    "@babel/core": "^7.4.0",
    "@babel/preset-env": "^7.4.2",
    "babel-loader": "^8.0.5",
    "clean-webpack-plugin": "^2.0.1",
    "copy-webpack-plugin": "^5.0.2",
    "cross-env": "^5.2.0",
    "css-loader": "^2.1.1",
    "exports-loader": "^0.7.0",
    "extract-text-webpack-plugin": "^3.0.2",
    "file-loader": "^3.0.1",
    "glob": "^7.1.4",
    "html-loader": "^0.5.5",
    "html-webpack-plugin": "^4.0.0-beta.5",
    "raw-loader": "^2.0.0",
    "webpack": "^4.29.6",
    "webpack-cli": "^3.3.0",
    "webpack-dev-server": "^3.2.1",
    "worker-plugin": "^3.1.0"
  },
  "scripts": {
    "build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=development webpack --config webpack.config.js",
    "build:prod": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --config webpack.config.js",
    "start": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=devserver webpack-dev-server --config webpack.config.js"
  }
}

My webpack.config.json contains the following setup :
const isDevserver = process.env.NODE_ENV === 'devserver';
const isDevelopment = process.env.NODE_ENV !== 'production';

const path = require('path');

const CleanWebpackPlugin = require('clean-webpack-plugin');
const HtmlWebPackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
const WorkerPlugin = require('worker-plugin');
const glob = require("glob");

const files = glob.sync("./samples/**/main.js", {nodir : true}).reduce((accumulator, fileName) => {
	const sampleName = path.basename(path.dirname(fileName));
	const relativeFileName = path.relative("./samples", fileName);
	accumulator.entry[sampleName] = fileName;
	accumulator.plugins.push(new HtmlWebPackPlugin({
      template: fileName,
      chunks: ['polyfills', sampleName],
      filename: relativeFileName
    }));
	return accumulator;
}, {
  entry : {
	  polyfills : ["whatwg-fetch"]
  },
  plugins : [...(isDevserver ? [] : [new CleanWebpackPlugin({})]),
    new WorkerPlugin({
      // use "self" as the global object when receiving hot updates.
      globalObject: 'self' // <-- this is the default value
    }),
    new CopyPlugin([{
        from: 'samples/resources',
        to: 'resources'
      }])]
});

module.exports = {
  mode: isDevelopment ? 'development' : 'production',
  entry: files.entry,
  module: {
    rules: [
      {
        test: /\.js$/,
        loader: 'babel-loader',
        exclude: /node_modules/
      },
      {
        test: /\.txt$/i,
        loader: 'raw-loader',
        exclude: /node_modules/
      },
      {
		test: /\.css$/,
		use: ['to-string-loader'].concat(ExtractTextPlugin.extract({
		  use: [
			{
			  loader: 'css-loader', options: {
				minimize: true,
				sourceMap: true
			  }
			}
		  ]
		}))
	  },
      {
        test: /\.html$/,
        use: [
          {
            loader: 'html-loader',
            options: { minimize: !isDevelopment }
          }
        ]
      },
      {
        test: require.resolve('./samples/template/init.js'),
        use: 'exports-loader?resetMapSize,disableUI,UILoaded,queryParameters,bootstrapUI'
      },
      {
        test: /\.(woff(2)?|ttf|eot|svg|png|jpg|jpeg|gif)(\?v=\d+\.\d+\.\d+)?$/,
        use: [{
          loader: 'file-loader',
          options: {
            name: '[name].[ext]'
          }
        }]
      }
    ]
  },
  resolve: {
    extensions: ['.js', '.css'],
    modules: [
	    path.resolve(__dirname, 'samples'),
	    path.resolve(__dirname, 'lib'),
	    'node_modules'
	  ]
  },
  devtool: "source-map",
  output: {
    filename: isDevelopment ? '[name].js' : '[name].[hash].js'
  },
  optimization: {
    splitChunks: {
      chunks: 'all'
    }
  },
  plugins: files.plugins
};

The lib folder contains only the LuciadRIA JavaScript library which I am unfortunately not allowed to share here.
The sample folder contains mostly sub-folders that contain at least an index.html and a main.js.
One of the most basic samples has the following HTML...
<!DOCTYPE html>

      <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
      <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
      <title>Balloon</title>
      <link href="../../samples/template/css/sample-single.css" rel="stylesheet" type="text/css">

Balloon

      The Balloon sample illustrates the use of balloon widgets on the map.
      The contents of a balloon can be specified with a string or with valid HTML.

               Add balloons to the map by using the
               showBalloon()
               method. Remove them from the map by calling
               hideBalloon()
               .

      The contents of a balloon can be specified with a string or with valid HTML.

      Balloons can be anchored to an object (for instance, a Feature from the model which is visualized by a
      FeatureLayer). Updates of the location of the feature cause the balloon to update as well.

               Balloons are styled with the
               samples/common/balloon/luciad-balloon.css
               style-sheet. This stylesheet may be replaced with your own custom stylesheet.

And it has the following JS code :
import PaintRepresentation from "luciad/view/PaintRepresentation";
import LayerConfigUtil from "../common/LayerConfigUtil";
import sampleTemplate from "../template/sample";

  var map = sampleTemplate.makeMap();
  var smallWorldLayer = LayerConfigUtil.addWorldLayer(map);

  // CITIES
  var citiesLayer = LayerConfigUtil.addCitiesLayer(map);
  citiesLayer.setPaintRepresentationVisible(PaintRepresentation.LABEL, false);

  LayerConfigUtil.addLonLatGridLayer(map);

  //#snippet ballooncontentprovider
  function contentProvider(prefix, property) {
    return function(o) {
      return prefix + (o.properties[property] || "no property");
    };
  }

  //#endsnippet ballooncontentprovider

  // Create a balloon Content provider for the world layer
  smallWorldLayer.balloonContentProvider = contentProvider("COUNTRY: ", "name");

  //#snippet ballooncontentprovider
  // Create a balloon content provider for the cities layer, which creates HTML
  // for cities with more than 1.000.000 inhabitants and uses the "default"
  // content provider if not.
  var citiesDefaultProvider = contentProvider("CITY: ", "CITY");
  citiesLayer.balloonContentProvider = function(o) {
    var cityProps = o.properties, node;
    if (cityProps.TOT_POP > 1000000) {
      node = document.createElement("ul", {});
      for (var key in cityProps) {
        if (cityProps.hasOwnProperty(key) && key !== "uid") {
          var item = document.createElement("li");
          item.innerHTML = key + ": " + cityProps[key];
          node.appendChild(item);
        }
      }
      return node;
    } else {
      return citiesDefaultProvider(o);
    }
  };
  //#endsnippet ballooncontentprovider

  //fit on the cities layer
  var queryFinishedHandle = citiesLayer.workingSet.on("QueryFinished", function() {
    //#snippet layerFit
    map.mapNavigator.fit({
      bounds: citiesLayer.bounds,
      animate: true
    });
    //#endsnippet layerFit
    queryFinishedHandle.remove();
  });

What is the expected behavior?
The project I'm working on consists of sample code for LuciadRIA. I expect the samples to just work, which basically means that it should display a canvas with a 2D or 3D map on it, and a UI to interact with the map.

Other relevant information:
webpack version:  4.40.2
Node.js version: 10.16.3
Operating System: Windows 10

Incorrect HTML webpack plugin config. Pass a HTML file as template.

Answer above


Add appearance="label" to notes

Would like to make a distinction between a readonly text input that shows the input field and a readonly text input that does not show the input field. (1) The use case for showing the field is when a calculation or default value is attached to the readonly text input. (2) The use case for not showing the field is when the user just wants to add some explanatory text or media.
Thus, I think it would be nice if these two questions get a slightly different XForm output:

type
name
readonly

note
n

text
r
yes

I am thinking we could use the existing appearance "label" and let pyxform add this automatically for questions with type="note". This way we won't have to re-invent anything.
If implemented, the following would get exactly the same XForm output:

type
name
appearance
readonly

note
n1

note
n2
label

text
r
label
yes

Thoughts?
P.S. So far Enketo currently deals with both use cases (1) and (2) by hiding the text input field when the value is empty. However, this wouldn't be (as) sensible for complex readonly widgets (such as geopoint or distress) where the user likely intends for the widget to be shown at all times. So I think it wasn't the right decision in Enketo.

Probably best for users if the client takes care of determining this.


Remove waitForProcess in finalizer

It was causing hangs running test suites in Windows.
Not sure why it was included, i've tried to make it works but only removing it did it

This was added so that the servers can shut down themselves after the exit notification rather than relying on lsp-test to kill the process. I think it was added to address #70
Could that the mean that ghcide/hls aren't exiting properly on  Windows?

Could that the mean that ghcide/hls aren't exiting properly on Windows?

I did not see any symptom of that using them, in lsp mode or console mode.
However, int the commit f2ff4d5, i see that the time out was changed from 1^6 to 10^6, did you test if only that change fixed the issue?
Afaiu timeout msgTimeoutMs (runSession' exitServer) should give the server enough time to shutdown (with exitServer), once the timeout was fixed.
The finally block should be a final resort, for when the server did not exit succesfully in that time, so that code block should stop it immediately and forcefully.

@jneira Hm you're right, this is a bit confusing. The call to exitServer just sends the shutdown request and exit notification, so should be pretty fast. But I think that second block in the finally function is indeed meant to run every time, as we still need to stop the listener thread and wait for the server to terminate (timeout msgTimeoutMs (waitForProcess serverProc)).
But if the server doesn't terminate, then that second timeout will kick in and skip it, moving onto the cleanupProcess server which should forcefully stop it.
If it's hanging on windows then that would mean that the timeout here isn't actually cancelling the waitForProcess serverProc? Is this a process related bug perhaps?

I should point out that there is both waitForProcess and createProcess as we want to try and let the server exit normally first, before just force killing the server with createProcess. This PR would mean that it would always kill the server which would undo #70

If it's hanging on windows then that would mean that the timeout here isn't actually cancelling the waitForProcess serverProc? > Is this a process related bug perhaps?

Probably
Could we simply make the process sleep the timeout instead waitForProcess and then kill it? The effect would be the same.

@jneira that sounds good, might make the tests a bit slower, but I'm also happy if you want to just to kill it if you can make it #ifdefed on the platform being Windows only
Out of curiosity though, does this only happen with local tests, or is there a particular branch it's hanging on? ghcides testsuite seems to be ok on Windows https://github.com/haskell/ghcide/runs/1128059426

Out of curiosity though, does this only happen with local tests, or is there a particular branch it's hanging on? ghcides testsuite seems to be ok on Windows https://github.com/haskell/ghcide/runs/1128059426

i am afraid that the test suite is not being executed for windows, note the --no-run-tests here: https://github.com/haskell/ghcide/blob/master/.azure/windows-stack.yml#L59 and the issue https://github.com/haskell/ghcide/issues/474

that sounds good, might make the tests a bit slower, but I'm also happy if you want to just to kill it if you can make it #ifdefed on the platform being Windows only

Yeah, it will wait after the process has finished , in most cases.
Maybe i'will do both: sleep but only in windows :smiley_cat:

I think this issue is about this: https://github.com/haskell/process/issues/107

Finally i opted to remove it entirely, with the hope that if it ends to be needed in windows, we will find a way to make it work

Thanks! Do you want a release for this?

No at this moment, thanks!


Added support for custom path for .env file

It's because we get all of our secrets from an external system, so in order to get the environment variables when running in Kubernetes we have to do it like this

@karpikpl So it seems like if we want it to work in the other Dockerfile as well, then the easiest would be to change from nginx:1.27 to nginxinc/nginx-unprivileged:1.27.
They are basically the same, main difference is that it runs on port 8080 instead of 80 - you can read more here: https://hub.docker.com/r/nginxinc/nginx-unprivileged/
Let me know if you want me to update this pull request with these changes as well.
The changes will be like so:
function addTwoNumbers (num1, num2) {
-  return 1 + 2
+  return num1 + num2
}

Old:
# Stage 1: Build the Vue.js application
FROM node:22 AS build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build

# Stage 2: Serve the application with Nginx
FROM nginx:1.27 AS production-stage

COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY --from=build-stage /app/dist/assets/app-config.js /usr/share/nginx/html-template/app-config.template.js
COPY ./docker-entrypoint.d/*.sh /docker-entrypoint.d/
RUN chmod +x /docker-entrypoint.d/*.sh
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

New:
# Stage 1: Build the Vue.js application
FROM node:22 AS build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build

# Stage 2: Serve the application with Nginx
FROM nginxinc/nginx-unprivileged:1.27 AS production-stage

COPY --chown=101:101 --from=build-stage /app/dist /usr/share/nginx/html
COPY --chown=101:101 --from=build-stage /app/dist/assets/app-config.js /usr/share/nginx/html-template/app-config.template.js
COPY --chown=101:101 ./docker-entrypoint.d/*.sh /docker-entrypoint.d/
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]

@karpikpl So it seems like if we want it to work in the other Dockerfile as well, then the easiest would be to change from nginx:1.27 to nginxinc/nginx-unprivileged:1.27.
They are basically the same, main difference is that it runs on port 8080 instead of 80 - you can read more here: https://hub.docker.com/r/nginxinc/nginx-unprivileged/
Let me know if you want me to update this pull request with these changes as well.
The changes will be like so:
# Stage 1: Build the Vue.js application
FROM node:22 AS build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build

# Stage 2: Serve the application with Nginx
- FROM nginx:1.27 AS production-stage
+ FROM nginxinc/nginx-unprivileged:1.27 AS production-stage

- COPY --from=build-stage /app/dist /usr/share/nginx/html
+ COPY --chown=101:101 --from=build-stage /app/dist /usr/share/nginx/html
- COPY --from=build-stage /app/dist/assets/app-config.js /usr/share/nginx/html-template/app-config.template.js
+ COPY --chown=101:101 --from=build-stage /app/dist/assets/app-config.js /usr/share/nginx/html-template/app-config.template.js
- COPY ./docker-entrypoint.d/*.sh /docker-entrypoint.d/
+ COPY --chown=101:101 ./docker-entrypoint.d/*.sh /docker-entrypoint.d/
- RUN chmod +x /docker-entrypoint.d/*.sh
- EXPOSE 80
+ EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]


Misleading formatting of version number in error message "PostgREST needs at least 90300"

I was getting this error message when I started up PostgREST:
Cannot run in this PostgreSQL version, PostgREST needs at least 90300
Thinking that it meant version 9.0.3, I disregarded it because I am running 9.2 and went off the garden path looking for some other cause of the error.
User ruslantalpa put me right, but it may help some other poor soul if minimumPgVersion could be better formatted to show the major and minor versions more sensibly.

I can see how this is confusing. I'll look for a way to format the version better.


Find better names for the structs that wrap MuJoCo's C pointers.

Currently we use Model and Data to wrap a C pointer to mjModel and mjData structs, as this better follows Julia's struct naming guidelines. However, these names are not overly descriptive. They likely should be renamed at some point in the future, before a public release.

I think the more we can align the names of structs and functions with the python bindings, the better it will be (within reason). We want it to be easy to go between the C, Python, and Julia interfaces.

We can add Engine in the visualiser to the list. A more descriptive name would probably be more appropriate here.

@JamieMair should we close this issue? I’ve gotten used to them now and it’s pretty reasonable to use Model and Data.


Help with JAX, PyTorch, and TensorFlow bindings

I don't really use these libraries (yet!) so I'm not sure exactly what the use cases would look like. Any help would be appreciated.

JAX This interface is probably the most mature, but I'd love to add XLA primitives (#1). This would involve working out a traceable forward diff op, I think. More trouble than its worth? Maybe not.
PyTorch The ops all work and are tested, but I don't really understand how nn.Modules work so it's probably all a mess.
TensorFlow Lives in this repo. It doesn't follow the recommended build process, but I think I know where to go with this one. Long run: maybe it can be combined with JAX if we work out the XLA primitive stuff.

Hi @dfm,
I'm working with the jax interface and it's great! Quick question: are you still considering supporting forward mode differentiation with jax? I'm trying to use celerite2 in combination with another model optimized for forward diff, so I'm hitting a  NotImplementedError: Batching rule for 'celerite2_factor_jvp' not implemented error, which brought me here. Thanks!

In fact there was never a plan to support forward diff and the "traceable" op referred to in this issue does exist because that's how jax operates :D Supporting forward diff is not high priority for me, but feel free to open an issue as a feature request making a specific argument for it or I'd be happy to help with a PR if you're feeling ambitious (it would probably not be straightforward).

Thanks for the context, @dfm! After investigating all morning, I think I was misinterpreting a bug in the model implementation for a forward-mode requirement anyway (long story 😅). So forward diff might not be necessary for me after all. Sorry for the noise.


Fix unsoundness in query iteration API

As any iterator can be dropped before the references it yielded, it is unsound to release our borrows on the components in the Drop implementation, they must be held for as long as the references can live, specifically for the duration of the lifetime 'q.
There are two options two resolve this:

Use a closure like implemented in this PR to put a drop guard on the stack which will release the borrows when the closure returns or unwinds. Of course, the closure looks weird/noisy as an API, e.g.

query.iter(world, |iter| {
    for (pos, vel) in iter {
        pos.0 += vel.0;
    }
});

Use an intermediate object that encapsulates the borrows and from which an iterator can be derived. Calling API looks less weird, but the intermediate object is also harder to explain to a reader IMHO. And it has the additional paper cut that the iterator can only be derived once, e.g.

let query = query.borrow(world);

for (pos, val) in query.iter() {
    pos.0 += vel.0;
}

// This will panic because `query` was already "used up" by the previous call to `iter`
let cnt = query.iter().count();

Performance is unaffected compared to the main branch.

An additional thing to note would be that a mutable variant, i.e. iter_mut as implemented in #2, does not have this issue as it does not hold any per-component borrows to manage, having exclusive access to all of the world anyway. So that probably changes the ergonomics question quite a bit...

Finally found a way to get the good codegen and the resulting performance is now basically indistinguishable between  (per component) runtime borrow checking and exclusive access, i.e. the main branch versus this PR:
test query_single_archetype           ... bench:      63,013 ns/iter (+/- 560)
test query_single_archetype           ... bench:      47,349 ns/iter (+/- 450)

test query_many_archetypes            ... bench:      63,713 ns/iter (+/- 549)
test query_many_archetypes            ... bench:      47,961 ns/iter (+/- 387)

This leaves only the better usability of avoid the closure/intermediate wrapper when having exclusive access in a trade-off with having to explain why sometimes one and sometimes the other method is required.


Applensv2 Feedback  - Platform availability should have been impacted, but it shows up as 100%

Platform availability is actually Canary Uptime
Now during the period, the requests to canary site was 0.
So it was really “No Data” for platform availability. Right now, when we don’t get any data, we term it as healthy (which I see might not be correct in some cases)
Will do the following :
a)	Rename platform to canary  (atleast for applens)
b)	For “No Data”, I am thinking to not populate the default data for atleast canry health.
https://wawseus.kusto.windows.net:443/wawsprod [Run in Kusto.Explorer] [Run in Kusto.Explorer on SAW] [Run in Kusto.WebExplorer]
AntaresIISLogFrontEndTable
| where PreciseTimeStamp >= datetime(2017-12-05 00:25:00) and PreciseTimeStamp <= datetime(2017-12-06 00:25:00) and Tenant =~ "23e64c5f78694b64aeb2578550c8043e"
| where Cs_host =~ "mawscanary-07d5bfd8-ed17c97e.azurewebsites.net"
| where User_agent != "AlwaysOn"
| project PreciseTimeStamp, Http2xx = (Sc_status / 100 == 2), Http3xx = (Sc_status / 100 == 3), Http4xx = (Sc_status / 100 == 4), Http5xx = (Sc_status / 100 == 5)
| summarize count(Http2xx), count(Http3xx), count(Http4xx), count(Http5xx)  by bin(PreciseTimeStamp, 5m)
| order by PreciseTimeStamp asc

The part a) of the bug is fixed. Platform Availability is renamed as Canary.
We still need to think about "No Data" scenario.


Add Travis integration for building docker images

NOTES:

I thought about adding a "build_travis_docker_image" stage, but decided against it since there would be two docker build stages and would make the .delta configs in repos look ugly. Instead, opted to go with version=1.2.

We need to add CONF_TRAVIS_DELTA_AUTH_TOKEN to the production.txt env variables (I'm using my own auth token, will ask Mike/Paolo to generate one from a shared/bot account).

I am not totally clear on event logging and how it's eventually used to drive state change. I've seen some code that queries events to check for the state of something. Not sure if my event logging in TravisCiBuild is okay - let me know if there is a better way to do this.

Travis support figured out the problem with the merge_mode=replace, it's a bug on their side. To work around it for now, we have to set "Build only if .travis.yml is present" to OFF in a project's Travis settings.

An example of a docker build triggered by Delta running from my desktop. https://travis-ci.com/flowcommerce/pnguyen/builds/49736564

Once a repo has delta version=1.2, the Dockerfile can start to use multistage builds - we could just update version=1.2 and multistage Dockerfile in the same commit/push.

Related PR for updating the Travis client: https://github.com/flowcommerce/external-apis/pull/136

Wait for CONF_TRAVIS_DELTA_AUTH_TOKEN to be set in Delta's production.txt before merging this PR.


Always update default session if session is closed

Summary
When using the sampler/estimator as a session, the default session should always be updated because the current one could be closed
Details and comments
Fixes #

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 2 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-2.6%) to 61.619%

Totals

Change from base Build<PHONE_NUMBER>:
-2.6%

Covered Lines:
2999

Relevant Lines:
4867

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

2 of 2 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-2.6%) to 61.619%

Totals

Change from base Build<PHONE_NUMBER>:
-2.6%

Covered Lines:
2999

Relevant Lines:
4867

💛  - Coveralls


: error: cannot find symbol import io.flutter.FlutterInjector;                  ^   symbol:   class FlutterInjector   location: package io.flutter

Steps to Reproduce

Run flutter create bug.
Update the files as follows: ...
...

Expected results:
Actual results:

Logs

C:\src\flutter.pub-cache\hosted\pub.dartlang.org\video_player-1.0.0\android\src\main\java\io\flutter\plugins\videoplayer\VideoPlayerPlugin.java:11: error: cannot find symbol
import io.flutter.FlutterInjector;
^
symbol:   class FlutterInjector
location: package io.flutter
C:\src\flutter.pub-cache\hosted\pub.dartlang.org\video_player-1.0.0\android\src\main\java\io\flutter\plugins\videoplayer\VideoPlayerPlugin.java:77: error: cannot find symbol
final FlutterInjector injector = FlutterInjector.instance();
^
symbol:   class FlutterInjector
location: class VideoPlayerPlugin
C:\src\flutter.pub-cache\hosted\pub.dartlang.org\video_player-1.0.0\android\src\main\java\io\flutter\plugins\videoplayer\VideoPlayerPlugin.java:77: error: cannot find symbol
final FlutterInjector injector = FlutterInjector.instance();
^
symbol:   variable FlutterInjector
location: class VideoPlayerPlugin
3 errors
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':video_player:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 6s
Exception: Gradle task assembleDebug failed with exit code 1

Please help me in this issue

@Shubham1998k
Seems you are not on latest stable version (1.22.3). If so, please upgrade to latest which should resolve your issue.
See this similar issue for reference.
Closing this as duplicate.

There is problem in VideoPlayer package so you need to go to pubspec.yaml and delete the package then press Pup get or     ~>flutter pub get . Until they solve the package problem

@Ahmed11300 What problem are you talking about? Any links would be useful, thanks!


Update hibernate-core to 6.3.0.CR1

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

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.hibernate", artifactId = "hibernate-core" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.hibernate", artifactId = "hibernate-core" }
}]

labels: library-update, commit-count:1

Superseded by #402.


fix evaluator target without 'main'

When using extensions.Evaluator without the target of 'main', it occursKeyError.

Can you make a test for it?

Do you have time to make a test? If no, i'll make a test.


Add a security policy

Hey there!
I belong to an open source security research community, and a member (@ktg9) has found an issue, but doesn’t know the best way to disclose it.
If not a hassle, might you kindly add a SECURITY.md file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.
Thank you for your consideration, and I look forward to hearing from you!
(cc @huntr-helper)

Thank you so much for your recommendations. I have included SECURITY.md. You can reach me through<EMAIL_ADDRESS>


Guessing datetime fields from datetimeFormat

I have a csv file with 3 fields that all have datetime elements rigidly formatted like:
"Dec 23, 2017 12:05:36 AM" .
According to the moment.js documentation referenced, I am providing:
datetimeFormat: "MMM DD, YYYY HH:mm:ss a"
in the options, but all of the DTS fields get loaded (into MySQL) as varchar(48).  I have tried some variations without success.  Any suggestions?
----hours pass----
OK, I had to read the /moment.js/ docs slowly, many times...and then guess.  My data source is pretty-printing dates, with no leading zeros, and the code is enforcing strict, so the format has to be an array of 4 formats, allowing for single-digit months and single-digit hours, as in:
datetimeFormat: ["MMM DD, YYYY HH:mm:ss a", "MMM DD, YYYY H:mm:ss a", "MMM D, YYYY HH:mm:ss a", "MMM D, YYYY H:mm:ss a"]
The moment.js documentation seems to infer, via certain examples, that single digit columns are implicitly supported in a two-column format, but this is not so.

Hey.  It'll be a couple days before I can look at this.  But do you happen to have a sample set of data to test out with?

It's sort of not your problem, I suppose, as it is just a documentation thing at moment.js.
I copied your 'pickle' code and built a test.  Here is the (working) code & test data I used to figure it out.
guessDate.txt


wmt17/dev  checksum failed

Hi,
When I testing the zh-en translation on wmt17 dev file,
cat my_file |  sacrebleu -t wmt17/dev -l zh-en
it says: checksum failed. I rerun multiple times, it is the same problem.
Could you please help check this problem?
sacreBLEU: Downloading http://data.statmt.org/wmt17/translation-task/dev.tgz to /var/storage/shared/sdrgvc/sys/jobs/application_1545092712078_50932/.sacrebleu/wmt17/dev/dev.tgz
sacreBLEU: Fatal: MD5 sum of downloaded file was incorrect (got 9b1aa63c1cf49dccdd20b962fe313989, expected 4a3dc2760bb077f4308cce96b06e6af6).
sacreBLEU: Please manually delete "/var/storage/shared/sdrgvc/sys/jobs/application_1545092712078_50932/.sacrebleu/wmt17/dev/dev.tgz" and rerun the command.
sacreBLEU: If the problem persists, the tarball may have changed, in which case, please contact the SacreBLEU maintainer.

Thanks. I just pushed a fix to this. The problem was a copy-paste error. You can pull from this repo or run pip3 install -U sacrebleu to upgrade to version 1.2.18.

Thanks. Now wmt17/dev is correct now, but wmt19/dev still faces this problem.
pip install -U sacrebleu
cat result.txt | sacrebleu -t wmt19/dev -l lt-en
It shows the same error: checksum failed.
Could you help to fix again?

It appears the tarball was updated, though I'm not sure with what. This is fixed with sacrebleu 1.2.19 (just pushed).

On Feb 19, 2019, at 8:31 PM, xutaatmicrosoftdotcom<EMAIL_ADDRESS>wrote:
Thanks. Now wmt17/dev is correct now, but wmt19/dev still faces this problem.
pip install -U sacrebleu
cat result.txt | sacrebleu -t wmt19/dev -l lt-en
It shows the same error: checksum failed.
Could you help to fix again?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/mjpost/sacreBLEU/issues/21#issuecomment-465382168, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbyWBZU8AezH0jS1lDQtRQrxbpvjIAsks5vPKVZgaJpZM4bCHGN.


.NET Framework 4.8 can't open video, the same code .NET6 is ok

Summary of your issue
I downloaded this example https://github.com/shimat/opencvsharp_samples/
BgSubtractorMOG contains code examples for opening videos.
SamplesCore can open video normally using .NET6, but SamplesLegacy using .NET Framework 4.8 cannot open video.
I tested other similar codes and it works fine in .NET6, but it doesn't work in .NET Framework 4.8 no matter it's local file or RTMP stream.
Environment
win11 vs2022
What did you do when you faced the problem?
https://github.com/shimat/opencvsharp_samples/
run SamplesCore, 2 BgSubtractorMOG, OK
run SamplesLegacy, 2 BgSubtractorMOG, can't work
Example code:

            using var capture = new VideoCapture(MoviePath.Bach);
            using var mog = BackgroundSubtractorMOG.Create();
            using var windowSrc = new Window("src");
            using var windowDst = new Window("dst");

            using var frame = new Mat();
            using var fg = new Mat();
            while (true)
            {
                capture.Read(frame);
                if (frame.Empty())
                    break;
                mog.Apply(frame, fg, 0.01);

                windowSrc.Image = frame;
                windowDst.Image = fg;
                Cv2.WaitKey(50);
            }

Output:

.NET Framework 4.8
----------------------------------------
2
BgSubtractorMOG start executing...
BgSubtractorMOG completed, time cost:186ms

The window flashes by, and the command line returns to the selection menu
var capture = new VideoCapture(MoviePath.Bach);
capture.IsOpened alway return false

capture.Open(MoviePath.Bach)  alway return false

.NET 6
----------------------------------------
2
BgSubtractorMOG start executing...

work well
What did you intend to be?
.NET Framework 4.8 project can open video

On <IP_ADDRESS>11228 .NET Framework 4.8 also works.
I copied this version's DLL to the new version it can work. I feel that there is a problem with the new version of the DLL.

I have the same problem, can't open video files on .NET Framework 4.7.2, 4.8.0, 4.8.1.
I tried OpenCvSharp4 versions from 4.5.1 to 4.7.0.
           var _cap = new VideoCapture("D:\\test.mp4");

            Console.WriteLine(_cap.IsOpened());
            while (true)
            {
                var frame = new Mat();
                _cap.Read(frame);

                if (frame.Empty())
                {
                    Console.WriteLine("ERROR! blank frame grabbed");
                    break;
                }

                Cv2.ImShow("test", frame);
                Cv2.WaitKey(1);
            }

I have the same problem, can't open video files on .NET Framework 4.7.2, 4.8.0, 4.8.1. I tried OpenCvSharp4 versions from 4.5.1 to 4.7.0.
           var _cap = new VideoCapture("D:\\test.mp4");

            Console.WriteLine(_cap.IsOpened());
            while (true)
            {
                var frame = new Mat();
                _cap.Read(frame);

                if (frame.Empty())
                {
                    Console.WriteLine("ERROR! blank frame grabbed");
                    break;
                }

                Cv2.ImShow("test", frame);
                Cv2.WaitKey(1);
            }

新版DLL有问题，用我说的那个版本(nuget里面相关的全都要改)重新生成就行，或者建个新工程把生成的DLL拷到程序目录

I have the same problem, can't open video files on .NET Framework 4.7.2, 4.8.0, 4.8.1. I tried OpenCvSharp4 versions from 4.5.1 to 4.7.0.
           var _cap = new VideoCapture("D:\\test.mp4");

            Console.WriteLine(_cap.IsOpened());
            while (true)
            {
                var frame = new Mat();
                _cap.Read(frame);

                if (frame.Empty())
                {
                    Console.WriteLine("ERROR! blank frame grabbed");
                    break;
                }

                Cv2.ImShow("test", frame);
                Cv2.WaitKey(1);
            }

新版DLL有问题，用我说的那个版本(nuget里面相关的全都要改)重新生成就行，或者建个新工程把生成的DLL拷到程序目录

多谢，我找到问题了。
32位的dll有问题64位的正常，构建选择里把any cpu换成x64，32位优先去掉，这样最新版的库就可以在.net framework 4.8.1下正常使用了。

Is there any plan to fix this issue?  It is still a problem with <IP_ADDRESS>30708


feat(Static): build static packages

:tada: This PR is included in version 2.5.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Cannot declare interface

According to the docs in https://flowtype.org/docs/declarations.html, this should be possible:
declare interface MyInterface {
  foo() : number;
}

Yet I get this error:

Use of future reserved word in strict mode

I can't reproduce this. Do you get the error from flow command or maybe from babel for instance?

No, it's from flow check. I'm using version 0.13.1.

Wow, I'm sorry, did an Opam install of the package and now it's up to date (version 0.29.0). No idea how I managed to get such an old version installed.


Google Cloud bucket not working

I tried to download the data from give link, but It seems data is not there and I'm getting this error message.

I’m having the same problem.

@mirfan899, I don't want to host these files perpetually, but I have the original files temporarily mirrored here if you need them:

language
file
md5 hash

de
docs
b0d40bb296c3ec903926243e8397560e

de
queries/train
711b9e9c2163fe07468d6303bbf038f8

de
queries/dev
8d6383b34cd332f5f21c70c3e6a97579

es
docs
c82d3e5998f4cefb5a730a337680fac0

es
queries/train
676e7011d020383422556d2c4b39b67d

es
queries/dev
1359d9516bf5dd9bf732012a25e7f536

fr
docs
941a8e717efb1ab74b9017976c08f73a

fr
queries/train
4c9f45b9c7497d6efb44e593d2f5af4d

fr
queries/dev
a86c46314a0abfb090c542e672bb66e2

id
docs
5e9fd243bfcf160a1177c898796ae53e

id
queries/train
e74bc49a64adf32d105eeace23dc1a58

id
queries/dev
3d5f2261edb985d4fe052ed9e379a42a

it
docs
c87e107fdd99f78a8789c984c96f3e46

it
queries/train
2aa7e48decfbfbaa327aa01f0d16bc3f

it
queries/dev
d9df4b10d892288c81611e7ed74e1549

pt
docs
77260081f0332befa6aa3e6c922b8fb9

pt
queries/train
df2ed4ef0bdb93405ba276a92530fc03

pt
queries/dev
262ce189e3d57059b2795c16db44bb81

ru
docs
27f64ca50b1862d285c53a1bcdc26793

ru
queries/train
e4c09d563124569a632780c3ed1179b2

ru
queries/dev
4d803553d69f967764360570c3e66c84

zh
docs
d5672e88206038d8a3d261987b3bd788

zh
queries/train
21649d058877379bc8184923ab8ec408

zh
queries/dev
83820cac1d3e27a7c911d5116ebce558

Hi @mirfan899 @seanmacavaney, sorry, we are migrating to another storage and the files should be available in a few days. Sorry for the inconvenience.

Thanks.

bump - any updates on this?

Thanks! Are you planning to make the v1.0 data available too somewhere for, e.g., those who want to reproduce the results from the original paper or other comparisons folks may want to make between the versions?

Hi @seanmacavaney . As @rodrigonogueira4 mentioned, the v1.1 data is the one available on this PR.
The upcoming v2.1 data will be released soon.

Thanks for the clarification about the forthcoming v2.1. It looks like the v1.1 still differs from the original release of the data though in a few cases, which could impact one's ability to reproduce the Chinese and Portugese results from the original paper.

file
v1.0 md5
v1.1 md5

chinese_queries.dev.tsv
83820cac1d3e27a7c911d5116ebce558
9ea0d3e92aaf87d65c07c297893d0ff6

portuguese_queries.dev.tsv
262ce189e3d57059b2795c16db44bb81
4210db124ff1e3b7c803b9cb666c5e44

portuguese_queries.train.tsv
df2ed4ef0bdb93405ba276a92530fc03
c253c476ff1ad1d51bae169cea180acd

(For all the other files, the md5s remained unchanged between v1.0 and v1.1.)
It looks like for Chinese, in some cases there were missing translations, which were changed from empty strings to ".". For Portuguese, the translations look rather different-- was a different translation model used?
Thanks!

@seanmacavaney Indeed we have some differences in queries.dev and queries.train files.
In some case, we manually corrected some issue on these translated files.
However, as far as we know, these fixes did not cause any impact on  reproducing the original results from our paper.
The 6980 queries from queries.dev.small evaluation set were not affected.
We are finishing the PR with all the translated data along with each BM25 run file, so it is possible to achieve the same results.

Closing this issue as the mMARCO is now available on HF datasets.

Great, thanks @lhbonifacio! I've added v1, the slightly-revised v1.1, and v2 to ir-datasets as well here: https://ir-datasets.com/master/mmarco.html

@seanmacavaney Awesome!

@seanmacavaney , do you have Arabic data mirrored somewhere that I can use ? Thanks in advance!

Hey @cramraj8,
Arabic was introduced in v2 of the dataset, and the data seem to be available from the authors:

language
file
md5 hash

ar
docs
b73406ce3a3d31edea240603d031be7a

ar
queries/dev
d93efe298008c35389afacb3d9fedb06

ar
queries/train
08ab9eed247819db2f1f013f7e06f0d6

If you'd rather use a toolkit to access the data instead of working with the raw files, it's available in the ir-datasets package under mmarco/v2/ar, mmarco/v2/ar/train, and mmarco/v2/ar/dev. E.g.,:
import ir_datasets
dataset = ir_datasets.load("mmarco/v2/ar/dev")
for doc in dataset.docs:
    doc # namedtuple<doc_id, text>
for query in dataset.queries:
    query # namedtuple<query_id, text>
for qrel in dataset.qrels:
    qrel # namedtuple<query_id, doc_id, relevance, iteration>

Or in HuggingFace datasets under unicamp-dl/mmarco (see access instructions here: https://huggingface.co/datasets/unicamp-dl/mmarco)
Hope this helps!

Thanks @seanmacavaney for your prompt reply. Downloading using HuggingFace datasets works well! Thank you!!


Write integration tests for non-admin service accounts

With Spanner the service account we are using has admin privileges.
A lot of cases this is not the production use case for obvious reasons.
I think it would be beneficial to create integration tests that separate admin and non-admin operations to make sure everything is working fine. This would require creating a new limited-scope service account and setting it up on Jenkins.

Let's test this manually first. @ChengyuanZhao


Migration from 1.17.4 to 1.18.0 fails due to permission problem

Description
The manual upgrade from the binary installation from 1.17.4 to 1.18.0 fails due to permission issue.
My upgrade procedure from 1.17.4 to 1.18.0.
Stop running Gitea Service
sudo systemctl stop gitea
Download latest Gitea version
wget -O /tmp/gitea https://dl.gitea.io/gitea/1.18.0/gitea-1.18.0-linux-amd64
sudo mv /tmp/gitea /usr/local/bin

Make the binary executable
sudo chmod +x /usr/local/bin/gitea
Temporarily set with write permissions for user git
sudo chmod 750 /etc/gitea
sudo chmod 640 /etc/gitea/app.ini

Reload just in case
sudo systemctl daemon-reload
Ensure the Gitea Service starts at boot
sudo systemctl enable --now gitea
Systemd restart Gitea
sudo systemctl restart gitea
Gitea Version
1.18.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
See below
Screenshots
Not needed.
Git Version
2.38.1
Operating System
Ubuntu 22.10 Kinetic
How are you running Gitea?
Gitea runs as binary installation.
The debug logs says that the permission is incorrect, I do not see why. Previous upgrades worked fine, I did not changed any permissions in the meantime between 1.17.4 and 1.18.0.
Gitea version after downloading
gitea --version
Gitea version 1.18.0 built with GNU Make 4.1, go1.19.4 : bindata, sqlite, sqlite_unlock_notify

journalctl -b 0 -u gitea
gitea.service: Failed at step EXEC spawning /usr/local/bin/gitea: Permission denied
gitea.service: Main process exited, code=exited, status=203/EXEC
Failed with result 'exit-code'.
gitea.service: Scheduled restart job, restart counter is at 1.
Stopped Gitea (Git with a cup of tea).
Failed to execute /usr/local/bin/gitea: Permission denied

log
Stopping Gitea (Git with a cup of tea)...
2023/01/02 12:21:34 ...eful/manager_unix.go:150:handleSignals() [W] [63b1e68f] PID 938. Received SIGTERM. Shutting dow>
2023/01/02 12:21:34 ...eue/queue_channel.go:154:func1() [W] ChannelQueue: task-channel Terminated before completed flu>
2023/01/02 12:21:34 .../graceful/manager.go:205:doHammerTime() [W] Setting Hammer condition
2023/01/02 12:21:35 .../graceful/manager.go:224:doTerminate() [W] Terminating

systemctl status gitea
● gitea.service - Gitea (Git with a cup of tea)
     Loaded: loaded (/etc/systemd/system/gitea.service; enabled; preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Mon 2023-01-02 16:24:16 CET; 2s ago
    Process: 175943 ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini (code=exited, status=203/EXEC)
   Main PID: 175943 (code=exited, status=203/EXEC)
         IP: 0B in, 0B out
        CPU: 11ms

LS
ls -lah /usr/local/bin/gitea
-rwxr-x--- 1 root root 112M Jan  2 14:17 /usr/local/bin/gitea

GITEA_WORK_DIR=/var/lib/gitea/ /usr/local/bin/gitea web -config /etc/gitea/app.ini
cmd/web.go:106:runWeb() [I] Starting Gitea on PID: 176076
...s/setting/setting.go:1031:loadFromConf() [I] Default UI Location is Europe/Berlin
...s/setting/setting.go:1059:loadFromConf() [F] Gitea is not supposed to be run as root. Sorry. If you need to use privileged TCP ports please instead use setcap and the `cap_net_bind_service` permission

I tried to run sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/gitea without success.
/etc/systemd/system/gitea.service
[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
After=mysqld.service

[Service]
RestartSec=3s
Type=simple
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
ProtectSystem=full
PrivateUsers=false

[Install]
WantedBy=multi-user.target

I tried to downgrade but I get exactly the same permission denied error. If someone could point me in the direction, that would be nice.
Database
SQLite.

You are running it as user git, but that user doesn't have executable access to /usr/local/bin/gitea

No clue what to do here, git runs already as system.
adduser \
   --system \
   --shell /bin/bash \
   --gecos 'Git Version Control' \
   --group \
   --disabled-password \
   --home /home/git \
   git

@CKsTechnologyNews ,
the fact that git user runs as system does not cancel that there are no (other bits) permissions for it on the binary. Either allow all to run the gitea binary or set a proper group (git) on it (since the group bits already allow to execute it)

--system

All this flag does it make the user and group ID of the newly created user below 1000, which just signifies to some programs that it is a system user. For example, Gnome Display Manager only shows users with UID 1000 and above on the login screen. It does nothing for Discretionary Access Control (file ownership + permissions).
Since /usr/local/bin/gitea is owned by root:root and the permissions are -rwxr-x---, only root or members of the root group can run Gitea as you have it configured. You need to do chmod o+rx /usr/local/bin/gitea so that others can run Gitea (others includes the git user).

Thanks for the help, I will try the suggested solution provided by wfjake and report back.
If it fixes my issue then I close the ticket.
Apparently I need to learn some things about git permissions, but I rather ask before I blow something up, apologies at this point, I do not want to abuse issue tickets for basic questions, but I saw others had similar issues and there is not really some useful feedback provided ](until now) on what to do without breaking something.


create_fts_index doc missing

Description
Our API reference does not contain documentation for create_fts_index
Link
No response

As we are deprecating this method, do we still need to add this?
after this, the FTS index can be created via create_scalar_index


Redundant location block "client_secret_matches"

In apicast.conf there is a client_secret_matches location block that is not currently used or needed:
https://github.com/3scale/apicast/blob/c306f49655caa6cae98479ff53fad41afd1b57ea/apicast/conf.d/apicast.conf#L121-L127

Thanks Pili.... keep polishing it!

Next time you can just edit it from github ;) Might be easier than creating an issue.

Thanks, I will next time, I was just shy about it ;)


Release all exchange contexts when shutting down the exchange manager

There is also an on-going work of replacing raw pointer of
ExchangeContext with a unique_ptr like handle.
MessageCounter tests are broken due to incompleted implementation, I'll
fix the test in the following up message counter PR.

@bzbarsky-apple looking for input

@pan-apple ?

@bzbarsky-apple  looking for input.

ping @bzbarsky-apple
also @kghost - I see conflicts here, sorry :(


UI for feedback form to match website theme

Title : UI improvement for feedback form to match website theme
Issue No. : #751
Close #751
Description
Improved the UI of feedback form
Added pop-up display when the form is submitted and if the incomplete information is filled.
Added social media icons , so that they could follow us and contact us before the feedback.
Video/Screenshots (mandatory)
Before :

After:
https://github.com/apu52/Travel_Website/assets/168854094/07f0627d-f9b2-477e-a584-a15736b50ad4
Also made it responsive:
https://github.com/apu52/Travel_Website/assets/168854094/16d66c56-066d-41f2-aae5-062d437751ab
Type of PR
Feature enhancement
Checklist:

[X ] I have performed a self-review of my code.
[X ] I have commented my code, particularly in hard-to-understand areas.
[X ] I have tested the changes thoroughly before submitting this pull request.
[X ] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[X ] I have gone through the  contributing.md file before contributing

##Are you contributing under any Open-source programme?
GSSoC'24

I am contributing under GSSOC'24

@itsekta
I have made the necessary changes and opened new PR.
Made the page responsive too and add the video of  mobile view in the PR.
Kindly review this PR. Thank You!

@apu52 @itsekta ,
I have made the necessary changes and opened new PR.
Made the page responsive too and added the video of  mobile view in the PR.
Please review this PR. Thank You!


[Kubernetes]Add Tests for scheduling Kyuubi engines with minikube support

1. Describe the feature
https://github.com/marketplace/actions/setup-minikube-kubernetes-cluster
https://github.com/marketplace/actions/minikube-single-node-kubernetes-action
2. Motivation
for Kubernetes support
3. Describe the solution
4. Additional context

cc @zwangsheng @ulysses-you @pan3793

ah, sounds good. it might take some times to test it locally in my laptop.

Should we test with such matrix?
matrix:
  kyuubi-server: [local, k8s]
  spark-engine: [local, k8s]

The tests of the engine module are basically for improving the debugging experience for developers using IDEs.
It's not that necessary for CI


Button text not aligned

I am using the following code to display a button,
```<Button
    onPress={this.onButtonPress.bind(this)}
    text='Login'
    overrides={{ backgroundColor: '#007aff', textColor: '#fff' }}
    raised
  />

The text in the button is not aligned at the centre, as shown in the below image,

Thank you, but because of such issues, i stopped using this library.


Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects

Using just the provided commands on Ubuntu Server 22 the docker instance can't start since it fails to build aiohttp, as seen in the log bellow:
41.46       creating build/temp.linux-x86_64-cpython-312
41.46       creating build/temp.linux-x86_64-cpython-312/aiohttp
41.46       gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/local/include/python3.12 -c aiohttp/_websocket.c -o build/temp.linux-x86_64-cpython-312/aiohttp/_websocket.o
41.46       aiohttp/_websocket.c: In function '__pyx_pf_7aiohttp_10_websocket__websocket_mask_cython':
41.46       aiohttp/_websocket.c:1475:3: warning: 'Py_OptimizeFlag' is deprecated [-Wdeprecated-declarations]
41.46        1475 |   if (unlikely(!Py_OptimizeFlag)) {
41.46             |   ^~
41.46       In file included from /usr/local/include/python3.12/Python.h:48,
41.46                        from aiohttp/_websocket.c:6:
41.46       /usr/local/include/python3.12/cpython/pydebug.h:13:37: note: declared here
41.46          13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
41.46             |                                     ^~~~~~~~~~~~~~~
41.46       aiohttp/_websocket.c: In function '__Pyx_get_tp_dict_version':
41.46       aiohttp/_websocket.c:2680:5: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
41.46        2680 |     return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
41.46             |     ^~~~~~
41.46       In file included from /usr/local/include/python3.12/dictobject.h:90,
41.46                        from /usr/local/include/python3.12/Python.h:61:
41.46       /usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
41.46          22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
41.46             |                                  ^~~~~~~~~~~~~~
41.46       aiohttp/_websocket.c: In function '__Pyx_get_object_dict_version':
41.46       aiohttp/_websocket.c:2692:5: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
41.46        2692 |     return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
41.46             |     ^~~~~~
41.46       /usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
41.46          22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
41.46             |                                  ^~~~~~~~~~~~~~
41.46       aiohttp/_websocket.c: In function '__Pyx_object_dict_version_matches':
41.46       aiohttp/_websocket.c:2696:5: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
41.46        2696 |     if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
41.46             |     ^~
41.46       /usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
41.46          22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
41.46             |                                  ^~~~~~~~~~~~~~
41.46       aiohttp/_websocket.c: In function '__Pyx_CLineForTraceback':
41.46       aiohttp/_websocket.c:2741:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
41.46        2741 |         __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
41.46             |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41.46       /usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
41.46          22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
41.46             |                                  ^~~~~~~~~~~~~~
41.46       aiohttp/_websocket.c:2741:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
41.46        2741 |         __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
41.46             |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41.46       /usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
41.46          22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
41.46             |                                  ^~~~~~~~~~~~~~
41.46       aiohttp/_websocket.c: In function '__Pyx_PyInt_As_long':
41.46       aiohttp/_websocket.c:3042:53: error: 'PyLongObject' {aka 'struct _longobject'} has no member named 'ob_digit'
41.46        3042 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
41.46             |                                                     ^~
41.46       aiohttp/_websocket.c:3097:53: error: 'PyLongObject' {aka 'struct _longobject'} has no member named 'ob_digit'
41.46        3097 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
41.46             |                                                     ^~
41.46       aiohttp/_websocket.c: In function '__Pyx_PyInt_As_int':
41.46       aiohttp/_websocket.c:3238:53: error: 'PyLongObject' {aka 'struct _longobject'} has no member named 'ob_digit'
41.46        3238 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
41.46             |                                                     ^~
41.46       aiohttp/_websocket.c:3293:53: error: 'PyLongObject' {aka 'struct _longobject'} has no member named 'ob_digit'
41.46        3293 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
41.46             |                                                     ^~
41.46       aiohttp/_websocket.c: In function '__Pyx_PyIndex_AsSsize_t':
41.46       aiohttp/_websocket.c:3744:45: error: 'PyLongObject' {aka 'struct _longobject'} has no member named 'ob_digit'
41.46        3744 |     const digit* digits = ((PyLongObject*)b)->ob_digit;
41.46             |                                             ^~
41.46       error: command '/usr/bin/gcc' failed with exit code 1
41.46       [end of output]
41.46
41.46   note: This error originates from a subprocess, and is likely not a problem with pip.
41.46   ERROR: Failed building wheel for aiohttp
41.46   Building wheel for pillow (setup.py): started
82.03   Building wheel for pillow (setup.py): finished with status 'done'
82.03   Created wheel for pillow: filename=Pillow-8.4.0-cp312-cp312-linux_x86_64.whl size=1234258 sha256=8272d4f7ca5ae2e6f2241cfac79fe5a80e5a178f751e6132d2b2f6c9437ba56c
82.04   Stored in directory: /tmp/pip-ephem-wheel-cache-lnz0fi9k/wheels/a6/59/f9/3075f7f8afef024a29b3af761a61512eeaa8de8f38ebc57c3a
82.04   Building wheel for asyncpg (pyproject.toml): started
145.7   Building wheel for asyncpg (pyproject.toml): still running...
147.1   Building wheel for asyncpg (pyproject.toml): finished with status 'done'
147.1   Created wheel for asyncpg: filename=asyncpg-0.28.0-cp312-cp312-linux_x86_64.whl size=3190561 sha256=95f180ba9e0df355ac75b286871da980b73898858ae71b264d9a9657fce70b87
147.1   Stored in directory: /tmp/pip-ephem-wheel-cache-lnz0fi9k/wheels/95/f1/35/b2bee444118b4059ae564b32c31e85174dae856449ea079ba3
147.1   Building wheel for frozenlist (pyproject.toml): started
153.2   Building wheel for frozenlist (pyproject.toml): finished with status 'done'
153.2   Created wheel for frozenlist: filename=frozenlist-1.4.0-cp312-cp312-linux_x86_64.whl size=261144 sha256=23f799a10fb414c35e5aa93c47829ad9545eb0dfaeed4ce1457e923c22ae9a9b
153.2   Stored in directory: /tmp/pip-ephem-wheel-cache-lnz0fi9k/wheels/f1/9c/94/9386cb0ea511a93226456388d41d35f1c24ba15a62ffd7b1ef
153.2   Building wheel for multidict (pyproject.toml): started
155.6   Building wheel for multidict (pyproject.toml): finished with status 'done'
155.6   Created wheel for multidict: filename=multidict-5.2.0-cp312-cp312-linux_x86_64.whl size=131270 sha256=a77b20894ee72ea5daa7b277ee914e06f8f69f23fdc37764d8155c05c28bdd58
155.6   Stored in directory: /tmp/pip-ephem-wheel-cache-lnz0fi9k/wheels/07/0a/62/442e1bcb8b0f747d3a636f3ce6d73e0e5d5784cf14edc38549
155.6   Building wheel for SQLAlchemy (setup.py): started
157.7   Building wheel for SQLAlchemy (setup.py): finished with status 'done'
157.7   Created wheel for SQLAlchemy: filename=SQLAlchemy-1.3.24-cp312-cp312-linux_x86_64.whl size=1256223 sha256=38ad2ed7ff12c52729b60c984cd2da43123ca4037d11c67bd2aea5ccd297cf3a
157.7   Stored in directory: /tmp/pip-ephem-wheel-cache-lnz0fi9k/wheels/ea/86/24/26a773f9bd1cadef3007e8779dbe2a6ac1161fea92758ad924
157.7   Building wheel for starkbank-ecdsa (setup.py): started
158.0   Building wheel for starkbank-ecdsa (setup.py): finished with status 'done'
158.0   Created wheel for starkbank-ecdsa: filename=starkbank_ecdsa-2.2.0-py3-none-any.whl size=15969 sha256=ddda64f74090514dbb7a0c17c78a5104fafca9149e88c8b530501383375bc5ba
158.0   Stored in directory: /tmp/pip-ephem-wheel-cache-lnz0fi9k/wheels/cd/f5/50/6d59fdb0745800dbdd34f52bbf56b3c5d1f4e8dcd2d923cf8d
158.0   Building wheel for yarl (pyproject.toml): started
163.7   Building wheel for yarl (pyproject.toml): finished with status 'done'
163.7   Created wheel for yarl: filename=yarl-1.9.2-cp312-cp312-linux_x86_64.whl size=298770 sha256=792281bbb84b5562358ca1518d56d016c3755d0d7c6167894dd5c86c420f65d8
163.7   Stored in directory: /tmp/pip-ephem-wheel-cache-lnz0fi9k/wheels/84/e3/6a/7d0fa1abee8e4aa39922b5bd54689b4b5e4269b2821f482a32
163.7 Successfully built websockets pillow asyncpg frozenlist multidict SQLAlchemy starkbank-ecdsa yarl
163.7 Failed to build aiohttp
163.7 ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects
163.9
163.9 [notice] A new release of pip is available: 23.2.1 -> 23.3.1
163.9 [notice] To update, run: pip install --upgrade pip
------
failed to solve: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1```

Try downgrading python version (#24) while I investigate this


 Not sure how that got in there. It's not mine. I will see if I can find a cleaner way to fix this.

Ok, thanks for catching this. That was as a result of two things. First, moving all of the implementation code into the header file; which caused the conflicts you saw. The second was just a lot of copy/paste that happened when merging a ton of utility code into the single monolithic header.
I have changed the #define X/Y/Z to be #define X_INDEX/Y_INDEX/Z_INDEX and removed the duplicate defines.
All methods that were previously called 'X', 'Y', 'Z', are now called 'getX', 'getY', 'getZ'.
Not only does this fix the build errors that you saw, it just makes the code cleaner and easier to understand.
Thanks for catching this. The fixes have been pushed to master.

How do I apply this patch? Sorry, I'm not familiar enough with the git process to do this. Can you make this in the form of a pull request?

https://github.com/kmammou/v-hacd/pull/109
I applied it on top of 'version4' branch:
git clone -b version4 https://github.com/kmammou/v-hacd.git
cd v-hacd (think you forgot this?)
git apply /home/vilkun/work/vhacd_build/1/vhacd.txt
Also you can try:
git apply --reject --whitespace=fix mychanges.patch
(see https://stackoverflow.com/questions/4770177/git-patch-does-not-apply )
It's a first time, when I write to really third party developers :)

Yeah, you should not be using the 'version4' branch. That was just a staging branch as I was developing the new version. That branch is not current or up to date. The only branch you should be working on now is simply the 'master' branch. Sorry for any confusion here.