mididevice: Plugins that involve long resource loader process can cause MidiReceiver crashes.

Migrated from https://github.com/atsushieno/aap-lv2/issues/18 now that it seems common to aap-juce synths https://github.com/atsushieno/android-audio-plugin-framework/issues/99#issuecomment-1047552094.
It typically happens with aap-fluidsynth and aap-sfizz but not likely limited - our AAP MidiDeviceService crashes if it received note-on message before fluidsynth or sfizz completes the (SF2/SFZ) loader workload. That's why ayumi and MDA did not cause crashes (they need almost no time).
There are some aggressive async-ification in the whole AAP MidiDeviceService setup.

It is actually a fundamental issue within MidiDeviceService API.
MidiDeviceService has asynchronized part only at "connecting to device" part. There is no operation to "open a port". When a MidiReceiver is instantiated, it is alraedy regarded as always ready to receive MIDI messages via onSend(). And when should MidiRececiver be instantiated? It can be done ONLY when the device (i.e. MidiDeviceService) is instantiated (!), because MidiDeviceService.onGetInputPortReceivers` is invoked at its constructor (!!)
 They should not be instantiated all at once when only one is needed (even worse, depending on the custom settings, it would not always be one plugin per port - there can be more). Therefore, we only instantiate a plugin per port when its open status has changed.
How do we detect a port being opened? It is done via MidiDeviceService.onDeviceStatusChanged(). We internally store the list of status (whether it is opened or closed). And we instantiate the target plugin of the newly specified port, or destroy it at that call.
It has to return synchronously but we don't wait for the asynchronous onServiceConnected(), so there is a gap between "MidiReceiver is at opened state" and "the actual plugin is instantiated". At that state, calls to onSend() will cause error by nature.
To fix this issue, we are going to have to make changes to Kotlin PluginClient API to "asynchronize" instantiatePlugin(), and track the instance state and enable ready for send flag only if it was successful. Any MIDI messages should be discarded when it is not ready.


Adding CpuOptions support for LaunchTemplateData

https://github.com/cloudtools/troposphere/issues/1530

Thanks!


gazebo_system.cpp crashes when trying to change multiple joint's PID values

Hi,
I am trying to test the simulated RRBOT robot without moveit! and I am facing some issues when trying to adjust the PID paremeters through the xacro file. As a disclaimer, I followed the documentation provided with the difference of having a 2 DOF robot instead of using the slider_to_cart (which I tested and it works fine).
I believe everything is set up correctly including having only one joint per transmission. I can indeed adjust the PID parameters for the first joint but it fails when trying to declare the parameters inside of the gazebo_system.cpp.
More specifically I am working in the branch ahcorde/update/foxy created by @ahcorde .
On https://github.com/ros-simulation/gazebo_ros2_control/blob/7334f06cb849cc49b222f9ce674c8bbd87a7ab28/gazebo_ros2_control/src/gazebo_system.cpp I can see that the DOF, transmissions and the names of the joints are correctly retrieved from the .xacro file that I am using.
On line 61, when the iterator j is equal to 0 it will declare the PID parameters and initialize the PID for that joint. That works. Then when j is equal to 1, an exception rises. More specifically I believe that it crashes on line 180
A quick test that I did to avoid the issue was to comment out line 164, line 165, line 166, line 167, line 168, line 169 and instead declaring the PID parameters in a different loop just before line 61.
Something like this:
  for (unsigned int k = 0; k < this->n_dof_; k++) {
    nh_->declare_parameter(transmissions[k].joints[0].name + ".p");
    RCLCPP_WARN_STREAM(nh_->get_logger(),"--------------" << k);
    nh_->declare_parameter(transmissions[k].joints[0].name + ".i");
    RCLCPP_WARN_STREAM(nh_->get_logger(),"--------------" << k);
    nh_->declare_parameter(transmissions[k].joints[0].name + ".d");
    RCLCPP_WARN_STREAM(nh_->get_logger(),"--------------" << k);
    nh_->declare_parameter(transmissions[k].joints[0].name + ".i_clamp_max");
    RCLCPP_WARN_STREAM(nh_->get_logger(),"--------------" << k);
    nh_->declare_parameter(transmissions[k].joints[0].name + ".i_clamp_min");
    RCLCPP_WARN_STREAM(nh_->get_logger(),"--------------" << k);
    nh_->declare_parameter(transmissions[k].joints[0].name + ".antiwindup", false);
    RCLCPP_WARN_STREAM(nh_->get_logger(),"--------------" << k);
  }

Of course this is not the most efficient way but it does the job of initializing the PIDs for both joints. I am not sure if the problem is coming from the control_toolbox package or something related to gazebo_ros2_control.
Anyone going through a similar issue?
Thanks in advance for the help.
Kind regards,
Carlos

PID was removed from gazebo_ros2_control. See this PR plugin https://github.com/ros-simulation/gazebo_ros2_control/pull/44

@ahcorde I can see another issue that might be related to this one.
I am also experiencing something similar. I will write it here but if you think it's better I will open a new issue.
Basically I have two simple links trying to perform a vertical movement (just going up and down like an elevator), with a velocity controller. I am experiencing that when I set the /velocity_controller/command to positive it goes up, when is negative it goes down but if I wanted to stop it at a certain level I cannot achieve that. Once I send velocity 0, the top link starts moving down (gravity I guess) and the joint_state velocity topic does not match with the actual zero velocity that was sent.
I am using the velocity_controllers/JointGroupVelocityController and I am not sure if there is a new way to set up a PID in order to solve my issue.
Any recommendations?
Thanks in advance.

Once I send velocity 0, the top link starts moving down (gravity I guess) and the joint_state velocity topic does not match with the actual zero velocity that was sent.

Please check the temporary solution 1 suggested here. It's likely that there is no force limit set for you joint.


Log trace on 400 and 500 codes

This change is

src/Serval.Shared/Controllers/HttpResultFilter.cs line 16 at r1 (raw file):

        public override Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecutionDelegate next)
        {
            if (context.Result is ObjectResult r && r.StatusCode / 100 > 3)

PEMDAS makes my head spin - and is it int or float math?  How about:
if ((context.Result is ObjectResult r) && (r.StatusCode >= 400))?

src/Serval.Shared/Controllers/HttpResultFilter.cs line 16 at r1 (raw file):

        public override Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecutionDelegate next)
        {
            if (context.Result is ObjectResult r && r.StatusCode / 100 > 3)

PEMDAS makes my head spin - and is it int or float math? How about: if ((context.Result is ObjectResult r) && (r.StatusCode >= 400))?

Haha, sure. I can do that. I think I even switched it to a ">= 400" but must have control-z-ed.


Launch browser on Android

I have a UWP app which I am currently running on a Windows 10 PC using 1803. I can discover a RemoteSystem for my Pixel 2 running Android 9 but when I try to launch a uri on the phone using http
var rscr = new RemoteSystemConnectionRequest(remote);
var uri = new Uri("http://www.google.co.uk");
var status = await RemoteLauncher.LaunchUriAsync(rscr, uri);

I get RemoteSystemUnavailable.
Also, if I query capabilities all of them return false.
I am able to use 'continue later' from the phone to the PC.
What's the best way to diagnose this?

Do you have a particular application that you are launching to on the phone?

Hi. Are you working at Microsoft at now or no? What is the status of this project, after 3 years of fixing this open issue?... ;)

I am still working at MSFT but have forgotten the details of this issue now since a few years has passed.

I am still working at MSFT but have forgotten the details of this issue now since a few years has passed.

Thank you for reply. Perhaps, Project Rome not too easy thing for reanimation.... There are many technical problems... The program managers are silent :( Sorry that I disturbed you.


Infinite scrolling

What's the Play about?
An app, where user will scroll through the posts. on scrolling when user sees the last post, play will add more 20 posts to list.
What ReactJS concept will be used to create this play?
Hooks , Props, Async-await, IntersectionObserver
Are you willing to take it up for implementation?
Yes
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@atapas Please assign me this issue


Merge master into 3d-tiles

For https://github.com/AnalyticalGraphicsInc/cesium/issues/3177
Merged master into 3d-tiles. Most of this was glTF 1.0 changes.

Nice work, thanks @lilleyse.  What was the issue with Model.js?


[Feature] README Stats from RepoBeats

Why do you need this feature?
Giving the repo a better look for new people
https://repobeats.axiom.co/
Suggest an implementation
the service may be paid, but i don't really know about it. i'll try it out with my github account and tell you more
Attachment
found this at https://github.com/Corona-Studio/ProjBobcat#Stats

no, it's not paid at all. the setup it's simple af, but no customization

pdimu/all-my-greennies.webflow (for reference)
the only thing it's that you can only get these with repos made by you, so i couldn't make anything for FLauncher

FAQ 😃

Added


Not Found Links in the doc of MXNet : Training with multiple GPUs

Doc Link : https://mxnet.incubator.apache.org/versions/master/faq/model_parallel_lstm.html
There are some hyperlinks that dont work here :-
https://github.com/apache/incubator-mxnet/blob/master/example/model-parallel/lstm/lstm.py
https://github.com/apache/incubator-mxnet/blob/master/example/model-parallel/lstm/lstm.py#L171
https://github.com/apache/incubator-mxnet/blob/master/example/model-parallel/lstm/lstm_ptb.py#L97-L102
Will appreciate if you fix these.

@sandeep-krishnamurthy Could you please add label: Doc, Python

@liyujiel - in #11435 you deleted the file: /example/model-parallel/lstm/lstm.py
Can you point to the new resource and/or update the FAQ?

@aaronmarkham @y12uc231  I removed old LSTM examples because it not work during logic problem. We should create a new example for parallel LSTM.

So does that mean that whole FAQ should be taken offline? Or just reworded to not include an example?

I vote for reworded. People can still check and use it.


电脑休眠一段时间后重新点击播放键没有声音

Describe the bug
A clear and concise description of what the bug is.
清楚简明地描述了该错误是什么。
电脑休眠一段时间后，重新在vscode中点击播放键，除了没有声音外一切正常。歌词一直在往前走，只是没有声音（扩展中途并未关闭）
只能重启vscode解决。
Error information
Paste or screenshot the content in Help->Toggle Developer Tools->Console.
粘贴或截屏帮助->切换开发者工具->控制台中的内容。
ERROR: The process with PID 63452 (child process of PID 13144) could not be terminated.Reason: The operation attempted is not supported.
ERROR: The process with PID 53052 (child process of PID 13144) could not be terminated.Reason: There is no running instance of the task.
ERROR: The process with PID 13144 (child process of PID 67616) could not be terminated.Reason: There is no running instance of the task.
ERROR: The process "63920" not found.ERROR: The process "71120" not found.ERROR: The process "29960" not found.ERROR: The process "48356" not found.ERROR: The process "54904" not found.ERROR: The process "44192" not found.
Server logs
Execute cloudmusic.openLogFile.
执行 cloudmusic.openLogFile。
2023-04-21T08:00:56.625Z Error: ENOENT: no such file or directory, open 'C:\Users\jnw1.cloudmusic\retain'
an error occurred on output stream: The requested device is no longer available. For example, it has been unplugged.
2023-04-21T09:08:22.336Z Error
at ea.Il [as _getPath] (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:36:3332)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ea.load (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:35:11260)
2023-04-21T09:08:29.420Z Error
at ea.Il [as _getPath] (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:36:3332)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ea.load (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:35:11260)
an error occurred on output stream: The requested device is no longer available. For example, it has been unplugged.
2023-04-22T12:22:03.264Z Error: EPERM: operation not permitted, stat 'C:\Users\jnw1.cloudmusic\tmp\35848938'
2023-04-24T09:44:39.896Z Error
at ea.Il [as _getPath] (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:36:3332)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ea.load (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:35:11260)
2023-04-24T09:44:43.099Z Error
at ea.Il [as _getPath] (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:36:3332)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ea.load (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:35:11260)
2023-04-24T09:44:46.757Z Error
at ea.Il [as _getPath] (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:36:3332)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ea.load (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:35:11260)
2023-04-24T09:44:46.927Z Error: EPERM: operation not permitted, open 'C:\Users\jnw1.cloudmusic\tmp\29263917'
2023-04-24T09:44:56.644Z Error
at ea.Il [as _getPath] (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:36:3332)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ea.load (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:35:11260)
2023-04-24T09:44:56.835Z Error: EPERM: operation not permitted, open 'C:\Users\jnw1.cloudmusic\tmp\29263917'
2023-04-24T09:46:06.939Z RequestError: Timeout awaiting 'request' for 80000ms
at ClientRequest. (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:33:43690)
at Object.onceWrapper (node:events:646:26)
at ClientRequest.emit (node:events:538:35)
at ClientRequest.emit (node:domain:475:12)
at Socket.socketErrorListener (node:_http_client:442:9)
at Socket.emit (node:events:526:28)
at Socket.emit (node:domain:475:12)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
at Timeout.l [as _onTimeout] (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:33:3661)
at listOnTimeout (node:internal/timers:561:11)
at process.processTimers (node:internal/timers:502:7)
2023-04-24T09:46:16.846Z RequestError: Timeout awaiting 'request' for 80000ms
at ClientRequest. (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:33:43690)
at Object.onceWrapper (node:events:646:26)
at ClientRequest.emit (node:events:538:35)
at ClientRequest.emit (node:domain:475:12)
at Socket.socketErrorListener (node:_http_client:442:9)
at Socket.emit (node:events:526:28)
at Socket.emit (node:domain:475:12)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
at Timeout.l [as _onTimeout] (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:33:3661)
at listOnTimeout (node:internal/timers:561:11)
at process.processTimers (node:internal/timers:502:7)
2023-04-27T08:35:52.689Z Error
at oa (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:36:3709)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
2023-04-27T12:55:03.349Z Error: write EOF
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
2023-04-27T13:49:59.517Z Error
at oa (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:36:3709)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
an error occurred on output stream: The requested device is no longer available. For example, it has been unplugged.
2023-04-28T09:24:26.828Z Error
at ea.Il [as _getPath] (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:36:3332)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ea.load (file:///c:/Users/jnw1/.vscode/extensions/yxl.cloudmusic-9.19.1-win32-x64/dist/server.mjs:35:11260)
Environment
Paste the content in Help->About.
粘贴帮助->关于中的内容。
Version: 1.77.3 (user setup)
Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710
Date: 2023-04-12T09:16:02.548Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: Yes

日志里的日期都有这些问题吗？还是只有28号。

日志里的日期都有这些问题吗？还是只有28号。
自从使用以来一直都有这个问题。

日志里的日期都有这些问题吗？还是只有28号。

自从使用以来一直都有这个问题。

我没仔细研究，现阶段可能解决不了 https://github.com/RustAudio/rodio/issues/465


After OuterHtml has been called followed by HtmlNode.Remove(), subsequent calls to OuterHtml still return the removed content

There doesn't seem to be a call to SetChanged() in HtmlNode.Remove() so OuterHtml does not get updated after HtmlNode.Remove() is called. Here is a failing test case:
        [Test]
        public void OuterHtmlHasBeenCalled_RemoveCalled_SubsequentOuterHtmlCallsAreBroken()
        {
            var doc = new HtmlDocument();
            doc.LoadHtml("
SOme text here

some boldedtext
");
            var resultList = doc.DocumentNode.SelectNodes("//div");
            Assert.AreEqual(2, resultList.Count);
            resultList.First().Remove();
            Assert.AreEqual("
some boldedtext
", doc.DocumentNode.OuterHtml);
            var resultList2 = doc.DocumentNode.SelectNodes("//div");
            Assert.AreEqual(1, resultList2.Count);
            resultList2.First().Remove();
            //
some boldedtext
 should have been removed
            Assert.AreEqual("", doc.DocumentNode.OuterHtml);
        }

Hello @jonalbrecht ,
Thank you for reporting. In fact, even the first Remove have this issue if you use before the property OuterHtml before calling the Remove method.
A fix will be released within a few hours

Hello @jonalbrecht ,
The version v1.5.0-beta9 has been released:
https://www.nuget.org/packages/HtmlAgilityPack/1.5.0-beta9
Let us know if the issue is fixed.
Best Regards,
Jonathan


add zh-cn translation

Explanation
Add zh-cn translation
Related issue
N/A
What type of PR is this

/kind documentation

Proposed Changes
Translate i18n/zh/docusaurus-plugin-content-docs/current/

Hello, I am a code review bot on flows.network.
It could take a few minutes for me to analyze this PR. Relax, grab a cup of coffee and check back later. Thanks!

Hi @ezirmusitua
Thanks for your contribution. You really did a lot of work. It will take me some time to review your PR. Thank you very much!

@ezirmusitua Please fix the DCO problem.

Hi  @ezirmusitua
Sorry for my late reply. Thank you!


How to access tray icon from within inject script?

Seems not to be accessible.

I am also interested with this. I wasn't able to access electron instance from within inected script. Any ideas on this?


Improvement in footer

Need Improvement in footer

/assign

how exactly do you wish to improve ? kindly see all existing issue before commenting

@ANSHIKA-26 Please assign me this task for improvement in the footer. I will definitely use my HTML skills to shine your footer like a diamond.

HOW ?

@richa-k23 @monalisas21 i need clear points in what you wish to change and HOW

closing due to lack of response


PostgreSQL Cypress CI tests not actually running against PostgreSQL

Looks like skills-service is actually started with H2 db connection props instead of postgresql

looks good


Aws Cluster Migration

Below is a list of task related to what remains to be done in order to finish existing cluster migration

[ ] loki
[ ] grafana
[ ] domain name used
[ ] Help desk

It is still necessary?


08/13/2018 05:50 : Create Pull Request for branch prTesting_2018081305 -> master

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

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


Failing test: publish__with_name_and_data_arguments__publishes_the_message_and_invokes_callback_with_success

When run locally with make test_macOS:
✗ publish__with_name_and_data_arguments__publishes_the_message_and_invokes_callback_with_success, expected to eventually equal <foo>, got <nil> (use beNil() to match nils)
✗ publish__with_name_and_data_arguments__publishes_the_message_and_invokes_callback_with_success, expected to eventually equal <bar>, got <nil> (use beNil() to match nils)

And then also observed, probably related, when running locally with make test_iOS:
[19:09:45]: ▸     ✗ publish__with_name_only__publishes_the_message_and_invokes_callback_with_success, expected to eventually equal <foo>, got <nil> (use beNil() to match nils)
[19:09:55]: ▸     ✗ publish__with_data_only__publishes_the_message_and_invokes_callback_with_success, expected to eventually equal <bar>, got <nil> (use beNil() to match nils)

[19:10:57]: ▸   publish__with_name_only__publishes_the_message_and_invokes_callback_with_success, expected to eventually equal <foo>, got <nil> (use beNil() to match nils)
[19:10:57]: ▸   /Users/quintin/code/ably-cocoa/Spec/RestClientChannel.swift:66
[19:10:57]: ▸   ```
[19:10:57]: ▸                     expect(publishError).toEventually(beNil(), timeout: testTimeout)
[19:10:57]: ▸                     expect(publishedMessage?.name).toEventually(equal(name), timeout: testTimeout)
[19:10:57]: ▸                     expect(publishedMessage?.data).toEventually(beNil(), timeout: testTimeout)
[19:10:57]: ▸   ```
[19:10:57]: ▸   publish__with_data_only__publishes_the_message_and_invokes_callback_with_success, expected to eventually equal <bar>, got <nil> (use beNil() to match nils)
[19:10:57]: ▸   /Users/quintin/code/ably-cocoa/Spec/RestClientChannel.swift:86
[19:10:57]: ▸   ```
[19:10:57]: ▸                     expect(publishedMessage?.name).toEventually(beNil(), timeout: testTimeout)
[19:10:57]: ▸                     expect(publishedMessage?.data as? String).toEventually(equal(data), timeout: testTimeout)
[19:10:57]: ▸                 }
[19:10:57]: ▸   ```

┆Issue is synchronized with this Jira Bug by Unito

Closing outdated issue. The codebase changed drastically since then and all skipped tests were unskipped, see PRs for https://github.com/ably/ably-cocoa/issues/1406 and https://github.com/ably/ably-cocoa/issues/1848
If you encounter frequently failing test again, please create a new issue with a best guess why it might be happening.


work with Array type

please add Array type support for pagination

I believe this gem support array pagination with the Kaminari gem out of the box.  If you are using the will_paginate gem then all you should have to do is add require 'will_paginate/array' to your application.

Thanks! Found it in readme

Sounds like this is figured out!


Hide beginner info

As a user, I want to be able to choose to not see info that a beginner user would want to use and an experienced user would not

This user story was not implemented in v1.4.


Incorrectly flags false prop values as strings marked for translation

<Component
   prop={false} // <-- this will error with react-intl/string-is-marked-for-translation
/>

@joncursi Are you using babel-eslint?
I had upgraded babel-eslint to 8.0.0, and was seeing the same/similar errors. Downgrading back to 7.1.1 seems to solve the problem. I don't think the problem lies with this plugin.

Hmm... I am indeed on babel-eslint@latest.

I Read that babel-eslint 8.0 is meant to be used with babel 7, if you are using babel 6.x the correct version is 7.x


Automated cherry pick of #1524: fix azure reserved ips

Cherry pick of #1524 on release/2.8.0.
#1524: fix azure reserved ips

/lgtm
/approve


Crashes if you get a whisper from ignored highlight user

Describe the bug
If I do a command that whispers me (example !debug command ping)  my chatterino crashes
To reproduce
Have a bot (tried with botnextdoor and streamelements) on Ignore Highlight, do a command that whispers reply and the client will crash
Chatterino version
Chatterino Nightly 2.1.7 (commit b4a2ced18, 18.04.2020)
Operating system
Windows 10
Additional information
@pajlada

what are your settings regarding whispers?

I had Highlight as default, when I noticed I started crashing.

can confirm on Ubuntu on Chatterino 2.1.7 (commit d9aab1f6e)

Should be fixed in the latest nightly, thanks for reporting it


batch download issues

Hi,
I am trying to download from the:
http://dbarchive.biosciencedbc.jp/kyushu-u/
link a series of bigwig and bed following the instruction on the Wiki but it seems that currently the link is down.+
Is there an alternative way to get the data sets?
Thank
Francesco

Dear Francesco,
Thank you for using ChIP-Atlas.
I’ve confirmed that some BigWig files can be downloaded surely from our server.
eg. http://dbarchive.biosciencedbc.jp/kyushu-u/hg19/eachData/bw/SRX019495.bw http://dbarchive.biosciencedbc.jp/kyushu-u/hg19/eachData/bw/SRX019495.bw
If you can’t still, could you tell me the accession numbers (eg. SRX019495) of your interested?
Best
Shinya

2021/05/07 0:24、fgualdr @.***>のメール:
Hi,
I am trying to download from the:
http://dbarchive.biosciencedbc.jp/kyushu-u/ http://dbarchive.biosciencedbc.jp/kyushu-u/
link a series of bigwig and bed following the instruction on the Wiki but it seems that currently the link is down.+
Is there an alternative way to get the data sets?
Thank
Francesco
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/inutano/chip-atlas/issues/35, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADD2CTMCZVW6QIC7IFYAM5LTMKYBHANCNFSM44HIUM3Q.


claude api and tokenizer

I'm not sure how this all works but can you add settings for claude api and claude tokenizer? I've heard if you set it up wrong it either cuts off something in case you've set context size too high or it's lower than it could be. For example I'm using claude api 1.2 rn, how should I set it up?

bruh wrong project


defaultFailedProvisionThreshold   looks to be  really low.

This threshold value has been set to  5 at present in the controller.  There may be scenarios where user still create the required artifacts after firing the pvc.  for eg# creating a secret or recreating a storageclass..etc.  As there are no more attempts made for the claim after this failure,  it will be bad user experience  for a user/developer. Can I increase the this value to more attempts or more time waiting ?

@wongma7 please share your thought. I will send a patch accordingly.

sure, 5 is too low for exponentialbackoff to have any effect. 10 or something would be better


[mlpack] Add feature openmp

Fixes #18423.

@DanL1234 Can you please test openmp feature with my changes?
Thanks.

Hi @JackBoosY - absolutely, would love to help. Can you tell me what I need to do? (I guess I need to try a fix you have made in a branch?) Sorry, but you will need to give me baby-steps as I am not familiar with git (I worked in tortoise SVN many years ago, so get the underlying idea, if not the procedure).
Ps. Thank you for your help on this issue - very much appreciated. :-)

@DanL1234  You can click the command line instructions link in this page.

@DanL1234 Can you please test openmp feature with my changes?
Thanks.

@JackBoosY  - hi there. I just got around to trying this and had an issue.
Steps I took:

git clone https://github.com/JackBoosY/vcpkg.git
git checkout dev/jack/18423
rename c:\src\vcpkg\ to c:\src\vcpkg-18423\
entered the directory \vcpkg-18423\
called .\bootstrap-vcpkg.bat
.\vcpkg install mlpack:x64-windows

All dependencies are built fine according to powershell output, until it gets to "mlpack", package 80 of 80.
Issue seen:
See attached screen capture and log that is being referred to. (plus an extra one for fun ;-))

install-x64-windows-rel-out.log
install-x64-windows-dbg-out.log
Did I do something wrong do you think?
Thanks in advance.
Daniel

@DanL1234
From your logs I can see that you're running out of memory when compiling mlpack. Also in order to test that the feature works it should be vcpkg install mlpack[openmp].
fatal error C1060: compiler is out of heap space

@JackBoosY
Successfully tested new feature locally.


Separate gov2.5 and gov3

Add comment here about v2 AMM https://github.com/bgd-labs/gov-v2-v3-migration/blob/feat/gov-2.5/src/contracts/governance2.5/EthShortMovePermissionsPayload.sol


Fixes Promscale on TimescaleDB-OSS.

Signed-off-by: Harkishen Singh<EMAIL_ADDRESS>Fixes: #583
Note: I tried to apply conditional checks where I felt would be necessary. There are high chances that I have missed them out at important places, please keep this in mind while reviewing.
TODO:

[x] E2E for TimescaleDB-OSS version

bors r+

bors r+


[PDI-14500]-Null if step does not use format when converting dates

now it uses the format (conversion mask) from the meta data (previous step)
added unit test

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
ant -Dtestreports.dir=bin/reports/unit-test -f engine/build.xml clean-all resolve jacoco && ant -f engine/build.xml checkstyle publish-local

Cleanup Commands
rm -r ~/.ivy2/local || echo no publish local to remove

Changed files
  engine/src/org/pentaho/di/trans/steps/nullif/NullIf.java
  engine/test-src/org/pentaho/di/trans/steps/nullif/NullIfTest.java

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.job.entries.evalfilesmetrics.JobEntryEvalFilesMetrics

Branch Change:  + .39%
Complexity Change:  + .51%
Instruction Change:  + .08%

org.pentaho.di.trans.step.StepMeta

Instruction Change:  + .19%
Line Change:  + .26%

org.pentaho.di.trans.steps.checksum.CheckSumMeta

Instruction Change: -.11%:small_red_triangle_down:

org.pentaho.di.trans.steps.combinationlookup.CombinationLookupMeta

Instruction Change: -.04%:small_red_triangle_down:

org.pentaho.di.trans.steps.constant.ConstantMeta

Instruction Change:  + .10%

org.pentaho.di.trans.steps.csvinput.CsvInputMeta

Instruction Change: -.05%:small_red_triangle_down:

org.pentaho.di.trans.steps.dbproc.DBProcMeta

Instruction Change:  + .11%

org.pentaho.di.trans.steps.dimensionlookup.DimensionLookupMeta

Branch Change:  + .31%
Instruction Change:  + .06%
Line Change: -.23%:small_red_triangle_down:
Method Change: -1.02%:small_red_triangle_down:

org.pentaho.di.trans.steps.excelwriter.ExcelWriterStepMeta

Branch Change:  + 1.28%
Complexity Change:  + .78%
Instruction Change:  + .08%

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change:  + 2.08%
Complexity Change:  + 2.11%
Instruction Change:  + .28%
Line Change:  + .74%

org.pentaho.di.trans.steps.ifnull.IfNullMeta

Branch Change:  + 2.00%
Complexity Change:  + 1.89%
Instruction Change:  + .17%

org.pentaho.di.trans.steps.memgroupby.MemoryGroupByMeta

Branch Change: -1.18%:small_red_triangle_down:
Complexity Change: -1.35%:small_red_triangle_down:

org.pentaho.di.trans.steps.nullif.NullIf

Branch Change:  + 5.56%
Complexity Change:  + 7.14%
Instruction Change:  + .89%
Line Change:  + 1.09%

org.pentaho.di.trans.steps.replacestring.ReplaceStringMeta

Instruction Change:  + .07%

org.pentaho.di.trans.steps.singlethreader.SingleThreaderMeta

Instruction Change:  + .10%

org.pentaho.di.trans.steps.sort.SortRowsMeta

Instruction Change:  + .08%

org.pentaho.di.trans.steps.symmetriccrypto.symmetriccryptotrans.SymmetricCryptoTransMeta

Branch Change:  + 3.33%
Complexity Change:  + 1.85%
Instruction Change:  + .28%

org.pentaho.di.trans.steps.synchronizeaftermerge.SynchronizeAfterMergeMeta

Instruction Change:  + .04%

org.pentaho.di.trans.steps.systemdata.SystemDataMeta

Branch Change:  + 2.04%
Complexity Change:  + 2.04%
Instruction Change:  + .32%
Line Change:  + .81%

org.pentaho.di.trans.steps.tableoutput.TableOutputMeta

Branch Change:  + .91%
Complexity Change:  + .82%

org.pentaho.di.trans.steps.textfileinput.TextFileInputMeta

Branch Change: -.53%:small_red_triangle_down:

org.pentaho.di.trans.steps.uniquerows.UniqueRowsMeta

Instruction Change:  + .18%

org.pentaho.di.trans.steps.webservices.WebServiceMeta

Branch Change:  + 1.79%
Complexity Change:  + 1.19%
Instruction Change:  + .07%

org.pentaho.di.www.TransformationMap

Branch Change:  + 1.14%
Complexity Change:  + 1.54%


Issue 67: Fixed main.py imports

Changed imports in main.py to import from our package instead.
Also added some information to setup.py to make a warning go away
and also give more package information.
@olsonse: please review.

This allows it to run on systems where the default installed version of Python is 2.7.

I just added the UNCHECKED fix to this branch as well.

Main.py gets installed in a system "bin" directory somewhere. When it's there, and not in /usr/lib/python*, it must import from packages, not as though it were part of a package. That's why I had to change the form of import.

Could be I did something wrong...

I have no idea why this failed for me. It's working now. Got no clue...

I agree I need to do both. I'll see what I can do after church today.


Properties that use const should be initialized with that const value and not be included in the constructor of a model

Description
Properties that use const should be initialized with that const value and not be included in the constructor of a model.
Example: When we set const to Cat in https://github.com/asyncapi/modelina/blob/next/test/generators/typescript/TypeScriptGenerator.spec.ts#L401, the generated class for Cat should automatically set the type property to PetType.CAT
https://github.com/asyncapi/modelina/blob/next/test/generators/typescript/__snapshots__/TypeScriptGenerator.spec.ts.snap#L7 should be:
class Cat {
  private _petType: PetType = PetType.CAT;
  private _reservedName: string;
  private _huntingSkill: AnonymousSchema_6;

  constructor(input: {
    petType: PetType, // this line should be deleted because you should not be able to set petType to something other than Cat
    reservedName: string,
    huntingSkill: AnonymousSchema_6,
  }) {
    this._petType = input.petType;
    this._reservedName = input.reservedName;
    this._huntingSkill = input.huntingSkill;
  }

  get petType(): PetType { return this._petType; }
  set petType(petType: PetType) { this._petType = petType; } // this is not needed because you should not be able to set petType to something other than Cat

  get reservedName(): string { return this._reservedName; }
  set reservedName(reservedName: string) { this._reservedName = reservedName; }

  get huntingSkill(): AnonymousSchema_6 { return this._huntingSkill; }
  set huntingSkill(huntingSkill: AnonymousSchema_6) { this._huntingSkill = huntingSkill; }
}

I think it makes sense to add such support yes 🙂
I think we have to distinguish between two different concepts, default and constant.
default to me means that this is the value that the property default to, but you are allowed to change it.
constant to me means that this is the value that the property takes, and you are not allowed to change it.
So for your enum case, I would say introducing constant makes sense (maybe even both and let them feed on each other?).
But where to place such a value?
Placing it in the EnumModel, would mean (in the current setup) that if two properties referenced the same enum (maybe even across multiple classes) could not have different values i.e. PetType.CAT and PetType.DOG. We could of course in the end ensure they are duplicate instances of each other so two references don't have access to the same instance. But that seems... Like a step back in some way 🤔
Placing it in the PropertyObjectModel would mean that it's only properties that can access such a value. Which I think makes the most sense 🤔 There is a few downsides though, and that is the EnumModel for example, don't have access to the values so if we anywhere within the enum rendering want to do something specific with them, that would be impossible. Then there is also the downside that single types such as inputs like this:
{
   "type": ["string", "boolean"]
   "default": "test"
}

In typescript at least could be generated as:
const root: string | boolean = 'test';

But we don't currently do this with the generators as we can only generate:
type root = string | boolean;

which of course cannot have an associated value. I am not sure if we ever will see such an output? Hmm 🤔
What do you think @kennethaasan?

I'll get back to this one in March/April


Does Tree:remove_node remove all children of a node from the tree?

The title may not be great so let me explain quick.
Lets say I have a nui.tree object and I add a node with children to it (lets say that node is node1, and has children node10 and node11 under it). Now, I remove node1 from the tree
-- For simplicity, lets say node1's id is simply 'node1'
tree:remove_node('node1')

In this scenario, node10 and node11 are orphaned as their parent was removed from the tree.
Since the tree has references to the children in other places, that means (I believe) that they are still able to be retrieved if I query for them later even though their parent no longer exists and they are no orphaned branches.
Is there a "correct" way of removing an entire branch from a tree?

Hmm, the current behavior seems buggy. Currently the orphaned nodes are still accessible by their id.
So for example, if you have:
node1
- node10
- node11

The current behavior is:
tree:remove_node('node1') -- removes node1
tree:get_node('node1') -- returns `nil`
tree:get_node('node10') -- returns orphaned node10
tree:get_node('node11') -- returns orphaned node11

The correct behavior should be:
tree:remove_node('node1') -- removes node1, node10, node11
tree:get_node('node1') -- returns `nil`
tree:get_node('node10') -- returns `nil`
tree:get_node('node11') -- returns `nil`

Do you want to open a PR to fix it?

I was having a bit of a moment last night as I was running into it, I was hoping I was just doing something wrong 🙃
I am actually using nui through neo-tree.nvim but as long as you work with me, I think I can get a PR thrown together for this.
I'll open a draft this afternoon and see if I can work through it, I don't imagine it will be too difficult. In theory this should be as simple as recursively walking the children (and children's children, etc) and removing all children from the tree right? That's how I was planning on handling this myself anyway

In theory this should be as simple as recursively walking the children (and children's children, etc) and removing all children from the tree right?

Yep, exactly that. The child ids are stored in node._child_ids, and the nodes are stored in self.nodes.by_id.

That makes sense. Since remove_node's signature says it returns the removed node, what should happen with the child nodes? I'm just thinking from the perspective of a user using nui, should/would they care that the children are removed? Should the children be returned in some way with the removed node?

Let's just keep the current return behavior (i.e. just return a single node for node_id) unchanged.

Should the children be returned in some way with the removed node?

No need to do that for now.
If somebody reports an issue with use-case for it in future, we can collect the removed child nodes in a table removed_nodes_by_id and return them as a second return value.

That works for me. If you could, take a peek at #228  and lemme know your thoughts. Its pretty simplistic but seems to be working for me. I can't get the unit tests to run on my local system (something about plenary not being located in pack/*/opt and symlinking that didn't work either lol

Thanks for taking care of it! The PR is merged 🎉


[open-in-visual-studio-code] Also work with VSCodium

Description
Enables VSCodium to open the current Finder folder
Screencast

Checklist

[ ] I read the extension guidelines
[ ] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[ ] I checked that files in the assets folder are used by the extension itself
[ ] I checked that assets used by the README are placed outside of the metadata folder

The last commit adds a dropdown menu to the preferences (which defaults to VSCode)

Does this match what you expect @thomaspaulmann ?

Looking good! Thanks for the contribution 👏


Performance of Live Server is getting slower

Performance of Live Server is getting slower in Windows, I still find the root cause, if you modify 100 files at the same time, for example using nunjucks and laravel mix is getting bad and just hangs, I wasn't pretty sure what causing this, but it is not been like that before I upgrade the extension.

Since I forgot how to reproduce the issue, I guess I will close it instead.


pin packaging to 21.3

fix the build as discussed in https://github.com/NixOS/nixpkgs/pull/210230#issuecomment-1521237952

ping @raboof
Can you pick this up, so we can get the cve-bin-tool bump into 23.05?


feature(dr): modify velero cron

With this changes, we add two features:

the new parameter .spec.distribution.modules.dr.velero.schedules.install (true by default) states if we want to install velero-schedules

the new parameters .spec.distribution.modules.dr.velero.schedules.manifestsCron and .spec.distribution.modules.dr.velero.schedules.fullCron (both empty strings by default) can be used to customize the cron executions. If one or both are empty, the default ones are used, as specified in the vendor.

Note: maybe there's a more elegant way to accomplish the second goal, so if you have any suggestions, I'll be glad to read them 😄

After discussing with @nutellinoit I've changed the fields to the following:

.spec.distribution.modules.dr.velero.schedules.cron.manifests
.spec.distribution.modules.dr.velero.schedules.cron.full


LTO failing to prune WASI fd_* imports

In this repo, I've shown two scenarios where code that is functionally identical produces very different WASM binaries.
Setup
The two scenarios I'm testing are for a rust cdylib whose code looks like this:
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

#[export_name = "fallible_func"]
pub extern "C" fn fallible_func(val: i32) -> i32 {
    unsafe { Fallible_func(val) }
}

#[cfg(feature = "print")]
#[export_name = "print"]
pub extern "C" fn print(str: *const i8) {
    unsafe {
        // Call the FFI Print function with the a pointer to the C string `cstr`.
        Print(str as *mut i8);
    };
}

Importantly, the print function is guarded by the print feature that is off by default.
The c code we're binding looks like this:
#include <stdio.h>
#include <assert.h>

int Fallible_func(int value)
{
  assert(value > 0);
  return value;
}

void Print(char *str)
{
  printf("%s\n", str);
}

If we run the cargo build with NO_PRINTF=1, then the c code instead looks like this:
#include <stdio.h>
#include <assert.h>

int Fallible_func(int value)
{
  assert(value > 0);
  return value;
}

void Print(char *str)
{
  // printf("%s\n", str);
}

Scenario 1:

Note: This is all imports and exports.

  (import "wasi_snapshot_preview1" "fd_close" (func $__imported_wasi_snapshot_preview1_fd_close (;0;) (type 2)))
  (import "wasi_snapshot_preview1" "fd_fdstat_get" (func $__imported_wasi_snapshot_preview1_fd_fdstat_get (;1;) (type 3)))
  (import "wasi_snapshot_preview1" "fd_seek" (func $__imported_wasi_snapshot_preview1_fd_seek (;2;) (type 4)))
  (import "wasi_snapshot_preview1" "fd_write" (func $__imported_wasi_snapshot_preview1_fd_write (;3;) (type 5)))
  (export "memory" (memory 0))
  (export "fallible_func" (func $fallible_func.command_export))

WASM binary size: 2.4K
Scenario 2: NO_PRINTF=1

Note: This is all imports and exports. No imports at all here.

  (export "memory" (memory 0))
  (export "fallible_func" (func $fallible_func.command_export))

WASM binary size: 459B
Conclusion
This might be totally expected given the rust compilation pipeline and the way wasi-libc is authored and structured, but is quite surprising to me.
I was expecting that link-time optimizations would be 'smart' enough to notice that printf was not referenced by any exported functions in the rust library and recursively pruned. I've put together the minimal repro in hopes that it helps illustrate the observations in a reproducible way and could be helpful if this behaviour is not as intended.

The term LTO normally refers to a specific thing which -flto which means compilation/optimization at link time.
I believe what you are talking about here is normal linker DCE (dead code elimination) that we support via --gc-sections (which is on by default).  There are some limitations in the current DCE that the linker does and potenially some ways we could improve it.  I believe this kind of problem can sometimes stem from the fact that link DCE is performed in two phases.

Resolve all the symbols.
Walk the symbol dependency tree marking what is live (https://github.com/llvm/llvm-project/blob/main/lld/wasm/MarkLive.cpp) then don't include anything that is not live in the output.

Note: (2) only happens if --gc-sections is enabled.
One limitation that we currently have is that (1) is performed first.  This is when we pull any needed object files from archives.   Once we decide we need and object file its not possible to fully undo this decision, if we find out later (in 2) that we didn't need it after all.
@sunfishcode has tried to work around this limitation in some cases: https://reviews.llvm.org/D85062

Thanks for taking a look. There's a good chance I'm using the wrong terms everywhere! I'm not familiar with this whole toolchain at all. I used lto only because that was the term in the Cargo.toml I was using to opt into this behaviour.

The --gc-sections behaviour is the default and should not require any opt in.  If you are using the term lto in your build system I would guess (?) that is referring to the -flto compiler/link flag which I think is probably not related to this issue (unless I'm misunderstanding).
I would hope that the kind of DCE you are trying achieve here would work with or without LTO enabled.

I think the reference (or at least one of them) that is preventing the fd_* host bindings from being stripped away is in __stdio_exit, called by __wasm_call_dtors.
  (func $__wasm_call_dtors (;630;) (type 72)
    call $#func629<dummy>
    call $__stdio_exit
  )
  (func $_initialize.command_export (;631;) (type 31) (result i32)
    call $_initialize
    call $__wasm_call_dtors
  )

I think I can use a tool like walrus to perform strategic mutations to cut out this cruft and then use its gc to get what I want.
Having spent some time looking the .wat generated for this project and others, I notice that the tables become opaque barriers to understanding the call graph. I'm wondering if the way things are encoded into the big (elem ...) table is making static analysis very hard.

Indeed any time you have function pointer floating around (such as vtables, or in this case I believe musl using a kind of vtable type thing for std file handles) then DCE becomes hard since the linker cannot easily reason about the dependency graph.  This is one reason why de-virtualization in C++ is useful when it works.

Are there some incantations that deprioritize this way of encoding functions? I don't think there should be dynamic dispatch type scenarios here but--again--I'm very new to this and have a super loose understanding of the moving parts. I'm hoping that with a less optimized binary, I could perform some surgery on it and then later run wasm-opt against something with better visibility into control flow and reachability.

I think one of the problem is that stdio in musl is using dyanmic dispatch.  See https://github.com/bminor/musl/blob/7ada6dde6f9dc6a2836c3d92c2f762d35fd229e0/src/internal/stdio_impl.h#L28-L30
The dispatch tables then include pointer to the function you want to avoid including: https://github.com/bminor/musl/blob/7ada6dde6f9dc6a2836c3d92c2f762d35fd229e0/src/stdio/stdin.c#L11-L13

For __stdio_exit it looks like there is a dummy version in exit.c and the real version should only be included if __stdio_exit_needed is referenced.
The problem is that I imagine what is happening is that __stdio_exit_needed is found to be needed during the first round of  symbol resolution in the linker, is that right?

@sbc100 as I noted, I'm a bit over my head here but that matches my intuition. Here's what I think is happening, again from intuition only:
I've got a dummy c library that has a strong reference to printf and when it is compiled, those strong references cause the *_needed to statefully toggle. Now my .a file for the library bakes in that state.
Even though the consuming rust project only consumes a symbol from the library that has no references, they are statefully baked in and obfuscated through that dynamic dispatch mechanism.

I wonder if there's some trick that might allow us to avoid the virtualization of these FILE methods in a way that still allows for dead-code elimination at linking time. My naive take on this would be that the FILE methods point to real functions that do the branching in their function bodies. The branching in the function body would need to be done in a way that compilers / linkers are able to statically analyze it out.
Does that sound plausible?

If you can find a way to do what you describe that would be great.  I am not aware of any way to achieve that though.

I am not sure whether what I have found is relevant for you, as it is for C++ and not Rust, but I was struggling with something similar (undesired fd_* imports) and I managed to remove those imports.
I haven't dug into productising this solution, but I'd argue it should be taken under consideration, as as of now there is no way to natively run stdlib containers without relying on a WASI browser runtime.
I have pushed a PR with more details here: !418

I saw that wasi-libc#505 landed and wonder if that might be a tool to help address the issues brought up here. If that's the case, is a custom build of the sdk required to take advantage of it?


Update B2MML-ProcessEvents.xsd for WorkScheduleRecord multiplicity fix issue #3

WorkScheduleEvent Added/Changed/Deleted WorkScheduleRecord multiplicity #3
Adjustment for the above Issue is made by this pull request

Merge Completed.


New Command: <set_boss> {CharacterMaster} {EliteIndex}

Sets the boss for the current TeleporterInstance to the defined CharacterMaster & Index

https://github.com/ReinMasamune/RoR2Modding/blob/master/ReinDirectorCardLib/Main.cs iterates through champ directorcards.


Windows: in example npm run start/test does not work

Describe the bug
On windows the relative path in the start script is not working. To get it working I use the following:
"scripts": {
    "install": "cd ../.. && npm i",
    "start": "../../node_modules/.bin/ts-node --cwd ../../ ./examples/$npm_package_config_example_name/index.ts",
    "startWorkingOnWindows": "..\\..\\node_modules\\.bin\\ts-node ./index.ts",
  }

Is this also working on ubuntu?
Probably I am pretty alone on windows anyway.
Also for test I get "cross-env" not found.
How to Reproduce
ONLY ON WINDOWS
cd ./examples/TEMPLATE
npm run install
npm run start
npm run test

Only way I think this can be solved, is by changing all package.json files to include the following scripts:
  "scripts": {
    "install": "cd ../.. && npm i",
    "start": "../../node_modules/.bin/ts-node --cwd ../../ ./examples/$npm_package_config_example_name/index.ts",
    "start:windows": "..\\..\\node_modules\\.bin\\ts-node --cwd ..\\..\\ .\\examples\\%npm_package_config_example_name%\\index.ts",
    "test": "../../node_modules/.bin/jest --config=../../jest.config.js ./examples/$npm_package_config_example_name/index.spec.ts",
    "test:windows": "..\\..\\node_modules\\.bin\\jest --config=..\\..\\jest.config.js examples/%npm_package_config_example_name%/index.spec.ts"
  }

This was the only way I could structure it to work for windows + mac/Linux.
Can you confirm this setup works on your end @panwauu ?

@all-contributors please add @panwauu for bug


added a new function called middleware which is called before callback

Created a new function called middleware, which are executed before the callbacks.

added return new static to all the request methods


[SPARK-11968] [MLlib] : MatrixFactorizationModel recommendAll for GC times

Fix for ALS recommend all methods for GC times

Test build #46718 has started for PR 9980 at commit 4b2bb59.

This won't help much and it may cause issues because the buffer is not cleaned. It would be helpful if you can profile the implementation and show that the number of temporary objects are reduced.

Test build #46720 has started for PR 9980 at commit 4104978.

Test build #46718 has finished for PR 9980 at commit 4b2bb59.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/46718/
Test PASSed.

Merged build finished. Test PASSed.

Test build #46720 has finished for PR 9980 at commit 4104978.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/46720/
Test PASSed.

Thanks @mengxr  Any alternative suggestion for improving upon objects needed on recommendAll functionality? I did multiple profiling/heap dump by running MatrixFactorizationModelSuite with IntelliJ/Visualvm. The GC %. used heap space and heap dumps/instances are non conclusive.thanks.
thanks @srowen , fixed for your comment.

@rekhajoshm You need to do profiling on big datasets. If the improvement is not significant, then this is not the right fix. Essentially we are shuffling many small objects (srcId, (dstId, rating)). I don't think the fix would be trivial. We could probably see improvement if we switch the backend to DataFrame/Tungsten.

I concur @mengxr . Tried YourKit, and VisualVm Profiling.This does not fix the concern based on my runs with MovieLensALS and RecommendationExample. I do run into a set of other issues :-) If i do not get anything soon on this, will close this pull. thanks.


New version: StandardNotes.StandardNotes version 3.152.2

Pull request has been created with Komac v1.5.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

@wingetbot run


mat-tab-link component should be disabled if disabled is set

Bug, feature request, or proposal:
bug: mat-tab-link can not be disabled any more since moved to 5.0 (worked earlier)
What is the expected behavior?
mat-tab-link component should be disabled if disabled is set
What is the current behavior?
mat-tab-link component is enabled if disabled is set
What are the steps to reproduce?
https://stackblitz.com/edit/angular-cnfz79?file=app%2Ftabs-overview-example.html
What is the use-case or motivation for changing an existing behavior?
Tab sometimes should be disabled
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5.1.0
Material 5.0.0
TypeScript 2.4.2
OS Ubuntu 16.04
Browser Chrome Version 62.0.3202.75 (Official Build) (64-bit)

@josephperrott This seems to be caused by https://github.com/angular/material2/pull/7364. Since pointer-events are now enabled, the :focus pseudo selector will work. If you still have a [routerLink] specified on a disabled link, the route will become active on click.
Also while we are at it, I don't think that the attribute tabIndex is valid. The real attribute would be tabindex in lowercase.


Attach event functions to Widgets instead of via Multimethods

Attach event functions to Widgets instead of via Multimethods. That way its more flexible and event functions could be overwritten on the fly via "update!".

Can now be updated with
(gui/update! "a" :events {:mouse-clicked (fn [wdg]                                                 (gui/info "Button A pressed"))})   (gui/update! "b" [:events :mouse-clicked] (fn [wdg]                                                 (gui/info "Button B clicked")))


occi.h: No such file or directory

Hi,
First of all, thank you for keeping this package up to date. Well, even though I have been trying to install it in an Ubuntu Desktop 14.04.1 (x64) OS machine for several days, I have not achieved it yet.
I guess I have already read all possible solutions, but I still get the "fatal error: Occi.h: no such file or directory". Maybe I'm doing something wrong.
First of all, I installed the Oracle Instant Client, as well as the developer and sql extra packages, via alien. I've created the environment variables as INSTALL.md dictates and so on.
So, when it comes to install the package, i run "npm install sails-oracledb" in my sails project root directory, but I still get this annoying message. The env vars are ok and the libclntsh.so and libocci.sh files are also correctly made.
I hope you could throw some light on my case.
Thank you :)
P.S: Im running Sails 0.10.5.

hi,
i think install rpm on ubuntu using alien is not a good way.
you should install basic and sdk package from zip ...
occi.h 's folders is define in OCI_INCLUDE_DIR ,here are default forders for x86_64 platform (replace 'client64' by 'client' on i386)
export OCI_LIB_DIR=/usr/lib/oracle/12.1/client64/lib/
export OCI_INCLUDE_DIR=/usr/include/oracle/12.1/client64/
export OCI_VERSION=12
export ORACLE_HOME=/usr/lib/oracle/12.1/client64

Well, I don't know how, but it worked. I had already set these same enviroment variables hundreds of times before...
Thank you very much :dancer:

I do understand it now. The key is to define the env vars as superuser mode (sudo su) and install the module just after defining them without leaving the superuser session. Just sudo doesn't work to define the vars.
Thanks!


CertsError: Certificate folder not found in /certs/

most likely I am missing something fundamental here but since I assume a lot of other people would be in the same situation I thought it would make sense to address this.
I did copy my cert file client-2048.pem in the folder /certs which I do verify before calling login, however I am still getting

Exception: Certificate folder not found in /certs/

Here is my repro, I used Python 3.6:
import os
assert 'client-2048.pem' in os.listdir('/certs/')
import betfairlightweight
trading = betfairlightweight.APIClient('username', 'password', app_key='api_key')
trading.login()

I think it would be helpful to either clarify in the README.md the exact list of flles that need to be copied to the /certs folder and/or update the exception message because in the above situation it's misleading: the '/certs/' folder does exist while the exception message claims it doesn't.

Require .crt and .key file for login, welcome PR for exception clarification.
https://github.com/liampauling/betfair/blob/master/betfairlightweight/baseclient.py#L139

cheers man!


Any plans to implement functions for bounds?

What would you like to see exactly? All methods for bounds instead of frame ?

Just adding methods for bounds. e.x.:
https://gist.github.com/lisbakke/bd050f5d477c998a6604

Seems reasonable. Only thing is I'm not sure exactly how would I name those. Maybe just boundsX, boundsY, boundsWidth, boundsHeight ?

Yeah, those names would do the trick.

Done! have fun.


Vector path output

It would be useful to have a way to output vector paths as an alternative to rendering pixels to an image.

The docs are a bit too sparse for me to tell, so I hope this question is alright :) Is the draw function the only output method at the moment? + is the intention that it's used to draw pixels to an output texture?

I think theoretically you could use BufferLine::layout with your own texture atlas / glyph caching solution.

I see, thanks! I understand a bit more now. So swash is giving us textures for each glyph, which draw then enumerates.
Would it be reasonable to experiment with putting a texture atlas on the GPU and rendering the glyphs as individual quads, in the hope that it could offload some cpu work?

If I ever get around to integrating cosmic-text with KAS this would be my approach — see here (essentially this is already implemented over kas-text which has a slightly different cache key).


The deck editing view has an option to name and save decks

closed by https://github.com/sopra-fs22-group-10/client/commit/feb4709aa2c2bac37e68b3041bf891761a55009c


Update logging for logrus

This commit disables the timestamp when outputting logs in order to be
more clean / concise.
One of the reasons being that the kompose up / convert / down commands
are too fast and thus output's all [0000].
For example, the output will look like this:
INFO I'm a little teapot
Instead of:
INFO[0000] I'm a little teapot

This also updates vendoring in order to import https://github.com/sirupsen/logrus/pull/400


League Does Not Initiate

After conclusion of week 1, I cannot get hockey league to initiate for 2025 season. It was working prior to the season start and still works fine trying to call in 2024 data.
function:

league = League(cf.league_id, year, cf.espn_s2, cf.swid);

response:
KeyError                                  Traceback (most recent call last)
Cell In[2], line 1
----> 1 df = lg.setup_league(year);
      3 #private/var/mobile/Containers/Shared/AppGroup/1DCF0E66-1B76-44FE-A049-007E8576236B/File Provider Storage/HockeyA/espnfantasy/ESPN-Fantasy-API 3.ipynb

File ~/Documents/HockeyA/espnfantasy/league.py:48, in setup_league(year)
     42 def setup_league(year):
     43     """
     44     Create the initial datasets using ESPN Fantasy API.
     45
     46     Save dataframes to pickle files to reduce number of calls on ESPN Fantasy API.
     47     """
---> 48     league = League(cf.league_id, year, cf.espn_s2, cf.swid);
     49     teams = league.teams;
     50     no_weeks = len(teams[0].schedule);

File /var/mobile/Containers/Data/Application/D7021DDF-C896-4021-92EE-41F54E4AD8ED/Library/lib/python3.11/site-packages/espn_api/hockey/league.py:21, in League.__init__(self, league_id, year, espn_s2, swid, fetch_league, debug)
     18 super().__init__(league_id=league_id, year=year, sport='nhl', espn_s2=espn_s2, swid=swid, debug=debug)
     20 if fetch_league:
---> 21     self.fetch_league()

File /var/mobile/Containers/Data/Application/D7021DDF-C896-4021-92EE-41F54E4AD8ED/Library/lib/python3.11/site-packages/espn_api/hockey/league.py:25, in League.fetch_league(self)
     23 def fetch_league(self):
     24     data = self._fetch_league()
---> 25     self._fetch_teams(data)
     26     super()._fetch_draft()

File /var/mobile/Containers/Data/Application/D7021DDF-C896-4021-92EE-41F54E4AD8ED/Library/lib/python3.11/site-packages/espn_api/hockey/league.py:48, in League._fetch_teams(self, data)
     46 def _fetch_teams(self, data):
     47     '''Fetch teams in league'''
---> 48     super()._fetch_teams(data, TeamClass=Team)
     50     # replace opponentIds in schedule with team instances
     51     for team in self.teams:

File /var/mobile/Containers/Data/Application/D7021DDF-C896-4021-92EE-41F54E4AD8ED/Library/lib/python3.11/site-packages/espn_api/base_league.py:86, in BaseLeague._fetch_teams(self, data, TeamClass, pro_schedule)
     84     roster = team_roster[team['id']]
     85     owners = [member for member in members if member.get('id') in team.get('owners', [])]
---> 86     self.teams.append(TeamClass(team, roster=roster, schedule=schedule, year=seasonId, owners=owners, pro_schedule=pro_schedule))
     88 # sort by team ID
     89 self.teams = sorted(self.teams, key=lambda x: x.team_id, reverse=False)

File /var/mobile/Containers/Data/Application/D7021DDF-C896-4021-92EE-41F54E4AD8ED/Library/lib/python3.11/site-packages/espn_api/hockey/team.py:34, in Team.__init__(self, data, roster, schedule, year, **kwargs)
     31 if 'logo' in data:
     32     self.logo_url = data['logo']
---> 34 self._fetch_roster(roster)
     35 self._fetch_schedule(schedule)
     36 self.owners = kwargs.get('owners', [])

File /var/mobile/Containers/Data/Application/D7021DDF-C896-4021-92EE-41F54E4AD8ED/Library/lib/python3.11/site-packages/espn_api/hockey/team.py:47, in Team._fetch_roster(self, data)
     44 roster = data['entries']
     46 for player in roster:
---> 47     self.roster.append(Player(player))

File /var/mobile/Containers/Data/Application/D7021DDF-C896-4021-92EE-41F54E4AD8ED/Library/lib/python3.11/site-packages/espn_api/hockey/player.py:35, in Player.__init__(self, data)
     32 self.injured = player.get('injured', False)
     34 for split in player.get('stats', []):
---> 35     if split['stats']:
     36         id = split['id']
     37         stat_key = get_stat_key(id)

KeyError: 'stats'
``` `

No worries, I will check this out!


fix(header): update box shadow to match MD spec

Short description of what this resolves:
Updates the Material Design header box-shadow to match the spec.
Ionic Version: 4.x

master
fix-header-footer-box-shadow

:benapproves:


Suspend function not found as handler.

Hi!
I have problems with Webflux + Kotlin + Coroutines. When I have something like that:
@Controller
class PersonController(val service: PersonService) {

    @MutationMapping( "createPerson")
    suspend fun createPerson(@Argument("input") personInput: PersonInput) : Person {
            return service.createPerson()
    }
}

and I try to make request
mutation {
    createPerson(input: {firstName: "Test", lastName: "Test"}) {
        id, firstName, lastName
    }
}

I get
{
  "errors": [
    {
      "message": "Index 1 out of bounds for length 1",
      "locations": [
        {
          "line": 33,
          "column": 5
        }
      ],
      "path": [
        "createPerson"
      ],
      "extensions": {
        "classification": "INTERNAL_ERROR"
      }
    }
  ],
  "data": {
    "createPerson": null
  }
}

But when I change to response type mono
@Controller
class PersonController(val service: PersonService) {

    @MutationMapping( "createPerson")
    fun createPerson(@Argument("input") personInput: PersonInput) : Mono<Person> {
            return mono {service.createPerson()}
    }
}

request works

Are you using the latest version of the library? I remember having some issues with coroutines, but with the later versions this all works fine.

everything from milestone:
plugins {
    id("org.springframework.boot") version "2.7.0-M3"
    id("io.spring.dependency-management") version "1.0.11.RELEASE"
    kotlin("jvm") version "1.6.10"
    kotlin("plugin.spring") version "1.6.10"
}

group = "com.example"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_17

repositories {
    mavenCentral()
    maven { url = uri("https://repo.spring.io/milestone") }
}

I think the issue lies somewhere else in your code; if I create a sample app using https://start.spring.io and create something similar as what you commented above everything is working fine.
data class PersonInput(
    val firstName: String,
    val lastName: String
)

@Controller
class PersonController(private val personService: PersonService) {
    @MutationMapping("createPerson")
    suspend fun createPerson(@Argument("input") personInput: PersonInput): Person {
        return personService.createPerson()
    }
}

// ...

@Service
class PersonService {
    fun createPerson(): Person {
        return Person(firstName = "Foo")
    }
}

// ...

data class Person(val firstName: String)

schema {
    query: Query
    mutation: Mutation
}

type Query {
    hello: String
}

input PersonInput {
    firstName: String
    lastName: String
}

type Person {
    id: ID
    firstName: String
    lastName: String
}

type Mutation {
    createPerson(input: PersonInput): Person
}

Ok I found problem. It is because of https://github.com/spring-projects/spring-graphql/blob/b40375f1f2bffd2dade33653288b5027dcdc99ab/spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/support/HandlerMethodInputValidator.java#L78 this method

No, funniest fact is that I haven't added validation yet, only package.
I have similar problem with query mapping.
@Controller
class PersonController(val service: PersonService) {

    @QueryMapping
    suspend fun people(): List<Person> {
            return service.getAllPeople()
    }

    @MutationMapping( "createPerson")
    suspend fun createPerson(@Argument("input") personInput: PersonInput) : Person {
            return Person(firstName = personInput.firstName, lastName = personInput.lastName, id = null)
    }
}

and error:
2022-03-29 19:51:40.873 DEBUG 78428 --- [ctor-http-nio-2] s.g.e.ExceptionResolversExceptionHandler : Resolving exception

java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
	at java.base/java.util.Arrays$ArrayList.get(Arrays.java:4165) ~[na:na]
	at org.hibernate.validator.internal.properties.javabean.JavaBeanExecutable.getParameterName(JavaBeanExecutable.java:86) ~[hibernate-validator-6.2.3.Final.jar:6.2.3.Final]
	at org.hibernate.validator.internal.metadata.aggregated.ParameterMetaData$Builder.build(ParameterMetaData.java:165) ~[hibernate-validator-6.2.3.Final.jar:6.2.3.Final]
	at org.hibernate.validator.internal.metadata.aggregated.ExecutableMetaData$Builder.findParameterMetaData(ExecutableMetaData.java:436) ~[hibernate-validator-6.2.3.Final.jar:6.2.3.Final]
	at org.hibernate.validator.internal.metadata.aggregated.ExecutableMetaData$Builder.build(ExecutableMetaData.java:391) ~[hibernate-validator-6.2.3.Final.jar:6.2.3.Final]
	at org.hibernate.validator.internal.metadata.aggregated.BeanMetaDataBuilder$BuilderDelegate.build(BeanMetaDataBuilder.java:260) ~[hibernate-validator-6.2.3.Final.jar:6.2.3.Final]
	at org.hibernate.validator.internal.metadata.aggregated.BeanMetaDataBuilder.build(BeanMetaDataBuilder.java:133) ~[hibernate-validator-6.2.3.Final.jar:6.2.3.Final]
	at org.hibernate.validator.internal.metadata.BeanMetaDataManagerImpl.createBeanMetaData(BeanMetaDataManagerImpl.java:206) ~[hibernate-validator-6.2.3.Final.jar:6.2.3.Final]
	at org.hibernate.validator.internal.metadata.BeanMetaDataManagerImpl.getBeanMetaData(BeanMetaDataManagerImpl.java:165) ~[hibernate-validator-6.2.3.Final.jar:6.2.3.Final]
	at org.hibernate.validator.internal.engine.ValidatorImpl.validateParameters(ValidatorImpl.java:267) ~[hibernate-validator-6.2.3.Final.jar:6.2.3.Final]
	at org.hibernate.validator.internal.engine.ValidatorImpl.validateParameters(ValidatorImpl.java:235) ~[hibernate-validator-6.2.3.Final.jar:6.2.3.Final]
	at org.springframework.graphql.data.method.annotation.support.HandlerMethodInputValidator.validate(HandlerMethodInputValidator.java:78) ~[spring-graphql-1.0.0-M6.jar:na]
	at org.springframework.graphql.data.method.annotation.support.DataFetcherHandlerMethod.validateAndInvoke(DataFetcherHandlerMethod.java:188) ~[spring-graphql-1.0.0-M6.jar:na]
	at org.springframework.graphql.data.method.annotation.support.DataFetcherHandlerMethod.invoke(DataFetcherHandlerMethod.java:121) ~[spring-graphql-1.0.0-M6.jar:na]
	at org.springframework.graphql.data.method.annotation.support.AnnotatedControllerConfigurer$SchemaMappingDataFetcher.get(AnnotatedControllerConfigurer.java:449) ~[spring-graphql-1.0.0-M6.jar:na]
	at org.springframework.graphql.execution.ContextDataFetcherDecorator.get(ContextDataFetcherDecorator.java:67) ~[spring-graphql-1.0.0-M6.jar:na]
	at graphql.execution.ExecutionStrategy.fetchField(ExecutionStrategy.java:279) ~[graphql-java-17.3.jar:na]
	at graphql.execution.ExecutionStrategy.resolveFieldWithInfo(ExecutionStrategy.java:210) ~[graphql-java-17.3.jar:na]
	at graphql.execution.AsyncExecutionStrategy.execute(AsyncExecutionStrategy.java:60) ~[graphql-java-17.3.jar:na]
	at graphql.execution.Execution.executeOperation(Execution.java:159) ~[graphql-java-17.3.jar:na]
	at graphql.execution.Execution.execute(Execution.java:105) ~[graphql-java-17.3.jar:na]
	at graphql.GraphQL.execute(GraphQL.java:613) ~[graphql-java-17.3.jar:na]
	at graphql.GraphQL.parseValidateAndExecute(GraphQL.java:538) ~[graphql-java-17.3.jar:na]
	at graphql.GraphQL.executeAsync(GraphQL.java:502) ~[graphql-java-17.3.jar:na]
	at org.springframework.graphql.execution.DefaultExecutionGraphQlService.lambda$execute$2(DefaultExecutionGraphQlService.java:81) ~[spring-graphql-1.0.0-M6.jar:na]
	at reactor.core.publisher.MonoDeferContextual.subscribe(MonoDeferContextual.java:47) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext(FluxOnErrorResume.java:79) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext(FluxOnErrorResume.java:79) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onNext(FluxContextWrite.java:107) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.core.publisher.FluxMapFuseable$MapFuseableConditionalSubscriber.onNext(FluxMapFuseable.java:295) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.core.publisher.FluxFilterFuseable$FilterFuseableConditionalSubscriber.onNext(FluxFilterFuseable.java:337) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.core.publisher.MonoCollect$CollectSubscriber.onComplete(MonoCollect.java:159) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:142) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete(FluxPeek.java:260) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:142) ~[reactor-core-3.4.16.jar:3.4.16]
	at reactor.netty.channel.FluxReceive.onInboundComplete(FluxReceive.java:400) ~[reactor-netty-core-1.0.17.jar:1.0.17]
	at reactor.netty.channel.ChannelOperations.onInboundComplete(ChannelOperations.java:419) ~[reactor-netty-core-1.0.17.jar:1.0.17]
	at reactor.netty.http.server.HttpServerOperations.onInboundNext(HttpServerOperations.java:600) ~[reactor-netty-http-1.0.17.jar:1.0.17]
	at reactor.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:93) ~[reactor-netty-core-1.0.17.jar:1.0.17]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.75.Final.jar:4.1.75.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.75.Final.jar:4.1.75.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[netty-transport-4.1.75.Final.jar:4.1.75.Final]
	at reactor.netty.http.server.HttpTrafficHandler.channelRead(HttpTrafficHandler.java:266) ~[reactor-netty-http-1.0.17.jar:1.0.17

What you expect to share?

@hantsy I think that problem is in spring-graphql as this
@RestController
@RequestMapping("/person")
class PersonRestController(val personService: PersonService) {

    @GetMapping
    suspend fun listPeople(): Flow<Person> {
        return personService.getAllPeople()
    }

    @PostMapping
    suspend fun createPerson(@Valid @RequestBody personInput: PersonInput) : Person {
        return personService.createPerson();
    }
}

works correctly

@nenros Your example is validating the request body, if you validate the request param in the method, you will encounter this problem. https://github.com/spring-projects/spring-framework/issues/23499#issuecomment-716363011
It is a little wired, spring uses different mechanism to process the arg validation and request body validation.

Indeed what @hantsy shared has links to issues that are referring to the same stacktrace. Originally reported in https://github.com/spring-projects/spring-framework/issues/23499 and then corresponding in HV https://hibernate.atlassian.net/browse/HV-1638.
It is a lower level issue indeed, we're simply invoking Hibernate Validator which fails while introspecting method parameters. There is one workaround posted under the Spring Framework issue which customizes the parameter discovery but I have not tried or evaluated it.

No, funniest fact is that I haven't added validation yet, only package.

This is a good point @nenros as currently we are invoking HV for every method as long as bean validation is present but could consider doing so only for methods with @Validated on when any method parameter has @Valid.

adding magic configuration helped

I've updated the documentation on this.

Hi.
@rstoyanchev, I've found that any suspend function in controller, even private, not validated and not related to the query lead to this problem:
class Foo(
    val bar: Boolean = true
)

@Controller
class SuspendTestController {
    @QueryMapping
    fun foo(): Foo {
        return Foo()
    }

    private suspend fun theSuspend(): String {
        return "123"
    }
}

I think this is a very breaking behavior.

@turboezh you must have javax.validation:validation-api on the classpath. Do you know what brings it in?

Thanks for the commenting. I can't really comment on your approach. It sounds like what you have works for you, but there be cases that don't if you exclude KotlinReflectionParameterNameDiscoverer. It might be a good idea to comment under https://github.com/spring-projects/spring-framework/issues/23499 as we can't do much about DefaultParameterNameDiscoverer here. I also see that https://hibernate.atlassian.net/browse/HV-1638 is not yet fixed.
In terms of not relying on MethodValidationPostProcessor, it's mainly about making validation is a built in feature that doesn't require AOP. There isn't anything else to it.
I wonder if we should simply suppress validation for coroutine methods while this remains an issue? We could further couple that we checks on startup to reject coroutine methods that method or parameter validation annotations.

On further thought and internal discussion, I've created #445.

I wonder if we should simply suppress validation for coroutine methods while this remains an issue? We could further couple that we checks on startup to reject coroutine methods that method or parameter validation annotations.

Sorry, I forgot to describe one more important detail that I mentioned in my first comment. HV ExecutableMetaData builds metadata of entire bean (@Controller in this case), and asks org.springframework.core.DefaultParameterNameDiscoverer about every method of the bean, even private ones. So even we would validate methods selectively, it's enough to have just one validation and one suspend method in a @Controller to got this problem. Its mutual exclusive things for now as I see.

Thanks for the tip, please continue the discussion under #445.


Improve SHA query for different registries

It now compare with the proper registry before sending api query. For registry != from quay.io (e.g. quay.rdoproject.org) don't support 'filter_tag_name' but might support 'limit', so we can retrieve more older tags.

from results[1], using the proper api call for quay.io now, in content-provider job:
++ curl -s 'https://quay.io/api/v1/repository/openstack-k8s-operators/cinder-operator-bundle/tag/?onlyActiveTags=true&filter_tag_name=like:1b9a7de3d088'

/test openstack-operator-build-deploy-kuttl

recheck

recheck

/test openstack-operator-build-deploy-kuttl

/lgtm
content-provider job passed. Let's unblock CI :)

recheck


Nugget package not updated

The current master contains some modifications (i.e. the half type, Input, Output definitions...).
The nugget package is 7months old and does not contain these last changes. As a consequences, it is not possible to build the examples provided (examples have been updated too) while Amplifier.net documentation refers to the Nugget package.
Also, it will be good to provide explanation on how to build the package/dll.
I try to build from the sources, but was unable to do (seems to be related to a NetFramework 2.0).

I will upload to nuget in next 2 hours. Will update this thread. Thanks
On Mon, Dec 30, 2019 at 4:12 PM Vincent D<EMAIL_ADDRESS>wrote:

The current master contains some modifications (i.e. the half type, Input,
Output definitions...).
The nugget package is 7months old and does not contain these last changes.
As a consequences, it is not possible to build the examples provided
(examples have been updated too) while Amplifier.net documentation refers
to the Nugget package.
Also, it will be good to provide explanation on how to build the
package/dll.
I try to build from the sources, but was unable to do (seems to be related
to a NetFramework 2.0).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tech-quantum/Amplifier.NET/issues/10?email_source=notifications&email_token=ABQJAKJEUMABO4ATX2DKNU3Q3GC5NA5CNFSM4KBI2BUKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IDI6PFA,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQJAKLX4MKDXECJHCI7MRDQ3GC5NANCNFSM4KBI2BUA
.

--
Regards,
Deepak

Updated the nuget...

Thanks for quick answer :)


Migrate from request to phin for performance enhancements!

phin is a much more lightweight HTTP client library than request. :)
This PR reduces size of dependency to 1 from 50+, decreasing overall size. This PR should also improve HTTP request speed noticeably!

For further reference, here's a tree of request. phin has a tree with just one node - itself.
Please merge this! Faster install times and faster performance will come from this pull request.

Sounds cool! Also sorry for the delay, haven't seen this earlier.
I will take a closer look at this next week but it looks good in theory. I haven't heard of that library (phin) before – how well tested is it?

@CdePanda As the lead developer, I can say with confidence that phin is super stable and is tested quite thoroughly before releases! The full test script is available right over here!

@CdePanda Have we got updates on this? 😁


[Bug]: Posthog Template not working

Error Message and Logs
2024-09-27T03:10:09.781573969Z 2024-09-27T03:10:09.781458Z [info     ] AXES: BEGIN LOG                [axes.apps] pid=1221 tid=129749577902400
2024-09-27T03:10:09.782463528Z 2024-09-27T03:10:09.782345Z [info     ] AXES: Using django-axes version 5.9.0 [axes.apps] pid=1221 tid=129749577902400
2024-09-27T03:10:09.782531305Z 2024-09-27T03:10:09.782456Z [info     ] AXES: blocking by IP only.     [axes.apps] pid=1221 tid=129749577902400
2024-09-27T03:10:10.128720044Z 2024/09/27 03:10:10 [info] 1353#1353 "posthog" application started
2024-09-27T03:10:16.303566220Z 2024-09-27T03:10:16.303147Z [warning  ] Skipping async migrations setup. This is unsafe in production! [posthog.apps] pid=1353 tid=129749577902400
2024-09-27T03:10:16.306121412Z 2024-09-27T03:10:16.305753Z [info     ] AXES: BEGIN LOG                [axes.apps] pid=1353 tid=129749577902400
2024-09-27T03:10:16.306664004Z 2024-09-27T03:10:16.306577Z [info     ] AXES: Using django-axes version 5.9.0 [axes.apps] pid=1353 tid=129749577902400
2024-09-27T03:10:16.306741452Z 2024-09-27T03:10:16.306679Z [info     ] AXES: blocking by IP only.     [axes.apps] pid=1353 tid=129749577902400
2024-09-27T03:10:16.649950175Z 2024/09/27 03:10:16 [info] 1485#1485 "posthog" application started
2024-09-27T03:10:22.845515928Z 2024-09-27T03:10:22.845242Z [warning  ] Skipping async migrations setup. This is unsafe in production! [posthog.apps] pid=1485 tid=129749577902400
2024-09-27T03:10:22.847924233Z 2024-09-27T03:10:22.847717Z [info     ] AXES: BEGIN LOG                [axes.apps] pid=1485 tid=129749577902400
2024-09-27T03:10:22.848425456Z 2024-09-27T03:10:22.848331Z [info     ] AXES: Using django-axes version 5.9.0 [axes.apps] pid=1485 tid=129749577902400
2024-09-27T03:10:22.848498636Z 2024-09-27T03:10:22.848434Z [info     ] AXES: blocking by IP only.     [axes.apps] pid=1485 tid=129749577902400
2024-09-27T03:10:23.199552262Z 2024/09/27 03:10:23 [info] 1617#1617 "metrics" prototype started
2024-09-27T03:10:23.200194551Z 2024/09/27 03:10:23 [info] 1618#1618 "metrics" application started
2024-09-27T03:10:23.287747978Z /usr/local/bin/docker-entrypoint.sh: OK: HTTP response status code is '200'
2024-09-27T03:10:23.287768203Z {
"success": "Reconfiguration done."
}
2024-09-27T03:10:23.287771533Z /usr/local/bin/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/...
2024-09-27T03:10:23.290202283Z /usr/local/bin/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/unit.json.tpl
2024-09-27T03:10:23.290241436Z /usr/local/bin/docker-entrypoint.sh: Stopping Unit daemon after initial configuration...
2024-09-27T03:10:23.291316883Z 2024/09/27 03:10:23 [notice] 1076#1076 process 1080 exited with code 0
2024-09-27T03:10:23.292086857Z /usr/local/bin/docker-entrypoint.sh: Waiting for control socket to be removed...
2024-09-27T03:10:23.294635567Z 2024/09/27 03:10:23 [notice] 1076#1076 process 1081 exited with code 0
2024-09-27T03:10:23.301168507Z 2024/09/27 03:10:23 [notice] 1617#1617 app process 1618 exited with code 0
2024-09-27T03:10:23.301174889Z 2024/09/27 03:10:23 [alert] 1617#1617 sendmsg(13, -1, -1, 2) failed (32: Broken pipe)
2024-09-27T03:10:23.301660725Z 2024/09/27 03:10:23 [notice] 1076#1076 process 1617 exited with code 0
2024-09-27T03:10:24.293454148Z /usr/local/bin/docker-entrypoint.sh: Waiting for control socket to be removed...
2024-09-27T03:10:24.725867632Z 2024/09/27 03:10:24 [notice] 1088#1088 app process 1353 exited with code 0
2024-09-27T03:10:24.725895226Z 2024/09/27 03:10:24 [alert] 1088#1088 sendmsg(13, -1, -1, 2) failed (32: Broken pipe)
2024-09-27T03:10:24.797608182Z 2024/09/27 03:10:24 [notice] 1088#1088 app process 1485 exited with code 0
2024-09-27T03:10:24.797633340Z 2024/09/27 03:10:24 [alert] 1088#1088 sendmsg(13, -1, -1, 2) failed (32: Broken pipe)
2024-09-27T03:10:25.185013085Z 2024/09/27 03:10:25 [notice] 1088#1088 app process 1089 exited with code 0
2024-09-27T03:10:25.185034919Z 2024/09/27 03:10:25 [alert] 1088#1088 sendmsg(13, -1, -1, 2) failed (32: Broken pipe)
2024-09-27T03:10:25.294728911Z /usr/local/bin/docker-entrypoint.sh: Waiting for control socket to be removed...
2024-09-27T03:10:25.746830798Z 2024/09/27 03:10:25 [notice] 1088#1088 app process 1221 exited with code 0
2024-09-27T03:10:25.746850296Z 2024/09/27 03:10:25 [alert] 1088#1088 sendmsg(13, -1, -1, 2) failed (32: Broken pipe)
2024-09-27T03:10:25.747422558Z 2024/09/27 03:10:25 [notice] 1076#1076 process 1088 exited with code 0
2024-09-27T03:10:26.296386743Z
2024-09-27T03:10:26.296435751Z /usr/local/bin/docker-entrypoint.sh: Unit initial configuration complete; ready for start up...
2024-09-27T03:10:26.296442646Z
2024-09-27T03:10:26.298848524Z 2024/09/27 03:10:26 [info] 672#672 unit 1.32.0 started
2024-09-27T03:10:26.299270167Z 2024/09/27 03:10:26 [info] 1696#1696 discovery started
2024-09-27T03:10:26.300686069Z 2024/09/27 03:10:26 [notice] 1696#1696 module: python 3.11.8 "/usr/lib/unit/modules/python3.unit.so"
2024-09-27T03:10:26.300864982Z 2024/09/27 03:10:26 [info] 672#672 controller started
2024-09-27T03:10:26.301231095Z 2024/09/27 03:10:26 [notice] 672#672 process 1696 exited with code 0
2024-09-27T03:10:26.301428809Z 2024/09/27 03:10:26 [info] 1698#1698 router started
2024-09-27T03:10:26.302463316Z 2024/09/27 03:10:26 [info] 1698#1698 OpenSSL 1.1.1w  11 Sep 2023, 1010117f
2024-09-27T03:10:26.310623602Z 2024/09/27 03:10:26 [info] 1699#1699 "posthog" prototype started
2024-09-27T03:10:26.311111570Z 2024/09/27 03:10:26 [info] 1700#1700 "posthog" application started
2024-09-27T03:10:32.789296023Z 2024-09-27T03:10:32.788910Z [warning  ] Skipping async migrations setup. This is unsafe in production! [posthog.apps] pid=1700 tid=130324734585152
2024-09-27T03:10:32.791708667Z 2024-09-27T03:10:32.791568Z [info     ] AXES: BEGIN LOG                [axes.apps] pid=1700 tid=130324734585152
2024-09-27T03:10:32.792530166Z 2024-09-27T03:10:32.792408Z [info     ] AXES: Using django-axes version 5.9.0 [axes.apps] pid=1700 tid=130324734585152
2024-09-27T03:10:32.792577450Z 2024-09-27T03:10:32.792517Z [info     ] AXES: blocking by IP only.     [axes.apps] pid=1700 tid=130324734585152
2024-09-27T03:10:33.145526088Z 2024/09/27 03:10:33 [info] 1832#1832 "posthog" application started
2024-09-27T03:10:39.505471046Z 2024-09-27T03:10:39.505118Z [warning  ] Skipping async migrations setup. This is unsafe in production! [posthog.apps] pid=1832 tid=130324734585152
2024-09-27T03:10:39.507812418Z 2024-09-27T03:10:39.507650Z [info     ] AXES: BEGIN LOG                [axes.apps] pid=1832 tid=130324734585152
2024-09-27T03:10:39.508450125Z 2024-09-27T03:10:39.508359Z [info     ] AXES: Using django-axes version 5.9.0 [axes.apps] pid=1832 tid=130324734585152
2024-09-27T03:10:39.508521986Z 2024-09-27T03:10:39.508458Z [info     ] AXES: blocking by IP only.     [axes.apps] pid=1832 tid=130324734585152
2024-09-27T03:10:39.858560984Z 2024/09/27 03:10:39 [info] 1964#1964 "posthog" application started
2024-09-27T03:10:46.148900703Z 2024-09-27T03:10:46.148628Z [warning  ] Skipping async migrations setup. This is unsafe in production! [posthog.apps] pid=1964 tid=130324734585152
2024-09-27T03:10:46.151232216Z 2024-09-27T03:10:46.151132Z [info     ] AXES: BEGIN LOG                [axes.apps] pid=1964 tid=130324734585152
2024-09-27T03:10:46.151836593Z 2024-09-27T03:10:46.151751Z [info     ] AXES: Using django-axes version 5.9.0 [axes.apps] pid=1964 tid=130324734585152
2024-09-27T03:10:46.151911382Z 2024-09-27T03:10:46.151855Z [info     ] AXES: blocking by IP only.     [axes.apps] pid=1964 tid=130324734585152
2024-09-27T03:10:46.502052707Z 2024/09/27 03:10:46 [info] 2096#2096 "posthog" application started
2024-09-27T03:10:52.829043105Z 2024-09-27T03:10:52.828777Z [warning  ] Skipping async migrations setup. This is unsafe in production! [posthog.apps] pid=2096 tid=130324734585152
2024-09-27T03:10:52.831396055Z 2024-09-27T03:10:52.831297Z [info     ] AXES: BEGIN LOG                [axes.apps] pid=2096 tid=130324734585152
2024-09-27T03:10:52.831988275Z 2024-09-27T03:10:52.831905Z [info     ] AXES: Using django-axes version 5.9.0 [axes.apps] pid=2096 tid=130324734585152
2024-09-27T03:10:52.832063098Z 2024-09-27T03:10:52.832009Z [info     ] AXES: blocking by IP only.     [axes.apps] pid=2096 tid=130324734585152
2024-09-27T03:10:53.189821319Z 2024/09/27 03:10:53 [info] 2228#2228 "metrics" prototype started
2024-09-27T03:10:53.190348025Z 2024/09/27 03:10:53 [info] 2229#2229 "metrics" application started
Steps to Reproduce

Log in to Coolify.
Select the PostHog template.
Click on "Deploy."
Visit the provided URL.

Example Repository URL
No response
Coolify Version
v4.0.0-beta.340
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
No response
Additional Information
The VM hosted on AWS has a 16-core processor and 64GB of RAM.
It shows a "Bad Gateway" error, and even after checking back two days later, the issue persists.

Hey,
I noticed there was a bug fix related to this issue (https://github.com/coollabsio/coolify/pull/3784) that was recently implemented, but unfortunately, it hasn’t resolved the problem on my end.
I’ve upgraded to the latest version of Coolify, but the default PostHog template still behaves inconsistently. It throws a "bad gateway" error randomly—sometimes the site works fine, but other times it fails without any clear pattern.
Additionally, when I try changing the domain for the service (instead of using the default one generated by Coolify), it never works and always returns an error.
Any insights or suggestions on how to fix this would be really appreciated!
Thanks in advance!

As of right now (v4.0.0-beta364), the Posthog template is not working.
When deployed via the one-click app, the Posthog services all start up and fine, however the webui does not load due to a bunch of 502 errors when loading the javascript for the webui.

snot working for me either. setup a valide FQDN, updated docker-compose file to include SERVICE_FQDN_WEB rather then SERVICE_FQDN_WEB_8000` didn't work. it still unhealthy.
I 've logged in inside the container and made curl localhost:8000, didn't respond with  anything
I somehow can see something going on, like requests are terminating in the posthug web when trying to access from inside the container but nothing happen when you access via fqdn.
2024-11-12T21:40:50.160662Z [info     ] request_started                [django_structlog.middlewares.request] container_hostname=6fee42600749 host=<IP_ADDRESS>:8000 ip=<IP_ADDRESS> pid=237 request=<WSGIRequest: GET '/'> request_id=c9afeb19-bb90-471b-af1b-fa3ca2fad204 tid=140346526570816 user_agent=curl/7.88.1 x_forwarded_for=
2024-11-12T21:40:50.400021Z [info     ] request_finished               [django_structlog.middlewares.request] code=302 container_hostname=6fee42600749 host=<IP_ADDRESS>:8000 ip=<IP_ADDRESS> pid=237 request=<WSGIRequest: GET '/'> request_id=c9afeb19-bb90-471b-af1b-fa3ca2fad204 tid=140346526570816 user_id=None x_forwarded_for=

snot working for me either. setup a valide FQDN, updated docker-compose file to include SERVICE_FQDN_WEB rather then SERVICE_FQDN_WEB_8000` didn't work. it still unhealthy.
I 've logged in inside the container and made curl localhost:8000, didn't respond with anything
I somehow can see something going on, like requests are terminating in the posthug web when trying to access from inside the container but nothing happen when you access via fqdn.
2024-11-12T21:40:50.160662Z [info     ] request_started                [django_structlog.middlewares.request] container_hostname=6fee42600749 host=<IP_ADDRESS>:8000 ip=<IP_ADDRESS> pid=237 request=<WSGIRequest: GET '/'> request_id=c9afeb19-bb90-471b-af1b-fa3ca2fad204 tid=140346526570816 user_agent=curl/7.88.1 x_forwarded_for=
2024-11-12T21:40:50.400021Z [info     ] request_finished               [django_structlog.middlewares.request] code=302 container_hostname=6fee42600749 host=<IP_ADDRESS>:8000 ip=<IP_ADDRESS> pid=237 request=<WSGIRequest: GET '/'> request_id=c9afeb19-bb90-471b-af1b-fa3ca2fad204 tid=140346526570816 user_id=None x_forwarded_for=

Finally got it to work!
Enable a large swap
Change SERVICE_FQDN_WEB_8000 to SERVICE_FQDN_WEB
After starting posthog, give it a few minutes to boot up

what does Enable a large swap mean ?

a large swap
Change SERVICE_FQDN_WEB_8000 to SERVICE_FQDN_WEB

what does Enable a large swap mean ?

a large swap
Change SERVICE_FQDN_WEB_8000 to SERVICE_FQDN_WEB

https://github.com/coollabsio/coolify/issues/2110#issuecomment-2331620705

what does Enable a large swap mean ?

a large swap
Change SERVICE_FQDN_WEB_8000 to SERVICE_FQDN_WEB

#2110 (comment)

did you change anything else ? i did both changes .. but all the posthog services are unhealthy and i still get bad gateway

I couldn't get it to work either. I also needed to include a new shard for Clickhouse in the Storages section, just look for </posthog> and add this below:
https://github.com/PostHog/posthog/blob/6c58e55f0c1dcafc0883ae336c51e2adb3741f97/docker/clickhouse/config.xml#L174-L181
Regardless, I was able to obfuscate the error but I still received the 502.
After some debugging I see the the plugins container crashes every minute or so with:
2024-12-27T18:10:44.773309471Z {"level":"error","time":1735323044772,"pid":205,"hostname":"7a65bb2ce0e4","errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"<IP_ADDRESS>","port":6479,"msg":"[MAIN] 😡 Redis error encountered! Enough of this, I quit!\n"}

I wasn't able to fix this, I think the plugins container isn't correctly loading the REDIS_URL variable there and for some reason uses the default one. The kafke variable works fine, so IDK really what's happening.
When I map the ports manually in the Edit Compose file in the Service Stack tab and add ports to the web: section:
  web:
    image: 'posthog/posthog:latest'
    command: /compose/start
    ports:
      - 8001:8000
      - 8002:8001
      - 81:80

I was able to get the panel to load... I signed myself up but I'm not able to get beyong the login...