Ws/canvas 2 jimp

💥 Breaking
This PR replaces Canvas as a dependency with Jimp. This removes the need to use system dependencies and will reduce the number of system dependency errors/issues (node-gyp/canvas and so on). This will, in the end, make the life of our end users way easier due to:

less errors
less complex test environments

[!note]
Extensive research has been done and we have chosen to "fork" ResembleJS, adjust it by making use of Jimp instead of Canvas and break the browser API because the fork will only be used in a nodejs environment
Investigation showed that creating a wrapper would even make it slower, so we went for the breaking change in the API by just replacing Canvas with Jimp

[!important]
There is a performance impact where Canvas is around 70% faster than Jimp. This has been measured without using WebdriverIO and only comparing images. When the "old" implementation with WebdriverIO combined with Canvas or Jimp is compared, we hardly see a performance impact.

🚀 New Features
Update the baseline images through the command line by adding the argument --update-visual-baseline. This will

automatically copy the actual take screenshot and put it in the baseline folder
if there are differences it will let the test pass because the baseline has been updated

Usage:
npm run test.local.desktop  --update-visual-baseline

When running logs info/debug mode you will see the following logs added
[0-0] ..............
[0-0] #####################################################################################
[0-0]  INFO:
[0-0]  Updated the actual image to
[0-0]  /Users/wswebcreation/Git/wdio/visual-testing/localBaseline/chromel/demo-chrome-1366x768.png
[0-0] #####################################################################################
[0-0] ..........

💅 Polish

remove Vitest fix
add app images
update the build

Docs changes for WebdriverIO can be found here and depend on releasing this version

Legend, great work!
Tried it recently and was turned off by Canvas errors/issues.


feat: Elastic Text-Embedding Model demo.

Elastic Text-Embedding demo for Google Cloud Next '24 (Apr. 9-11, 2024).

There is another public doc for Cloud Next 24 that shares this colab doc.

REQUIRED: Fill out the below checklists or remove if irrelevant

If you are opening a PR for Official Notebooks under the notebooks/official folder, follow this mandatory checklist:

[X] Use the notebook template as a starting point.
[X] Follow the style and grammar rules outlined in the above notebook template.
[X] Verify the notebook runs successfully in Colab since the automated tests cannot guarantee this even when it passes.
[X] Passes all the required automated checks. You can locally test for formatting and linting with these instructions.
[ ] You have consulted with a tech writer to see if tech writer review is necessary. If so, the notebook has been reviewed by a tech writer, and they have approved it.
[X] This notebook has been added to the CODEOWNERS file under the Official Notebooks section, pointing to the author or the author's team.
[X] The Jupyter notebook cleans up any artifacts it has created (datasets, ML models, endpoints, etc) so as not to eat up unnecessary resources.

/gcbrun

[X] Please merge this PR for me once it is approved


Update deps

We can return scylla back to the crates.io release since the fix we needed is in the new 0.10 release.
fred update removes the dependency on sha1 which will help from scratch build times a little.

bigdecimal 0.4.2 was released last night, so I removed its cargo patch to a git repo.


line numbers disappearing when text exceeds available space horizontally

When the text exceeds the available space horizontally while line numbers are enabled (using prism-line-numbers-plugin) a scrollbar appears for horizontal scrolling as intended. However when scrolling all the way back to the left border the line numbers have disappeared and there is just the border which separates line numbers from code (see picture below). Please let me know when you have trouble reproducing the error.
Regards.

Thank you for pointing this out, @SimonFliegel. I am quite busy now but this definitely is near the top of priorities for code-input, and I will let you know when I start working on it.

@SimonFliegel It seems like you might be using version 2.1.0 which does have this error; please could you upgrade to the latest release 2.2 (if you have problems, the upgrading guidance in the dropdown at the link might be useful). I should be releasing version 2.2.2 today/tomorrow so please wait for it if you want even more bug fixes in your version!
Please let me know if the bugs persist / other new ones appear.

I will close this issue now but you can reopen it if you have any more questions.

Sorry for the delay - I started to overhaul the docs and demos before the release, which I probably should have done afterwards! 🫢 I'm pretty sure I will release version 2.3 today, with this fix in it.


Remove erroneous copy

The subheadline for each page is pretty, um, obvious. "You are viewing the "FAQ" page." Recommend removing it or creating useful copy.

@pmmck Did you have any specific copy you'd want to add to each page?
This would be considered a "sub-title".


add parent and root shorhands to the event interface. with docs

Currently to emit an event we do:
vm.emit("_redraw:1")    // to the parent
vm.emit("_redraw:1000") // to root
vm.emit.redraw()        // to root

This PR adds semantic shorthands while retains the previous way:
vm.emit("_redraw:parent") // to parent
vm.emit("_redraw:root")     // to root

i was just writing a reply about this in the other thread WRT up/down. i think the changes should be evaluated as a whole rather than separately since emit is kinda like "up" and triggering ancestor redraw piggybacks on the emit system. i had on my todo to make the target by-key and not only numeric.
either emit internally should be changed to use the more generic up and there should be a reverse-emit via "down". reverse-emit is more tricky because without a target, is the intent to broadcast the event to the entire branch (slow)?

allowing numbers e.g. node.up(125) internally you could do something like
// vm.emit("redraw:125")
vm.node.up(125).vm.fireEvent("redraw" ...)

you got the idea?

how do you know .up(125) even is a vm root? because you've carefully structured 125 levels of nodes? and if your structure changes slightly? you need to re-work all targeted emits/redraws?
the children and parents should not be intimately aware of how they relate to each other in the hierarchy as it locks up the structure. please read my comment here: https://github.com/leeoniya/domvm/issues/17#issuecomment-184312318

@leeoniya In the previous comment I sed "internally"(in the library space, not in the app space), to reuse up/down in vm.emit implementation

@yosbelms
I would prefer that you brought up specific app-space problems that your changes are meant to solve and opened issues to discuss how to best solve them rather than submitting PRs with rather vague (to me) real world issues they solve. If you're implementing a TodoMVC and cannot get something done or it is ultra clumsy, then it is possible that you're not doing it in a domvm idiomatic way and have to resort to DOM hacking.
I understand that having access to the vtree allows you to literally do anything and I can think of a million generic micro-util functions that "may" be useful to someone for some purpose.
Currently, I'm not interested in internal-only improvements because as i have mentioned, app-space API and ergonomics & perf are priority 1 followed by tests, docs, demos and only afterwards micro-optimizations and any internal improvements.
Please don't take this as an insult. I just need to be extremely clear as to what any proposed changes offer to the app-space that is truly an ergonomics wart and is not already possible by doing things differently. I have no plans to accommodate every possible variation in methodology/structure of the same app...else the additions would be endless.

@leeoniya in [this](https://github.com/leeoniya/domvm/pull/20#issuecomment-184278254 comment you sed:

i think the changes should be evaluated as a whole rather than separately since emit is kinda like "up"
Hence my previous comment was covering internal integrations.

I would prefer that you brought up specific app-space problems that your changes are meant to solve and opened issues to discuss how to best solve them rather than submitting PRs with rather vague (to me) real world issues they solve.

In respond in #22. And yes, TodoMVC targets many real world issues.

let's do this: publish your todomvc implementation. i will look it over and maybe tweak/modify it to work without up/down and you can let me know what you think.

redraw and emit systems are now disentangled, so this no longer applies
thanks!


Metric data not consistent when viewing the page and when in page builder mode

Description of the bug
When I change the configuration on the metrics block and if the metrics number is changed, the update is not reflected in the page builder mode even if you save, but it is only affected when you view the page. This works fine in reality it is just a visual bug, meaning we should sync the data shown to be consistent when viewing the page and when in page builder mode.
Reproduction steps

Have some record list filter
Create a metrics block displaying the total number of records
save the block and view the page
now go back to the page builder, edit the metrics to show some different state of data
Press on refresh data while in the configurator
Now press save and close on the configurator and press save on the page
Notice that the data on the block didn't change
Now view the page and see that the data has updated and now it is showing the correct data.

Expected behavior
The data shown in the page builder mode should match the data shown when viewing the page.
Screenshot/Video
https://user-images.githubusercontent.com/53232926/236808972-bdd9d6f2-f2bb-49be-97e5-fba3d7424b4c.webm
Version
Branch: 2023.3.x

Tested and confirming that this now works as expected.

CL:
Fixed:
{
      "what": [
        "metrics block data not being consistent in page builder mode when configurator is updated."
      ],
      "how": [
        "by updating the metric base component with a listener that refreshes the metric base when the configurator is updated."
      ],
      "refs": [
        "https://github.com/cortezaproject/corteza/pull/1207"
      ]
    }


[Crash]: Random Furnace Handler Crash

Explain:
So I've recently started getting crash reports from our testers that NEI has seemingly completely at random has been crashing them. I've been trying to reproduce this crash but it's quite literally random and I can't find any clear pattern of events that can reproduce this in the pack.
Log: http://paste.ee/p/M3XDa

Note: This crash is far more previlent in SSP worlds then SMP world for whatever reason.
And it seems to happen mod often when just loading into a world and opening any "NEI supported" inventory aka any inventory where NEI shows up.
(Do Note I'm using NEI 5.118, CodeChickenCore 7.47)


[#159730005] Enable bosh-dns in the director's runtime-config

What
This PR, which must be closely coordinated with (and must come before) the merge and deployment of alphagov/paas-cf#1522, makes the deployment of bosh-dns global across all deployments from each environment's BOSH director.  This is a prerequisite which upstream (cf-deployment 3.0.0+) insist upon.
For operational reasons, this PR should be merged and deployed after alphagov/paas-cf#1523.
Our process is slightly complicated by the fact that we have to pull the existing bosh-dns CA and non-CA certs for healthchecks and the bosh-dns API over from CF, where it's been deployed for a few weeks, and adopt it in the create-bosh-concourse pipeline. This is because we're unsure if the API is exposed between VMs, or just inside each VM, hence if having half the system using one CA and half using another would be problematic. We are using our standard pattern to enable CA rotation, but it doesn't feel like the right place to prove its correctness, along with the CA migration across pipelines/systems.
Review
This has been paired on throughout, and is being rolled out by @tlwr, @richardTowers and myself, with @henrytk  helping from a production access perspective.
Deployment plan: https://hackmd.cloudapps.digital/nZAnzvldRLqtxcEXbXoa6w?view#Deloyment-to-Production

As above, as of https://github.com/alphagov/paas-cf/pull/1523 this is ZDD in combination with https://github.com/alphagov/paas-cf/pull/1522 and is ready to go


Steps to start weave 2.8.8 as as docker container in ubuntu vm ?

I am trying to start weave2.8.8 in my ubuntu vm.
I downloaded the docker images from below links and loaded them in my vm.
docker pull rajchaudhuri/weavedb:2.8.8
docker pull rajchaudhuri/weave
cps@site1-dra-worker2:~$ docker images
REPOSITORY             TAG           IMAGE ID       CREATED         SIZE
15491a6ff7a8           weavedb       15491a6ff7a8   6 weeks ago     267B
0de40054f312           weave-2.8.8   0de40054f312   6 weeks ago     68.2MB
Running weavedb
cps@site1-dra-worker2:~$ sudo docker run 15491a6ff7a8
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "data-only": executable file not found in $PATH: unknown.
ERRO[0003] error waiting for container: context canceled
cps@site1-dra-worker2:~$
Running weave
cps@site1-dra-worker2:~$ sudo docker run 0de40054f312
FATA: 2024/08/02 12:13:29.051225 [boltDB] Unable to open /weavedb/weavedata.db: write /weavedb/weavedata.db: bad file descriptor
cps@site1-dra-worker2:~$
Could you please share the steps to run these images ?

You need to use the weave script, rather than work with the images yourself. See here for how to install it, and here for how to use it.

ok thanks

Closing this issue.


Frame didn't arrive within 15000 ROS2

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
D400

Firmware Version
5.15.1

Operating System & Version
Linux Ubunu 22.04 LTS

Kernel Version (Linux Only)
5.15.0-1049-raspi

Platform
Raspberry Pi4 4GB

SDK Version
2.54.2

Language
C++

Segment
Robot

Issue Description
I am currently working on a robot running a raspberry Pi4 with Ubuntu 22.04.
I am trying to set up a camera stream from the robot to a server using ROS2 Humble. I am not yet using the depth camera module
I had everything working but at some point the camera started disconnecting once the program was stopped and restarted, saying:
Segmentation Fault

This to me indicates that there is something wrong with the driver installation, but for the life of me I could not figure it out. I was experiencing some other issues aswell which led me to the decision to reinstall everything from scratch. I had reinstalled everything to get a fresh start to to speak. When I tried running the code, everything seemed to work fine for about 30 seconds to a minute, with the following text appearing on the screen:
[INFO] [1712155774.684152821] [FFMPEGEncoder]: enc: libx264 prof:  preset:
[INFO] [1712155774.684362816] [FFMPEGEncoder]: qmax: 10 bitrate: 8242880 gop: 15

Then the stream froze and I got an error message on the raspberry pi saying:
terminate called after throwing an instance of 'rs2::error
what():  Frame didn't arrive within 15000

Now I have looked through many issues here but I cant seem to find any solution that works for me, any help with this would be appreciated
This is the code i have been running the entire time. A friend suggested that a the framebuffers from the depth module might be overflowing and stopping all other modules, but I doubt that this might be the case
#include "cv_bridge/cv_bridge.h"
#include "image_transport/image_transport.hpp"
#include "opencv2/core/mat.hpp"
#include "rclcpp/rclcpp.hpp"
#include <librealsense2/rs.hpp>

int main(int argc, char ** argv)
{
    rclcpp::init(argc, argv);
    rclcpp::NodeOptions options;
    auto node = rclcpp::Node::make_shared("image_publisher", options);
    image_transport::ImageTransport it(node);
    auto pub = it.advertise("camera/image", 1);

    // Open color camera
    rs2::pipeline pipe;
    rs2::config cfg;
    cfg.enable_stream(RS2_STREAM_COLOR, 1280, 720, RS2_FORMAT_BGR8, 30);
    pipe.start(cfg);

    cv::Mat frame;

    rclcpp::WallRate loop_rate(30);
    while (rclcpp::ok()) {
        // Wait for the next set of frames
        auto frames = pipe.wait_for_frames();

        // Get RGB frame
        rs2::video_frame rgb_frame = frames.get_color_frame();

        // Convert RealSense frame to OpenCV Mat
        frame = cv::Mat(cv::Size(1280, 720), CV_8UC3, (void*)rgb_frame.get_data(), cv::Mat::AUTO_STEP);

        auto msg = cv_bridge::CvImage(std_msgs::msg::Header(), "bgr8", frame).toImageMsg();
        pub.publish(msg);

        rclcpp::spin_some(node);
        loop_rate.sleep();
    }

    rclcpp::shutdown();
    return 0;
}

Hi @Sol3N1n  The error Frame didn't arrive within 15000 indicates that new frames stopped arriving for a period of 15 seconds before the error was triggered.
How does it perform if you reduce the color FPS in your cfg instruction from 30 to 6 (or 5 if you have the D455 camera model).

This does fix the issue, but the project requires a framerate of above 20, and most likely at minimum 720p.
Would the issue be caused by the fact that USB3.2 from the camera and the USB3.0 from the raspberry are at such significantly different speeds that it just causes it to freeze?

In addition to the reduced transmission speed on USB2, the range of supported resolution / FPS combinations on RealSense cameras is also more limited on USB2.   For example, to achieve 30 FPS the resolution would have to be dropped from 1280x720 to 640x480.
On USB 3.2, 30 FPS at 1280x720 is supported.  Pi 4 has a USB 3 port.  So it sounds as though your camera is likely on a USB 3 connection but frame delivery is stopping when you use 30 FPS.  Is your program able to work if you use 15 FPS?

15 FPS seems to work okay, I cant seem to get up to the full 15 fps on the receiving side, but that might be unrelated due to network or ROS2 specific issues

Hi @Sol3N1n  Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.


Error running Hook when login

Hey!
since today, I'm getting this error message:
[...]
[TERA-Guide] GPK mod not supported in compat mode - some features may not work
[...]
[dispatch] handle: error running hook for C_LOGIN_ARBITER<2>
hook: c_login_arbiter in TERA-Guide
data : {
  name: ...,
  ticket: ...,
  unk1: 0,
  unk2: 0,
  language: 4,
  patchVersion: 9802
}
error: Cannot read property 'allDungeons' of undefined
    at Object.c_login_arbiter [as callback] ([...]tera-guide\index.js:465:36)

I already updated tera-guide and library. Any idea where the problem might be?

Hi, try to reinstall your tera Toolbox.

Unfortunately, the error persists.

Please install the latest update of the guide and check it is working.

With the new update, it works again! Thanks!


Add $XDG_DATA_DIRS checks

[X] Have you followed the guidelines in our Contributing document?
[X] Have you checked to ensure there aren't other open Pull Requests for the same change?
[X] Have you added an explanation of what your changes do and why you'd like us to include them?
[X] Have you written new tests for your changes? Here's an example.

As found in https://github.com/Linuxbrew/legacy-linuxbrew/pull/919

Do you know whether this issue also affects Mac? Should this diagnostic be run on both OS or just Linux?

Cannot tell lacking access to a Mac. My guess would be it should not be needed there as Mac should probably have some other means of discovery than following XDG. On the other hand, Cross Desktop may stretch further than open-source desktops it was originally developed for.

How about now, @sjackman ? Concise (mostly) and correct.

I have to say the errors from CI puzzle me.

Error: Testing requires the latest version of testball_copy

https://travis-ci.org/Linuxbrew/brew/builds/154865066#L222
1) Failure:
IntegrationCommandTests#test_test_formula [/home/ubuntu/brew/Library/Homebrew/test/test_integration_cmds.rb:844]:
Expected /This\ command\ requires\ a\ formula\ argument/
 to match "Error: cannot load such file -- test/unit/assertions\nPlease report this bug:\n    https://github.com/Linuxbrew/brew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting\n/home/ubuntu/brew/Library/Homebrew/formula_assertions.rb:7:in `require'\n/home/ubuntu/brew/Library/Homebrew/formula_assertions.rb:7:in `rescue in <module:Assertions>'\n/home/ubuntu/brew/Library/Homebrew/formula_assertions.rb:4:in `<module:Assertions>'\n/home/ubuntu/brew/Library/Homebrew/formula_assertions.rb:2:in `<module:Homebrew>'\n/home/ubuntu/brew/Library/Homebrew/formula_assertions.rb:1:in `<top (required)>'\n/home/ubuntu/brew/Library/Homebrew/cmd/test.rb:19:in `require'\n/home/ubuntu/brew/Library/Homebrew/cmd/test.rb:19:in `<top (required)>'\n/home/ubuntu/brew/Library/Homebrew/brew.rb:22:in `require'\n/home/ubuntu/brew/Library/Homebrew/brew.rb:22:in `require?'\n/home/ubuntu/brew/Library/Homebrew/brew.rb:61:in `<main>'"

Yep, go ahead and merge, Piotr. Thanks!


Tflite frontend needs to use zero point of input tensor while lowering qnn.conv2d for padding

The Tflite frontend ignores the zero point for input tensors when creating a separate pad operation while lowering quantized convolutions.
This is fixed by PR #4807 and the tests broken by that are fixed #4816
This also affects the 0.6 branch since the support for this landed before the 0.6 release was cut and the fix might need to be backported to the 0.6 branch.

Nice suggestion! We won't do similar things before. For some critical patches, we should port it back to our previous releases (like 0.6 mentioned here). I come up with two suggestions:

make one new release named as 0.6 SP1 / SP2 / SP3 /..., SP means service pack, the inspiration comes from Microsoft's release concept. Like Visual Studio SP1 / SP2 / SP3.

make one new release named as 0.6.1 / 0.6.2 / 0.6.3 / .... .1 / . 2 / .3 is the patch version. This inspiration comes from LLVM's release concept. Like LLVM 3.7.0 / 3.7.1 / 3.7.2 /.

cc @tqchen @zhiics @yzhliu @icemelon9

Let us mark the related PRs with [NEED-BACKPORT] tag, and then we can backport to the related branches

@tqchen , @FrozenGene
[NEED-BACKPORT-0.6] ? since there's no way of reporting what issues affect what versions in github issues ?
This is probably worth a discuss post, however I'll say my piece here in response to the comment about point releases.
Releasing from a release branch is the next step in my opinion. The first set of steps towards this are to:

Be reasonably clear about the criteria for backports.  There is not always a clear answer but correctness issues are likely to need backports but then you don't want a too risky backport so that we are not chasing bug tails by introducing a new bug to fix an old one.  Thus there needs to be a risk vs reward evaluation by either a group of release managers or the reviewer community in an objective manner. For example this fix and the related fix to fixup the tests is appropriate, however large fixes that require refactoring changes will not be at which point you need a different fix.

Reviewers need to help that contributors improve descriptions in the pull request and ask the question which release branches a particular issue affects. Further if pull requests combine bug fixes with new features especially regression fixes, such pull requests need to be split up as our current policy is to squash commits and then it's not obvious what came from where if we want someone to do a bit of archeology.

Optionally add this to the template of the Pull Request reminding developers submitting bug fixes that they could help the project by considering whether a pull request requires a backport or not.

We need an update to the contributor's guide

How do we help the reporter report the version that the issue was reported in ? Currently it's free form text but if that were a drop down list that would be great and thus keeping that information there.

Finally decide how long we would keep a branch going - what's the branch management lifecycle ?

My 2 cents.
regards
Ramana

@u99127 perhaps we can open a discuss thread on the forum. I agree with most of your points :)

Done https://discuss.tvm.ai/t/development-process-and-backporting-patches-to-release-branches/5612


error ReferenceError: len3 is not defined when adding layer to map

I am trying to create an interpolated leaflet layer in my Vue JS application.
I am receiving the following error when adding the idw layer to my map:
error ReferenceError: len3 is not defined

Here is my code:
        let dataArray = []
        filteredListData.value.forEach((data) => {
            dataArray.push([data.lat, data.lng, data.val])
        })
        const idw = L.idwLayer(dataArray, {opacity: 0.3, cellSize: 10, exp: 2, max: 50}).addTo(map.value)

If I don't addTo(), then the idw layer is created successfully.
console.log(idw) looks like this:
NewClass {options: {…}, _latlngs: Array(55), _initHooksCalled: true}
options
:
{opacity: 0.3, cellSize: 10, exp: 2, max: 50}
_initHooksCalled
:
true
_latlngs
:
(55) [Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3), Array(3)]
[[Prototype]]
:
NewClass

The latlngs array looks like this:
0
:
(3) [39.390906, -75.62808, 39.6]
1
:
(3) [39.088212, -75.437285, 40.7]
2
:
(3) [38.536626, -75.054492, 41.8]
3
:
(3) [39.864455, -75.842194, 36.5]

Any suggestions are greatly appreciated!

For anyone else encountering this error, it was just some js syntax that needed to be updated. I suppose this is with the ES6  javascript variable requirements. There were 2 js errors I needed to get around:
error ReferenceError: len3 is not defined

I just defined len3 like so:
let len3
Also, I needed to change this line:
interpolVal = numerator/denominator;

to:
const interpolVal = numerator/denominator;

Hope that helps anyone else trying to use this library.


[bugfix]: fix hpo param convert bug: https://github.com/alibaba/EasyRec/issues/155

fix hpo param convert bug: https://github.com/alibaba/EasyRec/issues/155

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

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


run terminal: error importing function definition for `which'

Describe the bug
When I start terminal tool in lens there is error messages appears in it (I'm using fedora34)
bash: which: line 1: syntax error: unexpected end of file
bash: error importing function definition for `which'
/usr/bin/sh: which: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for `which'
/usr/bin/sh: which: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for `which'
/usr/bin/sh: which: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for `which'
/usr/bin/sh: which: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for `which'
/usr/bin/sh: which: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for `which'
/usr/bin/sh: which: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for `which'
[user@fedora ~]$

To Reproduce
Steps to reproduce the behavior:

Just open terminal in lens with fedora34

Expected behavior
To not have this error messages
Environment (please complete the following information):

Lens Version: 4.2.4
OS: fedora34
Installation method: download rpm from https://github.com/lensapp/lens/releases/download/v4.2.4/Lens-4.2.4.x86_64.rpm

Additional context
the shell in the settings is default - /bin/bash

I'm having the same issue, on Fedora 34 with latest updates as of today, and Lens 5.0.2-latest.20210705.2 installed via RPM.

Moving /etc/profile.d/which2.sh to a different directory fixes it for me.  It looks like this script patches which so that it also reports on aliases and shell functions.  Something about the script doesn't play nicely with the Lens terminal window.

Same issue, fedora 34.

Is this still an issue for you on lens 5 @ldelossa ?

@Nokel81 yes, just downloaded the latest.

/bin/sh: which: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `which'
Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply`

related: #111


Req: Guidance on publishing a plugin for this plugin

We recently had need to assemble a project that included log4j2 and several of it's plugins. As each of those projects contain a Log4j2Plugins.dat cache file, we saw a bunch of conflicts. To remedy this we created a MergeStrategy.
We're now investigating publishing this strategy for others to use, but wondered if there were already some conventions in place for publishing additional MergeStrategy classes. Also, being relatively new to this process, any other advice on naming conventions, where to publish plugins or anything else you might consider helpful would be hugely appreciated.
Many thanks 😄

I don't know of any conventions around this. I think the most straight forward way would be publish it as a sbt plugin.

(optional) We recommend moving plugins to sbt organization so it's easier to add maintainers later. This is completely optional for now.
Publish to a personal Bintray account and request to link to sbt community repo - http://www.scala-sbt.org/0.13/docs/Bintray-For-Plugins.html
Include the plugin to plugin list - https://github.com/sbt/website#attention-plugin-authors
Send us a PR to describe the plugin from sbt-assembly's README.

Thanks very much for your help! 😁
I've gotten the first experimental release up and usable on bintray, and have submitted PRs for inclusion on the website (as you know!) and in the sbt-assembly README. I'll hold off on submitting it to the community repo proper until we can bump it to 1.0, after we've used it a bit more internally and written some tests for it. I'll also raise the issue of transfering it to the sbt org. Thanks again!


New sensor groups don't have maximum and minimum temperature

What happened?
The default sensor group has the entries "Maximum temperature" and " Minimum temperature". If I create a new sensor group those fields cannot be set in the ui because the fields are missing.
Default sensor group:

New sensor group:

Diagnostics file:
config_entry-smart_irrigation-55a83ca033886c56dae74c7dfafdb914.json
How to reproduce
In Smart Irrigation -> Sensor Groups click on "Add sensor group"
Relevant log output
No response
Which version are you running?
v2024.4.3
Diagnostics file

[X] I have attached a diagnostics file

Additional information
No response

They were removed as we only used them to calculate average temperatures. There should not have been a default sensor group at all.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: bulburDE @.>
Sent: Saturday, May 18, 2024 10:05:22 PM
To: jeroenterheerdt/HAsmartirrigation @.>
Cc: Assign @.>; Subscribed @.>
Subject: [jeroenterheerdt/HAsmartirrigation] New sensor groups don't have maximum and minimum temperature (Issue #371)
What happened?
The default sensor group has the entries "Maximum temperature" and " Minimum temperature". If I create a new sensor group those fields cannot be set in the ui because the fields are missing.
Default sensor group:
smart_irrigation_default_sensor_group.png (view on web)https://github.com/jeroenterheerdt/HAsmartirrigation/assets/6855903/3adc8eca-2b42-46be-9ed1-e8bbc12982c0
New sensor group:
smart_irrigation_other_sensor_group.png (view on web)https://github.com/jeroenterheerdt/HAsmartirrigation/assets/6855903/b577349f-fb74-4a56-8343-41e8db6f4ada
Diagnostics file:
config_entry-smart_irrigation-55a83ca033886c56dae74c7dfafdb914.jsonhttps://github.com/jeroenterheerdt/HAsmartirrigation/files/15367641/config_entry-smart_irrigation-55a83ca033886c56dae74c7dfafdb914.json
How to reproduce
In Smart Irrigation -> Sensor Groups click on "Add sensor group"
Relevant log output
No response
Which version are you running?
v2024.4.3
Diagnostics file

I have attached a diagnostics file

Additional information
No response
—
Reply to this email directly, view it on GitHubhttps://github.com/jeroenterheerdt/HAsmartirrigation/issues/371 or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6PIPXC4VX6LVIEHWLFWELZDAXJFBFKMF2HI4TJMJ2XIZLTSSBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJLJONZXKZNENZQW2ZNLORUHEZLBMRPXI6LQMWBKK5TBNR2WLKRSGA2TGOBZGQYTON5ENZQW2ZNJNBQXGX3MMFRGK3ECUV3GC3DVMWSHI4TVMWSG4YLNMWXHOYLUMNUF6YLDORUXM2LUPGWHG5LCNJSWG5C7OR4XAZNFJFZXG5LFUZ2G64DJMNZZHAVEOR4XAZNKOJSXA33TNF2G64TZUV3GC3DVMWUTENRTGE3TSMJXG2BKI5DZOBS2K2LTON2WLJLWMFWHKZNKGIZTANBUGMZDGMBVQKSHI6LQMWSWYYLCMVWKK5TBNR2WLKRSGA2TGOBZGQYTON5HORZGSZ3HMVZKMY3SMVQXIZI.
You are receiving this email because you were assigned.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Good to know. I just deleted the integration, restarted home assistant and readded the integration. Everything is like it was when I first installed it: no zones, all default values. But there is a default sensor group.


circular polarization

if have to consider circular polarization ,how to modify the code to calculate 4x4 Mueller matrix with circular polarizer

Hi, @yimuchunshu!
I am focusing on circular polarization and would like to extend the program to handle all polarization states.
I'm trying to develop the code to handle circular polarization (see circular branch). But the calculation of the 4x4 Mueller matrix is not yet available. Currently, I am very busy, so development is temporarily suspended.
To calculate the 4x4 Mueller matrix, it is recommended to modify calcMueller. In particular, it is the matrix A that is to be modified. A is determined by the light source and the camera side polarization elements and represents the relationship between the Mueller matrix and the captured intensity. So you should rewrite A to take into account the effect of the both linear and circular polarizers used for the measurement.
For your reference, here is how to calculate the 3x3 Mueller matrix.
The relationship between the polarizer angles (theta_light, theta_camera), the intensity (i), and the Mueller matrix (M_1d) is expressed in matrix form as
  i = a M_1d
and
  a = [1, cos(theta_light), sin(theta_light), cos(theta_camera), cos(theta_camera)*cos(theta_light), cos(theta_camera)*sin(theta_light), sin(theta_camera), sin(theta_camera)*cos(theta_light), sin(theta_camera)*sin(theta_light)].T (1x9)
  M_1d = [m11, m12, m13, m21, m22, m23, m31, m32, m33] (9x1)
Considering the combination of several angles, it can be extended to
  I = A M_1d
and
  I   = [i1, i2, ... , iN] (Nx1)
  A = [a1, a2, ... , aN] (Nx9)
All that remains is to solve the least-squares problem using a pseudo-inverse matrix.
  M_1d = Apinv I

Thank you very much, amigo. If you have spare time,  please enlighten me on how to update the code to suit the full Stokes measurement

I have updated this project to v2.0.0. It can calculate the 4x4 Mueller matrix. If you remember, please check it!

Thanks a lot

I have updated this project to v2.0.0. It can calculate the 4x4 Mueller matrix. If you remember, please check it!

i do remember


ENV Add Litter datasets and datasetver to Vocab

For litter in biota, sediment, water, seafloor

Datasetver can be linked to 1 code in Dataset
consider creating joint landing page for litter

Dataset LT remains
New Datasetver:
E18 LF (biota)
E19 LS (sediment)
E20 LW (water)
E21 LB (seafloor)


feature request: ctrl-r works without focus on top pane

Thank you for making process compose, it is very nice to use!
Feature Request
I've noticed that restarting a process depends on the focus being on the top pane. It does nothing if the focus is on the logs. This makes process-compose feel unresponsive. Either it should let you know it doesn't work, or it should just work. The UI shows Ctrl-R at the bottom as an option, but it does nothing if the logs pane is selected.
Use Case:

I want to restart a process
I type ctrl+r
Nothing happens
I have to learn and remember to click the top pane to have Ctrl-R do something

Proposed Change:

Enable ctrl-r to work no matter where the focus is. Since the UI shows a selected process

Who Benefits From The Change(s)?

Users who want to restart processes

Alternative Approaches

Don't show ctrl-r as an option when it isn't available
pop up a modal that says you can't use ctrl-r here when you don't have the top selected

Hi @ryantm,
Thanks for your feedback.
It sounds like a bug, as Ctrl-r should be a global shortcut.
I tried to reproduce that in my environment but couldn't. It works when both the top and bottom parts are selected.
Can you please provide more details? Version, OS, Terminal.

Ah, you're right! I'm sorry, I tried to make a minimal reproduction and it works fine. I'll try to see if I can reproduce consistently with some minimal thing and re-open if I do.

When I upgraded from process-compose v1.24.2 to v1.40.1 for my use case, the problem went away.


Is it possible to reset the status of the progress bar to zero

Is it possible to reset/ restart the progress bar? Every time I do this it just seems to add another progress bar below it?

bar.animate solved this!

how to to this inside a function if i have multiple items
say we click on a parent and we want its child to re-play / animate
meaning we don't have the "bar" variable.. how do we recreate it
based on parent / click etc ?


[Feature Request] PDF Imposition/Creep Correction

Overview
There's currently a lack of polished open source tools that handle the imposition of PDFs. Since Stirling already has some N-up capability, I'm hoping it isn't too big an ask to investigate proper imposition and potentially creep correction.
For reference (if useful), imposition is the process of laying out the pages of a booklet for printing, such that they can be stacked and folded to produce a small book with its pages in proper order. For basic booklet imposition, this means the first sheet of paper will have the front and back covers on one side, and the inner covers on the opposite side. Subsequent sheets show increasing page numbers on the left and decreasing page numbers on the right, until the very middle two pages are next to each other on the final sheet.
An optional (but recommended) part of this process includes creep correction. When printing a booklet, if the goal is to simply fold and staple the stack of paper to produce a book, the centermost pages will stick out past the cover by a certain amount. Creep correction is useful in maintaining consistent layout when trimming those trailing edges, as it will gradually decrease the gutter (inner margin) size between pages closer to the middle of the booklet. This way, elements that are positioned a certain amount of space from the outer edge of the page (such as page numbers) are consistent after the edges are cut.
Other Implementations
Imposition is most comprehensively implemented (with GUI for ease of use) in closed-source desktop publishing software like Adobe's InDesign and is also a key feature in Acrobat's print utility. Dedicated proprietary software for this task includes Kodak Preps and Montax Imposer.
There are, however, a number of open source command-line tools to handle the task, including the Python package pdfimpose and the ruby-based impose. GUI implementations exist via the GTK/Python PDFBooklet and jPDF Tweak (java), a GUI tool to handle this process mathematically.
Considerations
Since Stirling PDF seems to target ease of use and clean UX, I think only implementing basic booklet printing with an optional field for creep correction would be useful. An option to preserve the aspect ratio of the pages may be important (for instance, most users will want to retain the shape of their input document, but users that produced their file with the intention of using an imposition tool will probably have pages sized 8.5"x5.5", with the intended output being a stack of 8.5"x11" sheets).
In general, thanks for putting together this phenomenal PDF multi-tool!

V2 currently has imposition, but it is still currently in development.


remove variable assignment in exception that isn't 2.5 compatible

Glad you're finding it useful. Keep the pull requests coming if you run into bugs.


Logging Configuration File Should Be Marked

In the Debian installation package, logback.xml is not marked under conffiles.  This file configures the logging behavior of the server, and should therefore be properly marked as a configuration file.

Marking the file directly causes Lintian to raise an error.  It seems the Debian standard expects all configuration files to reside under /etc/.


Grand Exchange Tasks should have the option to be idempotent

Due to low CPU mode and script break inconsistencies, a GE buy task can end up occurring twice. It would be nice to have a check box to ensure idempotency (make sure this buy task only occurs once / if we don't already have that item/quantity in our inventory or bank)
I have this added locally and am happy to contribute it, if it is something we want. The default value will be False.
@RealPoke @Explv @Azn2000

Do a pull request, that's the best way to get your code reviewed and accepted :)
I would love this.

Is these accounts both of you?

Why does the task happen twice?

Oops. Yeah I was using an account for the sake of making private SDN
scripts but they get mixed up. :)
On Sun, Feb 3, 2019 at 12:06 PM RealPoke<EMAIL_ADDRESS>wrote:

Is these accounts both of you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Explv/Explvs-AIO/issues/70#issuecomment-460078813,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGReXnv2okqan0aTgyEhJ6DYwxAk1dDgks5vJzNRgaJpZM4agPwO
.

A variety of reasons. It could be due to script ordering issues, a break
happening in the middle of a loop, etc.
On Sun, Feb 3, 2019 at 12:09 PM Explv<EMAIL_ADDRESS>wrote:

Why does the task happen twice?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Explv/Explvs-AIO/issues/70#issuecomment-460078984,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGReXm3flmAbp19NGJc-YEJC29fuqiFmks5vJzPPgaJpZM4agPwO
.


Local cram files

If you try and select local cram/crai, gene errors and asks for bam/bai.

Error today for local cram, even after selecting both a cram and crai
"You must select BOTH a compressed bam and an index (.bai) file"

it should support local crams
we should change the wording for "Enter bam URL" to "Enter bam/cram URL" and the error message about indexes to indicate bam or cram indexes .bai or .crai


Polish the NetApp

/azp run net - netapp - mgmt

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.ResourceManager.NetApp


Gradually implement processor for Sonar rule 2755 (XML parsers should not be vulnerable to XXE attacks)

This is related to introducing a processor for  XML parsers should not be vulnerable to XXE attacks. It's a rather complicated processor, so I'm introducing gradually. As can be noted, it covers a variety of libraries, but there are only a couple of major variations in usage.
I'm initially targeting only the DocumentBuilderFactory use cases to see if this is even feasible to repair adequately. I've found 6 major variations to what it can look like. Here's an example repair of the simplest case:
+import javax.xml.XMLConstants;
 import org.w3c.dom.Document;
 import org.xml.sax.InputSource;

 import javax.xml.parsers.DocumentBuilder;
 import javax.xml.parsers.DocumentBuilderFactory;

 public class DocumentBuilderNoSecurity {
     public static Document parse(String xmlFile) throws Exception {
         DocumentBuilderFactory df = DocumentBuilderFactory.newInstance();
+        df.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
+        df.setAttribute(XMLConstants.ACCESS_EXTERNAL_SCHEMA, "");
         DocumentBuilder builder = df.newDocumentBuilder();
         return builder.parse(new InputSource(xmlFile));
     }
 }

The cases I've found are:

A local variable of type DocumentBuilderFactory is declared and initialized. See example transformation above.

It's possible that the declaration and initialization are separated, but I've never seen that happen, and so it doesn't seem worth it to account for. As such, the current implementation deals with this case well enough.

A local variable of type DocumentBuilder is created by chaining DocumentBuilderFactory.newInstance().newDocumentBuilder().
Chaining everything together in one expression, like so: DocumentBuilderFactory.newInstance().newDocumentBuilder().parse("xmlfile.xml")
Like 1, but instead a field is used.

Here, initialization may very well occur in a constructor, and so to be prudent one should attempt to locate any initialization of the field.

Like 2, but instead a field is used.
Like 3, but instead a field is used.

Currently, I've solved case 1 with #191 . It's rather simple and requires only the addition of a few statements. Cases 2-4 require rewriting the existing code. I think the simplest way to do this is to replace the statements with a method invocation. For example, for case 2 and 3, one could substitute DocumentBuilderFactory.newInstance().newDocumentBuilder() for createDocumentBuilder(), which is defined like so.
private static DocumentBuilder createDocumentBuilder() {
    DocumentBuilderFactory df = DocumentBuilderFactory.newInstance();
    df.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
    df.setAttribute(XMLConstants.ACCESS_EXTERNAL_SCHEMA, "");
    return df.newDocumentBuilder();
}

Cases 4-6 can all be solved by creating such a method, and substituting all initializations of the field with an invocation of said method.

After thinking this through over the weekend, I think I may have been overthinking it. It should be fully sufficient to replace every occurrence of DocumentBuilderFactory.newInstance() with createDocumentBuilder(). We don't have to worry about whether or not it's related to fields or not.

As it turns out, the "major variations" outlined in the opening comment in this issue don't really matter. As explained in #201, all violations related to DocumentBuilderFactory.newInstance() can be solved by substituting the call to newInstance() for a call to a method that creates a "safe" factory. With #202, I've shown that it generalizes easily to at least TransformerFactory.
Fields, however, don't appear to work. The solution of method invocation substitution applies to fields as well, but Sonar does not flag them as violations, and so we can't detect them.
Here's the roadmap for implementing support, in the order in which the libraries are listed in rule 2755:

[x] DocumentBuilderFactory

Uses setAttribute(String, Object) to set attributes
Done in #201

[ ] SAXParserFactory

This one is a bit tricky, as it doesn't set attributes on the factory, but on the parser itself
Uses setProperty(String, Object) to set attributes

[ ] XMLInputFactory

Uses setProperty(String, Object) to set attributes

[x] TransformerFactory

Is the only factory that requires ACCESS_EXTERNAL_STYLESHEET instead of ACCESS_EXTERNAL_SCHEMA to be set
Uses setAttribute(String, Object) to set attributes
Done in #202

[ ] SchemaFactory

Uses setProperty(String, Object) to set attributes

[ ] Validator

Appears to depend on SchemaFactory
Attributes are set on the instance, not the factory
Uses setProperty(String, Object) to set attributes

[ ] dom4j

Does not support the regular attributes, requires custom workaround

[ ] Jdom2

Builder is created with constructor call instead of invocation of newInstance(). Not sure if it matters.

Depends on https://github.com/INRIA/spoon/pull/3702, which will be merged soon.

FYI, for the big picture about XML and security:
Coordinated disclosure of XML round-trip vulnerabilities in Go’s standard library
https://mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities/

Thanks @monperrus, I'll have a look


cdCON 2021: Email Promotion Plan - Internal

[ ] Recruit planning committee | Jacqueline | Launch: Nov. 2 - Dec. 14, 2021 (weekly reminders)
[ ] Announce planning committee calendar invite | Jacqueline | Launch:  Nov. 16 - Dec. 16, 2021(weekly reminders)
[ ] Announce cdCON dates: |   | Launch: Jan. 4 - June 21, 2021 (monthly reminders)
[ ] Announce CFP is open |   | Launch: Jan. 4 -  Feb. 13, 2021 (bi- weekly reminders)
[ ] Announce Sponsorship opportunities |   | Launch: Jan. 4 - June X, 2021 (bi-weekly reminders)
[ ] CFP reminder |   | Launch: Jan. 11 - Feb. 29, 2021(bi-weekly reminders)
[ ] CFP final reminder |   | Launch: March 5, 2021 (email day before or day of)
[ ] Event program announcement: speakers & sessions |   | Launch: April 2, 2021
[ ] Event program announcement: keynote speaker lineup |   | Launch: April 6, 2021
[ ] Registration promotion |   | Launch: March 15 - June 21, 2021 (monthly reminders)

emails announcing cdcon registration (jan. 4), cfp (jan.11), and prospectus (jan.18) have been scheduled & sent.
monthly reminders for registration & sponsorship will be scheduled next

emails announcing cdcon registration (jan. 4), cfp (jan.11), and prospectus (jan.18) have been scheduled & sent.
monthly reminders for registration & sponsorship will be scheduled next


Adjust ContractR sample to the latest RoboVM snapshot (v1-beta3)

Reflect getter/setter adjustments in the RoboVM library.

Thanks!


Gather URLs to crawl

Create a queue of URLs to crawl from each page you visit. Should obey robots.txt

Should maybe be another library or a function you can turn on/off, or a function that can be run separately. We'll see. The robots.txt-part will be a check just when each link is to be fetched.

Use robots-parser? No dependencies, so should be easy enough to make run in the browser.


Where is your thumbnail in your demo?

What thumbnail are you talking about?

Is the picture in README.md? At preview.gif
The thumbnails displayed in the demo are loaded from the video stream, and the video stream is from the network.
Or where is the thumbnail saved? There is a Bitmap[] thumbnails; at ThumbThread.java. Generally, thumbnails do not need to be large 320*180, and only need 100 sheets. There is currently no cache in the project, and it is possible to do it later.


Add a 'server information' profile

Facter looks promising for this. Of particular interest is that it retrieves instance metadata, and this can now include instance tags.

Now available starting in 0.4.0, using Facter.


Add static routing support

Static routing support

Thanks for your hard work on this @geriBatai, much appreciated :+1: :eggplant:

This has been released in version 1.5.0.


News don't have the right display for tablet portrait - should be only one column

News are always display one under the other, but not for the tablet portrait format where they suddenly are displayed 3 next to each other, which is not correct. The styling of the column control should be adapted so that each new is dislayed on the full width, and so that the next new is displayed under the first one.

Does this happen in the styleguide too? This looks like a faulty implementation of the bootstrap columns from the developer.

I don't know as I cannot find an example I could test in the styleguide. It has to be a news feed which is displayed on a normal content page with a left handside navigation. Can you help me?

This is indeed happening because of the integration developer. Faulty code:
@media (max-width: 991px) and (min-width: 768px) {
  .mod-nsbnewslist .news-feed .list-group-item {
    width: 33%;
  }
}

I'm closing this issue because it is not an issue caused by the styleguide.

Thanks for your help!


how to load more trt model

Thanks for your working! I have successfully run my yolov4-tiny trt model on NX, but when I want to load 2 models, an error occurred as
follows:
[TensorRT] ERROR: ../rtSafe/cuda/caskConvolutionRunner.cpp (491) - Cuda Error in execute: 400 (invalid resource handle)
[TensorRT] ERROR: FAILED_EXECUTION: std::exception
I hope to get your answer, thank you!!!

If you are writing single-threaded code, just instantiate 2 TrtYOLO objects.  It should work.
In case you are creating multiple threads, you'll have to create/manage CUDA context for each thread.  You could refer to trt_ssd_async.py.

Thanks for your reply, I have tried to instantiate 2 TrtYOLO objects with single-threaded, however It didn't work.
Code and error message are shown in the file.
------------------ 原始邮件 ------------------
发件人:                                                                                "jkjung-avt/tensorrt_demos"<EMAIL_ADDRESS>发送时间: 2020年9月8日(星期二) 中午11:03
收件人<EMAIL_ADDRESS>抄送: "走走停停ゝ"<445099619<EMAIL_ADDRESS>主题: Re: [jkjung-avt/tensorrt_demos] how to load more trt model (#219)
If you are writing single-threaded code, just instantiate 2 TrtYOLO objects.  It should work.
In case you are creating multiple threads, you'll have to create/manage CUDA context for each thread.  You could refer to trt_ssd_async.py.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Code and error message are shown in the file.

Where is the file?

The file was sent as an attachment, and the content of the file is as follows.
#########################
"""trt_yolo.py
This script demonstrates how to do real-time object detection with
TensorRT optimized YOLO engine.
"""
import os
import time
import argparse
import numpy as np
import cv2
import pycuda.autoinit  # This is needed for initializing CUDA driver
from utils.yolo_classes import get_cls_dict
from utils.yolo import TrtYOLO
from utils.camera import add_camera_args, Camera
from utils.display import open_window, set_display, show_fps
from utils.visualization import BBoxVisualization
coco_cls_num = 80
road_cls_num = 1
coco_model = 'yolov4-tiny-416-coco'
road_model = 'yolov4-tiny-416-road'
cap = cv2.VideoCapture('/home/nx/LJF/video/sign.mp4')
if name == 'main':
    coco_trt = TrtYOLO(coco_model, (416, 416), coco_cls_num)
    road_trt = TrtYOLO(road_model, (416, 416), road_cls_num)
    tic = time.time()
    vid_writer = None
    f_count = 0
    while True:
        ret, frame = cap.read()
        if frame is None:
            continue
        coco_boxes, coco_confs, coco_clss = coco_trt.detect(frame)
        road_boxes, road_confs, road_clss = road_trt.detect(frame)
        print(f_count)
        f_count += 1
        cv2.waitKey(1)
    cap.release()
#########################
------------------ 原始邮件 ------------------
发件人:                                                                                "jkjung-avt/tensorrt_demos"<EMAIL_ADDRESS>发送时间: 2020年9月8日(星期二) 晚上8:25
收件人<EMAIL_ADDRESS>抄送: "走走停停ゝ"<445099619<EMAIL_ADDRESS>主题: Re: [jkjung-avt/tensorrt_demos] how to load more trt model (#219)
Code and error message are shown in the file.
Where is the file?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

The following sample code works.  It demonstrates running 2 TrtYOLO detectors in one process.
import cv2
import pycuda.autoinit

from utils.yolo_with_plugins import TrtYOLO

img = cv2.imread('dog.jpg')
trt_yolo1= TrtYOLO('yolov4-416', (416, 416), 80)
trt_yolo2= TrtYOLO('yolov4-tiny-288', (288, 288), 80)
print(trt_yolo1.detect(img))
print(trt_yolo2.detect(img))

Thanks for your great work, I have successfully deployed mult trt models with single-thread and mult-thread.Thanks again!
------------------ 原始邮件 ------------------
发件人:                                                                                "jkjung-avt/tensorrt_demos"<EMAIL_ADDRESS>发送时间: 2020年9月20日(星期天) 上午9:18
收件人<EMAIL_ADDRESS>抄送: "走走停停ゝ"<445099619<EMAIL_ADDRESS>主题: Re: [jkjung-avt/tensorrt_demos] how to load more trt model (#219)
The following sample code works.  It demonstrates running 2 TrtYOLO detectors in one process.
import cv2 import pycuda.autoinit from utils.yolo_with_plugins import TrtYOLO img = cv2.imread('dog.jpg') trt_yolo1= TrtYOLO('yolov4-416', (416, 416), 80) trt_yolo2= TrtYOLO('yolov4-tiny-288', (288, 288), 80) print(trt_yolo1.detect(img)) print(trt_yolo2.detect(img))
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


divide abnormal tympanic ring morphology and create ossification terms

divide abnormal tympanic ring morphology (MP:0000030)
review annotations for new child terms
currently we only have decreased size should add
abnormal size
increased size
abnormal/increased/decreased thickness
Most general ossification terms are under physiology but there are bone specific terms under morphology or physiology. We need to decide where these belong.
There are a number of reduced ossification annotations to abnormal tympanic ring morphology - create a terms for abnormal/increased/decreased tympanic ring ossification and move these annotations.

abnormal sternum ossification

uses process quality and GO term in eq
child of both abnormal ossification (physiology) and abnormal sternum morphology
should remove the morphology parent

abnormal palatal shelf ossification

currently only under abnormal palatal shelf morphology(child of abnormal secondary palate development
eq uses process quality and GO term
BUT we often have developmental processes on the morphology branch
should at least make this a child of abnormal ossification, need to think about the morphology/development parent

added
increased size - MP:0014562
duplicated - MP:0014563


can now download agent artifacts

Note that this PR does not contain the start/stop workload functionality. I wanted to keep the PR small so this just includes the functionality for downloading (if applicable) agent artifacts and then starting them.


Update select.yml

What
Prior to this change, the documentation for the select component suggests passing a parameter called hint_text,
however it looks that this should actually be hint. Comment on hint_text vs hint on original PR:
https://github.com/alphagov/govuk_publishing_components/pull/2594#discussion_r795723822
Why

Visual Changes

Before
After

Thanks for pointing this out @KyleMacPherson! It's going to be addressed in a separate PR


PRL-5320: CA Personal service by Applicant Solicitor - Welsh email

JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/PRL-5320
Change description
This task is focused on creating the Welsh email notification that delivers the orders to be personally served to the applicant's solicitor, so the orders and notification will contain both English and Welsh emails.
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

Changes are merged into SOA common PR https://github.com/hmcts/prl-cos-api/pull/2205
Closing this.


Correct name for falsy docs

A few small changes to the docs for falsy

Coverage remained the same at 95.461% when pulling 86738e74306e47f8107a881d19a789475dab01ac on evonsdesigns:patch-1 into 894a69c3fbbab095a495dc401cf0267ab3787806 on chancejs:master.


Broken since uv 0.4.0

Hi!
I'm one of the uv maintainers and oversaw a lot of the breaking changes in 0.4.0. I'd love to hear more about how it broke things here. The changes weren't intended to break any existing use-cases, just change some defaults. Maybe we can provide some guidance around how to get things working again.

Hey @zanieb thanks for reaching out!
"Broken" is the wrong word, I just wanted to make it clear that people shouldn't expect it to work in the way I envisioned.
It's basically this issue: https://github.com/astral-sh/uv/issues/6935
Without uv sync --all-packages (or similar), una is a bit more of a pain. To be fair I could just update the docs a bit to make it clear that you must sync the package you're working on (which I don't think is super obvious) and that's good enough for now. But I haven't had any spare time recently to think about making that clear and friendly.


feat: list2tree method add

Coverage increased (+0.005%) to 94.954% when pulling a8b7fd01b51f881d9d604e8f437257a73d602d27 on ejums:feature/list2tree-method-add into bef0c8a5728d9eed36a08c431be036370553c602 on apache:master.

-1: No idea what this does as the doc is just one short sentence but it seems like some hyper specific collection processing method not generally useful. Feel free to elucidate. Also, instead of opening and closing PR after PR with the same code, please commit and optionally squash to the same PR.

-1: No idea what this does as the doc is just one short sentence but it seems like some hyper specific collection processing method not generally useful. Feel free to elucidate. Also, instead of opening and closing PR after PR with the same code, please commit and optionally squash to the same PR.

This method is a general method for converting the flattened list of any object type into a tree list, supporting operations such as computing hierarchy and judging whether it is the top and last level (refer to the corresponding test case for details of calling)
As for the problem of multiple PR, it is because the jdoc format is incompatible and failed to pass the detection. I will pay attention to it later

Closing: See my previous comment.


Sleep data is missing

@matinzd First of all very good work.
Sleep data is missing. I saw it is not implemented yet, Can you prioritise sleep data? Humble request.

Hi
You can follow this pull request for the progress:
https://github.com/matinzd/react-native-health-connect/pull/9

🚀  v0.1.0-alpha.8 is now published under the alpha flag.
Changelog:
https://github.com/matinzd/react-native-health-connect/releases/tag/v0.1.0-alpha.8


store infra container in sandbox

infra container is used to implement the pod
sandbox, it should not be exported to user.
this patch stores infra container in sandbox
immediately, only the containers created by user
are stored into container store, this prevents user
from removing/stopping infra container incorrectly.
Signed-off-by: Gao feng<EMAIL_ADDRESS>

This is the fix that I had in mind 👍 I will test this out a bit.

This works fine besides the one comment. I tested with kubelet and it gets us one step closer :+1:

LGTM


cdc: Refactor EventBatcherSink

What problem does this PR solve?

Refactored ``EventBatcherSink`
Fixed a potential violation of the calling convention of future-like functions.

What is changed and how it works?

Redesigned EventBatcherSink with an internal state that's easy to reason about.
Ensured that tasks blocked while polling the inner sink poll the inner sink again once awaken.

Related changes

Need to cherry-pick to the release branch

Check List
Tests

Unit test
Integration test

Side effects

None

Release note

Optimize CDC sink

/run-all-tests

/cc @overvenus @5kbpers @leoppro

/run-all-tests


Option to disable prediction of train examples after training

Other than sanity testing the training procedure there is no reason to predict the entire training sample after training. It may take a long time and serves no real purpose (in most machine learning applications).
I'd like to suggest a command line option that disables predicting the training samples after training is done. The default may even be "on" to avoid breaking scripts that need to parse that information.
Thanks!

Thank you for the feedback! We have disabled the error prediction on the training set after training.
To avoid having too many command line options, we haven't added a command line option for this. Users who want to obtain training error can simply run thundersvm-predict :)

Thank you very much! I believe this will be useful for everyone :)


Possible defect for method 'object_exists'

Greetings!
I noticed that method object_exists referred a StackOverflow post, while a recent comment to it mentioned that the method can cause a problem if the file is huge.
I'm trying to learn the usefulness of such small updates on StackOverflow. Would this comment help improve your code? I understand that such defect might not happen in real life situation. In that case, do you think this comment can help prevent future bugs (for example, when the code were reused somewhere else)?
I'll really appreciate it if you could kindly give me some feedback or suggestions. Thank you very much for your time.
Have a nice day!

fixed it in the new version


StrictData not recognized

In all my projects I get really annoying squiggly lines saying that I should be aware of strictness. Bangs work but StrictData is ignored.
I'm using latest Haskell language server (<IP_ADDRESS>). I'm not sure if it's related to hlint or the language server, though.
Just a basic Haskell project.

Sorry, must be a language server thingy!


Lightning transfer to Munity pending, channel not opening

Transferred 250,000sats from Blink to Munity, invoice status in Blink is still pending  after hours.
The amount is above my current inbound liquidity in Munity.
I thought a new channel would be automatically opened.
Log file attached.
Thanks for your support!
mutiny-logs (1).txt

Ok, after 7h lightning transfer status pending in blink it changed to cancelled and I can access my funds again. Should I try it again? Any idea what could have been the reason?

You need to keep mutiny open to receive the payment. After you initiate the send from blink you should open mutiny and leave it open until you get the success screen

Looks like there's a problem with the latest LSP release. We'll work with them on it.

Okay this should be working again. After investigations, there was an issue with available UTXOs on the LSP. Will open up an issue with them but this should be working again with Mutiny.


wip: cow app data

Description

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #5458   👈

This comment was auto-generated by Graphite.

Cow trades working after tweaking the webpack config slightly.
The webpack changes were nested under isProduction which is why it wasnt working for local build. One of the changes doesnt seem to be required :)
https://explorer.cow.fi/orders/0xd288f5a4c31ad125aceba048540969d9024ab50f9480755d500996da056cb17734b5d5153fc1a2107a311ce6412fb69a30d78e156528a7dd?tab=overview


Localization (Multiple language)

Don't you have a plan to make it more accessible for everyone at least to understand our mission on this website by making a localization for another language such a english?

Actually in the early stage we are targeting for the local Indonesia people and make all the website pages using Indonesian so that people will have no entry barriers with the language.
But yes, we'll make the localization so people around the world can enjoy this platform and also contribute.
Btw, thanks for the advice.

This issue will be considered when KawanData have members and ready to expandt o make it more accessible for everyone.
For this time, I'll close this issue.


What would be needed for 1/8th scan support

Hello!
First thing first: thank you so much for this incredible library.
I've sourced a lot of panels from china over the last year, as part of a bigger initiative. Most of my code is tied to this lib and I wouldn't want to switch to another since this one fits the bill perfectly as I need to be able to squeeze out as many frames as possible.
However, some of my batches are 1/8th scan rate which is expressly not supported. I'd be completely ok with working on a branch/fork that implements support for it, but while I don't mind digging through code, It be really awesome if you could give pointers as to where to look/what would be needed for 1/8th support.
Thanks in advance!

Glad to hear this library is of use!
I think your best bet would be to experiment with this example: https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-I2S-DMA/tree/master/examples/P6_32x16_1_4_ScanPanel
Perhaps hack it to see if you can make it work for 1/8th scan. Would be a good addition to the library. The core DMA code the librray) won't need to be changed in this case.

Just to clarify a bit more, lines 399-410 of https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-I2S-DMA/blob/master/examples/P6_32x16_1_4_ScanPanel/QuarterScanMatrixPanel.h
Specifically line 401.
  const int y_remap[] = { 0,1,8,9,4,5,12,13,16,17,24,25,22,23,30,31 };
I suspect a solution for 1/8 scan panels may be able to be found with playing with this mapping table.

Awesome. Thanks for the pointers! I'll look into it and play with it. I'll PR if I get something satisfactory

Ok so after a whole day of working on those panels and almost pulling my entire head of hair over it, I've figured out that what I thought were 1/8th scan panels were actually multiplexed panels, where pixels basically can be turned on/written twice, the second time making the pixel brighter.
This appears to be common on outdoors panels according to the documentation of rpi-rgb-led-matrix https://github.com/hzeller/rpi-rgb-led-matrix#types-of-displays
I've gotten it to work with a pi, rpi-rgb-led-matrix and the led-multiplex=1 option.
The real challenge will be to make MatrixPanel-I2S-DMA work with it.
Where do you think should I start? I'm not sure a remap trick would work?

I'm gonna close this issue in favor of a new once, since the core issue has changed


Demote Tor Bug #29699 NOTICE to INFO

This bug is unlikely to be fixed soon and is somewhat noisy. It is fine for introcircs to get closed this way as they will reconnect, and it doesn't happen that often.

Done and documented in changelog.


feat(anvil): add support for JS tracer in Anvil

Component
Anvil
Describe the feature you would like
with new inspector crate we can now add JS tracing
reference impl
https://github.com/paradigmxyz/reth/blob/6430731fff06bfde15318667240d5738505fd6f8/crates/rpc/rpc/src/debug.rs#L551-L551
Note: because JS needs to access the DB we need to spawn a task that handles various db requests:
https://github.com/paradigmxyz/reth/blob/6430731fff06bfde15318667240d5738505fd6f8/crates/rpc/rpc/src/debug.rs#L645-L645
Additional context
No response

Would love to have this feature as well! Hope it gets to Anvil.

@1010adigupta great! lmk when you need pointers

Hi @1010adigupta, do you have any updates on this ticket or need help? We are happy to give pointers

Hey @zerosnacks, if this is still available for dev, I'd be happy to take it. I would appreciate any pointers to get started since the reth code linked in the issue has changed. Ty 🙏

Hi @EdwardJES sorry I had missed your tag! Assigned you
The updated links are:
https://github.com/paradigmxyz/reth/pull/6129
https://github.com/paradigmxyz/reth/blob/bb27f37cc703789eb41bb084892d44f770868e7d/crates/rpc/rpc/src/debug.rs#L400-L424


autoClosingPairs not keeping up (possibly due to cursor animation?)

Oni Version: 0.3.4
Operating System: macOS 10.12.6
Sorry if I missed a previous issue, but I tried searching and didn't find it.
Describe your issue
When typing [] in quick succession, with AutoPairs enabled and active for the characters mentioned, I get []] in my buffer.
It looks as if there's something funky going on with the cursor's highlight-animation (which I can't find how to disable...), because it behaves differently depending on the timing when typing the mentioned pair, but I can only reliably reproduce the []] result.
Expected behaviour
I expect [] to produce [] in my buffer, regardless of the speed at which it's typed.
Actual behaviour
If I type [] quickly enough, []] is instead inserted in my buffer, with the cursor (shown as |) placed like this: []|]
Steps to reproduce
Type [ and ] in quick succession.
⭐ Bonus issue (probably the same) ⭐
I can produce [[] reliably by quickly double tapping [. The cursor ends up like this: [[|]

No worries, it's the least I can do.
Yeah, I do have some plugins and vim settings. I could move those and attempt a repro on a pure Oni-setup if you want.

I had a similar issue because I had jiangmiao/auto-pairs in my vimrc, and the two weren't playing nicely together.
Haven't had any oni issues since deactivating the plugin in my vimrc.


Sort parameters by their order before sorting them by their name

Rather than sorting parameters only by their name, sort them by their existing order field first, then use the name as a tiebreaker.
Parameter already implements Ordered, so this seems like a natural way of sorting parameters.
This also enables plugins to apply any custom parameter order they want, while the current sorting prevents that.
Currently parameters all have the initial order value of Integer.MIN_VALUE, so this change should not affect the current ordering without any additional plugins applied.

+1

+1

@shartte Can you resolve the conflict? I would also like to keep the defined order instead of sorting parameters alphabetically and am looking forward to see this landing in 3.0.

Sorry, no, I won't put any more time in. It seems like this PR has no chance of being merged given how long it is open.

@shartte sorry it took so long. I've resolved the conflicts and merged.

Thanks for the PR! 🤘

Hi,
@dilipkrish Will it be released soon? This change is quite usefull INMO.

@antechrestos yes Im trying to as soon as I can... see #3070

looks still broken


extract config to json

It happened to me a some times, that I had typos in my config. What do you think about pulling the config into a json file and enable the user to run jsonlint with npm on the file to validate its content. In the config.js we the n would only need to import the json file.

The downside of json is that it doesn't support commenting. So I prefer the javascript method. (Aside from the fact that it's a major breaking change.)
It would be no problem to add some script informing the user that the current config is malformed/incorrect. So I think we could better focus on that.


BitBucket and GitLab support

Hay Love this idea.
How easy would it be to do this for bitbucket as well?

Fairly easy actually. Although the Bitbucket API only seems to list repositories that have been created since a timestamp, not updated: https://api.bitbucket.org/2.0/repositories?after=2019-09-27T22:30:00.000Z&pagelen=100 - and it doesn't appear to be that active (apparently 20 new repositories in a 30 minute window).

I've just added support for BitBucket and GitLab to the live version: https://shhgit.darkport.co.uk, which I'll fully release shortly:

Hello,
I'm interested in seeing the code for the GitLab support but I don't think it is merged yet, any idea for when it will be released? Or if you have some pointers on how to fetch the GitLab data that would also be great.
Thanks!

I've just added support for BitBucket and GitLab to the live version: https://shhgit.darkport.co.uk, which I'll fully release shortly:

Great stuff but how do we add it to the config?

Hi there, I'd be really interested in checking how you've been able to integrate this with Gitlab :)

I'd love to see this feature released for personal use as well. :-)

@PaulSec: Is there a reason why this got closed? I'm curios as well how you've implemented this given that BitBucket.org only has an API to get notified about recently created repos. Or is the online version just using that API? Thanks :)

I'm not sure why I closed it @Luminger! It basically polls this endpoint: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories

Hi @eth0izzle ,
How are you doing the searchs in gitlab? I'm really interested on understand that because AFAIK, you can do it through the Gitlab API but you need a token (easiest part) and then you need to play with the groups, projects, etc.
Are you doing something different?
Regards and thanks!

Can anyone help me out on how to get the live version with BitBucket?

Hi there, I am wondering how exactly we add support for these? There is no documentation about it. The only thing about it I found was this...
I look forw


Historic Site Arch Data fields

Search results to identify how many and which historic sites have data in fields that were mapped as "Archaeological" business area fields.
Looking for sites to be identified by Borden number and include registration status based on the search:
Historic site = Y
Historic site = N
(Additional separate search spreadsheet for these sites) Historic site = null + Registration status: Registered
Archaeological Data fields:
Site Visits
Archaeological Culture
Site typology and feature Descriptions
Stratigraphy
Cultural material
Site visit team
Condition
Disturbance
Biogeography
Cultural depressions
Rock art
CMTs
Site Visit Roles
References
Background: Heritage branch and archaeology branch used to be the same branch and I think a lot of this data in historic site records is from that time of management (70s,80s,90s). Have to decide how to move forward with managing the data of these sites once we isolate a list of sites that have both Heritage and Arch branch data.

@emjohnst - Do you just want a list of borden numbers or are you looking for data from the above tables?

@bferguso Could I have borden number and registration status? If possible could we do columns of the Archeaological data fields above with just a "Y" if there is data there?

Spreadsheet sent via SOFT

@bferguso Could you do a similar search with "union of all list" and find out which of the records from that list has no "Authority" attribute information? Or "Authority = null"

@bferguso Also, can you confirm what the total # of records was for Historic Site =Y and Historic Site =N? We had 2600ish records with Archaeological data attributes out of how many?


(node:15610) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1)

Execute :
uid("foo")
Gives the following answer :

(node:15610) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: You must supply a length integer to uid-promise.
(node:15610) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Wouldn't the error be handle simply by something like this :
.catch(err => {     console.log(err)   })
inside the library ? And not by the user of the library.

@BrieucP this is because you're missing a corresponding .then in the promise chain
adding .catch(console.log) is something that must be done on the promise chain itself (not the promise Object in the lib)


[Observer] Add script and docs for speaker voice management

with Azure Cognitive Speech Speaker ID service (text-independent).

cc @mpbrenner Feel free to review or comment on this PR.


Updated parameter handling for Ollama

Why are these changes needed?
Ollama's API expects a number of LLM parameters to now be in the options attribute. Have updated the library to move a number of parameters into the options dictionary attribute.
Parameters that should be in the options dictionary noted here.
Related issue number
None
Checks

[ ] I've included any doc changes needed for https://autogen-ai.github.io/autogen/. See https://autogen-ai.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
[] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[X] I've made sure all auto checks have passed.

The ollama test failed.

@marklysze can you check the ollama test failure. otherwise looks good to me.


Added proxy to instance when javascript Proxy object is created.

Solves issue #587

Hi Pieter Jan,
It has been a while... I hope you're well.
I've (finally) manually merged this in the dev_fall_2019 branch.
Nice solution with very little overhead.
I've tried to avoid the calltime test and make it instantiation time, but I failed at that.
Also added an autotest based on your use case / example to the transcrypt/proxies testlet.
Kind regards
Jacques
PS In case of remaining problems feel free to reopen.


Transfer of hedera-sdk-cpp

Transfer of https://github.com/hashgraph/hedera-sdk-cpp to Hiero

No unidentified accounts with 1+ commit without DCO signing

From internal chat:

We don't have any license information from the hedera-sdk-cpp repository since Snyk doesn't support vcpkg/cmake for license analysis
https://github.com/microsoft/vcpkg/discussions/29318
Apparently an open issue with Microsoft's vcpkg tooling
Looks like this might be a viable solution we can add to our CMake build: https://github.com/docwire/docwire/blob/master/tools/generate_3rdparty_components_doc.cmake


feat(iam-user): Add direct policy attachment

Description
Add ability to assign a list of custom IAM Policies to selected IAM User during creation
Motivation and Context
Sometimes IAM Users require some elevation of privileges without including other groups. Also some projects should have a single user without a group, for example the terraform user with pre-existing policies to deploy resources. Does not make sense to create a group for this purpose, so the ability to add some policies to IAM User is a nice feature.
Breaking Changes
None
How Has This Been Tested?

[x] I have updated at least one of the examples/* to demonstrate and validate my change(s)
[x] I have tested and validated these changes using one or more of the provided examples/* projects

[x] I have executed pre-commit run -a on my pull request

This would be really helpful! Thank you. You have my vote for merging.

Please add this functionality

@antonbabenko Thanks, I finished it

This PR is included in version 5.28.0 :tada:

Unfortunately this not working as expected. See https://github.com/terraform-aws-modules/terraform-aws-iam/issues/408


Add LTS version of blender & set /mydrive as HOME

Description
This PR includes the LTS version of Blender (currently 2.83.13) and changes the HOME directory for the latest Blender package, to point to /mydrive so that it directly points to the shared storage folder.
How Has This Been Tested?
The two images has been tested in a compatible local Docker environment.

/rebase

/merge


Allow Unknown Entities

Adds an option to allowUnknownEntities
If it's set to true, entities other than & < > ' " (which the sax parser restricts to in strict mode)
This is important because for those who use other entities and for those parsing framework mark up (such as Vue) https://github.com/nashwaan/xml-js/issues/75

This may be an issue with sax. With strict mode disabled
\n becomes
{ elements:
   [ { type: 'element', name: 'a' },
     { type: 'text', text: '\n<a/>' } ] }

instead of the correct
{ elements:
   [ { type: 'element', name: 'a' },
     { type: 'element', name: 'a' } ] }


Activation script sent to terminal after debugger starts

We have issues reported where:

Debugger starts and the debug scripts are sent to the terminal
The activation scripts for the environment are sent to the terminal after the above debugger scripts

We have experienced this today with:

pipenv shell being sent after debugger scripts
conda activate .... being sent after debugger scripts

Solution: Use VS Code debugger api to send the two commands separately:

First command - activate the necessary environment
Second command - send debugger commands
We probably also need to tell our own extension NOT to send activation commands to the terminal when these messages are being sent.

Prescribed solution
                this.debugSession.runInTerminalRequest(termArgs, 5000, (response) => {
                    if (response.success) {
                        resolve();
                    } else {
                        reject(response);
                    }
                });

for upstream: see microsoft/vscode#67692

To try this out, I added the following to src/client/debugger/debugAdapter/DebugClients/LocalDebugClient.ts (right before the existing const termArgs: ... line in launchExternalTerminal():
                if (!isExternalTerminal) {
                    const termArgs: DebugProtocol.RunInTerminalRequestArguments = {
                        kind: consoleKind,
                        title: 'Python Debug Console',
                        cwd: cwd,
                        args: ['echo', 'spam'],
                        env: env
                    };
                    this.debugSession.runInTerminalRequest(termArgs, 5000, (response) => {
                        if (response.success) {
                            resolve();
                        } else {
                            reject(response);
                        }
                    });
                }

Unfortunately, it opened a separate terminal for each request.  We we're back to the drawing board.
The only other realistic solutions (without upstream changes):

generate a shell script that contains the two shell invocations (requires quoting the args)
add a static script that supports executing multiple "argv"s, e.g. separated by a semicolon

I ran into the following problems:
A. DebugSession.runInTerminalRequest() does not support re-using a terminal from an earlier call; so we can't just call that API once for activation, followed by once for the debugger
B. runInTerminalRequest() does not support sending multiple commands (sort of)
C. we can't use runInTerminalRequest() directly for activation commands (they do things like "source" and runInTerminalRequest() prepends the env vars to the "command" string that gets executed, which is incompatible with "source")
D. getting the activation commands to the debugger isn't trivial
So we have a few options at this point if we want to activate environments:

make the status quo work (via TerminalAutoActivation)

none of the above problems
complicated and maybe not even possible

do as much as possible in the debugger

keeps the debug adapter code in the debug adapter
suboptions dealing with problem D:

pass the activation commands via the launch config

requires getting them into the config dynamically

use a custom DAP request to get the activation commands from the extension

only custom events are currently supported?

use a custom DAP event to request the activation commands from the extension

we already have the machinery in the extension for custom DAP events
how to get them back?  through a file?

suboptions to deal with problems A, B, and C:
4. wrap activation commands and debugger command in a script to run via runInTerminalRequest()
- requires a temporary shell script written to disk
- requires quoting, etc.
5. add a static script that decodes its args into multiple commands and runs them
- takes advantage of VSC arg quoting, etc.

do as much as possible in the extension

not affected by the problems from above
solution (in debug adapter):

add a way to trigger starting the debugger from the extension (via the debug adapter protocol)

use a custom DAP request

only custom events are currently supported?

use a custom DAP event

we already have the machinery in the extension for custom DAP events
how to indicate ready?  through a file?

trigger that event/request (send debugger command and env vars)
wait for the debugger to start (necessary for some internal VSC debugger functionality)

solution (in extension)

add DAP event handler
create terminal
activate environment in terminal (like normal)
run debugger command in terminal
notify debug adapter

Might be necessary:

generate activation commands as multiple argv (string[][]) instead of a single string

necessary for use with spawn and
[ ] conda
[ ] pipenv
[ ] pyenv
[ ] venv, etc.

Other notes:

runInTerminalRequest works like a cross between child_process.exec and spawn

the API requires passing args: string[]), but the eventual execution is a single string sent to the shell
we could do clever things like include && as an arg, since it gets run in a shell (but I'm not sure what guarantees we have
composes a string for the string[] command/args

includes the env vars (at the beginning of the string)
quotes each argument where necessary
not compatible with source

chain of calls:

https://github.com/microsoft/vscode/blob/08e8d4633f5284de9a1115bccb314620d0a5a06b/src/vs/workbench/contrib/debug/browser/rawDebugSession.ts#L537
https://github.com/microsoft/vscode/blob/08e8d4633f5284de9a1115bccb314620d0a5a06b/src/vs/workbench/contrib/debug/common/debugger.ts#L110
https://github.com/microsoft/vscode/blob/08e8d4633f5284de9a1115bccb314620d0a5a06b/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts#L111
https://github.com/microsoft/vscode/blob/08e8d4633f5284de9a1115bccb314620d0a5a06b/src/vs/workbench/api/browser/mainThreadDebugService.ts#L74
https://github.com/microsoft/vscode/blob/08e8d4633f5284de9a1115bccb314620d0a5a06b/src/vs/workbench/api/node/extHostDebugService.ts#L317
(line 351) convert env vars and argv to single quoted string
(line 352) call terminal.sendTest()

the serverReadyAction launch config depends on the terminal identified by the runInTerminal request--so it could mean that we have to use runInTerminal (but other extensions don't run in terminal, so maybe not)

Possible approach

Run the code using appropriate CLI (Check conda run)


Node modules without a main field in package.json now fail to load

Change https://github.com/NativeScript/android-runtime/commit/bc76f99b673860c4077d780ec6a1d66da6a7c4a5 has introduced a bug where trying to load modules without a main field in their package.json (so far I've discovered querystring and Buffer) result in a no value for main NativeScriptException.
The expected behaviour is to fall down to the if (!found) block and load the index.js file (which I assume is the npm standard main script).

Hi @lyonzy,
Thank you for catching this bug. My bad. I will fix it and add a unit test for that case.

No worries, cheers :)


Post stack-machine wasmi engine backend removal cleanup

Closes https://github.com/paritytech/wasmi/issues/819.

Codecov Report
Attention: 26 lines in your changes are missing coverage. Please review.

Comparison is base (e2323b2) 80.95% compared to head (f687f5b) 80.98%.

Files
Patch %
Lines

crates/wasmi/src/engine/executor/mod.rs
70.00%
18 Missing :warning:

crates/wasmi/src/engine/translator/mod.rs
92.30%
4 Missing :warning:

crates/wasmi/src/engine/mod.rs
88.46%
3 Missing :warning:

crates/wasmi/src/module/compile/mod.rs
50.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #820      +/-   ##
==========================================
+ Coverage   80.95%   80.98%   +0.02%
==========================================
  Files         257      255       -2
  Lines       22321    22322       +1
==========================================
+ Hits        18071    18077       +6
+ Misses       4250     4245       -5

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


Having a JSON object within a JSON array

Hello,
I am trying to have something like this printed in a string:
{
"serial": "1234",
"device": "5",
"data": {
"enabled":  true,
"fw_version": "12345"
},
"log_data": [
{
"time": 123456,
"sensor1": 12
},
{
"time": 123456,
"sensor2": 12
}
]
}
I used the code provided in this old thread but I can't get around it. It doesn't work
`void serialization_example1(void) {
JSON_Value *root = json_value_init_object();
JSON_Value *arrayRecord = json_value_init_object();
JSON_Object *root_object = json_value_get_object(root);
char *buf_ext = NULL;
json_object_dotset_value(root_object, "log_data", json_value_init_array());
json_object_set_string(root_object, "time", "123456");
json_object_set_number(root_object, "sensor1", "12");
appendArrayRecord(root, "log_data", arrayRecord);
buf_ext = json_serialize_to_string_pretty(root);
puts(buf_ext);
return;
}
`
this is my code but my output looks like:
{
"log_data": [
{}
],
"time": "123456"
"sensor1": 12
}
I would like instead the "time" and "sensor1" to be nested inside log_data, as the original poster was asking. What am I missing in the code?
Many thanks

your code makes the problem. you should use arrayRecord instead of root_object in following code.
json_object_set_string(root_object, "time", "123456");
json_object_set_number(root_object, "sensor1", "12");

arrayRecord is a JsonValue not a JsonObject.
this is the definition of the function JSON_Status json_object_set_string(JSON_Object *object, const char *name, const char *string) so it won't work.

JSON_Object *   json_value_get_object (const JSON_Value *value);
Get the object of json value, then insert the key/value into it.

I do have that at the beginning of the code.
JSON_Value *root = json_value_init_object();
JSON_Value *arrayRecord = json_value_init_object();
JSON_Object *root_object = json_value_get_object(root);
What I am missing is how to insert the key value into the array. I tried to follow the example in the other thread but it was kind of incomplete so I can't make it work.
Can you be more specific on how to add the key/value into the array? thanks

Ok I followed this https://stackoverflow.com/questions/49957648/how-to-construct-json-array-with-parson and it works.
Thanks!


Apply diff

Is there any plan to add an apply_diff kind of function which would apply the diff to an object?

Nvm, found it: patch :)


Fix cert ceneration for crypto_crls_cert_chains on 1804

Fixes failing test tests/crypto_crls_cert_chains on 18.04.  Adds v3 extensions to intermediate certificate

bors r+


UseSingleOrDefault ignores GraphQLNonNullType, what about UseSingle?

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
[Authorize]
[UseSingleOrDefault]
[UseProjection]
[GraphQLNonNullType]
public IQueryable<User> CurrentUser([Service] IOperationContext context, JointDbContext dbContext)
    => dbContext.Set<User>().Where(u => u.Id == context.CurrentUser!.Id);

Will produce field currentUser with type User instead of User!, which is contextual nonsense as user can't be null due to authorize attribute.
Steps to reproduce

Have resolver with attributes above.

Relevant log output
No response
Additional Context?
No response
Product
Hot Chocolate
Version
12.9.0

Thank you, this works well.
I have extra question about this, how does HC load content of navigational properties? I suppose you are not using EFCore's Include() for IQueryable (as it is in EFCore's nuget which HC.Data does not reference).

@cts-tradeit  We project into the selection sets .Select(x => new Foo { Id = x.Id, Nested = new Nested { First = x.Nested.First}})


Remove duplicate lines in documentation

This PR simply removes some duplicate lines from probability.doctest documentation.

Thanks @fievelk


placeholderTextColor cannot be configured

If you enter any color there, the color will change to a lighter one, but I would like to customize the color

Hey @Rowb , sorry about this...
Please, update for the new version (v0.6.3) and try again...
🚀 AstrOOnauta 🚀

Thank you very much!

Hello, is there a way to remove the placeholder? I do not want to display it in my input
Thank you so much for this amazing library 🚀 🚀

@ser-emejia add the next props into PhoneInput component: placeholder=' ' (a blank space)


service cant be reached

Operating System Version win 11
after running post-build checkup Iam facing error service cant be reached, i have changed my vmnet2 adapter IP also still not working
.\post_build_checks.ps1
-->
this is the screenshot of the errors

It appears that you had an issue with the hosts "host-only" adapter. D you have have both Virtualbox and VMware installed? Have you manually checked the network adapters on the VMs themselves?

Did logger provision successfully?

Closing due to inactivity